Nesslab_200M_System.list 633 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940
  1. Nesslab_200M_System.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 000001d0 08000000 08000000 00010000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 00007194 080001d0 080001d0 000101d0 2**3
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 000003a0 08007368 08007368 00017368 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 08007708 08007708 000201dc 2**0
  11. CONTENTS
  12. 4 .ARM 00000000 08007708 08007708 000201dc 2**0
  13. CONTENTS
  14. 5 .preinit_array 00000000 08007708 08007708 000201dc 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 08007708 08007708 00017708 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 0800770c 0800770c 0001770c 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 000001dc 20000000 08007710 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 00000460 200001dc 080078ec 000201dc 2**2
  23. ALLOC
  24. 10 ._user_heap_stack 00000604 2000063c 080078ec 0002063c 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000029 00000000 00000000 000201dc 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 00011f78 00000000 00000000 00020205 2**0
  29. CONTENTS, READONLY, DEBUGGING
  30. 13 .debug_abbrev 00002dce 00000000 00000000 0003217d 2**0
  31. CONTENTS, READONLY, DEBUGGING
  32. 14 .debug_aranges 00000f90 00000000 00000000 00034f50 2**3
  33. CONTENTS, READONLY, DEBUGGING
  34. 15 .debug_ranges 00000e18 00000000 00000000 00035ee0 2**3
  35. CONTENTS, READONLY, DEBUGGING
  36. 16 .debug_macro 00010766 00000000 00000000 00036cf8 2**0
  37. CONTENTS, READONLY, DEBUGGING
  38. 17 .debug_line 0000d862 00000000 00000000 0004745e 2**0
  39. CONTENTS, READONLY, DEBUGGING
  40. 18 .debug_str 00057930 00000000 00000000 00054cc0 2**0
  41. CONTENTS, READONLY, DEBUGGING
  42. 19 .comment 0000007b 00000000 00000000 000ac5f0 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00004d18 00000000 00000000 000ac66c 2**2
  45. CONTENTS, READONLY, DEBUGGING
  46. Disassembly of section .text:
  47. 080001d0 <__do_global_dtors_aux>:
  48. 80001d0: b510 push {r4, lr}
  49. 80001d2: 4c05 ldr r4, [pc, #20] ; (80001e8 <__do_global_dtors_aux+0x18>)
  50. 80001d4: 7823 ldrb r3, [r4, #0]
  51. 80001d6: b933 cbnz r3, 80001e6 <__do_global_dtors_aux+0x16>
  52. 80001d8: 4b04 ldr r3, [pc, #16] ; (80001ec <__do_global_dtors_aux+0x1c>)
  53. 80001da: b113 cbz r3, 80001e2 <__do_global_dtors_aux+0x12>
  54. 80001dc: 4804 ldr r0, [pc, #16] ; (80001f0 <__do_global_dtors_aux+0x20>)
  55. 80001de: f3af 8000 nop.w
  56. 80001e2: 2301 movs r3, #1
  57. 80001e4: 7023 strb r3, [r4, #0]
  58. 80001e6: bd10 pop {r4, pc}
  59. 80001e8: 200001dc .word 0x200001dc
  60. 80001ec: 00000000 .word 0x00000000
  61. 80001f0: 0800734c .word 0x0800734c
  62. 080001f4 <frame_dummy>:
  63. 80001f4: b508 push {r3, lr}
  64. 80001f6: 4b03 ldr r3, [pc, #12] ; (8000204 <frame_dummy+0x10>)
  65. 80001f8: b11b cbz r3, 8000202 <frame_dummy+0xe>
  66. 80001fa: 4903 ldr r1, [pc, #12] ; (8000208 <frame_dummy+0x14>)
  67. 80001fc: 4803 ldr r0, [pc, #12] ; (800020c <frame_dummy+0x18>)
  68. 80001fe: f3af 8000 nop.w
  69. 8000202: bd08 pop {r3, pc}
  70. 8000204: 00000000 .word 0x00000000
  71. 8000208: 200001e0 .word 0x200001e0
  72. 800020c: 0800734c .word 0x0800734c
  73. 08000210 <strlen>:
  74. 8000210: 4603 mov r3, r0
  75. 8000212: f813 2b01 ldrb.w r2, [r3], #1
  76. 8000216: 2a00 cmp r2, #0
  77. 8000218: d1fb bne.n 8000212 <strlen+0x2>
  78. 800021a: 1a18 subs r0, r3, r0
  79. 800021c: 3801 subs r0, #1
  80. 800021e: 4770 bx lr
  81. 08000220 <__aeabi_drsub>:
  82. 8000220: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000
  83. 8000224: e002 b.n 800022c <__adddf3>
  84. 8000226: bf00 nop
  85. 08000228 <__aeabi_dsub>:
  86. 8000228: f083 4300 eor.w r3, r3, #2147483648 ; 0x80000000
  87. 0800022c <__adddf3>:
  88. 800022c: b530 push {r4, r5, lr}
  89. 800022e: ea4f 0441 mov.w r4, r1, lsl #1
  90. 8000232: ea4f 0543 mov.w r5, r3, lsl #1
  91. 8000236: ea94 0f05 teq r4, r5
  92. 800023a: bf08 it eq
  93. 800023c: ea90 0f02 teqeq r0, r2
  94. 8000240: bf1f itttt ne
  95. 8000242: ea54 0c00 orrsne.w ip, r4, r0
  96. 8000246: ea55 0c02 orrsne.w ip, r5, r2
  97. 800024a: ea7f 5c64 mvnsne.w ip, r4, asr #21
  98. 800024e: ea7f 5c65 mvnsne.w ip, r5, asr #21
  99. 8000252: f000 80e2 beq.w 800041a <__adddf3+0x1ee>
  100. 8000256: ea4f 5454 mov.w r4, r4, lsr #21
  101. 800025a: ebd4 5555 rsbs r5, r4, r5, lsr #21
  102. 800025e: bfb8 it lt
  103. 8000260: 426d neglt r5, r5
  104. 8000262: dd0c ble.n 800027e <__adddf3+0x52>
  105. 8000264: 442c add r4, r5
  106. 8000266: ea80 0202 eor.w r2, r0, r2
  107. 800026a: ea81 0303 eor.w r3, r1, r3
  108. 800026e: ea82 0000 eor.w r0, r2, r0
  109. 8000272: ea83 0101 eor.w r1, r3, r1
  110. 8000276: ea80 0202 eor.w r2, r0, r2
  111. 800027a: ea81 0303 eor.w r3, r1, r3
  112. 800027e: 2d36 cmp r5, #54 ; 0x36
  113. 8000280: bf88 it hi
  114. 8000282: bd30 pophi {r4, r5, pc}
  115. 8000284: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
  116. 8000288: ea4f 3101 mov.w r1, r1, lsl #12
  117. 800028c: f44f 1c80 mov.w ip, #1048576 ; 0x100000
  118. 8000290: ea4c 3111 orr.w r1, ip, r1, lsr #12
  119. 8000294: d002 beq.n 800029c <__adddf3+0x70>
  120. 8000296: 4240 negs r0, r0
  121. 8000298: eb61 0141 sbc.w r1, r1, r1, lsl #1
  122. 800029c: f013 4f00 tst.w r3, #2147483648 ; 0x80000000
  123. 80002a0: ea4f 3303 mov.w r3, r3, lsl #12
  124. 80002a4: ea4c 3313 orr.w r3, ip, r3, lsr #12
  125. 80002a8: d002 beq.n 80002b0 <__adddf3+0x84>
  126. 80002aa: 4252 negs r2, r2
  127. 80002ac: eb63 0343 sbc.w r3, r3, r3, lsl #1
  128. 80002b0: ea94 0f05 teq r4, r5
  129. 80002b4: f000 80a7 beq.w 8000406 <__adddf3+0x1da>
  130. 80002b8: f1a4 0401 sub.w r4, r4, #1
  131. 80002bc: f1d5 0e20 rsbs lr, r5, #32
  132. 80002c0: db0d blt.n 80002de <__adddf3+0xb2>
  133. 80002c2: fa02 fc0e lsl.w ip, r2, lr
  134. 80002c6: fa22 f205 lsr.w r2, r2, r5
  135. 80002ca: 1880 adds r0, r0, r2
  136. 80002cc: f141 0100 adc.w r1, r1, #0
  137. 80002d0: fa03 f20e lsl.w r2, r3, lr
  138. 80002d4: 1880 adds r0, r0, r2
  139. 80002d6: fa43 f305 asr.w r3, r3, r5
  140. 80002da: 4159 adcs r1, r3
  141. 80002dc: e00e b.n 80002fc <__adddf3+0xd0>
  142. 80002de: f1a5 0520 sub.w r5, r5, #32
  143. 80002e2: f10e 0e20 add.w lr, lr, #32
  144. 80002e6: 2a01 cmp r2, #1
  145. 80002e8: fa03 fc0e lsl.w ip, r3, lr
  146. 80002ec: bf28 it cs
  147. 80002ee: f04c 0c02 orrcs.w ip, ip, #2
  148. 80002f2: fa43 f305 asr.w r3, r3, r5
  149. 80002f6: 18c0 adds r0, r0, r3
  150. 80002f8: eb51 71e3 adcs.w r1, r1, r3, asr #31
  151. 80002fc: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
  152. 8000300: d507 bpl.n 8000312 <__adddf3+0xe6>
  153. 8000302: f04f 0e00 mov.w lr, #0
  154. 8000306: f1dc 0c00 rsbs ip, ip, #0
  155. 800030a: eb7e 0000 sbcs.w r0, lr, r0
  156. 800030e: eb6e 0101 sbc.w r1, lr, r1
  157. 8000312: f5b1 1f80 cmp.w r1, #1048576 ; 0x100000
  158. 8000316: d31b bcc.n 8000350 <__adddf3+0x124>
  159. 8000318: f5b1 1f00 cmp.w r1, #2097152 ; 0x200000
  160. 800031c: d30c bcc.n 8000338 <__adddf3+0x10c>
  161. 800031e: 0849 lsrs r1, r1, #1
  162. 8000320: ea5f 0030 movs.w r0, r0, rrx
  163. 8000324: ea4f 0c3c mov.w ip, ip, rrx
  164. 8000328: f104 0401 add.w r4, r4, #1
  165. 800032c: ea4f 5244 mov.w r2, r4, lsl #21
  166. 8000330: f512 0f80 cmn.w r2, #4194304 ; 0x400000
  167. 8000334: f080 809a bcs.w 800046c <__adddf3+0x240>
  168. 8000338: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000
  169. 800033c: bf08 it eq
  170. 800033e: ea5f 0c50 movseq.w ip, r0, lsr #1
  171. 8000342: f150 0000 adcs.w r0, r0, #0
  172. 8000346: eb41 5104 adc.w r1, r1, r4, lsl #20
  173. 800034a: ea41 0105 orr.w r1, r1, r5
  174. 800034e: bd30 pop {r4, r5, pc}
  175. 8000350: ea5f 0c4c movs.w ip, ip, lsl #1
  176. 8000354: 4140 adcs r0, r0
  177. 8000356: eb41 0101 adc.w r1, r1, r1
  178. 800035a: f411 1f80 tst.w r1, #1048576 ; 0x100000
  179. 800035e: f1a4 0401 sub.w r4, r4, #1
  180. 8000362: d1e9 bne.n 8000338 <__adddf3+0x10c>
  181. 8000364: f091 0f00 teq r1, #0
  182. 8000368: bf04 itt eq
  183. 800036a: 4601 moveq r1, r0
  184. 800036c: 2000 moveq r0, #0
  185. 800036e: fab1 f381 clz r3, r1
  186. 8000372: bf08 it eq
  187. 8000374: 3320 addeq r3, #32
  188. 8000376: f1a3 030b sub.w r3, r3, #11
  189. 800037a: f1b3 0220 subs.w r2, r3, #32
  190. 800037e: da0c bge.n 800039a <__adddf3+0x16e>
  191. 8000380: 320c adds r2, #12
  192. 8000382: dd08 ble.n 8000396 <__adddf3+0x16a>
  193. 8000384: f102 0c14 add.w ip, r2, #20
  194. 8000388: f1c2 020c rsb r2, r2, #12
  195. 800038c: fa01 f00c lsl.w r0, r1, ip
  196. 8000390: fa21 f102 lsr.w r1, r1, r2
  197. 8000394: e00c b.n 80003b0 <__adddf3+0x184>
  198. 8000396: f102 0214 add.w r2, r2, #20
  199. 800039a: bfd8 it le
  200. 800039c: f1c2 0c20 rsble ip, r2, #32
  201. 80003a0: fa01 f102 lsl.w r1, r1, r2
  202. 80003a4: fa20 fc0c lsr.w ip, r0, ip
  203. 80003a8: bfdc itt le
  204. 80003aa: ea41 010c orrle.w r1, r1, ip
  205. 80003ae: 4090 lslle r0, r2
  206. 80003b0: 1ae4 subs r4, r4, r3
  207. 80003b2: bfa2 ittt ge
  208. 80003b4: eb01 5104 addge.w r1, r1, r4, lsl #20
  209. 80003b8: 4329 orrge r1, r5
  210. 80003ba: bd30 popge {r4, r5, pc}
  211. 80003bc: ea6f 0404 mvn.w r4, r4
  212. 80003c0: 3c1f subs r4, #31
  213. 80003c2: da1c bge.n 80003fe <__adddf3+0x1d2>
  214. 80003c4: 340c adds r4, #12
  215. 80003c6: dc0e bgt.n 80003e6 <__adddf3+0x1ba>
  216. 80003c8: f104 0414 add.w r4, r4, #20
  217. 80003cc: f1c4 0220 rsb r2, r4, #32
  218. 80003d0: fa20 f004 lsr.w r0, r0, r4
  219. 80003d4: fa01 f302 lsl.w r3, r1, r2
  220. 80003d8: ea40 0003 orr.w r0, r0, r3
  221. 80003dc: fa21 f304 lsr.w r3, r1, r4
  222. 80003e0: ea45 0103 orr.w r1, r5, r3
  223. 80003e4: bd30 pop {r4, r5, pc}
  224. 80003e6: f1c4 040c rsb r4, r4, #12
  225. 80003ea: f1c4 0220 rsb r2, r4, #32
  226. 80003ee: fa20 f002 lsr.w r0, r0, r2
  227. 80003f2: fa01 f304 lsl.w r3, r1, r4
  228. 80003f6: ea40 0003 orr.w r0, r0, r3
  229. 80003fa: 4629 mov r1, r5
  230. 80003fc: bd30 pop {r4, r5, pc}
  231. 80003fe: fa21 f004 lsr.w r0, r1, r4
  232. 8000402: 4629 mov r1, r5
  233. 8000404: bd30 pop {r4, r5, pc}
  234. 8000406: f094 0f00 teq r4, #0
  235. 800040a: f483 1380 eor.w r3, r3, #1048576 ; 0x100000
  236. 800040e: bf06 itte eq
  237. 8000410: f481 1180 eoreq.w r1, r1, #1048576 ; 0x100000
  238. 8000414: 3401 addeq r4, #1
  239. 8000416: 3d01 subne r5, #1
  240. 8000418: e74e b.n 80002b8 <__adddf3+0x8c>
  241. 800041a: ea7f 5c64 mvns.w ip, r4, asr #21
  242. 800041e: bf18 it ne
  243. 8000420: ea7f 5c65 mvnsne.w ip, r5, asr #21
  244. 8000424: d029 beq.n 800047a <__adddf3+0x24e>
  245. 8000426: ea94 0f05 teq r4, r5
  246. 800042a: bf08 it eq
  247. 800042c: ea90 0f02 teqeq r0, r2
  248. 8000430: d005 beq.n 800043e <__adddf3+0x212>
  249. 8000432: ea54 0c00 orrs.w ip, r4, r0
  250. 8000436: bf04 itt eq
  251. 8000438: 4619 moveq r1, r3
  252. 800043a: 4610 moveq r0, r2
  253. 800043c: bd30 pop {r4, r5, pc}
  254. 800043e: ea91 0f03 teq r1, r3
  255. 8000442: bf1e ittt ne
  256. 8000444: 2100 movne r1, #0
  257. 8000446: 2000 movne r0, #0
  258. 8000448: bd30 popne {r4, r5, pc}
  259. 800044a: ea5f 5c54 movs.w ip, r4, lsr #21
  260. 800044e: d105 bne.n 800045c <__adddf3+0x230>
  261. 8000450: 0040 lsls r0, r0, #1
  262. 8000452: 4149 adcs r1, r1
  263. 8000454: bf28 it cs
  264. 8000456: f041 4100 orrcs.w r1, r1, #2147483648 ; 0x80000000
  265. 800045a: bd30 pop {r4, r5, pc}
  266. 800045c: f514 0480 adds.w r4, r4, #4194304 ; 0x400000
  267. 8000460: bf3c itt cc
  268. 8000462: f501 1180 addcc.w r1, r1, #1048576 ; 0x100000
  269. 8000466: bd30 popcc {r4, r5, pc}
  270. 8000468: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
  271. 800046c: f045 41fe orr.w r1, r5, #2130706432 ; 0x7f000000
  272. 8000470: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000
  273. 8000474: f04f 0000 mov.w r0, #0
  274. 8000478: bd30 pop {r4, r5, pc}
  275. 800047a: ea7f 5c64 mvns.w ip, r4, asr #21
  276. 800047e: bf1a itte ne
  277. 8000480: 4619 movne r1, r3
  278. 8000482: 4610 movne r0, r2
  279. 8000484: ea7f 5c65 mvnseq.w ip, r5, asr #21
  280. 8000488: bf1c itt ne
  281. 800048a: 460b movne r3, r1
  282. 800048c: 4602 movne r2, r0
  283. 800048e: ea50 3401 orrs.w r4, r0, r1, lsl #12
  284. 8000492: bf06 itte eq
  285. 8000494: ea52 3503 orrseq.w r5, r2, r3, lsl #12
  286. 8000498: ea91 0f03 teqeq r1, r3
  287. 800049c: f441 2100 orrne.w r1, r1, #524288 ; 0x80000
  288. 80004a0: bd30 pop {r4, r5, pc}
  289. 80004a2: bf00 nop
  290. 080004a4 <__aeabi_ui2d>:
  291. 80004a4: f090 0f00 teq r0, #0
  292. 80004a8: bf04 itt eq
  293. 80004aa: 2100 moveq r1, #0
  294. 80004ac: 4770 bxeq lr
  295. 80004ae: b530 push {r4, r5, lr}
  296. 80004b0: f44f 6480 mov.w r4, #1024 ; 0x400
  297. 80004b4: f104 0432 add.w r4, r4, #50 ; 0x32
  298. 80004b8: f04f 0500 mov.w r5, #0
  299. 80004bc: f04f 0100 mov.w r1, #0
  300. 80004c0: e750 b.n 8000364 <__adddf3+0x138>
  301. 80004c2: bf00 nop
  302. 080004c4 <__aeabi_i2d>:
  303. 80004c4: f090 0f00 teq r0, #0
  304. 80004c8: bf04 itt eq
  305. 80004ca: 2100 moveq r1, #0
  306. 80004cc: 4770 bxeq lr
  307. 80004ce: b530 push {r4, r5, lr}
  308. 80004d0: f44f 6480 mov.w r4, #1024 ; 0x400
  309. 80004d4: f104 0432 add.w r4, r4, #50 ; 0x32
  310. 80004d8: f010 4500 ands.w r5, r0, #2147483648 ; 0x80000000
  311. 80004dc: bf48 it mi
  312. 80004de: 4240 negmi r0, r0
  313. 80004e0: f04f 0100 mov.w r1, #0
  314. 80004e4: e73e b.n 8000364 <__adddf3+0x138>
  315. 80004e6: bf00 nop
  316. 080004e8 <__aeabi_f2d>:
  317. 80004e8: 0042 lsls r2, r0, #1
  318. 80004ea: ea4f 01e2 mov.w r1, r2, asr #3
  319. 80004ee: ea4f 0131 mov.w r1, r1, rrx
  320. 80004f2: ea4f 7002 mov.w r0, r2, lsl #28
  321. 80004f6: bf1f itttt ne
  322. 80004f8: f012 437f andsne.w r3, r2, #4278190080 ; 0xff000000
  323. 80004fc: f093 4f7f teqne r3, #4278190080 ; 0xff000000
  324. 8000500: f081 5160 eorne.w r1, r1, #939524096 ; 0x38000000
  325. 8000504: 4770 bxne lr
  326. 8000506: f032 427f bics.w r2, r2, #4278190080 ; 0xff000000
  327. 800050a: bf08 it eq
  328. 800050c: 4770 bxeq lr
  329. 800050e: f093 4f7f teq r3, #4278190080 ; 0xff000000
  330. 8000512: bf04 itt eq
  331. 8000514: f441 2100 orreq.w r1, r1, #524288 ; 0x80000
  332. 8000518: 4770 bxeq lr
  333. 800051a: b530 push {r4, r5, lr}
  334. 800051c: f44f 7460 mov.w r4, #896 ; 0x380
  335. 8000520: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
  336. 8000524: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000
  337. 8000528: e71c b.n 8000364 <__adddf3+0x138>
  338. 800052a: bf00 nop
  339. 0800052c <__aeabi_ul2d>:
  340. 800052c: ea50 0201 orrs.w r2, r0, r1
  341. 8000530: bf08 it eq
  342. 8000532: 4770 bxeq lr
  343. 8000534: b530 push {r4, r5, lr}
  344. 8000536: f04f 0500 mov.w r5, #0
  345. 800053a: e00a b.n 8000552 <__aeabi_l2d+0x16>
  346. 0800053c <__aeabi_l2d>:
  347. 800053c: ea50 0201 orrs.w r2, r0, r1
  348. 8000540: bf08 it eq
  349. 8000542: 4770 bxeq lr
  350. 8000544: b530 push {r4, r5, lr}
  351. 8000546: f011 4500 ands.w r5, r1, #2147483648 ; 0x80000000
  352. 800054a: d502 bpl.n 8000552 <__aeabi_l2d+0x16>
  353. 800054c: 4240 negs r0, r0
  354. 800054e: eb61 0141 sbc.w r1, r1, r1, lsl #1
  355. 8000552: f44f 6480 mov.w r4, #1024 ; 0x400
  356. 8000556: f104 0432 add.w r4, r4, #50 ; 0x32
  357. 800055a: ea5f 5c91 movs.w ip, r1, lsr #22
  358. 800055e: f43f aed8 beq.w 8000312 <__adddf3+0xe6>
  359. 8000562: f04f 0203 mov.w r2, #3
  360. 8000566: ea5f 0cdc movs.w ip, ip, lsr #3
  361. 800056a: bf18 it ne
  362. 800056c: 3203 addne r2, #3
  363. 800056e: ea5f 0cdc movs.w ip, ip, lsr #3
  364. 8000572: bf18 it ne
  365. 8000574: 3203 addne r2, #3
  366. 8000576: eb02 02dc add.w r2, r2, ip, lsr #3
  367. 800057a: f1c2 0320 rsb r3, r2, #32
  368. 800057e: fa00 fc03 lsl.w ip, r0, r3
  369. 8000582: fa20 f002 lsr.w r0, r0, r2
  370. 8000586: fa01 fe03 lsl.w lr, r1, r3
  371. 800058a: ea40 000e orr.w r0, r0, lr
  372. 800058e: fa21 f102 lsr.w r1, r1, r2
  373. 8000592: 4414 add r4, r2
  374. 8000594: e6bd b.n 8000312 <__adddf3+0xe6>
  375. 8000596: bf00 nop
  376. 08000598 <__aeabi_dmul>:
  377. 8000598: b570 push {r4, r5, r6, lr}
  378. 800059a: f04f 0cff mov.w ip, #255 ; 0xff
  379. 800059e: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700
  380. 80005a2: ea1c 5411 ands.w r4, ip, r1, lsr #20
  381. 80005a6: bf1d ittte ne
  382. 80005a8: ea1c 5513 andsne.w r5, ip, r3, lsr #20
  383. 80005ac: ea94 0f0c teqne r4, ip
  384. 80005b0: ea95 0f0c teqne r5, ip
  385. 80005b4: f000 f8de bleq 8000774 <__aeabi_dmul+0x1dc>
  386. 80005b8: 442c add r4, r5
  387. 80005ba: ea81 0603 eor.w r6, r1, r3
  388. 80005be: ea21 514c bic.w r1, r1, ip, lsl #21
  389. 80005c2: ea23 534c bic.w r3, r3, ip, lsl #21
  390. 80005c6: ea50 3501 orrs.w r5, r0, r1, lsl #12
  391. 80005ca: bf18 it ne
  392. 80005cc: ea52 3503 orrsne.w r5, r2, r3, lsl #12
  393. 80005d0: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  394. 80005d4: f443 1380 orr.w r3, r3, #1048576 ; 0x100000
  395. 80005d8: d038 beq.n 800064c <__aeabi_dmul+0xb4>
  396. 80005da: fba0 ce02 umull ip, lr, r0, r2
  397. 80005de: f04f 0500 mov.w r5, #0
  398. 80005e2: fbe1 e502 umlal lr, r5, r1, r2
  399. 80005e6: f006 4200 and.w r2, r6, #2147483648 ; 0x80000000
  400. 80005ea: fbe0 e503 umlal lr, r5, r0, r3
  401. 80005ee: f04f 0600 mov.w r6, #0
  402. 80005f2: fbe1 5603 umlal r5, r6, r1, r3
  403. 80005f6: f09c 0f00 teq ip, #0
  404. 80005fa: bf18 it ne
  405. 80005fc: f04e 0e01 orrne.w lr, lr, #1
  406. 8000600: f1a4 04ff sub.w r4, r4, #255 ; 0xff
  407. 8000604: f5b6 7f00 cmp.w r6, #512 ; 0x200
  408. 8000608: f564 7440 sbc.w r4, r4, #768 ; 0x300
  409. 800060c: d204 bcs.n 8000618 <__aeabi_dmul+0x80>
  410. 800060e: ea5f 0e4e movs.w lr, lr, lsl #1
  411. 8000612: 416d adcs r5, r5
  412. 8000614: eb46 0606 adc.w r6, r6, r6
  413. 8000618: ea42 21c6 orr.w r1, r2, r6, lsl #11
  414. 800061c: ea41 5155 orr.w r1, r1, r5, lsr #21
  415. 8000620: ea4f 20c5 mov.w r0, r5, lsl #11
  416. 8000624: ea40 505e orr.w r0, r0, lr, lsr #21
  417. 8000628: ea4f 2ece mov.w lr, lr, lsl #11
  418. 800062c: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd
  419. 8000630: bf88 it hi
  420. 8000632: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700
  421. 8000636: d81e bhi.n 8000676 <__aeabi_dmul+0xde>
  422. 8000638: f1be 4f00 cmp.w lr, #2147483648 ; 0x80000000
  423. 800063c: bf08 it eq
  424. 800063e: ea5f 0e50 movseq.w lr, r0, lsr #1
  425. 8000642: f150 0000 adcs.w r0, r0, #0
  426. 8000646: eb41 5104 adc.w r1, r1, r4, lsl #20
  427. 800064a: bd70 pop {r4, r5, r6, pc}
  428. 800064c: f006 4600 and.w r6, r6, #2147483648 ; 0x80000000
  429. 8000650: ea46 0101 orr.w r1, r6, r1
  430. 8000654: ea40 0002 orr.w r0, r0, r2
  431. 8000658: ea81 0103 eor.w r1, r1, r3
  432. 800065c: ebb4 045c subs.w r4, r4, ip, lsr #1
  433. 8000660: bfc2 ittt gt
  434. 8000662: ebd4 050c rsbsgt r5, r4, ip
  435. 8000666: ea41 5104 orrgt.w r1, r1, r4, lsl #20
  436. 800066a: bd70 popgt {r4, r5, r6, pc}
  437. 800066c: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  438. 8000670: f04f 0e00 mov.w lr, #0
  439. 8000674: 3c01 subs r4, #1
  440. 8000676: f300 80ab bgt.w 80007d0 <__aeabi_dmul+0x238>
  441. 800067a: f114 0f36 cmn.w r4, #54 ; 0x36
  442. 800067e: bfde ittt le
  443. 8000680: 2000 movle r0, #0
  444. 8000682: f001 4100 andle.w r1, r1, #2147483648 ; 0x80000000
  445. 8000686: bd70 pople {r4, r5, r6, pc}
  446. 8000688: f1c4 0400 rsb r4, r4, #0
  447. 800068c: 3c20 subs r4, #32
  448. 800068e: da35 bge.n 80006fc <__aeabi_dmul+0x164>
  449. 8000690: 340c adds r4, #12
  450. 8000692: dc1b bgt.n 80006cc <__aeabi_dmul+0x134>
  451. 8000694: f104 0414 add.w r4, r4, #20
  452. 8000698: f1c4 0520 rsb r5, r4, #32
  453. 800069c: fa00 f305 lsl.w r3, r0, r5
  454. 80006a0: fa20 f004 lsr.w r0, r0, r4
  455. 80006a4: fa01 f205 lsl.w r2, r1, r5
  456. 80006a8: ea40 0002 orr.w r0, r0, r2
  457. 80006ac: f001 4200 and.w r2, r1, #2147483648 ; 0x80000000
  458. 80006b0: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000
  459. 80006b4: eb10 70d3 adds.w r0, r0, r3, lsr #31
  460. 80006b8: fa21 f604 lsr.w r6, r1, r4
  461. 80006bc: eb42 0106 adc.w r1, r2, r6
  462. 80006c0: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
  463. 80006c4: bf08 it eq
  464. 80006c6: ea20 70d3 biceq.w r0, r0, r3, lsr #31
  465. 80006ca: bd70 pop {r4, r5, r6, pc}
  466. 80006cc: f1c4 040c rsb r4, r4, #12
  467. 80006d0: f1c4 0520 rsb r5, r4, #32
  468. 80006d4: fa00 f304 lsl.w r3, r0, r4
  469. 80006d8: fa20 f005 lsr.w r0, r0, r5
  470. 80006dc: fa01 f204 lsl.w r2, r1, r4
  471. 80006e0: ea40 0002 orr.w r0, r0, r2
  472. 80006e4: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  473. 80006e8: eb10 70d3 adds.w r0, r0, r3, lsr #31
  474. 80006ec: f141 0100 adc.w r1, r1, #0
  475. 80006f0: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
  476. 80006f4: bf08 it eq
  477. 80006f6: ea20 70d3 biceq.w r0, r0, r3, lsr #31
  478. 80006fa: bd70 pop {r4, r5, r6, pc}
  479. 80006fc: f1c4 0520 rsb r5, r4, #32
  480. 8000700: fa00 f205 lsl.w r2, r0, r5
  481. 8000704: ea4e 0e02 orr.w lr, lr, r2
  482. 8000708: fa20 f304 lsr.w r3, r0, r4
  483. 800070c: fa01 f205 lsl.w r2, r1, r5
  484. 8000710: ea43 0302 orr.w r3, r3, r2
  485. 8000714: fa21 f004 lsr.w r0, r1, r4
  486. 8000718: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  487. 800071c: fa21 f204 lsr.w r2, r1, r4
  488. 8000720: ea20 0002 bic.w r0, r0, r2
  489. 8000724: eb00 70d3 add.w r0, r0, r3, lsr #31
  490. 8000728: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
  491. 800072c: bf08 it eq
  492. 800072e: ea20 70d3 biceq.w r0, r0, r3, lsr #31
  493. 8000732: bd70 pop {r4, r5, r6, pc}
  494. 8000734: f094 0f00 teq r4, #0
  495. 8000738: d10f bne.n 800075a <__aeabi_dmul+0x1c2>
  496. 800073a: f001 4600 and.w r6, r1, #2147483648 ; 0x80000000
  497. 800073e: 0040 lsls r0, r0, #1
  498. 8000740: eb41 0101 adc.w r1, r1, r1
  499. 8000744: f411 1f80 tst.w r1, #1048576 ; 0x100000
  500. 8000748: bf08 it eq
  501. 800074a: 3c01 subeq r4, #1
  502. 800074c: d0f7 beq.n 800073e <__aeabi_dmul+0x1a6>
  503. 800074e: ea41 0106 orr.w r1, r1, r6
  504. 8000752: f095 0f00 teq r5, #0
  505. 8000756: bf18 it ne
  506. 8000758: 4770 bxne lr
  507. 800075a: f003 4600 and.w r6, r3, #2147483648 ; 0x80000000
  508. 800075e: 0052 lsls r2, r2, #1
  509. 8000760: eb43 0303 adc.w r3, r3, r3
  510. 8000764: f413 1f80 tst.w r3, #1048576 ; 0x100000
  511. 8000768: bf08 it eq
  512. 800076a: 3d01 subeq r5, #1
  513. 800076c: d0f7 beq.n 800075e <__aeabi_dmul+0x1c6>
  514. 800076e: ea43 0306 orr.w r3, r3, r6
  515. 8000772: 4770 bx lr
  516. 8000774: ea94 0f0c teq r4, ip
  517. 8000778: ea0c 5513 and.w r5, ip, r3, lsr #20
  518. 800077c: bf18 it ne
  519. 800077e: ea95 0f0c teqne r5, ip
  520. 8000782: d00c beq.n 800079e <__aeabi_dmul+0x206>
  521. 8000784: ea50 0641 orrs.w r6, r0, r1, lsl #1
  522. 8000788: bf18 it ne
  523. 800078a: ea52 0643 orrsne.w r6, r2, r3, lsl #1
  524. 800078e: d1d1 bne.n 8000734 <__aeabi_dmul+0x19c>
  525. 8000790: ea81 0103 eor.w r1, r1, r3
  526. 8000794: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  527. 8000798: f04f 0000 mov.w r0, #0
  528. 800079c: bd70 pop {r4, r5, r6, pc}
  529. 800079e: ea50 0641 orrs.w r6, r0, r1, lsl #1
  530. 80007a2: bf06 itte eq
  531. 80007a4: 4610 moveq r0, r2
  532. 80007a6: 4619 moveq r1, r3
  533. 80007a8: ea52 0643 orrsne.w r6, r2, r3, lsl #1
  534. 80007ac: d019 beq.n 80007e2 <__aeabi_dmul+0x24a>
  535. 80007ae: ea94 0f0c teq r4, ip
  536. 80007b2: d102 bne.n 80007ba <__aeabi_dmul+0x222>
  537. 80007b4: ea50 3601 orrs.w r6, r0, r1, lsl #12
  538. 80007b8: d113 bne.n 80007e2 <__aeabi_dmul+0x24a>
  539. 80007ba: ea95 0f0c teq r5, ip
  540. 80007be: d105 bne.n 80007cc <__aeabi_dmul+0x234>
  541. 80007c0: ea52 3603 orrs.w r6, r2, r3, lsl #12
  542. 80007c4: bf1c itt ne
  543. 80007c6: 4610 movne r0, r2
  544. 80007c8: 4619 movne r1, r3
  545. 80007ca: d10a bne.n 80007e2 <__aeabi_dmul+0x24a>
  546. 80007cc: ea81 0103 eor.w r1, r1, r3
  547. 80007d0: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  548. 80007d4: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000
  549. 80007d8: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000
  550. 80007dc: f04f 0000 mov.w r0, #0
  551. 80007e0: bd70 pop {r4, r5, r6, pc}
  552. 80007e2: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000
  553. 80007e6: f441 0178 orr.w r1, r1, #16252928 ; 0xf80000
  554. 80007ea: bd70 pop {r4, r5, r6, pc}
  555. 080007ec <__aeabi_ddiv>:
  556. 80007ec: b570 push {r4, r5, r6, lr}
  557. 80007ee: f04f 0cff mov.w ip, #255 ; 0xff
  558. 80007f2: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700
  559. 80007f6: ea1c 5411 ands.w r4, ip, r1, lsr #20
  560. 80007fa: bf1d ittte ne
  561. 80007fc: ea1c 5513 andsne.w r5, ip, r3, lsr #20
  562. 8000800: ea94 0f0c teqne r4, ip
  563. 8000804: ea95 0f0c teqne r5, ip
  564. 8000808: f000 f8a7 bleq 800095a <__aeabi_ddiv+0x16e>
  565. 800080c: eba4 0405 sub.w r4, r4, r5
  566. 8000810: ea81 0e03 eor.w lr, r1, r3
  567. 8000814: ea52 3503 orrs.w r5, r2, r3, lsl #12
  568. 8000818: ea4f 3101 mov.w r1, r1, lsl #12
  569. 800081c: f000 8088 beq.w 8000930 <__aeabi_ddiv+0x144>
  570. 8000820: ea4f 3303 mov.w r3, r3, lsl #12
  571. 8000824: f04f 5580 mov.w r5, #268435456 ; 0x10000000
  572. 8000828: ea45 1313 orr.w r3, r5, r3, lsr #4
  573. 800082c: ea43 6312 orr.w r3, r3, r2, lsr #24
  574. 8000830: ea4f 2202 mov.w r2, r2, lsl #8
  575. 8000834: ea45 1511 orr.w r5, r5, r1, lsr #4
  576. 8000838: ea45 6510 orr.w r5, r5, r0, lsr #24
  577. 800083c: ea4f 2600 mov.w r6, r0, lsl #8
  578. 8000840: f00e 4100 and.w r1, lr, #2147483648 ; 0x80000000
  579. 8000844: 429d cmp r5, r3
  580. 8000846: bf08 it eq
  581. 8000848: 4296 cmpeq r6, r2
  582. 800084a: f144 04fd adc.w r4, r4, #253 ; 0xfd
  583. 800084e: f504 7440 add.w r4, r4, #768 ; 0x300
  584. 8000852: d202 bcs.n 800085a <__aeabi_ddiv+0x6e>
  585. 8000854: 085b lsrs r3, r3, #1
  586. 8000856: ea4f 0232 mov.w r2, r2, rrx
  587. 800085a: 1ab6 subs r6, r6, r2
  588. 800085c: eb65 0503 sbc.w r5, r5, r3
  589. 8000860: 085b lsrs r3, r3, #1
  590. 8000862: ea4f 0232 mov.w r2, r2, rrx
  591. 8000866: f44f 1080 mov.w r0, #1048576 ; 0x100000
  592. 800086a: f44f 2c00 mov.w ip, #524288 ; 0x80000
  593. 800086e: ebb6 0e02 subs.w lr, r6, r2
  594. 8000872: eb75 0e03 sbcs.w lr, r5, r3
  595. 8000876: bf22 ittt cs
  596. 8000878: 1ab6 subcs r6, r6, r2
  597. 800087a: 4675 movcs r5, lr
  598. 800087c: ea40 000c orrcs.w r0, r0, ip
  599. 8000880: 085b lsrs r3, r3, #1
  600. 8000882: ea4f 0232 mov.w r2, r2, rrx
  601. 8000886: ebb6 0e02 subs.w lr, r6, r2
  602. 800088a: eb75 0e03 sbcs.w lr, r5, r3
  603. 800088e: bf22 ittt cs
  604. 8000890: 1ab6 subcs r6, r6, r2
  605. 8000892: 4675 movcs r5, lr
  606. 8000894: ea40 005c orrcs.w r0, r0, ip, lsr #1
  607. 8000898: 085b lsrs r3, r3, #1
  608. 800089a: ea4f 0232 mov.w r2, r2, rrx
  609. 800089e: ebb6 0e02 subs.w lr, r6, r2
  610. 80008a2: eb75 0e03 sbcs.w lr, r5, r3
  611. 80008a6: bf22 ittt cs
  612. 80008a8: 1ab6 subcs r6, r6, r2
  613. 80008aa: 4675 movcs r5, lr
  614. 80008ac: ea40 009c orrcs.w r0, r0, ip, lsr #2
  615. 80008b0: 085b lsrs r3, r3, #1
  616. 80008b2: ea4f 0232 mov.w r2, r2, rrx
  617. 80008b6: ebb6 0e02 subs.w lr, r6, r2
  618. 80008ba: eb75 0e03 sbcs.w lr, r5, r3
  619. 80008be: bf22 ittt cs
  620. 80008c0: 1ab6 subcs r6, r6, r2
  621. 80008c2: 4675 movcs r5, lr
  622. 80008c4: ea40 00dc orrcs.w r0, r0, ip, lsr #3
  623. 80008c8: ea55 0e06 orrs.w lr, r5, r6
  624. 80008cc: d018 beq.n 8000900 <__aeabi_ddiv+0x114>
  625. 80008ce: ea4f 1505 mov.w r5, r5, lsl #4
  626. 80008d2: ea45 7516 orr.w r5, r5, r6, lsr #28
  627. 80008d6: ea4f 1606 mov.w r6, r6, lsl #4
  628. 80008da: ea4f 03c3 mov.w r3, r3, lsl #3
  629. 80008de: ea43 7352 orr.w r3, r3, r2, lsr #29
  630. 80008e2: ea4f 02c2 mov.w r2, r2, lsl #3
  631. 80008e6: ea5f 1c1c movs.w ip, ip, lsr #4
  632. 80008ea: d1c0 bne.n 800086e <__aeabi_ddiv+0x82>
  633. 80008ec: f411 1f80 tst.w r1, #1048576 ; 0x100000
  634. 80008f0: d10b bne.n 800090a <__aeabi_ddiv+0x11e>
  635. 80008f2: ea41 0100 orr.w r1, r1, r0
  636. 80008f6: f04f 0000 mov.w r0, #0
  637. 80008fa: f04f 4c00 mov.w ip, #2147483648 ; 0x80000000
  638. 80008fe: e7b6 b.n 800086e <__aeabi_ddiv+0x82>
  639. 8000900: f411 1f80 tst.w r1, #1048576 ; 0x100000
  640. 8000904: bf04 itt eq
  641. 8000906: 4301 orreq r1, r0
  642. 8000908: 2000 moveq r0, #0
  643. 800090a: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd
  644. 800090e: bf88 it hi
  645. 8000910: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700
  646. 8000914: f63f aeaf bhi.w 8000676 <__aeabi_dmul+0xde>
  647. 8000918: ebb5 0c03 subs.w ip, r5, r3
  648. 800091c: bf04 itt eq
  649. 800091e: ebb6 0c02 subseq.w ip, r6, r2
  650. 8000922: ea5f 0c50 movseq.w ip, r0, lsr #1
  651. 8000926: f150 0000 adcs.w r0, r0, #0
  652. 800092a: eb41 5104 adc.w r1, r1, r4, lsl #20
  653. 800092e: bd70 pop {r4, r5, r6, pc}
  654. 8000930: f00e 4e00 and.w lr, lr, #2147483648 ; 0x80000000
  655. 8000934: ea4e 3111 orr.w r1, lr, r1, lsr #12
  656. 8000938: eb14 045c adds.w r4, r4, ip, lsr #1
  657. 800093c: bfc2 ittt gt
  658. 800093e: ebd4 050c rsbsgt r5, r4, ip
  659. 8000942: ea41 5104 orrgt.w r1, r1, r4, lsl #20
  660. 8000946: bd70 popgt {r4, r5, r6, pc}
  661. 8000948: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  662. 800094c: f04f 0e00 mov.w lr, #0
  663. 8000950: 3c01 subs r4, #1
  664. 8000952: e690 b.n 8000676 <__aeabi_dmul+0xde>
  665. 8000954: ea45 0e06 orr.w lr, r5, r6
  666. 8000958: e68d b.n 8000676 <__aeabi_dmul+0xde>
  667. 800095a: ea0c 5513 and.w r5, ip, r3, lsr #20
  668. 800095e: ea94 0f0c teq r4, ip
  669. 8000962: bf08 it eq
  670. 8000964: ea95 0f0c teqeq r5, ip
  671. 8000968: f43f af3b beq.w 80007e2 <__aeabi_dmul+0x24a>
  672. 800096c: ea94 0f0c teq r4, ip
  673. 8000970: d10a bne.n 8000988 <__aeabi_ddiv+0x19c>
  674. 8000972: ea50 3401 orrs.w r4, r0, r1, lsl #12
  675. 8000976: f47f af34 bne.w 80007e2 <__aeabi_dmul+0x24a>
  676. 800097a: ea95 0f0c teq r5, ip
  677. 800097e: f47f af25 bne.w 80007cc <__aeabi_dmul+0x234>
  678. 8000982: 4610 mov r0, r2
  679. 8000984: 4619 mov r1, r3
  680. 8000986: e72c b.n 80007e2 <__aeabi_dmul+0x24a>
  681. 8000988: ea95 0f0c teq r5, ip
  682. 800098c: d106 bne.n 800099c <__aeabi_ddiv+0x1b0>
  683. 800098e: ea52 3503 orrs.w r5, r2, r3, lsl #12
  684. 8000992: f43f aefd beq.w 8000790 <__aeabi_dmul+0x1f8>
  685. 8000996: 4610 mov r0, r2
  686. 8000998: 4619 mov r1, r3
  687. 800099a: e722 b.n 80007e2 <__aeabi_dmul+0x24a>
  688. 800099c: ea50 0641 orrs.w r6, r0, r1, lsl #1
  689. 80009a0: bf18 it ne
  690. 80009a2: ea52 0643 orrsne.w r6, r2, r3, lsl #1
  691. 80009a6: f47f aec5 bne.w 8000734 <__aeabi_dmul+0x19c>
  692. 80009aa: ea50 0441 orrs.w r4, r0, r1, lsl #1
  693. 80009ae: f47f af0d bne.w 80007cc <__aeabi_dmul+0x234>
  694. 80009b2: ea52 0543 orrs.w r5, r2, r3, lsl #1
  695. 80009b6: f47f aeeb bne.w 8000790 <__aeabi_dmul+0x1f8>
  696. 80009ba: e712 b.n 80007e2 <__aeabi_dmul+0x24a>
  697. 080009bc <__gedf2>:
  698. 80009bc: f04f 3cff mov.w ip, #4294967295
  699. 80009c0: e006 b.n 80009d0 <__cmpdf2+0x4>
  700. 80009c2: bf00 nop
  701. 080009c4 <__ledf2>:
  702. 80009c4: f04f 0c01 mov.w ip, #1
  703. 80009c8: e002 b.n 80009d0 <__cmpdf2+0x4>
  704. 80009ca: bf00 nop
  705. 080009cc <__cmpdf2>:
  706. 80009cc: f04f 0c01 mov.w ip, #1
  707. 80009d0: f84d cd04 str.w ip, [sp, #-4]!
  708. 80009d4: ea4f 0c41 mov.w ip, r1, lsl #1
  709. 80009d8: ea7f 5c6c mvns.w ip, ip, asr #21
  710. 80009dc: ea4f 0c43 mov.w ip, r3, lsl #1
  711. 80009e0: bf18 it ne
  712. 80009e2: ea7f 5c6c mvnsne.w ip, ip, asr #21
  713. 80009e6: d01b beq.n 8000a20 <__cmpdf2+0x54>
  714. 80009e8: b001 add sp, #4
  715. 80009ea: ea50 0c41 orrs.w ip, r0, r1, lsl #1
  716. 80009ee: bf0c ite eq
  717. 80009f0: ea52 0c43 orrseq.w ip, r2, r3, lsl #1
  718. 80009f4: ea91 0f03 teqne r1, r3
  719. 80009f8: bf02 ittt eq
  720. 80009fa: ea90 0f02 teqeq r0, r2
  721. 80009fe: 2000 moveq r0, #0
  722. 8000a00: 4770 bxeq lr
  723. 8000a02: f110 0f00 cmn.w r0, #0
  724. 8000a06: ea91 0f03 teq r1, r3
  725. 8000a0a: bf58 it pl
  726. 8000a0c: 4299 cmppl r1, r3
  727. 8000a0e: bf08 it eq
  728. 8000a10: 4290 cmpeq r0, r2
  729. 8000a12: bf2c ite cs
  730. 8000a14: 17d8 asrcs r0, r3, #31
  731. 8000a16: ea6f 70e3 mvncc.w r0, r3, asr #31
  732. 8000a1a: f040 0001 orr.w r0, r0, #1
  733. 8000a1e: 4770 bx lr
  734. 8000a20: ea4f 0c41 mov.w ip, r1, lsl #1
  735. 8000a24: ea7f 5c6c mvns.w ip, ip, asr #21
  736. 8000a28: d102 bne.n 8000a30 <__cmpdf2+0x64>
  737. 8000a2a: ea50 3c01 orrs.w ip, r0, r1, lsl #12
  738. 8000a2e: d107 bne.n 8000a40 <__cmpdf2+0x74>
  739. 8000a30: ea4f 0c43 mov.w ip, r3, lsl #1
  740. 8000a34: ea7f 5c6c mvns.w ip, ip, asr #21
  741. 8000a38: d1d6 bne.n 80009e8 <__cmpdf2+0x1c>
  742. 8000a3a: ea52 3c03 orrs.w ip, r2, r3, lsl #12
  743. 8000a3e: d0d3 beq.n 80009e8 <__cmpdf2+0x1c>
  744. 8000a40: f85d 0b04 ldr.w r0, [sp], #4
  745. 8000a44: 4770 bx lr
  746. 8000a46: bf00 nop
  747. 08000a48 <__aeabi_cdrcmple>:
  748. 8000a48: 4684 mov ip, r0
  749. 8000a4a: 4610 mov r0, r2
  750. 8000a4c: 4662 mov r2, ip
  751. 8000a4e: 468c mov ip, r1
  752. 8000a50: 4619 mov r1, r3
  753. 8000a52: 4663 mov r3, ip
  754. 8000a54: e000 b.n 8000a58 <__aeabi_cdcmpeq>
  755. 8000a56: bf00 nop
  756. 08000a58 <__aeabi_cdcmpeq>:
  757. 8000a58: b501 push {r0, lr}
  758. 8000a5a: f7ff ffb7 bl 80009cc <__cmpdf2>
  759. 8000a5e: 2800 cmp r0, #0
  760. 8000a60: bf48 it mi
  761. 8000a62: f110 0f00 cmnmi.w r0, #0
  762. 8000a66: bd01 pop {r0, pc}
  763. 08000a68 <__aeabi_dcmpeq>:
  764. 8000a68: f84d ed08 str.w lr, [sp, #-8]!
  765. 8000a6c: f7ff fff4 bl 8000a58 <__aeabi_cdcmpeq>
  766. 8000a70: bf0c ite eq
  767. 8000a72: 2001 moveq r0, #1
  768. 8000a74: 2000 movne r0, #0
  769. 8000a76: f85d fb08 ldr.w pc, [sp], #8
  770. 8000a7a: bf00 nop
  771. 08000a7c <__aeabi_dcmplt>:
  772. 8000a7c: f84d ed08 str.w lr, [sp, #-8]!
  773. 8000a80: f7ff ffea bl 8000a58 <__aeabi_cdcmpeq>
  774. 8000a84: bf34 ite cc
  775. 8000a86: 2001 movcc r0, #1
  776. 8000a88: 2000 movcs r0, #0
  777. 8000a8a: f85d fb08 ldr.w pc, [sp], #8
  778. 8000a8e: bf00 nop
  779. 08000a90 <__aeabi_dcmple>:
  780. 8000a90: f84d ed08 str.w lr, [sp, #-8]!
  781. 8000a94: f7ff ffe0 bl 8000a58 <__aeabi_cdcmpeq>
  782. 8000a98: bf94 ite ls
  783. 8000a9a: 2001 movls r0, #1
  784. 8000a9c: 2000 movhi r0, #0
  785. 8000a9e: f85d fb08 ldr.w pc, [sp], #8
  786. 8000aa2: bf00 nop
  787. 08000aa4 <__aeabi_dcmpge>:
  788. 8000aa4: f84d ed08 str.w lr, [sp, #-8]!
  789. 8000aa8: f7ff ffce bl 8000a48 <__aeabi_cdrcmple>
  790. 8000aac: bf94 ite ls
  791. 8000aae: 2001 movls r0, #1
  792. 8000ab0: 2000 movhi r0, #0
  793. 8000ab2: f85d fb08 ldr.w pc, [sp], #8
  794. 8000ab6: bf00 nop
  795. 08000ab8 <__aeabi_dcmpgt>:
  796. 8000ab8: f84d ed08 str.w lr, [sp, #-8]!
  797. 8000abc: f7ff ffc4 bl 8000a48 <__aeabi_cdrcmple>
  798. 8000ac0: bf34 ite cc
  799. 8000ac2: 2001 movcc r0, #1
  800. 8000ac4: 2000 movcs r0, #0
  801. 8000ac6: f85d fb08 ldr.w pc, [sp], #8
  802. 8000aca: bf00 nop
  803. 08000acc <__aeabi_dcmpun>:
  804. 8000acc: ea4f 0c41 mov.w ip, r1, lsl #1
  805. 8000ad0: ea7f 5c6c mvns.w ip, ip, asr #21
  806. 8000ad4: d102 bne.n 8000adc <__aeabi_dcmpun+0x10>
  807. 8000ad6: ea50 3c01 orrs.w ip, r0, r1, lsl #12
  808. 8000ada: d10a bne.n 8000af2 <__aeabi_dcmpun+0x26>
  809. 8000adc: ea4f 0c43 mov.w ip, r3, lsl #1
  810. 8000ae0: ea7f 5c6c mvns.w ip, ip, asr #21
  811. 8000ae4: d102 bne.n 8000aec <__aeabi_dcmpun+0x20>
  812. 8000ae6: ea52 3c03 orrs.w ip, r2, r3, lsl #12
  813. 8000aea: d102 bne.n 8000af2 <__aeabi_dcmpun+0x26>
  814. 8000aec: f04f 0000 mov.w r0, #0
  815. 8000af0: 4770 bx lr
  816. 8000af2: f04f 0001 mov.w r0, #1
  817. 8000af6: 4770 bx lr
  818. 08000af8 <__aeabi_d2iz>:
  819. 8000af8: ea4f 0241 mov.w r2, r1, lsl #1
  820. 8000afc: f512 1200 adds.w r2, r2, #2097152 ; 0x200000
  821. 8000b00: d215 bcs.n 8000b2e <__aeabi_d2iz+0x36>
  822. 8000b02: d511 bpl.n 8000b28 <__aeabi_d2iz+0x30>
  823. 8000b04: f46f 7378 mvn.w r3, #992 ; 0x3e0
  824. 8000b08: ebb3 5262 subs.w r2, r3, r2, asr #21
  825. 8000b0c: d912 bls.n 8000b34 <__aeabi_d2iz+0x3c>
  826. 8000b0e: ea4f 23c1 mov.w r3, r1, lsl #11
  827. 8000b12: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  828. 8000b16: ea43 5350 orr.w r3, r3, r0, lsr #21
  829. 8000b1a: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
  830. 8000b1e: fa23 f002 lsr.w r0, r3, r2
  831. 8000b22: bf18 it ne
  832. 8000b24: 4240 negne r0, r0
  833. 8000b26: 4770 bx lr
  834. 8000b28: f04f 0000 mov.w r0, #0
  835. 8000b2c: 4770 bx lr
  836. 8000b2e: ea50 3001 orrs.w r0, r0, r1, lsl #12
  837. 8000b32: d105 bne.n 8000b40 <__aeabi_d2iz+0x48>
  838. 8000b34: f011 4000 ands.w r0, r1, #2147483648 ; 0x80000000
  839. 8000b38: bf08 it eq
  840. 8000b3a: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000
  841. 8000b3e: 4770 bx lr
  842. 8000b40: f04f 0000 mov.w r0, #0
  843. 8000b44: 4770 bx lr
  844. 8000b46: bf00 nop
  845. 08000b48 <NessLab_Operate>:
  846. Nesslab_Prot Currstatus;
  847. uint8_t data_Tx[50] = {0,};
  848. extern volatile uint16_t ADC1value[ADC1_CNT];
  849. void NessLab_Operate(uint8_t* data){
  850. 8000b48: b580 push {r7, lr}
  851. 8000b4a: b084 sub sp, #16
  852. 8000b4c: af00 add r7, sp, #0
  853. 8000b4e: 6078 str r0, [r7, #4]
  854. uint8_t datatype = data[NessLab_MsgID0];
  855. 8000b50: 687b ldr r3, [r7, #4]
  856. 8000b52: 789b ldrb r3, [r3, #2]
  857. 8000b54: 73fb strb r3, [r7, #15]
  858. switch(datatype){
  859. 8000b56: 7bfb ldrb r3, [r7, #15]
  860. 8000b58: 2b65 cmp r3, #101 ; 0x65
  861. 8000b5a: d102 bne.n 8000b62 <NessLab_Operate+0x1a>
  862. case NessLab_STATUS_REQ:
  863. ADC_Check();
  864. 8000b5c: f000 f88c bl 8000c78 <ADC_Check>
  865. break;
  866. 8000b60: bf00 nop
  867. }
  868. NessLab_Frame_Set(data,12);
  869. 8000b62: 687b ldr r3, [r7, #4]
  870. 8000b64: 210c movs r1, #12
  871. 8000b66: 4618 mov r0, r3
  872. 8000b68: f000 f809 bl 8000b7e <NessLab_Frame_Set>
  873. Uart1_Data_Send(&data, 30);
  874. 8000b6c: 1d3b adds r3, r7, #4
  875. 8000b6e: 211e movs r1, #30
  876. 8000b70: 4618 mov r0, r3
  877. 8000b72: f000 fa11 bl 8000f98 <Uart1_Data_Send>
  878. }
  879. 8000b76: bf00 nop
  880. 8000b78: 3710 adds r7, #16
  881. 8000b7a: 46bd mov sp, r7
  882. 8000b7c: bd80 pop {r7, pc}
  883. 08000b7e <NessLab_Frame_Set>:
  884. void NessLab_Frame_Set(uint8_t* data,uint8_t size){
  885. 8000b7e: b590 push {r4, r7, lr}
  886. 8000b80: b083 sub sp, #12
  887. 8000b82: af00 add r7, sp, #0
  888. 8000b84: 6078 str r0, [r7, #4]
  889. 8000b86: 460b mov r3, r1
  890. 8000b88: 70fb strb r3, [r7, #3]
  891. data[NessLab_Header0] = 0x7E;
  892. 8000b8a: 687b ldr r3, [r7, #4]
  893. 8000b8c: 227e movs r2, #126 ; 0x7e
  894. 8000b8e: 701a strb r2, [r3, #0]
  895. data[NessLab_Header1] = 0x7E;
  896. 8000b90: 687b ldr r3, [r7, #4]
  897. 8000b92: 3301 adds r3, #1
  898. 8000b94: 227e movs r2, #126 ; 0x7e
  899. 8000b96: 701a strb r2, [r3, #0]
  900. data[NessLab_MsgID0] = NessLab_STATUS_RES;// ID
  901. 8000b98: 687b ldr r3, [r7, #4]
  902. 8000b9a: 3302 adds r3, #2
  903. 8000b9c: 2266 movs r2, #102 ; 0x66
  904. 8000b9e: 701a strb r2, [r3, #0]
  905. data[NessLab_MsgSN0] = 0; // SEQ NUMBER
  906. 8000ba0: 687b ldr r3, [r7, #4]
  907. 8000ba2: 3303 adds r3, #3
  908. 8000ba4: 2200 movs r2, #0
  909. 8000ba6: 701a strb r2, [r3, #0]
  910. data[NessLab_MsgSN1] = 0; // SEQ NUMBER
  911. 8000ba8: 687b ldr r3, [r7, #4]
  912. 8000baa: 3304 adds r3, #4
  913. 8000bac: 2200 movs r2, #0
  914. 8000bae: 701a strb r2, [r3, #0]
  915. data[NessLab_Reserve0] = 0; // NessLab_Reserve0
  916. 8000bb0: 687b ldr r3, [r7, #4]
  917. 8000bb2: 3305 adds r3, #5
  918. 8000bb4: 2200 movs r2, #0
  919. 8000bb6: 701a strb r2, [r3, #0]
  920. data[NessLab_DataLength] = size; // Nesslab Size
  921. 8000bb8: 687b ldr r3, [r7, #4]
  922. 8000bba: 3306 adds r3, #6
  923. 8000bbc: 78fa ldrb r2, [r7, #3]
  924. 8000bbe: 701a strb r2, [r3, #0]
  925. data[NessLab_Data_ADC0_H] = 12; // (uint8_t)((ADC1value & 0xFF00) >> 8);
  926. 8000bc0: 687b ldr r3, [r7, #4]
  927. 8000bc2: 3307 adds r3, #7
  928. 8000bc4: 220c movs r2, #12
  929. 8000bc6: 701a strb r2, [r3, #0]
  930. data[NessLab_Data_ADC0_L] = 34; // (uint8_t)(ADC1value & 0x00FF);
  931. 8000bc8: 687b ldr r3, [r7, #4]
  932. 8000bca: 3308 adds r3, #8
  933. 8000bcc: 2222 movs r2, #34 ; 0x22
  934. 8000bce: 701a strb r2, [r3, #0]
  935. data[NessLab_Data_ADC1_H] = 00;
  936. 8000bd0: 687b ldr r3, [r7, #4]
  937. 8000bd2: 3309 adds r3, #9
  938. 8000bd4: 2200 movs r2, #0
  939. 8000bd6: 701a strb r2, [r3, #0]
  940. data[NessLab_Data_ADC1_L] = 00;
  941. 8000bd8: 687b ldr r3, [r7, #4]
  942. 8000bda: 330a adds r3, #10
  943. 8000bdc: 2200 movs r2, #0
  944. 8000bde: 701a strb r2, [r3, #0]
  945. data[DC_FAIL_ALARM] = 11;
  946. 8000be0: 687b ldr r3, [r7, #4]
  947. 8000be2: 330b adds r3, #11
  948. 8000be4: 220b movs r2, #11
  949. 8000be6: 701a strb r2, [r3, #0]
  950. data[NessLab_DownLink_Status] = 22;
  951. 8000be8: 687b ldr r3, [r7, #4]
  952. 8000bea: 330c adds r3, #12
  953. 8000bec: 2216 movs r2, #22
  954. 8000bee: 701a strb r2, [r3, #0]
  955. data[NessLab_Over_Power_Alarm] = 33;
  956. 8000bf0: 687b ldr r3, [r7, #4]
  957. 8000bf2: 330d adds r3, #13
  958. 8000bf4: 2221 movs r2, #33 ; 0x21
  959. 8000bf6: 701a strb r2, [r3, #0]
  960. data[NessLab_VSWR_ALARM] = 44;
  961. 8000bf8: 687b ldr r3, [r7, #4]
  962. 8000bfa: 330e adds r3, #14
  963. 8000bfc: 222c movs r2, #44 ; 0x2c
  964. 8000bfe: 701a strb r2, [r3, #0]
  965. data[NessLab_Over_Input_Alarm] = 55;
  966. 8000c00: 687b ldr r3, [r7, #4]
  967. 8000c02: 330f adds r3, #15
  968. 8000c04: 2237 movs r2, #55 ; 0x37
  969. 8000c06: 701a strb r2, [r3, #0]
  970. data[NessLab_Over_Temp_Alarm] = 66;
  971. 8000c08: 687b ldr r3, [r7, #4]
  972. 8000c0a: 3310 adds r3, #16
  973. 8000c0c: 2242 movs r2, #66 ; 0x42
  974. 8000c0e: 701a strb r2, [r3, #0]
  975. data[NessLab_Temp_Monitor] = 77;
  976. 8000c10: 687b ldr r3, [r7, #4]
  977. 8000c12: 3311 adds r3, #17
  978. 8000c14: 224d movs r2, #77 ; 0x4d
  979. 8000c16: 701a strb r2, [r3, #0]
  980. data[NessLab_ALC_ALARM] = 88;
  981. 8000c18: 687b ldr r3, [r7, #4]
  982. 8000c1a: 3312 adds r3, #18
  983. 8000c1c: 2258 movs r2, #88 ; 0x58
  984. 8000c1e: 701a strb r2, [r3, #0]
  985. data[NessLab_ChecksumVal] = NessLab_Checksum(0, 17);
  986. 8000c20: 687b ldr r3, [r7, #4]
  987. 8000c22: f103 0413 add.w r4, r3, #19
  988. 8000c26: 2111 movs r1, #17
  989. 8000c28: 2000 movs r0, #0
  990. 8000c2a: f000 f876 bl 8000d1a <NessLab_Checksum>
  991. 8000c2e: 4603 mov r3, r0
  992. 8000c30: 7023 strb r3, [r4, #0]
  993. /* Exception Header Tail Checksum */
  994. data[NessLab_Tail0] = 0x7E;
  995. 8000c32: 687b ldr r3, [r7, #4]
  996. 8000c34: 3314 adds r3, #20
  997. 8000c36: 227e movs r2, #126 ; 0x7e
  998. 8000c38: 701a strb r2, [r3, #0]
  999. data[NessLab_Tail0] = 0x7E;
  1000. 8000c3a: 687b ldr r3, [r7, #4]
  1001. 8000c3c: 3314 adds r3, #20
  1002. 8000c3e: 227e movs r2, #126 ; 0x7e
  1003. 8000c40: 701a strb r2, [r3, #0]
  1004. }
  1005. 8000c42: bf00 nop
  1006. 8000c44: 370c adds r7, #12
  1007. 8000c46: 46bd mov sp, r7
  1008. 8000c48: bd90 pop {r4, r7, pc}
  1009. ...
  1010. 08000c4c <ADC_Initialize>:
  1011. /*Temp Calc*/
  1012. Currstatus.Temp_Monitor = ((ADC1value[1] & 0xFF00) >> 8);
  1013. }
  1014. void ADC_Initialize(){
  1015. 8000c4c: b580 push {r7, lr}
  1016. 8000c4e: af00 add r7, sp, #0
  1017. while(!(HAL_ADCEx_Calibration_Start(&hadc1)==HAL_OK));
  1018. 8000c50: bf00 nop
  1019. 8000c52: 4806 ldr r0, [pc, #24] ; (8000c6c <ADC_Initialize+0x20>)
  1020. 8000c54: f000 fe16 bl 8001884 <HAL_ADCEx_Calibration_Start>
  1021. 8000c58: 4603 mov r3, r0
  1022. 8000c5a: 2b00 cmp r3, #0
  1023. 8000c5c: d1f9 bne.n 8000c52 <ADC_Initialize+0x6>
  1024. HAL_ADC_Start_DMA(&hadc1, (uint16_t*)ADC1value,(uint32_t) 3);
  1025. 8000c5e: 2203 movs r2, #3
  1026. 8000c60: 4903 ldr r1, [pc, #12] ; (8000c70 <ADC_Initialize+0x24>)
  1027. 8000c62: 4802 ldr r0, [pc, #8] ; (8000c6c <ADC_Initialize+0x20>)
  1028. 8000c64: f000 faac bl 80011c0 <HAL_ADC_Start_DMA>
  1029. }
  1030. 8000c68: bf00 nop
  1031. 8000c6a: bd80 pop {r7, pc}
  1032. 8000c6c: 20000504 .word 0x20000504
  1033. 8000c70: 20000214 .word 0x20000214
  1034. 8000c74: 00000000 .word 0x00000000
  1035. 08000c78 <ADC_Check>:
  1036. void ADC_Check(){
  1037. 8000c78: b590 push {r4, r7, lr}
  1038. 8000c7a: b085 sub sp, #20
  1039. 8000c7c: af00 add r7, sp, #0
  1040. double tempval = 0;
  1041. 8000c7e: f04f 0300 mov.w r3, #0
  1042. 8000c82: f04f 0400 mov.w r4, #0
  1043. 8000c86: e9c7 3400 strd r3, r4, [r7]
  1044. for(int i = 0 ; i < ADC1_CNT; i++){
  1045. 8000c8a: 2300 movs r3, #0
  1046. 8000c8c: 60fb str r3, [r7, #12]
  1047. 8000c8e: e022 b.n 8000cd6 <ADC_Check+0x5e>
  1048. tempval = (ADC1value[i] * (3.3 / 4095)) * 100;
  1049. 8000c90: 4a19 ldr r2, [pc, #100] ; (8000cf8 <ADC_Check+0x80>)
  1050. 8000c92: 68fb ldr r3, [r7, #12]
  1051. 8000c94: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  1052. 8000c98: b29b uxth r3, r3
  1053. 8000c9a: 4618 mov r0, r3
  1054. 8000c9c: f7ff fc12 bl 80004c4 <__aeabi_i2d>
  1055. 8000ca0: a313 add r3, pc, #76 ; (adr r3, 8000cf0 <ADC_Check+0x78>)
  1056. 8000ca2: e9d3 2300 ldrd r2, r3, [r3]
  1057. 8000ca6: f7ff fc77 bl 8000598 <__aeabi_dmul>
  1058. 8000caa: 4603 mov r3, r0
  1059. 8000cac: 460c mov r4, r1
  1060. 8000cae: 4618 mov r0, r3
  1061. 8000cb0: 4621 mov r1, r4
  1062. 8000cb2: f04f 0200 mov.w r2, #0
  1063. 8000cb6: 4b11 ldr r3, [pc, #68] ; (8000cfc <ADC_Check+0x84>)
  1064. 8000cb8: f7ff fc6e bl 8000598 <__aeabi_dmul>
  1065. 8000cbc: 4603 mov r3, r0
  1066. 8000cbe: 460c mov r4, r1
  1067. 8000cc0: e9c7 3400 strd r3, r4, [r7]
  1068. printf("ADC1value[%d] : %f \r\n",i,tempval);
  1069. 8000cc4: e9d7 2300 ldrd r2, r3, [r7]
  1070. 8000cc8: 68f9 ldr r1, [r7, #12]
  1071. 8000cca: 480d ldr r0, [pc, #52] ; (8000d00 <ADC_Check+0x88>)
  1072. 8000ccc: f004 fb4e bl 800536c <iprintf>
  1073. for(int i = 0 ; i < ADC1_CNT; i++){
  1074. 8000cd0: 68fb ldr r3, [r7, #12]
  1075. 8000cd2: 3301 adds r3, #1
  1076. 8000cd4: 60fb str r3, [r7, #12]
  1077. 8000cd6: 68fb ldr r3, [r7, #12]
  1078. 8000cd8: 2b02 cmp r3, #2
  1079. 8000cda: ddd9 ble.n 8000c90 <ADC_Check+0x18>
  1080. //
  1081. // Currstatus.Temp_Monitor
  1082. // = ((ADC1value[0] & 0xFF00) >> 8);
  1083. // Currstatus.Temp_Monitor
  1084. // = ((ADC1value[0] & 0x00FF) );
  1085. adc1cnt = 0;
  1086. 8000cdc: 4b09 ldr r3, [pc, #36] ; (8000d04 <ADC_Check+0x8c>)
  1087. 8000cde: 2200 movs r2, #0
  1088. 8000ce0: 801a strh r2, [r3, #0]
  1089. }
  1090. 8000ce2: bf00 nop
  1091. 8000ce4: 3714 adds r7, #20
  1092. 8000ce6: 46bd mov sp, r7
  1093. 8000ce8: bd90 pop {r4, r7, pc}
  1094. 8000cea: bf00 nop
  1095. 8000cec: f3af 8000 nop.w
  1096. 8000cf0: e734d9b4 .word 0xe734d9b4
  1097. 8000cf4: 3f4a680c .word 0x3f4a680c
  1098. 8000cf8: 20000214 .word 0x20000214
  1099. 8000cfc: 40590000 .word 0x40590000
  1100. 8000d00: 08007368 .word 0x08007368
  1101. 8000d04: 200001f8 .word 0x200001f8
  1102. 08000d08 <HAL_ADC_ConvCpltCallback>:
  1103. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
  1104. {
  1105. 8000d08: b480 push {r7}
  1106. 8000d0a: b083 sub sp, #12
  1107. 8000d0c: af00 add r7, sp, #0
  1108. 8000d0e: 6078 str r0, [r7, #4]
  1109. // ADC1valuearray[i][adc1cnt] = ADC1value[i];
  1110. // }
  1111. // adc1cnt++;
  1112. // }
  1113. }
  1114. }
  1115. 8000d10: bf00 nop
  1116. 8000d12: 370c adds r7, #12
  1117. 8000d14: 46bd mov sp, r7
  1118. 8000d16: bc80 pop {r7}
  1119. 8000d18: 4770 bx lr
  1120. 08000d1a <NessLab_Checksum>:
  1121. crcret ^ ~0U;
  1122. return (crcret == checksum ? CHECKSUM_ERROR : NO_ERROR);
  1123. }
  1124. uint8_t NessLab_Checksum(uint8_t *data,uint8_t size){
  1125. 8000d1a: b480 push {r7}
  1126. 8000d1c: b085 sub sp, #20
  1127. 8000d1e: af00 add r7, sp, #0
  1128. 8000d20: 6078 str r0, [r7, #4]
  1129. 8000d22: 460b mov r3, r1
  1130. 8000d24: 70fb strb r3, [r7, #3]
  1131. uint8_t ret = 0;
  1132. 8000d26: 2300 movs r3, #0
  1133. 8000d28: 73fb strb r3, [r7, #15]
  1134. for(int i = 0; i < size; i++){
  1135. 8000d2a: 2300 movs r3, #0
  1136. 8000d2c: 60bb str r3, [r7, #8]
  1137. 8000d2e: e009 b.n 8000d44 <NessLab_Checksum+0x2a>
  1138. ret += data[i];
  1139. 8000d30: 68bb ldr r3, [r7, #8]
  1140. 8000d32: 687a ldr r2, [r7, #4]
  1141. 8000d34: 4413 add r3, r2
  1142. 8000d36: 781a ldrb r2, [r3, #0]
  1143. 8000d38: 7bfb ldrb r3, [r7, #15]
  1144. 8000d3a: 4413 add r3, r2
  1145. 8000d3c: 73fb strb r3, [r7, #15]
  1146. for(int i = 0; i < size; i++){
  1147. 8000d3e: 68bb ldr r3, [r7, #8]
  1148. 8000d40: 3301 adds r3, #1
  1149. 8000d42: 60bb str r3, [r7, #8]
  1150. 8000d44: 78fb ldrb r3, [r7, #3]
  1151. 8000d46: 68ba ldr r2, [r7, #8]
  1152. 8000d48: 429a cmp r2, r3
  1153. 8000d4a: dbf1 blt.n 8000d30 <NessLab_Checksum+0x16>
  1154. }
  1155. ret = (~ret) + 1;
  1156. 8000d4c: 7bfb ldrb r3, [r7, #15]
  1157. 8000d4e: 425b negs r3, r3
  1158. 8000d50: 73fb strb r3, [r7, #15]
  1159. return ret;
  1160. 8000d52: 7bfb ldrb r3, [r7, #15]
  1161. }
  1162. 8000d54: 4618 mov r0, r3
  1163. 8000d56: 3714 adds r7, #20
  1164. 8000d58: 46bd mov sp, r7
  1165. 8000d5a: bc80 pop {r7}
  1166. 8000d5c: 4770 bx lr
  1167. 08000d5e <NessLab_CheckSum_Check>:
  1168. bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum){
  1169. 8000d5e: b480 push {r7}
  1170. 8000d60: b085 sub sp, #20
  1171. 8000d62: af00 add r7, sp, #0
  1172. 8000d64: 6078 str r0, [r7, #4]
  1173. 8000d66: 460b mov r3, r1
  1174. 8000d68: 70fb strb r3, [r7, #3]
  1175. 8000d6a: 4613 mov r3, r2
  1176. 8000d6c: 70bb strb r3, [r7, #2]
  1177. uint8_t dataret = 0;
  1178. 8000d6e: 2300 movs r3, #0
  1179. 8000d70: 73fb strb r3, [r7, #15]
  1180. bool ret = false;
  1181. 8000d72: 2300 movs r3, #0
  1182. 8000d74: 73bb strb r3, [r7, #14]
  1183. for(int i = 0; i < size; i++){
  1184. 8000d76: 2300 movs r3, #0
  1185. 8000d78: 60bb str r3, [r7, #8]
  1186. 8000d7a: e009 b.n 8000d90 <NessLab_CheckSum_Check+0x32>
  1187. dataret += data[i];
  1188. 8000d7c: 68bb ldr r3, [r7, #8]
  1189. 8000d7e: 687a ldr r2, [r7, #4]
  1190. 8000d80: 4413 add r3, r2
  1191. 8000d82: 781a ldrb r2, [r3, #0]
  1192. 8000d84: 7bfb ldrb r3, [r7, #15]
  1193. 8000d86: 4413 add r3, r2
  1194. 8000d88: 73fb strb r3, [r7, #15]
  1195. for(int i = 0; i < size; i++){
  1196. 8000d8a: 68bb ldr r3, [r7, #8]
  1197. 8000d8c: 3301 adds r3, #1
  1198. 8000d8e: 60bb str r3, [r7, #8]
  1199. 8000d90: 78fb ldrb r3, [r7, #3]
  1200. 8000d92: 68ba ldr r2, [r7, #8]
  1201. 8000d94: 429a cmp r2, r3
  1202. 8000d96: dbf1 blt.n 8000d7c <NessLab_CheckSum_Check+0x1e>
  1203. }
  1204. dataret = (~dataret) + 1;
  1205. 8000d98: 7bfb ldrb r3, [r7, #15]
  1206. 8000d9a: 425b negs r3, r3
  1207. 8000d9c: 73fb strb r3, [r7, #15]
  1208. if(dataret != checksum){
  1209. 8000d9e: 7bfa ldrb r2, [r7, #15]
  1210. 8000da0: 78bb ldrb r3, [r7, #2]
  1211. 8000da2: 429a cmp r2, r3
  1212. 8000da4: d002 beq.n 8000dac <NessLab_CheckSum_Check+0x4e>
  1213. ret = false;
  1214. 8000da6: 2300 movs r3, #0
  1215. 8000da8: 73bb strb r3, [r7, #14]
  1216. 8000daa: e001 b.n 8000db0 <NessLab_CheckSum_Check+0x52>
  1217. }else{
  1218. ret = true;
  1219. 8000dac: 2301 movs r3, #1
  1220. 8000dae: 73bb strb r3, [r7, #14]
  1221. }
  1222. return ret;
  1223. 8000db0: 7bbb ldrb r3, [r7, #14]
  1224. }
  1225. 8000db2: 4618 mov r0, r3
  1226. 8000db4: 3714 adds r7, #20
  1227. 8000db6: 46bd mov sp, r7
  1228. 8000db8: bc80 pop {r7}
  1229. 8000dba: 4770 bx lr
  1230. 08000dbc <LedTimerCnt_Get>:
  1231. #include "main.h"
  1232. #include "led.h"
  1233. volatile uint32_t LED_TimerCnt = 0;
  1234. uint32_t LedTimerCnt_Get(){
  1235. 8000dbc: b480 push {r7}
  1236. 8000dbe: af00 add r7, sp, #0
  1237. return LED_TimerCnt;
  1238. 8000dc0: 4b02 ldr r3, [pc, #8] ; (8000dcc <LedTimerCnt_Get+0x10>)
  1239. 8000dc2: 681b ldr r3, [r3, #0]
  1240. }
  1241. 8000dc4: 4618 mov r0, r3
  1242. 8000dc6: 46bd mov sp, r7
  1243. 8000dc8: bc80 pop {r7}
  1244. 8000dca: 4770 bx lr
  1245. 8000dcc: 200001fc .word 0x200001fc
  1246. 08000dd0 <LedTimerCnt_Set>:
  1247. void LedTimerCnt_Set(uint32_t val){
  1248. 8000dd0: b480 push {r7}
  1249. 8000dd2: b083 sub sp, #12
  1250. 8000dd4: af00 add r7, sp, #0
  1251. 8000dd6: 6078 str r0, [r7, #4]
  1252. LED_TimerCnt = val;
  1253. 8000dd8: 4a03 ldr r2, [pc, #12] ; (8000de8 <LedTimerCnt_Set+0x18>)
  1254. 8000dda: 687b ldr r3, [r7, #4]
  1255. 8000ddc: 6013 str r3, [r2, #0]
  1256. }
  1257. 8000dde: bf00 nop
  1258. 8000de0: 370c adds r7, #12
  1259. 8000de2: 46bd mov sp, r7
  1260. 8000de4: bc80 pop {r7}
  1261. 8000de6: 4770 bx lr
  1262. 8000de8: 200001fc .word 0x200001fc
  1263. 08000dec <Boot_LED_Toggle>:
  1264. void Boot_LED_Toggle(){ /*LED Check*/
  1265. 8000dec: b580 push {r7, lr}
  1266. 8000dee: b082 sub sp, #8
  1267. 8000df0: af00 add r7, sp, #0
  1268. uint32_t Led_Cnt = LedTimerCnt_Get();
  1269. 8000df2: f7ff ffe3 bl 8000dbc <LedTimerCnt_Get>
  1270. 8000df6: 6078 str r0, [r7, #4]
  1271. if(Led_Cnt >= LED_TOGGLE_CNT_REF){
  1272. 8000df8: 687b ldr r3, [r7, #4]
  1273. 8000dfa: f5b3 7ffa cmp.w r3, #500 ; 0x1f4
  1274. 8000dfe: d307 bcc.n 8000e10 <Boot_LED_Toggle+0x24>
  1275. HAL_GPIO_TogglePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin);
  1276. 8000e00: f44f 4100 mov.w r1, #32768 ; 0x8000
  1277. 8000e04: 4804 ldr r0, [pc, #16] ; (8000e18 <Boot_LED_Toggle+0x2c>)
  1278. 8000e06: f001 fa99 bl 800233c <HAL_GPIO_TogglePin>
  1279. LedTimerCnt_Set(0);
  1280. 8000e0a: 2000 movs r0, #0
  1281. 8000e0c: f7ff ffe0 bl 8000dd0 <LedTimerCnt_Set>
  1282. }
  1283. }
  1284. 8000e10: bf00 nop
  1285. 8000e12: 3708 adds r7, #8
  1286. 8000e14: 46bd mov sp, r7
  1287. 8000e16: bd80 pop {r7, pc}
  1288. 8000e18: 40011000 .word 0x40011000
  1289. 08000e1c <InitUartQueue>:
  1290. extern bool Bluecell_Operate(uint8_t* data);
  1291. extern void MBIC_Operate(uint8_t * data);
  1292. extern bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum);
  1293. void InitUartQueue(pUARTQUEUE pQueue)
  1294. {
  1295. 8000e1c: b580 push {r7, lr}
  1296. 8000e1e: b082 sub sp, #8
  1297. 8000e20: af00 add r7, sp, #0
  1298. 8000e22: 6078 str r0, [r7, #4]
  1299. pQueue->data = pQueue->head = pQueue->tail = 0;
  1300. 8000e24: 687b ldr r3, [r7, #4]
  1301. 8000e26: 2200 movs r2, #0
  1302. 8000e28: 605a str r2, [r3, #4]
  1303. 8000e2a: 687b ldr r3, [r7, #4]
  1304. 8000e2c: 685a ldr r2, [r3, #4]
  1305. 8000e2e: 687b ldr r3, [r7, #4]
  1306. 8000e30: 601a str r2, [r3, #0]
  1307. 8000e32: 687b ldr r3, [r7, #4]
  1308. 8000e34: 681a ldr r2, [r3, #0]
  1309. 8000e36: 687b ldr r3, [r7, #4]
  1310. 8000e38: 609a str r2, [r3, #8]
  1311. uart_hal_tx.output_p = uart_hal_tx.input_p = 0;
  1312. 8000e3a: 2100 movs r1, #0
  1313. 8000e3c: 4b08 ldr r3, [pc, #32] ; (8000e60 <InitUartQueue+0x44>)
  1314. 8000e3e: 460a mov r2, r1
  1315. 8000e40: f8a3 2080 strh.w r2, [r3, #128] ; 0x80
  1316. 8000e44: 4b06 ldr r3, [pc, #24] ; (8000e60 <InitUartQueue+0x44>)
  1317. 8000e46: 460a mov r2, r1
  1318. 8000e48: f8a3 2082 strh.w r2, [r3, #130] ; 0x82
  1319. // HAL_UART_Receive_IT(&huart2,rxBuf,5);
  1320. if (HAL_UART_Receive_DMA(&hTerminal, TerminalQueue.Buffer, 1) != HAL_OK)
  1321. 8000e4c: 2201 movs r2, #1
  1322. 8000e4e: 4905 ldr r1, [pc, #20] ; (8000e64 <InitUartQueue+0x48>)
  1323. 8000e50: 4805 ldr r0, [pc, #20] ; (8000e68 <InitUartQueue+0x4c>)
  1324. 8000e52: f002 faff bl 8003454 <HAL_UART_Receive_DMA>
  1325. // {
  1326. //// _Error_Handler(__FILE__, __LINE__);
  1327. // }
  1328. //HAL_UART_Receive_DMA(&hTerminal, TerminalQueue.Buffer, 1);
  1329. //HAL_UART_Receive_IT(hTerminal, pQueue->Buffer + pQueue->head, 1);
  1330. }
  1331. 8000e56: bf00 nop
  1332. 8000e58: 3708 adds r7, #8
  1333. 8000e5a: 46bd mov sp, r7
  1334. 8000e5c: bd80 pop {r7, pc}
  1335. 8000e5e: bf00 nop
  1336. 8000e60: 20000328 .word 0x20000328
  1337. 8000e64: 200002a8 .word 0x200002a8
  1338. 8000e68: 20000534 .word 0x20000534
  1339. 08000e6c <HAL_UART_RxCpltCallback>:
  1340. void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
  1341. {
  1342. 8000e6c: b580 push {r7, lr}
  1343. 8000e6e: b084 sub sp, #16
  1344. 8000e70: af00 add r7, sp, #0
  1345. 8000e72: 6078 str r0, [r7, #4]
  1346. // UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);
  1347. pUARTQUEUE pQueue;
  1348. // printf("Function : %s : \r\n",__func__);
  1349. //printf("%02x ",uart_buf[i]);
  1350. UartRxTimerCnt = 0;
  1351. 8000e74: 4b15 ldr r3, [pc, #84] ; (8000ecc <HAL_UART_RxCpltCallback+0x60>)
  1352. 8000e76: 2200 movs r2, #0
  1353. 8000e78: 601a str r2, [r3, #0]
  1354. pQueue = &TerminalQueue;
  1355. 8000e7a: 4b15 ldr r3, [pc, #84] ; (8000ed0 <HAL_UART_RxCpltCallback+0x64>)
  1356. 8000e7c: 60fb str r3, [r7, #12]
  1357. pQueue->head++;
  1358. 8000e7e: 68fb ldr r3, [r7, #12]
  1359. 8000e80: 681b ldr r3, [r3, #0]
  1360. 8000e82: 1c5a adds r2, r3, #1
  1361. 8000e84: 68fb ldr r3, [r7, #12]
  1362. 8000e86: 601a str r2, [r3, #0]
  1363. if (pQueue->head >= QUEUE_BUFFER_LENGTH) pQueue->head = 0;
  1364. 8000e88: 68fb ldr r3, [r7, #12]
  1365. 8000e8a: 681b ldr r3, [r3, #0]
  1366. 8000e8c: 2b7f cmp r3, #127 ; 0x7f
  1367. 8000e8e: dd02 ble.n 8000e96 <HAL_UART_RxCpltCallback+0x2a>
  1368. 8000e90: 68fb ldr r3, [r7, #12]
  1369. 8000e92: 2200 movs r2, #0
  1370. 8000e94: 601a str r2, [r3, #0]
  1371. pQueue->data++;
  1372. 8000e96: 68fb ldr r3, [r7, #12]
  1373. 8000e98: 689b ldr r3, [r3, #8]
  1374. 8000e9a: 1c5a adds r2, r3, #1
  1375. 8000e9c: 68fb ldr r3, [r7, #12]
  1376. 8000e9e: 609a str r2, [r3, #8]
  1377. if (pQueue->data >= QUEUE_BUFFER_LENGTH)
  1378. 8000ea0: 68fb ldr r3, [r7, #12]
  1379. 8000ea2: 689b ldr r3, [r3, #8]
  1380. 8000ea4: 2b7f cmp r3, #127 ; 0x7f
  1381. 8000ea6: dd02 ble.n 8000eae <HAL_UART_RxCpltCallback+0x42>
  1382. GetDataFromUartQueue(huart);
  1383. 8000ea8: 6878 ldr r0, [r7, #4]
  1384. 8000eaa: f000 f815 bl 8000ed8 <GetDataFromUartQueue>
  1385. HAL_UART_Receive_IT(&hTerminal, pQueue->Buffer + pQueue->head, 1);
  1386. 8000eae: 68fb ldr r3, [r7, #12]
  1387. 8000eb0: 330c adds r3, #12
  1388. 8000eb2: 68fa ldr r2, [r7, #12]
  1389. 8000eb4: 6812 ldr r2, [r2, #0]
  1390. 8000eb6: 4413 add r3, r2
  1391. 8000eb8: 2201 movs r2, #1
  1392. 8000eba: 4619 mov r1, r3
  1393. 8000ebc: 4805 ldr r0, [pc, #20] ; (8000ed4 <HAL_UART_RxCpltCallback+0x68>)
  1394. 8000ebe: f002 fa08 bl 80032d2 <HAL_UART_Receive_IT>
  1395. // HAL_UART_Receive_DMA(&hTest, pQueue->Buffer + pQueue->head, 1);
  1396. // Set_UartRcv(true);
  1397. }
  1398. 8000ec2: bf00 nop
  1399. 8000ec4: 3710 adds r7, #16
  1400. 8000ec6: 46bd mov sp, r7
  1401. 8000ec8: bd80 pop {r7, pc}
  1402. 8000eca: bf00 nop
  1403. 8000ecc: 20000204 .word 0x20000204
  1404. 8000ed0: 2000029c .word 0x2000029c
  1405. 8000ed4: 20000534 .word 0x20000534
  1406. 08000ed8 <GetDataFromUartQueue>:
  1407. // HAL_UART_Receive_DMA(&hTerminal, pQueue->Buffer + pQueue->head, 10);
  1408. }
  1409. void GetDataFromUartQueue(UART_HandleTypeDef *huart)
  1410. {
  1411. 8000ed8: b580 push {r7, lr}
  1412. 8000eda: b084 sub sp, #16
  1413. 8000edc: af00 add r7, sp, #0
  1414. 8000ede: 6078 str r0, [r7, #4]
  1415. volatile static int cnt;
  1416. bool ret = 0;
  1417. 8000ee0: 2300 movs r3, #0
  1418. 8000ee2: 73fb strb r3, [r7, #15]
  1419. /* bool chksumret = 0;
  1420. uint16_t Length = 0;
  1421. uint16_t CrcChk = 0;
  1422. UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);*/
  1423. // UART_HandleTypeDef *dst = &hTerminal;
  1424. pUARTQUEUE pQueue = &TerminalQueue;
  1425. 8000ee4: 4b1d ldr r3, [pc, #116] ; (8000f5c <GetDataFromUartQueue+0x84>)
  1426. 8000ee6: 60bb str r3, [r7, #8]
  1427. // if (HAL_UART_Transmit(dst, pQueue->Buffer + pQueue->tail, 1, 3000) != HAL_OK)
  1428. // {
  1429. // _Error_Handler(__FILE__, __LINE__);
  1430. // }
  1431. uart_buf[cnt++] = *(pQueue->Buffer + pQueue->tail);
  1432. 8000ee8: 68bb ldr r3, [r7, #8]
  1433. 8000eea: 330c adds r3, #12
  1434. 8000eec: 68ba ldr r2, [r7, #8]
  1435. 8000eee: 6852 ldr r2, [r2, #4]
  1436. 8000ef0: 441a add r2, r3
  1437. 8000ef2: 4b1b ldr r3, [pc, #108] ; (8000f60 <GetDataFromUartQueue+0x88>)
  1438. 8000ef4: 681b ldr r3, [r3, #0]
  1439. 8000ef6: 1c59 adds r1, r3, #1
  1440. 8000ef8: 4819 ldr r0, [pc, #100] ; (8000f60 <GetDataFromUartQueue+0x88>)
  1441. 8000efa: 6001 str r1, [r0, #0]
  1442. 8000efc: 7811 ldrb r1, [r2, #0]
  1443. 8000efe: 4a19 ldr r2, [pc, #100] ; (8000f64 <GetDataFromUartQueue+0x8c>)
  1444. 8000f00: 54d1 strb r1, [r2, r3]
  1445. //#ifdef DEBUG_PRINT
  1446. // printf("%02x ",*(pQueue->Buffer + pQueue->tail)) ;
  1447. //#endif /* DEBUG_PRINT */
  1448. pQueue->tail++;
  1449. 8000f02: 68bb ldr r3, [r7, #8]
  1450. 8000f04: 685b ldr r3, [r3, #4]
  1451. 8000f06: 1c5a adds r2, r3, #1
  1452. 8000f08: 68bb ldr r3, [r7, #8]
  1453. 8000f0a: 605a str r2, [r3, #4]
  1454. if (pQueue->tail >= QUEUE_BUFFER_LENGTH) pQueue->tail = 0;
  1455. 8000f0c: 68bb ldr r3, [r7, #8]
  1456. 8000f0e: 685b ldr r3, [r3, #4]
  1457. 8000f10: 2b7f cmp r3, #127 ; 0x7f
  1458. 8000f12: dd02 ble.n 8000f1a <GetDataFromUartQueue+0x42>
  1459. 8000f14: 68bb ldr r3, [r7, #8]
  1460. 8000f16: 2200 movs r2, #0
  1461. 8000f18: 605a str r2, [r3, #4]
  1462. pQueue->data--;
  1463. 8000f1a: 68bb ldr r3, [r7, #8]
  1464. 8000f1c: 689b ldr r3, [r3, #8]
  1465. 8000f1e: 1e5a subs r2, r3, #1
  1466. 8000f20: 68bb ldr r3, [r7, #8]
  1467. 8000f22: 609a str r2, [r3, #8]
  1468. if(pQueue->data == 0){
  1469. 8000f24: 68bb ldr r3, [r7, #8]
  1470. 8000f26: 689b ldr r3, [r3, #8]
  1471. 8000f28: 2b00 cmp r3, #0
  1472. 8000f2a: d112 bne.n 8000f52 <GetDataFromUartQueue+0x7a>
  1473. for(int i = 0; i < cnt; i++){
  1474. printf("%02x ",uart_buf[i]);
  1475. }
  1476. printf(ANSI_COLOR_GREEN"\r\n CNT : %d \r\n"ANSI_COLOR_RESET,cnt);
  1477. #endif // PYJ.2019.07.15_END --
  1478. ret = NessLab_CheckSum_Check(&uart_buf[NessLab_MsgID0],uart_buf[NessLab_DataLength],uart_buf[NessLab_ChecksumVal]);
  1479. 8000f2c: 4b0d ldr r3, [pc, #52] ; (8000f64 <GetDataFromUartQueue+0x8c>)
  1480. 8000f2e: 7999 ldrb r1, [r3, #6]
  1481. 8000f30: 4b0c ldr r3, [pc, #48] ; (8000f64 <GetDataFromUartQueue+0x8c>)
  1482. 8000f32: 7cdb ldrb r3, [r3, #19]
  1483. 8000f34: 461a mov r2, r3
  1484. 8000f36: 480c ldr r0, [pc, #48] ; (8000f68 <GetDataFromUartQueue+0x90>)
  1485. 8000f38: f7ff ff11 bl 8000d5e <NessLab_CheckSum_Check>
  1486. 8000f3c: 4603 mov r3, r0
  1487. 8000f3e: 73fb strb r3, [r7, #15]
  1488. if(ret == true){
  1489. 8000f40: 7bfb ldrb r3, [r7, #15]
  1490. 8000f42: 2b00 cmp r3, #0
  1491. 8000f44: d002 beq.n 8000f4c <GetDataFromUartQueue+0x74>
  1492. NessLab_Operate(&uart_buf[0]);
  1493. 8000f46: 4807 ldr r0, [pc, #28] ; (8000f64 <GetDataFromUartQueue+0x8c>)
  1494. 8000f48: f7ff fdfe bl 8000b48 <NessLab_Operate>
  1495. }
  1496. cnt = 0;
  1497. 8000f4c: 4b04 ldr r3, [pc, #16] ; (8000f60 <GetDataFromUartQueue+0x88>)
  1498. 8000f4e: 2200 movs r2, #0
  1499. 8000f50: 601a str r2, [r3, #0]
  1500. }
  1501. }
  1502. 8000f52: bf00 nop
  1503. 8000f54: 3710 adds r7, #16
  1504. 8000f56: 46bd mov sp, r7
  1505. 8000f58: bd80 pop {r7, pc}
  1506. 8000f5a: bf00 nop
  1507. 8000f5c: 2000029c .word 0x2000029c
  1508. 8000f60: 20000200 .word 0x20000200
  1509. 8000f64: 2000021c .word 0x2000021c
  1510. 8000f68: 2000021e .word 0x2000021e
  1511. 08000f6c <Uart_Check>:
  1512. void Uart_Check(void){
  1513. 8000f6c: b580 push {r7, lr}
  1514. 8000f6e: af00 add r7, sp, #0
  1515. while (TerminalQueue.data > 0 && UartRxTimerCnt > 50) GetDataFromUartQueue(&hTerminal);
  1516. 8000f70: e002 b.n 8000f78 <Uart_Check+0xc>
  1517. 8000f72: 4806 ldr r0, [pc, #24] ; (8000f8c <Uart_Check+0x20>)
  1518. 8000f74: f7ff ffb0 bl 8000ed8 <GetDataFromUartQueue>
  1519. 8000f78: 4b05 ldr r3, [pc, #20] ; (8000f90 <Uart_Check+0x24>)
  1520. 8000f7a: 689b ldr r3, [r3, #8]
  1521. 8000f7c: 2b00 cmp r3, #0
  1522. 8000f7e: dd03 ble.n 8000f88 <Uart_Check+0x1c>
  1523. 8000f80: 4b04 ldr r3, [pc, #16] ; (8000f94 <Uart_Check+0x28>)
  1524. 8000f82: 681b ldr r3, [r3, #0]
  1525. 8000f84: 2b32 cmp r3, #50 ; 0x32
  1526. 8000f86: d8f4 bhi.n 8000f72 <Uart_Check+0x6>
  1527. }
  1528. 8000f88: bf00 nop
  1529. 8000f8a: bd80 pop {r7, pc}
  1530. 8000f8c: 20000534 .word 0x20000534
  1531. 8000f90: 2000029c .word 0x2000029c
  1532. 8000f94: 20000204 .word 0x20000204
  1533. 08000f98 <Uart1_Data_Send>:
  1534. void Uart1_Data_Send(uint8_t* data,uint16_t size){
  1535. 8000f98: b580 push {r7, lr}
  1536. 8000f9a: b082 sub sp, #8
  1537. 8000f9c: af00 add r7, sp, #0
  1538. 8000f9e: 6078 str r0, [r7, #4]
  1539. 8000fa0: 460b mov r3, r1
  1540. 8000fa2: 807b strh r3, [r7, #2]
  1541. HAL_UART_Transmit_DMA(&hTerminal, &data[0],size);
  1542. 8000fa4: 887b ldrh r3, [r7, #2]
  1543. 8000fa6: 461a mov r2, r3
  1544. 8000fa8: 6879 ldr r1, [r7, #4]
  1545. 8000faa: 4803 ldr r0, [pc, #12] ; (8000fb8 <Uart1_Data_Send+0x20>)
  1546. 8000fac: f002 f9e6 bl 800337c <HAL_UART_Transmit_DMA>
  1547. // data[i] = 0;
  1548. // }
  1549. // printf("};\r\n\tCOUNT : %d \r\n",size);
  1550. // printf("\r\n");
  1551. }
  1552. 8000fb0: bf00 nop
  1553. 8000fb2: 3708 adds r7, #8
  1554. 8000fb4: 46bd mov sp, r7
  1555. 8000fb6: bd80 pop {r7, pc}
  1556. 8000fb8: 20000534 .word 0x20000534
  1557. 08000fbc <HAL_Init>:
  1558. * need to ensure that the SysTick time base is always set to 1 millisecond
  1559. * to have correct HAL operation.
  1560. * @retval HAL status
  1561. */
  1562. HAL_StatusTypeDef HAL_Init(void)
  1563. {
  1564. 8000fbc: b580 push {r7, lr}
  1565. 8000fbe: af00 add r7, sp, #0
  1566. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  1567. #endif
  1568. #endif /* PREFETCH_ENABLE */
  1569. /* Set Interrupt Group Priority */
  1570. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  1571. 8000fc0: 2003 movs r0, #3
  1572. 8000fc2: f000 fdaf bl 8001b24 <HAL_NVIC_SetPriorityGrouping>
  1573. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  1574. HAL_InitTick(TICK_INT_PRIORITY);
  1575. 8000fc6: 2000 movs r0, #0
  1576. 8000fc8: f003 fb90 bl 80046ec <HAL_InitTick>
  1577. /* Init the low level hardware */
  1578. HAL_MspInit();
  1579. 8000fcc: f003 f9fa bl 80043c4 <HAL_MspInit>
  1580. /* Return function status */
  1581. return HAL_OK;
  1582. 8000fd0: 2300 movs r3, #0
  1583. }
  1584. 8000fd2: 4618 mov r0, r3
  1585. 8000fd4: bd80 pop {r7, pc}
  1586. ...
  1587. 08000fd8 <HAL_IncTick>:
  1588. * @note This function is declared as __weak to be overwritten in case of other
  1589. * implementations in user file.
  1590. * @retval None
  1591. */
  1592. __weak void HAL_IncTick(void)
  1593. {
  1594. 8000fd8: b480 push {r7}
  1595. 8000fda: af00 add r7, sp, #0
  1596. uwTick += uwTickFreq;
  1597. 8000fdc: 4b05 ldr r3, [pc, #20] ; (8000ff4 <HAL_IncTick+0x1c>)
  1598. 8000fde: 781b ldrb r3, [r3, #0]
  1599. 8000fe0: 461a mov r2, r3
  1600. 8000fe2: 4b05 ldr r3, [pc, #20] ; (8000ff8 <HAL_IncTick+0x20>)
  1601. 8000fe4: 681b ldr r3, [r3, #0]
  1602. 8000fe6: 4413 add r3, r2
  1603. 8000fe8: 4a03 ldr r2, [pc, #12] ; (8000ff8 <HAL_IncTick+0x20>)
  1604. 8000fea: 6013 str r3, [r2, #0]
  1605. }
  1606. 8000fec: bf00 nop
  1607. 8000fee: 46bd mov sp, r7
  1608. 8000ff0: bc80 pop {r7}
  1609. 8000ff2: 4770 bx lr
  1610. 8000ff4: 20000004 .word 0x20000004
  1611. 8000ff8: 20000438 .word 0x20000438
  1612. 08000ffc <HAL_GetTick>:
  1613. * @note This function is declared as __weak to be overwritten in case of other
  1614. * implementations in user file.
  1615. * @retval tick value
  1616. */
  1617. __weak uint32_t HAL_GetTick(void)
  1618. {
  1619. 8000ffc: b480 push {r7}
  1620. 8000ffe: af00 add r7, sp, #0
  1621. return uwTick;
  1622. 8001000: 4b02 ldr r3, [pc, #8] ; (800100c <HAL_GetTick+0x10>)
  1623. 8001002: 681b ldr r3, [r3, #0]
  1624. }
  1625. 8001004: 4618 mov r0, r3
  1626. 8001006: 46bd mov sp, r7
  1627. 8001008: bc80 pop {r7}
  1628. 800100a: 4770 bx lr
  1629. 800100c: 20000438 .word 0x20000438
  1630. 08001010 <HAL_ADC_Init>:
  1631. * of structure "ADC_InitTypeDef".
  1632. * @param hadc: ADC handle
  1633. * @retval HAL status
  1634. */
  1635. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
  1636. {
  1637. 8001010: b580 push {r7, lr}
  1638. 8001012: b086 sub sp, #24
  1639. 8001014: af00 add r7, sp, #0
  1640. 8001016: 6078 str r0, [r7, #4]
  1641. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  1642. 8001018: 2300 movs r3, #0
  1643. 800101a: 75fb strb r3, [r7, #23]
  1644. uint32_t tmp_cr1 = 0U;
  1645. 800101c: 2300 movs r3, #0
  1646. 800101e: 613b str r3, [r7, #16]
  1647. uint32_t tmp_cr2 = 0U;
  1648. 8001020: 2300 movs r3, #0
  1649. 8001022: 60bb str r3, [r7, #8]
  1650. uint32_t tmp_sqr1 = 0U;
  1651. 8001024: 2300 movs r3, #0
  1652. 8001026: 60fb str r3, [r7, #12]
  1653. /* Check ADC handle */
  1654. if(hadc == NULL)
  1655. 8001028: 687b ldr r3, [r7, #4]
  1656. 800102a: 2b00 cmp r3, #0
  1657. 800102c: d101 bne.n 8001032 <HAL_ADC_Init+0x22>
  1658. {
  1659. return HAL_ERROR;
  1660. 800102e: 2301 movs r3, #1
  1661. 8001030: e0be b.n 80011b0 <HAL_ADC_Init+0x1a0>
  1662. assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign));
  1663. assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode));
  1664. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  1665. assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
  1666. if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  1667. 8001032: 687b ldr r3, [r7, #4]
  1668. 8001034: 689b ldr r3, [r3, #8]
  1669. 8001036: 2b00 cmp r3, #0
  1670. /* Refer to header of this file for more details on clock enabling */
  1671. /* procedure. */
  1672. /* Actions performed only if ADC is coming from state reset: */
  1673. /* - Initialization of ADC MSP */
  1674. if (hadc->State == HAL_ADC_STATE_RESET)
  1675. 8001038: 687b ldr r3, [r7, #4]
  1676. 800103a: 6a9b ldr r3, [r3, #40] ; 0x28
  1677. 800103c: 2b00 cmp r3, #0
  1678. 800103e: d109 bne.n 8001054 <HAL_ADC_Init+0x44>
  1679. {
  1680. /* Initialize ADC error code */
  1681. ADC_CLEAR_ERRORCODE(hadc);
  1682. 8001040: 687b ldr r3, [r7, #4]
  1683. 8001042: 2200 movs r2, #0
  1684. 8001044: 62da str r2, [r3, #44] ; 0x2c
  1685. /* Allocate lock resource and initialize it */
  1686. hadc->Lock = HAL_UNLOCKED;
  1687. 8001046: 687b ldr r3, [r7, #4]
  1688. 8001048: 2200 movs r2, #0
  1689. 800104a: f883 2024 strb.w r2, [r3, #36] ; 0x24
  1690. /* Init the low level hardware */
  1691. hadc->MspInitCallback(hadc);
  1692. #else
  1693. /* Init the low level hardware */
  1694. HAL_ADC_MspInit(hadc);
  1695. 800104e: 6878 ldr r0, [r7, #4]
  1696. 8001050: f003 f9ea bl 8004428 <HAL_ADC_MspInit>
  1697. /* Stop potential conversion on going, on regular and injected groups */
  1698. /* Disable ADC peripheral */
  1699. /* Note: In case of ADC already enabled, precaution to not launch an */
  1700. /* unwanted conversion while modifying register CR2 by writing 1 to */
  1701. /* bit ADON. */
  1702. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  1703. 8001054: 6878 ldr r0, [r7, #4]
  1704. 8001056: f000 fb75 bl 8001744 <ADC_ConversionStop_Disable>
  1705. 800105a: 4603 mov r3, r0
  1706. 800105c: 75fb strb r3, [r7, #23]
  1707. /* Configuration of ADC parameters if previous preliminary actions are */
  1708. /* correctly completed. */
  1709. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) &&
  1710. 800105e: 687b ldr r3, [r7, #4]
  1711. 8001060: 6a9b ldr r3, [r3, #40] ; 0x28
  1712. 8001062: f003 0310 and.w r3, r3, #16
  1713. 8001066: 2b00 cmp r3, #0
  1714. 8001068: f040 8099 bne.w 800119e <HAL_ADC_Init+0x18e>
  1715. 800106c: 7dfb ldrb r3, [r7, #23]
  1716. 800106e: 2b00 cmp r3, #0
  1717. 8001070: f040 8095 bne.w 800119e <HAL_ADC_Init+0x18e>
  1718. (tmp_hal_status == HAL_OK) )
  1719. {
  1720. /* Set ADC state */
  1721. ADC_STATE_CLR_SET(hadc->State,
  1722. 8001074: 687b ldr r3, [r7, #4]
  1723. 8001076: 6a9b ldr r3, [r3, #40] ; 0x28
  1724. 8001078: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  1725. 800107c: f023 0302 bic.w r3, r3, #2
  1726. 8001080: f043 0202 orr.w r2, r3, #2
  1727. 8001084: 687b ldr r3, [r7, #4]
  1728. 8001086: 629a str r2, [r3, #40] ; 0x28
  1729. /* - continuous conversion mode */
  1730. /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */
  1731. /* HAL_ADC_Start_xxx functions because if set in this function, */
  1732. /* a conversion on injected group would start a conversion also on */
  1733. /* regular group after ADC enabling. */
  1734. tmp_cr2 |= (hadc->Init.DataAlign |
  1735. 8001088: 687b ldr r3, [r7, #4]
  1736. 800108a: 685a ldr r2, [r3, #4]
  1737. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  1738. 800108c: 687b ldr r3, [r7, #4]
  1739. 800108e: 69db ldr r3, [r3, #28]
  1740. tmp_cr2 |= (hadc->Init.DataAlign |
  1741. 8001090: 431a orrs r2, r3
  1742. ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
  1743. 8001092: 687b ldr r3, [r7, #4]
  1744. 8001094: 7b1b ldrb r3, [r3, #12]
  1745. 8001096: 005b lsls r3, r3, #1
  1746. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  1747. 8001098: 4313 orrs r3, r2
  1748. tmp_cr2 |= (hadc->Init.DataAlign |
  1749. 800109a: 68ba ldr r2, [r7, #8]
  1750. 800109c: 4313 orrs r3, r2
  1751. 800109e: 60bb str r3, [r7, #8]
  1752. /* Configuration of ADC: */
  1753. /* - scan mode */
  1754. /* - discontinuous mode disable/enable */
  1755. /* - discontinuous mode number of conversions */
  1756. tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode));
  1757. 80010a0: 687b ldr r3, [r7, #4]
  1758. 80010a2: 689b ldr r3, [r3, #8]
  1759. 80010a4: f5b3 7f80 cmp.w r3, #256 ; 0x100
  1760. 80010a8: d003 beq.n 80010b2 <HAL_ADC_Init+0xa2>
  1761. 80010aa: 687b ldr r3, [r7, #4]
  1762. 80010ac: 689b ldr r3, [r3, #8]
  1763. 80010ae: 2b01 cmp r3, #1
  1764. 80010b0: d102 bne.n 80010b8 <HAL_ADC_Init+0xa8>
  1765. 80010b2: f44f 7380 mov.w r3, #256 ; 0x100
  1766. 80010b6: e000 b.n 80010ba <HAL_ADC_Init+0xaa>
  1767. 80010b8: 2300 movs r3, #0
  1768. 80010ba: 693a ldr r2, [r7, #16]
  1769. 80010bc: 4313 orrs r3, r2
  1770. 80010be: 613b str r3, [r7, #16]
  1771. /* Enable discontinuous mode only if continuous mode is disabled */
  1772. /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
  1773. /* discontinuous is set anyway, but will have no effect on ADC HW. */
  1774. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  1775. 80010c0: 687b ldr r3, [r7, #4]
  1776. 80010c2: 7d1b ldrb r3, [r3, #20]
  1777. 80010c4: 2b01 cmp r3, #1
  1778. 80010c6: d119 bne.n 80010fc <HAL_ADC_Init+0xec>
  1779. {
  1780. if (hadc->Init.ContinuousConvMode == DISABLE)
  1781. 80010c8: 687b ldr r3, [r7, #4]
  1782. 80010ca: 7b1b ldrb r3, [r3, #12]
  1783. 80010cc: 2b00 cmp r3, #0
  1784. 80010ce: d109 bne.n 80010e4 <HAL_ADC_Init+0xd4>
  1785. {
  1786. /* Enable the selected ADC regular discontinuous mode */
  1787. /* Set the number of channels to be converted in discontinuous mode */
  1788. SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
  1789. 80010d0: 687b ldr r3, [r7, #4]
  1790. 80010d2: 699b ldr r3, [r3, #24]
  1791. 80010d4: 3b01 subs r3, #1
  1792. 80010d6: 035a lsls r2, r3, #13
  1793. 80010d8: 693b ldr r3, [r7, #16]
  1794. 80010da: 4313 orrs r3, r2
  1795. 80010dc: f443 6300 orr.w r3, r3, #2048 ; 0x800
  1796. 80010e0: 613b str r3, [r7, #16]
  1797. 80010e2: e00b b.n 80010fc <HAL_ADC_Init+0xec>
  1798. {
  1799. /* ADC regular group settings continuous and sequencer discontinuous*/
  1800. /* cannot be enabled simultaneously. */
  1801. /* Update ADC state machine to error */
  1802. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  1803. 80010e4: 687b ldr r3, [r7, #4]
  1804. 80010e6: 6a9b ldr r3, [r3, #40] ; 0x28
  1805. 80010e8: f043 0220 orr.w r2, r3, #32
  1806. 80010ec: 687b ldr r3, [r7, #4]
  1807. 80010ee: 629a str r2, [r3, #40] ; 0x28
  1808. /* Set ADC error code to ADC IP internal error */
  1809. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  1810. 80010f0: 687b ldr r3, [r7, #4]
  1811. 80010f2: 6adb ldr r3, [r3, #44] ; 0x2c
  1812. 80010f4: f043 0201 orr.w r2, r3, #1
  1813. 80010f8: 687b ldr r3, [r7, #4]
  1814. 80010fa: 62da str r2, [r3, #44] ; 0x2c
  1815. }
  1816. }
  1817. /* Update ADC configuration register CR1 with previous settings */
  1818. MODIFY_REG(hadc->Instance->CR1,
  1819. 80010fc: 687b ldr r3, [r7, #4]
  1820. 80010fe: 681b ldr r3, [r3, #0]
  1821. 8001100: 685b ldr r3, [r3, #4]
  1822. 8001102: f423 4169 bic.w r1, r3, #59648 ; 0xe900
  1823. 8001106: 687b ldr r3, [r7, #4]
  1824. 8001108: 681b ldr r3, [r3, #0]
  1825. 800110a: 693a ldr r2, [r7, #16]
  1826. 800110c: 430a orrs r2, r1
  1827. 800110e: 605a str r2, [r3, #4]
  1828. ADC_CR1_DISCEN |
  1829. ADC_CR1_DISCNUM ,
  1830. tmp_cr1 );
  1831. /* Update ADC configuration register CR2 with previous settings */
  1832. MODIFY_REG(hadc->Instance->CR2,
  1833. 8001110: 687b ldr r3, [r7, #4]
  1834. 8001112: 681b ldr r3, [r3, #0]
  1835. 8001114: 689a ldr r2, [r3, #8]
  1836. 8001116: 4b28 ldr r3, [pc, #160] ; (80011b8 <HAL_ADC_Init+0x1a8>)
  1837. 8001118: 4013 ands r3, r2
  1838. 800111a: 687a ldr r2, [r7, #4]
  1839. 800111c: 6812 ldr r2, [r2, #0]
  1840. 800111e: 68b9 ldr r1, [r7, #8]
  1841. 8001120: 430b orrs r3, r1
  1842. 8001122: 6093 str r3, [r2, #8]
  1843. /* Note: Scan mode is present by hardware on this device and, if */
  1844. /* disabled, discards automatically nb of conversions. Anyway, nb of */
  1845. /* conversions is forced to 0x00 for alignment over all STM32 devices. */
  1846. /* - if scan mode is enabled, regular channels sequence length is set to */
  1847. /* parameter "NbrOfConversion" */
  1848. if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
  1849. 8001124: 687b ldr r3, [r7, #4]
  1850. 8001126: 689b ldr r3, [r3, #8]
  1851. 8001128: f5b3 7f80 cmp.w r3, #256 ; 0x100
  1852. 800112c: d003 beq.n 8001136 <HAL_ADC_Init+0x126>
  1853. 800112e: 687b ldr r3, [r7, #4]
  1854. 8001130: 689b ldr r3, [r3, #8]
  1855. 8001132: 2b01 cmp r3, #1
  1856. 8001134: d104 bne.n 8001140 <HAL_ADC_Init+0x130>
  1857. {
  1858. tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion);
  1859. 8001136: 687b ldr r3, [r7, #4]
  1860. 8001138: 691b ldr r3, [r3, #16]
  1861. 800113a: 3b01 subs r3, #1
  1862. 800113c: 051b lsls r3, r3, #20
  1863. 800113e: 60fb str r3, [r7, #12]
  1864. }
  1865. MODIFY_REG(hadc->Instance->SQR1,
  1866. 8001140: 687b ldr r3, [r7, #4]
  1867. 8001142: 681b ldr r3, [r3, #0]
  1868. 8001144: 6adb ldr r3, [r3, #44] ; 0x2c
  1869. 8001146: f423 0170 bic.w r1, r3, #15728640 ; 0xf00000
  1870. 800114a: 687b ldr r3, [r7, #4]
  1871. 800114c: 681b ldr r3, [r3, #0]
  1872. 800114e: 68fa ldr r2, [r7, #12]
  1873. 8001150: 430a orrs r2, r1
  1874. 8001152: 62da str r2, [r3, #44] ; 0x2c
  1875. /* ensure of no potential problem of ADC core IP clocking. */
  1876. /* Check through register CR2 (excluding bits set in other functions: */
  1877. /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */
  1878. /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */
  1879. /* measurement path bit (TSVREFE). */
  1880. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  1881. 8001154: 687b ldr r3, [r7, #4]
  1882. 8001156: 681b ldr r3, [r3, #0]
  1883. 8001158: 689a ldr r2, [r3, #8]
  1884. 800115a: 4b18 ldr r3, [pc, #96] ; (80011bc <HAL_ADC_Init+0x1ac>)
  1885. 800115c: 4013 ands r3, r2
  1886. 800115e: 68ba ldr r2, [r7, #8]
  1887. 8001160: 429a cmp r2, r3
  1888. 8001162: d10b bne.n 800117c <HAL_ADC_Init+0x16c>
  1889. ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL |
  1890. ADC_CR2_TSVREFE ))
  1891. == tmp_cr2)
  1892. {
  1893. /* Set ADC error code to none */
  1894. ADC_CLEAR_ERRORCODE(hadc);
  1895. 8001164: 687b ldr r3, [r7, #4]
  1896. 8001166: 2200 movs r2, #0
  1897. 8001168: 62da str r2, [r3, #44] ; 0x2c
  1898. /* Set the ADC state */
  1899. ADC_STATE_CLR_SET(hadc->State,
  1900. 800116a: 687b ldr r3, [r7, #4]
  1901. 800116c: 6a9b ldr r3, [r3, #40] ; 0x28
  1902. 800116e: f023 0303 bic.w r3, r3, #3
  1903. 8001172: f043 0201 orr.w r2, r3, #1
  1904. 8001176: 687b ldr r3, [r7, #4]
  1905. 8001178: 629a str r2, [r3, #40] ; 0x28
  1906. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  1907. 800117a: e018 b.n 80011ae <HAL_ADC_Init+0x19e>
  1908. HAL_ADC_STATE_READY);
  1909. }
  1910. else
  1911. {
  1912. /* Update ADC state machine to error */
  1913. ADC_STATE_CLR_SET(hadc->State,
  1914. 800117c: 687b ldr r3, [r7, #4]
  1915. 800117e: 6a9b ldr r3, [r3, #40] ; 0x28
  1916. 8001180: f023 0312 bic.w r3, r3, #18
  1917. 8001184: f043 0210 orr.w r2, r3, #16
  1918. 8001188: 687b ldr r3, [r7, #4]
  1919. 800118a: 629a str r2, [r3, #40] ; 0x28
  1920. HAL_ADC_STATE_BUSY_INTERNAL,
  1921. HAL_ADC_STATE_ERROR_INTERNAL);
  1922. /* Set ADC error code to ADC IP internal error */
  1923. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  1924. 800118c: 687b ldr r3, [r7, #4]
  1925. 800118e: 6adb ldr r3, [r3, #44] ; 0x2c
  1926. 8001190: f043 0201 orr.w r2, r3, #1
  1927. 8001194: 687b ldr r3, [r7, #4]
  1928. 8001196: 62da str r2, [r3, #44] ; 0x2c
  1929. tmp_hal_status = HAL_ERROR;
  1930. 8001198: 2301 movs r3, #1
  1931. 800119a: 75fb strb r3, [r7, #23]
  1932. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  1933. 800119c: e007 b.n 80011ae <HAL_ADC_Init+0x19e>
  1934. }
  1935. else
  1936. {
  1937. /* Update ADC state machine to error */
  1938. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  1939. 800119e: 687b ldr r3, [r7, #4]
  1940. 80011a0: 6a9b ldr r3, [r3, #40] ; 0x28
  1941. 80011a2: f043 0210 orr.w r2, r3, #16
  1942. 80011a6: 687b ldr r3, [r7, #4]
  1943. 80011a8: 629a str r2, [r3, #40] ; 0x28
  1944. tmp_hal_status = HAL_ERROR;
  1945. 80011aa: 2301 movs r3, #1
  1946. 80011ac: 75fb strb r3, [r7, #23]
  1947. }
  1948. /* Return function status */
  1949. return tmp_hal_status;
  1950. 80011ae: 7dfb ldrb r3, [r7, #23]
  1951. }
  1952. 80011b0: 4618 mov r0, r3
  1953. 80011b2: 3718 adds r7, #24
  1954. 80011b4: 46bd mov sp, r7
  1955. 80011b6: bd80 pop {r7, pc}
  1956. 80011b8: ffe1f7fd .word 0xffe1f7fd
  1957. 80011bc: ff1f0efe .word 0xff1f0efe
  1958. 080011c0 <HAL_ADC_Start_DMA>:
  1959. * @param pData: The destination Buffer address.
  1960. * @param Length: The length of data to be transferred from ADC peripheral to memory.
  1961. * @retval None
  1962. */
  1963. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
  1964. {
  1965. 80011c0: b580 push {r7, lr}
  1966. 80011c2: b086 sub sp, #24
  1967. 80011c4: af00 add r7, sp, #0
  1968. 80011c6: 60f8 str r0, [r7, #12]
  1969. 80011c8: 60b9 str r1, [r7, #8]
  1970. 80011ca: 607a str r2, [r7, #4]
  1971. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  1972. 80011cc: 2300 movs r3, #0
  1973. 80011ce: 75fb strb r3, [r7, #23]
  1974. /* If multimode is enabled, dedicated function multimode conversion */
  1975. /* start DMA must be used. */
  1976. if(ADC_MULTIMODE_IS_ENABLE(hadc) == RESET)
  1977. {
  1978. /* Process locked */
  1979. __HAL_LOCK(hadc);
  1980. 80011d0: 68fb ldr r3, [r7, #12]
  1981. 80011d2: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  1982. 80011d6: 2b01 cmp r3, #1
  1983. 80011d8: d101 bne.n 80011de <HAL_ADC_Start_DMA+0x1e>
  1984. 80011da: 2302 movs r3, #2
  1985. 80011dc: e080 b.n 80012e0 <HAL_ADC_Start_DMA+0x120>
  1986. 80011de: 68fb ldr r3, [r7, #12]
  1987. 80011e0: 2201 movs r2, #1
  1988. 80011e2: f883 2024 strb.w r2, [r3, #36] ; 0x24
  1989. /* Enable the ADC peripheral */
  1990. tmp_hal_status = ADC_Enable(hadc);
  1991. 80011e6: 68f8 ldr r0, [r7, #12]
  1992. 80011e8: f000 fa5a bl 80016a0 <ADC_Enable>
  1993. 80011ec: 4603 mov r3, r0
  1994. 80011ee: 75fb strb r3, [r7, #23]
  1995. /* Start conversion if ADC is effectively enabled */
  1996. if (tmp_hal_status == HAL_OK)
  1997. 80011f0: 7dfb ldrb r3, [r7, #23]
  1998. 80011f2: 2b00 cmp r3, #0
  1999. 80011f4: d16f bne.n 80012d6 <HAL_ADC_Start_DMA+0x116>
  2000. {
  2001. /* Set ADC state */
  2002. /* - Clear state bitfield related to regular group conversion results */
  2003. /* - Set state bitfield related to regular operation */
  2004. ADC_STATE_CLR_SET(hadc->State,
  2005. 80011f6: 68fb ldr r3, [r7, #12]
  2006. 80011f8: 6a9b ldr r3, [r3, #40] ; 0x28
  2007. 80011fa: f423 6370 bic.w r3, r3, #3840 ; 0xf00
  2008. 80011fe: f023 0301 bic.w r3, r3, #1
  2009. 8001202: f443 7280 orr.w r2, r3, #256 ; 0x100
  2010. 8001206: 68fb ldr r3, [r7, #12]
  2011. 8001208: 629a str r2, [r3, #40] ; 0x28
  2012. /* for all cases of multimode: independent mode, multimode ADC master */
  2013. /* or multimode ADC slave (for devices with several ADCs): */
  2014. if (ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc))
  2015. {
  2016. /* Set ADC state (ADC independent or master) */
  2017. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  2018. 800120a: 68fb ldr r3, [r7, #12]
  2019. 800120c: 6a9b ldr r3, [r3, #40] ; 0x28
  2020. 800120e: f423 1280 bic.w r2, r3, #1048576 ; 0x100000
  2021. 8001212: 68fb ldr r3, [r7, #12]
  2022. 8001214: 629a str r2, [r3, #40] ; 0x28
  2023. /* If conversions on group regular are also triggering group injected, */
  2024. /* update ADC state. */
  2025. if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
  2026. 8001216: 68fb ldr r3, [r7, #12]
  2027. 8001218: 681b ldr r3, [r3, #0]
  2028. 800121a: 685b ldr r3, [r3, #4]
  2029. 800121c: f403 6380 and.w r3, r3, #1024 ; 0x400
  2030. 8001220: 2b00 cmp r3, #0
  2031. 8001222: d007 beq.n 8001234 <HAL_ADC_Start_DMA+0x74>
  2032. {
  2033. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  2034. 8001224: 68fb ldr r3, [r7, #12]
  2035. 8001226: 6a9b ldr r3, [r3, #40] ; 0x28
  2036. 8001228: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  2037. 800122c: f443 5280 orr.w r2, r3, #4096 ; 0x1000
  2038. 8001230: 68fb ldr r3, [r7, #12]
  2039. 8001232: 629a str r2, [r3, #40] ; 0x28
  2040. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  2041. }
  2042. }
  2043. /* State machine update: Check if an injected conversion is ongoing */
  2044. if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  2045. 8001234: 68fb ldr r3, [r7, #12]
  2046. 8001236: 6a9b ldr r3, [r3, #40] ; 0x28
  2047. 8001238: f403 5380 and.w r3, r3, #4096 ; 0x1000
  2048. 800123c: 2b00 cmp r3, #0
  2049. 800123e: d006 beq.n 800124e <HAL_ADC_Start_DMA+0x8e>
  2050. {
  2051. /* Reset ADC error code fields related to conversions on group regular */
  2052. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  2053. 8001240: 68fb ldr r3, [r7, #12]
  2054. 8001242: 6adb ldr r3, [r3, #44] ; 0x2c
  2055. 8001244: f023 0206 bic.w r2, r3, #6
  2056. 8001248: 68fb ldr r3, [r7, #12]
  2057. 800124a: 62da str r2, [r3, #44] ; 0x2c
  2058. 800124c: e002 b.n 8001254 <HAL_ADC_Start_DMA+0x94>
  2059. }
  2060. else
  2061. {
  2062. /* Reset ADC all error code fields */
  2063. ADC_CLEAR_ERRORCODE(hadc);
  2064. 800124e: 68fb ldr r3, [r7, #12]
  2065. 8001250: 2200 movs r2, #0
  2066. 8001252: 62da str r2, [r3, #44] ; 0x2c
  2067. }
  2068. /* Process unlocked */
  2069. /* Unlock before starting ADC conversions: in case of potential */
  2070. /* interruption, to let the process to ADC IRQ Handler. */
  2071. __HAL_UNLOCK(hadc);
  2072. 8001254: 68fb ldr r3, [r7, #12]
  2073. 8001256: 2200 movs r2, #0
  2074. 8001258: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2075. /* Set the DMA transfer complete callback */
  2076. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  2077. 800125c: 68fb ldr r3, [r7, #12]
  2078. 800125e: 6a1b ldr r3, [r3, #32]
  2079. 8001260: 4a21 ldr r2, [pc, #132] ; (80012e8 <HAL_ADC_Start_DMA+0x128>)
  2080. 8001262: 629a str r2, [r3, #40] ; 0x28
  2081. /* Set the DMA half transfer complete callback */
  2082. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  2083. 8001264: 68fb ldr r3, [r7, #12]
  2084. 8001266: 6a1b ldr r3, [r3, #32]
  2085. 8001268: 4a20 ldr r2, [pc, #128] ; (80012ec <HAL_ADC_Start_DMA+0x12c>)
  2086. 800126a: 62da str r2, [r3, #44] ; 0x2c
  2087. /* Set the DMA error callback */
  2088. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  2089. 800126c: 68fb ldr r3, [r7, #12]
  2090. 800126e: 6a1b ldr r3, [r3, #32]
  2091. 8001270: 4a1f ldr r2, [pc, #124] ; (80012f0 <HAL_ADC_Start_DMA+0x130>)
  2092. 8001272: 631a str r2, [r3, #48] ; 0x30
  2093. /* start (in case of SW start): */
  2094. /* Clear regular group conversion flag and overrun flag */
  2095. /* (To ensure of no unknown state from potential previous ADC */
  2096. /* operations) */
  2097. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC);
  2098. 8001274: 68fb ldr r3, [r7, #12]
  2099. 8001276: 681b ldr r3, [r3, #0]
  2100. 8001278: f06f 0202 mvn.w r2, #2
  2101. 800127c: 601a str r2, [r3, #0]
  2102. /* Enable ADC DMA mode */
  2103. SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA);
  2104. 800127e: 68fb ldr r3, [r7, #12]
  2105. 8001280: 681b ldr r3, [r3, #0]
  2106. 8001282: 689a ldr r2, [r3, #8]
  2107. 8001284: 68fb ldr r3, [r7, #12]
  2108. 8001286: 681b ldr r3, [r3, #0]
  2109. 8001288: f442 7280 orr.w r2, r2, #256 ; 0x100
  2110. 800128c: 609a str r2, [r3, #8]
  2111. /* Start the DMA channel */
  2112. HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  2113. 800128e: 68fb ldr r3, [r7, #12]
  2114. 8001290: 6a18 ldr r0, [r3, #32]
  2115. 8001292: 68fb ldr r3, [r7, #12]
  2116. 8001294: 681b ldr r3, [r3, #0]
  2117. 8001296: 334c adds r3, #76 ; 0x4c
  2118. 8001298: 4619 mov r1, r3
  2119. 800129a: 68ba ldr r2, [r7, #8]
  2120. 800129c: 687b ldr r3, [r7, #4]
  2121. 800129e: f000 fcd1 bl 8001c44 <HAL_DMA_Start_IT>
  2122. /* Enable conversion of regular group. */
  2123. /* If software start has been selected, conversion starts immediately. */
  2124. /* If external trigger has been selected, conversion will start at next */
  2125. /* trigger event. */
  2126. if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
  2127. 80012a2: 68fb ldr r3, [r7, #12]
  2128. 80012a4: 681b ldr r3, [r3, #0]
  2129. 80012a6: 689b ldr r3, [r3, #8]
  2130. 80012a8: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  2131. 80012ac: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  2132. 80012b0: d108 bne.n 80012c4 <HAL_ADC_Start_DMA+0x104>
  2133. {
  2134. /* Start ADC conversion on regular group with SW start */
  2135. SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG));
  2136. 80012b2: 68fb ldr r3, [r7, #12]
  2137. 80012b4: 681b ldr r3, [r3, #0]
  2138. 80012b6: 689a ldr r2, [r3, #8]
  2139. 80012b8: 68fb ldr r3, [r7, #12]
  2140. 80012ba: 681b ldr r3, [r3, #0]
  2141. 80012bc: f442 02a0 orr.w r2, r2, #5242880 ; 0x500000
  2142. 80012c0: 609a str r2, [r3, #8]
  2143. 80012c2: e00c b.n 80012de <HAL_ADC_Start_DMA+0x11e>
  2144. }
  2145. else
  2146. {
  2147. /* Start ADC conversion on regular group with external trigger */
  2148. SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG);
  2149. 80012c4: 68fb ldr r3, [r7, #12]
  2150. 80012c6: 681b ldr r3, [r3, #0]
  2151. 80012c8: 689a ldr r2, [r3, #8]
  2152. 80012ca: 68fb ldr r3, [r7, #12]
  2153. 80012cc: 681b ldr r3, [r3, #0]
  2154. 80012ce: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  2155. 80012d2: 609a str r2, [r3, #8]
  2156. 80012d4: e003 b.n 80012de <HAL_ADC_Start_DMA+0x11e>
  2157. }
  2158. }
  2159. else
  2160. {
  2161. /* Process unlocked */
  2162. __HAL_UNLOCK(hadc);
  2163. 80012d6: 68fb ldr r3, [r7, #12]
  2164. 80012d8: 2200 movs r2, #0
  2165. 80012da: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2166. {
  2167. tmp_hal_status = HAL_ERROR;
  2168. }
  2169. /* Return function status */
  2170. return tmp_hal_status;
  2171. 80012de: 7dfb ldrb r3, [r7, #23]
  2172. }
  2173. 80012e0: 4618 mov r0, r3
  2174. 80012e2: 3718 adds r7, #24
  2175. 80012e4: 46bd mov sp, r7
  2176. 80012e6: bd80 pop {r7, pc}
  2177. 80012e8: 080017b9 .word 0x080017b9
  2178. 80012ec: 08001835 .word 0x08001835
  2179. 80012f0: 08001851 .word 0x08001851
  2180. 080012f4 <HAL_ADC_IRQHandler>:
  2181. * @brief Handles ADC interrupt request
  2182. * @param hadc: ADC handle
  2183. * @retval None
  2184. */
  2185. void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc)
  2186. {
  2187. 80012f4: b580 push {r7, lr}
  2188. 80012f6: b082 sub sp, #8
  2189. 80012f8: af00 add r7, sp, #0
  2190. 80012fa: 6078 str r0, [r7, #4]
  2191. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  2192. assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion));
  2193. /* ========== Check End of Conversion flag for regular group ========== */
  2194. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOC))
  2195. 80012fc: 687b ldr r3, [r7, #4]
  2196. 80012fe: 681b ldr r3, [r3, #0]
  2197. 8001300: 685b ldr r3, [r3, #4]
  2198. 8001302: f003 0320 and.w r3, r3, #32
  2199. 8001306: 2b20 cmp r3, #32
  2200. 8001308: d140 bne.n 800138c <HAL_ADC_IRQHandler+0x98>
  2201. {
  2202. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC) )
  2203. 800130a: 687b ldr r3, [r7, #4]
  2204. 800130c: 681b ldr r3, [r3, #0]
  2205. 800130e: 681b ldr r3, [r3, #0]
  2206. 8001310: f003 0302 and.w r3, r3, #2
  2207. 8001314: 2b02 cmp r3, #2
  2208. 8001316: d139 bne.n 800138c <HAL_ADC_IRQHandler+0x98>
  2209. {
  2210. /* Update state machine on conversion status if not in error state */
  2211. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  2212. 8001318: 687b ldr r3, [r7, #4]
  2213. 800131a: 6a9b ldr r3, [r3, #40] ; 0x28
  2214. 800131c: f003 0310 and.w r3, r3, #16
  2215. 8001320: 2b00 cmp r3, #0
  2216. 8001322: d105 bne.n 8001330 <HAL_ADC_IRQHandler+0x3c>
  2217. {
  2218. /* Set ADC state */
  2219. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  2220. 8001324: 687b ldr r3, [r7, #4]
  2221. 8001326: 6a9b ldr r3, [r3, #40] ; 0x28
  2222. 8001328: f443 7200 orr.w r2, r3, #512 ; 0x200
  2223. 800132c: 687b ldr r3, [r7, #4]
  2224. 800132e: 629a str r2, [r3, #40] ; 0x28
  2225. /* Determine whether any further conversion upcoming on group regular */
  2226. /* by external trigger, continuous mode or scan sequence on going. */
  2227. /* Note: On STM32F1 devices, in case of sequencer enabled */
  2228. /* (several ranks selected), end of conversion flag is raised */
  2229. /* at the end of the sequence. */
  2230. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  2231. 8001330: 687b ldr r3, [r7, #4]
  2232. 8001332: 681b ldr r3, [r3, #0]
  2233. 8001334: 689b ldr r3, [r3, #8]
  2234. 8001336: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  2235. 800133a: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  2236. 800133e: d11d bne.n 800137c <HAL_ADC_IRQHandler+0x88>
  2237. (hadc->Init.ContinuousConvMode == DISABLE) )
  2238. 8001340: 687b ldr r3, [r7, #4]
  2239. 8001342: 7b1b ldrb r3, [r3, #12]
  2240. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  2241. 8001344: 2b00 cmp r3, #0
  2242. 8001346: d119 bne.n 800137c <HAL_ADC_IRQHandler+0x88>
  2243. {
  2244. /* Disable ADC end of conversion interrupt on group regular */
  2245. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
  2246. 8001348: 687b ldr r3, [r7, #4]
  2247. 800134a: 681b ldr r3, [r3, #0]
  2248. 800134c: 685a ldr r2, [r3, #4]
  2249. 800134e: 687b ldr r3, [r7, #4]
  2250. 8001350: 681b ldr r3, [r3, #0]
  2251. 8001352: f022 0220 bic.w r2, r2, #32
  2252. 8001356: 605a str r2, [r3, #4]
  2253. /* Set ADC state */
  2254. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  2255. 8001358: 687b ldr r3, [r7, #4]
  2256. 800135a: 6a9b ldr r3, [r3, #40] ; 0x28
  2257. 800135c: f423 7280 bic.w r2, r3, #256 ; 0x100
  2258. 8001360: 687b ldr r3, [r7, #4]
  2259. 8001362: 629a str r2, [r3, #40] ; 0x28
  2260. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  2261. 8001364: 687b ldr r3, [r7, #4]
  2262. 8001366: 6a9b ldr r3, [r3, #40] ; 0x28
  2263. 8001368: f403 5380 and.w r3, r3, #4096 ; 0x1000
  2264. 800136c: 2b00 cmp r3, #0
  2265. 800136e: d105 bne.n 800137c <HAL_ADC_IRQHandler+0x88>
  2266. {
  2267. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  2268. 8001370: 687b ldr r3, [r7, #4]
  2269. 8001372: 6a9b ldr r3, [r3, #40] ; 0x28
  2270. 8001374: f043 0201 orr.w r2, r3, #1
  2271. 8001378: 687b ldr r3, [r7, #4]
  2272. 800137a: 629a str r2, [r3, #40] ; 0x28
  2273. /* Conversion complete callback */
  2274. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  2275. hadc->ConvCpltCallback(hadc);
  2276. #else
  2277. HAL_ADC_ConvCpltCallback(hadc);
  2278. 800137c: 6878 ldr r0, [r7, #4]
  2279. 800137e: f7ff fcc3 bl 8000d08 <HAL_ADC_ConvCpltCallback>
  2280. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  2281. /* Clear regular group conversion flag */
  2282. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC);
  2283. 8001382: 687b ldr r3, [r7, #4]
  2284. 8001384: 681b ldr r3, [r3, #0]
  2285. 8001386: f06f 0212 mvn.w r2, #18
  2286. 800138a: 601a str r2, [r3, #0]
  2287. }
  2288. }
  2289. /* ========== Check End of Conversion flag for injected group ========== */
  2290. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_JEOC))
  2291. 800138c: 687b ldr r3, [r7, #4]
  2292. 800138e: 681b ldr r3, [r3, #0]
  2293. 8001390: 685b ldr r3, [r3, #4]
  2294. 8001392: f003 0380 and.w r3, r3, #128 ; 0x80
  2295. 8001396: 2b80 cmp r3, #128 ; 0x80
  2296. 8001398: d14f bne.n 800143a <HAL_ADC_IRQHandler+0x146>
  2297. {
  2298. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC))
  2299. 800139a: 687b ldr r3, [r7, #4]
  2300. 800139c: 681b ldr r3, [r3, #0]
  2301. 800139e: 681b ldr r3, [r3, #0]
  2302. 80013a0: f003 0304 and.w r3, r3, #4
  2303. 80013a4: 2b04 cmp r3, #4
  2304. 80013a6: d148 bne.n 800143a <HAL_ADC_IRQHandler+0x146>
  2305. {
  2306. /* Update state machine on conversion status if not in error state */
  2307. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  2308. 80013a8: 687b ldr r3, [r7, #4]
  2309. 80013aa: 6a9b ldr r3, [r3, #40] ; 0x28
  2310. 80013ac: f003 0310 and.w r3, r3, #16
  2311. 80013b0: 2b00 cmp r3, #0
  2312. 80013b2: d105 bne.n 80013c0 <HAL_ADC_IRQHandler+0xcc>
  2313. {
  2314. /* Set ADC state */
  2315. SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC);
  2316. 80013b4: 687b ldr r3, [r7, #4]
  2317. 80013b6: 6a9b ldr r3, [r3, #40] ; 0x28
  2318. 80013b8: f443 5200 orr.w r2, r3, #8192 ; 0x2000
  2319. 80013bc: 687b ldr r3, [r7, #4]
  2320. 80013be: 629a str r2, [r3, #40] ; 0x28
  2321. /* conversion from group regular (same conditions as group regular */
  2322. /* interruption disabling above). */
  2323. /* Note: On STM32F1 devices, in case of sequencer enabled */
  2324. /* (several ranks selected), end of conversion flag is raised */
  2325. /* at the end of the sequence. */
  2326. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  2327. 80013c0: 687b ldr r3, [r7, #4]
  2328. 80013c2: 681b ldr r3, [r3, #0]
  2329. 80013c4: 689b ldr r3, [r3, #8]
  2330. 80013c6: f403 43e0 and.w r3, r3, #28672 ; 0x7000
  2331. 80013ca: f5b3 4fe0 cmp.w r3, #28672 ; 0x7000
  2332. 80013ce: d012 beq.n 80013f6 <HAL_ADC_IRQHandler+0x102>
  2333. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  2334. 80013d0: 687b ldr r3, [r7, #4]
  2335. 80013d2: 681b ldr r3, [r3, #0]
  2336. 80013d4: 685b ldr r3, [r3, #4]
  2337. 80013d6: f403 6380 and.w r3, r3, #1024 ; 0x400
  2338. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  2339. 80013da: 2b00 cmp r3, #0
  2340. 80013dc: d125 bne.n 800142a <HAL_ADC_IRQHandler+0x136>
  2341. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  2342. 80013de: 687b ldr r3, [r7, #4]
  2343. 80013e0: 681b ldr r3, [r3, #0]
  2344. 80013e2: 689b ldr r3, [r3, #8]
  2345. 80013e4: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  2346. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  2347. 80013e8: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  2348. 80013ec: d11d bne.n 800142a <HAL_ADC_IRQHandler+0x136>
  2349. (hadc->Init.ContinuousConvMode == DISABLE) ) ) )
  2350. 80013ee: 687b ldr r3, [r7, #4]
  2351. 80013f0: 7b1b ldrb r3, [r3, #12]
  2352. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  2353. 80013f2: 2b00 cmp r3, #0
  2354. 80013f4: d119 bne.n 800142a <HAL_ADC_IRQHandler+0x136>
  2355. {
  2356. /* Disable ADC end of conversion interrupt on group injected */
  2357. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC);
  2358. 80013f6: 687b ldr r3, [r7, #4]
  2359. 80013f8: 681b ldr r3, [r3, #0]
  2360. 80013fa: 685a ldr r2, [r3, #4]
  2361. 80013fc: 687b ldr r3, [r7, #4]
  2362. 80013fe: 681b ldr r3, [r3, #0]
  2363. 8001400: f022 0280 bic.w r2, r2, #128 ; 0x80
  2364. 8001404: 605a str r2, [r3, #4]
  2365. /* Set ADC state */
  2366. CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY);
  2367. 8001406: 687b ldr r3, [r7, #4]
  2368. 8001408: 6a9b ldr r3, [r3, #40] ; 0x28
  2369. 800140a: f423 5280 bic.w r2, r3, #4096 ; 0x1000
  2370. 800140e: 687b ldr r3, [r7, #4]
  2371. 8001410: 629a str r2, [r3, #40] ; 0x28
  2372. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY))
  2373. 8001412: 687b ldr r3, [r7, #4]
  2374. 8001414: 6a9b ldr r3, [r3, #40] ; 0x28
  2375. 8001416: f403 7380 and.w r3, r3, #256 ; 0x100
  2376. 800141a: 2b00 cmp r3, #0
  2377. 800141c: d105 bne.n 800142a <HAL_ADC_IRQHandler+0x136>
  2378. {
  2379. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  2380. 800141e: 687b ldr r3, [r7, #4]
  2381. 8001420: 6a9b ldr r3, [r3, #40] ; 0x28
  2382. 8001422: f043 0201 orr.w r2, r3, #1
  2383. 8001426: 687b ldr r3, [r7, #4]
  2384. 8001428: 629a str r2, [r3, #40] ; 0x28
  2385. /* Conversion complete callback */
  2386. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  2387. hadc->InjectedConvCpltCallback(hadc);
  2388. #else
  2389. HAL_ADCEx_InjectedConvCpltCallback(hadc);
  2390. 800142a: 6878 ldr r0, [r7, #4]
  2391. 800142c: f000 fac6 bl 80019bc <HAL_ADCEx_InjectedConvCpltCallback>
  2392. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  2393. /* Clear injected group conversion flag */
  2394. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC));
  2395. 8001430: 687b ldr r3, [r7, #4]
  2396. 8001432: 681b ldr r3, [r3, #0]
  2397. 8001434: f06f 020c mvn.w r2, #12
  2398. 8001438: 601a str r2, [r3, #0]
  2399. }
  2400. }
  2401. /* ========== Check Analog watchdog flags ========== */
  2402. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_AWD))
  2403. 800143a: 687b ldr r3, [r7, #4]
  2404. 800143c: 681b ldr r3, [r3, #0]
  2405. 800143e: 685b ldr r3, [r3, #4]
  2406. 8001440: f003 0340 and.w r3, r3, #64 ; 0x40
  2407. 8001444: 2b40 cmp r3, #64 ; 0x40
  2408. 8001446: d114 bne.n 8001472 <HAL_ADC_IRQHandler+0x17e>
  2409. {
  2410. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD))
  2411. 8001448: 687b ldr r3, [r7, #4]
  2412. 800144a: 681b ldr r3, [r3, #0]
  2413. 800144c: 681b ldr r3, [r3, #0]
  2414. 800144e: f003 0301 and.w r3, r3, #1
  2415. 8001452: 2b01 cmp r3, #1
  2416. 8001454: d10d bne.n 8001472 <HAL_ADC_IRQHandler+0x17e>
  2417. {
  2418. /* Set ADC state */
  2419. SET_BIT(hadc->State, HAL_ADC_STATE_AWD1);
  2420. 8001456: 687b ldr r3, [r7, #4]
  2421. 8001458: 6a9b ldr r3, [r3, #40] ; 0x28
  2422. 800145a: f443 3280 orr.w r2, r3, #65536 ; 0x10000
  2423. 800145e: 687b ldr r3, [r7, #4]
  2424. 8001460: 629a str r2, [r3, #40] ; 0x28
  2425. /* Level out of window callback */
  2426. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  2427. hadc->LevelOutOfWindowCallback(hadc);
  2428. #else
  2429. HAL_ADC_LevelOutOfWindowCallback(hadc);
  2430. 8001462: 6878 ldr r0, [r7, #4]
  2431. 8001464: f000 f812 bl 800148c <HAL_ADC_LevelOutOfWindowCallback>
  2432. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  2433. /* Clear the ADC analog watchdog flag */
  2434. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD);
  2435. 8001468: 687b ldr r3, [r7, #4]
  2436. 800146a: 681b ldr r3, [r3, #0]
  2437. 800146c: f06f 0201 mvn.w r2, #1
  2438. 8001470: 601a str r2, [r3, #0]
  2439. }
  2440. }
  2441. }
  2442. 8001472: bf00 nop
  2443. 8001474: 3708 adds r7, #8
  2444. 8001476: 46bd mov sp, r7
  2445. 8001478: bd80 pop {r7, pc}
  2446. 0800147a <HAL_ADC_ConvHalfCpltCallback>:
  2447. * @brief Conversion DMA half-transfer callback in non blocking mode
  2448. * @param hadc: ADC handle
  2449. * @retval None
  2450. */
  2451. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
  2452. {
  2453. 800147a: b480 push {r7}
  2454. 800147c: b083 sub sp, #12
  2455. 800147e: af00 add r7, sp, #0
  2456. 8001480: 6078 str r0, [r7, #4]
  2457. /* Prevent unused argument(s) compilation warning */
  2458. UNUSED(hadc);
  2459. /* NOTE : This function should not be modified. When the callback is needed,
  2460. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  2461. */
  2462. }
  2463. 8001482: bf00 nop
  2464. 8001484: 370c adds r7, #12
  2465. 8001486: 46bd mov sp, r7
  2466. 8001488: bc80 pop {r7}
  2467. 800148a: 4770 bx lr
  2468. 0800148c <HAL_ADC_LevelOutOfWindowCallback>:
  2469. * @brief Analog watchdog callback in non blocking mode.
  2470. * @param hadc: ADC handle
  2471. * @retval None
  2472. */
  2473. __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc)
  2474. {
  2475. 800148c: b480 push {r7}
  2476. 800148e: b083 sub sp, #12
  2477. 8001490: af00 add r7, sp, #0
  2478. 8001492: 6078 str r0, [r7, #4]
  2479. /* Prevent unused argument(s) compilation warning */
  2480. UNUSED(hadc);
  2481. /* NOTE : This function should not be modified. When the callback is needed,
  2482. function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file.
  2483. */
  2484. }
  2485. 8001494: bf00 nop
  2486. 8001496: 370c adds r7, #12
  2487. 8001498: 46bd mov sp, r7
  2488. 800149a: bc80 pop {r7}
  2489. 800149c: 4770 bx lr
  2490. 0800149e <HAL_ADC_ErrorCallback>:
  2491. * (ADC conversion with interruption or transfer by DMA)
  2492. * @param hadc: ADC handle
  2493. * @retval None
  2494. */
  2495. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  2496. {
  2497. 800149e: b480 push {r7}
  2498. 80014a0: b083 sub sp, #12
  2499. 80014a2: af00 add r7, sp, #0
  2500. 80014a4: 6078 str r0, [r7, #4]
  2501. /* Prevent unused argument(s) compilation warning */
  2502. UNUSED(hadc);
  2503. /* NOTE : This function should not be modified. When the callback is needed,
  2504. function HAL_ADC_ErrorCallback must be implemented in the user file.
  2505. */
  2506. }
  2507. 80014a6: bf00 nop
  2508. 80014a8: 370c adds r7, #12
  2509. 80014aa: 46bd mov sp, r7
  2510. 80014ac: bc80 pop {r7}
  2511. 80014ae: 4770 bx lr
  2512. 080014b0 <HAL_ADC_ConfigChannel>:
  2513. * @param hadc: ADC handle
  2514. * @param sConfig: Structure of ADC channel for regular group.
  2515. * @retval HAL status
  2516. */
  2517. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
  2518. {
  2519. 80014b0: b480 push {r7}
  2520. 80014b2: b085 sub sp, #20
  2521. 80014b4: af00 add r7, sp, #0
  2522. 80014b6: 6078 str r0, [r7, #4]
  2523. 80014b8: 6039 str r1, [r7, #0]
  2524. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  2525. 80014ba: 2300 movs r3, #0
  2526. 80014bc: 73fb strb r3, [r7, #15]
  2527. __IO uint32_t wait_loop_index = 0U;
  2528. 80014be: 2300 movs r3, #0
  2529. 80014c0: 60bb str r3, [r7, #8]
  2530. assert_param(IS_ADC_CHANNEL(sConfig->Channel));
  2531. assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
  2532. assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
  2533. /* Process locked */
  2534. __HAL_LOCK(hadc);
  2535. 80014c2: 687b ldr r3, [r7, #4]
  2536. 80014c4: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  2537. 80014c8: 2b01 cmp r3, #1
  2538. 80014ca: d101 bne.n 80014d0 <HAL_ADC_ConfigChannel+0x20>
  2539. 80014cc: 2302 movs r3, #2
  2540. 80014ce: e0dc b.n 800168a <HAL_ADC_ConfigChannel+0x1da>
  2541. 80014d0: 687b ldr r3, [r7, #4]
  2542. 80014d2: 2201 movs r2, #1
  2543. 80014d4: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2544. /* Regular sequence configuration */
  2545. /* For Rank 1 to 6 */
  2546. if (sConfig->Rank < 7U)
  2547. 80014d8: 683b ldr r3, [r7, #0]
  2548. 80014da: 685b ldr r3, [r3, #4]
  2549. 80014dc: 2b06 cmp r3, #6
  2550. 80014de: d81c bhi.n 800151a <HAL_ADC_ConfigChannel+0x6a>
  2551. {
  2552. MODIFY_REG(hadc->Instance->SQR3 ,
  2553. 80014e0: 687b ldr r3, [r7, #4]
  2554. 80014e2: 681b ldr r3, [r3, #0]
  2555. 80014e4: 6b59 ldr r1, [r3, #52] ; 0x34
  2556. 80014e6: 683b ldr r3, [r7, #0]
  2557. 80014e8: 685a ldr r2, [r3, #4]
  2558. 80014ea: 4613 mov r3, r2
  2559. 80014ec: 009b lsls r3, r3, #2
  2560. 80014ee: 4413 add r3, r2
  2561. 80014f0: 3b05 subs r3, #5
  2562. 80014f2: 221f movs r2, #31
  2563. 80014f4: fa02 f303 lsl.w r3, r2, r3
  2564. 80014f8: 43db mvns r3, r3
  2565. 80014fa: 4019 ands r1, r3
  2566. 80014fc: 683b ldr r3, [r7, #0]
  2567. 80014fe: 6818 ldr r0, [r3, #0]
  2568. 8001500: 683b ldr r3, [r7, #0]
  2569. 8001502: 685a ldr r2, [r3, #4]
  2570. 8001504: 4613 mov r3, r2
  2571. 8001506: 009b lsls r3, r3, #2
  2572. 8001508: 4413 add r3, r2
  2573. 800150a: 3b05 subs r3, #5
  2574. 800150c: fa00 f203 lsl.w r2, r0, r3
  2575. 8001510: 687b ldr r3, [r7, #4]
  2576. 8001512: 681b ldr r3, [r3, #0]
  2577. 8001514: 430a orrs r2, r1
  2578. 8001516: 635a str r2, [r3, #52] ; 0x34
  2579. 8001518: e03c b.n 8001594 <HAL_ADC_ConfigChannel+0xe4>
  2580. ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) ,
  2581. ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
  2582. }
  2583. /* For Rank 7 to 12 */
  2584. else if (sConfig->Rank < 13U)
  2585. 800151a: 683b ldr r3, [r7, #0]
  2586. 800151c: 685b ldr r3, [r3, #4]
  2587. 800151e: 2b0c cmp r3, #12
  2588. 8001520: d81c bhi.n 800155c <HAL_ADC_ConfigChannel+0xac>
  2589. {
  2590. MODIFY_REG(hadc->Instance->SQR2 ,
  2591. 8001522: 687b ldr r3, [r7, #4]
  2592. 8001524: 681b ldr r3, [r3, #0]
  2593. 8001526: 6b19 ldr r1, [r3, #48] ; 0x30
  2594. 8001528: 683b ldr r3, [r7, #0]
  2595. 800152a: 685a ldr r2, [r3, #4]
  2596. 800152c: 4613 mov r3, r2
  2597. 800152e: 009b lsls r3, r3, #2
  2598. 8001530: 4413 add r3, r2
  2599. 8001532: 3b23 subs r3, #35 ; 0x23
  2600. 8001534: 221f movs r2, #31
  2601. 8001536: fa02 f303 lsl.w r3, r2, r3
  2602. 800153a: 43db mvns r3, r3
  2603. 800153c: 4019 ands r1, r3
  2604. 800153e: 683b ldr r3, [r7, #0]
  2605. 8001540: 6818 ldr r0, [r3, #0]
  2606. 8001542: 683b ldr r3, [r7, #0]
  2607. 8001544: 685a ldr r2, [r3, #4]
  2608. 8001546: 4613 mov r3, r2
  2609. 8001548: 009b lsls r3, r3, #2
  2610. 800154a: 4413 add r3, r2
  2611. 800154c: 3b23 subs r3, #35 ; 0x23
  2612. 800154e: fa00 f203 lsl.w r2, r0, r3
  2613. 8001552: 687b ldr r3, [r7, #4]
  2614. 8001554: 681b ldr r3, [r3, #0]
  2615. 8001556: 430a orrs r2, r1
  2616. 8001558: 631a str r2, [r3, #48] ; 0x30
  2617. 800155a: e01b b.n 8001594 <HAL_ADC_ConfigChannel+0xe4>
  2618. ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
  2619. }
  2620. /* For Rank 13 to 16 */
  2621. else
  2622. {
  2623. MODIFY_REG(hadc->Instance->SQR1 ,
  2624. 800155c: 687b ldr r3, [r7, #4]
  2625. 800155e: 681b ldr r3, [r3, #0]
  2626. 8001560: 6ad9 ldr r1, [r3, #44] ; 0x2c
  2627. 8001562: 683b ldr r3, [r7, #0]
  2628. 8001564: 685a ldr r2, [r3, #4]
  2629. 8001566: 4613 mov r3, r2
  2630. 8001568: 009b lsls r3, r3, #2
  2631. 800156a: 4413 add r3, r2
  2632. 800156c: 3b41 subs r3, #65 ; 0x41
  2633. 800156e: 221f movs r2, #31
  2634. 8001570: fa02 f303 lsl.w r3, r2, r3
  2635. 8001574: 43db mvns r3, r3
  2636. 8001576: 4019 ands r1, r3
  2637. 8001578: 683b ldr r3, [r7, #0]
  2638. 800157a: 6818 ldr r0, [r3, #0]
  2639. 800157c: 683b ldr r3, [r7, #0]
  2640. 800157e: 685a ldr r2, [r3, #4]
  2641. 8001580: 4613 mov r3, r2
  2642. 8001582: 009b lsls r3, r3, #2
  2643. 8001584: 4413 add r3, r2
  2644. 8001586: 3b41 subs r3, #65 ; 0x41
  2645. 8001588: fa00 f203 lsl.w r2, r0, r3
  2646. 800158c: 687b ldr r3, [r7, #4]
  2647. 800158e: 681b ldr r3, [r3, #0]
  2648. 8001590: 430a orrs r2, r1
  2649. 8001592: 62da str r2, [r3, #44] ; 0x2c
  2650. }
  2651. /* Channel sampling time configuration */
  2652. /* For channels 10 to 17 */
  2653. if (sConfig->Channel >= ADC_CHANNEL_10)
  2654. 8001594: 683b ldr r3, [r7, #0]
  2655. 8001596: 681b ldr r3, [r3, #0]
  2656. 8001598: 2b09 cmp r3, #9
  2657. 800159a: d91c bls.n 80015d6 <HAL_ADC_ConfigChannel+0x126>
  2658. {
  2659. MODIFY_REG(hadc->Instance->SMPR1 ,
  2660. 800159c: 687b ldr r3, [r7, #4]
  2661. 800159e: 681b ldr r3, [r3, #0]
  2662. 80015a0: 68d9 ldr r1, [r3, #12]
  2663. 80015a2: 683b ldr r3, [r7, #0]
  2664. 80015a4: 681a ldr r2, [r3, #0]
  2665. 80015a6: 4613 mov r3, r2
  2666. 80015a8: 005b lsls r3, r3, #1
  2667. 80015aa: 4413 add r3, r2
  2668. 80015ac: 3b1e subs r3, #30
  2669. 80015ae: 2207 movs r2, #7
  2670. 80015b0: fa02 f303 lsl.w r3, r2, r3
  2671. 80015b4: 43db mvns r3, r3
  2672. 80015b6: 4019 ands r1, r3
  2673. 80015b8: 683b ldr r3, [r7, #0]
  2674. 80015ba: 6898 ldr r0, [r3, #8]
  2675. 80015bc: 683b ldr r3, [r7, #0]
  2676. 80015be: 681a ldr r2, [r3, #0]
  2677. 80015c0: 4613 mov r3, r2
  2678. 80015c2: 005b lsls r3, r3, #1
  2679. 80015c4: 4413 add r3, r2
  2680. 80015c6: 3b1e subs r3, #30
  2681. 80015c8: fa00 f203 lsl.w r2, r0, r3
  2682. 80015cc: 687b ldr r3, [r7, #4]
  2683. 80015ce: 681b ldr r3, [r3, #0]
  2684. 80015d0: 430a orrs r2, r1
  2685. 80015d2: 60da str r2, [r3, #12]
  2686. 80015d4: e019 b.n 800160a <HAL_ADC_ConfigChannel+0x15a>
  2687. ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) ,
  2688. ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
  2689. }
  2690. else /* For channels 0 to 9 */
  2691. {
  2692. MODIFY_REG(hadc->Instance->SMPR2 ,
  2693. 80015d6: 687b ldr r3, [r7, #4]
  2694. 80015d8: 681b ldr r3, [r3, #0]
  2695. 80015da: 6919 ldr r1, [r3, #16]
  2696. 80015dc: 683b ldr r3, [r7, #0]
  2697. 80015de: 681a ldr r2, [r3, #0]
  2698. 80015e0: 4613 mov r3, r2
  2699. 80015e2: 005b lsls r3, r3, #1
  2700. 80015e4: 4413 add r3, r2
  2701. 80015e6: 2207 movs r2, #7
  2702. 80015e8: fa02 f303 lsl.w r3, r2, r3
  2703. 80015ec: 43db mvns r3, r3
  2704. 80015ee: 4019 ands r1, r3
  2705. 80015f0: 683b ldr r3, [r7, #0]
  2706. 80015f2: 6898 ldr r0, [r3, #8]
  2707. 80015f4: 683b ldr r3, [r7, #0]
  2708. 80015f6: 681a ldr r2, [r3, #0]
  2709. 80015f8: 4613 mov r3, r2
  2710. 80015fa: 005b lsls r3, r3, #1
  2711. 80015fc: 4413 add r3, r2
  2712. 80015fe: fa00 f203 lsl.w r2, r0, r3
  2713. 8001602: 687b ldr r3, [r7, #4]
  2714. 8001604: 681b ldr r3, [r3, #0]
  2715. 8001606: 430a orrs r2, r1
  2716. 8001608: 611a str r2, [r3, #16]
  2717. ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
  2718. }
  2719. /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
  2720. /* and VREFINT measurement path. */
  2721. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  2722. 800160a: 683b ldr r3, [r7, #0]
  2723. 800160c: 681b ldr r3, [r3, #0]
  2724. 800160e: 2b10 cmp r3, #16
  2725. 8001610: d003 beq.n 800161a <HAL_ADC_ConfigChannel+0x16a>
  2726. (sConfig->Channel == ADC_CHANNEL_VREFINT) )
  2727. 8001612: 683b ldr r3, [r7, #0]
  2728. 8001614: 681b ldr r3, [r3, #0]
  2729. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  2730. 8001616: 2b11 cmp r3, #17
  2731. 8001618: d132 bne.n 8001680 <HAL_ADC_ConfigChannel+0x1d0>
  2732. {
  2733. /* For STM32F1 devices with several ADC: Only ADC1 can access internal */
  2734. /* measurement channels (VrefInt/TempSensor). If these channels are */
  2735. /* intended to be set on other ADC instances, an error is reported. */
  2736. if (hadc->Instance == ADC1)
  2737. 800161a: 687b ldr r3, [r7, #4]
  2738. 800161c: 681b ldr r3, [r3, #0]
  2739. 800161e: 4a1d ldr r2, [pc, #116] ; (8001694 <HAL_ADC_ConfigChannel+0x1e4>)
  2740. 8001620: 4293 cmp r3, r2
  2741. 8001622: d125 bne.n 8001670 <HAL_ADC_ConfigChannel+0x1c0>
  2742. {
  2743. if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET)
  2744. 8001624: 687b ldr r3, [r7, #4]
  2745. 8001626: 681b ldr r3, [r3, #0]
  2746. 8001628: 689b ldr r3, [r3, #8]
  2747. 800162a: f403 0300 and.w r3, r3, #8388608 ; 0x800000
  2748. 800162e: 2b00 cmp r3, #0
  2749. 8001630: d126 bne.n 8001680 <HAL_ADC_ConfigChannel+0x1d0>
  2750. {
  2751. SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE);
  2752. 8001632: 687b ldr r3, [r7, #4]
  2753. 8001634: 681b ldr r3, [r3, #0]
  2754. 8001636: 689a ldr r2, [r3, #8]
  2755. 8001638: 687b ldr r3, [r7, #4]
  2756. 800163a: 681b ldr r3, [r3, #0]
  2757. 800163c: f442 0200 orr.w r2, r2, #8388608 ; 0x800000
  2758. 8001640: 609a str r2, [r3, #8]
  2759. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR))
  2760. 8001642: 683b ldr r3, [r7, #0]
  2761. 8001644: 681b ldr r3, [r3, #0]
  2762. 8001646: 2b10 cmp r3, #16
  2763. 8001648: d11a bne.n 8001680 <HAL_ADC_ConfigChannel+0x1d0>
  2764. {
  2765. /* Delay for temperature sensor stabilization time */
  2766. /* Compute number of CPU cycles to wait for */
  2767. wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U));
  2768. 800164a: 4b13 ldr r3, [pc, #76] ; (8001698 <HAL_ADC_ConfigChannel+0x1e8>)
  2769. 800164c: 681b ldr r3, [r3, #0]
  2770. 800164e: 4a13 ldr r2, [pc, #76] ; (800169c <HAL_ADC_ConfigChannel+0x1ec>)
  2771. 8001650: fba2 2303 umull r2, r3, r2, r3
  2772. 8001654: 0c9a lsrs r2, r3, #18
  2773. 8001656: 4613 mov r3, r2
  2774. 8001658: 009b lsls r3, r3, #2
  2775. 800165a: 4413 add r3, r2
  2776. 800165c: 005b lsls r3, r3, #1
  2777. 800165e: 60bb str r3, [r7, #8]
  2778. while(wait_loop_index != 0U)
  2779. 8001660: e002 b.n 8001668 <HAL_ADC_ConfigChannel+0x1b8>
  2780. {
  2781. wait_loop_index--;
  2782. 8001662: 68bb ldr r3, [r7, #8]
  2783. 8001664: 3b01 subs r3, #1
  2784. 8001666: 60bb str r3, [r7, #8]
  2785. while(wait_loop_index != 0U)
  2786. 8001668: 68bb ldr r3, [r7, #8]
  2787. 800166a: 2b00 cmp r3, #0
  2788. 800166c: d1f9 bne.n 8001662 <HAL_ADC_ConfigChannel+0x1b2>
  2789. 800166e: e007 b.n 8001680 <HAL_ADC_ConfigChannel+0x1d0>
  2790. }
  2791. }
  2792. else
  2793. {
  2794. /* Update ADC state machine to error */
  2795. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  2796. 8001670: 687b ldr r3, [r7, #4]
  2797. 8001672: 6a9b ldr r3, [r3, #40] ; 0x28
  2798. 8001674: f043 0220 orr.w r2, r3, #32
  2799. 8001678: 687b ldr r3, [r7, #4]
  2800. 800167a: 629a str r2, [r3, #40] ; 0x28
  2801. tmp_hal_status = HAL_ERROR;
  2802. 800167c: 2301 movs r3, #1
  2803. 800167e: 73fb strb r3, [r7, #15]
  2804. }
  2805. }
  2806. /* Process unlocked */
  2807. __HAL_UNLOCK(hadc);
  2808. 8001680: 687b ldr r3, [r7, #4]
  2809. 8001682: 2200 movs r2, #0
  2810. 8001684: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2811. /* Return function status */
  2812. return tmp_hal_status;
  2813. 8001688: 7bfb ldrb r3, [r7, #15]
  2814. }
  2815. 800168a: 4618 mov r0, r3
  2816. 800168c: 3714 adds r7, #20
  2817. 800168e: 46bd mov sp, r7
  2818. 8001690: bc80 pop {r7}
  2819. 8001692: 4770 bx lr
  2820. 8001694: 40012400 .word 0x40012400
  2821. 8001698: 20000008 .word 0x20000008
  2822. 800169c: 431bde83 .word 0x431bde83
  2823. 080016a0 <ADC_Enable>:
  2824. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  2825. * @param hadc: ADC handle
  2826. * @retval HAL status.
  2827. */
  2828. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
  2829. {
  2830. 80016a0: b580 push {r7, lr}
  2831. 80016a2: b084 sub sp, #16
  2832. 80016a4: af00 add r7, sp, #0
  2833. 80016a6: 6078 str r0, [r7, #4]
  2834. uint32_t tickstart = 0U;
  2835. 80016a8: 2300 movs r3, #0
  2836. 80016aa: 60fb str r3, [r7, #12]
  2837. __IO uint32_t wait_loop_index = 0U;
  2838. 80016ac: 2300 movs r3, #0
  2839. 80016ae: 60bb str r3, [r7, #8]
  2840. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  2841. /* enabling phase not yet completed: flag ADC ready not yet set). */
  2842. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  2843. /* causes: ADC clock not running, ...). */
  2844. if (ADC_IS_ENABLE(hadc) == RESET)
  2845. 80016b0: 687b ldr r3, [r7, #4]
  2846. 80016b2: 681b ldr r3, [r3, #0]
  2847. 80016b4: 689b ldr r3, [r3, #8]
  2848. 80016b6: f003 0301 and.w r3, r3, #1
  2849. 80016ba: 2b01 cmp r3, #1
  2850. 80016bc: d039 beq.n 8001732 <ADC_Enable+0x92>
  2851. {
  2852. /* Enable the Peripheral */
  2853. __HAL_ADC_ENABLE(hadc);
  2854. 80016be: 687b ldr r3, [r7, #4]
  2855. 80016c0: 681b ldr r3, [r3, #0]
  2856. 80016c2: 689a ldr r2, [r3, #8]
  2857. 80016c4: 687b ldr r3, [r7, #4]
  2858. 80016c6: 681b ldr r3, [r3, #0]
  2859. 80016c8: f042 0201 orr.w r2, r2, #1
  2860. 80016cc: 609a str r2, [r3, #8]
  2861. /* Delay for ADC stabilization time */
  2862. /* Compute number of CPU cycles to wait for */
  2863. wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U));
  2864. 80016ce: 4b1b ldr r3, [pc, #108] ; (800173c <ADC_Enable+0x9c>)
  2865. 80016d0: 681b ldr r3, [r3, #0]
  2866. 80016d2: 4a1b ldr r2, [pc, #108] ; (8001740 <ADC_Enable+0xa0>)
  2867. 80016d4: fba2 2303 umull r2, r3, r2, r3
  2868. 80016d8: 0c9b lsrs r3, r3, #18
  2869. 80016da: 60bb str r3, [r7, #8]
  2870. while(wait_loop_index != 0U)
  2871. 80016dc: e002 b.n 80016e4 <ADC_Enable+0x44>
  2872. {
  2873. wait_loop_index--;
  2874. 80016de: 68bb ldr r3, [r7, #8]
  2875. 80016e0: 3b01 subs r3, #1
  2876. 80016e2: 60bb str r3, [r7, #8]
  2877. while(wait_loop_index != 0U)
  2878. 80016e4: 68bb ldr r3, [r7, #8]
  2879. 80016e6: 2b00 cmp r3, #0
  2880. 80016e8: d1f9 bne.n 80016de <ADC_Enable+0x3e>
  2881. }
  2882. /* Get tick count */
  2883. tickstart = HAL_GetTick();
  2884. 80016ea: f7ff fc87 bl 8000ffc <HAL_GetTick>
  2885. 80016ee: 60f8 str r0, [r7, #12]
  2886. /* Wait for ADC effectively enabled */
  2887. while(ADC_IS_ENABLE(hadc) == RESET)
  2888. 80016f0: e018 b.n 8001724 <ADC_Enable+0x84>
  2889. {
  2890. if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  2891. 80016f2: f7ff fc83 bl 8000ffc <HAL_GetTick>
  2892. 80016f6: 4602 mov r2, r0
  2893. 80016f8: 68fb ldr r3, [r7, #12]
  2894. 80016fa: 1ad3 subs r3, r2, r3
  2895. 80016fc: 2b02 cmp r3, #2
  2896. 80016fe: d911 bls.n 8001724 <ADC_Enable+0x84>
  2897. {
  2898. /* Update ADC state machine to error */
  2899. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  2900. 8001700: 687b ldr r3, [r7, #4]
  2901. 8001702: 6a9b ldr r3, [r3, #40] ; 0x28
  2902. 8001704: f043 0210 orr.w r2, r3, #16
  2903. 8001708: 687b ldr r3, [r7, #4]
  2904. 800170a: 629a str r2, [r3, #40] ; 0x28
  2905. /* Set ADC error code to ADC IP internal error */
  2906. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  2907. 800170c: 687b ldr r3, [r7, #4]
  2908. 800170e: 6adb ldr r3, [r3, #44] ; 0x2c
  2909. 8001710: f043 0201 orr.w r2, r3, #1
  2910. 8001714: 687b ldr r3, [r7, #4]
  2911. 8001716: 62da str r2, [r3, #44] ; 0x2c
  2912. /* Process unlocked */
  2913. __HAL_UNLOCK(hadc);
  2914. 8001718: 687b ldr r3, [r7, #4]
  2915. 800171a: 2200 movs r2, #0
  2916. 800171c: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2917. return HAL_ERROR;
  2918. 8001720: 2301 movs r3, #1
  2919. 8001722: e007 b.n 8001734 <ADC_Enable+0x94>
  2920. while(ADC_IS_ENABLE(hadc) == RESET)
  2921. 8001724: 687b ldr r3, [r7, #4]
  2922. 8001726: 681b ldr r3, [r3, #0]
  2923. 8001728: 689b ldr r3, [r3, #8]
  2924. 800172a: f003 0301 and.w r3, r3, #1
  2925. 800172e: 2b01 cmp r3, #1
  2926. 8001730: d1df bne.n 80016f2 <ADC_Enable+0x52>
  2927. }
  2928. }
  2929. }
  2930. /* Return HAL status */
  2931. return HAL_OK;
  2932. 8001732: 2300 movs r3, #0
  2933. }
  2934. 8001734: 4618 mov r0, r3
  2935. 8001736: 3710 adds r7, #16
  2936. 8001738: 46bd mov sp, r7
  2937. 800173a: bd80 pop {r7, pc}
  2938. 800173c: 20000008 .word 0x20000008
  2939. 8001740: 431bde83 .word 0x431bde83
  2940. 08001744 <ADC_ConversionStop_Disable>:
  2941. * stopped to disable the ADC.
  2942. * @param hadc: ADC handle
  2943. * @retval HAL status.
  2944. */
  2945. HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
  2946. {
  2947. 8001744: b580 push {r7, lr}
  2948. 8001746: b084 sub sp, #16
  2949. 8001748: af00 add r7, sp, #0
  2950. 800174a: 6078 str r0, [r7, #4]
  2951. uint32_t tickstart = 0U;
  2952. 800174c: 2300 movs r3, #0
  2953. 800174e: 60fb str r3, [r7, #12]
  2954. /* Verification if ADC is not already disabled */
  2955. if (ADC_IS_ENABLE(hadc) != RESET)
  2956. 8001750: 687b ldr r3, [r7, #4]
  2957. 8001752: 681b ldr r3, [r3, #0]
  2958. 8001754: 689b ldr r3, [r3, #8]
  2959. 8001756: f003 0301 and.w r3, r3, #1
  2960. 800175a: 2b01 cmp r3, #1
  2961. 800175c: d127 bne.n 80017ae <ADC_ConversionStop_Disable+0x6a>
  2962. {
  2963. /* Disable the ADC peripheral */
  2964. __HAL_ADC_DISABLE(hadc);
  2965. 800175e: 687b ldr r3, [r7, #4]
  2966. 8001760: 681b ldr r3, [r3, #0]
  2967. 8001762: 689a ldr r2, [r3, #8]
  2968. 8001764: 687b ldr r3, [r7, #4]
  2969. 8001766: 681b ldr r3, [r3, #0]
  2970. 8001768: f022 0201 bic.w r2, r2, #1
  2971. 800176c: 609a str r2, [r3, #8]
  2972. /* Get tick count */
  2973. tickstart = HAL_GetTick();
  2974. 800176e: f7ff fc45 bl 8000ffc <HAL_GetTick>
  2975. 8001772: 60f8 str r0, [r7, #12]
  2976. /* Wait for ADC effectively disabled */
  2977. while(ADC_IS_ENABLE(hadc) != RESET)
  2978. 8001774: e014 b.n 80017a0 <ADC_ConversionStop_Disable+0x5c>
  2979. {
  2980. if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  2981. 8001776: f7ff fc41 bl 8000ffc <HAL_GetTick>
  2982. 800177a: 4602 mov r2, r0
  2983. 800177c: 68fb ldr r3, [r7, #12]
  2984. 800177e: 1ad3 subs r3, r2, r3
  2985. 8001780: 2b02 cmp r3, #2
  2986. 8001782: d90d bls.n 80017a0 <ADC_ConversionStop_Disable+0x5c>
  2987. {
  2988. /* Update ADC state machine to error */
  2989. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  2990. 8001784: 687b ldr r3, [r7, #4]
  2991. 8001786: 6a9b ldr r3, [r3, #40] ; 0x28
  2992. 8001788: f043 0210 orr.w r2, r3, #16
  2993. 800178c: 687b ldr r3, [r7, #4]
  2994. 800178e: 629a str r2, [r3, #40] ; 0x28
  2995. /* Set ADC error code to ADC IP internal error */
  2996. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  2997. 8001790: 687b ldr r3, [r7, #4]
  2998. 8001792: 6adb ldr r3, [r3, #44] ; 0x2c
  2999. 8001794: f043 0201 orr.w r2, r3, #1
  3000. 8001798: 687b ldr r3, [r7, #4]
  3001. 800179a: 62da str r2, [r3, #44] ; 0x2c
  3002. return HAL_ERROR;
  3003. 800179c: 2301 movs r3, #1
  3004. 800179e: e007 b.n 80017b0 <ADC_ConversionStop_Disable+0x6c>
  3005. while(ADC_IS_ENABLE(hadc) != RESET)
  3006. 80017a0: 687b ldr r3, [r7, #4]
  3007. 80017a2: 681b ldr r3, [r3, #0]
  3008. 80017a4: 689b ldr r3, [r3, #8]
  3009. 80017a6: f003 0301 and.w r3, r3, #1
  3010. 80017aa: 2b01 cmp r3, #1
  3011. 80017ac: d0e3 beq.n 8001776 <ADC_ConversionStop_Disable+0x32>
  3012. }
  3013. }
  3014. }
  3015. /* Return HAL status */
  3016. return HAL_OK;
  3017. 80017ae: 2300 movs r3, #0
  3018. }
  3019. 80017b0: 4618 mov r0, r3
  3020. 80017b2: 3710 adds r7, #16
  3021. 80017b4: 46bd mov sp, r7
  3022. 80017b6: bd80 pop {r7, pc}
  3023. 080017b8 <ADC_DMAConvCplt>:
  3024. * @brief DMA transfer complete callback.
  3025. * @param hdma: pointer to DMA handle.
  3026. * @retval None
  3027. */
  3028. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  3029. {
  3030. 80017b8: b580 push {r7, lr}
  3031. 80017ba: b084 sub sp, #16
  3032. 80017bc: af00 add r7, sp, #0
  3033. 80017be: 6078 str r0, [r7, #4]
  3034. /* Retrieve ADC handle corresponding to current DMA handle */
  3035. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  3036. 80017c0: 687b ldr r3, [r7, #4]
  3037. 80017c2: 6a5b ldr r3, [r3, #36] ; 0x24
  3038. 80017c4: 60fb str r3, [r7, #12]
  3039. /* Update state machine on conversion status if not in error state */
  3040. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
  3041. 80017c6: 68fb ldr r3, [r7, #12]
  3042. 80017c8: 6a9b ldr r3, [r3, #40] ; 0x28
  3043. 80017ca: f003 0350 and.w r3, r3, #80 ; 0x50
  3044. 80017ce: 2b00 cmp r3, #0
  3045. 80017d0: d127 bne.n 8001822 <ADC_DMAConvCplt+0x6a>
  3046. {
  3047. /* Update ADC state machine */
  3048. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  3049. 80017d2: 68fb ldr r3, [r7, #12]
  3050. 80017d4: 6a9b ldr r3, [r3, #40] ; 0x28
  3051. 80017d6: f443 7200 orr.w r2, r3, #512 ; 0x200
  3052. 80017da: 68fb ldr r3, [r7, #12]
  3053. 80017dc: 629a str r2, [r3, #40] ; 0x28
  3054. /* Determine whether any further conversion upcoming on group regular */
  3055. /* by external trigger, continuous mode or scan sequence on going. */
  3056. /* Note: On STM32F1 devices, in case of sequencer enabled */
  3057. /* (several ranks selected), end of conversion flag is raised */
  3058. /* at the end of the sequence. */
  3059. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3060. 80017de: 68fb ldr r3, [r7, #12]
  3061. 80017e0: 681b ldr r3, [r3, #0]
  3062. 80017e2: 689b ldr r3, [r3, #8]
  3063. 80017e4: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  3064. 80017e8: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  3065. 80017ec: d115 bne.n 800181a <ADC_DMAConvCplt+0x62>
  3066. (hadc->Init.ContinuousConvMode == DISABLE) )
  3067. 80017ee: 68fb ldr r3, [r7, #12]
  3068. 80017f0: 7b1b ldrb r3, [r3, #12]
  3069. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3070. 80017f2: 2b00 cmp r3, #0
  3071. 80017f4: d111 bne.n 800181a <ADC_DMAConvCplt+0x62>
  3072. {
  3073. /* Set ADC state */
  3074. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  3075. 80017f6: 68fb ldr r3, [r7, #12]
  3076. 80017f8: 6a9b ldr r3, [r3, #40] ; 0x28
  3077. 80017fa: f423 7280 bic.w r2, r3, #256 ; 0x100
  3078. 80017fe: 68fb ldr r3, [r7, #12]
  3079. 8001800: 629a str r2, [r3, #40] ; 0x28
  3080. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  3081. 8001802: 68fb ldr r3, [r7, #12]
  3082. 8001804: 6a9b ldr r3, [r3, #40] ; 0x28
  3083. 8001806: f403 5380 and.w r3, r3, #4096 ; 0x1000
  3084. 800180a: 2b00 cmp r3, #0
  3085. 800180c: d105 bne.n 800181a <ADC_DMAConvCplt+0x62>
  3086. {
  3087. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  3088. 800180e: 68fb ldr r3, [r7, #12]
  3089. 8001810: 6a9b ldr r3, [r3, #40] ; 0x28
  3090. 8001812: f043 0201 orr.w r2, r3, #1
  3091. 8001816: 68fb ldr r3, [r7, #12]
  3092. 8001818: 629a str r2, [r3, #40] ; 0x28
  3093. /* Conversion complete callback */
  3094. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  3095. hadc->ConvCpltCallback(hadc);
  3096. #else
  3097. HAL_ADC_ConvCpltCallback(hadc);
  3098. 800181a: 68f8 ldr r0, [r7, #12]
  3099. 800181c: f7ff fa74 bl 8000d08 <HAL_ADC_ConvCpltCallback>
  3100. else
  3101. {
  3102. /* Call DMA error callback */
  3103. hadc->DMA_Handle->XferErrorCallback(hdma);
  3104. }
  3105. }
  3106. 8001820: e004 b.n 800182c <ADC_DMAConvCplt+0x74>
  3107. hadc->DMA_Handle->XferErrorCallback(hdma);
  3108. 8001822: 68fb ldr r3, [r7, #12]
  3109. 8001824: 6a1b ldr r3, [r3, #32]
  3110. 8001826: 6b1b ldr r3, [r3, #48] ; 0x30
  3111. 8001828: 6878 ldr r0, [r7, #4]
  3112. 800182a: 4798 blx r3
  3113. }
  3114. 800182c: bf00 nop
  3115. 800182e: 3710 adds r7, #16
  3116. 8001830: 46bd mov sp, r7
  3117. 8001832: bd80 pop {r7, pc}
  3118. 08001834 <ADC_DMAHalfConvCplt>:
  3119. * @brief DMA half transfer complete callback.
  3120. * @param hdma: pointer to DMA handle.
  3121. * @retval None
  3122. */
  3123. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  3124. {
  3125. 8001834: b580 push {r7, lr}
  3126. 8001836: b084 sub sp, #16
  3127. 8001838: af00 add r7, sp, #0
  3128. 800183a: 6078 str r0, [r7, #4]
  3129. /* Retrieve ADC handle corresponding to current DMA handle */
  3130. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  3131. 800183c: 687b ldr r3, [r7, #4]
  3132. 800183e: 6a5b ldr r3, [r3, #36] ; 0x24
  3133. 8001840: 60fb str r3, [r7, #12]
  3134. /* Half conversion callback */
  3135. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  3136. hadc->ConvHalfCpltCallback(hadc);
  3137. #else
  3138. HAL_ADC_ConvHalfCpltCallback(hadc);
  3139. 8001842: 68f8 ldr r0, [r7, #12]
  3140. 8001844: f7ff fe19 bl 800147a <HAL_ADC_ConvHalfCpltCallback>
  3141. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  3142. }
  3143. 8001848: bf00 nop
  3144. 800184a: 3710 adds r7, #16
  3145. 800184c: 46bd mov sp, r7
  3146. 800184e: bd80 pop {r7, pc}
  3147. 08001850 <ADC_DMAError>:
  3148. * @brief DMA error callback
  3149. * @param hdma: pointer to DMA handle.
  3150. * @retval None
  3151. */
  3152. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  3153. {
  3154. 8001850: b580 push {r7, lr}
  3155. 8001852: b084 sub sp, #16
  3156. 8001854: af00 add r7, sp, #0
  3157. 8001856: 6078 str r0, [r7, #4]
  3158. /* Retrieve ADC handle corresponding to current DMA handle */
  3159. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  3160. 8001858: 687b ldr r3, [r7, #4]
  3161. 800185a: 6a5b ldr r3, [r3, #36] ; 0x24
  3162. 800185c: 60fb str r3, [r7, #12]
  3163. /* Set ADC state */
  3164. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  3165. 800185e: 68fb ldr r3, [r7, #12]
  3166. 8001860: 6a9b ldr r3, [r3, #40] ; 0x28
  3167. 8001862: f043 0240 orr.w r2, r3, #64 ; 0x40
  3168. 8001866: 68fb ldr r3, [r7, #12]
  3169. 8001868: 629a str r2, [r3, #40] ; 0x28
  3170. /* Set ADC error code to DMA error */
  3171. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  3172. 800186a: 68fb ldr r3, [r7, #12]
  3173. 800186c: 6adb ldr r3, [r3, #44] ; 0x2c
  3174. 800186e: f043 0204 orr.w r2, r3, #4
  3175. 8001872: 68fb ldr r3, [r7, #12]
  3176. 8001874: 62da str r2, [r3, #44] ; 0x2c
  3177. /* Error callback */
  3178. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  3179. hadc->ErrorCallback(hadc);
  3180. #else
  3181. HAL_ADC_ErrorCallback(hadc);
  3182. 8001876: 68f8 ldr r0, [r7, #12]
  3183. 8001878: f7ff fe11 bl 800149e <HAL_ADC_ErrorCallback>
  3184. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  3185. }
  3186. 800187c: bf00 nop
  3187. 800187e: 3710 adds r7, #16
  3188. 8001880: 46bd mov sp, r7
  3189. 8001882: bd80 pop {r7, pc}
  3190. 08001884 <HAL_ADCEx_Calibration_Start>:
  3191. * the completion of this function.
  3192. * @param hadc: ADC handle
  3193. * @retval HAL status
  3194. */
  3195. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc)
  3196. {
  3197. 8001884: b590 push {r4, r7, lr}
  3198. 8001886: b087 sub sp, #28
  3199. 8001888: af00 add r7, sp, #0
  3200. 800188a: 6078 str r0, [r7, #4]
  3201. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3202. 800188c: 2300 movs r3, #0
  3203. 800188e: 75fb strb r3, [r7, #23]
  3204. uint32_t tickstart;
  3205. __IO uint32_t wait_loop_index = 0U;
  3206. 8001890: 2300 movs r3, #0
  3207. 8001892: 60fb str r3, [r7, #12]
  3208. /* Check the parameters */
  3209. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  3210. /* Process locked */
  3211. __HAL_LOCK(hadc);
  3212. 8001894: 687b ldr r3, [r7, #4]
  3213. 8001896: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  3214. 800189a: 2b01 cmp r3, #1
  3215. 800189c: d101 bne.n 80018a2 <HAL_ADCEx_Calibration_Start+0x1e>
  3216. 800189e: 2302 movs r3, #2
  3217. 80018a0: e086 b.n 80019b0 <HAL_ADCEx_Calibration_Start+0x12c>
  3218. 80018a2: 687b ldr r3, [r7, #4]
  3219. 80018a4: 2201 movs r2, #1
  3220. 80018a6: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3221. /* 1. Calibration prerequisite: */
  3222. /* - ADC must be disabled for at least two ADC clock cycles in disable */
  3223. /* mode before ADC enable */
  3224. /* Stop potential conversion on going, on regular and injected groups */
  3225. /* Disable ADC peripheral */
  3226. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  3227. 80018aa: 6878 ldr r0, [r7, #4]
  3228. 80018ac: f7ff ff4a bl 8001744 <ADC_ConversionStop_Disable>
  3229. 80018b0: 4603 mov r3, r0
  3230. 80018b2: 75fb strb r3, [r7, #23]
  3231. /* Check if ADC is effectively disabled */
  3232. if (tmp_hal_status == HAL_OK)
  3233. 80018b4: 7dfb ldrb r3, [r7, #23]
  3234. 80018b6: 2b00 cmp r3, #0
  3235. 80018b8: d175 bne.n 80019a6 <HAL_ADCEx_Calibration_Start+0x122>
  3236. {
  3237. /* Set ADC state */
  3238. ADC_STATE_CLR_SET(hadc->State,
  3239. 80018ba: 687b ldr r3, [r7, #4]
  3240. 80018bc: 6a9b ldr r3, [r3, #40] ; 0x28
  3241. 80018be: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  3242. 80018c2: f023 0302 bic.w r3, r3, #2
  3243. 80018c6: f043 0202 orr.w r2, r3, #2
  3244. 80018ca: 687b ldr r3, [r7, #4]
  3245. 80018cc: 629a str r2, [r3, #40] ; 0x28
  3246. /* Hardware prerequisite: delay before starting the calibration. */
  3247. /* - Computation of CPU clock cycles corresponding to ADC clock cycles. */
  3248. /* - Wait for the expected ADC clock cycles delay */
  3249. wait_loop_index = ((SystemCoreClock
  3250. / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC))
  3251. 80018ce: 4b3a ldr r3, [pc, #232] ; (80019b8 <HAL_ADCEx_Calibration_Start+0x134>)
  3252. 80018d0: 681c ldr r4, [r3, #0]
  3253. 80018d2: 2002 movs r0, #2
  3254. 80018d4: f001 fa08 bl 8002ce8 <HAL_RCCEx_GetPeriphCLKFreq>
  3255. 80018d8: 4603 mov r3, r0
  3256. 80018da: fbb4 f3f3 udiv r3, r4, r3
  3257. * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES );
  3258. 80018de: 005b lsls r3, r3, #1
  3259. wait_loop_index = ((SystemCoreClock
  3260. 80018e0: 60fb str r3, [r7, #12]
  3261. while(wait_loop_index != 0U)
  3262. 80018e2: e002 b.n 80018ea <HAL_ADCEx_Calibration_Start+0x66>
  3263. {
  3264. wait_loop_index--;
  3265. 80018e4: 68fb ldr r3, [r7, #12]
  3266. 80018e6: 3b01 subs r3, #1
  3267. 80018e8: 60fb str r3, [r7, #12]
  3268. while(wait_loop_index != 0U)
  3269. 80018ea: 68fb ldr r3, [r7, #12]
  3270. 80018ec: 2b00 cmp r3, #0
  3271. 80018ee: d1f9 bne.n 80018e4 <HAL_ADCEx_Calibration_Start+0x60>
  3272. }
  3273. /* 2. Enable the ADC peripheral */
  3274. ADC_Enable(hadc);
  3275. 80018f0: 6878 ldr r0, [r7, #4]
  3276. 80018f2: f7ff fed5 bl 80016a0 <ADC_Enable>
  3277. /* 3. Resets ADC calibration registers */
  3278. SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL);
  3279. 80018f6: 687b ldr r3, [r7, #4]
  3280. 80018f8: 681b ldr r3, [r3, #0]
  3281. 80018fa: 689a ldr r2, [r3, #8]
  3282. 80018fc: 687b ldr r3, [r7, #4]
  3283. 80018fe: 681b ldr r3, [r3, #0]
  3284. 8001900: f042 0208 orr.w r2, r2, #8
  3285. 8001904: 609a str r2, [r3, #8]
  3286. tickstart = HAL_GetTick();
  3287. 8001906: f7ff fb79 bl 8000ffc <HAL_GetTick>
  3288. 800190a: 6138 str r0, [r7, #16]
  3289. /* Wait for calibration reset completion */
  3290. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  3291. 800190c: e014 b.n 8001938 <HAL_ADCEx_Calibration_Start+0xb4>
  3292. {
  3293. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  3294. 800190e: f7ff fb75 bl 8000ffc <HAL_GetTick>
  3295. 8001912: 4602 mov r2, r0
  3296. 8001914: 693b ldr r3, [r7, #16]
  3297. 8001916: 1ad3 subs r3, r2, r3
  3298. 8001918: 2b0a cmp r3, #10
  3299. 800191a: d90d bls.n 8001938 <HAL_ADCEx_Calibration_Start+0xb4>
  3300. {
  3301. /* Update ADC state machine to error */
  3302. ADC_STATE_CLR_SET(hadc->State,
  3303. 800191c: 687b ldr r3, [r7, #4]
  3304. 800191e: 6a9b ldr r3, [r3, #40] ; 0x28
  3305. 8001920: f023 0312 bic.w r3, r3, #18
  3306. 8001924: f043 0210 orr.w r2, r3, #16
  3307. 8001928: 687b ldr r3, [r7, #4]
  3308. 800192a: 629a str r2, [r3, #40] ; 0x28
  3309. HAL_ADC_STATE_BUSY_INTERNAL,
  3310. HAL_ADC_STATE_ERROR_INTERNAL);
  3311. /* Process unlocked */
  3312. __HAL_UNLOCK(hadc);
  3313. 800192c: 687b ldr r3, [r7, #4]
  3314. 800192e: 2200 movs r2, #0
  3315. 8001930: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3316. return HAL_ERROR;
  3317. 8001934: 2301 movs r3, #1
  3318. 8001936: e03b b.n 80019b0 <HAL_ADCEx_Calibration_Start+0x12c>
  3319. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  3320. 8001938: 687b ldr r3, [r7, #4]
  3321. 800193a: 681b ldr r3, [r3, #0]
  3322. 800193c: 689b ldr r3, [r3, #8]
  3323. 800193e: f003 0308 and.w r3, r3, #8
  3324. 8001942: 2b00 cmp r3, #0
  3325. 8001944: d1e3 bne.n 800190e <HAL_ADCEx_Calibration_Start+0x8a>
  3326. }
  3327. }
  3328. /* 4. Start ADC calibration */
  3329. SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL);
  3330. 8001946: 687b ldr r3, [r7, #4]
  3331. 8001948: 681b ldr r3, [r3, #0]
  3332. 800194a: 689a ldr r2, [r3, #8]
  3333. 800194c: 687b ldr r3, [r7, #4]
  3334. 800194e: 681b ldr r3, [r3, #0]
  3335. 8001950: f042 0204 orr.w r2, r2, #4
  3336. 8001954: 609a str r2, [r3, #8]
  3337. tickstart = HAL_GetTick();
  3338. 8001956: f7ff fb51 bl 8000ffc <HAL_GetTick>
  3339. 800195a: 6138 str r0, [r7, #16]
  3340. /* Wait for calibration completion */
  3341. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  3342. 800195c: e014 b.n 8001988 <HAL_ADCEx_Calibration_Start+0x104>
  3343. {
  3344. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  3345. 800195e: f7ff fb4d bl 8000ffc <HAL_GetTick>
  3346. 8001962: 4602 mov r2, r0
  3347. 8001964: 693b ldr r3, [r7, #16]
  3348. 8001966: 1ad3 subs r3, r2, r3
  3349. 8001968: 2b0a cmp r3, #10
  3350. 800196a: d90d bls.n 8001988 <HAL_ADCEx_Calibration_Start+0x104>
  3351. {
  3352. /* Update ADC state machine to error */
  3353. ADC_STATE_CLR_SET(hadc->State,
  3354. 800196c: 687b ldr r3, [r7, #4]
  3355. 800196e: 6a9b ldr r3, [r3, #40] ; 0x28
  3356. 8001970: f023 0312 bic.w r3, r3, #18
  3357. 8001974: f043 0210 orr.w r2, r3, #16
  3358. 8001978: 687b ldr r3, [r7, #4]
  3359. 800197a: 629a str r2, [r3, #40] ; 0x28
  3360. HAL_ADC_STATE_BUSY_INTERNAL,
  3361. HAL_ADC_STATE_ERROR_INTERNAL);
  3362. /* Process unlocked */
  3363. __HAL_UNLOCK(hadc);
  3364. 800197c: 687b ldr r3, [r7, #4]
  3365. 800197e: 2200 movs r2, #0
  3366. 8001980: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3367. return HAL_ERROR;
  3368. 8001984: 2301 movs r3, #1
  3369. 8001986: e013 b.n 80019b0 <HAL_ADCEx_Calibration_Start+0x12c>
  3370. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  3371. 8001988: 687b ldr r3, [r7, #4]
  3372. 800198a: 681b ldr r3, [r3, #0]
  3373. 800198c: 689b ldr r3, [r3, #8]
  3374. 800198e: f003 0304 and.w r3, r3, #4
  3375. 8001992: 2b00 cmp r3, #0
  3376. 8001994: d1e3 bne.n 800195e <HAL_ADCEx_Calibration_Start+0xda>
  3377. }
  3378. }
  3379. /* Set ADC state */
  3380. ADC_STATE_CLR_SET(hadc->State,
  3381. 8001996: 687b ldr r3, [r7, #4]
  3382. 8001998: 6a9b ldr r3, [r3, #40] ; 0x28
  3383. 800199a: f023 0303 bic.w r3, r3, #3
  3384. 800199e: f043 0201 orr.w r2, r3, #1
  3385. 80019a2: 687b ldr r3, [r7, #4]
  3386. 80019a4: 629a str r2, [r3, #40] ; 0x28
  3387. HAL_ADC_STATE_BUSY_INTERNAL,
  3388. HAL_ADC_STATE_READY);
  3389. }
  3390. /* Process unlocked */
  3391. __HAL_UNLOCK(hadc);
  3392. 80019a6: 687b ldr r3, [r7, #4]
  3393. 80019a8: 2200 movs r2, #0
  3394. 80019aa: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3395. /* Return function status */
  3396. return tmp_hal_status;
  3397. 80019ae: 7dfb ldrb r3, [r7, #23]
  3398. }
  3399. 80019b0: 4618 mov r0, r3
  3400. 80019b2: 371c adds r7, #28
  3401. 80019b4: 46bd mov sp, r7
  3402. 80019b6: bd90 pop {r4, r7, pc}
  3403. 80019b8: 20000008 .word 0x20000008
  3404. 080019bc <HAL_ADCEx_InjectedConvCpltCallback>:
  3405. * @brief Injected conversion complete callback in non blocking mode
  3406. * @param hadc: ADC handle
  3407. * @retval None
  3408. */
  3409. __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc)
  3410. {
  3411. 80019bc: b480 push {r7}
  3412. 80019be: b083 sub sp, #12
  3413. 80019c0: af00 add r7, sp, #0
  3414. 80019c2: 6078 str r0, [r7, #4]
  3415. /* Prevent unused argument(s) compilation warning */
  3416. UNUSED(hadc);
  3417. /* NOTE : This function Should not be modified, when the callback is needed,
  3418. the HAL_ADCEx_InjectedConvCpltCallback could be implemented in the user file
  3419. */
  3420. }
  3421. 80019c4: bf00 nop
  3422. 80019c6: 370c adds r7, #12
  3423. 80019c8: 46bd mov sp, r7
  3424. 80019ca: bc80 pop {r7}
  3425. 80019cc: 4770 bx lr
  3426. ...
  3427. 080019d0 <__NVIC_SetPriorityGrouping>:
  3428. In case of a conflict between priority grouping and available
  3429. priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
  3430. \param [in] PriorityGroup Priority grouping field.
  3431. */
  3432. __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  3433. {
  3434. 80019d0: b480 push {r7}
  3435. 80019d2: b085 sub sp, #20
  3436. 80019d4: af00 add r7, sp, #0
  3437. 80019d6: 6078 str r0, [r7, #4]
  3438. uint32_t reg_value;
  3439. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  3440. 80019d8: 687b ldr r3, [r7, #4]
  3441. 80019da: f003 0307 and.w r3, r3, #7
  3442. 80019de: 60fb str r3, [r7, #12]
  3443. reg_value = SCB->AIRCR; /* read old register configuration */
  3444. 80019e0: 4b0c ldr r3, [pc, #48] ; (8001a14 <__NVIC_SetPriorityGrouping+0x44>)
  3445. 80019e2: 68db ldr r3, [r3, #12]
  3446. 80019e4: 60bb str r3, [r7, #8]
  3447. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  3448. 80019e6: 68ba ldr r2, [r7, #8]
  3449. 80019e8: f64f 03ff movw r3, #63743 ; 0xf8ff
  3450. 80019ec: 4013 ands r3, r2
  3451. 80019ee: 60bb str r3, [r7, #8]
  3452. reg_value = (reg_value |
  3453. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  3454. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  3455. 80019f0: 68fb ldr r3, [r7, #12]
  3456. 80019f2: 021a lsls r2, r3, #8
  3457. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  3458. 80019f4: 68bb ldr r3, [r7, #8]
  3459. 80019f6: 4313 orrs r3, r2
  3460. reg_value = (reg_value |
  3461. 80019f8: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  3462. 80019fc: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  3463. 8001a00: 60bb str r3, [r7, #8]
  3464. SCB->AIRCR = reg_value;
  3465. 8001a02: 4a04 ldr r2, [pc, #16] ; (8001a14 <__NVIC_SetPriorityGrouping+0x44>)
  3466. 8001a04: 68bb ldr r3, [r7, #8]
  3467. 8001a06: 60d3 str r3, [r2, #12]
  3468. }
  3469. 8001a08: bf00 nop
  3470. 8001a0a: 3714 adds r7, #20
  3471. 8001a0c: 46bd mov sp, r7
  3472. 8001a0e: bc80 pop {r7}
  3473. 8001a10: 4770 bx lr
  3474. 8001a12: bf00 nop
  3475. 8001a14: e000ed00 .word 0xe000ed00
  3476. 08001a18 <__NVIC_GetPriorityGrouping>:
  3477. \brief Get Priority Grouping
  3478. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  3479. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  3480. */
  3481. __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
  3482. {
  3483. 8001a18: b480 push {r7}
  3484. 8001a1a: af00 add r7, sp, #0
  3485. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  3486. 8001a1c: 4b04 ldr r3, [pc, #16] ; (8001a30 <__NVIC_GetPriorityGrouping+0x18>)
  3487. 8001a1e: 68db ldr r3, [r3, #12]
  3488. 8001a20: 0a1b lsrs r3, r3, #8
  3489. 8001a22: f003 0307 and.w r3, r3, #7
  3490. }
  3491. 8001a26: 4618 mov r0, r3
  3492. 8001a28: 46bd mov sp, r7
  3493. 8001a2a: bc80 pop {r7}
  3494. 8001a2c: 4770 bx lr
  3495. 8001a2e: bf00 nop
  3496. 8001a30: e000ed00 .word 0xe000ed00
  3497. 08001a34 <__NVIC_EnableIRQ>:
  3498. \details Enables a device specific interrupt in the NVIC interrupt controller.
  3499. \param [in] IRQn Device specific interrupt number.
  3500. \note IRQn must not be negative.
  3501. */
  3502. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  3503. {
  3504. 8001a34: b480 push {r7}
  3505. 8001a36: b083 sub sp, #12
  3506. 8001a38: af00 add r7, sp, #0
  3507. 8001a3a: 4603 mov r3, r0
  3508. 8001a3c: 71fb strb r3, [r7, #7]
  3509. if ((int32_t)(IRQn) >= 0)
  3510. 8001a3e: f997 3007 ldrsb.w r3, [r7, #7]
  3511. 8001a42: 2b00 cmp r3, #0
  3512. 8001a44: db0b blt.n 8001a5e <__NVIC_EnableIRQ+0x2a>
  3513. {
  3514. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  3515. 8001a46: 79fb ldrb r3, [r7, #7]
  3516. 8001a48: f003 021f and.w r2, r3, #31
  3517. 8001a4c: 4906 ldr r1, [pc, #24] ; (8001a68 <__NVIC_EnableIRQ+0x34>)
  3518. 8001a4e: f997 3007 ldrsb.w r3, [r7, #7]
  3519. 8001a52: 095b lsrs r3, r3, #5
  3520. 8001a54: 2001 movs r0, #1
  3521. 8001a56: fa00 f202 lsl.w r2, r0, r2
  3522. 8001a5a: f841 2023 str.w r2, [r1, r3, lsl #2]
  3523. }
  3524. }
  3525. 8001a5e: bf00 nop
  3526. 8001a60: 370c adds r7, #12
  3527. 8001a62: 46bd mov sp, r7
  3528. 8001a64: bc80 pop {r7}
  3529. 8001a66: 4770 bx lr
  3530. 8001a68: e000e100 .word 0xe000e100
  3531. 08001a6c <__NVIC_SetPriority>:
  3532. \param [in] IRQn Interrupt number.
  3533. \param [in] priority Priority to set.
  3534. \note The priority cannot be set for every processor exception.
  3535. */
  3536. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  3537. {
  3538. 8001a6c: b480 push {r7}
  3539. 8001a6e: b083 sub sp, #12
  3540. 8001a70: af00 add r7, sp, #0
  3541. 8001a72: 4603 mov r3, r0
  3542. 8001a74: 6039 str r1, [r7, #0]
  3543. 8001a76: 71fb strb r3, [r7, #7]
  3544. if ((int32_t)(IRQn) >= 0)
  3545. 8001a78: f997 3007 ldrsb.w r3, [r7, #7]
  3546. 8001a7c: 2b00 cmp r3, #0
  3547. 8001a7e: db0a blt.n 8001a96 <__NVIC_SetPriority+0x2a>
  3548. {
  3549. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  3550. 8001a80: 683b ldr r3, [r7, #0]
  3551. 8001a82: b2da uxtb r2, r3
  3552. 8001a84: 490c ldr r1, [pc, #48] ; (8001ab8 <__NVIC_SetPriority+0x4c>)
  3553. 8001a86: f997 3007 ldrsb.w r3, [r7, #7]
  3554. 8001a8a: 0112 lsls r2, r2, #4
  3555. 8001a8c: b2d2 uxtb r2, r2
  3556. 8001a8e: 440b add r3, r1
  3557. 8001a90: f883 2300 strb.w r2, [r3, #768] ; 0x300
  3558. }
  3559. else
  3560. {
  3561. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  3562. }
  3563. }
  3564. 8001a94: e00a b.n 8001aac <__NVIC_SetPriority+0x40>
  3565. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  3566. 8001a96: 683b ldr r3, [r7, #0]
  3567. 8001a98: b2da uxtb r2, r3
  3568. 8001a9a: 4908 ldr r1, [pc, #32] ; (8001abc <__NVIC_SetPriority+0x50>)
  3569. 8001a9c: 79fb ldrb r3, [r7, #7]
  3570. 8001a9e: f003 030f and.w r3, r3, #15
  3571. 8001aa2: 3b04 subs r3, #4
  3572. 8001aa4: 0112 lsls r2, r2, #4
  3573. 8001aa6: b2d2 uxtb r2, r2
  3574. 8001aa8: 440b add r3, r1
  3575. 8001aaa: 761a strb r2, [r3, #24]
  3576. }
  3577. 8001aac: bf00 nop
  3578. 8001aae: 370c adds r7, #12
  3579. 8001ab0: 46bd mov sp, r7
  3580. 8001ab2: bc80 pop {r7}
  3581. 8001ab4: 4770 bx lr
  3582. 8001ab6: bf00 nop
  3583. 8001ab8: e000e100 .word 0xe000e100
  3584. 8001abc: e000ed00 .word 0xe000ed00
  3585. 08001ac0 <NVIC_EncodePriority>:
  3586. \param [in] PreemptPriority Preemptive priority value (starting from 0).
  3587. \param [in] SubPriority Subpriority value (starting from 0).
  3588. \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
  3589. */
  3590. __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
  3591. {
  3592. 8001ac0: b480 push {r7}
  3593. 8001ac2: b089 sub sp, #36 ; 0x24
  3594. 8001ac4: af00 add r7, sp, #0
  3595. 8001ac6: 60f8 str r0, [r7, #12]
  3596. 8001ac8: 60b9 str r1, [r7, #8]
  3597. 8001aca: 607a str r2, [r7, #4]
  3598. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  3599. 8001acc: 68fb ldr r3, [r7, #12]
  3600. 8001ace: f003 0307 and.w r3, r3, #7
  3601. 8001ad2: 61fb str r3, [r7, #28]
  3602. uint32_t PreemptPriorityBits;
  3603. uint32_t SubPriorityBits;
  3604. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  3605. 8001ad4: 69fb ldr r3, [r7, #28]
  3606. 8001ad6: f1c3 0307 rsb r3, r3, #7
  3607. 8001ada: 2b04 cmp r3, #4
  3608. 8001adc: bf28 it cs
  3609. 8001ade: 2304 movcs r3, #4
  3610. 8001ae0: 61bb str r3, [r7, #24]
  3611. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  3612. 8001ae2: 69fb ldr r3, [r7, #28]
  3613. 8001ae4: 3304 adds r3, #4
  3614. 8001ae6: 2b06 cmp r3, #6
  3615. 8001ae8: d902 bls.n 8001af0 <NVIC_EncodePriority+0x30>
  3616. 8001aea: 69fb ldr r3, [r7, #28]
  3617. 8001aec: 3b03 subs r3, #3
  3618. 8001aee: e000 b.n 8001af2 <NVIC_EncodePriority+0x32>
  3619. 8001af0: 2300 movs r3, #0
  3620. 8001af2: 617b str r3, [r7, #20]
  3621. return (
  3622. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  3623. 8001af4: f04f 32ff mov.w r2, #4294967295
  3624. 8001af8: 69bb ldr r3, [r7, #24]
  3625. 8001afa: fa02 f303 lsl.w r3, r2, r3
  3626. 8001afe: 43da mvns r2, r3
  3627. 8001b00: 68bb ldr r3, [r7, #8]
  3628. 8001b02: 401a ands r2, r3
  3629. 8001b04: 697b ldr r3, [r7, #20]
  3630. 8001b06: 409a lsls r2, r3
  3631. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  3632. 8001b08: f04f 31ff mov.w r1, #4294967295
  3633. 8001b0c: 697b ldr r3, [r7, #20]
  3634. 8001b0e: fa01 f303 lsl.w r3, r1, r3
  3635. 8001b12: 43d9 mvns r1, r3
  3636. 8001b14: 687b ldr r3, [r7, #4]
  3637. 8001b16: 400b ands r3, r1
  3638. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  3639. 8001b18: 4313 orrs r3, r2
  3640. );
  3641. }
  3642. 8001b1a: 4618 mov r0, r3
  3643. 8001b1c: 3724 adds r7, #36 ; 0x24
  3644. 8001b1e: 46bd mov sp, r7
  3645. 8001b20: bc80 pop {r7}
  3646. 8001b22: 4770 bx lr
  3647. 08001b24 <HAL_NVIC_SetPriorityGrouping>:
  3648. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  3649. * The pending IRQ priority will be managed only by the subpriority.
  3650. * @retval None
  3651. */
  3652. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  3653. {
  3654. 8001b24: b580 push {r7, lr}
  3655. 8001b26: b082 sub sp, #8
  3656. 8001b28: af00 add r7, sp, #0
  3657. 8001b2a: 6078 str r0, [r7, #4]
  3658. /* Check the parameters */
  3659. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  3660. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  3661. NVIC_SetPriorityGrouping(PriorityGroup);
  3662. 8001b2c: 6878 ldr r0, [r7, #4]
  3663. 8001b2e: f7ff ff4f bl 80019d0 <__NVIC_SetPriorityGrouping>
  3664. }
  3665. 8001b32: bf00 nop
  3666. 8001b34: 3708 adds r7, #8
  3667. 8001b36: 46bd mov sp, r7
  3668. 8001b38: bd80 pop {r7, pc}
  3669. 08001b3a <HAL_NVIC_SetPriority>:
  3670. * This parameter can be a value between 0 and 15
  3671. * A lower priority value indicates a higher priority.
  3672. * @retval None
  3673. */
  3674. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  3675. {
  3676. 8001b3a: b580 push {r7, lr}
  3677. 8001b3c: b086 sub sp, #24
  3678. 8001b3e: af00 add r7, sp, #0
  3679. 8001b40: 4603 mov r3, r0
  3680. 8001b42: 60b9 str r1, [r7, #8]
  3681. 8001b44: 607a str r2, [r7, #4]
  3682. 8001b46: 73fb strb r3, [r7, #15]
  3683. uint32_t prioritygroup = 0x00U;
  3684. 8001b48: 2300 movs r3, #0
  3685. 8001b4a: 617b str r3, [r7, #20]
  3686. /* Check the parameters */
  3687. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  3688. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  3689. prioritygroup = NVIC_GetPriorityGrouping();
  3690. 8001b4c: f7ff ff64 bl 8001a18 <__NVIC_GetPriorityGrouping>
  3691. 8001b50: 6178 str r0, [r7, #20]
  3692. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  3693. 8001b52: 687a ldr r2, [r7, #4]
  3694. 8001b54: 68b9 ldr r1, [r7, #8]
  3695. 8001b56: 6978 ldr r0, [r7, #20]
  3696. 8001b58: f7ff ffb2 bl 8001ac0 <NVIC_EncodePriority>
  3697. 8001b5c: 4602 mov r2, r0
  3698. 8001b5e: f997 300f ldrsb.w r3, [r7, #15]
  3699. 8001b62: 4611 mov r1, r2
  3700. 8001b64: 4618 mov r0, r3
  3701. 8001b66: f7ff ff81 bl 8001a6c <__NVIC_SetPriority>
  3702. }
  3703. 8001b6a: bf00 nop
  3704. 8001b6c: 3718 adds r7, #24
  3705. 8001b6e: 46bd mov sp, r7
  3706. 8001b70: bd80 pop {r7, pc}
  3707. 08001b72 <HAL_NVIC_EnableIRQ>:
  3708. * This parameter can be an enumerator of IRQn_Type enumeration
  3709. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f10xxx.h))
  3710. * @retval None
  3711. */
  3712. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  3713. {
  3714. 8001b72: b580 push {r7, lr}
  3715. 8001b74: b082 sub sp, #8
  3716. 8001b76: af00 add r7, sp, #0
  3717. 8001b78: 4603 mov r3, r0
  3718. 8001b7a: 71fb strb r3, [r7, #7]
  3719. /* Check the parameters */
  3720. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  3721. /* Enable interrupt */
  3722. NVIC_EnableIRQ(IRQn);
  3723. 8001b7c: f997 3007 ldrsb.w r3, [r7, #7]
  3724. 8001b80: 4618 mov r0, r3
  3725. 8001b82: f7ff ff57 bl 8001a34 <__NVIC_EnableIRQ>
  3726. }
  3727. 8001b86: bf00 nop
  3728. 8001b88: 3708 adds r7, #8
  3729. 8001b8a: 46bd mov sp, r7
  3730. 8001b8c: bd80 pop {r7, pc}
  3731. ...
  3732. 08001b90 <HAL_DMA_Init>:
  3733. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  3734. * the configuration information for the specified DMA Channel.
  3735. * @retval HAL status
  3736. */
  3737. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  3738. {
  3739. 8001b90: b480 push {r7}
  3740. 8001b92: b085 sub sp, #20
  3741. 8001b94: af00 add r7, sp, #0
  3742. 8001b96: 6078 str r0, [r7, #4]
  3743. uint32_t tmp = 0U;
  3744. 8001b98: 2300 movs r3, #0
  3745. 8001b9a: 60fb str r3, [r7, #12]
  3746. /* Check the DMA handle allocation */
  3747. if(hdma == NULL)
  3748. 8001b9c: 687b ldr r3, [r7, #4]
  3749. 8001b9e: 2b00 cmp r3, #0
  3750. 8001ba0: d101 bne.n 8001ba6 <HAL_DMA_Init+0x16>
  3751. {
  3752. return HAL_ERROR;
  3753. 8001ba2: 2301 movs r3, #1
  3754. 8001ba4: e043 b.n 8001c2e <HAL_DMA_Init+0x9e>
  3755. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2;
  3756. hdma->DmaBaseAddress = DMA2;
  3757. }
  3758. #else
  3759. /* DMA1 */
  3760. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2;
  3761. 8001ba6: 687b ldr r3, [r7, #4]
  3762. 8001ba8: 681b ldr r3, [r3, #0]
  3763. 8001baa: 461a mov r2, r3
  3764. 8001bac: 4b22 ldr r3, [pc, #136] ; (8001c38 <HAL_DMA_Init+0xa8>)
  3765. 8001bae: 4413 add r3, r2
  3766. 8001bb0: 4a22 ldr r2, [pc, #136] ; (8001c3c <HAL_DMA_Init+0xac>)
  3767. 8001bb2: fba2 2303 umull r2, r3, r2, r3
  3768. 8001bb6: 091b lsrs r3, r3, #4
  3769. 8001bb8: 009a lsls r2, r3, #2
  3770. 8001bba: 687b ldr r3, [r7, #4]
  3771. 8001bbc: 641a str r2, [r3, #64] ; 0x40
  3772. hdma->DmaBaseAddress = DMA1;
  3773. 8001bbe: 687b ldr r3, [r7, #4]
  3774. 8001bc0: 4a1f ldr r2, [pc, #124] ; (8001c40 <HAL_DMA_Init+0xb0>)
  3775. 8001bc2: 63da str r2, [r3, #60] ; 0x3c
  3776. #endif /* DMA2 */
  3777. /* Change DMA peripheral state */
  3778. hdma->State = HAL_DMA_STATE_BUSY;
  3779. 8001bc4: 687b ldr r3, [r7, #4]
  3780. 8001bc6: 2202 movs r2, #2
  3781. 8001bc8: f883 2021 strb.w r2, [r3, #33] ; 0x21
  3782. /* Get the CR register value */
  3783. tmp = hdma->Instance->CCR;
  3784. 8001bcc: 687b ldr r3, [r7, #4]
  3785. 8001bce: 681b ldr r3, [r3, #0]
  3786. 8001bd0: 681b ldr r3, [r3, #0]
  3787. 8001bd2: 60fb str r3, [r7, #12]
  3788. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */
  3789. tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \
  3790. 8001bd4: 68fb ldr r3, [r7, #12]
  3791. 8001bd6: f423 537f bic.w r3, r3, #16320 ; 0x3fc0
  3792. 8001bda: f023 0330 bic.w r3, r3, #48 ; 0x30
  3793. 8001bde: 60fb str r3, [r7, #12]
  3794. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \
  3795. DMA_CCR_DIR));
  3796. /* Prepare the DMA Channel configuration */
  3797. tmp |= hdma->Init.Direction |
  3798. 8001be0: 687b ldr r3, [r7, #4]
  3799. 8001be2: 685a ldr r2, [r3, #4]
  3800. hdma->Init.PeriphInc | hdma->Init.MemInc |
  3801. 8001be4: 687b ldr r3, [r7, #4]
  3802. 8001be6: 689b ldr r3, [r3, #8]
  3803. tmp |= hdma->Init.Direction |
  3804. 8001be8: 431a orrs r2, r3
  3805. hdma->Init.PeriphInc | hdma->Init.MemInc |
  3806. 8001bea: 687b ldr r3, [r7, #4]
  3807. 8001bec: 68db ldr r3, [r3, #12]
  3808. 8001bee: 431a orrs r2, r3
  3809. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  3810. 8001bf0: 687b ldr r3, [r7, #4]
  3811. 8001bf2: 691b ldr r3, [r3, #16]
  3812. hdma->Init.PeriphInc | hdma->Init.MemInc |
  3813. 8001bf4: 431a orrs r2, r3
  3814. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  3815. 8001bf6: 687b ldr r3, [r7, #4]
  3816. 8001bf8: 695b ldr r3, [r3, #20]
  3817. 8001bfa: 431a orrs r2, r3
  3818. hdma->Init.Mode | hdma->Init.Priority;
  3819. 8001bfc: 687b ldr r3, [r7, #4]
  3820. 8001bfe: 699b ldr r3, [r3, #24]
  3821. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  3822. 8001c00: 431a orrs r2, r3
  3823. hdma->Init.Mode | hdma->Init.Priority;
  3824. 8001c02: 687b ldr r3, [r7, #4]
  3825. 8001c04: 69db ldr r3, [r3, #28]
  3826. 8001c06: 4313 orrs r3, r2
  3827. tmp |= hdma->Init.Direction |
  3828. 8001c08: 68fa ldr r2, [r7, #12]
  3829. 8001c0a: 4313 orrs r3, r2
  3830. 8001c0c: 60fb str r3, [r7, #12]
  3831. /* Write to DMA Channel CR register */
  3832. hdma->Instance->CCR = tmp;
  3833. 8001c0e: 687b ldr r3, [r7, #4]
  3834. 8001c10: 681b ldr r3, [r3, #0]
  3835. 8001c12: 68fa ldr r2, [r7, #12]
  3836. 8001c14: 601a str r2, [r3, #0]
  3837. /* Initialise the error code */
  3838. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  3839. 8001c16: 687b ldr r3, [r7, #4]
  3840. 8001c18: 2200 movs r2, #0
  3841. 8001c1a: 639a str r2, [r3, #56] ; 0x38
  3842. /* Initialize the DMA state*/
  3843. hdma->State = HAL_DMA_STATE_READY;
  3844. 8001c1c: 687b ldr r3, [r7, #4]
  3845. 8001c1e: 2201 movs r2, #1
  3846. 8001c20: f883 2021 strb.w r2, [r3, #33] ; 0x21
  3847. /* Allocate lock resource and initialize it */
  3848. hdma->Lock = HAL_UNLOCKED;
  3849. 8001c24: 687b ldr r3, [r7, #4]
  3850. 8001c26: 2200 movs r2, #0
  3851. 8001c28: f883 2020 strb.w r2, [r3, #32]
  3852. return HAL_OK;
  3853. 8001c2c: 2300 movs r3, #0
  3854. }
  3855. 8001c2e: 4618 mov r0, r3
  3856. 8001c30: 3714 adds r7, #20
  3857. 8001c32: 46bd mov sp, r7
  3858. 8001c34: bc80 pop {r7}
  3859. 8001c36: 4770 bx lr
  3860. 8001c38: bffdfff8 .word 0xbffdfff8
  3861. 8001c3c: cccccccd .word 0xcccccccd
  3862. 8001c40: 40020000 .word 0x40020000
  3863. 08001c44 <HAL_DMA_Start_IT>:
  3864. * @param DstAddress: The destination memory Buffer address
  3865. * @param DataLength: The length of data to be transferred from source to destination
  3866. * @retval HAL status
  3867. */
  3868. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  3869. {
  3870. 8001c44: b580 push {r7, lr}
  3871. 8001c46: b086 sub sp, #24
  3872. 8001c48: af00 add r7, sp, #0
  3873. 8001c4a: 60f8 str r0, [r7, #12]
  3874. 8001c4c: 60b9 str r1, [r7, #8]
  3875. 8001c4e: 607a str r2, [r7, #4]
  3876. 8001c50: 603b str r3, [r7, #0]
  3877. HAL_StatusTypeDef status = HAL_OK;
  3878. 8001c52: 2300 movs r3, #0
  3879. 8001c54: 75fb strb r3, [r7, #23]
  3880. /* Check the parameters */
  3881. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  3882. /* Process locked */
  3883. __HAL_LOCK(hdma);
  3884. 8001c56: 68fb ldr r3, [r7, #12]
  3885. 8001c58: f893 3020 ldrb.w r3, [r3, #32]
  3886. 8001c5c: 2b01 cmp r3, #1
  3887. 8001c5e: d101 bne.n 8001c64 <HAL_DMA_Start_IT+0x20>
  3888. 8001c60: 2302 movs r3, #2
  3889. 8001c62: e04a b.n 8001cfa <HAL_DMA_Start_IT+0xb6>
  3890. 8001c64: 68fb ldr r3, [r7, #12]
  3891. 8001c66: 2201 movs r2, #1
  3892. 8001c68: f883 2020 strb.w r2, [r3, #32]
  3893. if(HAL_DMA_STATE_READY == hdma->State)
  3894. 8001c6c: 68fb ldr r3, [r7, #12]
  3895. 8001c6e: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  3896. 8001c72: 2b01 cmp r3, #1
  3897. 8001c74: d13a bne.n 8001cec <HAL_DMA_Start_IT+0xa8>
  3898. {
  3899. /* Change DMA peripheral state */
  3900. hdma->State = HAL_DMA_STATE_BUSY;
  3901. 8001c76: 68fb ldr r3, [r7, #12]
  3902. 8001c78: 2202 movs r2, #2
  3903. 8001c7a: f883 2021 strb.w r2, [r3, #33] ; 0x21
  3904. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  3905. 8001c7e: 68fb ldr r3, [r7, #12]
  3906. 8001c80: 2200 movs r2, #0
  3907. 8001c82: 639a str r2, [r3, #56] ; 0x38
  3908. /* Disable the peripheral */
  3909. __HAL_DMA_DISABLE(hdma);
  3910. 8001c84: 68fb ldr r3, [r7, #12]
  3911. 8001c86: 681b ldr r3, [r3, #0]
  3912. 8001c88: 681a ldr r2, [r3, #0]
  3913. 8001c8a: 68fb ldr r3, [r7, #12]
  3914. 8001c8c: 681b ldr r3, [r3, #0]
  3915. 8001c8e: f022 0201 bic.w r2, r2, #1
  3916. 8001c92: 601a str r2, [r3, #0]
  3917. /* Configure the source, destination address and the data length & clear flags*/
  3918. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  3919. 8001c94: 683b ldr r3, [r7, #0]
  3920. 8001c96: 687a ldr r2, [r7, #4]
  3921. 8001c98: 68b9 ldr r1, [r7, #8]
  3922. 8001c9a: 68f8 ldr r0, [r7, #12]
  3923. 8001c9c: f000 f9ae bl 8001ffc <DMA_SetConfig>
  3924. /* Enable the transfer complete interrupt */
  3925. /* Enable the transfer Error interrupt */
  3926. if(NULL != hdma->XferHalfCpltCallback)
  3927. 8001ca0: 68fb ldr r3, [r7, #12]
  3928. 8001ca2: 6adb ldr r3, [r3, #44] ; 0x2c
  3929. 8001ca4: 2b00 cmp r3, #0
  3930. 8001ca6: d008 beq.n 8001cba <HAL_DMA_Start_IT+0x76>
  3931. {
  3932. /* Enable the Half transfer complete interrupt as well */
  3933. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  3934. 8001ca8: 68fb ldr r3, [r7, #12]
  3935. 8001caa: 681b ldr r3, [r3, #0]
  3936. 8001cac: 681a ldr r2, [r3, #0]
  3937. 8001cae: 68fb ldr r3, [r7, #12]
  3938. 8001cb0: 681b ldr r3, [r3, #0]
  3939. 8001cb2: f042 020e orr.w r2, r2, #14
  3940. 8001cb6: 601a str r2, [r3, #0]
  3941. 8001cb8: e00f b.n 8001cda <HAL_DMA_Start_IT+0x96>
  3942. }
  3943. else
  3944. {
  3945. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  3946. 8001cba: 68fb ldr r3, [r7, #12]
  3947. 8001cbc: 681b ldr r3, [r3, #0]
  3948. 8001cbe: 681a ldr r2, [r3, #0]
  3949. 8001cc0: 68fb ldr r3, [r7, #12]
  3950. 8001cc2: 681b ldr r3, [r3, #0]
  3951. 8001cc4: f022 0204 bic.w r2, r2, #4
  3952. 8001cc8: 601a str r2, [r3, #0]
  3953. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  3954. 8001cca: 68fb ldr r3, [r7, #12]
  3955. 8001ccc: 681b ldr r3, [r3, #0]
  3956. 8001cce: 681a ldr r2, [r3, #0]
  3957. 8001cd0: 68fb ldr r3, [r7, #12]
  3958. 8001cd2: 681b ldr r3, [r3, #0]
  3959. 8001cd4: f042 020a orr.w r2, r2, #10
  3960. 8001cd8: 601a str r2, [r3, #0]
  3961. }
  3962. /* Enable the Peripheral */
  3963. __HAL_DMA_ENABLE(hdma);
  3964. 8001cda: 68fb ldr r3, [r7, #12]
  3965. 8001cdc: 681b ldr r3, [r3, #0]
  3966. 8001cde: 681a ldr r2, [r3, #0]
  3967. 8001ce0: 68fb ldr r3, [r7, #12]
  3968. 8001ce2: 681b ldr r3, [r3, #0]
  3969. 8001ce4: f042 0201 orr.w r2, r2, #1
  3970. 8001ce8: 601a str r2, [r3, #0]
  3971. 8001cea: e005 b.n 8001cf8 <HAL_DMA_Start_IT+0xb4>
  3972. }
  3973. else
  3974. {
  3975. /* Process Unlocked */
  3976. __HAL_UNLOCK(hdma);
  3977. 8001cec: 68fb ldr r3, [r7, #12]
  3978. 8001cee: 2200 movs r2, #0
  3979. 8001cf0: f883 2020 strb.w r2, [r3, #32]
  3980. /* Remain BUSY */
  3981. status = HAL_BUSY;
  3982. 8001cf4: 2302 movs r3, #2
  3983. 8001cf6: 75fb strb r3, [r7, #23]
  3984. }
  3985. return status;
  3986. 8001cf8: 7dfb ldrb r3, [r7, #23]
  3987. }
  3988. 8001cfa: 4618 mov r0, r3
  3989. 8001cfc: 3718 adds r7, #24
  3990. 8001cfe: 46bd mov sp, r7
  3991. 8001d00: bd80 pop {r7, pc}
  3992. ...
  3993. 08001d04 <HAL_DMA_Abort_IT>:
  3994. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  3995. * the configuration information for the specified DMA Channel.
  3996. * @retval HAL status
  3997. */
  3998. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  3999. {
  4000. 8001d04: b580 push {r7, lr}
  4001. 8001d06: b084 sub sp, #16
  4002. 8001d08: af00 add r7, sp, #0
  4003. 8001d0a: 6078 str r0, [r7, #4]
  4004. HAL_StatusTypeDef status = HAL_OK;
  4005. 8001d0c: 2300 movs r3, #0
  4006. 8001d0e: 73fb strb r3, [r7, #15]
  4007. if(HAL_DMA_STATE_BUSY != hdma->State)
  4008. 8001d10: 687b ldr r3, [r7, #4]
  4009. 8001d12: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  4010. 8001d16: 2b02 cmp r3, #2
  4011. 8001d18: d005 beq.n 8001d26 <HAL_DMA_Abort_IT+0x22>
  4012. {
  4013. /* no transfer ongoing */
  4014. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  4015. 8001d1a: 687b ldr r3, [r7, #4]
  4016. 8001d1c: 2204 movs r2, #4
  4017. 8001d1e: 639a str r2, [r3, #56] ; 0x38
  4018. status = HAL_ERROR;
  4019. 8001d20: 2301 movs r3, #1
  4020. 8001d22: 73fb strb r3, [r7, #15]
  4021. 8001d24: e051 b.n 8001dca <HAL_DMA_Abort_IT+0xc6>
  4022. }
  4023. else
  4024. {
  4025. /* Disable DMA IT */
  4026. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  4027. 8001d26: 687b ldr r3, [r7, #4]
  4028. 8001d28: 681b ldr r3, [r3, #0]
  4029. 8001d2a: 681a ldr r2, [r3, #0]
  4030. 8001d2c: 687b ldr r3, [r7, #4]
  4031. 8001d2e: 681b ldr r3, [r3, #0]
  4032. 8001d30: f022 020e bic.w r2, r2, #14
  4033. 8001d34: 601a str r2, [r3, #0]
  4034. /* Disable the channel */
  4035. __HAL_DMA_DISABLE(hdma);
  4036. 8001d36: 687b ldr r3, [r7, #4]
  4037. 8001d38: 681b ldr r3, [r3, #0]
  4038. 8001d3a: 681a ldr r2, [r3, #0]
  4039. 8001d3c: 687b ldr r3, [r7, #4]
  4040. 8001d3e: 681b ldr r3, [r3, #0]
  4041. 8001d40: f022 0201 bic.w r2, r2, #1
  4042. 8001d44: 601a str r2, [r3, #0]
  4043. /* Clear all flags */
  4044. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma));
  4045. 8001d46: 687b ldr r3, [r7, #4]
  4046. 8001d48: 681b ldr r3, [r3, #0]
  4047. 8001d4a: 4a22 ldr r2, [pc, #136] ; (8001dd4 <HAL_DMA_Abort_IT+0xd0>)
  4048. 8001d4c: 4293 cmp r3, r2
  4049. 8001d4e: d029 beq.n 8001da4 <HAL_DMA_Abort_IT+0xa0>
  4050. 8001d50: 687b ldr r3, [r7, #4]
  4051. 8001d52: 681b ldr r3, [r3, #0]
  4052. 8001d54: 4a20 ldr r2, [pc, #128] ; (8001dd8 <HAL_DMA_Abort_IT+0xd4>)
  4053. 8001d56: 4293 cmp r3, r2
  4054. 8001d58: d022 beq.n 8001da0 <HAL_DMA_Abort_IT+0x9c>
  4055. 8001d5a: 687b ldr r3, [r7, #4]
  4056. 8001d5c: 681b ldr r3, [r3, #0]
  4057. 8001d5e: 4a1f ldr r2, [pc, #124] ; (8001ddc <HAL_DMA_Abort_IT+0xd8>)
  4058. 8001d60: 4293 cmp r3, r2
  4059. 8001d62: d01a beq.n 8001d9a <HAL_DMA_Abort_IT+0x96>
  4060. 8001d64: 687b ldr r3, [r7, #4]
  4061. 8001d66: 681b ldr r3, [r3, #0]
  4062. 8001d68: 4a1d ldr r2, [pc, #116] ; (8001de0 <HAL_DMA_Abort_IT+0xdc>)
  4063. 8001d6a: 4293 cmp r3, r2
  4064. 8001d6c: d012 beq.n 8001d94 <HAL_DMA_Abort_IT+0x90>
  4065. 8001d6e: 687b ldr r3, [r7, #4]
  4066. 8001d70: 681b ldr r3, [r3, #0]
  4067. 8001d72: 4a1c ldr r2, [pc, #112] ; (8001de4 <HAL_DMA_Abort_IT+0xe0>)
  4068. 8001d74: 4293 cmp r3, r2
  4069. 8001d76: d00a beq.n 8001d8e <HAL_DMA_Abort_IT+0x8a>
  4070. 8001d78: 687b ldr r3, [r7, #4]
  4071. 8001d7a: 681b ldr r3, [r3, #0]
  4072. 8001d7c: 4a1a ldr r2, [pc, #104] ; (8001de8 <HAL_DMA_Abort_IT+0xe4>)
  4073. 8001d7e: 4293 cmp r3, r2
  4074. 8001d80: d102 bne.n 8001d88 <HAL_DMA_Abort_IT+0x84>
  4075. 8001d82: f44f 1380 mov.w r3, #1048576 ; 0x100000
  4076. 8001d86: e00e b.n 8001da6 <HAL_DMA_Abort_IT+0xa2>
  4077. 8001d88: f04f 7380 mov.w r3, #16777216 ; 0x1000000
  4078. 8001d8c: e00b b.n 8001da6 <HAL_DMA_Abort_IT+0xa2>
  4079. 8001d8e: f44f 3380 mov.w r3, #65536 ; 0x10000
  4080. 8001d92: e008 b.n 8001da6 <HAL_DMA_Abort_IT+0xa2>
  4081. 8001d94: f44f 5380 mov.w r3, #4096 ; 0x1000
  4082. 8001d98: e005 b.n 8001da6 <HAL_DMA_Abort_IT+0xa2>
  4083. 8001d9a: f44f 7380 mov.w r3, #256 ; 0x100
  4084. 8001d9e: e002 b.n 8001da6 <HAL_DMA_Abort_IT+0xa2>
  4085. 8001da0: 2310 movs r3, #16
  4086. 8001da2: e000 b.n 8001da6 <HAL_DMA_Abort_IT+0xa2>
  4087. 8001da4: 2301 movs r3, #1
  4088. 8001da6: 4a11 ldr r2, [pc, #68] ; (8001dec <HAL_DMA_Abort_IT+0xe8>)
  4089. 8001da8: 6053 str r3, [r2, #4]
  4090. /* Change the DMA state */
  4091. hdma->State = HAL_DMA_STATE_READY;
  4092. 8001daa: 687b ldr r3, [r7, #4]
  4093. 8001dac: 2201 movs r2, #1
  4094. 8001dae: f883 2021 strb.w r2, [r3, #33] ; 0x21
  4095. /* Process Unlocked */
  4096. __HAL_UNLOCK(hdma);
  4097. 8001db2: 687b ldr r3, [r7, #4]
  4098. 8001db4: 2200 movs r2, #0
  4099. 8001db6: f883 2020 strb.w r2, [r3, #32]
  4100. /* Call User Abort callback */
  4101. if(hdma->XferAbortCallback != NULL)
  4102. 8001dba: 687b ldr r3, [r7, #4]
  4103. 8001dbc: 6b5b ldr r3, [r3, #52] ; 0x34
  4104. 8001dbe: 2b00 cmp r3, #0
  4105. 8001dc0: d003 beq.n 8001dca <HAL_DMA_Abort_IT+0xc6>
  4106. {
  4107. hdma->XferAbortCallback(hdma);
  4108. 8001dc2: 687b ldr r3, [r7, #4]
  4109. 8001dc4: 6b5b ldr r3, [r3, #52] ; 0x34
  4110. 8001dc6: 6878 ldr r0, [r7, #4]
  4111. 8001dc8: 4798 blx r3
  4112. }
  4113. }
  4114. return status;
  4115. 8001dca: 7bfb ldrb r3, [r7, #15]
  4116. }
  4117. 8001dcc: 4618 mov r0, r3
  4118. 8001dce: 3710 adds r7, #16
  4119. 8001dd0: 46bd mov sp, r7
  4120. 8001dd2: bd80 pop {r7, pc}
  4121. 8001dd4: 40020008 .word 0x40020008
  4122. 8001dd8: 4002001c .word 0x4002001c
  4123. 8001ddc: 40020030 .word 0x40020030
  4124. 8001de0: 40020044 .word 0x40020044
  4125. 8001de4: 40020058 .word 0x40020058
  4126. 8001de8: 4002006c .word 0x4002006c
  4127. 8001dec: 40020000 .word 0x40020000
  4128. 08001df0 <HAL_DMA_IRQHandler>:
  4129. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  4130. * the configuration information for the specified DMA Channel.
  4131. * @retval None
  4132. */
  4133. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  4134. {
  4135. 8001df0: b580 push {r7, lr}
  4136. 8001df2: b084 sub sp, #16
  4137. 8001df4: af00 add r7, sp, #0
  4138. 8001df6: 6078 str r0, [r7, #4]
  4139. uint32_t flag_it = hdma->DmaBaseAddress->ISR;
  4140. 8001df8: 687b ldr r3, [r7, #4]
  4141. 8001dfa: 6bdb ldr r3, [r3, #60] ; 0x3c
  4142. 8001dfc: 681b ldr r3, [r3, #0]
  4143. 8001dfe: 60fb str r3, [r7, #12]
  4144. uint32_t source_it = hdma->Instance->CCR;
  4145. 8001e00: 687b ldr r3, [r7, #4]
  4146. 8001e02: 681b ldr r3, [r3, #0]
  4147. 8001e04: 681b ldr r3, [r3, #0]
  4148. 8001e06: 60bb str r3, [r7, #8]
  4149. /* Half Transfer Complete Interrupt management ******************************/
  4150. if (((flag_it & (DMA_FLAG_HT1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_HT) != RESET))
  4151. 8001e08: 687b ldr r3, [r7, #4]
  4152. 8001e0a: 6c1b ldr r3, [r3, #64] ; 0x40
  4153. 8001e0c: 2204 movs r2, #4
  4154. 8001e0e: 409a lsls r2, r3
  4155. 8001e10: 68fb ldr r3, [r7, #12]
  4156. 8001e12: 4013 ands r3, r2
  4157. 8001e14: 2b00 cmp r3, #0
  4158. 8001e16: d04f beq.n 8001eb8 <HAL_DMA_IRQHandler+0xc8>
  4159. 8001e18: 68bb ldr r3, [r7, #8]
  4160. 8001e1a: f003 0304 and.w r3, r3, #4
  4161. 8001e1e: 2b00 cmp r3, #0
  4162. 8001e20: d04a beq.n 8001eb8 <HAL_DMA_IRQHandler+0xc8>
  4163. {
  4164. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  4165. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  4166. 8001e22: 687b ldr r3, [r7, #4]
  4167. 8001e24: 681b ldr r3, [r3, #0]
  4168. 8001e26: 681b ldr r3, [r3, #0]
  4169. 8001e28: f003 0320 and.w r3, r3, #32
  4170. 8001e2c: 2b00 cmp r3, #0
  4171. 8001e2e: d107 bne.n 8001e40 <HAL_DMA_IRQHandler+0x50>
  4172. {
  4173. /* Disable the half transfer interrupt */
  4174. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  4175. 8001e30: 687b ldr r3, [r7, #4]
  4176. 8001e32: 681b ldr r3, [r3, #0]
  4177. 8001e34: 681a ldr r2, [r3, #0]
  4178. 8001e36: 687b ldr r3, [r7, #4]
  4179. 8001e38: 681b ldr r3, [r3, #0]
  4180. 8001e3a: f022 0204 bic.w r2, r2, #4
  4181. 8001e3e: 601a str r2, [r3, #0]
  4182. }
  4183. /* Clear the half transfer complete flag */
  4184. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma));
  4185. 8001e40: 687b ldr r3, [r7, #4]
  4186. 8001e42: 681b ldr r3, [r3, #0]
  4187. 8001e44: 4a66 ldr r2, [pc, #408] ; (8001fe0 <HAL_DMA_IRQHandler+0x1f0>)
  4188. 8001e46: 4293 cmp r3, r2
  4189. 8001e48: d029 beq.n 8001e9e <HAL_DMA_IRQHandler+0xae>
  4190. 8001e4a: 687b ldr r3, [r7, #4]
  4191. 8001e4c: 681b ldr r3, [r3, #0]
  4192. 8001e4e: 4a65 ldr r2, [pc, #404] ; (8001fe4 <HAL_DMA_IRQHandler+0x1f4>)
  4193. 8001e50: 4293 cmp r3, r2
  4194. 8001e52: d022 beq.n 8001e9a <HAL_DMA_IRQHandler+0xaa>
  4195. 8001e54: 687b ldr r3, [r7, #4]
  4196. 8001e56: 681b ldr r3, [r3, #0]
  4197. 8001e58: 4a63 ldr r2, [pc, #396] ; (8001fe8 <HAL_DMA_IRQHandler+0x1f8>)
  4198. 8001e5a: 4293 cmp r3, r2
  4199. 8001e5c: d01a beq.n 8001e94 <HAL_DMA_IRQHandler+0xa4>
  4200. 8001e5e: 687b ldr r3, [r7, #4]
  4201. 8001e60: 681b ldr r3, [r3, #0]
  4202. 8001e62: 4a62 ldr r2, [pc, #392] ; (8001fec <HAL_DMA_IRQHandler+0x1fc>)
  4203. 8001e64: 4293 cmp r3, r2
  4204. 8001e66: d012 beq.n 8001e8e <HAL_DMA_IRQHandler+0x9e>
  4205. 8001e68: 687b ldr r3, [r7, #4]
  4206. 8001e6a: 681b ldr r3, [r3, #0]
  4207. 8001e6c: 4a60 ldr r2, [pc, #384] ; (8001ff0 <HAL_DMA_IRQHandler+0x200>)
  4208. 8001e6e: 4293 cmp r3, r2
  4209. 8001e70: d00a beq.n 8001e88 <HAL_DMA_IRQHandler+0x98>
  4210. 8001e72: 687b ldr r3, [r7, #4]
  4211. 8001e74: 681b ldr r3, [r3, #0]
  4212. 8001e76: 4a5f ldr r2, [pc, #380] ; (8001ff4 <HAL_DMA_IRQHandler+0x204>)
  4213. 8001e78: 4293 cmp r3, r2
  4214. 8001e7a: d102 bne.n 8001e82 <HAL_DMA_IRQHandler+0x92>
  4215. 8001e7c: f44f 0380 mov.w r3, #4194304 ; 0x400000
  4216. 8001e80: e00e b.n 8001ea0 <HAL_DMA_IRQHandler+0xb0>
  4217. 8001e82: f04f 6380 mov.w r3, #67108864 ; 0x4000000
  4218. 8001e86: e00b b.n 8001ea0 <HAL_DMA_IRQHandler+0xb0>
  4219. 8001e88: f44f 2380 mov.w r3, #262144 ; 0x40000
  4220. 8001e8c: e008 b.n 8001ea0 <HAL_DMA_IRQHandler+0xb0>
  4221. 8001e8e: f44f 4380 mov.w r3, #16384 ; 0x4000
  4222. 8001e92: e005 b.n 8001ea0 <HAL_DMA_IRQHandler+0xb0>
  4223. 8001e94: f44f 6380 mov.w r3, #1024 ; 0x400
  4224. 8001e98: e002 b.n 8001ea0 <HAL_DMA_IRQHandler+0xb0>
  4225. 8001e9a: 2340 movs r3, #64 ; 0x40
  4226. 8001e9c: e000 b.n 8001ea0 <HAL_DMA_IRQHandler+0xb0>
  4227. 8001e9e: 2304 movs r3, #4
  4228. 8001ea0: 4a55 ldr r2, [pc, #340] ; (8001ff8 <HAL_DMA_IRQHandler+0x208>)
  4229. 8001ea2: 6053 str r3, [r2, #4]
  4230. /* DMA peripheral state is not updated in Half Transfer */
  4231. /* but in Transfer Complete case */
  4232. if(hdma->XferHalfCpltCallback != NULL)
  4233. 8001ea4: 687b ldr r3, [r7, #4]
  4234. 8001ea6: 6adb ldr r3, [r3, #44] ; 0x2c
  4235. 8001ea8: 2b00 cmp r3, #0
  4236. 8001eaa: f000 8094 beq.w 8001fd6 <HAL_DMA_IRQHandler+0x1e6>
  4237. {
  4238. /* Half transfer callback */
  4239. hdma->XferHalfCpltCallback(hdma);
  4240. 8001eae: 687b ldr r3, [r7, #4]
  4241. 8001eb0: 6adb ldr r3, [r3, #44] ; 0x2c
  4242. 8001eb2: 6878 ldr r0, [r7, #4]
  4243. 8001eb4: 4798 blx r3
  4244. if(hdma->XferHalfCpltCallback != NULL)
  4245. 8001eb6: e08e b.n 8001fd6 <HAL_DMA_IRQHandler+0x1e6>
  4246. }
  4247. }
  4248. /* Transfer Complete Interrupt management ***********************************/
  4249. else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET))
  4250. 8001eb8: 687b ldr r3, [r7, #4]
  4251. 8001eba: 6c1b ldr r3, [r3, #64] ; 0x40
  4252. 8001ebc: 2202 movs r2, #2
  4253. 8001ebe: 409a lsls r2, r3
  4254. 8001ec0: 68fb ldr r3, [r7, #12]
  4255. 8001ec2: 4013 ands r3, r2
  4256. 8001ec4: 2b00 cmp r3, #0
  4257. 8001ec6: d056 beq.n 8001f76 <HAL_DMA_IRQHandler+0x186>
  4258. 8001ec8: 68bb ldr r3, [r7, #8]
  4259. 8001eca: f003 0302 and.w r3, r3, #2
  4260. 8001ece: 2b00 cmp r3, #0
  4261. 8001ed0: d051 beq.n 8001f76 <HAL_DMA_IRQHandler+0x186>
  4262. {
  4263. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  4264. 8001ed2: 687b ldr r3, [r7, #4]
  4265. 8001ed4: 681b ldr r3, [r3, #0]
  4266. 8001ed6: 681b ldr r3, [r3, #0]
  4267. 8001ed8: f003 0320 and.w r3, r3, #32
  4268. 8001edc: 2b00 cmp r3, #0
  4269. 8001ede: d10b bne.n 8001ef8 <HAL_DMA_IRQHandler+0x108>
  4270. {
  4271. /* Disable the transfer complete and error interrupt */
  4272. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  4273. 8001ee0: 687b ldr r3, [r7, #4]
  4274. 8001ee2: 681b ldr r3, [r3, #0]
  4275. 8001ee4: 681a ldr r2, [r3, #0]
  4276. 8001ee6: 687b ldr r3, [r7, #4]
  4277. 8001ee8: 681b ldr r3, [r3, #0]
  4278. 8001eea: f022 020a bic.w r2, r2, #10
  4279. 8001eee: 601a str r2, [r3, #0]
  4280. /* Change the DMA state */
  4281. hdma->State = HAL_DMA_STATE_READY;
  4282. 8001ef0: 687b ldr r3, [r7, #4]
  4283. 8001ef2: 2201 movs r2, #1
  4284. 8001ef4: f883 2021 strb.w r2, [r3, #33] ; 0x21
  4285. }
  4286. /* Clear the transfer complete flag */
  4287. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_TC_FLAG_INDEX(hdma));
  4288. 8001ef8: 687b ldr r3, [r7, #4]
  4289. 8001efa: 681b ldr r3, [r3, #0]
  4290. 8001efc: 4a38 ldr r2, [pc, #224] ; (8001fe0 <HAL_DMA_IRQHandler+0x1f0>)
  4291. 8001efe: 4293 cmp r3, r2
  4292. 8001f00: d029 beq.n 8001f56 <HAL_DMA_IRQHandler+0x166>
  4293. 8001f02: 687b ldr r3, [r7, #4]
  4294. 8001f04: 681b ldr r3, [r3, #0]
  4295. 8001f06: 4a37 ldr r2, [pc, #220] ; (8001fe4 <HAL_DMA_IRQHandler+0x1f4>)
  4296. 8001f08: 4293 cmp r3, r2
  4297. 8001f0a: d022 beq.n 8001f52 <HAL_DMA_IRQHandler+0x162>
  4298. 8001f0c: 687b ldr r3, [r7, #4]
  4299. 8001f0e: 681b ldr r3, [r3, #0]
  4300. 8001f10: 4a35 ldr r2, [pc, #212] ; (8001fe8 <HAL_DMA_IRQHandler+0x1f8>)
  4301. 8001f12: 4293 cmp r3, r2
  4302. 8001f14: d01a beq.n 8001f4c <HAL_DMA_IRQHandler+0x15c>
  4303. 8001f16: 687b ldr r3, [r7, #4]
  4304. 8001f18: 681b ldr r3, [r3, #0]
  4305. 8001f1a: 4a34 ldr r2, [pc, #208] ; (8001fec <HAL_DMA_IRQHandler+0x1fc>)
  4306. 8001f1c: 4293 cmp r3, r2
  4307. 8001f1e: d012 beq.n 8001f46 <HAL_DMA_IRQHandler+0x156>
  4308. 8001f20: 687b ldr r3, [r7, #4]
  4309. 8001f22: 681b ldr r3, [r3, #0]
  4310. 8001f24: 4a32 ldr r2, [pc, #200] ; (8001ff0 <HAL_DMA_IRQHandler+0x200>)
  4311. 8001f26: 4293 cmp r3, r2
  4312. 8001f28: d00a beq.n 8001f40 <HAL_DMA_IRQHandler+0x150>
  4313. 8001f2a: 687b ldr r3, [r7, #4]
  4314. 8001f2c: 681b ldr r3, [r3, #0]
  4315. 8001f2e: 4a31 ldr r2, [pc, #196] ; (8001ff4 <HAL_DMA_IRQHandler+0x204>)
  4316. 8001f30: 4293 cmp r3, r2
  4317. 8001f32: d102 bne.n 8001f3a <HAL_DMA_IRQHandler+0x14a>
  4318. 8001f34: f44f 1300 mov.w r3, #2097152 ; 0x200000
  4319. 8001f38: e00e b.n 8001f58 <HAL_DMA_IRQHandler+0x168>
  4320. 8001f3a: f04f 7300 mov.w r3, #33554432 ; 0x2000000
  4321. 8001f3e: e00b b.n 8001f58 <HAL_DMA_IRQHandler+0x168>
  4322. 8001f40: f44f 3300 mov.w r3, #131072 ; 0x20000
  4323. 8001f44: e008 b.n 8001f58 <HAL_DMA_IRQHandler+0x168>
  4324. 8001f46: f44f 5300 mov.w r3, #8192 ; 0x2000
  4325. 8001f4a: e005 b.n 8001f58 <HAL_DMA_IRQHandler+0x168>
  4326. 8001f4c: f44f 7300 mov.w r3, #512 ; 0x200
  4327. 8001f50: e002 b.n 8001f58 <HAL_DMA_IRQHandler+0x168>
  4328. 8001f52: 2320 movs r3, #32
  4329. 8001f54: e000 b.n 8001f58 <HAL_DMA_IRQHandler+0x168>
  4330. 8001f56: 2302 movs r3, #2
  4331. 8001f58: 4a27 ldr r2, [pc, #156] ; (8001ff8 <HAL_DMA_IRQHandler+0x208>)
  4332. 8001f5a: 6053 str r3, [r2, #4]
  4333. /* Process Unlocked */
  4334. __HAL_UNLOCK(hdma);
  4335. 8001f5c: 687b ldr r3, [r7, #4]
  4336. 8001f5e: 2200 movs r2, #0
  4337. 8001f60: f883 2020 strb.w r2, [r3, #32]
  4338. if(hdma->XferCpltCallback != NULL)
  4339. 8001f64: 687b ldr r3, [r7, #4]
  4340. 8001f66: 6a9b ldr r3, [r3, #40] ; 0x28
  4341. 8001f68: 2b00 cmp r3, #0
  4342. 8001f6a: d034 beq.n 8001fd6 <HAL_DMA_IRQHandler+0x1e6>
  4343. {
  4344. /* Transfer complete callback */
  4345. hdma->XferCpltCallback(hdma);
  4346. 8001f6c: 687b ldr r3, [r7, #4]
  4347. 8001f6e: 6a9b ldr r3, [r3, #40] ; 0x28
  4348. 8001f70: 6878 ldr r0, [r7, #4]
  4349. 8001f72: 4798 blx r3
  4350. if(hdma->XferCpltCallback != NULL)
  4351. 8001f74: e02f b.n 8001fd6 <HAL_DMA_IRQHandler+0x1e6>
  4352. }
  4353. }
  4354. /* Transfer Error Interrupt management **************************************/
  4355. else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE)))
  4356. 8001f76: 687b ldr r3, [r7, #4]
  4357. 8001f78: 6c1b ldr r3, [r3, #64] ; 0x40
  4358. 8001f7a: 2208 movs r2, #8
  4359. 8001f7c: 409a lsls r2, r3
  4360. 8001f7e: 68fb ldr r3, [r7, #12]
  4361. 8001f80: 4013 ands r3, r2
  4362. 8001f82: 2b00 cmp r3, #0
  4363. 8001f84: d028 beq.n 8001fd8 <HAL_DMA_IRQHandler+0x1e8>
  4364. 8001f86: 68bb ldr r3, [r7, #8]
  4365. 8001f88: f003 0308 and.w r3, r3, #8
  4366. 8001f8c: 2b00 cmp r3, #0
  4367. 8001f8e: d023 beq.n 8001fd8 <HAL_DMA_IRQHandler+0x1e8>
  4368. {
  4369. /* When a DMA transfer error occurs */
  4370. /* A hardware clear of its EN bits is performed */
  4371. /* Disable ALL DMA IT */
  4372. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  4373. 8001f90: 687b ldr r3, [r7, #4]
  4374. 8001f92: 681b ldr r3, [r3, #0]
  4375. 8001f94: 681a ldr r2, [r3, #0]
  4376. 8001f96: 687b ldr r3, [r7, #4]
  4377. 8001f98: 681b ldr r3, [r3, #0]
  4378. 8001f9a: f022 020e bic.w r2, r2, #14
  4379. 8001f9e: 601a str r2, [r3, #0]
  4380. /* Clear all flags */
  4381. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  4382. 8001fa0: 687b ldr r3, [r7, #4]
  4383. 8001fa2: 6c1a ldr r2, [r3, #64] ; 0x40
  4384. 8001fa4: 687b ldr r3, [r7, #4]
  4385. 8001fa6: 6bdb ldr r3, [r3, #60] ; 0x3c
  4386. 8001fa8: 2101 movs r1, #1
  4387. 8001faa: fa01 f202 lsl.w r2, r1, r2
  4388. 8001fae: 605a str r2, [r3, #4]
  4389. /* Update error code */
  4390. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  4391. 8001fb0: 687b ldr r3, [r7, #4]
  4392. 8001fb2: 2201 movs r2, #1
  4393. 8001fb4: 639a str r2, [r3, #56] ; 0x38
  4394. /* Change the DMA state */
  4395. hdma->State = HAL_DMA_STATE_READY;
  4396. 8001fb6: 687b ldr r3, [r7, #4]
  4397. 8001fb8: 2201 movs r2, #1
  4398. 8001fba: f883 2021 strb.w r2, [r3, #33] ; 0x21
  4399. /* Process Unlocked */
  4400. __HAL_UNLOCK(hdma);
  4401. 8001fbe: 687b ldr r3, [r7, #4]
  4402. 8001fc0: 2200 movs r2, #0
  4403. 8001fc2: f883 2020 strb.w r2, [r3, #32]
  4404. if (hdma->XferErrorCallback != NULL)
  4405. 8001fc6: 687b ldr r3, [r7, #4]
  4406. 8001fc8: 6b1b ldr r3, [r3, #48] ; 0x30
  4407. 8001fca: 2b00 cmp r3, #0
  4408. 8001fcc: d004 beq.n 8001fd8 <HAL_DMA_IRQHandler+0x1e8>
  4409. {
  4410. /* Transfer error callback */
  4411. hdma->XferErrorCallback(hdma);
  4412. 8001fce: 687b ldr r3, [r7, #4]
  4413. 8001fd0: 6b1b ldr r3, [r3, #48] ; 0x30
  4414. 8001fd2: 6878 ldr r0, [r7, #4]
  4415. 8001fd4: 4798 blx r3
  4416. }
  4417. }
  4418. return;
  4419. 8001fd6: bf00 nop
  4420. 8001fd8: bf00 nop
  4421. }
  4422. 8001fda: 3710 adds r7, #16
  4423. 8001fdc: 46bd mov sp, r7
  4424. 8001fde: bd80 pop {r7, pc}
  4425. 8001fe0: 40020008 .word 0x40020008
  4426. 8001fe4: 4002001c .word 0x4002001c
  4427. 8001fe8: 40020030 .word 0x40020030
  4428. 8001fec: 40020044 .word 0x40020044
  4429. 8001ff0: 40020058 .word 0x40020058
  4430. 8001ff4: 4002006c .word 0x4002006c
  4431. 8001ff8: 40020000 .word 0x40020000
  4432. 08001ffc <DMA_SetConfig>:
  4433. * @param DstAddress: The destination memory Buffer address
  4434. * @param DataLength: The length of data to be transferred from source to destination
  4435. * @retval HAL status
  4436. */
  4437. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  4438. {
  4439. 8001ffc: b480 push {r7}
  4440. 8001ffe: b085 sub sp, #20
  4441. 8002000: af00 add r7, sp, #0
  4442. 8002002: 60f8 str r0, [r7, #12]
  4443. 8002004: 60b9 str r1, [r7, #8]
  4444. 8002006: 607a str r2, [r7, #4]
  4445. 8002008: 603b str r3, [r7, #0]
  4446. /* Clear all flags */
  4447. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  4448. 800200a: 68fb ldr r3, [r7, #12]
  4449. 800200c: 6c1a ldr r2, [r3, #64] ; 0x40
  4450. 800200e: 68fb ldr r3, [r7, #12]
  4451. 8002010: 6bdb ldr r3, [r3, #60] ; 0x3c
  4452. 8002012: 2101 movs r1, #1
  4453. 8002014: fa01 f202 lsl.w r2, r1, r2
  4454. 8002018: 605a str r2, [r3, #4]
  4455. /* Configure DMA Channel data length */
  4456. hdma->Instance->CNDTR = DataLength;
  4457. 800201a: 68fb ldr r3, [r7, #12]
  4458. 800201c: 681b ldr r3, [r3, #0]
  4459. 800201e: 683a ldr r2, [r7, #0]
  4460. 8002020: 605a str r2, [r3, #4]
  4461. /* Memory to Peripheral */
  4462. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  4463. 8002022: 68fb ldr r3, [r7, #12]
  4464. 8002024: 685b ldr r3, [r3, #4]
  4465. 8002026: 2b10 cmp r3, #16
  4466. 8002028: d108 bne.n 800203c <DMA_SetConfig+0x40>
  4467. {
  4468. /* Configure DMA Channel destination address */
  4469. hdma->Instance->CPAR = DstAddress;
  4470. 800202a: 68fb ldr r3, [r7, #12]
  4471. 800202c: 681b ldr r3, [r3, #0]
  4472. 800202e: 687a ldr r2, [r7, #4]
  4473. 8002030: 609a str r2, [r3, #8]
  4474. /* Configure DMA Channel source address */
  4475. hdma->Instance->CMAR = SrcAddress;
  4476. 8002032: 68fb ldr r3, [r7, #12]
  4477. 8002034: 681b ldr r3, [r3, #0]
  4478. 8002036: 68ba ldr r2, [r7, #8]
  4479. 8002038: 60da str r2, [r3, #12]
  4480. hdma->Instance->CPAR = SrcAddress;
  4481. /* Configure DMA Channel destination address */
  4482. hdma->Instance->CMAR = DstAddress;
  4483. }
  4484. }
  4485. 800203a: e007 b.n 800204c <DMA_SetConfig+0x50>
  4486. hdma->Instance->CPAR = SrcAddress;
  4487. 800203c: 68fb ldr r3, [r7, #12]
  4488. 800203e: 681b ldr r3, [r3, #0]
  4489. 8002040: 68ba ldr r2, [r7, #8]
  4490. 8002042: 609a str r2, [r3, #8]
  4491. hdma->Instance->CMAR = DstAddress;
  4492. 8002044: 68fb ldr r3, [r7, #12]
  4493. 8002046: 681b ldr r3, [r3, #0]
  4494. 8002048: 687a ldr r2, [r7, #4]
  4495. 800204a: 60da str r2, [r3, #12]
  4496. }
  4497. 800204c: bf00 nop
  4498. 800204e: 3714 adds r7, #20
  4499. 8002050: 46bd mov sp, r7
  4500. 8002052: bc80 pop {r7}
  4501. 8002054: 4770 bx lr
  4502. ...
  4503. 08002058 <HAL_GPIO_Init>:
  4504. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  4505. * the configuration information for the specified GPIO peripheral.
  4506. * @retval None
  4507. */
  4508. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  4509. {
  4510. 8002058: b480 push {r7}
  4511. 800205a: b08b sub sp, #44 ; 0x2c
  4512. 800205c: af00 add r7, sp, #0
  4513. 800205e: 6078 str r0, [r7, #4]
  4514. 8002060: 6039 str r1, [r7, #0]
  4515. uint32_t position = 0x00u;
  4516. 8002062: 2300 movs r3, #0
  4517. 8002064: 627b str r3, [r7, #36] ; 0x24
  4518. uint32_t ioposition;
  4519. uint32_t iocurrent;
  4520. uint32_t temp;
  4521. uint32_t config = 0x00u;
  4522. 8002066: 2300 movs r3, #0
  4523. 8002068: 623b str r3, [r7, #32]
  4524. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  4525. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  4526. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  4527. /* Configure the port pins */
  4528. while (((GPIO_Init->Pin) >> position) != 0x00u)
  4529. 800206a: e127 b.n 80022bc <HAL_GPIO_Init+0x264>
  4530. {
  4531. /* Get the IO position */
  4532. ioposition = (0x01uL << position);
  4533. 800206c: 2201 movs r2, #1
  4534. 800206e: 6a7b ldr r3, [r7, #36] ; 0x24
  4535. 8002070: fa02 f303 lsl.w r3, r2, r3
  4536. 8002074: 61fb str r3, [r7, #28]
  4537. /* Get the current IO position */
  4538. iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
  4539. 8002076: 683b ldr r3, [r7, #0]
  4540. 8002078: 681b ldr r3, [r3, #0]
  4541. 800207a: 69fa ldr r2, [r7, #28]
  4542. 800207c: 4013 ands r3, r2
  4543. 800207e: 61bb str r3, [r7, #24]
  4544. if (iocurrent == ioposition)
  4545. 8002080: 69ba ldr r2, [r7, #24]
  4546. 8002082: 69fb ldr r3, [r7, #28]
  4547. 8002084: 429a cmp r2, r3
  4548. 8002086: f040 8116 bne.w 80022b6 <HAL_GPIO_Init+0x25e>
  4549. {
  4550. /* Check the Alternate function parameters */
  4551. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  4552. /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */
  4553. switch (GPIO_Init->Mode)
  4554. 800208a: 683b ldr r3, [r7, #0]
  4555. 800208c: 685b ldr r3, [r3, #4]
  4556. 800208e: 2b12 cmp r3, #18
  4557. 8002090: d034 beq.n 80020fc <HAL_GPIO_Init+0xa4>
  4558. 8002092: 2b12 cmp r3, #18
  4559. 8002094: d80d bhi.n 80020b2 <HAL_GPIO_Init+0x5a>
  4560. 8002096: 2b02 cmp r3, #2
  4561. 8002098: d02b beq.n 80020f2 <HAL_GPIO_Init+0x9a>
  4562. 800209a: 2b02 cmp r3, #2
  4563. 800209c: d804 bhi.n 80020a8 <HAL_GPIO_Init+0x50>
  4564. 800209e: 2b00 cmp r3, #0
  4565. 80020a0: d031 beq.n 8002106 <HAL_GPIO_Init+0xae>
  4566. 80020a2: 2b01 cmp r3, #1
  4567. 80020a4: d01c beq.n 80020e0 <HAL_GPIO_Init+0x88>
  4568. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  4569. break;
  4570. /* Parameters are checked with assert_param */
  4571. default:
  4572. break;
  4573. 80020a6: e048 b.n 800213a <HAL_GPIO_Init+0xe2>
  4574. switch (GPIO_Init->Mode)
  4575. 80020a8: 2b03 cmp r3, #3
  4576. 80020aa: d043 beq.n 8002134 <HAL_GPIO_Init+0xdc>
  4577. 80020ac: 2b11 cmp r3, #17
  4578. 80020ae: d01b beq.n 80020e8 <HAL_GPIO_Init+0x90>
  4579. break;
  4580. 80020b0: e043 b.n 800213a <HAL_GPIO_Init+0xe2>
  4581. switch (GPIO_Init->Mode)
  4582. 80020b2: 4a89 ldr r2, [pc, #548] ; (80022d8 <HAL_GPIO_Init+0x280>)
  4583. 80020b4: 4293 cmp r3, r2
  4584. 80020b6: d026 beq.n 8002106 <HAL_GPIO_Init+0xae>
  4585. 80020b8: 4a87 ldr r2, [pc, #540] ; (80022d8 <HAL_GPIO_Init+0x280>)
  4586. 80020ba: 4293 cmp r3, r2
  4587. 80020bc: d806 bhi.n 80020cc <HAL_GPIO_Init+0x74>
  4588. 80020be: 4a87 ldr r2, [pc, #540] ; (80022dc <HAL_GPIO_Init+0x284>)
  4589. 80020c0: 4293 cmp r3, r2
  4590. 80020c2: d020 beq.n 8002106 <HAL_GPIO_Init+0xae>
  4591. 80020c4: 4a86 ldr r2, [pc, #536] ; (80022e0 <HAL_GPIO_Init+0x288>)
  4592. 80020c6: 4293 cmp r3, r2
  4593. 80020c8: d01d beq.n 8002106 <HAL_GPIO_Init+0xae>
  4594. break;
  4595. 80020ca: e036 b.n 800213a <HAL_GPIO_Init+0xe2>
  4596. switch (GPIO_Init->Mode)
  4597. 80020cc: 4a85 ldr r2, [pc, #532] ; (80022e4 <HAL_GPIO_Init+0x28c>)
  4598. 80020ce: 4293 cmp r3, r2
  4599. 80020d0: d019 beq.n 8002106 <HAL_GPIO_Init+0xae>
  4600. 80020d2: 4a85 ldr r2, [pc, #532] ; (80022e8 <HAL_GPIO_Init+0x290>)
  4601. 80020d4: 4293 cmp r3, r2
  4602. 80020d6: d016 beq.n 8002106 <HAL_GPIO_Init+0xae>
  4603. 80020d8: 4a84 ldr r2, [pc, #528] ; (80022ec <HAL_GPIO_Init+0x294>)
  4604. 80020da: 4293 cmp r3, r2
  4605. 80020dc: d013 beq.n 8002106 <HAL_GPIO_Init+0xae>
  4606. break;
  4607. 80020de: e02c b.n 800213a <HAL_GPIO_Init+0xe2>
  4608. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP;
  4609. 80020e0: 683b ldr r3, [r7, #0]
  4610. 80020e2: 68db ldr r3, [r3, #12]
  4611. 80020e4: 623b str r3, [r7, #32]
  4612. break;
  4613. 80020e6: e028 b.n 800213a <HAL_GPIO_Init+0xe2>
  4614. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD;
  4615. 80020e8: 683b ldr r3, [r7, #0]
  4616. 80020ea: 68db ldr r3, [r3, #12]
  4617. 80020ec: 3304 adds r3, #4
  4618. 80020ee: 623b str r3, [r7, #32]
  4619. break;
  4620. 80020f0: e023 b.n 800213a <HAL_GPIO_Init+0xe2>
  4621. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP;
  4622. 80020f2: 683b ldr r3, [r7, #0]
  4623. 80020f4: 68db ldr r3, [r3, #12]
  4624. 80020f6: 3308 adds r3, #8
  4625. 80020f8: 623b str r3, [r7, #32]
  4626. break;
  4627. 80020fa: e01e b.n 800213a <HAL_GPIO_Init+0xe2>
  4628. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD;
  4629. 80020fc: 683b ldr r3, [r7, #0]
  4630. 80020fe: 68db ldr r3, [r3, #12]
  4631. 8002100: 330c adds r3, #12
  4632. 8002102: 623b str r3, [r7, #32]
  4633. break;
  4634. 8002104: e019 b.n 800213a <HAL_GPIO_Init+0xe2>
  4635. if (GPIO_Init->Pull == GPIO_NOPULL)
  4636. 8002106: 683b ldr r3, [r7, #0]
  4637. 8002108: 689b ldr r3, [r3, #8]
  4638. 800210a: 2b00 cmp r3, #0
  4639. 800210c: d102 bne.n 8002114 <HAL_GPIO_Init+0xbc>
  4640. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING;
  4641. 800210e: 2304 movs r3, #4
  4642. 8002110: 623b str r3, [r7, #32]
  4643. break;
  4644. 8002112: e012 b.n 800213a <HAL_GPIO_Init+0xe2>
  4645. else if (GPIO_Init->Pull == GPIO_PULLUP)
  4646. 8002114: 683b ldr r3, [r7, #0]
  4647. 8002116: 689b ldr r3, [r3, #8]
  4648. 8002118: 2b01 cmp r3, #1
  4649. 800211a: d105 bne.n 8002128 <HAL_GPIO_Init+0xd0>
  4650. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  4651. 800211c: 2308 movs r3, #8
  4652. 800211e: 623b str r3, [r7, #32]
  4653. GPIOx->BSRR = ioposition;
  4654. 8002120: 687b ldr r3, [r7, #4]
  4655. 8002122: 69fa ldr r2, [r7, #28]
  4656. 8002124: 611a str r2, [r3, #16]
  4657. break;
  4658. 8002126: e008 b.n 800213a <HAL_GPIO_Init+0xe2>
  4659. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  4660. 8002128: 2308 movs r3, #8
  4661. 800212a: 623b str r3, [r7, #32]
  4662. GPIOx->BRR = ioposition;
  4663. 800212c: 687b ldr r3, [r7, #4]
  4664. 800212e: 69fa ldr r2, [r7, #28]
  4665. 8002130: 615a str r2, [r3, #20]
  4666. break;
  4667. 8002132: e002 b.n 800213a <HAL_GPIO_Init+0xe2>
  4668. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  4669. 8002134: 2300 movs r3, #0
  4670. 8002136: 623b str r3, [r7, #32]
  4671. break;
  4672. 8002138: bf00 nop
  4673. }
  4674. /* Check if the current bit belongs to first half or last half of the pin count number
  4675. in order to address CRH or CRL register*/
  4676. configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH;
  4677. 800213a: 69bb ldr r3, [r7, #24]
  4678. 800213c: 2bff cmp r3, #255 ; 0xff
  4679. 800213e: d801 bhi.n 8002144 <HAL_GPIO_Init+0xec>
  4680. 8002140: 687b ldr r3, [r7, #4]
  4681. 8002142: e001 b.n 8002148 <HAL_GPIO_Init+0xf0>
  4682. 8002144: 687b ldr r3, [r7, #4]
  4683. 8002146: 3304 adds r3, #4
  4684. 8002148: 617b str r3, [r7, #20]
  4685. registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u);
  4686. 800214a: 69bb ldr r3, [r7, #24]
  4687. 800214c: 2bff cmp r3, #255 ; 0xff
  4688. 800214e: d802 bhi.n 8002156 <HAL_GPIO_Init+0xfe>
  4689. 8002150: 6a7b ldr r3, [r7, #36] ; 0x24
  4690. 8002152: 009b lsls r3, r3, #2
  4691. 8002154: e002 b.n 800215c <HAL_GPIO_Init+0x104>
  4692. 8002156: 6a7b ldr r3, [r7, #36] ; 0x24
  4693. 8002158: 3b08 subs r3, #8
  4694. 800215a: 009b lsls r3, r3, #2
  4695. 800215c: 613b str r3, [r7, #16]
  4696. /* Apply the new configuration of the pin to the register */
  4697. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  4698. 800215e: 697b ldr r3, [r7, #20]
  4699. 8002160: 681a ldr r2, [r3, #0]
  4700. 8002162: 210f movs r1, #15
  4701. 8002164: 693b ldr r3, [r7, #16]
  4702. 8002166: fa01 f303 lsl.w r3, r1, r3
  4703. 800216a: 43db mvns r3, r3
  4704. 800216c: 401a ands r2, r3
  4705. 800216e: 6a39 ldr r1, [r7, #32]
  4706. 8002170: 693b ldr r3, [r7, #16]
  4707. 8002172: fa01 f303 lsl.w r3, r1, r3
  4708. 8002176: 431a orrs r2, r3
  4709. 8002178: 697b ldr r3, [r7, #20]
  4710. 800217a: 601a str r2, [r3, #0]
  4711. /*--------------------- EXTI Mode Configuration ------------------------*/
  4712. /* Configure the External Interrupt or event for the current IO */
  4713. if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
  4714. 800217c: 683b ldr r3, [r7, #0]
  4715. 800217e: 685b ldr r3, [r3, #4]
  4716. 8002180: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  4717. 8002184: 2b00 cmp r3, #0
  4718. 8002186: f000 8096 beq.w 80022b6 <HAL_GPIO_Init+0x25e>
  4719. {
  4720. /* Enable AFIO Clock */
  4721. __HAL_RCC_AFIO_CLK_ENABLE();
  4722. 800218a: 4b59 ldr r3, [pc, #356] ; (80022f0 <HAL_GPIO_Init+0x298>)
  4723. 800218c: 699b ldr r3, [r3, #24]
  4724. 800218e: 4a58 ldr r2, [pc, #352] ; (80022f0 <HAL_GPIO_Init+0x298>)
  4725. 8002190: f043 0301 orr.w r3, r3, #1
  4726. 8002194: 6193 str r3, [r2, #24]
  4727. 8002196: 4b56 ldr r3, [pc, #344] ; (80022f0 <HAL_GPIO_Init+0x298>)
  4728. 8002198: 699b ldr r3, [r3, #24]
  4729. 800219a: f003 0301 and.w r3, r3, #1
  4730. 800219e: 60bb str r3, [r7, #8]
  4731. 80021a0: 68bb ldr r3, [r7, #8]
  4732. temp = AFIO->EXTICR[position >> 2u];
  4733. 80021a2: 4a54 ldr r2, [pc, #336] ; (80022f4 <HAL_GPIO_Init+0x29c>)
  4734. 80021a4: 6a7b ldr r3, [r7, #36] ; 0x24
  4735. 80021a6: 089b lsrs r3, r3, #2
  4736. 80021a8: 3302 adds r3, #2
  4737. 80021aa: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  4738. 80021ae: 60fb str r3, [r7, #12]
  4739. CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u)));
  4740. 80021b0: 6a7b ldr r3, [r7, #36] ; 0x24
  4741. 80021b2: f003 0303 and.w r3, r3, #3
  4742. 80021b6: 009b lsls r3, r3, #2
  4743. 80021b8: 220f movs r2, #15
  4744. 80021ba: fa02 f303 lsl.w r3, r2, r3
  4745. 80021be: 43db mvns r3, r3
  4746. 80021c0: 68fa ldr r2, [r7, #12]
  4747. 80021c2: 4013 ands r3, r2
  4748. 80021c4: 60fb str r3, [r7, #12]
  4749. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u)));
  4750. 80021c6: 687b ldr r3, [r7, #4]
  4751. 80021c8: 4a4b ldr r2, [pc, #300] ; (80022f8 <HAL_GPIO_Init+0x2a0>)
  4752. 80021ca: 4293 cmp r3, r2
  4753. 80021cc: d013 beq.n 80021f6 <HAL_GPIO_Init+0x19e>
  4754. 80021ce: 687b ldr r3, [r7, #4]
  4755. 80021d0: 4a4a ldr r2, [pc, #296] ; (80022fc <HAL_GPIO_Init+0x2a4>)
  4756. 80021d2: 4293 cmp r3, r2
  4757. 80021d4: d00d beq.n 80021f2 <HAL_GPIO_Init+0x19a>
  4758. 80021d6: 687b ldr r3, [r7, #4]
  4759. 80021d8: 4a49 ldr r2, [pc, #292] ; (8002300 <HAL_GPIO_Init+0x2a8>)
  4760. 80021da: 4293 cmp r3, r2
  4761. 80021dc: d007 beq.n 80021ee <HAL_GPIO_Init+0x196>
  4762. 80021de: 687b ldr r3, [r7, #4]
  4763. 80021e0: 4a48 ldr r2, [pc, #288] ; (8002304 <HAL_GPIO_Init+0x2ac>)
  4764. 80021e2: 4293 cmp r3, r2
  4765. 80021e4: d101 bne.n 80021ea <HAL_GPIO_Init+0x192>
  4766. 80021e6: 2303 movs r3, #3
  4767. 80021e8: e006 b.n 80021f8 <HAL_GPIO_Init+0x1a0>
  4768. 80021ea: 2304 movs r3, #4
  4769. 80021ec: e004 b.n 80021f8 <HAL_GPIO_Init+0x1a0>
  4770. 80021ee: 2302 movs r3, #2
  4771. 80021f0: e002 b.n 80021f8 <HAL_GPIO_Init+0x1a0>
  4772. 80021f2: 2301 movs r3, #1
  4773. 80021f4: e000 b.n 80021f8 <HAL_GPIO_Init+0x1a0>
  4774. 80021f6: 2300 movs r3, #0
  4775. 80021f8: 6a7a ldr r2, [r7, #36] ; 0x24
  4776. 80021fa: f002 0203 and.w r2, r2, #3
  4777. 80021fe: 0092 lsls r2, r2, #2
  4778. 8002200: 4093 lsls r3, r2
  4779. 8002202: 68fa ldr r2, [r7, #12]
  4780. 8002204: 4313 orrs r3, r2
  4781. 8002206: 60fb str r3, [r7, #12]
  4782. AFIO->EXTICR[position >> 2u] = temp;
  4783. 8002208: 493a ldr r1, [pc, #232] ; (80022f4 <HAL_GPIO_Init+0x29c>)
  4784. 800220a: 6a7b ldr r3, [r7, #36] ; 0x24
  4785. 800220c: 089b lsrs r3, r3, #2
  4786. 800220e: 3302 adds r3, #2
  4787. 8002210: 68fa ldr r2, [r7, #12]
  4788. 8002212: f841 2023 str.w r2, [r1, r3, lsl #2]
  4789. /* Configure the interrupt mask */
  4790. if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
  4791. 8002216: 683b ldr r3, [r7, #0]
  4792. 8002218: 685b ldr r3, [r3, #4]
  4793. 800221a: f403 3380 and.w r3, r3, #65536 ; 0x10000
  4794. 800221e: 2b00 cmp r3, #0
  4795. 8002220: d006 beq.n 8002230 <HAL_GPIO_Init+0x1d8>
  4796. {
  4797. SET_BIT(EXTI->IMR, iocurrent);
  4798. 8002222: 4b39 ldr r3, [pc, #228] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4799. 8002224: 681a ldr r2, [r3, #0]
  4800. 8002226: 4938 ldr r1, [pc, #224] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4801. 8002228: 69bb ldr r3, [r7, #24]
  4802. 800222a: 4313 orrs r3, r2
  4803. 800222c: 600b str r3, [r1, #0]
  4804. 800222e: e006 b.n 800223e <HAL_GPIO_Init+0x1e6>
  4805. }
  4806. else
  4807. {
  4808. CLEAR_BIT(EXTI->IMR, iocurrent);
  4809. 8002230: 4b35 ldr r3, [pc, #212] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4810. 8002232: 681a ldr r2, [r3, #0]
  4811. 8002234: 69bb ldr r3, [r7, #24]
  4812. 8002236: 43db mvns r3, r3
  4813. 8002238: 4933 ldr r1, [pc, #204] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4814. 800223a: 4013 ands r3, r2
  4815. 800223c: 600b str r3, [r1, #0]
  4816. }
  4817. /* Configure the event mask */
  4818. if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
  4819. 800223e: 683b ldr r3, [r7, #0]
  4820. 8002240: 685b ldr r3, [r3, #4]
  4821. 8002242: f403 3300 and.w r3, r3, #131072 ; 0x20000
  4822. 8002246: 2b00 cmp r3, #0
  4823. 8002248: d006 beq.n 8002258 <HAL_GPIO_Init+0x200>
  4824. {
  4825. SET_BIT(EXTI->EMR, iocurrent);
  4826. 800224a: 4b2f ldr r3, [pc, #188] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4827. 800224c: 685a ldr r2, [r3, #4]
  4828. 800224e: 492e ldr r1, [pc, #184] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4829. 8002250: 69bb ldr r3, [r7, #24]
  4830. 8002252: 4313 orrs r3, r2
  4831. 8002254: 604b str r3, [r1, #4]
  4832. 8002256: e006 b.n 8002266 <HAL_GPIO_Init+0x20e>
  4833. }
  4834. else
  4835. {
  4836. CLEAR_BIT(EXTI->EMR, iocurrent);
  4837. 8002258: 4b2b ldr r3, [pc, #172] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4838. 800225a: 685a ldr r2, [r3, #4]
  4839. 800225c: 69bb ldr r3, [r7, #24]
  4840. 800225e: 43db mvns r3, r3
  4841. 8002260: 4929 ldr r1, [pc, #164] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4842. 8002262: 4013 ands r3, r2
  4843. 8002264: 604b str r3, [r1, #4]
  4844. }
  4845. /* Enable or disable the rising trigger */
  4846. if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
  4847. 8002266: 683b ldr r3, [r7, #0]
  4848. 8002268: 685b ldr r3, [r3, #4]
  4849. 800226a: f403 1380 and.w r3, r3, #1048576 ; 0x100000
  4850. 800226e: 2b00 cmp r3, #0
  4851. 8002270: d006 beq.n 8002280 <HAL_GPIO_Init+0x228>
  4852. {
  4853. SET_BIT(EXTI->RTSR, iocurrent);
  4854. 8002272: 4b25 ldr r3, [pc, #148] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4855. 8002274: 689a ldr r2, [r3, #8]
  4856. 8002276: 4924 ldr r1, [pc, #144] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4857. 8002278: 69bb ldr r3, [r7, #24]
  4858. 800227a: 4313 orrs r3, r2
  4859. 800227c: 608b str r3, [r1, #8]
  4860. 800227e: e006 b.n 800228e <HAL_GPIO_Init+0x236>
  4861. }
  4862. else
  4863. {
  4864. CLEAR_BIT(EXTI->RTSR, iocurrent);
  4865. 8002280: 4b21 ldr r3, [pc, #132] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4866. 8002282: 689a ldr r2, [r3, #8]
  4867. 8002284: 69bb ldr r3, [r7, #24]
  4868. 8002286: 43db mvns r3, r3
  4869. 8002288: 491f ldr r1, [pc, #124] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4870. 800228a: 4013 ands r3, r2
  4871. 800228c: 608b str r3, [r1, #8]
  4872. }
  4873. /* Enable or disable the falling trigger */
  4874. if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
  4875. 800228e: 683b ldr r3, [r7, #0]
  4876. 8002290: 685b ldr r3, [r3, #4]
  4877. 8002292: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  4878. 8002296: 2b00 cmp r3, #0
  4879. 8002298: d006 beq.n 80022a8 <HAL_GPIO_Init+0x250>
  4880. {
  4881. SET_BIT(EXTI->FTSR, iocurrent);
  4882. 800229a: 4b1b ldr r3, [pc, #108] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4883. 800229c: 68da ldr r2, [r3, #12]
  4884. 800229e: 491a ldr r1, [pc, #104] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4885. 80022a0: 69bb ldr r3, [r7, #24]
  4886. 80022a2: 4313 orrs r3, r2
  4887. 80022a4: 60cb str r3, [r1, #12]
  4888. 80022a6: e006 b.n 80022b6 <HAL_GPIO_Init+0x25e>
  4889. }
  4890. else
  4891. {
  4892. CLEAR_BIT(EXTI->FTSR, iocurrent);
  4893. 80022a8: 4b17 ldr r3, [pc, #92] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4894. 80022aa: 68da ldr r2, [r3, #12]
  4895. 80022ac: 69bb ldr r3, [r7, #24]
  4896. 80022ae: 43db mvns r3, r3
  4897. 80022b0: 4915 ldr r1, [pc, #84] ; (8002308 <HAL_GPIO_Init+0x2b0>)
  4898. 80022b2: 4013 ands r3, r2
  4899. 80022b4: 60cb str r3, [r1, #12]
  4900. }
  4901. }
  4902. }
  4903. position++;
  4904. 80022b6: 6a7b ldr r3, [r7, #36] ; 0x24
  4905. 80022b8: 3301 adds r3, #1
  4906. 80022ba: 627b str r3, [r7, #36] ; 0x24
  4907. while (((GPIO_Init->Pin) >> position) != 0x00u)
  4908. 80022bc: 683b ldr r3, [r7, #0]
  4909. 80022be: 681a ldr r2, [r3, #0]
  4910. 80022c0: 6a7b ldr r3, [r7, #36] ; 0x24
  4911. 80022c2: fa22 f303 lsr.w r3, r2, r3
  4912. 80022c6: 2b00 cmp r3, #0
  4913. 80022c8: f47f aed0 bne.w 800206c <HAL_GPIO_Init+0x14>
  4914. }
  4915. }
  4916. 80022cc: bf00 nop
  4917. 80022ce: 372c adds r7, #44 ; 0x2c
  4918. 80022d0: 46bd mov sp, r7
  4919. 80022d2: bc80 pop {r7}
  4920. 80022d4: 4770 bx lr
  4921. 80022d6: bf00 nop
  4922. 80022d8: 10210000 .word 0x10210000
  4923. 80022dc: 10110000 .word 0x10110000
  4924. 80022e0: 10120000 .word 0x10120000
  4925. 80022e4: 10310000 .word 0x10310000
  4926. 80022e8: 10320000 .word 0x10320000
  4927. 80022ec: 10220000 .word 0x10220000
  4928. 80022f0: 40021000 .word 0x40021000
  4929. 80022f4: 40010000 .word 0x40010000
  4930. 80022f8: 40010800 .word 0x40010800
  4931. 80022fc: 40010c00 .word 0x40010c00
  4932. 8002300: 40011000 .word 0x40011000
  4933. 8002304: 40011400 .word 0x40011400
  4934. 8002308: 40010400 .word 0x40010400
  4935. 0800230c <HAL_GPIO_WritePin>:
  4936. * @arg GPIO_PIN_RESET: to clear the port pin
  4937. * @arg GPIO_PIN_SET: to set the port pin
  4938. * @retval None
  4939. */
  4940. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  4941. {
  4942. 800230c: b480 push {r7}
  4943. 800230e: b083 sub sp, #12
  4944. 8002310: af00 add r7, sp, #0
  4945. 8002312: 6078 str r0, [r7, #4]
  4946. 8002314: 460b mov r3, r1
  4947. 8002316: 807b strh r3, [r7, #2]
  4948. 8002318: 4613 mov r3, r2
  4949. 800231a: 707b strb r3, [r7, #1]
  4950. /* Check the parameters */
  4951. assert_param(IS_GPIO_PIN(GPIO_Pin));
  4952. assert_param(IS_GPIO_PIN_ACTION(PinState));
  4953. if (PinState != GPIO_PIN_RESET)
  4954. 800231c: 787b ldrb r3, [r7, #1]
  4955. 800231e: 2b00 cmp r3, #0
  4956. 8002320: d003 beq.n 800232a <HAL_GPIO_WritePin+0x1e>
  4957. {
  4958. GPIOx->BSRR = GPIO_Pin;
  4959. 8002322: 887a ldrh r2, [r7, #2]
  4960. 8002324: 687b ldr r3, [r7, #4]
  4961. 8002326: 611a str r2, [r3, #16]
  4962. }
  4963. else
  4964. {
  4965. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  4966. }
  4967. }
  4968. 8002328: e003 b.n 8002332 <HAL_GPIO_WritePin+0x26>
  4969. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  4970. 800232a: 887b ldrh r3, [r7, #2]
  4971. 800232c: 041a lsls r2, r3, #16
  4972. 800232e: 687b ldr r3, [r7, #4]
  4973. 8002330: 611a str r2, [r3, #16]
  4974. }
  4975. 8002332: bf00 nop
  4976. 8002334: 370c adds r7, #12
  4977. 8002336: 46bd mov sp, r7
  4978. 8002338: bc80 pop {r7}
  4979. 800233a: 4770 bx lr
  4980. 0800233c <HAL_GPIO_TogglePin>:
  4981. * @param GPIOx: where x can be (A..G depending on device used) to select the GPIO peripheral
  4982. * @param GPIO_Pin: Specifies the pins to be toggled.
  4983. * @retval None
  4984. */
  4985. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  4986. {
  4987. 800233c: b480 push {r7}
  4988. 800233e: b083 sub sp, #12
  4989. 8002340: af00 add r7, sp, #0
  4990. 8002342: 6078 str r0, [r7, #4]
  4991. 8002344: 460b mov r3, r1
  4992. 8002346: 807b strh r3, [r7, #2]
  4993. /* Check the parameters */
  4994. assert_param(IS_GPIO_PIN(GPIO_Pin));
  4995. if ((GPIOx->ODR & GPIO_Pin) != 0x00u)
  4996. 8002348: 687b ldr r3, [r7, #4]
  4997. 800234a: 68da ldr r2, [r3, #12]
  4998. 800234c: 887b ldrh r3, [r7, #2]
  4999. 800234e: 4013 ands r3, r2
  5000. 8002350: 2b00 cmp r3, #0
  5001. 8002352: d003 beq.n 800235c <HAL_GPIO_TogglePin+0x20>
  5002. {
  5003. GPIOx->BRR = (uint32_t)GPIO_Pin;
  5004. 8002354: 887a ldrh r2, [r7, #2]
  5005. 8002356: 687b ldr r3, [r7, #4]
  5006. 8002358: 615a str r2, [r3, #20]
  5007. }
  5008. else
  5009. {
  5010. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  5011. }
  5012. }
  5013. 800235a: e002 b.n 8002362 <HAL_GPIO_TogglePin+0x26>
  5014. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  5015. 800235c: 887a ldrh r2, [r7, #2]
  5016. 800235e: 687b ldr r3, [r7, #4]
  5017. 8002360: 611a str r2, [r3, #16]
  5018. }
  5019. 8002362: bf00 nop
  5020. 8002364: 370c adds r7, #12
  5021. 8002366: 46bd mov sp, r7
  5022. 8002368: bc80 pop {r7}
  5023. 800236a: 4770 bx lr
  5024. 0800236c <HAL_RCC_OscConfig>:
  5025. * supported by this macro. User should request a transition to HSE Off
  5026. * first and then HSE On or HSE Bypass.
  5027. * @retval HAL status
  5028. */
  5029. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  5030. {
  5031. 800236c: b580 push {r7, lr}
  5032. 800236e: b086 sub sp, #24
  5033. 8002370: af00 add r7, sp, #0
  5034. 8002372: 6078 str r0, [r7, #4]
  5035. uint32_t tickstart;
  5036. uint32_t pll_config;
  5037. /* Check Null pointer */
  5038. if (RCC_OscInitStruct == NULL)
  5039. 8002374: 687b ldr r3, [r7, #4]
  5040. 8002376: 2b00 cmp r3, #0
  5041. 8002378: d101 bne.n 800237e <HAL_RCC_OscConfig+0x12>
  5042. {
  5043. return HAL_ERROR;
  5044. 800237a: 2301 movs r3, #1
  5045. 800237c: e26c b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5046. /* Check the parameters */
  5047. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  5048. /*------------------------------- HSE Configuration ------------------------*/
  5049. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  5050. 800237e: 687b ldr r3, [r7, #4]
  5051. 8002380: 681b ldr r3, [r3, #0]
  5052. 8002382: f003 0301 and.w r3, r3, #1
  5053. 8002386: 2b00 cmp r3, #0
  5054. 8002388: f000 8087 beq.w 800249a <HAL_RCC_OscConfig+0x12e>
  5055. {
  5056. /* Check the parameters */
  5057. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  5058. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  5059. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  5060. 800238c: 4b92 ldr r3, [pc, #584] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5061. 800238e: 685b ldr r3, [r3, #4]
  5062. 8002390: f003 030c and.w r3, r3, #12
  5063. 8002394: 2b04 cmp r3, #4
  5064. 8002396: d00c beq.n 80023b2 <HAL_RCC_OscConfig+0x46>
  5065. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  5066. 8002398: 4b8f ldr r3, [pc, #572] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5067. 800239a: 685b ldr r3, [r3, #4]
  5068. 800239c: f003 030c and.w r3, r3, #12
  5069. 80023a0: 2b08 cmp r3, #8
  5070. 80023a2: d112 bne.n 80023ca <HAL_RCC_OscConfig+0x5e>
  5071. 80023a4: 4b8c ldr r3, [pc, #560] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5072. 80023a6: 685b ldr r3, [r3, #4]
  5073. 80023a8: f403 3380 and.w r3, r3, #65536 ; 0x10000
  5074. 80023ac: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  5075. 80023b0: d10b bne.n 80023ca <HAL_RCC_OscConfig+0x5e>
  5076. {
  5077. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  5078. 80023b2: 4b89 ldr r3, [pc, #548] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5079. 80023b4: 681b ldr r3, [r3, #0]
  5080. 80023b6: f403 3300 and.w r3, r3, #131072 ; 0x20000
  5081. 80023ba: 2b00 cmp r3, #0
  5082. 80023bc: d06c beq.n 8002498 <HAL_RCC_OscConfig+0x12c>
  5083. 80023be: 687b ldr r3, [r7, #4]
  5084. 80023c0: 685b ldr r3, [r3, #4]
  5085. 80023c2: 2b00 cmp r3, #0
  5086. 80023c4: d168 bne.n 8002498 <HAL_RCC_OscConfig+0x12c>
  5087. {
  5088. return HAL_ERROR;
  5089. 80023c6: 2301 movs r3, #1
  5090. 80023c8: e246 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5091. }
  5092. }
  5093. else
  5094. {
  5095. /* Set the new HSE configuration ---------------------------------------*/
  5096. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  5097. 80023ca: 687b ldr r3, [r7, #4]
  5098. 80023cc: 685b ldr r3, [r3, #4]
  5099. 80023ce: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  5100. 80023d2: d106 bne.n 80023e2 <HAL_RCC_OscConfig+0x76>
  5101. 80023d4: 4b80 ldr r3, [pc, #512] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5102. 80023d6: 681b ldr r3, [r3, #0]
  5103. 80023d8: 4a7f ldr r2, [pc, #508] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5104. 80023da: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  5105. 80023de: 6013 str r3, [r2, #0]
  5106. 80023e0: e02e b.n 8002440 <HAL_RCC_OscConfig+0xd4>
  5107. 80023e2: 687b ldr r3, [r7, #4]
  5108. 80023e4: 685b ldr r3, [r3, #4]
  5109. 80023e6: 2b00 cmp r3, #0
  5110. 80023e8: d10c bne.n 8002404 <HAL_RCC_OscConfig+0x98>
  5111. 80023ea: 4b7b ldr r3, [pc, #492] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5112. 80023ec: 681b ldr r3, [r3, #0]
  5113. 80023ee: 4a7a ldr r2, [pc, #488] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5114. 80023f0: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  5115. 80023f4: 6013 str r3, [r2, #0]
  5116. 80023f6: 4b78 ldr r3, [pc, #480] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5117. 80023f8: 681b ldr r3, [r3, #0]
  5118. 80023fa: 4a77 ldr r2, [pc, #476] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5119. 80023fc: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  5120. 8002400: 6013 str r3, [r2, #0]
  5121. 8002402: e01d b.n 8002440 <HAL_RCC_OscConfig+0xd4>
  5122. 8002404: 687b ldr r3, [r7, #4]
  5123. 8002406: 685b ldr r3, [r3, #4]
  5124. 8002408: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
  5125. 800240c: d10c bne.n 8002428 <HAL_RCC_OscConfig+0xbc>
  5126. 800240e: 4b72 ldr r3, [pc, #456] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5127. 8002410: 681b ldr r3, [r3, #0]
  5128. 8002412: 4a71 ldr r2, [pc, #452] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5129. 8002414: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  5130. 8002418: 6013 str r3, [r2, #0]
  5131. 800241a: 4b6f ldr r3, [pc, #444] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5132. 800241c: 681b ldr r3, [r3, #0]
  5133. 800241e: 4a6e ldr r2, [pc, #440] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5134. 8002420: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  5135. 8002424: 6013 str r3, [r2, #0]
  5136. 8002426: e00b b.n 8002440 <HAL_RCC_OscConfig+0xd4>
  5137. 8002428: 4b6b ldr r3, [pc, #428] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5138. 800242a: 681b ldr r3, [r3, #0]
  5139. 800242c: 4a6a ldr r2, [pc, #424] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5140. 800242e: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  5141. 8002432: 6013 str r3, [r2, #0]
  5142. 8002434: 4b68 ldr r3, [pc, #416] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5143. 8002436: 681b ldr r3, [r3, #0]
  5144. 8002438: 4a67 ldr r2, [pc, #412] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5145. 800243a: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  5146. 800243e: 6013 str r3, [r2, #0]
  5147. /* Check the HSE State */
  5148. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  5149. 8002440: 687b ldr r3, [r7, #4]
  5150. 8002442: 685b ldr r3, [r3, #4]
  5151. 8002444: 2b00 cmp r3, #0
  5152. 8002446: d013 beq.n 8002470 <HAL_RCC_OscConfig+0x104>
  5153. {
  5154. /* Get Start Tick */
  5155. tickstart = HAL_GetTick();
  5156. 8002448: f7fe fdd8 bl 8000ffc <HAL_GetTick>
  5157. 800244c: 6138 str r0, [r7, #16]
  5158. /* Wait till HSE is ready */
  5159. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  5160. 800244e: e008 b.n 8002462 <HAL_RCC_OscConfig+0xf6>
  5161. {
  5162. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  5163. 8002450: f7fe fdd4 bl 8000ffc <HAL_GetTick>
  5164. 8002454: 4602 mov r2, r0
  5165. 8002456: 693b ldr r3, [r7, #16]
  5166. 8002458: 1ad3 subs r3, r2, r3
  5167. 800245a: 2b64 cmp r3, #100 ; 0x64
  5168. 800245c: d901 bls.n 8002462 <HAL_RCC_OscConfig+0xf6>
  5169. {
  5170. return HAL_TIMEOUT;
  5171. 800245e: 2303 movs r3, #3
  5172. 8002460: e1fa b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5173. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  5174. 8002462: 4b5d ldr r3, [pc, #372] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5175. 8002464: 681b ldr r3, [r3, #0]
  5176. 8002466: f403 3300 and.w r3, r3, #131072 ; 0x20000
  5177. 800246a: 2b00 cmp r3, #0
  5178. 800246c: d0f0 beq.n 8002450 <HAL_RCC_OscConfig+0xe4>
  5179. 800246e: e014 b.n 800249a <HAL_RCC_OscConfig+0x12e>
  5180. }
  5181. }
  5182. else
  5183. {
  5184. /* Get Start Tick */
  5185. tickstart = HAL_GetTick();
  5186. 8002470: f7fe fdc4 bl 8000ffc <HAL_GetTick>
  5187. 8002474: 6138 str r0, [r7, #16]
  5188. /* Wait till HSE is disabled */
  5189. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  5190. 8002476: e008 b.n 800248a <HAL_RCC_OscConfig+0x11e>
  5191. {
  5192. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  5193. 8002478: f7fe fdc0 bl 8000ffc <HAL_GetTick>
  5194. 800247c: 4602 mov r2, r0
  5195. 800247e: 693b ldr r3, [r7, #16]
  5196. 8002480: 1ad3 subs r3, r2, r3
  5197. 8002482: 2b64 cmp r3, #100 ; 0x64
  5198. 8002484: d901 bls.n 800248a <HAL_RCC_OscConfig+0x11e>
  5199. {
  5200. return HAL_TIMEOUT;
  5201. 8002486: 2303 movs r3, #3
  5202. 8002488: e1e6 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5203. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  5204. 800248a: 4b53 ldr r3, [pc, #332] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5205. 800248c: 681b ldr r3, [r3, #0]
  5206. 800248e: f403 3300 and.w r3, r3, #131072 ; 0x20000
  5207. 8002492: 2b00 cmp r3, #0
  5208. 8002494: d1f0 bne.n 8002478 <HAL_RCC_OscConfig+0x10c>
  5209. 8002496: e000 b.n 800249a <HAL_RCC_OscConfig+0x12e>
  5210. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  5211. 8002498: bf00 nop
  5212. }
  5213. }
  5214. }
  5215. }
  5216. /*----------------------------- HSI Configuration --------------------------*/
  5217. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  5218. 800249a: 687b ldr r3, [r7, #4]
  5219. 800249c: 681b ldr r3, [r3, #0]
  5220. 800249e: f003 0302 and.w r3, r3, #2
  5221. 80024a2: 2b00 cmp r3, #0
  5222. 80024a4: d063 beq.n 800256e <HAL_RCC_OscConfig+0x202>
  5223. /* Check the parameters */
  5224. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  5225. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  5226. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  5227. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  5228. 80024a6: 4b4c ldr r3, [pc, #304] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5229. 80024a8: 685b ldr r3, [r3, #4]
  5230. 80024aa: f003 030c and.w r3, r3, #12
  5231. 80024ae: 2b00 cmp r3, #0
  5232. 80024b0: d00b beq.n 80024ca <HAL_RCC_OscConfig+0x15e>
  5233. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2)))
  5234. 80024b2: 4b49 ldr r3, [pc, #292] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5235. 80024b4: 685b ldr r3, [r3, #4]
  5236. 80024b6: f003 030c and.w r3, r3, #12
  5237. 80024ba: 2b08 cmp r3, #8
  5238. 80024bc: d11c bne.n 80024f8 <HAL_RCC_OscConfig+0x18c>
  5239. 80024be: 4b46 ldr r3, [pc, #280] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5240. 80024c0: 685b ldr r3, [r3, #4]
  5241. 80024c2: f403 3380 and.w r3, r3, #65536 ; 0x10000
  5242. 80024c6: 2b00 cmp r3, #0
  5243. 80024c8: d116 bne.n 80024f8 <HAL_RCC_OscConfig+0x18c>
  5244. {
  5245. /* When HSI is used as system clock it will not disabled */
  5246. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  5247. 80024ca: 4b43 ldr r3, [pc, #268] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5248. 80024cc: 681b ldr r3, [r3, #0]
  5249. 80024ce: f003 0302 and.w r3, r3, #2
  5250. 80024d2: 2b00 cmp r3, #0
  5251. 80024d4: d005 beq.n 80024e2 <HAL_RCC_OscConfig+0x176>
  5252. 80024d6: 687b ldr r3, [r7, #4]
  5253. 80024d8: 691b ldr r3, [r3, #16]
  5254. 80024da: 2b01 cmp r3, #1
  5255. 80024dc: d001 beq.n 80024e2 <HAL_RCC_OscConfig+0x176>
  5256. {
  5257. return HAL_ERROR;
  5258. 80024de: 2301 movs r3, #1
  5259. 80024e0: e1ba b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5260. }
  5261. /* Otherwise, just the calibration is allowed */
  5262. else
  5263. {
  5264. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  5265. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  5266. 80024e2: 4b3d ldr r3, [pc, #244] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5267. 80024e4: 681b ldr r3, [r3, #0]
  5268. 80024e6: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  5269. 80024ea: 687b ldr r3, [r7, #4]
  5270. 80024ec: 695b ldr r3, [r3, #20]
  5271. 80024ee: 00db lsls r3, r3, #3
  5272. 80024f0: 4939 ldr r1, [pc, #228] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5273. 80024f2: 4313 orrs r3, r2
  5274. 80024f4: 600b str r3, [r1, #0]
  5275. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  5276. 80024f6: e03a b.n 800256e <HAL_RCC_OscConfig+0x202>
  5277. }
  5278. }
  5279. else
  5280. {
  5281. /* Check the HSI State */
  5282. if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  5283. 80024f8: 687b ldr r3, [r7, #4]
  5284. 80024fa: 691b ldr r3, [r3, #16]
  5285. 80024fc: 2b00 cmp r3, #0
  5286. 80024fe: d020 beq.n 8002542 <HAL_RCC_OscConfig+0x1d6>
  5287. {
  5288. /* Enable the Internal High Speed oscillator (HSI). */
  5289. __HAL_RCC_HSI_ENABLE();
  5290. 8002500: 4b36 ldr r3, [pc, #216] ; (80025dc <HAL_RCC_OscConfig+0x270>)
  5291. 8002502: 2201 movs r2, #1
  5292. 8002504: 601a str r2, [r3, #0]
  5293. /* Get Start Tick */
  5294. tickstart = HAL_GetTick();
  5295. 8002506: f7fe fd79 bl 8000ffc <HAL_GetTick>
  5296. 800250a: 6138 str r0, [r7, #16]
  5297. /* Wait till HSI is ready */
  5298. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  5299. 800250c: e008 b.n 8002520 <HAL_RCC_OscConfig+0x1b4>
  5300. {
  5301. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  5302. 800250e: f7fe fd75 bl 8000ffc <HAL_GetTick>
  5303. 8002512: 4602 mov r2, r0
  5304. 8002514: 693b ldr r3, [r7, #16]
  5305. 8002516: 1ad3 subs r3, r2, r3
  5306. 8002518: 2b02 cmp r3, #2
  5307. 800251a: d901 bls.n 8002520 <HAL_RCC_OscConfig+0x1b4>
  5308. {
  5309. return HAL_TIMEOUT;
  5310. 800251c: 2303 movs r3, #3
  5311. 800251e: e19b b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5312. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  5313. 8002520: 4b2d ldr r3, [pc, #180] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5314. 8002522: 681b ldr r3, [r3, #0]
  5315. 8002524: f003 0302 and.w r3, r3, #2
  5316. 8002528: 2b00 cmp r3, #0
  5317. 800252a: d0f0 beq.n 800250e <HAL_RCC_OscConfig+0x1a2>
  5318. }
  5319. }
  5320. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  5321. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  5322. 800252c: 4b2a ldr r3, [pc, #168] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5323. 800252e: 681b ldr r3, [r3, #0]
  5324. 8002530: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  5325. 8002534: 687b ldr r3, [r7, #4]
  5326. 8002536: 695b ldr r3, [r3, #20]
  5327. 8002538: 00db lsls r3, r3, #3
  5328. 800253a: 4927 ldr r1, [pc, #156] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5329. 800253c: 4313 orrs r3, r2
  5330. 800253e: 600b str r3, [r1, #0]
  5331. 8002540: e015 b.n 800256e <HAL_RCC_OscConfig+0x202>
  5332. }
  5333. else
  5334. {
  5335. /* Disable the Internal High Speed oscillator (HSI). */
  5336. __HAL_RCC_HSI_DISABLE();
  5337. 8002542: 4b26 ldr r3, [pc, #152] ; (80025dc <HAL_RCC_OscConfig+0x270>)
  5338. 8002544: 2200 movs r2, #0
  5339. 8002546: 601a str r2, [r3, #0]
  5340. /* Get Start Tick */
  5341. tickstart = HAL_GetTick();
  5342. 8002548: f7fe fd58 bl 8000ffc <HAL_GetTick>
  5343. 800254c: 6138 str r0, [r7, #16]
  5344. /* Wait till HSI is disabled */
  5345. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  5346. 800254e: e008 b.n 8002562 <HAL_RCC_OscConfig+0x1f6>
  5347. {
  5348. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  5349. 8002550: f7fe fd54 bl 8000ffc <HAL_GetTick>
  5350. 8002554: 4602 mov r2, r0
  5351. 8002556: 693b ldr r3, [r7, #16]
  5352. 8002558: 1ad3 subs r3, r2, r3
  5353. 800255a: 2b02 cmp r3, #2
  5354. 800255c: d901 bls.n 8002562 <HAL_RCC_OscConfig+0x1f6>
  5355. {
  5356. return HAL_TIMEOUT;
  5357. 800255e: 2303 movs r3, #3
  5358. 8002560: e17a b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5359. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  5360. 8002562: 4b1d ldr r3, [pc, #116] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5361. 8002564: 681b ldr r3, [r3, #0]
  5362. 8002566: f003 0302 and.w r3, r3, #2
  5363. 800256a: 2b00 cmp r3, #0
  5364. 800256c: d1f0 bne.n 8002550 <HAL_RCC_OscConfig+0x1e4>
  5365. }
  5366. }
  5367. }
  5368. }
  5369. /*------------------------------ LSI Configuration -------------------------*/
  5370. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  5371. 800256e: 687b ldr r3, [r7, #4]
  5372. 8002570: 681b ldr r3, [r3, #0]
  5373. 8002572: f003 0308 and.w r3, r3, #8
  5374. 8002576: 2b00 cmp r3, #0
  5375. 8002578: d03a beq.n 80025f0 <HAL_RCC_OscConfig+0x284>
  5376. {
  5377. /* Check the parameters */
  5378. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  5379. /* Check the LSI State */
  5380. if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  5381. 800257a: 687b ldr r3, [r7, #4]
  5382. 800257c: 699b ldr r3, [r3, #24]
  5383. 800257e: 2b00 cmp r3, #0
  5384. 8002580: d019 beq.n 80025b6 <HAL_RCC_OscConfig+0x24a>
  5385. {
  5386. /* Enable the Internal Low Speed oscillator (LSI). */
  5387. __HAL_RCC_LSI_ENABLE();
  5388. 8002582: 4b17 ldr r3, [pc, #92] ; (80025e0 <HAL_RCC_OscConfig+0x274>)
  5389. 8002584: 2201 movs r2, #1
  5390. 8002586: 601a str r2, [r3, #0]
  5391. /* Get Start Tick */
  5392. tickstart = HAL_GetTick();
  5393. 8002588: f7fe fd38 bl 8000ffc <HAL_GetTick>
  5394. 800258c: 6138 str r0, [r7, #16]
  5395. /* Wait till LSI is ready */
  5396. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  5397. 800258e: e008 b.n 80025a2 <HAL_RCC_OscConfig+0x236>
  5398. {
  5399. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  5400. 8002590: f7fe fd34 bl 8000ffc <HAL_GetTick>
  5401. 8002594: 4602 mov r2, r0
  5402. 8002596: 693b ldr r3, [r7, #16]
  5403. 8002598: 1ad3 subs r3, r2, r3
  5404. 800259a: 2b02 cmp r3, #2
  5405. 800259c: d901 bls.n 80025a2 <HAL_RCC_OscConfig+0x236>
  5406. {
  5407. return HAL_TIMEOUT;
  5408. 800259e: 2303 movs r3, #3
  5409. 80025a0: e15a b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5410. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  5411. 80025a2: 4b0d ldr r3, [pc, #52] ; (80025d8 <HAL_RCC_OscConfig+0x26c>)
  5412. 80025a4: 6a5b ldr r3, [r3, #36] ; 0x24
  5413. 80025a6: f003 0302 and.w r3, r3, #2
  5414. 80025aa: 2b00 cmp r3, #0
  5415. 80025ac: d0f0 beq.n 8002590 <HAL_RCC_OscConfig+0x224>
  5416. }
  5417. }
  5418. /* To have a fully stabilized clock in the specified range, a software delay of 1ms
  5419. should be added.*/
  5420. RCC_Delay(1);
  5421. 80025ae: 2001 movs r0, #1
  5422. 80025b0: f000 fad6 bl 8002b60 <RCC_Delay>
  5423. 80025b4: e01c b.n 80025f0 <HAL_RCC_OscConfig+0x284>
  5424. }
  5425. else
  5426. {
  5427. /* Disable the Internal Low Speed oscillator (LSI). */
  5428. __HAL_RCC_LSI_DISABLE();
  5429. 80025b6: 4b0a ldr r3, [pc, #40] ; (80025e0 <HAL_RCC_OscConfig+0x274>)
  5430. 80025b8: 2200 movs r2, #0
  5431. 80025ba: 601a str r2, [r3, #0]
  5432. /* Get Start Tick */
  5433. tickstart = HAL_GetTick();
  5434. 80025bc: f7fe fd1e bl 8000ffc <HAL_GetTick>
  5435. 80025c0: 6138 str r0, [r7, #16]
  5436. /* Wait till LSI is disabled */
  5437. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  5438. 80025c2: e00f b.n 80025e4 <HAL_RCC_OscConfig+0x278>
  5439. {
  5440. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  5441. 80025c4: f7fe fd1a bl 8000ffc <HAL_GetTick>
  5442. 80025c8: 4602 mov r2, r0
  5443. 80025ca: 693b ldr r3, [r7, #16]
  5444. 80025cc: 1ad3 subs r3, r2, r3
  5445. 80025ce: 2b02 cmp r3, #2
  5446. 80025d0: d908 bls.n 80025e4 <HAL_RCC_OscConfig+0x278>
  5447. {
  5448. return HAL_TIMEOUT;
  5449. 80025d2: 2303 movs r3, #3
  5450. 80025d4: e140 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5451. 80025d6: bf00 nop
  5452. 80025d8: 40021000 .word 0x40021000
  5453. 80025dc: 42420000 .word 0x42420000
  5454. 80025e0: 42420480 .word 0x42420480
  5455. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  5456. 80025e4: 4b9e ldr r3, [pc, #632] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5457. 80025e6: 6a5b ldr r3, [r3, #36] ; 0x24
  5458. 80025e8: f003 0302 and.w r3, r3, #2
  5459. 80025ec: 2b00 cmp r3, #0
  5460. 80025ee: d1e9 bne.n 80025c4 <HAL_RCC_OscConfig+0x258>
  5461. }
  5462. }
  5463. }
  5464. }
  5465. /*------------------------------ LSE Configuration -------------------------*/
  5466. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  5467. 80025f0: 687b ldr r3, [r7, #4]
  5468. 80025f2: 681b ldr r3, [r3, #0]
  5469. 80025f4: f003 0304 and.w r3, r3, #4
  5470. 80025f8: 2b00 cmp r3, #0
  5471. 80025fa: f000 80a6 beq.w 800274a <HAL_RCC_OscConfig+0x3de>
  5472. {
  5473. FlagStatus pwrclkchanged = RESET;
  5474. 80025fe: 2300 movs r3, #0
  5475. 8002600: 75fb strb r3, [r7, #23]
  5476. /* Check the parameters */
  5477. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  5478. /* Update LSE configuration in Backup Domain control register */
  5479. /* Requires to enable write access to Backup Domain of necessary */
  5480. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  5481. 8002602: 4b97 ldr r3, [pc, #604] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5482. 8002604: 69db ldr r3, [r3, #28]
  5483. 8002606: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  5484. 800260a: 2b00 cmp r3, #0
  5485. 800260c: d10d bne.n 800262a <HAL_RCC_OscConfig+0x2be>
  5486. {
  5487. __HAL_RCC_PWR_CLK_ENABLE();
  5488. 800260e: 4b94 ldr r3, [pc, #592] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5489. 8002610: 69db ldr r3, [r3, #28]
  5490. 8002612: 4a93 ldr r2, [pc, #588] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5491. 8002614: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  5492. 8002618: 61d3 str r3, [r2, #28]
  5493. 800261a: 4b91 ldr r3, [pc, #580] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5494. 800261c: 69db ldr r3, [r3, #28]
  5495. 800261e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  5496. 8002622: 60bb str r3, [r7, #8]
  5497. 8002624: 68bb ldr r3, [r7, #8]
  5498. pwrclkchanged = SET;
  5499. 8002626: 2301 movs r3, #1
  5500. 8002628: 75fb strb r3, [r7, #23]
  5501. }
  5502. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  5503. 800262a: 4b8e ldr r3, [pc, #568] ; (8002864 <HAL_RCC_OscConfig+0x4f8>)
  5504. 800262c: 681b ldr r3, [r3, #0]
  5505. 800262e: f403 7380 and.w r3, r3, #256 ; 0x100
  5506. 8002632: 2b00 cmp r3, #0
  5507. 8002634: d118 bne.n 8002668 <HAL_RCC_OscConfig+0x2fc>
  5508. {
  5509. /* Enable write access to Backup domain */
  5510. SET_BIT(PWR->CR, PWR_CR_DBP);
  5511. 8002636: 4b8b ldr r3, [pc, #556] ; (8002864 <HAL_RCC_OscConfig+0x4f8>)
  5512. 8002638: 681b ldr r3, [r3, #0]
  5513. 800263a: 4a8a ldr r2, [pc, #552] ; (8002864 <HAL_RCC_OscConfig+0x4f8>)
  5514. 800263c: f443 7380 orr.w r3, r3, #256 ; 0x100
  5515. 8002640: 6013 str r3, [r2, #0]
  5516. /* Wait for Backup domain Write protection disable */
  5517. tickstart = HAL_GetTick();
  5518. 8002642: f7fe fcdb bl 8000ffc <HAL_GetTick>
  5519. 8002646: 6138 str r0, [r7, #16]
  5520. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  5521. 8002648: e008 b.n 800265c <HAL_RCC_OscConfig+0x2f0>
  5522. {
  5523. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  5524. 800264a: f7fe fcd7 bl 8000ffc <HAL_GetTick>
  5525. 800264e: 4602 mov r2, r0
  5526. 8002650: 693b ldr r3, [r7, #16]
  5527. 8002652: 1ad3 subs r3, r2, r3
  5528. 8002654: 2b64 cmp r3, #100 ; 0x64
  5529. 8002656: d901 bls.n 800265c <HAL_RCC_OscConfig+0x2f0>
  5530. {
  5531. return HAL_TIMEOUT;
  5532. 8002658: 2303 movs r3, #3
  5533. 800265a: e0fd b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5534. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  5535. 800265c: 4b81 ldr r3, [pc, #516] ; (8002864 <HAL_RCC_OscConfig+0x4f8>)
  5536. 800265e: 681b ldr r3, [r3, #0]
  5537. 8002660: f403 7380 and.w r3, r3, #256 ; 0x100
  5538. 8002664: 2b00 cmp r3, #0
  5539. 8002666: d0f0 beq.n 800264a <HAL_RCC_OscConfig+0x2de>
  5540. }
  5541. }
  5542. }
  5543. /* Set the new LSE configuration -----------------------------------------*/
  5544. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  5545. 8002668: 687b ldr r3, [r7, #4]
  5546. 800266a: 68db ldr r3, [r3, #12]
  5547. 800266c: 2b01 cmp r3, #1
  5548. 800266e: d106 bne.n 800267e <HAL_RCC_OscConfig+0x312>
  5549. 8002670: 4b7b ldr r3, [pc, #492] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5550. 8002672: 6a1b ldr r3, [r3, #32]
  5551. 8002674: 4a7a ldr r2, [pc, #488] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5552. 8002676: f043 0301 orr.w r3, r3, #1
  5553. 800267a: 6213 str r3, [r2, #32]
  5554. 800267c: e02d b.n 80026da <HAL_RCC_OscConfig+0x36e>
  5555. 800267e: 687b ldr r3, [r7, #4]
  5556. 8002680: 68db ldr r3, [r3, #12]
  5557. 8002682: 2b00 cmp r3, #0
  5558. 8002684: d10c bne.n 80026a0 <HAL_RCC_OscConfig+0x334>
  5559. 8002686: 4b76 ldr r3, [pc, #472] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5560. 8002688: 6a1b ldr r3, [r3, #32]
  5561. 800268a: 4a75 ldr r2, [pc, #468] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5562. 800268c: f023 0301 bic.w r3, r3, #1
  5563. 8002690: 6213 str r3, [r2, #32]
  5564. 8002692: 4b73 ldr r3, [pc, #460] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5565. 8002694: 6a1b ldr r3, [r3, #32]
  5566. 8002696: 4a72 ldr r2, [pc, #456] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5567. 8002698: f023 0304 bic.w r3, r3, #4
  5568. 800269c: 6213 str r3, [r2, #32]
  5569. 800269e: e01c b.n 80026da <HAL_RCC_OscConfig+0x36e>
  5570. 80026a0: 687b ldr r3, [r7, #4]
  5571. 80026a2: 68db ldr r3, [r3, #12]
  5572. 80026a4: 2b05 cmp r3, #5
  5573. 80026a6: d10c bne.n 80026c2 <HAL_RCC_OscConfig+0x356>
  5574. 80026a8: 4b6d ldr r3, [pc, #436] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5575. 80026aa: 6a1b ldr r3, [r3, #32]
  5576. 80026ac: 4a6c ldr r2, [pc, #432] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5577. 80026ae: f043 0304 orr.w r3, r3, #4
  5578. 80026b2: 6213 str r3, [r2, #32]
  5579. 80026b4: 4b6a ldr r3, [pc, #424] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5580. 80026b6: 6a1b ldr r3, [r3, #32]
  5581. 80026b8: 4a69 ldr r2, [pc, #420] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5582. 80026ba: f043 0301 orr.w r3, r3, #1
  5583. 80026be: 6213 str r3, [r2, #32]
  5584. 80026c0: e00b b.n 80026da <HAL_RCC_OscConfig+0x36e>
  5585. 80026c2: 4b67 ldr r3, [pc, #412] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5586. 80026c4: 6a1b ldr r3, [r3, #32]
  5587. 80026c6: 4a66 ldr r2, [pc, #408] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5588. 80026c8: f023 0301 bic.w r3, r3, #1
  5589. 80026cc: 6213 str r3, [r2, #32]
  5590. 80026ce: 4b64 ldr r3, [pc, #400] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5591. 80026d0: 6a1b ldr r3, [r3, #32]
  5592. 80026d2: 4a63 ldr r2, [pc, #396] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5593. 80026d4: f023 0304 bic.w r3, r3, #4
  5594. 80026d8: 6213 str r3, [r2, #32]
  5595. /* Check the LSE State */
  5596. if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  5597. 80026da: 687b ldr r3, [r7, #4]
  5598. 80026dc: 68db ldr r3, [r3, #12]
  5599. 80026de: 2b00 cmp r3, #0
  5600. 80026e0: d015 beq.n 800270e <HAL_RCC_OscConfig+0x3a2>
  5601. {
  5602. /* Get Start Tick */
  5603. tickstart = HAL_GetTick();
  5604. 80026e2: f7fe fc8b bl 8000ffc <HAL_GetTick>
  5605. 80026e6: 6138 str r0, [r7, #16]
  5606. /* Wait till LSE is ready */
  5607. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  5608. 80026e8: e00a b.n 8002700 <HAL_RCC_OscConfig+0x394>
  5609. {
  5610. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  5611. 80026ea: f7fe fc87 bl 8000ffc <HAL_GetTick>
  5612. 80026ee: 4602 mov r2, r0
  5613. 80026f0: 693b ldr r3, [r7, #16]
  5614. 80026f2: 1ad3 subs r3, r2, r3
  5615. 80026f4: f241 3288 movw r2, #5000 ; 0x1388
  5616. 80026f8: 4293 cmp r3, r2
  5617. 80026fa: d901 bls.n 8002700 <HAL_RCC_OscConfig+0x394>
  5618. {
  5619. return HAL_TIMEOUT;
  5620. 80026fc: 2303 movs r3, #3
  5621. 80026fe: e0ab b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5622. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  5623. 8002700: 4b57 ldr r3, [pc, #348] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5624. 8002702: 6a1b ldr r3, [r3, #32]
  5625. 8002704: f003 0302 and.w r3, r3, #2
  5626. 8002708: 2b00 cmp r3, #0
  5627. 800270a: d0ee beq.n 80026ea <HAL_RCC_OscConfig+0x37e>
  5628. 800270c: e014 b.n 8002738 <HAL_RCC_OscConfig+0x3cc>
  5629. }
  5630. }
  5631. else
  5632. {
  5633. /* Get Start Tick */
  5634. tickstart = HAL_GetTick();
  5635. 800270e: f7fe fc75 bl 8000ffc <HAL_GetTick>
  5636. 8002712: 6138 str r0, [r7, #16]
  5637. /* Wait till LSE is disabled */
  5638. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  5639. 8002714: e00a b.n 800272c <HAL_RCC_OscConfig+0x3c0>
  5640. {
  5641. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  5642. 8002716: f7fe fc71 bl 8000ffc <HAL_GetTick>
  5643. 800271a: 4602 mov r2, r0
  5644. 800271c: 693b ldr r3, [r7, #16]
  5645. 800271e: 1ad3 subs r3, r2, r3
  5646. 8002720: f241 3288 movw r2, #5000 ; 0x1388
  5647. 8002724: 4293 cmp r3, r2
  5648. 8002726: d901 bls.n 800272c <HAL_RCC_OscConfig+0x3c0>
  5649. {
  5650. return HAL_TIMEOUT;
  5651. 8002728: 2303 movs r3, #3
  5652. 800272a: e095 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5653. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  5654. 800272c: 4b4c ldr r3, [pc, #304] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5655. 800272e: 6a1b ldr r3, [r3, #32]
  5656. 8002730: f003 0302 and.w r3, r3, #2
  5657. 8002734: 2b00 cmp r3, #0
  5658. 8002736: d1ee bne.n 8002716 <HAL_RCC_OscConfig+0x3aa>
  5659. }
  5660. }
  5661. }
  5662. /* Require to disable power clock if necessary */
  5663. if (pwrclkchanged == SET)
  5664. 8002738: 7dfb ldrb r3, [r7, #23]
  5665. 800273a: 2b01 cmp r3, #1
  5666. 800273c: d105 bne.n 800274a <HAL_RCC_OscConfig+0x3de>
  5667. {
  5668. __HAL_RCC_PWR_CLK_DISABLE();
  5669. 800273e: 4b48 ldr r3, [pc, #288] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5670. 8002740: 69db ldr r3, [r3, #28]
  5671. 8002742: 4a47 ldr r2, [pc, #284] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5672. 8002744: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  5673. 8002748: 61d3 str r3, [r2, #28]
  5674. #endif /* RCC_CR_PLL2ON */
  5675. /*-------------------------------- PLL Configuration -----------------------*/
  5676. /* Check the parameters */
  5677. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  5678. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  5679. 800274a: 687b ldr r3, [r7, #4]
  5680. 800274c: 69db ldr r3, [r3, #28]
  5681. 800274e: 2b00 cmp r3, #0
  5682. 8002750: f000 8081 beq.w 8002856 <HAL_RCC_OscConfig+0x4ea>
  5683. {
  5684. /* Check if the PLL is used as system clock or not */
  5685. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  5686. 8002754: 4b42 ldr r3, [pc, #264] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5687. 8002756: 685b ldr r3, [r3, #4]
  5688. 8002758: f003 030c and.w r3, r3, #12
  5689. 800275c: 2b08 cmp r3, #8
  5690. 800275e: d061 beq.n 8002824 <HAL_RCC_OscConfig+0x4b8>
  5691. {
  5692. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  5693. 8002760: 687b ldr r3, [r7, #4]
  5694. 8002762: 69db ldr r3, [r3, #28]
  5695. 8002764: 2b02 cmp r3, #2
  5696. 8002766: d146 bne.n 80027f6 <HAL_RCC_OscConfig+0x48a>
  5697. /* Check the parameters */
  5698. assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
  5699. assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
  5700. /* Disable the main PLL. */
  5701. __HAL_RCC_PLL_DISABLE();
  5702. 8002768: 4b3f ldr r3, [pc, #252] ; (8002868 <HAL_RCC_OscConfig+0x4fc>)
  5703. 800276a: 2200 movs r2, #0
  5704. 800276c: 601a str r2, [r3, #0]
  5705. /* Get Start Tick */
  5706. tickstart = HAL_GetTick();
  5707. 800276e: f7fe fc45 bl 8000ffc <HAL_GetTick>
  5708. 8002772: 6138 str r0, [r7, #16]
  5709. /* Wait till PLL is disabled */
  5710. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  5711. 8002774: e008 b.n 8002788 <HAL_RCC_OscConfig+0x41c>
  5712. {
  5713. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  5714. 8002776: f7fe fc41 bl 8000ffc <HAL_GetTick>
  5715. 800277a: 4602 mov r2, r0
  5716. 800277c: 693b ldr r3, [r7, #16]
  5717. 800277e: 1ad3 subs r3, r2, r3
  5718. 8002780: 2b02 cmp r3, #2
  5719. 8002782: d901 bls.n 8002788 <HAL_RCC_OscConfig+0x41c>
  5720. {
  5721. return HAL_TIMEOUT;
  5722. 8002784: 2303 movs r3, #3
  5723. 8002786: e067 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5724. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  5725. 8002788: 4b35 ldr r3, [pc, #212] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5726. 800278a: 681b ldr r3, [r3, #0]
  5727. 800278c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  5728. 8002790: 2b00 cmp r3, #0
  5729. 8002792: d1f0 bne.n 8002776 <HAL_RCC_OscConfig+0x40a>
  5730. }
  5731. }
  5732. /* Configure the HSE prediv factor --------------------------------*/
  5733. /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */
  5734. if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE)
  5735. 8002794: 687b ldr r3, [r7, #4]
  5736. 8002796: 6a1b ldr r3, [r3, #32]
  5737. 8002798: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  5738. 800279c: d108 bne.n 80027b0 <HAL_RCC_OscConfig+0x444>
  5739. /* Set PREDIV1 source */
  5740. SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source);
  5741. #endif /* RCC_CFGR2_PREDIV1SRC */
  5742. /* Set PREDIV1 Value */
  5743. __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue);
  5744. 800279e: 4b30 ldr r3, [pc, #192] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5745. 80027a0: 6adb ldr r3, [r3, #44] ; 0x2c
  5746. 80027a2: f023 020f bic.w r2, r3, #15
  5747. 80027a6: 687b ldr r3, [r7, #4]
  5748. 80027a8: 689b ldr r3, [r3, #8]
  5749. 80027aa: 492d ldr r1, [pc, #180] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5750. 80027ac: 4313 orrs r3, r2
  5751. 80027ae: 62cb str r3, [r1, #44] ; 0x2c
  5752. }
  5753. /* Configure the main PLL clock source and multiplication factors. */
  5754. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  5755. 80027b0: 4b2b ldr r3, [pc, #172] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5756. 80027b2: 685b ldr r3, [r3, #4]
  5757. 80027b4: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000
  5758. 80027b8: 687b ldr r3, [r7, #4]
  5759. 80027ba: 6a19 ldr r1, [r3, #32]
  5760. 80027bc: 687b ldr r3, [r7, #4]
  5761. 80027be: 6a5b ldr r3, [r3, #36] ; 0x24
  5762. 80027c0: 430b orrs r3, r1
  5763. 80027c2: 4927 ldr r1, [pc, #156] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5764. 80027c4: 4313 orrs r3, r2
  5765. 80027c6: 604b str r3, [r1, #4]
  5766. RCC_OscInitStruct->PLL.PLLMUL);
  5767. /* Enable the main PLL. */
  5768. __HAL_RCC_PLL_ENABLE();
  5769. 80027c8: 4b27 ldr r3, [pc, #156] ; (8002868 <HAL_RCC_OscConfig+0x4fc>)
  5770. 80027ca: 2201 movs r2, #1
  5771. 80027cc: 601a str r2, [r3, #0]
  5772. /* Get Start Tick */
  5773. tickstart = HAL_GetTick();
  5774. 80027ce: f7fe fc15 bl 8000ffc <HAL_GetTick>
  5775. 80027d2: 6138 str r0, [r7, #16]
  5776. /* Wait till PLL is ready */
  5777. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  5778. 80027d4: e008 b.n 80027e8 <HAL_RCC_OscConfig+0x47c>
  5779. {
  5780. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  5781. 80027d6: f7fe fc11 bl 8000ffc <HAL_GetTick>
  5782. 80027da: 4602 mov r2, r0
  5783. 80027dc: 693b ldr r3, [r7, #16]
  5784. 80027de: 1ad3 subs r3, r2, r3
  5785. 80027e0: 2b02 cmp r3, #2
  5786. 80027e2: d901 bls.n 80027e8 <HAL_RCC_OscConfig+0x47c>
  5787. {
  5788. return HAL_TIMEOUT;
  5789. 80027e4: 2303 movs r3, #3
  5790. 80027e6: e037 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5791. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  5792. 80027e8: 4b1d ldr r3, [pc, #116] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5793. 80027ea: 681b ldr r3, [r3, #0]
  5794. 80027ec: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  5795. 80027f0: 2b00 cmp r3, #0
  5796. 80027f2: d0f0 beq.n 80027d6 <HAL_RCC_OscConfig+0x46a>
  5797. 80027f4: e02f b.n 8002856 <HAL_RCC_OscConfig+0x4ea>
  5798. }
  5799. }
  5800. else
  5801. {
  5802. /* Disable the main PLL. */
  5803. __HAL_RCC_PLL_DISABLE();
  5804. 80027f6: 4b1c ldr r3, [pc, #112] ; (8002868 <HAL_RCC_OscConfig+0x4fc>)
  5805. 80027f8: 2200 movs r2, #0
  5806. 80027fa: 601a str r2, [r3, #0]
  5807. /* Get Start Tick */
  5808. tickstart = HAL_GetTick();
  5809. 80027fc: f7fe fbfe bl 8000ffc <HAL_GetTick>
  5810. 8002800: 6138 str r0, [r7, #16]
  5811. /* Wait till PLL is disabled */
  5812. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  5813. 8002802: e008 b.n 8002816 <HAL_RCC_OscConfig+0x4aa>
  5814. {
  5815. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  5816. 8002804: f7fe fbfa bl 8000ffc <HAL_GetTick>
  5817. 8002808: 4602 mov r2, r0
  5818. 800280a: 693b ldr r3, [r7, #16]
  5819. 800280c: 1ad3 subs r3, r2, r3
  5820. 800280e: 2b02 cmp r3, #2
  5821. 8002810: d901 bls.n 8002816 <HAL_RCC_OscConfig+0x4aa>
  5822. {
  5823. return HAL_TIMEOUT;
  5824. 8002812: 2303 movs r3, #3
  5825. 8002814: e020 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5826. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  5827. 8002816: 4b12 ldr r3, [pc, #72] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5828. 8002818: 681b ldr r3, [r3, #0]
  5829. 800281a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  5830. 800281e: 2b00 cmp r3, #0
  5831. 8002820: d1f0 bne.n 8002804 <HAL_RCC_OscConfig+0x498>
  5832. 8002822: e018 b.n 8002856 <HAL_RCC_OscConfig+0x4ea>
  5833. }
  5834. }
  5835. else
  5836. {
  5837. /* Check if there is a request to disable the PLL used as System clock source */
  5838. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  5839. 8002824: 687b ldr r3, [r7, #4]
  5840. 8002826: 69db ldr r3, [r3, #28]
  5841. 8002828: 2b01 cmp r3, #1
  5842. 800282a: d101 bne.n 8002830 <HAL_RCC_OscConfig+0x4c4>
  5843. {
  5844. return HAL_ERROR;
  5845. 800282c: 2301 movs r3, #1
  5846. 800282e: e013 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5847. }
  5848. else
  5849. {
  5850. /* Do not return HAL_ERROR if request repeats the current configuration */
  5851. pll_config = RCC->CFGR;
  5852. 8002830: 4b0b ldr r3, [pc, #44] ; (8002860 <HAL_RCC_OscConfig+0x4f4>)
  5853. 8002832: 685b ldr r3, [r3, #4]
  5854. 8002834: 60fb str r3, [r7, #12]
  5855. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  5856. 8002836: 68fb ldr r3, [r7, #12]
  5857. 8002838: f403 3280 and.w r2, r3, #65536 ; 0x10000
  5858. 800283c: 687b ldr r3, [r7, #4]
  5859. 800283e: 6a1b ldr r3, [r3, #32]
  5860. 8002840: 429a cmp r2, r3
  5861. 8002842: d106 bne.n 8002852 <HAL_RCC_OscConfig+0x4e6>
  5862. (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL))
  5863. 8002844: 68fb ldr r3, [r7, #12]
  5864. 8002846: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  5865. 800284a: 687b ldr r3, [r7, #4]
  5866. 800284c: 6a5b ldr r3, [r3, #36] ; 0x24
  5867. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  5868. 800284e: 429a cmp r2, r3
  5869. 8002850: d001 beq.n 8002856 <HAL_RCC_OscConfig+0x4ea>
  5870. {
  5871. return HAL_ERROR;
  5872. 8002852: 2301 movs r3, #1
  5873. 8002854: e000 b.n 8002858 <HAL_RCC_OscConfig+0x4ec>
  5874. }
  5875. }
  5876. }
  5877. }
  5878. return HAL_OK;
  5879. 8002856: 2300 movs r3, #0
  5880. }
  5881. 8002858: 4618 mov r0, r3
  5882. 800285a: 3718 adds r7, #24
  5883. 800285c: 46bd mov sp, r7
  5884. 800285e: bd80 pop {r7, pc}
  5885. 8002860: 40021000 .word 0x40021000
  5886. 8002864: 40007000 .word 0x40007000
  5887. 8002868: 42420060 .word 0x42420060
  5888. 0800286c <HAL_RCC_ClockConfig>:
  5889. * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is
  5890. * currently used as system clock source.
  5891. * @retval HAL status
  5892. */
  5893. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  5894. {
  5895. 800286c: b580 push {r7, lr}
  5896. 800286e: b084 sub sp, #16
  5897. 8002870: af00 add r7, sp, #0
  5898. 8002872: 6078 str r0, [r7, #4]
  5899. 8002874: 6039 str r1, [r7, #0]
  5900. uint32_t tickstart;
  5901. /* Check Null pointer */
  5902. if (RCC_ClkInitStruct == NULL)
  5903. 8002876: 687b ldr r3, [r7, #4]
  5904. 8002878: 2b00 cmp r3, #0
  5905. 800287a: d101 bne.n 8002880 <HAL_RCC_ClockConfig+0x14>
  5906. {
  5907. return HAL_ERROR;
  5908. 800287c: 2301 movs r3, #1
  5909. 800287e: e0a0 b.n 80029c2 <HAL_RCC_ClockConfig+0x156>
  5910. }
  5911. }
  5912. #endif /* FLASH_ACR_LATENCY */
  5913. /*-------------------------- HCLK Configuration --------------------------*/
  5914. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  5915. 8002880: 687b ldr r3, [r7, #4]
  5916. 8002882: 681b ldr r3, [r3, #0]
  5917. 8002884: f003 0302 and.w r3, r3, #2
  5918. 8002888: 2b00 cmp r3, #0
  5919. 800288a: d020 beq.n 80028ce <HAL_RCC_ClockConfig+0x62>
  5920. {
  5921. /* Set the highest APBx dividers in order to ensure that we do not go through
  5922. a non-spec phase whatever we decrease or increase HCLK. */
  5923. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  5924. 800288c: 687b ldr r3, [r7, #4]
  5925. 800288e: 681b ldr r3, [r3, #0]
  5926. 8002890: f003 0304 and.w r3, r3, #4
  5927. 8002894: 2b00 cmp r3, #0
  5928. 8002896: d005 beq.n 80028a4 <HAL_RCC_ClockConfig+0x38>
  5929. {
  5930. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
  5931. 8002898: 4b4c ldr r3, [pc, #304] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5932. 800289a: 685b ldr r3, [r3, #4]
  5933. 800289c: 4a4b ldr r2, [pc, #300] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5934. 800289e: f443 63e0 orr.w r3, r3, #1792 ; 0x700
  5935. 80028a2: 6053 str r3, [r2, #4]
  5936. }
  5937. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  5938. 80028a4: 687b ldr r3, [r7, #4]
  5939. 80028a6: 681b ldr r3, [r3, #0]
  5940. 80028a8: f003 0308 and.w r3, r3, #8
  5941. 80028ac: 2b00 cmp r3, #0
  5942. 80028ae: d005 beq.n 80028bc <HAL_RCC_ClockConfig+0x50>
  5943. {
  5944. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
  5945. 80028b0: 4b46 ldr r3, [pc, #280] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5946. 80028b2: 685b ldr r3, [r3, #4]
  5947. 80028b4: 4a45 ldr r2, [pc, #276] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5948. 80028b6: f443 5360 orr.w r3, r3, #14336 ; 0x3800
  5949. 80028ba: 6053 str r3, [r2, #4]
  5950. }
  5951. /* Set the new HCLK clock divider */
  5952. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  5953. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  5954. 80028bc: 4b43 ldr r3, [pc, #268] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5955. 80028be: 685b ldr r3, [r3, #4]
  5956. 80028c0: f023 02f0 bic.w r2, r3, #240 ; 0xf0
  5957. 80028c4: 687b ldr r3, [r7, #4]
  5958. 80028c6: 689b ldr r3, [r3, #8]
  5959. 80028c8: 4940 ldr r1, [pc, #256] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5960. 80028ca: 4313 orrs r3, r2
  5961. 80028cc: 604b str r3, [r1, #4]
  5962. }
  5963. /*------------------------- SYSCLK Configuration ---------------------------*/
  5964. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  5965. 80028ce: 687b ldr r3, [r7, #4]
  5966. 80028d0: 681b ldr r3, [r3, #0]
  5967. 80028d2: f003 0301 and.w r3, r3, #1
  5968. 80028d6: 2b00 cmp r3, #0
  5969. 80028d8: d040 beq.n 800295c <HAL_RCC_ClockConfig+0xf0>
  5970. {
  5971. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  5972. /* HSE is selected as System Clock Source */
  5973. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  5974. 80028da: 687b ldr r3, [r7, #4]
  5975. 80028dc: 685b ldr r3, [r3, #4]
  5976. 80028de: 2b01 cmp r3, #1
  5977. 80028e0: d107 bne.n 80028f2 <HAL_RCC_ClockConfig+0x86>
  5978. {
  5979. /* Check the HSE ready flag */
  5980. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  5981. 80028e2: 4b3a ldr r3, [pc, #232] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  5982. 80028e4: 681b ldr r3, [r3, #0]
  5983. 80028e6: f403 3300 and.w r3, r3, #131072 ; 0x20000
  5984. 80028ea: 2b00 cmp r3, #0
  5985. 80028ec: d115 bne.n 800291a <HAL_RCC_ClockConfig+0xae>
  5986. {
  5987. return HAL_ERROR;
  5988. 80028ee: 2301 movs r3, #1
  5989. 80028f0: e067 b.n 80029c2 <HAL_RCC_ClockConfig+0x156>
  5990. }
  5991. }
  5992. /* PLL is selected as System Clock Source */
  5993. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  5994. 80028f2: 687b ldr r3, [r7, #4]
  5995. 80028f4: 685b ldr r3, [r3, #4]
  5996. 80028f6: 2b02 cmp r3, #2
  5997. 80028f8: d107 bne.n 800290a <HAL_RCC_ClockConfig+0x9e>
  5998. {
  5999. /* Check the PLL ready flag */
  6000. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  6001. 80028fa: 4b34 ldr r3, [pc, #208] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6002. 80028fc: 681b ldr r3, [r3, #0]
  6003. 80028fe: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  6004. 8002902: 2b00 cmp r3, #0
  6005. 8002904: d109 bne.n 800291a <HAL_RCC_ClockConfig+0xae>
  6006. {
  6007. return HAL_ERROR;
  6008. 8002906: 2301 movs r3, #1
  6009. 8002908: e05b b.n 80029c2 <HAL_RCC_ClockConfig+0x156>
  6010. }
  6011. /* HSI is selected as System Clock Source */
  6012. else
  6013. {
  6014. /* Check the HSI ready flag */
  6015. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  6016. 800290a: 4b30 ldr r3, [pc, #192] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6017. 800290c: 681b ldr r3, [r3, #0]
  6018. 800290e: f003 0302 and.w r3, r3, #2
  6019. 8002912: 2b00 cmp r3, #0
  6020. 8002914: d101 bne.n 800291a <HAL_RCC_ClockConfig+0xae>
  6021. {
  6022. return HAL_ERROR;
  6023. 8002916: 2301 movs r3, #1
  6024. 8002918: e053 b.n 80029c2 <HAL_RCC_ClockConfig+0x156>
  6025. }
  6026. }
  6027. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  6028. 800291a: 4b2c ldr r3, [pc, #176] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6029. 800291c: 685b ldr r3, [r3, #4]
  6030. 800291e: f023 0203 bic.w r2, r3, #3
  6031. 8002922: 687b ldr r3, [r7, #4]
  6032. 8002924: 685b ldr r3, [r3, #4]
  6033. 8002926: 4929 ldr r1, [pc, #164] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6034. 8002928: 4313 orrs r3, r2
  6035. 800292a: 604b str r3, [r1, #4]
  6036. /* Get Start Tick */
  6037. tickstart = HAL_GetTick();
  6038. 800292c: f7fe fb66 bl 8000ffc <HAL_GetTick>
  6039. 8002930: 60f8 str r0, [r7, #12]
  6040. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  6041. 8002932: e00a b.n 800294a <HAL_RCC_ClockConfig+0xde>
  6042. {
  6043. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  6044. 8002934: f7fe fb62 bl 8000ffc <HAL_GetTick>
  6045. 8002938: 4602 mov r2, r0
  6046. 800293a: 68fb ldr r3, [r7, #12]
  6047. 800293c: 1ad3 subs r3, r2, r3
  6048. 800293e: f241 3288 movw r2, #5000 ; 0x1388
  6049. 8002942: 4293 cmp r3, r2
  6050. 8002944: d901 bls.n 800294a <HAL_RCC_ClockConfig+0xde>
  6051. {
  6052. return HAL_TIMEOUT;
  6053. 8002946: 2303 movs r3, #3
  6054. 8002948: e03b b.n 80029c2 <HAL_RCC_ClockConfig+0x156>
  6055. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  6056. 800294a: 4b20 ldr r3, [pc, #128] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6057. 800294c: 685b ldr r3, [r3, #4]
  6058. 800294e: f003 020c and.w r2, r3, #12
  6059. 8002952: 687b ldr r3, [r7, #4]
  6060. 8002954: 685b ldr r3, [r3, #4]
  6061. 8002956: 009b lsls r3, r3, #2
  6062. 8002958: 429a cmp r2, r3
  6063. 800295a: d1eb bne.n 8002934 <HAL_RCC_ClockConfig+0xc8>
  6064. }
  6065. }
  6066. #endif /* FLASH_ACR_LATENCY */
  6067. /*-------------------------- PCLK1 Configuration ---------------------------*/
  6068. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  6069. 800295c: 687b ldr r3, [r7, #4]
  6070. 800295e: 681b ldr r3, [r3, #0]
  6071. 8002960: f003 0304 and.w r3, r3, #4
  6072. 8002964: 2b00 cmp r3, #0
  6073. 8002966: d008 beq.n 800297a <HAL_RCC_ClockConfig+0x10e>
  6074. {
  6075. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  6076. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  6077. 8002968: 4b18 ldr r3, [pc, #96] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6078. 800296a: 685b ldr r3, [r3, #4]
  6079. 800296c: f423 62e0 bic.w r2, r3, #1792 ; 0x700
  6080. 8002970: 687b ldr r3, [r7, #4]
  6081. 8002972: 68db ldr r3, [r3, #12]
  6082. 8002974: 4915 ldr r1, [pc, #84] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6083. 8002976: 4313 orrs r3, r2
  6084. 8002978: 604b str r3, [r1, #4]
  6085. }
  6086. /*-------------------------- PCLK2 Configuration ---------------------------*/
  6087. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  6088. 800297a: 687b ldr r3, [r7, #4]
  6089. 800297c: 681b ldr r3, [r3, #0]
  6090. 800297e: f003 0308 and.w r3, r3, #8
  6091. 8002982: 2b00 cmp r3, #0
  6092. 8002984: d009 beq.n 800299a <HAL_RCC_ClockConfig+0x12e>
  6093. {
  6094. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
  6095. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
  6096. 8002986: 4b11 ldr r3, [pc, #68] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6097. 8002988: 685b ldr r3, [r3, #4]
  6098. 800298a: f423 5260 bic.w r2, r3, #14336 ; 0x3800
  6099. 800298e: 687b ldr r3, [r7, #4]
  6100. 8002990: 691b ldr r3, [r3, #16]
  6101. 8002992: 00db lsls r3, r3, #3
  6102. 8002994: 490d ldr r1, [pc, #52] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6103. 8002996: 4313 orrs r3, r2
  6104. 8002998: 604b str r3, [r1, #4]
  6105. }
  6106. /* Update the SystemCoreClock global variable */
  6107. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos];
  6108. 800299a: f000 f81f bl 80029dc <HAL_RCC_GetSysClockFreq>
  6109. 800299e: 4601 mov r1, r0
  6110. 80029a0: 4b0a ldr r3, [pc, #40] ; (80029cc <HAL_RCC_ClockConfig+0x160>)
  6111. 80029a2: 685b ldr r3, [r3, #4]
  6112. 80029a4: 091b lsrs r3, r3, #4
  6113. 80029a6: f003 030f and.w r3, r3, #15
  6114. 80029aa: 4a09 ldr r2, [pc, #36] ; (80029d0 <HAL_RCC_ClockConfig+0x164>)
  6115. 80029ac: 5cd3 ldrb r3, [r2, r3]
  6116. 80029ae: fa21 f303 lsr.w r3, r1, r3
  6117. 80029b2: 4a08 ldr r2, [pc, #32] ; (80029d4 <HAL_RCC_ClockConfig+0x168>)
  6118. 80029b4: 6013 str r3, [r2, #0]
  6119. /* Configure the source of time base considering new system clocks settings*/
  6120. HAL_InitTick(uwTickPrio);
  6121. 80029b6: 4b08 ldr r3, [pc, #32] ; (80029d8 <HAL_RCC_ClockConfig+0x16c>)
  6122. 80029b8: 681b ldr r3, [r3, #0]
  6123. 80029ba: 4618 mov r0, r3
  6124. 80029bc: f001 fe96 bl 80046ec <HAL_InitTick>
  6125. return HAL_OK;
  6126. 80029c0: 2300 movs r3, #0
  6127. }
  6128. 80029c2: 4618 mov r0, r3
  6129. 80029c4: 3710 adds r7, #16
  6130. 80029c6: 46bd mov sp, r7
  6131. 80029c8: bd80 pop {r7, pc}
  6132. 80029ca: bf00 nop
  6133. 80029cc: 40021000 .word 0x40021000
  6134. 80029d0: 0800742c .word 0x0800742c
  6135. 80029d4: 20000008 .word 0x20000008
  6136. 80029d8: 20000000 .word 0x20000000
  6137. 080029dc <HAL_RCC_GetSysClockFreq>:
  6138. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  6139. *
  6140. * @retval SYSCLK frequency
  6141. */
  6142. uint32_t HAL_RCC_GetSysClockFreq(void)
  6143. {
  6144. 80029dc: b490 push {r4, r7}
  6145. 80029de: b08e sub sp, #56 ; 0x38
  6146. 80029e0: af00 add r7, sp, #0
  6147. #if defined(RCC_CFGR2_PREDIV1SRC)
  6148. const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13};
  6149. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  6150. #else
  6151. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  6152. 80029e2: 4b2b ldr r3, [pc, #172] ; (8002a90 <HAL_RCC_GetSysClockFreq+0xb4>)
  6153. 80029e4: f107 0414 add.w r4, r7, #20
  6154. 80029e8: cb0f ldmia r3, {r0, r1, r2, r3}
  6155. 80029ea: e884 000f stmia.w r4, {r0, r1, r2, r3}
  6156. #if defined(RCC_CFGR2_PREDIV1)
  6157. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  6158. 80029ee: 4b29 ldr r3, [pc, #164] ; (8002a94 <HAL_RCC_GetSysClockFreq+0xb8>)
  6159. 80029f0: 1d3c adds r4, r7, #4
  6160. 80029f2: cb0f ldmia r3, {r0, r1, r2, r3}
  6161. 80029f4: e884 000f stmia.w r4, {r0, r1, r2, r3}
  6162. #else
  6163. const uint8_t aPredivFactorTable[2] = {1, 2};
  6164. #endif /*RCC_CFGR2_PREDIV1*/
  6165. #endif
  6166. uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U;
  6167. 80029f8: 2300 movs r3, #0
  6168. 80029fa: 62fb str r3, [r7, #44] ; 0x2c
  6169. 80029fc: 2300 movs r3, #0
  6170. 80029fe: 62bb str r3, [r7, #40] ; 0x28
  6171. 8002a00: 2300 movs r3, #0
  6172. 8002a02: 637b str r3, [r7, #52] ; 0x34
  6173. 8002a04: 2300 movs r3, #0
  6174. 8002a06: 627b str r3, [r7, #36] ; 0x24
  6175. uint32_t sysclockfreq = 0U;
  6176. 8002a08: 2300 movs r3, #0
  6177. 8002a0a: 633b str r3, [r7, #48] ; 0x30
  6178. #if defined(RCC_CFGR2_PREDIV1SRC)
  6179. uint32_t prediv2 = 0U, pll2mul = 0U;
  6180. #endif /*RCC_CFGR2_PREDIV1SRC*/
  6181. tmpreg = RCC->CFGR;
  6182. 8002a0c: 4b22 ldr r3, [pc, #136] ; (8002a98 <HAL_RCC_GetSysClockFreq+0xbc>)
  6183. 8002a0e: 685b ldr r3, [r3, #4]
  6184. 8002a10: 62fb str r3, [r7, #44] ; 0x2c
  6185. /* Get SYSCLK source -------------------------------------------------------*/
  6186. switch (tmpreg & RCC_CFGR_SWS)
  6187. 8002a12: 6afb ldr r3, [r7, #44] ; 0x2c
  6188. 8002a14: f003 030c and.w r3, r3, #12
  6189. 8002a18: 2b04 cmp r3, #4
  6190. 8002a1a: d002 beq.n 8002a22 <HAL_RCC_GetSysClockFreq+0x46>
  6191. 8002a1c: 2b08 cmp r3, #8
  6192. 8002a1e: d003 beq.n 8002a28 <HAL_RCC_GetSysClockFreq+0x4c>
  6193. 8002a20: e02c b.n 8002a7c <HAL_RCC_GetSysClockFreq+0xa0>
  6194. {
  6195. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  6196. {
  6197. sysclockfreq = HSE_VALUE;
  6198. 8002a22: 4b1e ldr r3, [pc, #120] ; (8002a9c <HAL_RCC_GetSysClockFreq+0xc0>)
  6199. 8002a24: 633b str r3, [r7, #48] ; 0x30
  6200. break;
  6201. 8002a26: e02c b.n 8002a82 <HAL_RCC_GetSysClockFreq+0xa6>
  6202. }
  6203. case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
  6204. {
  6205. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos];
  6206. 8002a28: 6afb ldr r3, [r7, #44] ; 0x2c
  6207. 8002a2a: 0c9b lsrs r3, r3, #18
  6208. 8002a2c: f003 030f and.w r3, r3, #15
  6209. 8002a30: f107 0238 add.w r2, r7, #56 ; 0x38
  6210. 8002a34: 4413 add r3, r2
  6211. 8002a36: f813 3c24 ldrb.w r3, [r3, #-36]
  6212. 8002a3a: 627b str r3, [r7, #36] ; 0x24
  6213. if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2)
  6214. 8002a3c: 6afb ldr r3, [r7, #44] ; 0x2c
  6215. 8002a3e: f403 3380 and.w r3, r3, #65536 ; 0x10000
  6216. 8002a42: 2b00 cmp r3, #0
  6217. 8002a44: d012 beq.n 8002a6c <HAL_RCC_GetSysClockFreq+0x90>
  6218. {
  6219. #if defined(RCC_CFGR2_PREDIV1)
  6220. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos];
  6221. 8002a46: 4b14 ldr r3, [pc, #80] ; (8002a98 <HAL_RCC_GetSysClockFreq+0xbc>)
  6222. 8002a48: 6adb ldr r3, [r3, #44] ; 0x2c
  6223. 8002a4a: f003 030f and.w r3, r3, #15
  6224. 8002a4e: f107 0238 add.w r2, r7, #56 ; 0x38
  6225. 8002a52: 4413 add r3, r2
  6226. 8002a54: f813 3c34 ldrb.w r3, [r3, #-52]
  6227. 8002a58: 62bb str r3, [r7, #40] ; 0x28
  6228. {
  6229. pllclk = pllclk / 2;
  6230. }
  6231. #else
  6232. /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */
  6233. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  6234. 8002a5a: 6a7b ldr r3, [r7, #36] ; 0x24
  6235. 8002a5c: 4a0f ldr r2, [pc, #60] ; (8002a9c <HAL_RCC_GetSysClockFreq+0xc0>)
  6236. 8002a5e: fb02 f203 mul.w r2, r2, r3
  6237. 8002a62: 6abb ldr r3, [r7, #40] ; 0x28
  6238. 8002a64: fbb2 f3f3 udiv r3, r2, r3
  6239. 8002a68: 637b str r3, [r7, #52] ; 0x34
  6240. 8002a6a: e004 b.n 8002a76 <HAL_RCC_GetSysClockFreq+0x9a>
  6241. #endif /*RCC_CFGR2_PREDIV1SRC*/
  6242. }
  6243. else
  6244. {
  6245. /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */
  6246. pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul);
  6247. 8002a6c: 6a7b ldr r3, [r7, #36] ; 0x24
  6248. 8002a6e: 4a0c ldr r2, [pc, #48] ; (8002aa0 <HAL_RCC_GetSysClockFreq+0xc4>)
  6249. 8002a70: fb02 f303 mul.w r3, r2, r3
  6250. 8002a74: 637b str r3, [r7, #52] ; 0x34
  6251. }
  6252. sysclockfreq = pllclk;
  6253. 8002a76: 6b7b ldr r3, [r7, #52] ; 0x34
  6254. 8002a78: 633b str r3, [r7, #48] ; 0x30
  6255. break;
  6256. 8002a7a: e002 b.n 8002a82 <HAL_RCC_GetSysClockFreq+0xa6>
  6257. }
  6258. case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
  6259. default: /* HSI used as system clock */
  6260. {
  6261. sysclockfreq = HSI_VALUE;
  6262. 8002a7c: 4b07 ldr r3, [pc, #28] ; (8002a9c <HAL_RCC_GetSysClockFreq+0xc0>)
  6263. 8002a7e: 633b str r3, [r7, #48] ; 0x30
  6264. break;
  6265. 8002a80: bf00 nop
  6266. }
  6267. }
  6268. return sysclockfreq;
  6269. 8002a82: 6b3b ldr r3, [r7, #48] ; 0x30
  6270. }
  6271. 8002a84: 4618 mov r0, r3
  6272. 8002a86: 3738 adds r7, #56 ; 0x38
  6273. 8002a88: 46bd mov sp, r7
  6274. 8002a8a: bc90 pop {r4, r7}
  6275. 8002a8c: 4770 bx lr
  6276. 8002a8e: bf00 nop
  6277. 8002a90: 08007380 .word 0x08007380
  6278. 8002a94: 08007390 .word 0x08007390
  6279. 8002a98: 40021000 .word 0x40021000
  6280. 8002a9c: 007a1200 .word 0x007a1200
  6281. 8002aa0: 003d0900 .word 0x003d0900
  6282. 08002aa4 <HAL_RCC_GetHCLKFreq>:
  6283. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
  6284. * and updated within this function
  6285. * @retval HCLK frequency
  6286. */
  6287. uint32_t HAL_RCC_GetHCLKFreq(void)
  6288. {
  6289. 8002aa4: b480 push {r7}
  6290. 8002aa6: af00 add r7, sp, #0
  6291. return SystemCoreClock;
  6292. 8002aa8: 4b02 ldr r3, [pc, #8] ; (8002ab4 <HAL_RCC_GetHCLKFreq+0x10>)
  6293. 8002aaa: 681b ldr r3, [r3, #0]
  6294. }
  6295. 8002aac: 4618 mov r0, r3
  6296. 8002aae: 46bd mov sp, r7
  6297. 8002ab0: bc80 pop {r7}
  6298. 8002ab2: 4770 bx lr
  6299. 8002ab4: 20000008 .word 0x20000008
  6300. 08002ab8 <HAL_RCC_GetPCLK1Freq>:
  6301. * @note Each time PCLK1 changes, this function must be called to update the
  6302. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  6303. * @retval PCLK1 frequency
  6304. */
  6305. uint32_t HAL_RCC_GetPCLK1Freq(void)
  6306. {
  6307. 8002ab8: b580 push {r7, lr}
  6308. 8002aba: af00 add r7, sp, #0
  6309. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  6310. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  6311. 8002abc: f7ff fff2 bl 8002aa4 <HAL_RCC_GetHCLKFreq>
  6312. 8002ac0: 4601 mov r1, r0
  6313. 8002ac2: 4b05 ldr r3, [pc, #20] ; (8002ad8 <HAL_RCC_GetPCLK1Freq+0x20>)
  6314. 8002ac4: 685b ldr r3, [r3, #4]
  6315. 8002ac6: 0a1b lsrs r3, r3, #8
  6316. 8002ac8: f003 0307 and.w r3, r3, #7
  6317. 8002acc: 4a03 ldr r2, [pc, #12] ; (8002adc <HAL_RCC_GetPCLK1Freq+0x24>)
  6318. 8002ace: 5cd3 ldrb r3, [r2, r3]
  6319. 8002ad0: fa21 f303 lsr.w r3, r1, r3
  6320. }
  6321. 8002ad4: 4618 mov r0, r3
  6322. 8002ad6: bd80 pop {r7, pc}
  6323. 8002ad8: 40021000 .word 0x40021000
  6324. 8002adc: 0800743c .word 0x0800743c
  6325. 08002ae0 <HAL_RCC_GetPCLK2Freq>:
  6326. * @note Each time PCLK2 changes, this function must be called to update the
  6327. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  6328. * @retval PCLK2 frequency
  6329. */
  6330. uint32_t HAL_RCC_GetPCLK2Freq(void)
  6331. {
  6332. 8002ae0: b580 push {r7, lr}
  6333. 8002ae2: af00 add r7, sp, #0
  6334. /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
  6335. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  6336. 8002ae4: f7ff ffde bl 8002aa4 <HAL_RCC_GetHCLKFreq>
  6337. 8002ae8: 4601 mov r1, r0
  6338. 8002aea: 4b05 ldr r3, [pc, #20] ; (8002b00 <HAL_RCC_GetPCLK2Freq+0x20>)
  6339. 8002aec: 685b ldr r3, [r3, #4]
  6340. 8002aee: 0adb lsrs r3, r3, #11
  6341. 8002af0: f003 0307 and.w r3, r3, #7
  6342. 8002af4: 4a03 ldr r2, [pc, #12] ; (8002b04 <HAL_RCC_GetPCLK2Freq+0x24>)
  6343. 8002af6: 5cd3 ldrb r3, [r2, r3]
  6344. 8002af8: fa21 f303 lsr.w r3, r1, r3
  6345. }
  6346. 8002afc: 4618 mov r0, r3
  6347. 8002afe: bd80 pop {r7, pc}
  6348. 8002b00: 40021000 .word 0x40021000
  6349. 8002b04: 0800743c .word 0x0800743c
  6350. 08002b08 <HAL_RCC_GetClockConfig>:
  6351. * contains the current clock configuration.
  6352. * @param pFLatency Pointer on the Flash Latency.
  6353. * @retval None
  6354. */
  6355. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  6356. {
  6357. 8002b08: b480 push {r7}
  6358. 8002b0a: b083 sub sp, #12
  6359. 8002b0c: af00 add r7, sp, #0
  6360. 8002b0e: 6078 str r0, [r7, #4]
  6361. 8002b10: 6039 str r1, [r7, #0]
  6362. /* Check the parameters */
  6363. assert_param(RCC_ClkInitStruct != NULL);
  6364. assert_param(pFLatency != NULL);
  6365. /* Set all possible values for the Clock type parameter --------------------*/
  6366. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
  6367. 8002b12: 687b ldr r3, [r7, #4]
  6368. 8002b14: 220f movs r2, #15
  6369. 8002b16: 601a str r2, [r3, #0]
  6370. /* Get the SYSCLK configuration --------------------------------------------*/
  6371. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  6372. 8002b18: 4b10 ldr r3, [pc, #64] ; (8002b5c <HAL_RCC_GetClockConfig+0x54>)
  6373. 8002b1a: 685b ldr r3, [r3, #4]
  6374. 8002b1c: f003 0203 and.w r2, r3, #3
  6375. 8002b20: 687b ldr r3, [r7, #4]
  6376. 8002b22: 605a str r2, [r3, #4]
  6377. /* Get the HCLK configuration ----------------------------------------------*/
  6378. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
  6379. 8002b24: 4b0d ldr r3, [pc, #52] ; (8002b5c <HAL_RCC_GetClockConfig+0x54>)
  6380. 8002b26: 685b ldr r3, [r3, #4]
  6381. 8002b28: f003 02f0 and.w r2, r3, #240 ; 0xf0
  6382. 8002b2c: 687b ldr r3, [r7, #4]
  6383. 8002b2e: 609a str r2, [r3, #8]
  6384. /* Get the APB1 configuration ----------------------------------------------*/
  6385. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
  6386. 8002b30: 4b0a ldr r3, [pc, #40] ; (8002b5c <HAL_RCC_GetClockConfig+0x54>)
  6387. 8002b32: 685b ldr r3, [r3, #4]
  6388. 8002b34: f403 62e0 and.w r2, r3, #1792 ; 0x700
  6389. 8002b38: 687b ldr r3, [r7, #4]
  6390. 8002b3a: 60da str r2, [r3, #12]
  6391. /* Get the APB2 configuration ----------------------------------------------*/
  6392. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3);
  6393. 8002b3c: 4b07 ldr r3, [pc, #28] ; (8002b5c <HAL_RCC_GetClockConfig+0x54>)
  6394. 8002b3e: 685b ldr r3, [r3, #4]
  6395. 8002b40: 08db lsrs r3, r3, #3
  6396. 8002b42: f403 62e0 and.w r2, r3, #1792 ; 0x700
  6397. 8002b46: 687b ldr r3, [r7, #4]
  6398. 8002b48: 611a str r2, [r3, #16]
  6399. #if defined(FLASH_ACR_LATENCY)
  6400. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  6401. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  6402. #else
  6403. /* For VALUE lines devices, only LATENCY_0 can be set*/
  6404. *pFLatency = (uint32_t)FLASH_LATENCY_0;
  6405. 8002b4a: 683b ldr r3, [r7, #0]
  6406. 8002b4c: 2200 movs r2, #0
  6407. 8002b4e: 601a str r2, [r3, #0]
  6408. #endif
  6409. }
  6410. 8002b50: bf00 nop
  6411. 8002b52: 370c adds r7, #12
  6412. 8002b54: 46bd mov sp, r7
  6413. 8002b56: bc80 pop {r7}
  6414. 8002b58: 4770 bx lr
  6415. 8002b5a: bf00 nop
  6416. 8002b5c: 40021000 .word 0x40021000
  6417. 08002b60 <RCC_Delay>:
  6418. * @brief This function provides delay (in milliseconds) based on CPU cycles method.
  6419. * @param mdelay: specifies the delay time length, in milliseconds.
  6420. * @retval None
  6421. */
  6422. static void RCC_Delay(uint32_t mdelay)
  6423. {
  6424. 8002b60: b480 push {r7}
  6425. 8002b62: b085 sub sp, #20
  6426. 8002b64: af00 add r7, sp, #0
  6427. 8002b66: 6078 str r0, [r7, #4]
  6428. __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U);
  6429. 8002b68: 4b0a ldr r3, [pc, #40] ; (8002b94 <RCC_Delay+0x34>)
  6430. 8002b6a: 681b ldr r3, [r3, #0]
  6431. 8002b6c: 4a0a ldr r2, [pc, #40] ; (8002b98 <RCC_Delay+0x38>)
  6432. 8002b6e: fba2 2303 umull r2, r3, r2, r3
  6433. 8002b72: 0a5b lsrs r3, r3, #9
  6434. 8002b74: 687a ldr r2, [r7, #4]
  6435. 8002b76: fb02 f303 mul.w r3, r2, r3
  6436. 8002b7a: 60fb str r3, [r7, #12]
  6437. do
  6438. {
  6439. __NOP();
  6440. 8002b7c: bf00 nop
  6441. }
  6442. while (Delay --);
  6443. 8002b7e: 68fb ldr r3, [r7, #12]
  6444. 8002b80: 1e5a subs r2, r3, #1
  6445. 8002b82: 60fa str r2, [r7, #12]
  6446. 8002b84: 2b00 cmp r3, #0
  6447. 8002b86: d1f9 bne.n 8002b7c <RCC_Delay+0x1c>
  6448. }
  6449. 8002b88: bf00 nop
  6450. 8002b8a: 3714 adds r7, #20
  6451. 8002b8c: 46bd mov sp, r7
  6452. 8002b8e: bc80 pop {r7}
  6453. 8002b90: 4770 bx lr
  6454. 8002b92: bf00 nop
  6455. 8002b94: 20000008 .word 0x20000008
  6456. 8002b98: 10624dd3 .word 0x10624dd3
  6457. 08002b9c <HAL_RCCEx_PeriphCLKConfig>:
  6458. * manually disable it.
  6459. *
  6460. * @retval HAL status
  6461. */
  6462. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  6463. {
  6464. 8002b9c: b580 push {r7, lr}
  6465. 8002b9e: b086 sub sp, #24
  6466. 8002ba0: af00 add r7, sp, #0
  6467. 8002ba2: 6078 str r0, [r7, #4]
  6468. uint32_t tickstart = 0U, temp_reg = 0U;
  6469. 8002ba4: 2300 movs r3, #0
  6470. 8002ba6: 613b str r3, [r7, #16]
  6471. 8002ba8: 2300 movs r3, #0
  6472. 8002baa: 60fb str r3, [r7, #12]
  6473. /* Check the parameters */
  6474. assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection));
  6475. /*------------------------------- RTC/LCD Configuration ------------------------*/
  6476. if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC))
  6477. 8002bac: 687b ldr r3, [r7, #4]
  6478. 8002bae: 681b ldr r3, [r3, #0]
  6479. 8002bb0: f003 0301 and.w r3, r3, #1
  6480. 8002bb4: 2b00 cmp r3, #0
  6481. 8002bb6: d07d beq.n 8002cb4 <HAL_RCCEx_PeriphCLKConfig+0x118>
  6482. {
  6483. /* check for RTC Parameters used to output RTCCLK */
  6484. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  6485. FlagStatus pwrclkchanged = RESET;
  6486. 8002bb8: 2300 movs r3, #0
  6487. 8002bba: 75fb strb r3, [r7, #23]
  6488. /* As soon as function is called to change RTC clock source, activation of the
  6489. power domain is done. */
  6490. /* Requires to enable write access to Backup Domain of necessary */
  6491. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  6492. 8002bbc: 4b47 ldr r3, [pc, #284] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6493. 8002bbe: 69db ldr r3, [r3, #28]
  6494. 8002bc0: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  6495. 8002bc4: 2b00 cmp r3, #0
  6496. 8002bc6: d10d bne.n 8002be4 <HAL_RCCEx_PeriphCLKConfig+0x48>
  6497. {
  6498. __HAL_RCC_PWR_CLK_ENABLE();
  6499. 8002bc8: 4b44 ldr r3, [pc, #272] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6500. 8002bca: 69db ldr r3, [r3, #28]
  6501. 8002bcc: 4a43 ldr r2, [pc, #268] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6502. 8002bce: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  6503. 8002bd2: 61d3 str r3, [r2, #28]
  6504. 8002bd4: 4b41 ldr r3, [pc, #260] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6505. 8002bd6: 69db ldr r3, [r3, #28]
  6506. 8002bd8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  6507. 8002bdc: 60bb str r3, [r7, #8]
  6508. 8002bde: 68bb ldr r3, [r7, #8]
  6509. pwrclkchanged = SET;
  6510. 8002be0: 2301 movs r3, #1
  6511. 8002be2: 75fb strb r3, [r7, #23]
  6512. }
  6513. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  6514. 8002be4: 4b3e ldr r3, [pc, #248] ; (8002ce0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  6515. 8002be6: 681b ldr r3, [r3, #0]
  6516. 8002be8: f403 7380 and.w r3, r3, #256 ; 0x100
  6517. 8002bec: 2b00 cmp r3, #0
  6518. 8002bee: d118 bne.n 8002c22 <HAL_RCCEx_PeriphCLKConfig+0x86>
  6519. {
  6520. /* Enable write access to Backup domain */
  6521. SET_BIT(PWR->CR, PWR_CR_DBP);
  6522. 8002bf0: 4b3b ldr r3, [pc, #236] ; (8002ce0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  6523. 8002bf2: 681b ldr r3, [r3, #0]
  6524. 8002bf4: 4a3a ldr r2, [pc, #232] ; (8002ce0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  6525. 8002bf6: f443 7380 orr.w r3, r3, #256 ; 0x100
  6526. 8002bfa: 6013 str r3, [r2, #0]
  6527. /* Wait for Backup domain Write protection disable */
  6528. tickstart = HAL_GetTick();
  6529. 8002bfc: f7fe f9fe bl 8000ffc <HAL_GetTick>
  6530. 8002c00: 6138 str r0, [r7, #16]
  6531. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  6532. 8002c02: e008 b.n 8002c16 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  6533. {
  6534. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  6535. 8002c04: f7fe f9fa bl 8000ffc <HAL_GetTick>
  6536. 8002c08: 4602 mov r2, r0
  6537. 8002c0a: 693b ldr r3, [r7, #16]
  6538. 8002c0c: 1ad3 subs r3, r2, r3
  6539. 8002c0e: 2b64 cmp r3, #100 ; 0x64
  6540. 8002c10: d901 bls.n 8002c16 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  6541. {
  6542. return HAL_TIMEOUT;
  6543. 8002c12: 2303 movs r3, #3
  6544. 8002c14: e05e b.n 8002cd4 <HAL_RCCEx_PeriphCLKConfig+0x138>
  6545. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  6546. 8002c16: 4b32 ldr r3, [pc, #200] ; (8002ce0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  6547. 8002c18: 681b ldr r3, [r3, #0]
  6548. 8002c1a: f403 7380 and.w r3, r3, #256 ; 0x100
  6549. 8002c1e: 2b00 cmp r3, #0
  6550. 8002c20: d0f0 beq.n 8002c04 <HAL_RCCEx_PeriphCLKConfig+0x68>
  6551. }
  6552. }
  6553. }
  6554. /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */
  6555. temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL);
  6556. 8002c22: 4b2e ldr r3, [pc, #184] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6557. 8002c24: 6a1b ldr r3, [r3, #32]
  6558. 8002c26: f403 7340 and.w r3, r3, #768 ; 0x300
  6559. 8002c2a: 60fb str r3, [r7, #12]
  6560. if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
  6561. 8002c2c: 68fb ldr r3, [r7, #12]
  6562. 8002c2e: 2b00 cmp r3, #0
  6563. 8002c30: d02e beq.n 8002c90 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  6564. 8002c32: 687b ldr r3, [r7, #4]
  6565. 8002c34: 685b ldr r3, [r3, #4]
  6566. 8002c36: f403 7340 and.w r3, r3, #768 ; 0x300
  6567. 8002c3a: 68fa ldr r2, [r7, #12]
  6568. 8002c3c: 429a cmp r2, r3
  6569. 8002c3e: d027 beq.n 8002c90 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  6570. {
  6571. /* Store the content of BDCR register before the reset of Backup Domain */
  6572. temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  6573. 8002c40: 4b26 ldr r3, [pc, #152] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6574. 8002c42: 6a1b ldr r3, [r3, #32]
  6575. 8002c44: f423 7340 bic.w r3, r3, #768 ; 0x300
  6576. 8002c48: 60fb str r3, [r7, #12]
  6577. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  6578. __HAL_RCC_BACKUPRESET_FORCE();
  6579. 8002c4a: 4b26 ldr r3, [pc, #152] ; (8002ce4 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  6580. 8002c4c: 2201 movs r2, #1
  6581. 8002c4e: 601a str r2, [r3, #0]
  6582. __HAL_RCC_BACKUPRESET_RELEASE();
  6583. 8002c50: 4b24 ldr r3, [pc, #144] ; (8002ce4 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  6584. 8002c52: 2200 movs r2, #0
  6585. 8002c54: 601a str r2, [r3, #0]
  6586. /* Restore the Content of BDCR register */
  6587. RCC->BDCR = temp_reg;
  6588. 8002c56: 4a21 ldr r2, [pc, #132] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6589. 8002c58: 68fb ldr r3, [r7, #12]
  6590. 8002c5a: 6213 str r3, [r2, #32]
  6591. /* Wait for LSERDY if LSE was enabled */
  6592. if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON))
  6593. 8002c5c: 68fb ldr r3, [r7, #12]
  6594. 8002c5e: f003 0301 and.w r3, r3, #1
  6595. 8002c62: 2b00 cmp r3, #0
  6596. 8002c64: d014 beq.n 8002c90 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  6597. {
  6598. /* Get Start Tick */
  6599. tickstart = HAL_GetTick();
  6600. 8002c66: f7fe f9c9 bl 8000ffc <HAL_GetTick>
  6601. 8002c6a: 6138 str r0, [r7, #16]
  6602. /* Wait till LSE is ready */
  6603. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  6604. 8002c6c: e00a b.n 8002c84 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  6605. {
  6606. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  6607. 8002c6e: f7fe f9c5 bl 8000ffc <HAL_GetTick>
  6608. 8002c72: 4602 mov r2, r0
  6609. 8002c74: 693b ldr r3, [r7, #16]
  6610. 8002c76: 1ad3 subs r3, r2, r3
  6611. 8002c78: f241 3288 movw r2, #5000 ; 0x1388
  6612. 8002c7c: 4293 cmp r3, r2
  6613. 8002c7e: d901 bls.n 8002c84 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  6614. {
  6615. return HAL_TIMEOUT;
  6616. 8002c80: 2303 movs r3, #3
  6617. 8002c82: e027 b.n 8002cd4 <HAL_RCCEx_PeriphCLKConfig+0x138>
  6618. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  6619. 8002c84: 4b15 ldr r3, [pc, #84] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6620. 8002c86: 6a1b ldr r3, [r3, #32]
  6621. 8002c88: f003 0302 and.w r3, r3, #2
  6622. 8002c8c: 2b00 cmp r3, #0
  6623. 8002c8e: d0ee beq.n 8002c6e <HAL_RCCEx_PeriphCLKConfig+0xd2>
  6624. }
  6625. }
  6626. }
  6627. }
  6628. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  6629. 8002c90: 4b12 ldr r3, [pc, #72] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6630. 8002c92: 6a1b ldr r3, [r3, #32]
  6631. 8002c94: f423 7240 bic.w r2, r3, #768 ; 0x300
  6632. 8002c98: 687b ldr r3, [r7, #4]
  6633. 8002c9a: 685b ldr r3, [r3, #4]
  6634. 8002c9c: 490f ldr r1, [pc, #60] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6635. 8002c9e: 4313 orrs r3, r2
  6636. 8002ca0: 620b str r3, [r1, #32]
  6637. /* Require to disable power clock if necessary */
  6638. if (pwrclkchanged == SET)
  6639. 8002ca2: 7dfb ldrb r3, [r7, #23]
  6640. 8002ca4: 2b01 cmp r3, #1
  6641. 8002ca6: d105 bne.n 8002cb4 <HAL_RCCEx_PeriphCLKConfig+0x118>
  6642. {
  6643. __HAL_RCC_PWR_CLK_DISABLE();
  6644. 8002ca8: 4b0c ldr r3, [pc, #48] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6645. 8002caa: 69db ldr r3, [r3, #28]
  6646. 8002cac: 4a0b ldr r2, [pc, #44] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6647. 8002cae: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  6648. 8002cb2: 61d3 str r3, [r2, #28]
  6649. }
  6650. }
  6651. /*------------------------------ ADC clock Configuration ------------------*/
  6652. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  6653. 8002cb4: 687b ldr r3, [r7, #4]
  6654. 8002cb6: 681b ldr r3, [r3, #0]
  6655. 8002cb8: f003 0302 and.w r3, r3, #2
  6656. 8002cbc: 2b00 cmp r3, #0
  6657. 8002cbe: d008 beq.n 8002cd2 <HAL_RCCEx_PeriphCLKConfig+0x136>
  6658. {
  6659. /* Check the parameters */
  6660. assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection));
  6661. /* Configure the ADC clock source */
  6662. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  6663. 8002cc0: 4b06 ldr r3, [pc, #24] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6664. 8002cc2: 685b ldr r3, [r3, #4]
  6665. 8002cc4: f423 4240 bic.w r2, r3, #49152 ; 0xc000
  6666. 8002cc8: 687b ldr r3, [r7, #4]
  6667. 8002cca: 689b ldr r3, [r3, #8]
  6668. 8002ccc: 4903 ldr r1, [pc, #12] ; (8002cdc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  6669. 8002cce: 4313 orrs r3, r2
  6670. 8002cd0: 604b str r3, [r1, #4]
  6671. /* Configure the USB clock source */
  6672. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  6673. }
  6674. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */
  6675. return HAL_OK;
  6676. 8002cd2: 2300 movs r3, #0
  6677. }
  6678. 8002cd4: 4618 mov r0, r3
  6679. 8002cd6: 3718 adds r7, #24
  6680. 8002cd8: 46bd mov sp, r7
  6681. 8002cda: bd80 pop {r7, pc}
  6682. 8002cdc: 40021000 .word 0x40021000
  6683. 8002ce0: 40007000 .word 0x40007000
  6684. 8002ce4: 42420440 .word 0x42420440
  6685. 08002ce8 <HAL_RCCEx_GetPeriphCLKFreq>:
  6686. * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock
  6687. @endif
  6688. * @retval Frequency in Hz (0: means that no available frequency for the peripheral)
  6689. */
  6690. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk)
  6691. {
  6692. 8002ce8: b580 push {r7, lr}
  6693. 8002cea: b084 sub sp, #16
  6694. 8002cec: af00 add r7, sp, #0
  6695. 8002cee: 6078 str r0, [r7, #4]
  6696. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  6697. const uint8_t aPredivFactorTable[2] = {1, 2};
  6698. uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U;
  6699. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG */
  6700. uint32_t temp_reg = 0U, frequency = 0U;
  6701. 8002cf0: 2300 movs r3, #0
  6702. 8002cf2: 60bb str r3, [r7, #8]
  6703. 8002cf4: 2300 movs r3, #0
  6704. 8002cf6: 60fb str r3, [r7, #12]
  6705. /* Check the parameters */
  6706. assert_param(IS_RCC_PERIPHCLOCK(PeriphClk));
  6707. switch (PeriphClk)
  6708. 8002cf8: 687b ldr r3, [r7, #4]
  6709. 8002cfa: 2b01 cmp r3, #1
  6710. 8002cfc: d002 beq.n 8002d04 <HAL_RCCEx_GetPeriphCLKFreq+0x1c>
  6711. 8002cfe: 2b02 cmp r3, #2
  6712. 8002d00: d033 beq.n 8002d6a <HAL_RCCEx_GetPeriphCLKFreq+0x82>
  6713. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  6714. break;
  6715. }
  6716. default:
  6717. {
  6718. break;
  6719. 8002d02: e041 b.n 8002d88 <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  6720. temp_reg = RCC->BDCR;
  6721. 8002d04: 4b23 ldr r3, [pc, #140] ; (8002d94 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  6722. 8002d06: 6a1b ldr r3, [r3, #32]
  6723. 8002d08: 60bb str r3, [r7, #8]
  6724. if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSERDY)))
  6725. 8002d0a: 68bb ldr r3, [r7, #8]
  6726. 8002d0c: f403 7340 and.w r3, r3, #768 ; 0x300
  6727. 8002d10: f5b3 7f80 cmp.w r3, #256 ; 0x100
  6728. 8002d14: d108 bne.n 8002d28 <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  6729. 8002d16: 68bb ldr r3, [r7, #8]
  6730. 8002d18: f003 0302 and.w r3, r3, #2
  6731. 8002d1c: 2b00 cmp r3, #0
  6732. 8002d1e: d003 beq.n 8002d28 <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  6733. frequency = LSE_VALUE;
  6734. 8002d20: f44f 4300 mov.w r3, #32768 ; 0x8000
  6735. 8002d24: 60fb str r3, [r7, #12]
  6736. 8002d26: e01f b.n 8002d68 <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  6737. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY)))
  6738. 8002d28: 68bb ldr r3, [r7, #8]
  6739. 8002d2a: f403 7340 and.w r3, r3, #768 ; 0x300
  6740. 8002d2e: f5b3 7f00 cmp.w r3, #512 ; 0x200
  6741. 8002d32: d109 bne.n 8002d48 <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  6742. 8002d34: 4b17 ldr r3, [pc, #92] ; (8002d94 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  6743. 8002d36: 6a5b ldr r3, [r3, #36] ; 0x24
  6744. 8002d38: f003 0302 and.w r3, r3, #2
  6745. 8002d3c: 2b00 cmp r3, #0
  6746. 8002d3e: d003 beq.n 8002d48 <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  6747. frequency = LSI_VALUE;
  6748. 8002d40: f649 4340 movw r3, #40000 ; 0x9c40
  6749. 8002d44: 60fb str r3, [r7, #12]
  6750. 8002d46: e00f b.n 8002d68 <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  6751. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)))
  6752. 8002d48: 68bb ldr r3, [r7, #8]
  6753. 8002d4a: f403 7340 and.w r3, r3, #768 ; 0x300
  6754. 8002d4e: f5b3 7f40 cmp.w r3, #768 ; 0x300
  6755. 8002d52: d118 bne.n 8002d86 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  6756. 8002d54: 4b0f ldr r3, [pc, #60] ; (8002d94 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  6757. 8002d56: 681b ldr r3, [r3, #0]
  6758. 8002d58: f403 3300 and.w r3, r3, #131072 ; 0x20000
  6759. 8002d5c: 2b00 cmp r3, #0
  6760. 8002d5e: d012 beq.n 8002d86 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  6761. frequency = HSE_VALUE / 128U;
  6762. 8002d60: f24f 4324 movw r3, #62500 ; 0xf424
  6763. 8002d64: 60fb str r3, [r7, #12]
  6764. break;
  6765. 8002d66: e00e b.n 8002d86 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  6766. 8002d68: e00d b.n 8002d86 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  6767. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  6768. 8002d6a: f7ff feb9 bl 8002ae0 <HAL_RCC_GetPCLK2Freq>
  6769. 8002d6e: 4602 mov r2, r0
  6770. 8002d70: 4b08 ldr r3, [pc, #32] ; (8002d94 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  6771. 8002d72: 685b ldr r3, [r3, #4]
  6772. 8002d74: 0b9b lsrs r3, r3, #14
  6773. 8002d76: f003 0303 and.w r3, r3, #3
  6774. 8002d7a: 3301 adds r3, #1
  6775. 8002d7c: 005b lsls r3, r3, #1
  6776. 8002d7e: fbb2 f3f3 udiv r3, r2, r3
  6777. 8002d82: 60fb str r3, [r7, #12]
  6778. break;
  6779. 8002d84: e000 b.n 8002d88 <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  6780. break;
  6781. 8002d86: bf00 nop
  6782. }
  6783. }
  6784. return (frequency);
  6785. 8002d88: 68fb ldr r3, [r7, #12]
  6786. }
  6787. 8002d8a: 4618 mov r0, r3
  6788. 8002d8c: 3710 adds r7, #16
  6789. 8002d8e: 46bd mov sp, r7
  6790. 8002d90: bd80 pop {r7, pc}
  6791. 8002d92: bf00 nop
  6792. 8002d94: 40021000 .word 0x40021000
  6793. 08002d98 <HAL_TIM_Base_Init>:
  6794. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  6795. * @param htim TIM Base handle
  6796. * @retval HAL status
  6797. */
  6798. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  6799. {
  6800. 8002d98: b580 push {r7, lr}
  6801. 8002d9a: b082 sub sp, #8
  6802. 8002d9c: af00 add r7, sp, #0
  6803. 8002d9e: 6078 str r0, [r7, #4]
  6804. /* Check the TIM handle allocation */
  6805. if (htim == NULL)
  6806. 8002da0: 687b ldr r3, [r7, #4]
  6807. 8002da2: 2b00 cmp r3, #0
  6808. 8002da4: d101 bne.n 8002daa <HAL_TIM_Base_Init+0x12>
  6809. {
  6810. return HAL_ERROR;
  6811. 8002da6: 2301 movs r3, #1
  6812. 8002da8: e01d b.n 8002de6 <HAL_TIM_Base_Init+0x4e>
  6813. assert_param(IS_TIM_INSTANCE(htim->Instance));
  6814. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  6815. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  6816. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  6817. if (htim->State == HAL_TIM_STATE_RESET)
  6818. 8002daa: 687b ldr r3, [r7, #4]
  6819. 8002dac: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  6820. 8002db0: b2db uxtb r3, r3
  6821. 8002db2: 2b00 cmp r3, #0
  6822. 8002db4: d106 bne.n 8002dc4 <HAL_TIM_Base_Init+0x2c>
  6823. {
  6824. /* Allocate lock resource and initialize it */
  6825. htim->Lock = HAL_UNLOCKED;
  6826. 8002db6: 687b ldr r3, [r7, #4]
  6827. 8002db8: 2200 movs r2, #0
  6828. 8002dba: f883 203c strb.w r2, [r3, #60] ; 0x3c
  6829. }
  6830. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  6831. htim->Base_MspInitCallback(htim);
  6832. #else
  6833. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  6834. HAL_TIM_Base_MspInit(htim);
  6835. 8002dbe: 6878 ldr r0, [r7, #4]
  6836. 8002dc0: f001 fb9a bl 80044f8 <HAL_TIM_Base_MspInit>
  6837. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  6838. }
  6839. /* Set the TIM state */
  6840. htim->State = HAL_TIM_STATE_BUSY;
  6841. 8002dc4: 687b ldr r3, [r7, #4]
  6842. 8002dc6: 2202 movs r2, #2
  6843. 8002dc8: f883 203d strb.w r2, [r3, #61] ; 0x3d
  6844. /* Set the Time Base configuration */
  6845. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  6846. 8002dcc: 687b ldr r3, [r7, #4]
  6847. 8002dce: 681a ldr r2, [r3, #0]
  6848. 8002dd0: 687b ldr r3, [r7, #4]
  6849. 8002dd2: 3304 adds r3, #4
  6850. 8002dd4: 4619 mov r1, r3
  6851. 8002dd6: 4610 mov r0, r2
  6852. 8002dd8: f000 f958 bl 800308c <TIM_Base_SetConfig>
  6853. /* Initialize the TIM state*/
  6854. htim->State = HAL_TIM_STATE_READY;
  6855. 8002ddc: 687b ldr r3, [r7, #4]
  6856. 8002dde: 2201 movs r2, #1
  6857. 8002de0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  6858. return HAL_OK;
  6859. 8002de4: 2300 movs r3, #0
  6860. }
  6861. 8002de6: 4618 mov r0, r3
  6862. 8002de8: 3708 adds r7, #8
  6863. 8002dea: 46bd mov sp, r7
  6864. 8002dec: bd80 pop {r7, pc}
  6865. 08002dee <HAL_TIM_Base_Start_IT>:
  6866. * @brief Starts the TIM Base generation in interrupt mode.
  6867. * @param htim TIM Base handle
  6868. * @retval HAL status
  6869. */
  6870. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  6871. {
  6872. 8002dee: b480 push {r7}
  6873. 8002df0: b085 sub sp, #20
  6874. 8002df2: af00 add r7, sp, #0
  6875. 8002df4: 6078 str r0, [r7, #4]
  6876. /* Check the parameters */
  6877. assert_param(IS_TIM_INSTANCE(htim->Instance));
  6878. /* Enable the TIM Update interrupt */
  6879. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  6880. 8002df6: 687b ldr r3, [r7, #4]
  6881. 8002df8: 681b ldr r3, [r3, #0]
  6882. 8002dfa: 68da ldr r2, [r3, #12]
  6883. 8002dfc: 687b ldr r3, [r7, #4]
  6884. 8002dfe: 681b ldr r3, [r3, #0]
  6885. 8002e00: f042 0201 orr.w r2, r2, #1
  6886. 8002e04: 60da str r2, [r3, #12]
  6887. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  6888. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  6889. 8002e06: 687b ldr r3, [r7, #4]
  6890. 8002e08: 681b ldr r3, [r3, #0]
  6891. 8002e0a: 689b ldr r3, [r3, #8]
  6892. 8002e0c: f003 0307 and.w r3, r3, #7
  6893. 8002e10: 60fb str r3, [r7, #12]
  6894. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  6895. 8002e12: 68fb ldr r3, [r7, #12]
  6896. 8002e14: 2b06 cmp r3, #6
  6897. 8002e16: d007 beq.n 8002e28 <HAL_TIM_Base_Start_IT+0x3a>
  6898. {
  6899. __HAL_TIM_ENABLE(htim);
  6900. 8002e18: 687b ldr r3, [r7, #4]
  6901. 8002e1a: 681b ldr r3, [r3, #0]
  6902. 8002e1c: 681a ldr r2, [r3, #0]
  6903. 8002e1e: 687b ldr r3, [r7, #4]
  6904. 8002e20: 681b ldr r3, [r3, #0]
  6905. 8002e22: f042 0201 orr.w r2, r2, #1
  6906. 8002e26: 601a str r2, [r3, #0]
  6907. }
  6908. /* Return function status */
  6909. return HAL_OK;
  6910. 8002e28: 2300 movs r3, #0
  6911. }
  6912. 8002e2a: 4618 mov r0, r3
  6913. 8002e2c: 3714 adds r7, #20
  6914. 8002e2e: 46bd mov sp, r7
  6915. 8002e30: bc80 pop {r7}
  6916. 8002e32: 4770 bx lr
  6917. 08002e34 <HAL_TIM_IRQHandler>:
  6918. * @brief This function handles TIM interrupts requests.
  6919. * @param htim TIM handle
  6920. * @retval None
  6921. */
  6922. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  6923. {
  6924. 8002e34: b580 push {r7, lr}
  6925. 8002e36: b082 sub sp, #8
  6926. 8002e38: af00 add r7, sp, #0
  6927. 8002e3a: 6078 str r0, [r7, #4]
  6928. /* Capture compare 1 event */
  6929. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  6930. 8002e3c: 687b ldr r3, [r7, #4]
  6931. 8002e3e: 681b ldr r3, [r3, #0]
  6932. 8002e40: 691b ldr r3, [r3, #16]
  6933. 8002e42: f003 0302 and.w r3, r3, #2
  6934. 8002e46: 2b02 cmp r3, #2
  6935. 8002e48: d122 bne.n 8002e90 <HAL_TIM_IRQHandler+0x5c>
  6936. {
  6937. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
  6938. 8002e4a: 687b ldr r3, [r7, #4]
  6939. 8002e4c: 681b ldr r3, [r3, #0]
  6940. 8002e4e: 68db ldr r3, [r3, #12]
  6941. 8002e50: f003 0302 and.w r3, r3, #2
  6942. 8002e54: 2b02 cmp r3, #2
  6943. 8002e56: d11b bne.n 8002e90 <HAL_TIM_IRQHandler+0x5c>
  6944. {
  6945. {
  6946. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  6947. 8002e58: 687b ldr r3, [r7, #4]
  6948. 8002e5a: 681b ldr r3, [r3, #0]
  6949. 8002e5c: f06f 0202 mvn.w r2, #2
  6950. 8002e60: 611a str r2, [r3, #16]
  6951. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  6952. 8002e62: 687b ldr r3, [r7, #4]
  6953. 8002e64: 2201 movs r2, #1
  6954. 8002e66: 771a strb r2, [r3, #28]
  6955. /* Input capture event */
  6956. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  6957. 8002e68: 687b ldr r3, [r7, #4]
  6958. 8002e6a: 681b ldr r3, [r3, #0]
  6959. 8002e6c: 699b ldr r3, [r3, #24]
  6960. 8002e6e: f003 0303 and.w r3, r3, #3
  6961. 8002e72: 2b00 cmp r3, #0
  6962. 8002e74: d003 beq.n 8002e7e <HAL_TIM_IRQHandler+0x4a>
  6963. {
  6964. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  6965. htim->IC_CaptureCallback(htim);
  6966. #else
  6967. HAL_TIM_IC_CaptureCallback(htim);
  6968. 8002e76: 6878 ldr r0, [r7, #4]
  6969. 8002e78: f000 f8ed bl 8003056 <HAL_TIM_IC_CaptureCallback>
  6970. 8002e7c: e005 b.n 8002e8a <HAL_TIM_IRQHandler+0x56>
  6971. {
  6972. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  6973. htim->OC_DelayElapsedCallback(htim);
  6974. htim->PWM_PulseFinishedCallback(htim);
  6975. #else
  6976. HAL_TIM_OC_DelayElapsedCallback(htim);
  6977. 8002e7e: 6878 ldr r0, [r7, #4]
  6978. 8002e80: f000 f8e0 bl 8003044 <HAL_TIM_OC_DelayElapsedCallback>
  6979. HAL_TIM_PWM_PulseFinishedCallback(htim);
  6980. 8002e84: 6878 ldr r0, [r7, #4]
  6981. 8002e86: f000 f8ef bl 8003068 <HAL_TIM_PWM_PulseFinishedCallback>
  6982. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  6983. }
  6984. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  6985. 8002e8a: 687b ldr r3, [r7, #4]
  6986. 8002e8c: 2200 movs r2, #0
  6987. 8002e8e: 771a strb r2, [r3, #28]
  6988. }
  6989. }
  6990. }
  6991. /* Capture compare 2 event */
  6992. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  6993. 8002e90: 687b ldr r3, [r7, #4]
  6994. 8002e92: 681b ldr r3, [r3, #0]
  6995. 8002e94: 691b ldr r3, [r3, #16]
  6996. 8002e96: f003 0304 and.w r3, r3, #4
  6997. 8002e9a: 2b04 cmp r3, #4
  6998. 8002e9c: d122 bne.n 8002ee4 <HAL_TIM_IRQHandler+0xb0>
  6999. {
  7000. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
  7001. 8002e9e: 687b ldr r3, [r7, #4]
  7002. 8002ea0: 681b ldr r3, [r3, #0]
  7003. 8002ea2: 68db ldr r3, [r3, #12]
  7004. 8002ea4: f003 0304 and.w r3, r3, #4
  7005. 8002ea8: 2b04 cmp r3, #4
  7006. 8002eaa: d11b bne.n 8002ee4 <HAL_TIM_IRQHandler+0xb0>
  7007. {
  7008. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  7009. 8002eac: 687b ldr r3, [r7, #4]
  7010. 8002eae: 681b ldr r3, [r3, #0]
  7011. 8002eb0: f06f 0204 mvn.w r2, #4
  7012. 8002eb4: 611a str r2, [r3, #16]
  7013. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  7014. 8002eb6: 687b ldr r3, [r7, #4]
  7015. 8002eb8: 2202 movs r2, #2
  7016. 8002eba: 771a strb r2, [r3, #28]
  7017. /* Input capture event */
  7018. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  7019. 8002ebc: 687b ldr r3, [r7, #4]
  7020. 8002ebe: 681b ldr r3, [r3, #0]
  7021. 8002ec0: 699b ldr r3, [r3, #24]
  7022. 8002ec2: f403 7340 and.w r3, r3, #768 ; 0x300
  7023. 8002ec6: 2b00 cmp r3, #0
  7024. 8002ec8: d003 beq.n 8002ed2 <HAL_TIM_IRQHandler+0x9e>
  7025. {
  7026. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7027. htim->IC_CaptureCallback(htim);
  7028. #else
  7029. HAL_TIM_IC_CaptureCallback(htim);
  7030. 8002eca: 6878 ldr r0, [r7, #4]
  7031. 8002ecc: f000 f8c3 bl 8003056 <HAL_TIM_IC_CaptureCallback>
  7032. 8002ed0: e005 b.n 8002ede <HAL_TIM_IRQHandler+0xaa>
  7033. {
  7034. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7035. htim->OC_DelayElapsedCallback(htim);
  7036. htim->PWM_PulseFinishedCallback(htim);
  7037. #else
  7038. HAL_TIM_OC_DelayElapsedCallback(htim);
  7039. 8002ed2: 6878 ldr r0, [r7, #4]
  7040. 8002ed4: f000 f8b6 bl 8003044 <HAL_TIM_OC_DelayElapsedCallback>
  7041. HAL_TIM_PWM_PulseFinishedCallback(htim);
  7042. 8002ed8: 6878 ldr r0, [r7, #4]
  7043. 8002eda: f000 f8c5 bl 8003068 <HAL_TIM_PWM_PulseFinishedCallback>
  7044. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7045. }
  7046. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  7047. 8002ede: 687b ldr r3, [r7, #4]
  7048. 8002ee0: 2200 movs r2, #0
  7049. 8002ee2: 771a strb r2, [r3, #28]
  7050. }
  7051. }
  7052. /* Capture compare 3 event */
  7053. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  7054. 8002ee4: 687b ldr r3, [r7, #4]
  7055. 8002ee6: 681b ldr r3, [r3, #0]
  7056. 8002ee8: 691b ldr r3, [r3, #16]
  7057. 8002eea: f003 0308 and.w r3, r3, #8
  7058. 8002eee: 2b08 cmp r3, #8
  7059. 8002ef0: d122 bne.n 8002f38 <HAL_TIM_IRQHandler+0x104>
  7060. {
  7061. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
  7062. 8002ef2: 687b ldr r3, [r7, #4]
  7063. 8002ef4: 681b ldr r3, [r3, #0]
  7064. 8002ef6: 68db ldr r3, [r3, #12]
  7065. 8002ef8: f003 0308 and.w r3, r3, #8
  7066. 8002efc: 2b08 cmp r3, #8
  7067. 8002efe: d11b bne.n 8002f38 <HAL_TIM_IRQHandler+0x104>
  7068. {
  7069. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  7070. 8002f00: 687b ldr r3, [r7, #4]
  7071. 8002f02: 681b ldr r3, [r3, #0]
  7072. 8002f04: f06f 0208 mvn.w r2, #8
  7073. 8002f08: 611a str r2, [r3, #16]
  7074. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  7075. 8002f0a: 687b ldr r3, [r7, #4]
  7076. 8002f0c: 2204 movs r2, #4
  7077. 8002f0e: 771a strb r2, [r3, #28]
  7078. /* Input capture event */
  7079. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  7080. 8002f10: 687b ldr r3, [r7, #4]
  7081. 8002f12: 681b ldr r3, [r3, #0]
  7082. 8002f14: 69db ldr r3, [r3, #28]
  7083. 8002f16: f003 0303 and.w r3, r3, #3
  7084. 8002f1a: 2b00 cmp r3, #0
  7085. 8002f1c: d003 beq.n 8002f26 <HAL_TIM_IRQHandler+0xf2>
  7086. {
  7087. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7088. htim->IC_CaptureCallback(htim);
  7089. #else
  7090. HAL_TIM_IC_CaptureCallback(htim);
  7091. 8002f1e: 6878 ldr r0, [r7, #4]
  7092. 8002f20: f000 f899 bl 8003056 <HAL_TIM_IC_CaptureCallback>
  7093. 8002f24: e005 b.n 8002f32 <HAL_TIM_IRQHandler+0xfe>
  7094. {
  7095. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7096. htim->OC_DelayElapsedCallback(htim);
  7097. htim->PWM_PulseFinishedCallback(htim);
  7098. #else
  7099. HAL_TIM_OC_DelayElapsedCallback(htim);
  7100. 8002f26: 6878 ldr r0, [r7, #4]
  7101. 8002f28: f000 f88c bl 8003044 <HAL_TIM_OC_DelayElapsedCallback>
  7102. HAL_TIM_PWM_PulseFinishedCallback(htim);
  7103. 8002f2c: 6878 ldr r0, [r7, #4]
  7104. 8002f2e: f000 f89b bl 8003068 <HAL_TIM_PWM_PulseFinishedCallback>
  7105. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7106. }
  7107. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  7108. 8002f32: 687b ldr r3, [r7, #4]
  7109. 8002f34: 2200 movs r2, #0
  7110. 8002f36: 771a strb r2, [r3, #28]
  7111. }
  7112. }
  7113. /* Capture compare 4 event */
  7114. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  7115. 8002f38: 687b ldr r3, [r7, #4]
  7116. 8002f3a: 681b ldr r3, [r3, #0]
  7117. 8002f3c: 691b ldr r3, [r3, #16]
  7118. 8002f3e: f003 0310 and.w r3, r3, #16
  7119. 8002f42: 2b10 cmp r3, #16
  7120. 8002f44: d122 bne.n 8002f8c <HAL_TIM_IRQHandler+0x158>
  7121. {
  7122. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
  7123. 8002f46: 687b ldr r3, [r7, #4]
  7124. 8002f48: 681b ldr r3, [r3, #0]
  7125. 8002f4a: 68db ldr r3, [r3, #12]
  7126. 8002f4c: f003 0310 and.w r3, r3, #16
  7127. 8002f50: 2b10 cmp r3, #16
  7128. 8002f52: d11b bne.n 8002f8c <HAL_TIM_IRQHandler+0x158>
  7129. {
  7130. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  7131. 8002f54: 687b ldr r3, [r7, #4]
  7132. 8002f56: 681b ldr r3, [r3, #0]
  7133. 8002f58: f06f 0210 mvn.w r2, #16
  7134. 8002f5c: 611a str r2, [r3, #16]
  7135. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  7136. 8002f5e: 687b ldr r3, [r7, #4]
  7137. 8002f60: 2208 movs r2, #8
  7138. 8002f62: 771a strb r2, [r3, #28]
  7139. /* Input capture event */
  7140. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  7141. 8002f64: 687b ldr r3, [r7, #4]
  7142. 8002f66: 681b ldr r3, [r3, #0]
  7143. 8002f68: 69db ldr r3, [r3, #28]
  7144. 8002f6a: f403 7340 and.w r3, r3, #768 ; 0x300
  7145. 8002f6e: 2b00 cmp r3, #0
  7146. 8002f70: d003 beq.n 8002f7a <HAL_TIM_IRQHandler+0x146>
  7147. {
  7148. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7149. htim->IC_CaptureCallback(htim);
  7150. #else
  7151. HAL_TIM_IC_CaptureCallback(htim);
  7152. 8002f72: 6878 ldr r0, [r7, #4]
  7153. 8002f74: f000 f86f bl 8003056 <HAL_TIM_IC_CaptureCallback>
  7154. 8002f78: e005 b.n 8002f86 <HAL_TIM_IRQHandler+0x152>
  7155. {
  7156. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7157. htim->OC_DelayElapsedCallback(htim);
  7158. htim->PWM_PulseFinishedCallback(htim);
  7159. #else
  7160. HAL_TIM_OC_DelayElapsedCallback(htim);
  7161. 8002f7a: 6878 ldr r0, [r7, #4]
  7162. 8002f7c: f000 f862 bl 8003044 <HAL_TIM_OC_DelayElapsedCallback>
  7163. HAL_TIM_PWM_PulseFinishedCallback(htim);
  7164. 8002f80: 6878 ldr r0, [r7, #4]
  7165. 8002f82: f000 f871 bl 8003068 <HAL_TIM_PWM_PulseFinishedCallback>
  7166. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7167. }
  7168. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  7169. 8002f86: 687b ldr r3, [r7, #4]
  7170. 8002f88: 2200 movs r2, #0
  7171. 8002f8a: 771a strb r2, [r3, #28]
  7172. }
  7173. }
  7174. /* TIM Update event */
  7175. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  7176. 8002f8c: 687b ldr r3, [r7, #4]
  7177. 8002f8e: 681b ldr r3, [r3, #0]
  7178. 8002f90: 691b ldr r3, [r3, #16]
  7179. 8002f92: f003 0301 and.w r3, r3, #1
  7180. 8002f96: 2b01 cmp r3, #1
  7181. 8002f98: d10e bne.n 8002fb8 <HAL_TIM_IRQHandler+0x184>
  7182. {
  7183. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
  7184. 8002f9a: 687b ldr r3, [r7, #4]
  7185. 8002f9c: 681b ldr r3, [r3, #0]
  7186. 8002f9e: 68db ldr r3, [r3, #12]
  7187. 8002fa0: f003 0301 and.w r3, r3, #1
  7188. 8002fa4: 2b01 cmp r3, #1
  7189. 8002fa6: d107 bne.n 8002fb8 <HAL_TIM_IRQHandler+0x184>
  7190. {
  7191. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  7192. 8002fa8: 687b ldr r3, [r7, #4]
  7193. 8002faa: 681b ldr r3, [r3, #0]
  7194. 8002fac: f06f 0201 mvn.w r2, #1
  7195. 8002fb0: 611a str r2, [r3, #16]
  7196. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7197. htim->PeriodElapsedCallback(htim);
  7198. #else
  7199. HAL_TIM_PeriodElapsedCallback(htim);
  7200. 8002fb2: 6878 ldr r0, [r7, #4]
  7201. 8002fb4: f001 f9dc bl 8004370 <HAL_TIM_PeriodElapsedCallback>
  7202. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7203. }
  7204. }
  7205. /* TIM Break input event */
  7206. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET)
  7207. 8002fb8: 687b ldr r3, [r7, #4]
  7208. 8002fba: 681b ldr r3, [r3, #0]
  7209. 8002fbc: 691b ldr r3, [r3, #16]
  7210. 8002fbe: f003 0380 and.w r3, r3, #128 ; 0x80
  7211. 8002fc2: 2b80 cmp r3, #128 ; 0x80
  7212. 8002fc4: d10e bne.n 8002fe4 <HAL_TIM_IRQHandler+0x1b0>
  7213. {
  7214. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET)
  7215. 8002fc6: 687b ldr r3, [r7, #4]
  7216. 8002fc8: 681b ldr r3, [r3, #0]
  7217. 8002fca: 68db ldr r3, [r3, #12]
  7218. 8002fcc: f003 0380 and.w r3, r3, #128 ; 0x80
  7219. 8002fd0: 2b80 cmp r3, #128 ; 0x80
  7220. 8002fd2: d107 bne.n 8002fe4 <HAL_TIM_IRQHandler+0x1b0>
  7221. {
  7222. __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
  7223. 8002fd4: 687b ldr r3, [r7, #4]
  7224. 8002fd6: 681b ldr r3, [r3, #0]
  7225. 8002fd8: f06f 0280 mvn.w r2, #128 ; 0x80
  7226. 8002fdc: 611a str r2, [r3, #16]
  7227. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7228. htim->BreakCallback(htim);
  7229. #else
  7230. HAL_TIMEx_BreakCallback(htim);
  7231. 8002fde: 6878 ldr r0, [r7, #4]
  7232. 8002fe0: f000 f921 bl 8003226 <HAL_TIMEx_BreakCallback>
  7233. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7234. }
  7235. }
  7236. /* TIM Trigger detection event */
  7237. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  7238. 8002fe4: 687b ldr r3, [r7, #4]
  7239. 8002fe6: 681b ldr r3, [r3, #0]
  7240. 8002fe8: 691b ldr r3, [r3, #16]
  7241. 8002fea: f003 0340 and.w r3, r3, #64 ; 0x40
  7242. 8002fee: 2b40 cmp r3, #64 ; 0x40
  7243. 8002ff0: d10e bne.n 8003010 <HAL_TIM_IRQHandler+0x1dc>
  7244. {
  7245. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
  7246. 8002ff2: 687b ldr r3, [r7, #4]
  7247. 8002ff4: 681b ldr r3, [r3, #0]
  7248. 8002ff6: 68db ldr r3, [r3, #12]
  7249. 8002ff8: f003 0340 and.w r3, r3, #64 ; 0x40
  7250. 8002ffc: 2b40 cmp r3, #64 ; 0x40
  7251. 8002ffe: d107 bne.n 8003010 <HAL_TIM_IRQHandler+0x1dc>
  7252. {
  7253. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  7254. 8003000: 687b ldr r3, [r7, #4]
  7255. 8003002: 681b ldr r3, [r3, #0]
  7256. 8003004: f06f 0240 mvn.w r2, #64 ; 0x40
  7257. 8003008: 611a str r2, [r3, #16]
  7258. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7259. htim->TriggerCallback(htim);
  7260. #else
  7261. HAL_TIM_TriggerCallback(htim);
  7262. 800300a: 6878 ldr r0, [r7, #4]
  7263. 800300c: f000 f835 bl 800307a <HAL_TIM_TriggerCallback>
  7264. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7265. }
  7266. }
  7267. /* TIM commutation event */
  7268. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET)
  7269. 8003010: 687b ldr r3, [r7, #4]
  7270. 8003012: 681b ldr r3, [r3, #0]
  7271. 8003014: 691b ldr r3, [r3, #16]
  7272. 8003016: f003 0320 and.w r3, r3, #32
  7273. 800301a: 2b20 cmp r3, #32
  7274. 800301c: d10e bne.n 800303c <HAL_TIM_IRQHandler+0x208>
  7275. {
  7276. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET)
  7277. 800301e: 687b ldr r3, [r7, #4]
  7278. 8003020: 681b ldr r3, [r3, #0]
  7279. 8003022: 68db ldr r3, [r3, #12]
  7280. 8003024: f003 0320 and.w r3, r3, #32
  7281. 8003028: 2b20 cmp r3, #32
  7282. 800302a: d107 bne.n 800303c <HAL_TIM_IRQHandler+0x208>
  7283. {
  7284. __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
  7285. 800302c: 687b ldr r3, [r7, #4]
  7286. 800302e: 681b ldr r3, [r3, #0]
  7287. 8003030: f06f 0220 mvn.w r2, #32
  7288. 8003034: 611a str r2, [r3, #16]
  7289. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7290. htim->CommutationCallback(htim);
  7291. #else
  7292. HAL_TIMEx_CommutCallback(htim);
  7293. 8003036: 6878 ldr r0, [r7, #4]
  7294. 8003038: f000 f8ec bl 8003214 <HAL_TIMEx_CommutCallback>
  7295. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7296. }
  7297. }
  7298. }
  7299. 800303c: bf00 nop
  7300. 800303e: 3708 adds r7, #8
  7301. 8003040: 46bd mov sp, r7
  7302. 8003042: bd80 pop {r7, pc}
  7303. 08003044 <HAL_TIM_OC_DelayElapsedCallback>:
  7304. * @brief Output Compare callback in non-blocking mode
  7305. * @param htim TIM OC handle
  7306. * @retval None
  7307. */
  7308. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  7309. {
  7310. 8003044: b480 push {r7}
  7311. 8003046: b083 sub sp, #12
  7312. 8003048: af00 add r7, sp, #0
  7313. 800304a: 6078 str r0, [r7, #4]
  7314. UNUSED(htim);
  7315. /* NOTE : This function should not be modified, when the callback is needed,
  7316. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  7317. */
  7318. }
  7319. 800304c: bf00 nop
  7320. 800304e: 370c adds r7, #12
  7321. 8003050: 46bd mov sp, r7
  7322. 8003052: bc80 pop {r7}
  7323. 8003054: 4770 bx lr
  7324. 08003056 <HAL_TIM_IC_CaptureCallback>:
  7325. * @brief Input Capture callback in non-blocking mode
  7326. * @param htim TIM IC handle
  7327. * @retval None
  7328. */
  7329. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  7330. {
  7331. 8003056: b480 push {r7}
  7332. 8003058: b083 sub sp, #12
  7333. 800305a: af00 add r7, sp, #0
  7334. 800305c: 6078 str r0, [r7, #4]
  7335. UNUSED(htim);
  7336. /* NOTE : This function should not be modified, when the callback is needed,
  7337. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  7338. */
  7339. }
  7340. 800305e: bf00 nop
  7341. 8003060: 370c adds r7, #12
  7342. 8003062: 46bd mov sp, r7
  7343. 8003064: bc80 pop {r7}
  7344. 8003066: 4770 bx lr
  7345. 08003068 <HAL_TIM_PWM_PulseFinishedCallback>:
  7346. * @brief PWM Pulse finished callback in non-blocking mode
  7347. * @param htim TIM handle
  7348. * @retval None
  7349. */
  7350. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  7351. {
  7352. 8003068: b480 push {r7}
  7353. 800306a: b083 sub sp, #12
  7354. 800306c: af00 add r7, sp, #0
  7355. 800306e: 6078 str r0, [r7, #4]
  7356. UNUSED(htim);
  7357. /* NOTE : This function should not be modified, when the callback is needed,
  7358. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  7359. */
  7360. }
  7361. 8003070: bf00 nop
  7362. 8003072: 370c adds r7, #12
  7363. 8003074: 46bd mov sp, r7
  7364. 8003076: bc80 pop {r7}
  7365. 8003078: 4770 bx lr
  7366. 0800307a <HAL_TIM_TriggerCallback>:
  7367. * @brief Hall Trigger detection callback in non-blocking mode
  7368. * @param htim TIM handle
  7369. * @retval None
  7370. */
  7371. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  7372. {
  7373. 800307a: b480 push {r7}
  7374. 800307c: b083 sub sp, #12
  7375. 800307e: af00 add r7, sp, #0
  7376. 8003080: 6078 str r0, [r7, #4]
  7377. UNUSED(htim);
  7378. /* NOTE : This function should not be modified, when the callback is needed,
  7379. the HAL_TIM_TriggerCallback could be implemented in the user file
  7380. */
  7381. }
  7382. 8003082: bf00 nop
  7383. 8003084: 370c adds r7, #12
  7384. 8003086: 46bd mov sp, r7
  7385. 8003088: bc80 pop {r7}
  7386. 800308a: 4770 bx lr
  7387. 0800308c <TIM_Base_SetConfig>:
  7388. * @param TIMx TIM peripheral
  7389. * @param Structure TIM Base configuration structure
  7390. * @retval None
  7391. */
  7392. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
  7393. {
  7394. 800308c: b480 push {r7}
  7395. 800308e: b085 sub sp, #20
  7396. 8003090: af00 add r7, sp, #0
  7397. 8003092: 6078 str r0, [r7, #4]
  7398. 8003094: 6039 str r1, [r7, #0]
  7399. uint32_t tmpcr1;
  7400. tmpcr1 = TIMx->CR1;
  7401. 8003096: 687b ldr r3, [r7, #4]
  7402. 8003098: 681b ldr r3, [r3, #0]
  7403. 800309a: 60fb str r3, [r7, #12]
  7404. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  7405. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  7406. 800309c: 687b ldr r3, [r7, #4]
  7407. 800309e: 4a35 ldr r2, [pc, #212] ; (8003174 <TIM_Base_SetConfig+0xe8>)
  7408. 80030a0: 4293 cmp r3, r2
  7409. 80030a2: d00b beq.n 80030bc <TIM_Base_SetConfig+0x30>
  7410. 80030a4: 687b ldr r3, [r7, #4]
  7411. 80030a6: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  7412. 80030aa: d007 beq.n 80030bc <TIM_Base_SetConfig+0x30>
  7413. 80030ac: 687b ldr r3, [r7, #4]
  7414. 80030ae: 4a32 ldr r2, [pc, #200] ; (8003178 <TIM_Base_SetConfig+0xec>)
  7415. 80030b0: 4293 cmp r3, r2
  7416. 80030b2: d003 beq.n 80030bc <TIM_Base_SetConfig+0x30>
  7417. 80030b4: 687b ldr r3, [r7, #4]
  7418. 80030b6: 4a31 ldr r2, [pc, #196] ; (800317c <TIM_Base_SetConfig+0xf0>)
  7419. 80030b8: 4293 cmp r3, r2
  7420. 80030ba: d108 bne.n 80030ce <TIM_Base_SetConfig+0x42>
  7421. {
  7422. /* Select the Counter Mode */
  7423. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  7424. 80030bc: 68fb ldr r3, [r7, #12]
  7425. 80030be: f023 0370 bic.w r3, r3, #112 ; 0x70
  7426. 80030c2: 60fb str r3, [r7, #12]
  7427. tmpcr1 |= Structure->CounterMode;
  7428. 80030c4: 683b ldr r3, [r7, #0]
  7429. 80030c6: 685b ldr r3, [r3, #4]
  7430. 80030c8: 68fa ldr r2, [r7, #12]
  7431. 80030ca: 4313 orrs r3, r2
  7432. 80030cc: 60fb str r3, [r7, #12]
  7433. }
  7434. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  7435. 80030ce: 687b ldr r3, [r7, #4]
  7436. 80030d0: 4a28 ldr r2, [pc, #160] ; (8003174 <TIM_Base_SetConfig+0xe8>)
  7437. 80030d2: 4293 cmp r3, r2
  7438. 80030d4: d017 beq.n 8003106 <TIM_Base_SetConfig+0x7a>
  7439. 80030d6: 687b ldr r3, [r7, #4]
  7440. 80030d8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  7441. 80030dc: d013 beq.n 8003106 <TIM_Base_SetConfig+0x7a>
  7442. 80030de: 687b ldr r3, [r7, #4]
  7443. 80030e0: 4a25 ldr r2, [pc, #148] ; (8003178 <TIM_Base_SetConfig+0xec>)
  7444. 80030e2: 4293 cmp r3, r2
  7445. 80030e4: d00f beq.n 8003106 <TIM_Base_SetConfig+0x7a>
  7446. 80030e6: 687b ldr r3, [r7, #4]
  7447. 80030e8: 4a24 ldr r2, [pc, #144] ; (800317c <TIM_Base_SetConfig+0xf0>)
  7448. 80030ea: 4293 cmp r3, r2
  7449. 80030ec: d00b beq.n 8003106 <TIM_Base_SetConfig+0x7a>
  7450. 80030ee: 687b ldr r3, [r7, #4]
  7451. 80030f0: 4a23 ldr r2, [pc, #140] ; (8003180 <TIM_Base_SetConfig+0xf4>)
  7452. 80030f2: 4293 cmp r3, r2
  7453. 80030f4: d007 beq.n 8003106 <TIM_Base_SetConfig+0x7a>
  7454. 80030f6: 687b ldr r3, [r7, #4]
  7455. 80030f8: 4a22 ldr r2, [pc, #136] ; (8003184 <TIM_Base_SetConfig+0xf8>)
  7456. 80030fa: 4293 cmp r3, r2
  7457. 80030fc: d003 beq.n 8003106 <TIM_Base_SetConfig+0x7a>
  7458. 80030fe: 687b ldr r3, [r7, #4]
  7459. 8003100: 4a21 ldr r2, [pc, #132] ; (8003188 <TIM_Base_SetConfig+0xfc>)
  7460. 8003102: 4293 cmp r3, r2
  7461. 8003104: d108 bne.n 8003118 <TIM_Base_SetConfig+0x8c>
  7462. {
  7463. /* Set the clock division */
  7464. tmpcr1 &= ~TIM_CR1_CKD;
  7465. 8003106: 68fb ldr r3, [r7, #12]
  7466. 8003108: f423 7340 bic.w r3, r3, #768 ; 0x300
  7467. 800310c: 60fb str r3, [r7, #12]
  7468. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  7469. 800310e: 683b ldr r3, [r7, #0]
  7470. 8003110: 68db ldr r3, [r3, #12]
  7471. 8003112: 68fa ldr r2, [r7, #12]
  7472. 8003114: 4313 orrs r3, r2
  7473. 8003116: 60fb str r3, [r7, #12]
  7474. }
  7475. /* Set the auto-reload preload */
  7476. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  7477. 8003118: 68fb ldr r3, [r7, #12]
  7478. 800311a: f023 0280 bic.w r2, r3, #128 ; 0x80
  7479. 800311e: 683b ldr r3, [r7, #0]
  7480. 8003120: 695b ldr r3, [r3, #20]
  7481. 8003122: 4313 orrs r3, r2
  7482. 8003124: 60fb str r3, [r7, #12]
  7483. TIMx->CR1 = tmpcr1;
  7484. 8003126: 687b ldr r3, [r7, #4]
  7485. 8003128: 68fa ldr r2, [r7, #12]
  7486. 800312a: 601a str r2, [r3, #0]
  7487. /* Set the Autoreload value */
  7488. TIMx->ARR = (uint32_t)Structure->Period ;
  7489. 800312c: 683b ldr r3, [r7, #0]
  7490. 800312e: 689a ldr r2, [r3, #8]
  7491. 8003130: 687b ldr r3, [r7, #4]
  7492. 8003132: 62da str r2, [r3, #44] ; 0x2c
  7493. /* Set the Prescaler value */
  7494. TIMx->PSC = Structure->Prescaler;
  7495. 8003134: 683b ldr r3, [r7, #0]
  7496. 8003136: 681a ldr r2, [r3, #0]
  7497. 8003138: 687b ldr r3, [r7, #4]
  7498. 800313a: 629a str r2, [r3, #40] ; 0x28
  7499. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  7500. 800313c: 687b ldr r3, [r7, #4]
  7501. 800313e: 4a0d ldr r2, [pc, #52] ; (8003174 <TIM_Base_SetConfig+0xe8>)
  7502. 8003140: 4293 cmp r3, r2
  7503. 8003142: d00b beq.n 800315c <TIM_Base_SetConfig+0xd0>
  7504. 8003144: 687b ldr r3, [r7, #4]
  7505. 8003146: 4a0e ldr r2, [pc, #56] ; (8003180 <TIM_Base_SetConfig+0xf4>)
  7506. 8003148: 4293 cmp r3, r2
  7507. 800314a: d007 beq.n 800315c <TIM_Base_SetConfig+0xd0>
  7508. 800314c: 687b ldr r3, [r7, #4]
  7509. 800314e: 4a0d ldr r2, [pc, #52] ; (8003184 <TIM_Base_SetConfig+0xf8>)
  7510. 8003150: 4293 cmp r3, r2
  7511. 8003152: d003 beq.n 800315c <TIM_Base_SetConfig+0xd0>
  7512. 8003154: 687b ldr r3, [r7, #4]
  7513. 8003156: 4a0c ldr r2, [pc, #48] ; (8003188 <TIM_Base_SetConfig+0xfc>)
  7514. 8003158: 4293 cmp r3, r2
  7515. 800315a: d103 bne.n 8003164 <TIM_Base_SetConfig+0xd8>
  7516. {
  7517. /* Set the Repetition Counter value */
  7518. TIMx->RCR = Structure->RepetitionCounter;
  7519. 800315c: 683b ldr r3, [r7, #0]
  7520. 800315e: 691a ldr r2, [r3, #16]
  7521. 8003160: 687b ldr r3, [r7, #4]
  7522. 8003162: 631a str r2, [r3, #48] ; 0x30
  7523. }
  7524. /* Generate an update event to reload the Prescaler
  7525. and the repetition counter (only for advanced timer) value immediately */
  7526. TIMx->EGR = TIM_EGR_UG;
  7527. 8003164: 687b ldr r3, [r7, #4]
  7528. 8003166: 2201 movs r2, #1
  7529. 8003168: 615a str r2, [r3, #20]
  7530. }
  7531. 800316a: bf00 nop
  7532. 800316c: 3714 adds r7, #20
  7533. 800316e: 46bd mov sp, r7
  7534. 8003170: bc80 pop {r7}
  7535. 8003172: 4770 bx lr
  7536. 8003174: 40012c00 .word 0x40012c00
  7537. 8003178: 40000400 .word 0x40000400
  7538. 800317c: 40000800 .word 0x40000800
  7539. 8003180: 40014000 .word 0x40014000
  7540. 8003184: 40014400 .word 0x40014400
  7541. 8003188: 40014800 .word 0x40014800
  7542. 0800318c <HAL_TIMEx_MasterConfigSynchronization>:
  7543. * mode.
  7544. * @retval HAL status
  7545. */
  7546. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  7547. TIM_MasterConfigTypeDef *sMasterConfig)
  7548. {
  7549. 800318c: b480 push {r7}
  7550. 800318e: b085 sub sp, #20
  7551. 8003190: af00 add r7, sp, #0
  7552. 8003192: 6078 str r0, [r7, #4]
  7553. 8003194: 6039 str r1, [r7, #0]
  7554. assert_param(IS_TIM_SYNCHRO_INSTANCE(htim->Instance));
  7555. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  7556. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  7557. /* Check input state */
  7558. __HAL_LOCK(htim);
  7559. 8003196: 687b ldr r3, [r7, #4]
  7560. 8003198: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  7561. 800319c: 2b01 cmp r3, #1
  7562. 800319e: d101 bne.n 80031a4 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  7563. 80031a0: 2302 movs r3, #2
  7564. 80031a2: e032 b.n 800320a <HAL_TIMEx_MasterConfigSynchronization+0x7e>
  7565. 80031a4: 687b ldr r3, [r7, #4]
  7566. 80031a6: 2201 movs r2, #1
  7567. 80031a8: f883 203c strb.w r2, [r3, #60] ; 0x3c
  7568. /* Change the handler state */
  7569. htim->State = HAL_TIM_STATE_BUSY;
  7570. 80031ac: 687b ldr r3, [r7, #4]
  7571. 80031ae: 2202 movs r2, #2
  7572. 80031b0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  7573. /* Get the TIMx CR2 register value */
  7574. tmpcr2 = htim->Instance->CR2;
  7575. 80031b4: 687b ldr r3, [r7, #4]
  7576. 80031b6: 681b ldr r3, [r3, #0]
  7577. 80031b8: 685b ldr r3, [r3, #4]
  7578. 80031ba: 60fb str r3, [r7, #12]
  7579. /* Get the TIMx SMCR register value */
  7580. tmpsmcr = htim->Instance->SMCR;
  7581. 80031bc: 687b ldr r3, [r7, #4]
  7582. 80031be: 681b ldr r3, [r3, #0]
  7583. 80031c0: 689b ldr r3, [r3, #8]
  7584. 80031c2: 60bb str r3, [r7, #8]
  7585. /* Reset the MMS Bits */
  7586. tmpcr2 &= ~TIM_CR2_MMS;
  7587. 80031c4: 68fb ldr r3, [r7, #12]
  7588. 80031c6: f023 0370 bic.w r3, r3, #112 ; 0x70
  7589. 80031ca: 60fb str r3, [r7, #12]
  7590. /* Select the TRGO source */
  7591. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  7592. 80031cc: 683b ldr r3, [r7, #0]
  7593. 80031ce: 681b ldr r3, [r3, #0]
  7594. 80031d0: 68fa ldr r2, [r7, #12]
  7595. 80031d2: 4313 orrs r3, r2
  7596. 80031d4: 60fb str r3, [r7, #12]
  7597. /* Reset the MSM Bit */
  7598. tmpsmcr &= ~TIM_SMCR_MSM;
  7599. 80031d6: 68bb ldr r3, [r7, #8]
  7600. 80031d8: f023 0380 bic.w r3, r3, #128 ; 0x80
  7601. 80031dc: 60bb str r3, [r7, #8]
  7602. /* Set master mode */
  7603. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  7604. 80031de: 683b ldr r3, [r7, #0]
  7605. 80031e0: 685b ldr r3, [r3, #4]
  7606. 80031e2: 68ba ldr r2, [r7, #8]
  7607. 80031e4: 4313 orrs r3, r2
  7608. 80031e6: 60bb str r3, [r7, #8]
  7609. /* Update TIMx CR2 */
  7610. htim->Instance->CR2 = tmpcr2;
  7611. 80031e8: 687b ldr r3, [r7, #4]
  7612. 80031ea: 681b ldr r3, [r3, #0]
  7613. 80031ec: 68fa ldr r2, [r7, #12]
  7614. 80031ee: 605a str r2, [r3, #4]
  7615. /* Update TIMx SMCR */
  7616. htim->Instance->SMCR = tmpsmcr;
  7617. 80031f0: 687b ldr r3, [r7, #4]
  7618. 80031f2: 681b ldr r3, [r3, #0]
  7619. 80031f4: 68ba ldr r2, [r7, #8]
  7620. 80031f6: 609a str r2, [r3, #8]
  7621. /* Change the htim state */
  7622. htim->State = HAL_TIM_STATE_READY;
  7623. 80031f8: 687b ldr r3, [r7, #4]
  7624. 80031fa: 2201 movs r2, #1
  7625. 80031fc: f883 203d strb.w r2, [r3, #61] ; 0x3d
  7626. __HAL_UNLOCK(htim);
  7627. 8003200: 687b ldr r3, [r7, #4]
  7628. 8003202: 2200 movs r2, #0
  7629. 8003204: f883 203c strb.w r2, [r3, #60] ; 0x3c
  7630. return HAL_OK;
  7631. 8003208: 2300 movs r3, #0
  7632. }
  7633. 800320a: 4618 mov r0, r3
  7634. 800320c: 3714 adds r7, #20
  7635. 800320e: 46bd mov sp, r7
  7636. 8003210: bc80 pop {r7}
  7637. 8003212: 4770 bx lr
  7638. 08003214 <HAL_TIMEx_CommutCallback>:
  7639. * @brief Hall commutation changed callback in non-blocking mode
  7640. * @param htim TIM handle
  7641. * @retval None
  7642. */
  7643. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  7644. {
  7645. 8003214: b480 push {r7}
  7646. 8003216: b083 sub sp, #12
  7647. 8003218: af00 add r7, sp, #0
  7648. 800321a: 6078 str r0, [r7, #4]
  7649. UNUSED(htim);
  7650. /* NOTE : This function should not be modified, when the callback is needed,
  7651. the HAL_TIMEx_CommutCallback could be implemented in the user file
  7652. */
  7653. }
  7654. 800321c: bf00 nop
  7655. 800321e: 370c adds r7, #12
  7656. 8003220: 46bd mov sp, r7
  7657. 8003222: bc80 pop {r7}
  7658. 8003224: 4770 bx lr
  7659. 08003226 <HAL_TIMEx_BreakCallback>:
  7660. * @brief Hall Break detection callback in non-blocking mode
  7661. * @param htim TIM handle
  7662. * @retval None
  7663. */
  7664. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  7665. {
  7666. 8003226: b480 push {r7}
  7667. 8003228: b083 sub sp, #12
  7668. 800322a: af00 add r7, sp, #0
  7669. 800322c: 6078 str r0, [r7, #4]
  7670. UNUSED(htim);
  7671. /* NOTE : This function should not be modified, when the callback is needed,
  7672. the HAL_TIMEx_BreakCallback could be implemented in the user file
  7673. */
  7674. }
  7675. 800322e: bf00 nop
  7676. 8003230: 370c adds r7, #12
  7677. 8003232: 46bd mov sp, r7
  7678. 8003234: bc80 pop {r7}
  7679. 8003236: 4770 bx lr
  7680. 08003238 <HAL_UART_Init>:
  7681. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  7682. * the configuration information for the specified UART module.
  7683. * @retval HAL status
  7684. */
  7685. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  7686. {
  7687. 8003238: b580 push {r7, lr}
  7688. 800323a: b082 sub sp, #8
  7689. 800323c: af00 add r7, sp, #0
  7690. 800323e: 6078 str r0, [r7, #4]
  7691. /* Check the UART handle allocation */
  7692. if (huart == NULL)
  7693. 8003240: 687b ldr r3, [r7, #4]
  7694. 8003242: 2b00 cmp r3, #0
  7695. 8003244: d101 bne.n 800324a <HAL_UART_Init+0x12>
  7696. {
  7697. return HAL_ERROR;
  7698. 8003246: 2301 movs r3, #1
  7699. 8003248: e03f b.n 80032ca <HAL_UART_Init+0x92>
  7700. assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
  7701. #if defined(USART_CR1_OVER8)
  7702. assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
  7703. #endif /* USART_CR1_OVER8 */
  7704. if (huart->gState == HAL_UART_STATE_RESET)
  7705. 800324a: 687b ldr r3, [r7, #4]
  7706. 800324c: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  7707. 8003250: b2db uxtb r3, r3
  7708. 8003252: 2b00 cmp r3, #0
  7709. 8003254: d106 bne.n 8003264 <HAL_UART_Init+0x2c>
  7710. {
  7711. /* Allocate lock resource and initialize it */
  7712. huart->Lock = HAL_UNLOCKED;
  7713. 8003256: 687b ldr r3, [r7, #4]
  7714. 8003258: 2200 movs r2, #0
  7715. 800325a: f883 2038 strb.w r2, [r3, #56] ; 0x38
  7716. /* Init the low level hardware */
  7717. huart->MspInitCallback(huart);
  7718. #else
  7719. /* Init the low level hardware : GPIO, CLOCK */
  7720. HAL_UART_MspInit(huart);
  7721. 800325e: 6878 ldr r0, [r7, #4]
  7722. 8003260: f001 f968 bl 8004534 <HAL_UART_MspInit>
  7723. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  7724. }
  7725. huart->gState = HAL_UART_STATE_BUSY;
  7726. 8003264: 687b ldr r3, [r7, #4]
  7727. 8003266: 2224 movs r2, #36 ; 0x24
  7728. 8003268: f883 2039 strb.w r2, [r3, #57] ; 0x39
  7729. /* Disable the peripheral */
  7730. __HAL_UART_DISABLE(huart);
  7731. 800326c: 687b ldr r3, [r7, #4]
  7732. 800326e: 681b ldr r3, [r3, #0]
  7733. 8003270: 68da ldr r2, [r3, #12]
  7734. 8003272: 687b ldr r3, [r7, #4]
  7735. 8003274: 681b ldr r3, [r3, #0]
  7736. 8003276: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  7737. 800327a: 60da str r2, [r3, #12]
  7738. /* Set the UART Communication parameters */
  7739. UART_SetConfig(huart);
  7740. 800327c: 6878 ldr r0, [r7, #4]
  7741. 800327e: f000 fc81 bl 8003b84 <UART_SetConfig>
  7742. /* In asynchronous mode, the following bits must be kept cleared:
  7743. - LINEN and CLKEN bits in the USART_CR2 register,
  7744. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  7745. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  7746. 8003282: 687b ldr r3, [r7, #4]
  7747. 8003284: 681b ldr r3, [r3, #0]
  7748. 8003286: 691a ldr r2, [r3, #16]
  7749. 8003288: 687b ldr r3, [r7, #4]
  7750. 800328a: 681b ldr r3, [r3, #0]
  7751. 800328c: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  7752. 8003290: 611a str r2, [r3, #16]
  7753. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  7754. 8003292: 687b ldr r3, [r7, #4]
  7755. 8003294: 681b ldr r3, [r3, #0]
  7756. 8003296: 695a ldr r2, [r3, #20]
  7757. 8003298: 687b ldr r3, [r7, #4]
  7758. 800329a: 681b ldr r3, [r3, #0]
  7759. 800329c: f022 022a bic.w r2, r2, #42 ; 0x2a
  7760. 80032a0: 615a str r2, [r3, #20]
  7761. /* Enable the peripheral */
  7762. __HAL_UART_ENABLE(huart);
  7763. 80032a2: 687b ldr r3, [r7, #4]
  7764. 80032a4: 681b ldr r3, [r3, #0]
  7765. 80032a6: 68da ldr r2, [r3, #12]
  7766. 80032a8: 687b ldr r3, [r7, #4]
  7767. 80032aa: 681b ldr r3, [r3, #0]
  7768. 80032ac: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  7769. 80032b0: 60da str r2, [r3, #12]
  7770. /* Initialize the UART state */
  7771. huart->ErrorCode = HAL_UART_ERROR_NONE;
  7772. 80032b2: 687b ldr r3, [r7, #4]
  7773. 80032b4: 2200 movs r2, #0
  7774. 80032b6: 63da str r2, [r3, #60] ; 0x3c
  7775. huart->gState = HAL_UART_STATE_READY;
  7776. 80032b8: 687b ldr r3, [r7, #4]
  7777. 80032ba: 2220 movs r2, #32
  7778. 80032bc: f883 2039 strb.w r2, [r3, #57] ; 0x39
  7779. huart->RxState = HAL_UART_STATE_READY;
  7780. 80032c0: 687b ldr r3, [r7, #4]
  7781. 80032c2: 2220 movs r2, #32
  7782. 80032c4: f883 203a strb.w r2, [r3, #58] ; 0x3a
  7783. return HAL_OK;
  7784. 80032c8: 2300 movs r3, #0
  7785. }
  7786. 80032ca: 4618 mov r0, r3
  7787. 80032cc: 3708 adds r7, #8
  7788. 80032ce: 46bd mov sp, r7
  7789. 80032d0: bd80 pop {r7, pc}
  7790. 080032d2 <HAL_UART_Receive_IT>:
  7791. * @param pData Pointer to data buffer (u8 or u16 data elements).
  7792. * @param Size Amount of data elements (u8 or u16) to be received.
  7793. * @retval HAL status
  7794. */
  7795. HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  7796. {
  7797. 80032d2: b480 push {r7}
  7798. 80032d4: b085 sub sp, #20
  7799. 80032d6: af00 add r7, sp, #0
  7800. 80032d8: 60f8 str r0, [r7, #12]
  7801. 80032da: 60b9 str r1, [r7, #8]
  7802. 80032dc: 4613 mov r3, r2
  7803. 80032de: 80fb strh r3, [r7, #6]
  7804. /* Check that a Rx process is not already ongoing */
  7805. if (huart->RxState == HAL_UART_STATE_READY)
  7806. 80032e0: 68fb ldr r3, [r7, #12]
  7807. 80032e2: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  7808. 80032e6: b2db uxtb r3, r3
  7809. 80032e8: 2b20 cmp r3, #32
  7810. 80032ea: d140 bne.n 800336e <HAL_UART_Receive_IT+0x9c>
  7811. {
  7812. if ((pData == NULL) || (Size == 0U))
  7813. 80032ec: 68bb ldr r3, [r7, #8]
  7814. 80032ee: 2b00 cmp r3, #0
  7815. 80032f0: d002 beq.n 80032f8 <HAL_UART_Receive_IT+0x26>
  7816. 80032f2: 88fb ldrh r3, [r7, #6]
  7817. 80032f4: 2b00 cmp r3, #0
  7818. 80032f6: d101 bne.n 80032fc <HAL_UART_Receive_IT+0x2a>
  7819. {
  7820. return HAL_ERROR;
  7821. 80032f8: 2301 movs r3, #1
  7822. 80032fa: e039 b.n 8003370 <HAL_UART_Receive_IT+0x9e>
  7823. }
  7824. /* Process Locked */
  7825. __HAL_LOCK(huart);
  7826. 80032fc: 68fb ldr r3, [r7, #12]
  7827. 80032fe: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  7828. 8003302: 2b01 cmp r3, #1
  7829. 8003304: d101 bne.n 800330a <HAL_UART_Receive_IT+0x38>
  7830. 8003306: 2302 movs r3, #2
  7831. 8003308: e032 b.n 8003370 <HAL_UART_Receive_IT+0x9e>
  7832. 800330a: 68fb ldr r3, [r7, #12]
  7833. 800330c: 2201 movs r2, #1
  7834. 800330e: f883 2038 strb.w r2, [r3, #56] ; 0x38
  7835. huart->pRxBuffPtr = pData;
  7836. 8003312: 68fb ldr r3, [r7, #12]
  7837. 8003314: 68ba ldr r2, [r7, #8]
  7838. 8003316: 629a str r2, [r3, #40] ; 0x28
  7839. huart->RxXferSize = Size;
  7840. 8003318: 68fb ldr r3, [r7, #12]
  7841. 800331a: 88fa ldrh r2, [r7, #6]
  7842. 800331c: 859a strh r2, [r3, #44] ; 0x2c
  7843. huart->RxXferCount = Size;
  7844. 800331e: 68fb ldr r3, [r7, #12]
  7845. 8003320: 88fa ldrh r2, [r7, #6]
  7846. 8003322: 85da strh r2, [r3, #46] ; 0x2e
  7847. huart->ErrorCode = HAL_UART_ERROR_NONE;
  7848. 8003324: 68fb ldr r3, [r7, #12]
  7849. 8003326: 2200 movs r2, #0
  7850. 8003328: 63da str r2, [r3, #60] ; 0x3c
  7851. huart->RxState = HAL_UART_STATE_BUSY_RX;
  7852. 800332a: 68fb ldr r3, [r7, #12]
  7853. 800332c: 2222 movs r2, #34 ; 0x22
  7854. 800332e: f883 203a strb.w r2, [r3, #58] ; 0x3a
  7855. /* Process Unlocked */
  7856. __HAL_UNLOCK(huart);
  7857. 8003332: 68fb ldr r3, [r7, #12]
  7858. 8003334: 2200 movs r2, #0
  7859. 8003336: f883 2038 strb.w r2, [r3, #56] ; 0x38
  7860. /* Enable the UART Parity Error Interrupt */
  7861. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  7862. 800333a: 68fb ldr r3, [r7, #12]
  7863. 800333c: 681b ldr r3, [r3, #0]
  7864. 800333e: 68da ldr r2, [r3, #12]
  7865. 8003340: 68fb ldr r3, [r7, #12]
  7866. 8003342: 681b ldr r3, [r3, #0]
  7867. 8003344: f442 7280 orr.w r2, r2, #256 ; 0x100
  7868. 8003348: 60da str r2, [r3, #12]
  7869. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  7870. __HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
  7871. 800334a: 68fb ldr r3, [r7, #12]
  7872. 800334c: 681b ldr r3, [r3, #0]
  7873. 800334e: 695a ldr r2, [r3, #20]
  7874. 8003350: 68fb ldr r3, [r7, #12]
  7875. 8003352: 681b ldr r3, [r3, #0]
  7876. 8003354: f042 0201 orr.w r2, r2, #1
  7877. 8003358: 615a str r2, [r3, #20]
  7878. /* Enable the UART Data Register not empty Interrupt */
  7879. __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE);
  7880. 800335a: 68fb ldr r3, [r7, #12]
  7881. 800335c: 681b ldr r3, [r3, #0]
  7882. 800335e: 68da ldr r2, [r3, #12]
  7883. 8003360: 68fb ldr r3, [r7, #12]
  7884. 8003362: 681b ldr r3, [r3, #0]
  7885. 8003364: f042 0220 orr.w r2, r2, #32
  7886. 8003368: 60da str r2, [r3, #12]
  7887. return HAL_OK;
  7888. 800336a: 2300 movs r3, #0
  7889. 800336c: e000 b.n 8003370 <HAL_UART_Receive_IT+0x9e>
  7890. }
  7891. else
  7892. {
  7893. return HAL_BUSY;
  7894. 800336e: 2302 movs r3, #2
  7895. }
  7896. }
  7897. 8003370: 4618 mov r0, r3
  7898. 8003372: 3714 adds r7, #20
  7899. 8003374: 46bd mov sp, r7
  7900. 8003376: bc80 pop {r7}
  7901. 8003378: 4770 bx lr
  7902. ...
  7903. 0800337c <HAL_UART_Transmit_DMA>:
  7904. * @param pData Pointer to data buffer (u8 or u16 data elements).
  7905. * @param Size Amount of data elements (u8 or u16) to be sent
  7906. * @retval HAL status
  7907. */
  7908. HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  7909. {
  7910. 800337c: b580 push {r7, lr}
  7911. 800337e: b086 sub sp, #24
  7912. 8003380: af00 add r7, sp, #0
  7913. 8003382: 60f8 str r0, [r7, #12]
  7914. 8003384: 60b9 str r1, [r7, #8]
  7915. 8003386: 4613 mov r3, r2
  7916. 8003388: 80fb strh r3, [r7, #6]
  7917. uint32_t *tmp;
  7918. /* Check that a Tx process is not already ongoing */
  7919. if (huart->gState == HAL_UART_STATE_READY)
  7920. 800338a: 68fb ldr r3, [r7, #12]
  7921. 800338c: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  7922. 8003390: b2db uxtb r3, r3
  7923. 8003392: 2b20 cmp r3, #32
  7924. 8003394: d153 bne.n 800343e <HAL_UART_Transmit_DMA+0xc2>
  7925. {
  7926. if ((pData == NULL) || (Size == 0U))
  7927. 8003396: 68bb ldr r3, [r7, #8]
  7928. 8003398: 2b00 cmp r3, #0
  7929. 800339a: d002 beq.n 80033a2 <HAL_UART_Transmit_DMA+0x26>
  7930. 800339c: 88fb ldrh r3, [r7, #6]
  7931. 800339e: 2b00 cmp r3, #0
  7932. 80033a0: d101 bne.n 80033a6 <HAL_UART_Transmit_DMA+0x2a>
  7933. {
  7934. return HAL_ERROR;
  7935. 80033a2: 2301 movs r3, #1
  7936. 80033a4: e04c b.n 8003440 <HAL_UART_Transmit_DMA+0xc4>
  7937. }
  7938. /* Process Locked */
  7939. __HAL_LOCK(huart);
  7940. 80033a6: 68fb ldr r3, [r7, #12]
  7941. 80033a8: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  7942. 80033ac: 2b01 cmp r3, #1
  7943. 80033ae: d101 bne.n 80033b4 <HAL_UART_Transmit_DMA+0x38>
  7944. 80033b0: 2302 movs r3, #2
  7945. 80033b2: e045 b.n 8003440 <HAL_UART_Transmit_DMA+0xc4>
  7946. 80033b4: 68fb ldr r3, [r7, #12]
  7947. 80033b6: 2201 movs r2, #1
  7948. 80033b8: f883 2038 strb.w r2, [r3, #56] ; 0x38
  7949. huart->pTxBuffPtr = pData;
  7950. 80033bc: 68ba ldr r2, [r7, #8]
  7951. 80033be: 68fb ldr r3, [r7, #12]
  7952. 80033c0: 621a str r2, [r3, #32]
  7953. huart->TxXferSize = Size;
  7954. 80033c2: 68fb ldr r3, [r7, #12]
  7955. 80033c4: 88fa ldrh r2, [r7, #6]
  7956. 80033c6: 849a strh r2, [r3, #36] ; 0x24
  7957. huart->TxXferCount = Size;
  7958. 80033c8: 68fb ldr r3, [r7, #12]
  7959. 80033ca: 88fa ldrh r2, [r7, #6]
  7960. 80033cc: 84da strh r2, [r3, #38] ; 0x26
  7961. huart->ErrorCode = HAL_UART_ERROR_NONE;
  7962. 80033ce: 68fb ldr r3, [r7, #12]
  7963. 80033d0: 2200 movs r2, #0
  7964. 80033d2: 63da str r2, [r3, #60] ; 0x3c
  7965. huart->gState = HAL_UART_STATE_BUSY_TX;
  7966. 80033d4: 68fb ldr r3, [r7, #12]
  7967. 80033d6: 2221 movs r2, #33 ; 0x21
  7968. 80033d8: f883 2039 strb.w r2, [r3, #57] ; 0x39
  7969. /* Set the UART DMA transfer complete callback */
  7970. huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt;
  7971. 80033dc: 68fb ldr r3, [r7, #12]
  7972. 80033de: 6b1b ldr r3, [r3, #48] ; 0x30
  7973. 80033e0: 4a19 ldr r2, [pc, #100] ; (8003448 <HAL_UART_Transmit_DMA+0xcc>)
  7974. 80033e2: 629a str r2, [r3, #40] ; 0x28
  7975. /* Set the UART DMA Half transfer complete callback */
  7976. huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt;
  7977. 80033e4: 68fb ldr r3, [r7, #12]
  7978. 80033e6: 6b1b ldr r3, [r3, #48] ; 0x30
  7979. 80033e8: 4a18 ldr r2, [pc, #96] ; (800344c <HAL_UART_Transmit_DMA+0xd0>)
  7980. 80033ea: 62da str r2, [r3, #44] ; 0x2c
  7981. /* Set the DMA error callback */
  7982. huart->hdmatx->XferErrorCallback = UART_DMAError;
  7983. 80033ec: 68fb ldr r3, [r7, #12]
  7984. 80033ee: 6b1b ldr r3, [r3, #48] ; 0x30
  7985. 80033f0: 4a17 ldr r2, [pc, #92] ; (8003450 <HAL_UART_Transmit_DMA+0xd4>)
  7986. 80033f2: 631a str r2, [r3, #48] ; 0x30
  7987. /* Set the DMA abort callback */
  7988. huart->hdmatx->XferAbortCallback = NULL;
  7989. 80033f4: 68fb ldr r3, [r7, #12]
  7990. 80033f6: 6b1b ldr r3, [r3, #48] ; 0x30
  7991. 80033f8: 2200 movs r2, #0
  7992. 80033fa: 635a str r2, [r3, #52] ; 0x34
  7993. /* Enable the UART transmit DMA channel */
  7994. tmp = (uint32_t *)&pData;
  7995. 80033fc: f107 0308 add.w r3, r7, #8
  7996. 8003400: 617b str r3, [r7, #20]
  7997. HAL_DMA_Start_IT(huart->hdmatx, *(uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size);
  7998. 8003402: 68fb ldr r3, [r7, #12]
  7999. 8003404: 6b18 ldr r0, [r3, #48] ; 0x30
  8000. 8003406: 697b ldr r3, [r7, #20]
  8001. 8003408: 6819 ldr r1, [r3, #0]
  8002. 800340a: 68fb ldr r3, [r7, #12]
  8003. 800340c: 681b ldr r3, [r3, #0]
  8004. 800340e: 3304 adds r3, #4
  8005. 8003410: 461a mov r2, r3
  8006. 8003412: 88fb ldrh r3, [r7, #6]
  8007. 8003414: f7fe fc16 bl 8001c44 <HAL_DMA_Start_IT>
  8008. /* Clear the TC flag in the SR register by writing 0 to it */
  8009. __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC);
  8010. 8003418: 68fb ldr r3, [r7, #12]
  8011. 800341a: 681b ldr r3, [r3, #0]
  8012. 800341c: f06f 0240 mvn.w r2, #64 ; 0x40
  8013. 8003420: 601a str r2, [r3, #0]
  8014. /* Process Unlocked */
  8015. __HAL_UNLOCK(huart);
  8016. 8003422: 68fb ldr r3, [r7, #12]
  8017. 8003424: 2200 movs r2, #0
  8018. 8003426: f883 2038 strb.w r2, [r3, #56] ; 0x38
  8019. /* Enable the DMA transfer for transmit request by setting the DMAT bit
  8020. in the UART CR3 register */
  8021. SET_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  8022. 800342a: 68fb ldr r3, [r7, #12]
  8023. 800342c: 681b ldr r3, [r3, #0]
  8024. 800342e: 695a ldr r2, [r3, #20]
  8025. 8003430: 68fb ldr r3, [r7, #12]
  8026. 8003432: 681b ldr r3, [r3, #0]
  8027. 8003434: f042 0280 orr.w r2, r2, #128 ; 0x80
  8028. 8003438: 615a str r2, [r3, #20]
  8029. return HAL_OK;
  8030. 800343a: 2300 movs r3, #0
  8031. 800343c: e000 b.n 8003440 <HAL_UART_Transmit_DMA+0xc4>
  8032. }
  8033. else
  8034. {
  8035. return HAL_BUSY;
  8036. 800343e: 2302 movs r3, #2
  8037. }
  8038. }
  8039. 8003440: 4618 mov r0, r3
  8040. 8003442: 3718 adds r7, #24
  8041. 8003444: 46bd mov sp, r7
  8042. 8003446: bd80 pop {r7, pc}
  8043. 8003448: 08003795 .word 0x08003795
  8044. 800344c: 080037e7 .word 0x080037e7
  8045. 8003450: 08003887 .word 0x08003887
  8046. 08003454 <HAL_UART_Receive_DMA>:
  8047. * @param Size Amount of data elements (u8 or u16) to be received.
  8048. * @note When the UART parity is enabled (PCE = 1) the received data contains the parity bit.
  8049. * @retval HAL status
  8050. */
  8051. HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  8052. {
  8053. 8003454: b580 push {r7, lr}
  8054. 8003456: b086 sub sp, #24
  8055. 8003458: af00 add r7, sp, #0
  8056. 800345a: 60f8 str r0, [r7, #12]
  8057. 800345c: 60b9 str r1, [r7, #8]
  8058. 800345e: 4613 mov r3, r2
  8059. 8003460: 80fb strh r3, [r7, #6]
  8060. uint32_t *tmp;
  8061. /* Check that a Rx process is not already ongoing */
  8062. if (huart->RxState == HAL_UART_STATE_READY)
  8063. 8003462: 68fb ldr r3, [r7, #12]
  8064. 8003464: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  8065. 8003468: b2db uxtb r3, r3
  8066. 800346a: 2b20 cmp r3, #32
  8067. 800346c: d166 bne.n 800353c <HAL_UART_Receive_DMA+0xe8>
  8068. {
  8069. if ((pData == NULL) || (Size == 0U))
  8070. 800346e: 68bb ldr r3, [r7, #8]
  8071. 8003470: 2b00 cmp r3, #0
  8072. 8003472: d002 beq.n 800347a <HAL_UART_Receive_DMA+0x26>
  8073. 8003474: 88fb ldrh r3, [r7, #6]
  8074. 8003476: 2b00 cmp r3, #0
  8075. 8003478: d101 bne.n 800347e <HAL_UART_Receive_DMA+0x2a>
  8076. {
  8077. return HAL_ERROR;
  8078. 800347a: 2301 movs r3, #1
  8079. 800347c: e05f b.n 800353e <HAL_UART_Receive_DMA+0xea>
  8080. }
  8081. /* Process Locked */
  8082. __HAL_LOCK(huart);
  8083. 800347e: 68fb ldr r3, [r7, #12]
  8084. 8003480: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  8085. 8003484: 2b01 cmp r3, #1
  8086. 8003486: d101 bne.n 800348c <HAL_UART_Receive_DMA+0x38>
  8087. 8003488: 2302 movs r3, #2
  8088. 800348a: e058 b.n 800353e <HAL_UART_Receive_DMA+0xea>
  8089. 800348c: 68fb ldr r3, [r7, #12]
  8090. 800348e: 2201 movs r2, #1
  8091. 8003490: f883 2038 strb.w r2, [r3, #56] ; 0x38
  8092. huart->pRxBuffPtr = pData;
  8093. 8003494: 68ba ldr r2, [r7, #8]
  8094. 8003496: 68fb ldr r3, [r7, #12]
  8095. 8003498: 629a str r2, [r3, #40] ; 0x28
  8096. huart->RxXferSize = Size;
  8097. 800349a: 68fb ldr r3, [r7, #12]
  8098. 800349c: 88fa ldrh r2, [r7, #6]
  8099. 800349e: 859a strh r2, [r3, #44] ; 0x2c
  8100. huart->ErrorCode = HAL_UART_ERROR_NONE;
  8101. 80034a0: 68fb ldr r3, [r7, #12]
  8102. 80034a2: 2200 movs r2, #0
  8103. 80034a4: 63da str r2, [r3, #60] ; 0x3c
  8104. huart->RxState = HAL_UART_STATE_BUSY_RX;
  8105. 80034a6: 68fb ldr r3, [r7, #12]
  8106. 80034a8: 2222 movs r2, #34 ; 0x22
  8107. 80034aa: f883 203a strb.w r2, [r3, #58] ; 0x3a
  8108. /* Set the UART DMA transfer complete callback */
  8109. huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt;
  8110. 80034ae: 68fb ldr r3, [r7, #12]
  8111. 80034b0: 6b5b ldr r3, [r3, #52] ; 0x34
  8112. 80034b2: 4a25 ldr r2, [pc, #148] ; (8003548 <HAL_UART_Receive_DMA+0xf4>)
  8113. 80034b4: 629a str r2, [r3, #40] ; 0x28
  8114. /* Set the UART DMA Half transfer complete callback */
  8115. huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt;
  8116. 80034b6: 68fb ldr r3, [r7, #12]
  8117. 80034b8: 6b5b ldr r3, [r3, #52] ; 0x34
  8118. 80034ba: 4a24 ldr r2, [pc, #144] ; (800354c <HAL_UART_Receive_DMA+0xf8>)
  8119. 80034bc: 62da str r2, [r3, #44] ; 0x2c
  8120. /* Set the DMA error callback */
  8121. huart->hdmarx->XferErrorCallback = UART_DMAError;
  8122. 80034be: 68fb ldr r3, [r7, #12]
  8123. 80034c0: 6b5b ldr r3, [r3, #52] ; 0x34
  8124. 80034c2: 4a23 ldr r2, [pc, #140] ; (8003550 <HAL_UART_Receive_DMA+0xfc>)
  8125. 80034c4: 631a str r2, [r3, #48] ; 0x30
  8126. /* Set the DMA abort callback */
  8127. huart->hdmarx->XferAbortCallback = NULL;
  8128. 80034c6: 68fb ldr r3, [r7, #12]
  8129. 80034c8: 6b5b ldr r3, [r3, #52] ; 0x34
  8130. 80034ca: 2200 movs r2, #0
  8131. 80034cc: 635a str r2, [r3, #52] ; 0x34
  8132. /* Enable the DMA channel */
  8133. tmp = (uint32_t *)&pData;
  8134. 80034ce: f107 0308 add.w r3, r7, #8
  8135. 80034d2: 617b str r3, [r7, #20]
  8136. HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size);
  8137. 80034d4: 68fb ldr r3, [r7, #12]
  8138. 80034d6: 6b58 ldr r0, [r3, #52] ; 0x34
  8139. 80034d8: 68fb ldr r3, [r7, #12]
  8140. 80034da: 681b ldr r3, [r3, #0]
  8141. 80034dc: 3304 adds r3, #4
  8142. 80034de: 4619 mov r1, r3
  8143. 80034e0: 697b ldr r3, [r7, #20]
  8144. 80034e2: 681a ldr r2, [r3, #0]
  8145. 80034e4: 88fb ldrh r3, [r7, #6]
  8146. 80034e6: f7fe fbad bl 8001c44 <HAL_DMA_Start_IT>
  8147. /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */
  8148. __HAL_UART_CLEAR_OREFLAG(huart);
  8149. 80034ea: 2300 movs r3, #0
  8150. 80034ec: 613b str r3, [r7, #16]
  8151. 80034ee: 68fb ldr r3, [r7, #12]
  8152. 80034f0: 681b ldr r3, [r3, #0]
  8153. 80034f2: 681b ldr r3, [r3, #0]
  8154. 80034f4: 613b str r3, [r7, #16]
  8155. 80034f6: 68fb ldr r3, [r7, #12]
  8156. 80034f8: 681b ldr r3, [r3, #0]
  8157. 80034fa: 685b ldr r3, [r3, #4]
  8158. 80034fc: 613b str r3, [r7, #16]
  8159. 80034fe: 693b ldr r3, [r7, #16]
  8160. /* Process Unlocked */
  8161. __HAL_UNLOCK(huart);
  8162. 8003500: 68fb ldr r3, [r7, #12]
  8163. 8003502: 2200 movs r2, #0
  8164. 8003504: f883 2038 strb.w r2, [r3, #56] ; 0x38
  8165. /* Enable the UART Parity Error Interrupt */
  8166. SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  8167. 8003508: 68fb ldr r3, [r7, #12]
  8168. 800350a: 681b ldr r3, [r3, #0]
  8169. 800350c: 68da ldr r2, [r3, #12]
  8170. 800350e: 68fb ldr r3, [r7, #12]
  8171. 8003510: 681b ldr r3, [r3, #0]
  8172. 8003512: f442 7280 orr.w r2, r2, #256 ; 0x100
  8173. 8003516: 60da str r2, [r3, #12]
  8174. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  8175. SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  8176. 8003518: 68fb ldr r3, [r7, #12]
  8177. 800351a: 681b ldr r3, [r3, #0]
  8178. 800351c: 695a ldr r2, [r3, #20]
  8179. 800351e: 68fb ldr r3, [r7, #12]
  8180. 8003520: 681b ldr r3, [r3, #0]
  8181. 8003522: f042 0201 orr.w r2, r2, #1
  8182. 8003526: 615a str r2, [r3, #20]
  8183. /* Enable the DMA transfer for the receiver request by setting the DMAR bit
  8184. in the UART CR3 register */
  8185. SET_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  8186. 8003528: 68fb ldr r3, [r7, #12]
  8187. 800352a: 681b ldr r3, [r3, #0]
  8188. 800352c: 695a ldr r2, [r3, #20]
  8189. 800352e: 68fb ldr r3, [r7, #12]
  8190. 8003530: 681b ldr r3, [r3, #0]
  8191. 8003532: f042 0240 orr.w r2, r2, #64 ; 0x40
  8192. 8003536: 615a str r2, [r3, #20]
  8193. return HAL_OK;
  8194. 8003538: 2300 movs r3, #0
  8195. 800353a: e000 b.n 800353e <HAL_UART_Receive_DMA+0xea>
  8196. }
  8197. else
  8198. {
  8199. return HAL_BUSY;
  8200. 800353c: 2302 movs r3, #2
  8201. }
  8202. }
  8203. 800353e: 4618 mov r0, r3
  8204. 8003540: 3718 adds r7, #24
  8205. 8003542: 46bd mov sp, r7
  8206. 8003544: bd80 pop {r7, pc}
  8207. 8003546: bf00 nop
  8208. 8003548: 08003803 .word 0x08003803
  8209. 800354c: 0800386b .word 0x0800386b
  8210. 8003550: 08003887 .word 0x08003887
  8211. 08003554 <HAL_UART_IRQHandler>:
  8212. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  8213. * the configuration information for the specified UART module.
  8214. * @retval None
  8215. */
  8216. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  8217. {
  8218. 8003554: b580 push {r7, lr}
  8219. 8003556: b088 sub sp, #32
  8220. 8003558: af00 add r7, sp, #0
  8221. 800355a: 6078 str r0, [r7, #4]
  8222. uint32_t isrflags = READ_REG(huart->Instance->SR);
  8223. 800355c: 687b ldr r3, [r7, #4]
  8224. 800355e: 681b ldr r3, [r3, #0]
  8225. 8003560: 681b ldr r3, [r3, #0]
  8226. 8003562: 61fb str r3, [r7, #28]
  8227. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  8228. 8003564: 687b ldr r3, [r7, #4]
  8229. 8003566: 681b ldr r3, [r3, #0]
  8230. 8003568: 68db ldr r3, [r3, #12]
  8231. 800356a: 61bb str r3, [r7, #24]
  8232. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  8233. 800356c: 687b ldr r3, [r7, #4]
  8234. 800356e: 681b ldr r3, [r3, #0]
  8235. 8003570: 695b ldr r3, [r3, #20]
  8236. 8003572: 617b str r3, [r7, #20]
  8237. uint32_t errorflags = 0x00U;
  8238. 8003574: 2300 movs r3, #0
  8239. 8003576: 613b str r3, [r7, #16]
  8240. uint32_t dmarequest = 0x00U;
  8241. 8003578: 2300 movs r3, #0
  8242. 800357a: 60fb str r3, [r7, #12]
  8243. /* If no error occurs */
  8244. errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE));
  8245. 800357c: 69fb ldr r3, [r7, #28]
  8246. 800357e: f003 030f and.w r3, r3, #15
  8247. 8003582: 613b str r3, [r7, #16]
  8248. if (errorflags == RESET)
  8249. 8003584: 693b ldr r3, [r7, #16]
  8250. 8003586: 2b00 cmp r3, #0
  8251. 8003588: d10d bne.n 80035a6 <HAL_UART_IRQHandler+0x52>
  8252. {
  8253. /* UART in mode Receiver -------------------------------------------------*/
  8254. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  8255. 800358a: 69fb ldr r3, [r7, #28]
  8256. 800358c: f003 0320 and.w r3, r3, #32
  8257. 8003590: 2b00 cmp r3, #0
  8258. 8003592: d008 beq.n 80035a6 <HAL_UART_IRQHandler+0x52>
  8259. 8003594: 69bb ldr r3, [r7, #24]
  8260. 8003596: f003 0320 and.w r3, r3, #32
  8261. 800359a: 2b00 cmp r3, #0
  8262. 800359c: d003 beq.n 80035a6 <HAL_UART_IRQHandler+0x52>
  8263. {
  8264. UART_Receive_IT(huart);
  8265. 800359e: 6878 ldr r0, [r7, #4]
  8266. 80035a0: f000 fa6e bl 8003a80 <UART_Receive_IT>
  8267. return;
  8268. 80035a4: e0cc b.n 8003740 <HAL_UART_IRQHandler+0x1ec>
  8269. }
  8270. }
  8271. /* If some errors occur */
  8272. if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET)))
  8273. 80035a6: 693b ldr r3, [r7, #16]
  8274. 80035a8: 2b00 cmp r3, #0
  8275. 80035aa: f000 80ab beq.w 8003704 <HAL_UART_IRQHandler+0x1b0>
  8276. 80035ae: 697b ldr r3, [r7, #20]
  8277. 80035b0: f003 0301 and.w r3, r3, #1
  8278. 80035b4: 2b00 cmp r3, #0
  8279. 80035b6: d105 bne.n 80035c4 <HAL_UART_IRQHandler+0x70>
  8280. 80035b8: 69bb ldr r3, [r7, #24]
  8281. 80035ba: f403 7390 and.w r3, r3, #288 ; 0x120
  8282. 80035be: 2b00 cmp r3, #0
  8283. 80035c0: f000 80a0 beq.w 8003704 <HAL_UART_IRQHandler+0x1b0>
  8284. {
  8285. /* UART parity error interrupt occurred ----------------------------------*/
  8286. if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET))
  8287. 80035c4: 69fb ldr r3, [r7, #28]
  8288. 80035c6: f003 0301 and.w r3, r3, #1
  8289. 80035ca: 2b00 cmp r3, #0
  8290. 80035cc: d00a beq.n 80035e4 <HAL_UART_IRQHandler+0x90>
  8291. 80035ce: 69bb ldr r3, [r7, #24]
  8292. 80035d0: f403 7380 and.w r3, r3, #256 ; 0x100
  8293. 80035d4: 2b00 cmp r3, #0
  8294. 80035d6: d005 beq.n 80035e4 <HAL_UART_IRQHandler+0x90>
  8295. {
  8296. huart->ErrorCode |= HAL_UART_ERROR_PE;
  8297. 80035d8: 687b ldr r3, [r7, #4]
  8298. 80035da: 6bdb ldr r3, [r3, #60] ; 0x3c
  8299. 80035dc: f043 0201 orr.w r2, r3, #1
  8300. 80035e0: 687b ldr r3, [r7, #4]
  8301. 80035e2: 63da str r2, [r3, #60] ; 0x3c
  8302. }
  8303. /* UART noise error interrupt occurred -----------------------------------*/
  8304. if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  8305. 80035e4: 69fb ldr r3, [r7, #28]
  8306. 80035e6: f003 0304 and.w r3, r3, #4
  8307. 80035ea: 2b00 cmp r3, #0
  8308. 80035ec: d00a beq.n 8003604 <HAL_UART_IRQHandler+0xb0>
  8309. 80035ee: 697b ldr r3, [r7, #20]
  8310. 80035f0: f003 0301 and.w r3, r3, #1
  8311. 80035f4: 2b00 cmp r3, #0
  8312. 80035f6: d005 beq.n 8003604 <HAL_UART_IRQHandler+0xb0>
  8313. {
  8314. huart->ErrorCode |= HAL_UART_ERROR_NE;
  8315. 80035f8: 687b ldr r3, [r7, #4]
  8316. 80035fa: 6bdb ldr r3, [r3, #60] ; 0x3c
  8317. 80035fc: f043 0202 orr.w r2, r3, #2
  8318. 8003600: 687b ldr r3, [r7, #4]
  8319. 8003602: 63da str r2, [r3, #60] ; 0x3c
  8320. }
  8321. /* UART frame error interrupt occurred -----------------------------------*/
  8322. if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  8323. 8003604: 69fb ldr r3, [r7, #28]
  8324. 8003606: f003 0302 and.w r3, r3, #2
  8325. 800360a: 2b00 cmp r3, #0
  8326. 800360c: d00a beq.n 8003624 <HAL_UART_IRQHandler+0xd0>
  8327. 800360e: 697b ldr r3, [r7, #20]
  8328. 8003610: f003 0301 and.w r3, r3, #1
  8329. 8003614: 2b00 cmp r3, #0
  8330. 8003616: d005 beq.n 8003624 <HAL_UART_IRQHandler+0xd0>
  8331. {
  8332. huart->ErrorCode |= HAL_UART_ERROR_FE;
  8333. 8003618: 687b ldr r3, [r7, #4]
  8334. 800361a: 6bdb ldr r3, [r3, #60] ; 0x3c
  8335. 800361c: f043 0204 orr.w r2, r3, #4
  8336. 8003620: 687b ldr r3, [r7, #4]
  8337. 8003622: 63da str r2, [r3, #60] ; 0x3c
  8338. }
  8339. /* UART Over-Run interrupt occurred --------------------------------------*/
  8340. if (((isrflags & USART_SR_ORE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  8341. 8003624: 69fb ldr r3, [r7, #28]
  8342. 8003626: f003 0308 and.w r3, r3, #8
  8343. 800362a: 2b00 cmp r3, #0
  8344. 800362c: d00a beq.n 8003644 <HAL_UART_IRQHandler+0xf0>
  8345. 800362e: 697b ldr r3, [r7, #20]
  8346. 8003630: f003 0301 and.w r3, r3, #1
  8347. 8003634: 2b00 cmp r3, #0
  8348. 8003636: d005 beq.n 8003644 <HAL_UART_IRQHandler+0xf0>
  8349. {
  8350. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  8351. 8003638: 687b ldr r3, [r7, #4]
  8352. 800363a: 6bdb ldr r3, [r3, #60] ; 0x3c
  8353. 800363c: f043 0208 orr.w r2, r3, #8
  8354. 8003640: 687b ldr r3, [r7, #4]
  8355. 8003642: 63da str r2, [r3, #60] ; 0x3c
  8356. }
  8357. /* Call UART Error Call back function if need be --------------------------*/
  8358. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  8359. 8003644: 687b ldr r3, [r7, #4]
  8360. 8003646: 6bdb ldr r3, [r3, #60] ; 0x3c
  8361. 8003648: 2b00 cmp r3, #0
  8362. 800364a: d078 beq.n 800373e <HAL_UART_IRQHandler+0x1ea>
  8363. {
  8364. /* UART in mode Receiver -----------------------------------------------*/
  8365. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  8366. 800364c: 69fb ldr r3, [r7, #28]
  8367. 800364e: f003 0320 and.w r3, r3, #32
  8368. 8003652: 2b00 cmp r3, #0
  8369. 8003654: d007 beq.n 8003666 <HAL_UART_IRQHandler+0x112>
  8370. 8003656: 69bb ldr r3, [r7, #24]
  8371. 8003658: f003 0320 and.w r3, r3, #32
  8372. 800365c: 2b00 cmp r3, #0
  8373. 800365e: d002 beq.n 8003666 <HAL_UART_IRQHandler+0x112>
  8374. {
  8375. UART_Receive_IT(huart);
  8376. 8003660: 6878 ldr r0, [r7, #4]
  8377. 8003662: f000 fa0d bl 8003a80 <UART_Receive_IT>
  8378. }
  8379. /* If Overrun error occurs, or if any error occurs in DMA mode reception,
  8380. consider error as blocking */
  8381. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  8382. 8003666: 687b ldr r3, [r7, #4]
  8383. 8003668: 681b ldr r3, [r3, #0]
  8384. 800366a: 695b ldr r3, [r3, #20]
  8385. 800366c: f003 0340 and.w r3, r3, #64 ; 0x40
  8386. 8003670: 2b00 cmp r3, #0
  8387. 8003672: bf14 ite ne
  8388. 8003674: 2301 movne r3, #1
  8389. 8003676: 2300 moveq r3, #0
  8390. 8003678: b2db uxtb r3, r3
  8391. 800367a: 60fb str r3, [r7, #12]
  8392. if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest)
  8393. 800367c: 687b ldr r3, [r7, #4]
  8394. 800367e: 6bdb ldr r3, [r3, #60] ; 0x3c
  8395. 8003680: f003 0308 and.w r3, r3, #8
  8396. 8003684: 2b00 cmp r3, #0
  8397. 8003686: d102 bne.n 800368e <HAL_UART_IRQHandler+0x13a>
  8398. 8003688: 68fb ldr r3, [r7, #12]
  8399. 800368a: 2b00 cmp r3, #0
  8400. 800368c: d031 beq.n 80036f2 <HAL_UART_IRQHandler+0x19e>
  8401. {
  8402. /* Blocking error : transfer is aborted
  8403. Set the UART state ready to be able to start again the process,
  8404. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  8405. UART_EndRxTransfer(huart);
  8406. 800368e: 6878 ldr r0, [r7, #4]
  8407. 8003690: f000 f958 bl 8003944 <UART_EndRxTransfer>
  8408. /* Disable the UART DMA Rx request if enabled */
  8409. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  8410. 8003694: 687b ldr r3, [r7, #4]
  8411. 8003696: 681b ldr r3, [r3, #0]
  8412. 8003698: 695b ldr r3, [r3, #20]
  8413. 800369a: f003 0340 and.w r3, r3, #64 ; 0x40
  8414. 800369e: 2b00 cmp r3, #0
  8415. 80036a0: d023 beq.n 80036ea <HAL_UART_IRQHandler+0x196>
  8416. {
  8417. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  8418. 80036a2: 687b ldr r3, [r7, #4]
  8419. 80036a4: 681b ldr r3, [r3, #0]
  8420. 80036a6: 695a ldr r2, [r3, #20]
  8421. 80036a8: 687b ldr r3, [r7, #4]
  8422. 80036aa: 681b ldr r3, [r3, #0]
  8423. 80036ac: f022 0240 bic.w r2, r2, #64 ; 0x40
  8424. 80036b0: 615a str r2, [r3, #20]
  8425. /* Abort the UART DMA Rx channel */
  8426. if (huart->hdmarx != NULL)
  8427. 80036b2: 687b ldr r3, [r7, #4]
  8428. 80036b4: 6b5b ldr r3, [r3, #52] ; 0x34
  8429. 80036b6: 2b00 cmp r3, #0
  8430. 80036b8: d013 beq.n 80036e2 <HAL_UART_IRQHandler+0x18e>
  8431. {
  8432. /* Set the UART DMA Abort callback :
  8433. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  8434. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  8435. 80036ba: 687b ldr r3, [r7, #4]
  8436. 80036bc: 6b5b ldr r3, [r3, #52] ; 0x34
  8437. 80036be: 4a22 ldr r2, [pc, #136] ; (8003748 <HAL_UART_IRQHandler+0x1f4>)
  8438. 80036c0: 635a str r2, [r3, #52] ; 0x34
  8439. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  8440. 80036c2: 687b ldr r3, [r7, #4]
  8441. 80036c4: 6b5b ldr r3, [r3, #52] ; 0x34
  8442. 80036c6: 4618 mov r0, r3
  8443. 80036c8: f7fe fb1c bl 8001d04 <HAL_DMA_Abort_IT>
  8444. 80036cc: 4603 mov r3, r0
  8445. 80036ce: 2b00 cmp r3, #0
  8446. 80036d0: d016 beq.n 8003700 <HAL_UART_IRQHandler+0x1ac>
  8447. {
  8448. /* Call Directly XferAbortCallback function in case of error */
  8449. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  8450. 80036d2: 687b ldr r3, [r7, #4]
  8451. 80036d4: 6b5b ldr r3, [r3, #52] ; 0x34
  8452. 80036d6: 6b5b ldr r3, [r3, #52] ; 0x34
  8453. 80036d8: 687a ldr r2, [r7, #4]
  8454. 80036da: 6b52 ldr r2, [r2, #52] ; 0x34
  8455. 80036dc: 4610 mov r0, r2
  8456. 80036de: 4798 blx r3
  8457. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  8458. 80036e0: e00e b.n 8003700 <HAL_UART_IRQHandler+0x1ac>
  8459. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8460. /*Call registered error callback*/
  8461. huart->ErrorCallback(huart);
  8462. #else
  8463. /*Call legacy weak error callback*/
  8464. HAL_UART_ErrorCallback(huart);
  8465. 80036e2: 6878 ldr r0, [r7, #4]
  8466. 80036e4: f000 f84d bl 8003782 <HAL_UART_ErrorCallback>
  8467. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  8468. 80036e8: e00a b.n 8003700 <HAL_UART_IRQHandler+0x1ac>
  8469. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8470. /*Call registered error callback*/
  8471. huart->ErrorCallback(huart);
  8472. #else
  8473. /*Call legacy weak error callback*/
  8474. HAL_UART_ErrorCallback(huart);
  8475. 80036ea: 6878 ldr r0, [r7, #4]
  8476. 80036ec: f000 f849 bl 8003782 <HAL_UART_ErrorCallback>
  8477. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  8478. 80036f0: e006 b.n 8003700 <HAL_UART_IRQHandler+0x1ac>
  8479. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8480. /*Call registered error callback*/
  8481. huart->ErrorCallback(huart);
  8482. #else
  8483. /*Call legacy weak error callback*/
  8484. HAL_UART_ErrorCallback(huart);
  8485. 80036f2: 6878 ldr r0, [r7, #4]
  8486. 80036f4: f000 f845 bl 8003782 <HAL_UART_ErrorCallback>
  8487. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  8488. huart->ErrorCode = HAL_UART_ERROR_NONE;
  8489. 80036f8: 687b ldr r3, [r7, #4]
  8490. 80036fa: 2200 movs r2, #0
  8491. 80036fc: 63da str r2, [r3, #60] ; 0x3c
  8492. }
  8493. }
  8494. return;
  8495. 80036fe: e01e b.n 800373e <HAL_UART_IRQHandler+0x1ea>
  8496. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  8497. 8003700: bf00 nop
  8498. return;
  8499. 8003702: e01c b.n 800373e <HAL_UART_IRQHandler+0x1ea>
  8500. } /* End if some error occurs */
  8501. /* UART in mode Transmitter ------------------------------------------------*/
  8502. if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET))
  8503. 8003704: 69fb ldr r3, [r7, #28]
  8504. 8003706: f003 0380 and.w r3, r3, #128 ; 0x80
  8505. 800370a: 2b00 cmp r3, #0
  8506. 800370c: d008 beq.n 8003720 <HAL_UART_IRQHandler+0x1cc>
  8507. 800370e: 69bb ldr r3, [r7, #24]
  8508. 8003710: f003 0380 and.w r3, r3, #128 ; 0x80
  8509. 8003714: 2b00 cmp r3, #0
  8510. 8003716: d003 beq.n 8003720 <HAL_UART_IRQHandler+0x1cc>
  8511. {
  8512. UART_Transmit_IT(huart);
  8513. 8003718: 6878 ldr r0, [r7, #4]
  8514. 800371a: f000 f944 bl 80039a6 <UART_Transmit_IT>
  8515. return;
  8516. 800371e: e00f b.n 8003740 <HAL_UART_IRQHandler+0x1ec>
  8517. }
  8518. /* UART in mode Transmitter end --------------------------------------------*/
  8519. if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET))
  8520. 8003720: 69fb ldr r3, [r7, #28]
  8521. 8003722: f003 0340 and.w r3, r3, #64 ; 0x40
  8522. 8003726: 2b00 cmp r3, #0
  8523. 8003728: d00a beq.n 8003740 <HAL_UART_IRQHandler+0x1ec>
  8524. 800372a: 69bb ldr r3, [r7, #24]
  8525. 800372c: f003 0340 and.w r3, r3, #64 ; 0x40
  8526. 8003730: 2b00 cmp r3, #0
  8527. 8003732: d005 beq.n 8003740 <HAL_UART_IRQHandler+0x1ec>
  8528. {
  8529. UART_EndTransmit_IT(huart);
  8530. 8003734: 6878 ldr r0, [r7, #4]
  8531. 8003736: f000 f98b bl 8003a50 <UART_EndTransmit_IT>
  8532. return;
  8533. 800373a: bf00 nop
  8534. 800373c: e000 b.n 8003740 <HAL_UART_IRQHandler+0x1ec>
  8535. return;
  8536. 800373e: bf00 nop
  8537. }
  8538. }
  8539. 8003740: 3720 adds r7, #32
  8540. 8003742: 46bd mov sp, r7
  8541. 8003744: bd80 pop {r7, pc}
  8542. 8003746: bf00 nop
  8543. 8003748: 0800397f .word 0x0800397f
  8544. 0800374c <HAL_UART_TxCpltCallback>:
  8545. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  8546. * the configuration information for the specified UART module.
  8547. * @retval None
  8548. */
  8549. __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
  8550. {
  8551. 800374c: b480 push {r7}
  8552. 800374e: b083 sub sp, #12
  8553. 8003750: af00 add r7, sp, #0
  8554. 8003752: 6078 str r0, [r7, #4]
  8555. /* Prevent unused argument(s) compilation warning */
  8556. UNUSED(huart);
  8557. /* NOTE: This function should not be modified, when the callback is needed,
  8558. the HAL_UART_TxCpltCallback could be implemented in the user file
  8559. */
  8560. }
  8561. 8003754: bf00 nop
  8562. 8003756: 370c adds r7, #12
  8563. 8003758: 46bd mov sp, r7
  8564. 800375a: bc80 pop {r7}
  8565. 800375c: 4770 bx lr
  8566. 0800375e <HAL_UART_TxHalfCpltCallback>:
  8567. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  8568. * the configuration information for the specified UART module.
  8569. * @retval None
  8570. */
  8571. __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart)
  8572. {
  8573. 800375e: b480 push {r7}
  8574. 8003760: b083 sub sp, #12
  8575. 8003762: af00 add r7, sp, #0
  8576. 8003764: 6078 str r0, [r7, #4]
  8577. /* Prevent unused argument(s) compilation warning */
  8578. UNUSED(huart);
  8579. /* NOTE: This function should not be modified, when the callback is needed,
  8580. the HAL_UART_TxHalfCpltCallback could be implemented in the user file
  8581. */
  8582. }
  8583. 8003766: bf00 nop
  8584. 8003768: 370c adds r7, #12
  8585. 800376a: 46bd mov sp, r7
  8586. 800376c: bc80 pop {r7}
  8587. 800376e: 4770 bx lr
  8588. 08003770 <HAL_UART_RxHalfCpltCallback>:
  8589. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  8590. * the configuration information for the specified UART module.
  8591. * @retval None
  8592. */
  8593. __weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart)
  8594. {
  8595. 8003770: b480 push {r7}
  8596. 8003772: b083 sub sp, #12
  8597. 8003774: af00 add r7, sp, #0
  8598. 8003776: 6078 str r0, [r7, #4]
  8599. /* Prevent unused argument(s) compilation warning */
  8600. UNUSED(huart);
  8601. /* NOTE: This function should not be modified, when the callback is needed,
  8602. the HAL_UART_RxHalfCpltCallback could be implemented in the user file
  8603. */
  8604. }
  8605. 8003778: bf00 nop
  8606. 800377a: 370c adds r7, #12
  8607. 800377c: 46bd mov sp, r7
  8608. 800377e: bc80 pop {r7}
  8609. 8003780: 4770 bx lr
  8610. 08003782 <HAL_UART_ErrorCallback>:
  8611. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  8612. * the configuration information for the specified UART module.
  8613. * @retval None
  8614. */
  8615. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  8616. {
  8617. 8003782: b480 push {r7}
  8618. 8003784: b083 sub sp, #12
  8619. 8003786: af00 add r7, sp, #0
  8620. 8003788: 6078 str r0, [r7, #4]
  8621. /* Prevent unused argument(s) compilation warning */
  8622. UNUSED(huart);
  8623. /* NOTE: This function should not be modified, when the callback is needed,
  8624. the HAL_UART_ErrorCallback could be implemented in the user file
  8625. */
  8626. }
  8627. 800378a: bf00 nop
  8628. 800378c: 370c adds r7, #12
  8629. 800378e: 46bd mov sp, r7
  8630. 8003790: bc80 pop {r7}
  8631. 8003792: 4770 bx lr
  8632. 08003794 <UART_DMATransmitCplt>:
  8633. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  8634. * the configuration information for the specified DMA module.
  8635. * @retval None
  8636. */
  8637. static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma)
  8638. {
  8639. 8003794: b580 push {r7, lr}
  8640. 8003796: b084 sub sp, #16
  8641. 8003798: af00 add r7, sp, #0
  8642. 800379a: 6078 str r0, [r7, #4]
  8643. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  8644. 800379c: 687b ldr r3, [r7, #4]
  8645. 800379e: 6a5b ldr r3, [r3, #36] ; 0x24
  8646. 80037a0: 60fb str r3, [r7, #12]
  8647. /* DMA Normal mode*/
  8648. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  8649. 80037a2: 687b ldr r3, [r7, #4]
  8650. 80037a4: 681b ldr r3, [r3, #0]
  8651. 80037a6: 681b ldr r3, [r3, #0]
  8652. 80037a8: f003 0320 and.w r3, r3, #32
  8653. 80037ac: 2b00 cmp r3, #0
  8654. 80037ae: d113 bne.n 80037d8 <UART_DMATransmitCplt+0x44>
  8655. {
  8656. huart->TxXferCount = 0x00U;
  8657. 80037b0: 68fb ldr r3, [r7, #12]
  8658. 80037b2: 2200 movs r2, #0
  8659. 80037b4: 84da strh r2, [r3, #38] ; 0x26
  8660. /* Disable the DMA transfer for transmit request by setting the DMAT bit
  8661. in the UART CR3 register */
  8662. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  8663. 80037b6: 68fb ldr r3, [r7, #12]
  8664. 80037b8: 681b ldr r3, [r3, #0]
  8665. 80037ba: 695a ldr r2, [r3, #20]
  8666. 80037bc: 68fb ldr r3, [r7, #12]
  8667. 80037be: 681b ldr r3, [r3, #0]
  8668. 80037c0: f022 0280 bic.w r2, r2, #128 ; 0x80
  8669. 80037c4: 615a str r2, [r3, #20]
  8670. /* Enable the UART Transmit Complete Interrupt */
  8671. SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  8672. 80037c6: 68fb ldr r3, [r7, #12]
  8673. 80037c8: 681b ldr r3, [r3, #0]
  8674. 80037ca: 68da ldr r2, [r3, #12]
  8675. 80037cc: 68fb ldr r3, [r7, #12]
  8676. 80037ce: 681b ldr r3, [r3, #0]
  8677. 80037d0: f042 0240 orr.w r2, r2, #64 ; 0x40
  8678. 80037d4: 60da str r2, [r3, #12]
  8679. #else
  8680. /*Call legacy weak Tx complete callback*/
  8681. HAL_UART_TxCpltCallback(huart);
  8682. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  8683. }
  8684. }
  8685. 80037d6: e002 b.n 80037de <UART_DMATransmitCplt+0x4a>
  8686. HAL_UART_TxCpltCallback(huart);
  8687. 80037d8: 68f8 ldr r0, [r7, #12]
  8688. 80037da: f7ff ffb7 bl 800374c <HAL_UART_TxCpltCallback>
  8689. }
  8690. 80037de: bf00 nop
  8691. 80037e0: 3710 adds r7, #16
  8692. 80037e2: 46bd mov sp, r7
  8693. 80037e4: bd80 pop {r7, pc}
  8694. 080037e6 <UART_DMATxHalfCplt>:
  8695. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  8696. * the configuration information for the specified DMA module.
  8697. * @retval None
  8698. */
  8699. static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma)
  8700. {
  8701. 80037e6: b580 push {r7, lr}
  8702. 80037e8: b084 sub sp, #16
  8703. 80037ea: af00 add r7, sp, #0
  8704. 80037ec: 6078 str r0, [r7, #4]
  8705. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  8706. 80037ee: 687b ldr r3, [r7, #4]
  8707. 80037f0: 6a5b ldr r3, [r3, #36] ; 0x24
  8708. 80037f2: 60fb str r3, [r7, #12]
  8709. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8710. /*Call registered Tx complete callback*/
  8711. huart->TxHalfCpltCallback(huart);
  8712. #else
  8713. /*Call legacy weak Tx complete callback*/
  8714. HAL_UART_TxHalfCpltCallback(huart);
  8715. 80037f4: 68f8 ldr r0, [r7, #12]
  8716. 80037f6: f7ff ffb2 bl 800375e <HAL_UART_TxHalfCpltCallback>
  8717. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  8718. }
  8719. 80037fa: bf00 nop
  8720. 80037fc: 3710 adds r7, #16
  8721. 80037fe: 46bd mov sp, r7
  8722. 8003800: bd80 pop {r7, pc}
  8723. 08003802 <UART_DMAReceiveCplt>:
  8724. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  8725. * the configuration information for the specified DMA module.
  8726. * @retval None
  8727. */
  8728. static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma)
  8729. {
  8730. 8003802: b580 push {r7, lr}
  8731. 8003804: b084 sub sp, #16
  8732. 8003806: af00 add r7, sp, #0
  8733. 8003808: 6078 str r0, [r7, #4]
  8734. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  8735. 800380a: 687b ldr r3, [r7, #4]
  8736. 800380c: 6a5b ldr r3, [r3, #36] ; 0x24
  8737. 800380e: 60fb str r3, [r7, #12]
  8738. /* DMA Normal mode*/
  8739. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  8740. 8003810: 687b ldr r3, [r7, #4]
  8741. 8003812: 681b ldr r3, [r3, #0]
  8742. 8003814: 681b ldr r3, [r3, #0]
  8743. 8003816: f003 0320 and.w r3, r3, #32
  8744. 800381a: 2b00 cmp r3, #0
  8745. 800381c: d11e bne.n 800385c <UART_DMAReceiveCplt+0x5a>
  8746. {
  8747. huart->RxXferCount = 0U;
  8748. 800381e: 68fb ldr r3, [r7, #12]
  8749. 8003820: 2200 movs r2, #0
  8750. 8003822: 85da strh r2, [r3, #46] ; 0x2e
  8751. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  8752. CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  8753. 8003824: 68fb ldr r3, [r7, #12]
  8754. 8003826: 681b ldr r3, [r3, #0]
  8755. 8003828: 68da ldr r2, [r3, #12]
  8756. 800382a: 68fb ldr r3, [r7, #12]
  8757. 800382c: 681b ldr r3, [r3, #0]
  8758. 800382e: f422 7280 bic.w r2, r2, #256 ; 0x100
  8759. 8003832: 60da str r2, [r3, #12]
  8760. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  8761. 8003834: 68fb ldr r3, [r7, #12]
  8762. 8003836: 681b ldr r3, [r3, #0]
  8763. 8003838: 695a ldr r2, [r3, #20]
  8764. 800383a: 68fb ldr r3, [r7, #12]
  8765. 800383c: 681b ldr r3, [r3, #0]
  8766. 800383e: f022 0201 bic.w r2, r2, #1
  8767. 8003842: 615a str r2, [r3, #20]
  8768. /* Disable the DMA transfer for the receiver request by setting the DMAR bit
  8769. in the UART CR3 register */
  8770. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  8771. 8003844: 68fb ldr r3, [r7, #12]
  8772. 8003846: 681b ldr r3, [r3, #0]
  8773. 8003848: 695a ldr r2, [r3, #20]
  8774. 800384a: 68fb ldr r3, [r7, #12]
  8775. 800384c: 681b ldr r3, [r3, #0]
  8776. 800384e: f022 0240 bic.w r2, r2, #64 ; 0x40
  8777. 8003852: 615a str r2, [r3, #20]
  8778. /* At end of Rx process, restore huart->RxState to Ready */
  8779. huart->RxState = HAL_UART_STATE_READY;
  8780. 8003854: 68fb ldr r3, [r7, #12]
  8781. 8003856: 2220 movs r2, #32
  8782. 8003858: f883 203a strb.w r2, [r3, #58] ; 0x3a
  8783. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8784. /*Call registered Rx complete callback*/
  8785. huart->RxCpltCallback(huart);
  8786. #else
  8787. /*Call legacy weak Rx complete callback*/
  8788. HAL_UART_RxCpltCallback(huart);
  8789. 800385c: 68f8 ldr r0, [r7, #12]
  8790. 800385e: f7fd fb05 bl 8000e6c <HAL_UART_RxCpltCallback>
  8791. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  8792. }
  8793. 8003862: bf00 nop
  8794. 8003864: 3710 adds r7, #16
  8795. 8003866: 46bd mov sp, r7
  8796. 8003868: bd80 pop {r7, pc}
  8797. 0800386a <UART_DMARxHalfCplt>:
  8798. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  8799. * the configuration information for the specified DMA module.
  8800. * @retval None
  8801. */
  8802. static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma)
  8803. {
  8804. 800386a: b580 push {r7, lr}
  8805. 800386c: b084 sub sp, #16
  8806. 800386e: af00 add r7, sp, #0
  8807. 8003870: 6078 str r0, [r7, #4]
  8808. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  8809. 8003872: 687b ldr r3, [r7, #4]
  8810. 8003874: 6a5b ldr r3, [r3, #36] ; 0x24
  8811. 8003876: 60fb str r3, [r7, #12]
  8812. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8813. /*Call registered Rx Half complete callback*/
  8814. huart->RxHalfCpltCallback(huart);
  8815. #else
  8816. /*Call legacy weak Rx Half complete callback*/
  8817. HAL_UART_RxHalfCpltCallback(huart);
  8818. 8003878: 68f8 ldr r0, [r7, #12]
  8819. 800387a: f7ff ff79 bl 8003770 <HAL_UART_RxHalfCpltCallback>
  8820. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  8821. }
  8822. 800387e: bf00 nop
  8823. 8003880: 3710 adds r7, #16
  8824. 8003882: 46bd mov sp, r7
  8825. 8003884: bd80 pop {r7, pc}
  8826. 08003886 <UART_DMAError>:
  8827. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  8828. * the configuration information for the specified DMA module.
  8829. * @retval None
  8830. */
  8831. static void UART_DMAError(DMA_HandleTypeDef *hdma)
  8832. {
  8833. 8003886: b580 push {r7, lr}
  8834. 8003888: b084 sub sp, #16
  8835. 800388a: af00 add r7, sp, #0
  8836. 800388c: 6078 str r0, [r7, #4]
  8837. uint32_t dmarequest = 0x00U;
  8838. 800388e: 2300 movs r3, #0
  8839. 8003890: 60fb str r3, [r7, #12]
  8840. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  8841. 8003892: 687b ldr r3, [r7, #4]
  8842. 8003894: 6a5b ldr r3, [r3, #36] ; 0x24
  8843. 8003896: 60bb str r3, [r7, #8]
  8844. /* Stop UART DMA Tx request if ongoing */
  8845. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT);
  8846. 8003898: 68bb ldr r3, [r7, #8]
  8847. 800389a: 681b ldr r3, [r3, #0]
  8848. 800389c: 695b ldr r3, [r3, #20]
  8849. 800389e: f003 0380 and.w r3, r3, #128 ; 0x80
  8850. 80038a2: 2b00 cmp r3, #0
  8851. 80038a4: bf14 ite ne
  8852. 80038a6: 2301 movne r3, #1
  8853. 80038a8: 2300 moveq r3, #0
  8854. 80038aa: b2db uxtb r3, r3
  8855. 80038ac: 60fb str r3, [r7, #12]
  8856. if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest)
  8857. 80038ae: 68bb ldr r3, [r7, #8]
  8858. 80038b0: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  8859. 80038b4: b2db uxtb r3, r3
  8860. 80038b6: 2b21 cmp r3, #33 ; 0x21
  8861. 80038b8: d108 bne.n 80038cc <UART_DMAError+0x46>
  8862. 80038ba: 68fb ldr r3, [r7, #12]
  8863. 80038bc: 2b00 cmp r3, #0
  8864. 80038be: d005 beq.n 80038cc <UART_DMAError+0x46>
  8865. {
  8866. huart->TxXferCount = 0x00U;
  8867. 80038c0: 68bb ldr r3, [r7, #8]
  8868. 80038c2: 2200 movs r2, #0
  8869. 80038c4: 84da strh r2, [r3, #38] ; 0x26
  8870. UART_EndTxTransfer(huart);
  8871. 80038c6: 68b8 ldr r0, [r7, #8]
  8872. 80038c8: f000 f827 bl 800391a <UART_EndTxTransfer>
  8873. }
  8874. /* Stop UART DMA Rx request if ongoing */
  8875. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  8876. 80038cc: 68bb ldr r3, [r7, #8]
  8877. 80038ce: 681b ldr r3, [r3, #0]
  8878. 80038d0: 695b ldr r3, [r3, #20]
  8879. 80038d2: f003 0340 and.w r3, r3, #64 ; 0x40
  8880. 80038d6: 2b00 cmp r3, #0
  8881. 80038d8: bf14 ite ne
  8882. 80038da: 2301 movne r3, #1
  8883. 80038dc: 2300 moveq r3, #0
  8884. 80038de: b2db uxtb r3, r3
  8885. 80038e0: 60fb str r3, [r7, #12]
  8886. if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest)
  8887. 80038e2: 68bb ldr r3, [r7, #8]
  8888. 80038e4: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  8889. 80038e8: b2db uxtb r3, r3
  8890. 80038ea: 2b22 cmp r3, #34 ; 0x22
  8891. 80038ec: d108 bne.n 8003900 <UART_DMAError+0x7a>
  8892. 80038ee: 68fb ldr r3, [r7, #12]
  8893. 80038f0: 2b00 cmp r3, #0
  8894. 80038f2: d005 beq.n 8003900 <UART_DMAError+0x7a>
  8895. {
  8896. huart->RxXferCount = 0x00U;
  8897. 80038f4: 68bb ldr r3, [r7, #8]
  8898. 80038f6: 2200 movs r2, #0
  8899. 80038f8: 85da strh r2, [r3, #46] ; 0x2e
  8900. UART_EndRxTransfer(huart);
  8901. 80038fa: 68b8 ldr r0, [r7, #8]
  8902. 80038fc: f000 f822 bl 8003944 <UART_EndRxTransfer>
  8903. }
  8904. huart->ErrorCode |= HAL_UART_ERROR_DMA;
  8905. 8003900: 68bb ldr r3, [r7, #8]
  8906. 8003902: 6bdb ldr r3, [r3, #60] ; 0x3c
  8907. 8003904: f043 0210 orr.w r2, r3, #16
  8908. 8003908: 68bb ldr r3, [r7, #8]
  8909. 800390a: 63da str r2, [r3, #60] ; 0x3c
  8910. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  8911. /*Call registered error callback*/
  8912. huart->ErrorCallback(huart);
  8913. #else
  8914. /*Call legacy weak error callback*/
  8915. HAL_UART_ErrorCallback(huart);
  8916. 800390c: 68b8 ldr r0, [r7, #8]
  8917. 800390e: f7ff ff38 bl 8003782 <HAL_UART_ErrorCallback>
  8918. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  8919. }
  8920. 8003912: bf00 nop
  8921. 8003914: 3710 adds r7, #16
  8922. 8003916: 46bd mov sp, r7
  8923. 8003918: bd80 pop {r7, pc}
  8924. 0800391a <UART_EndTxTransfer>:
  8925. * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion).
  8926. * @param huart UART handle.
  8927. * @retval None
  8928. */
  8929. static void UART_EndTxTransfer(UART_HandleTypeDef *huart)
  8930. {
  8931. 800391a: b480 push {r7}
  8932. 800391c: b083 sub sp, #12
  8933. 800391e: af00 add r7, sp, #0
  8934. 8003920: 6078 str r0, [r7, #4]
  8935. /* Disable TXEIE and TCIE interrupts */
  8936. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE));
  8937. 8003922: 687b ldr r3, [r7, #4]
  8938. 8003924: 681b ldr r3, [r3, #0]
  8939. 8003926: 68da ldr r2, [r3, #12]
  8940. 8003928: 687b ldr r3, [r7, #4]
  8941. 800392a: 681b ldr r3, [r3, #0]
  8942. 800392c: f022 02c0 bic.w r2, r2, #192 ; 0xc0
  8943. 8003930: 60da str r2, [r3, #12]
  8944. /* At end of Tx process, restore huart->gState to Ready */
  8945. huart->gState = HAL_UART_STATE_READY;
  8946. 8003932: 687b ldr r3, [r7, #4]
  8947. 8003934: 2220 movs r2, #32
  8948. 8003936: f883 2039 strb.w r2, [r3, #57] ; 0x39
  8949. }
  8950. 800393a: bf00 nop
  8951. 800393c: 370c adds r7, #12
  8952. 800393e: 46bd mov sp, r7
  8953. 8003940: bc80 pop {r7}
  8954. 8003942: 4770 bx lr
  8955. 08003944 <UART_EndRxTransfer>:
  8956. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  8957. * @param huart UART handle.
  8958. * @retval None
  8959. */
  8960. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  8961. {
  8962. 8003944: b480 push {r7}
  8963. 8003946: b083 sub sp, #12
  8964. 8003948: af00 add r7, sp, #0
  8965. 800394a: 6078 str r0, [r7, #4]
  8966. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  8967. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
  8968. 800394c: 687b ldr r3, [r7, #4]
  8969. 800394e: 681b ldr r3, [r3, #0]
  8970. 8003950: 68da ldr r2, [r3, #12]
  8971. 8003952: 687b ldr r3, [r7, #4]
  8972. 8003954: 681b ldr r3, [r3, #0]
  8973. 8003956: f422 7290 bic.w r2, r2, #288 ; 0x120
  8974. 800395a: 60da str r2, [r3, #12]
  8975. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  8976. 800395c: 687b ldr r3, [r7, #4]
  8977. 800395e: 681b ldr r3, [r3, #0]
  8978. 8003960: 695a ldr r2, [r3, #20]
  8979. 8003962: 687b ldr r3, [r7, #4]
  8980. 8003964: 681b ldr r3, [r3, #0]
  8981. 8003966: f022 0201 bic.w r2, r2, #1
  8982. 800396a: 615a str r2, [r3, #20]
  8983. /* At end of Rx process, restore huart->RxState to Ready */
  8984. huart->RxState = HAL_UART_STATE_READY;
  8985. 800396c: 687b ldr r3, [r7, #4]
  8986. 800396e: 2220 movs r2, #32
  8987. 8003970: f883 203a strb.w r2, [r3, #58] ; 0x3a
  8988. }
  8989. 8003974: bf00 nop
  8990. 8003976: 370c adds r7, #12
  8991. 8003978: 46bd mov sp, r7
  8992. 800397a: bc80 pop {r7}
  8993. 800397c: 4770 bx lr
  8994. 0800397e <UART_DMAAbortOnError>:
  8995. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  8996. * the configuration information for the specified DMA module.
  8997. * @retval None
  8998. */
  8999. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  9000. {
  9001. 800397e: b580 push {r7, lr}
  9002. 8003980: b084 sub sp, #16
  9003. 8003982: af00 add r7, sp, #0
  9004. 8003984: 6078 str r0, [r7, #4]
  9005. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  9006. 8003986: 687b ldr r3, [r7, #4]
  9007. 8003988: 6a5b ldr r3, [r3, #36] ; 0x24
  9008. 800398a: 60fb str r3, [r7, #12]
  9009. huart->RxXferCount = 0x00U;
  9010. 800398c: 68fb ldr r3, [r7, #12]
  9011. 800398e: 2200 movs r2, #0
  9012. 8003990: 85da strh r2, [r3, #46] ; 0x2e
  9013. huart->TxXferCount = 0x00U;
  9014. 8003992: 68fb ldr r3, [r7, #12]
  9015. 8003994: 2200 movs r2, #0
  9016. 8003996: 84da strh r2, [r3, #38] ; 0x26
  9017. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  9018. /*Call registered error callback*/
  9019. huart->ErrorCallback(huart);
  9020. #else
  9021. /*Call legacy weak error callback*/
  9022. HAL_UART_ErrorCallback(huart);
  9023. 8003998: 68f8 ldr r0, [r7, #12]
  9024. 800399a: f7ff fef2 bl 8003782 <HAL_UART_ErrorCallback>
  9025. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  9026. }
  9027. 800399e: bf00 nop
  9028. 80039a0: 3710 adds r7, #16
  9029. 80039a2: 46bd mov sp, r7
  9030. 80039a4: bd80 pop {r7, pc}
  9031. 080039a6 <UART_Transmit_IT>:
  9032. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  9033. * the configuration information for the specified UART module.
  9034. * @retval HAL status
  9035. */
  9036. static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart)
  9037. {
  9038. 80039a6: b480 push {r7}
  9039. 80039a8: b085 sub sp, #20
  9040. 80039aa: af00 add r7, sp, #0
  9041. 80039ac: 6078 str r0, [r7, #4]
  9042. uint16_t *tmp;
  9043. /* Check that a Tx process is ongoing */
  9044. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  9045. 80039ae: 687b ldr r3, [r7, #4]
  9046. 80039b0: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  9047. 80039b4: b2db uxtb r3, r3
  9048. 80039b6: 2b21 cmp r3, #33 ; 0x21
  9049. 80039b8: d144 bne.n 8003a44 <UART_Transmit_IT+0x9e>
  9050. {
  9051. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  9052. 80039ba: 687b ldr r3, [r7, #4]
  9053. 80039bc: 689b ldr r3, [r3, #8]
  9054. 80039be: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  9055. 80039c2: d11a bne.n 80039fa <UART_Transmit_IT+0x54>
  9056. {
  9057. tmp = (uint16_t *) huart->pTxBuffPtr;
  9058. 80039c4: 687b ldr r3, [r7, #4]
  9059. 80039c6: 6a1b ldr r3, [r3, #32]
  9060. 80039c8: 60fb str r3, [r7, #12]
  9061. huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF);
  9062. 80039ca: 68fb ldr r3, [r7, #12]
  9063. 80039cc: 881b ldrh r3, [r3, #0]
  9064. 80039ce: 461a mov r2, r3
  9065. 80039d0: 687b ldr r3, [r7, #4]
  9066. 80039d2: 681b ldr r3, [r3, #0]
  9067. 80039d4: f3c2 0208 ubfx r2, r2, #0, #9
  9068. 80039d8: 605a str r2, [r3, #4]
  9069. if (huart->Init.Parity == UART_PARITY_NONE)
  9070. 80039da: 687b ldr r3, [r7, #4]
  9071. 80039dc: 691b ldr r3, [r3, #16]
  9072. 80039de: 2b00 cmp r3, #0
  9073. 80039e0: d105 bne.n 80039ee <UART_Transmit_IT+0x48>
  9074. {
  9075. huart->pTxBuffPtr += 2U;
  9076. 80039e2: 687b ldr r3, [r7, #4]
  9077. 80039e4: 6a1b ldr r3, [r3, #32]
  9078. 80039e6: 1c9a adds r2, r3, #2
  9079. 80039e8: 687b ldr r3, [r7, #4]
  9080. 80039ea: 621a str r2, [r3, #32]
  9081. 80039ec: e00e b.n 8003a0c <UART_Transmit_IT+0x66>
  9082. }
  9083. else
  9084. {
  9085. huart->pTxBuffPtr += 1U;
  9086. 80039ee: 687b ldr r3, [r7, #4]
  9087. 80039f0: 6a1b ldr r3, [r3, #32]
  9088. 80039f2: 1c5a adds r2, r3, #1
  9089. 80039f4: 687b ldr r3, [r7, #4]
  9090. 80039f6: 621a str r2, [r3, #32]
  9091. 80039f8: e008 b.n 8003a0c <UART_Transmit_IT+0x66>
  9092. }
  9093. }
  9094. else
  9095. {
  9096. huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF);
  9097. 80039fa: 687b ldr r3, [r7, #4]
  9098. 80039fc: 6a1b ldr r3, [r3, #32]
  9099. 80039fe: 1c59 adds r1, r3, #1
  9100. 8003a00: 687a ldr r2, [r7, #4]
  9101. 8003a02: 6211 str r1, [r2, #32]
  9102. 8003a04: 781a ldrb r2, [r3, #0]
  9103. 8003a06: 687b ldr r3, [r7, #4]
  9104. 8003a08: 681b ldr r3, [r3, #0]
  9105. 8003a0a: 605a str r2, [r3, #4]
  9106. }
  9107. if (--huart->TxXferCount == 0U)
  9108. 8003a0c: 687b ldr r3, [r7, #4]
  9109. 8003a0e: 8cdb ldrh r3, [r3, #38] ; 0x26
  9110. 8003a10: b29b uxth r3, r3
  9111. 8003a12: 3b01 subs r3, #1
  9112. 8003a14: b29b uxth r3, r3
  9113. 8003a16: 687a ldr r2, [r7, #4]
  9114. 8003a18: 4619 mov r1, r3
  9115. 8003a1a: 84d1 strh r1, [r2, #38] ; 0x26
  9116. 8003a1c: 2b00 cmp r3, #0
  9117. 8003a1e: d10f bne.n 8003a40 <UART_Transmit_IT+0x9a>
  9118. {
  9119. /* Disable the UART Transmit Complete Interrupt */
  9120. __HAL_UART_DISABLE_IT(huart, UART_IT_TXE);
  9121. 8003a20: 687b ldr r3, [r7, #4]
  9122. 8003a22: 681b ldr r3, [r3, #0]
  9123. 8003a24: 68da ldr r2, [r3, #12]
  9124. 8003a26: 687b ldr r3, [r7, #4]
  9125. 8003a28: 681b ldr r3, [r3, #0]
  9126. 8003a2a: f022 0280 bic.w r2, r2, #128 ; 0x80
  9127. 8003a2e: 60da str r2, [r3, #12]
  9128. /* Enable the UART Transmit Complete Interrupt */
  9129. __HAL_UART_ENABLE_IT(huart, UART_IT_TC);
  9130. 8003a30: 687b ldr r3, [r7, #4]
  9131. 8003a32: 681b ldr r3, [r3, #0]
  9132. 8003a34: 68da ldr r2, [r3, #12]
  9133. 8003a36: 687b ldr r3, [r7, #4]
  9134. 8003a38: 681b ldr r3, [r3, #0]
  9135. 8003a3a: f042 0240 orr.w r2, r2, #64 ; 0x40
  9136. 8003a3e: 60da str r2, [r3, #12]
  9137. }
  9138. return HAL_OK;
  9139. 8003a40: 2300 movs r3, #0
  9140. 8003a42: e000 b.n 8003a46 <UART_Transmit_IT+0xa0>
  9141. }
  9142. else
  9143. {
  9144. return HAL_BUSY;
  9145. 8003a44: 2302 movs r3, #2
  9146. }
  9147. }
  9148. 8003a46: 4618 mov r0, r3
  9149. 8003a48: 3714 adds r7, #20
  9150. 8003a4a: 46bd mov sp, r7
  9151. 8003a4c: bc80 pop {r7}
  9152. 8003a4e: 4770 bx lr
  9153. 08003a50 <UART_EndTransmit_IT>:
  9154. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  9155. * the configuration information for the specified UART module.
  9156. * @retval HAL status
  9157. */
  9158. static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  9159. {
  9160. 8003a50: b580 push {r7, lr}
  9161. 8003a52: b082 sub sp, #8
  9162. 8003a54: af00 add r7, sp, #0
  9163. 8003a56: 6078 str r0, [r7, #4]
  9164. /* Disable the UART Transmit Complete Interrupt */
  9165. __HAL_UART_DISABLE_IT(huart, UART_IT_TC);
  9166. 8003a58: 687b ldr r3, [r7, #4]
  9167. 8003a5a: 681b ldr r3, [r3, #0]
  9168. 8003a5c: 68da ldr r2, [r3, #12]
  9169. 8003a5e: 687b ldr r3, [r7, #4]
  9170. 8003a60: 681b ldr r3, [r3, #0]
  9171. 8003a62: f022 0240 bic.w r2, r2, #64 ; 0x40
  9172. 8003a66: 60da str r2, [r3, #12]
  9173. /* Tx process is ended, restore huart->gState to Ready */
  9174. huart->gState = HAL_UART_STATE_READY;
  9175. 8003a68: 687b ldr r3, [r7, #4]
  9176. 8003a6a: 2220 movs r2, #32
  9177. 8003a6c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  9178. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  9179. /*Call registered Tx complete callback*/
  9180. huart->TxCpltCallback(huart);
  9181. #else
  9182. /*Call legacy weak Tx complete callback*/
  9183. HAL_UART_TxCpltCallback(huart);
  9184. 8003a70: 6878 ldr r0, [r7, #4]
  9185. 8003a72: f7ff fe6b bl 800374c <HAL_UART_TxCpltCallback>
  9186. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  9187. return HAL_OK;
  9188. 8003a76: 2300 movs r3, #0
  9189. }
  9190. 8003a78: 4618 mov r0, r3
  9191. 8003a7a: 3708 adds r7, #8
  9192. 8003a7c: 46bd mov sp, r7
  9193. 8003a7e: bd80 pop {r7, pc}
  9194. 08003a80 <UART_Receive_IT>:
  9195. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  9196. * the configuration information for the specified UART module.
  9197. * @retval HAL status
  9198. */
  9199. static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart)
  9200. {
  9201. 8003a80: b580 push {r7, lr}
  9202. 8003a82: b084 sub sp, #16
  9203. 8003a84: af00 add r7, sp, #0
  9204. 8003a86: 6078 str r0, [r7, #4]
  9205. uint16_t *tmp;
  9206. /* Check that a Rx process is ongoing */
  9207. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  9208. 8003a88: 687b ldr r3, [r7, #4]
  9209. 8003a8a: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  9210. 8003a8e: b2db uxtb r3, r3
  9211. 8003a90: 2b22 cmp r3, #34 ; 0x22
  9212. 8003a92: d171 bne.n 8003b78 <UART_Receive_IT+0xf8>
  9213. {
  9214. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  9215. 8003a94: 687b ldr r3, [r7, #4]
  9216. 8003a96: 689b ldr r3, [r3, #8]
  9217. 8003a98: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  9218. 8003a9c: d123 bne.n 8003ae6 <UART_Receive_IT+0x66>
  9219. {
  9220. tmp = (uint16_t *) huart->pRxBuffPtr;
  9221. 8003a9e: 687b ldr r3, [r7, #4]
  9222. 8003aa0: 6a9b ldr r3, [r3, #40] ; 0x28
  9223. 8003aa2: 60fb str r3, [r7, #12]
  9224. if (huart->Init.Parity == UART_PARITY_NONE)
  9225. 8003aa4: 687b ldr r3, [r7, #4]
  9226. 8003aa6: 691b ldr r3, [r3, #16]
  9227. 8003aa8: 2b00 cmp r3, #0
  9228. 8003aaa: d10e bne.n 8003aca <UART_Receive_IT+0x4a>
  9229. {
  9230. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF);
  9231. 8003aac: 687b ldr r3, [r7, #4]
  9232. 8003aae: 681b ldr r3, [r3, #0]
  9233. 8003ab0: 685b ldr r3, [r3, #4]
  9234. 8003ab2: b29b uxth r3, r3
  9235. 8003ab4: f3c3 0308 ubfx r3, r3, #0, #9
  9236. 8003ab8: b29a uxth r2, r3
  9237. 8003aba: 68fb ldr r3, [r7, #12]
  9238. 8003abc: 801a strh r2, [r3, #0]
  9239. huart->pRxBuffPtr += 2U;
  9240. 8003abe: 687b ldr r3, [r7, #4]
  9241. 8003ac0: 6a9b ldr r3, [r3, #40] ; 0x28
  9242. 8003ac2: 1c9a adds r2, r3, #2
  9243. 8003ac4: 687b ldr r3, [r7, #4]
  9244. 8003ac6: 629a str r2, [r3, #40] ; 0x28
  9245. 8003ac8: e029 b.n 8003b1e <UART_Receive_IT+0x9e>
  9246. }
  9247. else
  9248. {
  9249. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x00FF);
  9250. 8003aca: 687b ldr r3, [r7, #4]
  9251. 8003acc: 681b ldr r3, [r3, #0]
  9252. 8003ace: 685b ldr r3, [r3, #4]
  9253. 8003ad0: b29b uxth r3, r3
  9254. 8003ad2: b2db uxtb r3, r3
  9255. 8003ad4: b29a uxth r2, r3
  9256. 8003ad6: 68fb ldr r3, [r7, #12]
  9257. 8003ad8: 801a strh r2, [r3, #0]
  9258. huart->pRxBuffPtr += 1U;
  9259. 8003ada: 687b ldr r3, [r7, #4]
  9260. 8003adc: 6a9b ldr r3, [r3, #40] ; 0x28
  9261. 8003ade: 1c5a adds r2, r3, #1
  9262. 8003ae0: 687b ldr r3, [r7, #4]
  9263. 8003ae2: 629a str r2, [r3, #40] ; 0x28
  9264. 8003ae4: e01b b.n 8003b1e <UART_Receive_IT+0x9e>
  9265. }
  9266. }
  9267. else
  9268. {
  9269. if (huart->Init.Parity == UART_PARITY_NONE)
  9270. 8003ae6: 687b ldr r3, [r7, #4]
  9271. 8003ae8: 691b ldr r3, [r3, #16]
  9272. 8003aea: 2b00 cmp r3, #0
  9273. 8003aec: d10a bne.n 8003b04 <UART_Receive_IT+0x84>
  9274. {
  9275. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF);
  9276. 8003aee: 687b ldr r3, [r7, #4]
  9277. 8003af0: 681b ldr r3, [r3, #0]
  9278. 8003af2: 6858 ldr r0, [r3, #4]
  9279. 8003af4: 687b ldr r3, [r7, #4]
  9280. 8003af6: 6a9b ldr r3, [r3, #40] ; 0x28
  9281. 8003af8: 1c59 adds r1, r3, #1
  9282. 8003afa: 687a ldr r2, [r7, #4]
  9283. 8003afc: 6291 str r1, [r2, #40] ; 0x28
  9284. 8003afe: b2c2 uxtb r2, r0
  9285. 8003b00: 701a strb r2, [r3, #0]
  9286. 8003b02: e00c b.n 8003b1e <UART_Receive_IT+0x9e>
  9287. }
  9288. else
  9289. {
  9290. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F);
  9291. 8003b04: 687b ldr r3, [r7, #4]
  9292. 8003b06: 681b ldr r3, [r3, #0]
  9293. 8003b08: 685b ldr r3, [r3, #4]
  9294. 8003b0a: b2da uxtb r2, r3
  9295. 8003b0c: 687b ldr r3, [r7, #4]
  9296. 8003b0e: 6a9b ldr r3, [r3, #40] ; 0x28
  9297. 8003b10: 1c58 adds r0, r3, #1
  9298. 8003b12: 6879 ldr r1, [r7, #4]
  9299. 8003b14: 6288 str r0, [r1, #40] ; 0x28
  9300. 8003b16: f002 027f and.w r2, r2, #127 ; 0x7f
  9301. 8003b1a: b2d2 uxtb r2, r2
  9302. 8003b1c: 701a strb r2, [r3, #0]
  9303. }
  9304. }
  9305. if (--huart->RxXferCount == 0U)
  9306. 8003b1e: 687b ldr r3, [r7, #4]
  9307. 8003b20: 8ddb ldrh r3, [r3, #46] ; 0x2e
  9308. 8003b22: b29b uxth r3, r3
  9309. 8003b24: 3b01 subs r3, #1
  9310. 8003b26: b29b uxth r3, r3
  9311. 8003b28: 687a ldr r2, [r7, #4]
  9312. 8003b2a: 4619 mov r1, r3
  9313. 8003b2c: 85d1 strh r1, [r2, #46] ; 0x2e
  9314. 8003b2e: 2b00 cmp r3, #0
  9315. 8003b30: d120 bne.n 8003b74 <UART_Receive_IT+0xf4>
  9316. {
  9317. /* Disable the UART Data Register not empty Interrupt */
  9318. __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE);
  9319. 8003b32: 687b ldr r3, [r7, #4]
  9320. 8003b34: 681b ldr r3, [r3, #0]
  9321. 8003b36: 68da ldr r2, [r3, #12]
  9322. 8003b38: 687b ldr r3, [r7, #4]
  9323. 8003b3a: 681b ldr r3, [r3, #0]
  9324. 8003b3c: f022 0220 bic.w r2, r2, #32
  9325. 8003b40: 60da str r2, [r3, #12]
  9326. /* Disable the UART Parity Error Interrupt */
  9327. __HAL_UART_DISABLE_IT(huart, UART_IT_PE);
  9328. 8003b42: 687b ldr r3, [r7, #4]
  9329. 8003b44: 681b ldr r3, [r3, #0]
  9330. 8003b46: 68da ldr r2, [r3, #12]
  9331. 8003b48: 687b ldr r3, [r7, #4]
  9332. 8003b4a: 681b ldr r3, [r3, #0]
  9333. 8003b4c: f422 7280 bic.w r2, r2, #256 ; 0x100
  9334. 8003b50: 60da str r2, [r3, #12]
  9335. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  9336. __HAL_UART_DISABLE_IT(huart, UART_IT_ERR);
  9337. 8003b52: 687b ldr r3, [r7, #4]
  9338. 8003b54: 681b ldr r3, [r3, #0]
  9339. 8003b56: 695a ldr r2, [r3, #20]
  9340. 8003b58: 687b ldr r3, [r7, #4]
  9341. 8003b5a: 681b ldr r3, [r3, #0]
  9342. 8003b5c: f022 0201 bic.w r2, r2, #1
  9343. 8003b60: 615a str r2, [r3, #20]
  9344. /* Rx process is completed, restore huart->RxState to Ready */
  9345. huart->RxState = HAL_UART_STATE_READY;
  9346. 8003b62: 687b ldr r3, [r7, #4]
  9347. 8003b64: 2220 movs r2, #32
  9348. 8003b66: f883 203a strb.w r2, [r3, #58] ; 0x3a
  9349. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  9350. /*Call registered Rx complete callback*/
  9351. huart->RxCpltCallback(huart);
  9352. #else
  9353. /*Call legacy weak Rx complete callback*/
  9354. HAL_UART_RxCpltCallback(huart);
  9355. 8003b6a: 6878 ldr r0, [r7, #4]
  9356. 8003b6c: f7fd f97e bl 8000e6c <HAL_UART_RxCpltCallback>
  9357. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  9358. return HAL_OK;
  9359. 8003b70: 2300 movs r3, #0
  9360. 8003b72: e002 b.n 8003b7a <UART_Receive_IT+0xfa>
  9361. }
  9362. return HAL_OK;
  9363. 8003b74: 2300 movs r3, #0
  9364. 8003b76: e000 b.n 8003b7a <UART_Receive_IT+0xfa>
  9365. }
  9366. else
  9367. {
  9368. return HAL_BUSY;
  9369. 8003b78: 2302 movs r3, #2
  9370. }
  9371. }
  9372. 8003b7a: 4618 mov r0, r3
  9373. 8003b7c: 3710 adds r7, #16
  9374. 8003b7e: 46bd mov sp, r7
  9375. 8003b80: bd80 pop {r7, pc}
  9376. ...
  9377. 08003b84 <UART_SetConfig>:
  9378. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  9379. * the configuration information for the specified UART module.
  9380. * @retval None
  9381. */
  9382. static void UART_SetConfig(UART_HandleTypeDef *huart)
  9383. {
  9384. 8003b84: b580 push {r7, lr}
  9385. 8003b86: b084 sub sp, #16
  9386. 8003b88: af00 add r7, sp, #0
  9387. 8003b8a: 6078 str r0, [r7, #4]
  9388. assert_param(IS_UART_MODE(huart->Init.Mode));
  9389. /*-------------------------- USART CR2 Configuration -----------------------*/
  9390. /* Configure the UART Stop Bits: Set STOP[13:12] bits
  9391. according to huart->Init.StopBits value */
  9392. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  9393. 8003b8c: 687b ldr r3, [r7, #4]
  9394. 8003b8e: 681b ldr r3, [r3, #0]
  9395. 8003b90: 691b ldr r3, [r3, #16]
  9396. 8003b92: f423 5140 bic.w r1, r3, #12288 ; 0x3000
  9397. 8003b96: 687b ldr r3, [r7, #4]
  9398. 8003b98: 68da ldr r2, [r3, #12]
  9399. 8003b9a: 687b ldr r3, [r7, #4]
  9400. 8003b9c: 681b ldr r3, [r3, #0]
  9401. 8003b9e: 430a orrs r2, r1
  9402. 8003ba0: 611a str r2, [r3, #16]
  9403. Set PCE and PS bits according to huart->Init.Parity value
  9404. Set TE and RE bits according to huart->Init.Mode value
  9405. Set OVER8 bit according to huart->Init.OverSampling value */
  9406. #if defined(USART_CR1_OVER8)
  9407. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  9408. 8003ba2: 687b ldr r3, [r7, #4]
  9409. 8003ba4: 689a ldr r2, [r3, #8]
  9410. 8003ba6: 687b ldr r3, [r7, #4]
  9411. 8003ba8: 691b ldr r3, [r3, #16]
  9412. 8003baa: 431a orrs r2, r3
  9413. 8003bac: 687b ldr r3, [r7, #4]
  9414. 8003bae: 695b ldr r3, [r3, #20]
  9415. 8003bb0: 431a orrs r2, r3
  9416. 8003bb2: 687b ldr r3, [r7, #4]
  9417. 8003bb4: 69db ldr r3, [r3, #28]
  9418. 8003bb6: 4313 orrs r3, r2
  9419. 8003bb8: 60fb str r3, [r7, #12]
  9420. MODIFY_REG(huart->Instance->CR1,
  9421. 8003bba: 687b ldr r3, [r7, #4]
  9422. 8003bbc: 681b ldr r3, [r3, #0]
  9423. 8003bbe: 68db ldr r3, [r3, #12]
  9424. 8003bc0: f423 4316 bic.w r3, r3, #38400 ; 0x9600
  9425. 8003bc4: f023 030c bic.w r3, r3, #12
  9426. 8003bc8: 687a ldr r2, [r7, #4]
  9427. 8003bca: 6812 ldr r2, [r2, #0]
  9428. 8003bcc: 68f9 ldr r1, [r7, #12]
  9429. 8003bce: 430b orrs r3, r1
  9430. 8003bd0: 60d3 str r3, [r2, #12]
  9431. tmpreg);
  9432. #endif /* USART_CR1_OVER8 */
  9433. /*-------------------------- USART CR3 Configuration -----------------------*/
  9434. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  9435. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  9436. 8003bd2: 687b ldr r3, [r7, #4]
  9437. 8003bd4: 681b ldr r3, [r3, #0]
  9438. 8003bd6: 695b ldr r3, [r3, #20]
  9439. 8003bd8: f423 7140 bic.w r1, r3, #768 ; 0x300
  9440. 8003bdc: 687b ldr r3, [r7, #4]
  9441. 8003bde: 699a ldr r2, [r3, #24]
  9442. 8003be0: 687b ldr r3, [r7, #4]
  9443. 8003be2: 681b ldr r3, [r3, #0]
  9444. 8003be4: 430a orrs r2, r1
  9445. 8003be6: 615a str r2, [r3, #20]
  9446. #if defined(USART_CR1_OVER8)
  9447. /* Check the Over Sampling */
  9448. if(huart->Init.OverSampling == UART_OVERSAMPLING_8)
  9449. 8003be8: 687b ldr r3, [r7, #4]
  9450. 8003bea: 69db ldr r3, [r3, #28]
  9451. 8003bec: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
  9452. 8003bf0: f040 80a5 bne.w 8003d3e <UART_SetConfig+0x1ba>
  9453. {
  9454. /*-------------------------- USART BRR Configuration ---------------------*/
  9455. if(huart->Instance == USART1)
  9456. 8003bf4: 687b ldr r3, [r7, #4]
  9457. 8003bf6: 681b ldr r3, [r3, #0]
  9458. 8003bf8: 4aa4 ldr r2, [pc, #656] ; (8003e8c <UART_SetConfig+0x308>)
  9459. 8003bfa: 4293 cmp r3, r2
  9460. 8003bfc: d14f bne.n 8003c9e <UART_SetConfig+0x11a>
  9461. {
  9462. pclk = HAL_RCC_GetPCLK2Freq();
  9463. 8003bfe: f7fe ff6f bl 8002ae0 <HAL_RCC_GetPCLK2Freq>
  9464. 8003c02: 60b8 str r0, [r7, #8]
  9465. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  9466. 8003c04: 68ba ldr r2, [r7, #8]
  9467. 8003c06: 4613 mov r3, r2
  9468. 8003c08: 009b lsls r3, r3, #2
  9469. 8003c0a: 4413 add r3, r2
  9470. 8003c0c: 009a lsls r2, r3, #2
  9471. 8003c0e: 441a add r2, r3
  9472. 8003c10: 687b ldr r3, [r7, #4]
  9473. 8003c12: 685b ldr r3, [r3, #4]
  9474. 8003c14: 005b lsls r3, r3, #1
  9475. 8003c16: fbb2 f3f3 udiv r3, r2, r3
  9476. 8003c1a: 4a9d ldr r2, [pc, #628] ; (8003e90 <UART_SetConfig+0x30c>)
  9477. 8003c1c: fba2 2303 umull r2, r3, r2, r3
  9478. 8003c20: 095b lsrs r3, r3, #5
  9479. 8003c22: 0119 lsls r1, r3, #4
  9480. 8003c24: 68ba ldr r2, [r7, #8]
  9481. 8003c26: 4613 mov r3, r2
  9482. 8003c28: 009b lsls r3, r3, #2
  9483. 8003c2a: 4413 add r3, r2
  9484. 8003c2c: 009a lsls r2, r3, #2
  9485. 8003c2e: 441a add r2, r3
  9486. 8003c30: 687b ldr r3, [r7, #4]
  9487. 8003c32: 685b ldr r3, [r3, #4]
  9488. 8003c34: 005b lsls r3, r3, #1
  9489. 8003c36: fbb2 f2f3 udiv r2, r2, r3
  9490. 8003c3a: 4b95 ldr r3, [pc, #596] ; (8003e90 <UART_SetConfig+0x30c>)
  9491. 8003c3c: fba3 0302 umull r0, r3, r3, r2
  9492. 8003c40: 095b lsrs r3, r3, #5
  9493. 8003c42: 2064 movs r0, #100 ; 0x64
  9494. 8003c44: fb00 f303 mul.w r3, r0, r3
  9495. 8003c48: 1ad3 subs r3, r2, r3
  9496. 8003c4a: 00db lsls r3, r3, #3
  9497. 8003c4c: 3332 adds r3, #50 ; 0x32
  9498. 8003c4e: 4a90 ldr r2, [pc, #576] ; (8003e90 <UART_SetConfig+0x30c>)
  9499. 8003c50: fba2 2303 umull r2, r3, r2, r3
  9500. 8003c54: 095b lsrs r3, r3, #5
  9501. 8003c56: 005b lsls r3, r3, #1
  9502. 8003c58: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  9503. 8003c5c: 4419 add r1, r3
  9504. 8003c5e: 68ba ldr r2, [r7, #8]
  9505. 8003c60: 4613 mov r3, r2
  9506. 8003c62: 009b lsls r3, r3, #2
  9507. 8003c64: 4413 add r3, r2
  9508. 8003c66: 009a lsls r2, r3, #2
  9509. 8003c68: 441a add r2, r3
  9510. 8003c6a: 687b ldr r3, [r7, #4]
  9511. 8003c6c: 685b ldr r3, [r3, #4]
  9512. 8003c6e: 005b lsls r3, r3, #1
  9513. 8003c70: fbb2 f2f3 udiv r2, r2, r3
  9514. 8003c74: 4b86 ldr r3, [pc, #536] ; (8003e90 <UART_SetConfig+0x30c>)
  9515. 8003c76: fba3 0302 umull r0, r3, r3, r2
  9516. 8003c7a: 095b lsrs r3, r3, #5
  9517. 8003c7c: 2064 movs r0, #100 ; 0x64
  9518. 8003c7e: fb00 f303 mul.w r3, r0, r3
  9519. 8003c82: 1ad3 subs r3, r2, r3
  9520. 8003c84: 00db lsls r3, r3, #3
  9521. 8003c86: 3332 adds r3, #50 ; 0x32
  9522. 8003c88: 4a81 ldr r2, [pc, #516] ; (8003e90 <UART_SetConfig+0x30c>)
  9523. 8003c8a: fba2 2303 umull r2, r3, r2, r3
  9524. 8003c8e: 095b lsrs r3, r3, #5
  9525. 8003c90: f003 0207 and.w r2, r3, #7
  9526. 8003c94: 687b ldr r3, [r7, #4]
  9527. 8003c96: 681b ldr r3, [r3, #0]
  9528. 8003c98: 440a add r2, r1
  9529. 8003c9a: 609a str r2, [r3, #8]
  9530. {
  9531. pclk = HAL_RCC_GetPCLK1Freq();
  9532. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  9533. }
  9534. #endif /* USART_CR1_OVER8 */
  9535. }
  9536. 8003c9c: e0f1 b.n 8003e82 <UART_SetConfig+0x2fe>
  9537. pclk = HAL_RCC_GetPCLK1Freq();
  9538. 8003c9e: f7fe ff0b bl 8002ab8 <HAL_RCC_GetPCLK1Freq>
  9539. 8003ca2: 60b8 str r0, [r7, #8]
  9540. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  9541. 8003ca4: 68ba ldr r2, [r7, #8]
  9542. 8003ca6: 4613 mov r3, r2
  9543. 8003ca8: 009b lsls r3, r3, #2
  9544. 8003caa: 4413 add r3, r2
  9545. 8003cac: 009a lsls r2, r3, #2
  9546. 8003cae: 441a add r2, r3
  9547. 8003cb0: 687b ldr r3, [r7, #4]
  9548. 8003cb2: 685b ldr r3, [r3, #4]
  9549. 8003cb4: 005b lsls r3, r3, #1
  9550. 8003cb6: fbb2 f3f3 udiv r3, r2, r3
  9551. 8003cba: 4a75 ldr r2, [pc, #468] ; (8003e90 <UART_SetConfig+0x30c>)
  9552. 8003cbc: fba2 2303 umull r2, r3, r2, r3
  9553. 8003cc0: 095b lsrs r3, r3, #5
  9554. 8003cc2: 0119 lsls r1, r3, #4
  9555. 8003cc4: 68ba ldr r2, [r7, #8]
  9556. 8003cc6: 4613 mov r3, r2
  9557. 8003cc8: 009b lsls r3, r3, #2
  9558. 8003cca: 4413 add r3, r2
  9559. 8003ccc: 009a lsls r2, r3, #2
  9560. 8003cce: 441a add r2, r3
  9561. 8003cd0: 687b ldr r3, [r7, #4]
  9562. 8003cd2: 685b ldr r3, [r3, #4]
  9563. 8003cd4: 005b lsls r3, r3, #1
  9564. 8003cd6: fbb2 f2f3 udiv r2, r2, r3
  9565. 8003cda: 4b6d ldr r3, [pc, #436] ; (8003e90 <UART_SetConfig+0x30c>)
  9566. 8003cdc: fba3 0302 umull r0, r3, r3, r2
  9567. 8003ce0: 095b lsrs r3, r3, #5
  9568. 8003ce2: 2064 movs r0, #100 ; 0x64
  9569. 8003ce4: fb00 f303 mul.w r3, r0, r3
  9570. 8003ce8: 1ad3 subs r3, r2, r3
  9571. 8003cea: 00db lsls r3, r3, #3
  9572. 8003cec: 3332 adds r3, #50 ; 0x32
  9573. 8003cee: 4a68 ldr r2, [pc, #416] ; (8003e90 <UART_SetConfig+0x30c>)
  9574. 8003cf0: fba2 2303 umull r2, r3, r2, r3
  9575. 8003cf4: 095b lsrs r3, r3, #5
  9576. 8003cf6: 005b lsls r3, r3, #1
  9577. 8003cf8: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  9578. 8003cfc: 4419 add r1, r3
  9579. 8003cfe: 68ba ldr r2, [r7, #8]
  9580. 8003d00: 4613 mov r3, r2
  9581. 8003d02: 009b lsls r3, r3, #2
  9582. 8003d04: 4413 add r3, r2
  9583. 8003d06: 009a lsls r2, r3, #2
  9584. 8003d08: 441a add r2, r3
  9585. 8003d0a: 687b ldr r3, [r7, #4]
  9586. 8003d0c: 685b ldr r3, [r3, #4]
  9587. 8003d0e: 005b lsls r3, r3, #1
  9588. 8003d10: fbb2 f2f3 udiv r2, r2, r3
  9589. 8003d14: 4b5e ldr r3, [pc, #376] ; (8003e90 <UART_SetConfig+0x30c>)
  9590. 8003d16: fba3 0302 umull r0, r3, r3, r2
  9591. 8003d1a: 095b lsrs r3, r3, #5
  9592. 8003d1c: 2064 movs r0, #100 ; 0x64
  9593. 8003d1e: fb00 f303 mul.w r3, r0, r3
  9594. 8003d22: 1ad3 subs r3, r2, r3
  9595. 8003d24: 00db lsls r3, r3, #3
  9596. 8003d26: 3332 adds r3, #50 ; 0x32
  9597. 8003d28: 4a59 ldr r2, [pc, #356] ; (8003e90 <UART_SetConfig+0x30c>)
  9598. 8003d2a: fba2 2303 umull r2, r3, r2, r3
  9599. 8003d2e: 095b lsrs r3, r3, #5
  9600. 8003d30: f003 0207 and.w r2, r3, #7
  9601. 8003d34: 687b ldr r3, [r7, #4]
  9602. 8003d36: 681b ldr r3, [r3, #0]
  9603. 8003d38: 440a add r2, r1
  9604. 8003d3a: 609a str r2, [r3, #8]
  9605. }
  9606. 8003d3c: e0a1 b.n 8003e82 <UART_SetConfig+0x2fe>
  9607. if(huart->Instance == USART1)
  9608. 8003d3e: 687b ldr r3, [r7, #4]
  9609. 8003d40: 681b ldr r3, [r3, #0]
  9610. 8003d42: 4a52 ldr r2, [pc, #328] ; (8003e8c <UART_SetConfig+0x308>)
  9611. 8003d44: 4293 cmp r3, r2
  9612. 8003d46: d14e bne.n 8003de6 <UART_SetConfig+0x262>
  9613. pclk = HAL_RCC_GetPCLK2Freq();
  9614. 8003d48: f7fe feca bl 8002ae0 <HAL_RCC_GetPCLK2Freq>
  9615. 8003d4c: 60b8 str r0, [r7, #8]
  9616. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  9617. 8003d4e: 68ba ldr r2, [r7, #8]
  9618. 8003d50: 4613 mov r3, r2
  9619. 8003d52: 009b lsls r3, r3, #2
  9620. 8003d54: 4413 add r3, r2
  9621. 8003d56: 009a lsls r2, r3, #2
  9622. 8003d58: 441a add r2, r3
  9623. 8003d5a: 687b ldr r3, [r7, #4]
  9624. 8003d5c: 685b ldr r3, [r3, #4]
  9625. 8003d5e: 009b lsls r3, r3, #2
  9626. 8003d60: fbb2 f3f3 udiv r3, r2, r3
  9627. 8003d64: 4a4a ldr r2, [pc, #296] ; (8003e90 <UART_SetConfig+0x30c>)
  9628. 8003d66: fba2 2303 umull r2, r3, r2, r3
  9629. 8003d6a: 095b lsrs r3, r3, #5
  9630. 8003d6c: 0119 lsls r1, r3, #4
  9631. 8003d6e: 68ba ldr r2, [r7, #8]
  9632. 8003d70: 4613 mov r3, r2
  9633. 8003d72: 009b lsls r3, r3, #2
  9634. 8003d74: 4413 add r3, r2
  9635. 8003d76: 009a lsls r2, r3, #2
  9636. 8003d78: 441a add r2, r3
  9637. 8003d7a: 687b ldr r3, [r7, #4]
  9638. 8003d7c: 685b ldr r3, [r3, #4]
  9639. 8003d7e: 009b lsls r3, r3, #2
  9640. 8003d80: fbb2 f2f3 udiv r2, r2, r3
  9641. 8003d84: 4b42 ldr r3, [pc, #264] ; (8003e90 <UART_SetConfig+0x30c>)
  9642. 8003d86: fba3 0302 umull r0, r3, r3, r2
  9643. 8003d8a: 095b lsrs r3, r3, #5
  9644. 8003d8c: 2064 movs r0, #100 ; 0x64
  9645. 8003d8e: fb00 f303 mul.w r3, r0, r3
  9646. 8003d92: 1ad3 subs r3, r2, r3
  9647. 8003d94: 011b lsls r3, r3, #4
  9648. 8003d96: 3332 adds r3, #50 ; 0x32
  9649. 8003d98: 4a3d ldr r2, [pc, #244] ; (8003e90 <UART_SetConfig+0x30c>)
  9650. 8003d9a: fba2 2303 umull r2, r3, r2, r3
  9651. 8003d9e: 095b lsrs r3, r3, #5
  9652. 8003da0: f003 03f0 and.w r3, r3, #240 ; 0xf0
  9653. 8003da4: 4419 add r1, r3
  9654. 8003da6: 68ba ldr r2, [r7, #8]
  9655. 8003da8: 4613 mov r3, r2
  9656. 8003daa: 009b lsls r3, r3, #2
  9657. 8003dac: 4413 add r3, r2
  9658. 8003dae: 009a lsls r2, r3, #2
  9659. 8003db0: 441a add r2, r3
  9660. 8003db2: 687b ldr r3, [r7, #4]
  9661. 8003db4: 685b ldr r3, [r3, #4]
  9662. 8003db6: 009b lsls r3, r3, #2
  9663. 8003db8: fbb2 f2f3 udiv r2, r2, r3
  9664. 8003dbc: 4b34 ldr r3, [pc, #208] ; (8003e90 <UART_SetConfig+0x30c>)
  9665. 8003dbe: fba3 0302 umull r0, r3, r3, r2
  9666. 8003dc2: 095b lsrs r3, r3, #5
  9667. 8003dc4: 2064 movs r0, #100 ; 0x64
  9668. 8003dc6: fb00 f303 mul.w r3, r0, r3
  9669. 8003dca: 1ad3 subs r3, r2, r3
  9670. 8003dcc: 011b lsls r3, r3, #4
  9671. 8003dce: 3332 adds r3, #50 ; 0x32
  9672. 8003dd0: 4a2f ldr r2, [pc, #188] ; (8003e90 <UART_SetConfig+0x30c>)
  9673. 8003dd2: fba2 2303 umull r2, r3, r2, r3
  9674. 8003dd6: 095b lsrs r3, r3, #5
  9675. 8003dd8: f003 020f and.w r2, r3, #15
  9676. 8003ddc: 687b ldr r3, [r7, #4]
  9677. 8003dde: 681b ldr r3, [r3, #0]
  9678. 8003de0: 440a add r2, r1
  9679. 8003de2: 609a str r2, [r3, #8]
  9680. }
  9681. 8003de4: e04d b.n 8003e82 <UART_SetConfig+0x2fe>
  9682. pclk = HAL_RCC_GetPCLK1Freq();
  9683. 8003de6: f7fe fe67 bl 8002ab8 <HAL_RCC_GetPCLK1Freq>
  9684. 8003dea: 60b8 str r0, [r7, #8]
  9685. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  9686. 8003dec: 68ba ldr r2, [r7, #8]
  9687. 8003dee: 4613 mov r3, r2
  9688. 8003df0: 009b lsls r3, r3, #2
  9689. 8003df2: 4413 add r3, r2
  9690. 8003df4: 009a lsls r2, r3, #2
  9691. 8003df6: 441a add r2, r3
  9692. 8003df8: 687b ldr r3, [r7, #4]
  9693. 8003dfa: 685b ldr r3, [r3, #4]
  9694. 8003dfc: 009b lsls r3, r3, #2
  9695. 8003dfe: fbb2 f3f3 udiv r3, r2, r3
  9696. 8003e02: 4a23 ldr r2, [pc, #140] ; (8003e90 <UART_SetConfig+0x30c>)
  9697. 8003e04: fba2 2303 umull r2, r3, r2, r3
  9698. 8003e08: 095b lsrs r3, r3, #5
  9699. 8003e0a: 0119 lsls r1, r3, #4
  9700. 8003e0c: 68ba ldr r2, [r7, #8]
  9701. 8003e0e: 4613 mov r3, r2
  9702. 8003e10: 009b lsls r3, r3, #2
  9703. 8003e12: 4413 add r3, r2
  9704. 8003e14: 009a lsls r2, r3, #2
  9705. 8003e16: 441a add r2, r3
  9706. 8003e18: 687b ldr r3, [r7, #4]
  9707. 8003e1a: 685b ldr r3, [r3, #4]
  9708. 8003e1c: 009b lsls r3, r3, #2
  9709. 8003e1e: fbb2 f2f3 udiv r2, r2, r3
  9710. 8003e22: 4b1b ldr r3, [pc, #108] ; (8003e90 <UART_SetConfig+0x30c>)
  9711. 8003e24: fba3 0302 umull r0, r3, r3, r2
  9712. 8003e28: 095b lsrs r3, r3, #5
  9713. 8003e2a: 2064 movs r0, #100 ; 0x64
  9714. 8003e2c: fb00 f303 mul.w r3, r0, r3
  9715. 8003e30: 1ad3 subs r3, r2, r3
  9716. 8003e32: 011b lsls r3, r3, #4
  9717. 8003e34: 3332 adds r3, #50 ; 0x32
  9718. 8003e36: 4a16 ldr r2, [pc, #88] ; (8003e90 <UART_SetConfig+0x30c>)
  9719. 8003e38: fba2 2303 umull r2, r3, r2, r3
  9720. 8003e3c: 095b lsrs r3, r3, #5
  9721. 8003e3e: f003 03f0 and.w r3, r3, #240 ; 0xf0
  9722. 8003e42: 4419 add r1, r3
  9723. 8003e44: 68ba ldr r2, [r7, #8]
  9724. 8003e46: 4613 mov r3, r2
  9725. 8003e48: 009b lsls r3, r3, #2
  9726. 8003e4a: 4413 add r3, r2
  9727. 8003e4c: 009a lsls r2, r3, #2
  9728. 8003e4e: 441a add r2, r3
  9729. 8003e50: 687b ldr r3, [r7, #4]
  9730. 8003e52: 685b ldr r3, [r3, #4]
  9731. 8003e54: 009b lsls r3, r3, #2
  9732. 8003e56: fbb2 f2f3 udiv r2, r2, r3
  9733. 8003e5a: 4b0d ldr r3, [pc, #52] ; (8003e90 <UART_SetConfig+0x30c>)
  9734. 8003e5c: fba3 0302 umull r0, r3, r3, r2
  9735. 8003e60: 095b lsrs r3, r3, #5
  9736. 8003e62: 2064 movs r0, #100 ; 0x64
  9737. 8003e64: fb00 f303 mul.w r3, r0, r3
  9738. 8003e68: 1ad3 subs r3, r2, r3
  9739. 8003e6a: 011b lsls r3, r3, #4
  9740. 8003e6c: 3332 adds r3, #50 ; 0x32
  9741. 8003e6e: 4a08 ldr r2, [pc, #32] ; (8003e90 <UART_SetConfig+0x30c>)
  9742. 8003e70: fba2 2303 umull r2, r3, r2, r3
  9743. 8003e74: 095b lsrs r3, r3, #5
  9744. 8003e76: f003 020f and.w r2, r3, #15
  9745. 8003e7a: 687b ldr r3, [r7, #4]
  9746. 8003e7c: 681b ldr r3, [r3, #0]
  9747. 8003e7e: 440a add r2, r1
  9748. 8003e80: 609a str r2, [r3, #8]
  9749. }
  9750. 8003e82: bf00 nop
  9751. 8003e84: 3710 adds r7, #16
  9752. 8003e86: 46bd mov sp, r7
  9753. 8003e88: bd80 pop {r7, pc}
  9754. 8003e8a: bf00 nop
  9755. 8003e8c: 40013800 .word 0x40013800
  9756. 8003e90: 51eb851f .word 0x51eb851f
  9757. 08003e94 <main>:
  9758. /**
  9759. * @brief The application entry point.
  9760. * @retval int
  9761. */
  9762. int main(void)
  9763. {
  9764. 8003e94: b580 push {r7, lr}
  9765. 8003e96: af00 add r7, sp, #0
  9766. /* USER CODE END 1 */
  9767. /* MCU Configuration--------------------------------------------------------*/
  9768. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  9769. HAL_Init();
  9770. 8003e98: f7fd f890 bl 8000fbc <HAL_Init>
  9771. /* USER CODE BEGIN Init */
  9772. /* USER CODE END Init */
  9773. /* Configure the system clock */
  9774. SystemClock_Config();
  9775. 8003e9c: f000 f848 bl 8003f30 <SystemClock_Config>
  9776. /* USER CODE BEGIN SysInit */
  9777. /* USER CODE END SysInit */
  9778. /* Initialize all configured peripherals */
  9779. MX_GPIO_Init();
  9780. 8003ea0: f000 f9d2 bl 8004248 <MX_GPIO_Init>
  9781. MX_DMA_Init();
  9782. 8003ea4: f000 f9b2 bl 800420c <MX_DMA_Init>
  9783. MX_ADC1_Init();
  9784. 8003ea8: f000 f8ca bl 8004040 <MX_ADC1_Init>
  9785. MX_TIM6_Init();
  9786. 8003eac: f000 f924 bl 80040f8 <MX_TIM6_Init>
  9787. MX_USART1_UART_Init();
  9788. 8003eb0: f000 f958 bl 8004164 <MX_USART1_UART_Init>
  9789. MX_USART3_UART_Init();
  9790. 8003eb4: f000 f980 bl 80041b8 <MX_USART3_UART_Init>
  9791. /* Initialize interrupts */
  9792. MX_NVIC_Init();
  9793. 8003eb8: f000 f88e bl 8003fd8 <MX_NVIC_Init>
  9794. /* USER CODE BEGIN 2 */
  9795. HAL_TIM_Base_Start_IT(&htim6);
  9796. 8003ebc: 4813 ldr r0, [pc, #76] ; (8003f0c <main+0x78>)
  9797. 8003ebe: f7fe ff96 bl 8002dee <HAL_TIM_Base_Start_IT>
  9798. setbuf(stdout, NULL);
  9799. 8003ec2: 4b13 ldr r3, [pc, #76] ; (8003f10 <main+0x7c>)
  9800. 8003ec4: 681b ldr r3, [r3, #0]
  9801. 8003ec6: 689b ldr r3, [r3, #8]
  9802. 8003ec8: 2100 movs r1, #0
  9803. 8003eca: 4618 mov r0, r3
  9804. 8003ecc: f001 faca bl 8005464 <setbuf>
  9805. InitUartQueue(&TerminalQueue);
  9806. 8003ed0: 4810 ldr r0, [pc, #64] ; (8003f14 <main+0x80>)
  9807. 8003ed2: f7fc ffa3 bl 8000e1c <InitUartQueue>
  9808. ADC_Initialize();
  9809. 8003ed6: f7fc feb9 bl 8000c4c <ADC_Initialize>
  9810. #if 1 // PYJ.2020.05.06_BEGIN --
  9811. printf("****************************************\r\n");
  9812. 8003eda: 480f ldr r0, [pc, #60] ; (8003f18 <main+0x84>)
  9813. 8003edc: f001 faba bl 8005454 <puts>
  9814. printf("NESSLAB Project\r\n");
  9815. 8003ee0: 480e ldr r0, [pc, #56] ; (8003f1c <main+0x88>)
  9816. 8003ee2: f001 fab7 bl 8005454 <puts>
  9817. printf("Build at %s %s\r\n", __DATE__, __TIME__);
  9818. 8003ee6: 4a0e ldr r2, [pc, #56] ; (8003f20 <main+0x8c>)
  9819. 8003ee8: 490e ldr r1, [pc, #56] ; (8003f24 <main+0x90>)
  9820. 8003eea: 480f ldr r0, [pc, #60] ; (8003f28 <main+0x94>)
  9821. 8003eec: f001 fa3e bl 800536c <iprintf>
  9822. printf("Copyright (c) 2020. BLUECELL\r\n");
  9823. 8003ef0: 480e ldr r0, [pc, #56] ; (8003f2c <main+0x98>)
  9824. 8003ef2: f001 faaf bl 8005454 <puts>
  9825. printf("****************************************\r\n");
  9826. 8003ef6: 4808 ldr r0, [pc, #32] ; (8003f18 <main+0x84>)
  9827. 8003ef8: f001 faac bl 8005454 <puts>
  9828. /* Infinite loop */
  9829. /* USER CODE BEGIN WHILE */
  9830. while (1)
  9831. {
  9832. Boot_LED_Toggle(); /*LED Check*/
  9833. 8003efc: f7fc ff76 bl 8000dec <Boot_LED_Toggle>
  9834. Uart_Check(); /*Usart Rx*/
  9835. 8003f00: f7fd f834 bl 8000f6c <Uart_Check>
  9836. ADC_Check(); /*Det Calc + DL/UL Alarm Check Function*/
  9837. 8003f04: f7fc feb8 bl 8000c78 <ADC_Check>
  9838. Boot_LED_Toggle(); /*LED Check*/
  9839. 8003f08: e7f8 b.n 8003efc <main+0x68>
  9840. 8003f0a: bf00 nop
  9841. 8003f0c: 200005b8 .word 0x200005b8
  9842. 8003f10: 2000000c .word 0x2000000c
  9843. 8003f14: 2000029c .word 0x2000029c
  9844. 8003f18: 080073a0 .word 0x080073a0
  9845. 8003f1c: 080073cc .word 0x080073cc
  9846. 8003f20: 080073e0 .word 0x080073e0
  9847. 8003f24: 080073ec .word 0x080073ec
  9848. 8003f28: 080073f8 .word 0x080073f8
  9849. 8003f2c: 0800740c .word 0x0800740c
  9850. 08003f30 <SystemClock_Config>:
  9851. /**
  9852. * @brief System Clock Configuration
  9853. * @retval None
  9854. */
  9855. void SystemClock_Config(void)
  9856. {
  9857. 8003f30: b580 push {r7, lr}
  9858. 8003f32: b092 sub sp, #72 ; 0x48
  9859. 8003f34: af00 add r7, sp, #0
  9860. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  9861. 8003f36: f107 0320 add.w r3, r7, #32
  9862. 8003f3a: 2228 movs r2, #40 ; 0x28
  9863. 8003f3c: 2100 movs r1, #0
  9864. 8003f3e: 4618 mov r0, r3
  9865. 8003f40: f000 fdbc bl 8004abc <memset>
  9866. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  9867. 8003f44: f107 030c add.w r3, r7, #12
  9868. 8003f48: 2200 movs r2, #0
  9869. 8003f4a: 601a str r2, [r3, #0]
  9870. 8003f4c: 605a str r2, [r3, #4]
  9871. 8003f4e: 609a str r2, [r3, #8]
  9872. 8003f50: 60da str r2, [r3, #12]
  9873. 8003f52: 611a str r2, [r3, #16]
  9874. RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  9875. 8003f54: 463b mov r3, r7
  9876. 8003f56: 2200 movs r2, #0
  9877. 8003f58: 601a str r2, [r3, #0]
  9878. 8003f5a: 605a str r2, [r3, #4]
  9879. 8003f5c: 609a str r2, [r3, #8]
  9880. /** Initializes the CPU, AHB and APB busses clocks
  9881. */
  9882. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
  9883. 8003f5e: 2302 movs r3, #2
  9884. 8003f60: 623b str r3, [r7, #32]
  9885. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  9886. 8003f62: 2301 movs r3, #1
  9887. 8003f64: 633b str r3, [r7, #48] ; 0x30
  9888. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  9889. 8003f66: 2310 movs r3, #16
  9890. 8003f68: 637b str r3, [r7, #52] ; 0x34
  9891. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  9892. 8003f6a: 2302 movs r3, #2
  9893. 8003f6c: 63fb str r3, [r7, #60] ; 0x3c
  9894. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI_DIV2;
  9895. 8003f6e: 2300 movs r3, #0
  9896. 8003f70: 643b str r3, [r7, #64] ; 0x40
  9897. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
  9898. 8003f72: f44f 1380 mov.w r3, #1048576 ; 0x100000
  9899. 8003f76: 647b str r3, [r7, #68] ; 0x44
  9900. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  9901. 8003f78: f107 0320 add.w r3, r7, #32
  9902. 8003f7c: 4618 mov r0, r3
  9903. 8003f7e: f7fe f9f5 bl 800236c <HAL_RCC_OscConfig>
  9904. 8003f82: 4603 mov r3, r0
  9905. 8003f84: 2b00 cmp r3, #0
  9906. 8003f86: d001 beq.n 8003f8c <SystemClock_Config+0x5c>
  9907. {
  9908. Error_Handler();
  9909. 8003f88: f000 fa16 bl 80043b8 <Error_Handler>
  9910. }
  9911. /** Initializes the CPU, AHB and APB busses clocks
  9912. */
  9913. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  9914. 8003f8c: 230f movs r3, #15
  9915. 8003f8e: 60fb str r3, [r7, #12]
  9916. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  9917. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  9918. 8003f90: 2302 movs r3, #2
  9919. 8003f92: 613b str r3, [r7, #16]
  9920. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  9921. 8003f94: 2300 movs r3, #0
  9922. 8003f96: 617b str r3, [r7, #20]
  9923. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  9924. 8003f98: 2300 movs r3, #0
  9925. 8003f9a: 61bb str r3, [r7, #24]
  9926. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  9927. 8003f9c: 2300 movs r3, #0
  9928. 8003f9e: 61fb str r3, [r7, #28]
  9929. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
  9930. 8003fa0: f107 030c add.w r3, r7, #12
  9931. 8003fa4: 2100 movs r1, #0
  9932. 8003fa6: 4618 mov r0, r3
  9933. 8003fa8: f7fe fc60 bl 800286c <HAL_RCC_ClockConfig>
  9934. 8003fac: 4603 mov r3, r0
  9935. 8003fae: 2b00 cmp r3, #0
  9936. 8003fb0: d001 beq.n 8003fb6 <SystemClock_Config+0x86>
  9937. {
  9938. Error_Handler();
  9939. 8003fb2: f000 fa01 bl 80043b8 <Error_Handler>
  9940. }
  9941. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  9942. 8003fb6: 2302 movs r3, #2
  9943. 8003fb8: 603b str r3, [r7, #0]
  9944. PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV2;
  9945. 8003fba: 2300 movs r3, #0
  9946. 8003fbc: 60bb str r3, [r7, #8]
  9947. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  9948. 8003fbe: 463b mov r3, r7
  9949. 8003fc0: 4618 mov r0, r3
  9950. 8003fc2: f7fe fdeb bl 8002b9c <HAL_RCCEx_PeriphCLKConfig>
  9951. 8003fc6: 4603 mov r3, r0
  9952. 8003fc8: 2b00 cmp r3, #0
  9953. 8003fca: d001 beq.n 8003fd0 <SystemClock_Config+0xa0>
  9954. {
  9955. Error_Handler();
  9956. 8003fcc: f000 f9f4 bl 80043b8 <Error_Handler>
  9957. }
  9958. }
  9959. 8003fd0: bf00 nop
  9960. 8003fd2: 3748 adds r7, #72 ; 0x48
  9961. 8003fd4: 46bd mov sp, r7
  9962. 8003fd6: bd80 pop {r7, pc}
  9963. 08003fd8 <MX_NVIC_Init>:
  9964. /**
  9965. * @brief NVIC Configuration.
  9966. * @retval None
  9967. */
  9968. static void MX_NVIC_Init(void)
  9969. {
  9970. 8003fd8: b580 push {r7, lr}
  9971. 8003fda: af00 add r7, sp, #0
  9972. /* ADC1_IRQn interrupt configuration */
  9973. HAL_NVIC_SetPriority(ADC1_IRQn, 0, 0);
  9974. 8003fdc: 2200 movs r2, #0
  9975. 8003fde: 2100 movs r1, #0
  9976. 8003fe0: 2012 movs r0, #18
  9977. 8003fe2: f7fd fdaa bl 8001b3a <HAL_NVIC_SetPriority>
  9978. HAL_NVIC_EnableIRQ(ADC1_IRQn);
  9979. 8003fe6: 2012 movs r0, #18
  9980. 8003fe8: f7fd fdc3 bl 8001b72 <HAL_NVIC_EnableIRQ>
  9981. /* USART1_IRQn interrupt configuration */
  9982. HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
  9983. 8003fec: 2200 movs r2, #0
  9984. 8003fee: 2100 movs r1, #0
  9985. 8003ff0: 2025 movs r0, #37 ; 0x25
  9986. 8003ff2: f7fd fda2 bl 8001b3a <HAL_NVIC_SetPriority>
  9987. HAL_NVIC_EnableIRQ(USART1_IRQn);
  9988. 8003ff6: 2025 movs r0, #37 ; 0x25
  9989. 8003ff8: f7fd fdbb bl 8001b72 <HAL_NVIC_EnableIRQ>
  9990. /* USART3_IRQn interrupt configuration */
  9991. HAL_NVIC_SetPriority(USART3_IRQn, 0, 0);
  9992. 8003ffc: 2200 movs r2, #0
  9993. 8003ffe: 2100 movs r1, #0
  9994. 8004000: 2027 movs r0, #39 ; 0x27
  9995. 8004002: f7fd fd9a bl 8001b3a <HAL_NVIC_SetPriority>
  9996. HAL_NVIC_EnableIRQ(USART3_IRQn);
  9997. 8004006: 2027 movs r0, #39 ; 0x27
  9998. 8004008: f7fd fdb3 bl 8001b72 <HAL_NVIC_EnableIRQ>
  9999. /* TIM6_DAC_IRQn interrupt configuration */
  10000. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 0, 0);
  10001. 800400c: 2200 movs r2, #0
  10002. 800400e: 2100 movs r1, #0
  10003. 8004010: 2036 movs r0, #54 ; 0x36
  10004. 8004012: f7fd fd92 bl 8001b3a <HAL_NVIC_SetPriority>
  10005. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  10006. 8004016: 2036 movs r0, #54 ; 0x36
  10007. 8004018: f7fd fdab bl 8001b72 <HAL_NVIC_EnableIRQ>
  10008. /* DMA1_Channel2_IRQn interrupt configuration */
  10009. HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0);
  10010. 800401c: 2200 movs r2, #0
  10011. 800401e: 2100 movs r1, #0
  10012. 8004020: 200c movs r0, #12
  10013. 8004022: f7fd fd8a bl 8001b3a <HAL_NVIC_SetPriority>
  10014. HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn);
  10015. 8004026: 200c movs r0, #12
  10016. 8004028: f7fd fda3 bl 8001b72 <HAL_NVIC_EnableIRQ>
  10017. /* DMA1_Channel4_IRQn interrupt configuration */
  10018. HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0);
  10019. 800402c: 2200 movs r2, #0
  10020. 800402e: 2100 movs r1, #0
  10021. 8004030: 200e movs r0, #14
  10022. 8004032: f7fd fd82 bl 8001b3a <HAL_NVIC_SetPriority>
  10023. HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn);
  10024. 8004036: 200e movs r0, #14
  10025. 8004038: f7fd fd9b bl 8001b72 <HAL_NVIC_EnableIRQ>
  10026. }
  10027. 800403c: bf00 nop
  10028. 800403e: bd80 pop {r7, pc}
  10029. 08004040 <MX_ADC1_Init>:
  10030. * @brief ADC1 Initialization Function
  10031. * @param None
  10032. * @retval None
  10033. */
  10034. static void MX_ADC1_Init(void)
  10035. {
  10036. 8004040: b580 push {r7, lr}
  10037. 8004042: b084 sub sp, #16
  10038. 8004044: af00 add r7, sp, #0
  10039. /* USER CODE BEGIN ADC1_Init 0 */
  10040. /* USER CODE END ADC1_Init 0 */
  10041. ADC_ChannelConfTypeDef sConfig = {0};
  10042. 8004046: 1d3b adds r3, r7, #4
  10043. 8004048: 2200 movs r2, #0
  10044. 800404a: 601a str r2, [r3, #0]
  10045. 800404c: 605a str r2, [r3, #4]
  10046. 800404e: 609a str r2, [r3, #8]
  10047. /* USER CODE BEGIN ADC1_Init 1 */
  10048. /* USER CODE END ADC1_Init 1 */
  10049. /** Common config
  10050. */
  10051. hadc1.Instance = ADC1;
  10052. 8004050: 4b27 ldr r3, [pc, #156] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10053. 8004052: 4a28 ldr r2, [pc, #160] ; (80040f4 <MX_ADC1_Init+0xb4>)
  10054. 8004054: 601a str r2, [r3, #0]
  10055. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  10056. 8004056: 4b26 ldr r3, [pc, #152] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10057. 8004058: f44f 7280 mov.w r2, #256 ; 0x100
  10058. 800405c: 609a str r2, [r3, #8]
  10059. hadc1.Init.ContinuousConvMode = ENABLE;
  10060. 800405e: 4b24 ldr r3, [pc, #144] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10061. 8004060: 2201 movs r2, #1
  10062. 8004062: 731a strb r2, [r3, #12]
  10063. hadc1.Init.DiscontinuousConvMode = DISABLE;
  10064. 8004064: 4b22 ldr r3, [pc, #136] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10065. 8004066: 2200 movs r2, #0
  10066. 8004068: 751a strb r2, [r3, #20]
  10067. hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  10068. 800406a: 4b21 ldr r3, [pc, #132] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10069. 800406c: f44f 2260 mov.w r2, #917504 ; 0xe0000
  10070. 8004070: 61da str r2, [r3, #28]
  10071. hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  10072. 8004072: 4b1f ldr r3, [pc, #124] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10073. 8004074: 2200 movs r2, #0
  10074. 8004076: 605a str r2, [r3, #4]
  10075. hadc1.Init.NbrOfConversion = 3;
  10076. 8004078: 4b1d ldr r3, [pc, #116] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10077. 800407a: 2203 movs r2, #3
  10078. 800407c: 611a str r2, [r3, #16]
  10079. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  10080. 800407e: 481c ldr r0, [pc, #112] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10081. 8004080: f7fc ffc6 bl 8001010 <HAL_ADC_Init>
  10082. 8004084: 4603 mov r3, r0
  10083. 8004086: 2b00 cmp r3, #0
  10084. 8004088: d001 beq.n 800408e <MX_ADC1_Init+0x4e>
  10085. {
  10086. Error_Handler();
  10087. 800408a: f000 f995 bl 80043b8 <Error_Handler>
  10088. }
  10089. /** Configure Regular Channel
  10090. */
  10091. sConfig.Channel = ADC_CHANNEL_0;
  10092. 800408e: 2300 movs r3, #0
  10093. 8004090: 607b str r3, [r7, #4]
  10094. sConfig.Rank = ADC_REGULAR_RANK_1;
  10095. 8004092: 2301 movs r3, #1
  10096. 8004094: 60bb str r3, [r7, #8]
  10097. sConfig.SamplingTime = ADC_SAMPLETIME_239CYCLES_5;
  10098. 8004096: 2307 movs r3, #7
  10099. 8004098: 60fb str r3, [r7, #12]
  10100. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  10101. 800409a: 1d3b adds r3, r7, #4
  10102. 800409c: 4619 mov r1, r3
  10103. 800409e: 4814 ldr r0, [pc, #80] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10104. 80040a0: f7fd fa06 bl 80014b0 <HAL_ADC_ConfigChannel>
  10105. 80040a4: 4603 mov r3, r0
  10106. 80040a6: 2b00 cmp r3, #0
  10107. 80040a8: d001 beq.n 80040ae <MX_ADC1_Init+0x6e>
  10108. {
  10109. Error_Handler();
  10110. 80040aa: f000 f985 bl 80043b8 <Error_Handler>
  10111. }
  10112. /** Configure Regular Channel
  10113. */
  10114. sConfig.Channel = ADC_CHANNEL_1;
  10115. 80040ae: 2301 movs r3, #1
  10116. 80040b0: 607b str r3, [r7, #4]
  10117. sConfig.Rank = ADC_REGULAR_RANK_2;
  10118. 80040b2: 2302 movs r3, #2
  10119. 80040b4: 60bb str r3, [r7, #8]
  10120. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  10121. 80040b6: 1d3b adds r3, r7, #4
  10122. 80040b8: 4619 mov r1, r3
  10123. 80040ba: 480d ldr r0, [pc, #52] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10124. 80040bc: f7fd f9f8 bl 80014b0 <HAL_ADC_ConfigChannel>
  10125. 80040c0: 4603 mov r3, r0
  10126. 80040c2: 2b00 cmp r3, #0
  10127. 80040c4: d001 beq.n 80040ca <MX_ADC1_Init+0x8a>
  10128. {
  10129. Error_Handler();
  10130. 80040c6: f000 f977 bl 80043b8 <Error_Handler>
  10131. }
  10132. /** Configure Regular Channel
  10133. */
  10134. sConfig.Channel = ADC_CHANNEL_3;
  10135. 80040ca: 2303 movs r3, #3
  10136. 80040cc: 607b str r3, [r7, #4]
  10137. sConfig.Rank = ADC_REGULAR_RANK_3;
  10138. 80040ce: 2303 movs r3, #3
  10139. 80040d0: 60bb str r3, [r7, #8]
  10140. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  10141. 80040d2: 1d3b adds r3, r7, #4
  10142. 80040d4: 4619 mov r1, r3
  10143. 80040d6: 4806 ldr r0, [pc, #24] ; (80040f0 <MX_ADC1_Init+0xb0>)
  10144. 80040d8: f7fd f9ea bl 80014b0 <HAL_ADC_ConfigChannel>
  10145. 80040dc: 4603 mov r3, r0
  10146. 80040de: 2b00 cmp r3, #0
  10147. 80040e0: d001 beq.n 80040e6 <MX_ADC1_Init+0xa6>
  10148. {
  10149. Error_Handler();
  10150. 80040e2: f000 f969 bl 80043b8 <Error_Handler>
  10151. }
  10152. /* USER CODE BEGIN ADC1_Init 2 */
  10153. /* USER CODE END ADC1_Init 2 */
  10154. }
  10155. 80040e6: bf00 nop
  10156. 80040e8: 3710 adds r7, #16
  10157. 80040ea: 46bd mov sp, r7
  10158. 80040ec: bd80 pop {r7, pc}
  10159. 80040ee: bf00 nop
  10160. 80040f0: 20000504 .word 0x20000504
  10161. 80040f4: 40012400 .word 0x40012400
  10162. 080040f8 <MX_TIM6_Init>:
  10163. * @brief TIM6 Initialization Function
  10164. * @param None
  10165. * @retval None
  10166. */
  10167. static void MX_TIM6_Init(void)
  10168. {
  10169. 80040f8: b580 push {r7, lr}
  10170. 80040fa: b082 sub sp, #8
  10171. 80040fc: af00 add r7, sp, #0
  10172. /* USER CODE BEGIN TIM6_Init 0 */
  10173. /* USER CODE END TIM6_Init 0 */
  10174. TIM_MasterConfigTypeDef sMasterConfig = {0};
  10175. 80040fe: 463b mov r3, r7
  10176. 8004100: 2200 movs r2, #0
  10177. 8004102: 601a str r2, [r3, #0]
  10178. 8004104: 605a str r2, [r3, #4]
  10179. /* USER CODE BEGIN TIM6_Init 1 */
  10180. /* USER CODE END TIM6_Init 1 */
  10181. htim6.Instance = TIM6;
  10182. 8004106: 4b15 ldr r3, [pc, #84] ; (800415c <MX_TIM6_Init+0x64>)
  10183. 8004108: 4a15 ldr r2, [pc, #84] ; (8004160 <MX_TIM6_Init+0x68>)
  10184. 800410a: 601a str r2, [r3, #0]
  10185. htim6.Init.Prescaler = 2400-1;
  10186. 800410c: 4b13 ldr r3, [pc, #76] ; (800415c <MX_TIM6_Init+0x64>)
  10187. 800410e: f640 125f movw r2, #2399 ; 0x95f
  10188. 8004112: 605a str r2, [r3, #4]
  10189. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  10190. 8004114: 4b11 ldr r3, [pc, #68] ; (800415c <MX_TIM6_Init+0x64>)
  10191. 8004116: 2200 movs r2, #0
  10192. 8004118: 609a str r2, [r3, #8]
  10193. htim6.Init.Period = 10;
  10194. 800411a: 4b10 ldr r3, [pc, #64] ; (800415c <MX_TIM6_Init+0x64>)
  10195. 800411c: 220a movs r2, #10
  10196. 800411e: 60da str r2, [r3, #12]
  10197. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  10198. 8004120: 4b0e ldr r3, [pc, #56] ; (800415c <MX_TIM6_Init+0x64>)
  10199. 8004122: 2200 movs r2, #0
  10200. 8004124: 619a str r2, [r3, #24]
  10201. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  10202. 8004126: 480d ldr r0, [pc, #52] ; (800415c <MX_TIM6_Init+0x64>)
  10203. 8004128: f7fe fe36 bl 8002d98 <HAL_TIM_Base_Init>
  10204. 800412c: 4603 mov r3, r0
  10205. 800412e: 2b00 cmp r3, #0
  10206. 8004130: d001 beq.n 8004136 <MX_TIM6_Init+0x3e>
  10207. {
  10208. Error_Handler();
  10209. 8004132: f000 f941 bl 80043b8 <Error_Handler>
  10210. }
  10211. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  10212. 8004136: 2300 movs r3, #0
  10213. 8004138: 603b str r3, [r7, #0]
  10214. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  10215. 800413a: 2300 movs r3, #0
  10216. 800413c: 607b str r3, [r7, #4]
  10217. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  10218. 800413e: 463b mov r3, r7
  10219. 8004140: 4619 mov r1, r3
  10220. 8004142: 4806 ldr r0, [pc, #24] ; (800415c <MX_TIM6_Init+0x64>)
  10221. 8004144: f7ff f822 bl 800318c <HAL_TIMEx_MasterConfigSynchronization>
  10222. 8004148: 4603 mov r3, r0
  10223. 800414a: 2b00 cmp r3, #0
  10224. 800414c: d001 beq.n 8004152 <MX_TIM6_Init+0x5a>
  10225. {
  10226. Error_Handler();
  10227. 800414e: f000 f933 bl 80043b8 <Error_Handler>
  10228. }
  10229. /* USER CODE BEGIN TIM6_Init 2 */
  10230. /* USER CODE END TIM6_Init 2 */
  10231. }
  10232. 8004152: bf00 nop
  10233. 8004154: 3708 adds r7, #8
  10234. 8004156: 46bd mov sp, r7
  10235. 8004158: bd80 pop {r7, pc}
  10236. 800415a: bf00 nop
  10237. 800415c: 200005b8 .word 0x200005b8
  10238. 8004160: 40001000 .word 0x40001000
  10239. 08004164 <MX_USART1_UART_Init>:
  10240. * @brief USART1 Initialization Function
  10241. * @param None
  10242. * @retval None
  10243. */
  10244. static void MX_USART1_UART_Init(void)
  10245. {
  10246. 8004164: b580 push {r7, lr}
  10247. 8004166: af00 add r7, sp, #0
  10248. /* USER CODE END USART1_Init 0 */
  10249. /* USER CODE BEGIN USART1_Init 1 */
  10250. /* USER CODE END USART1_Init 1 */
  10251. huart1.Instance = USART1;
  10252. 8004168: 4b11 ldr r3, [pc, #68] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10253. 800416a: 4a12 ldr r2, [pc, #72] ; (80041b4 <MX_USART1_UART_Init+0x50>)
  10254. 800416c: 601a str r2, [r3, #0]
  10255. huart1.Init.BaudRate = 57600;
  10256. 800416e: 4b10 ldr r3, [pc, #64] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10257. 8004170: f44f 4261 mov.w r2, #57600 ; 0xe100
  10258. 8004174: 605a str r2, [r3, #4]
  10259. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  10260. 8004176: 4b0e ldr r3, [pc, #56] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10261. 8004178: 2200 movs r2, #0
  10262. 800417a: 609a str r2, [r3, #8]
  10263. huart1.Init.StopBits = UART_STOPBITS_1;
  10264. 800417c: 4b0c ldr r3, [pc, #48] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10265. 800417e: 2200 movs r2, #0
  10266. 8004180: 60da str r2, [r3, #12]
  10267. huart1.Init.Parity = UART_PARITY_NONE;
  10268. 8004182: 4b0b ldr r3, [pc, #44] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10269. 8004184: 2200 movs r2, #0
  10270. 8004186: 611a str r2, [r3, #16]
  10271. huart1.Init.Mode = UART_MODE_TX_RX;
  10272. 8004188: 4b09 ldr r3, [pc, #36] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10273. 800418a: 220c movs r2, #12
  10274. 800418c: 615a str r2, [r3, #20]
  10275. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  10276. 800418e: 4b08 ldr r3, [pc, #32] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10277. 8004190: 2200 movs r2, #0
  10278. 8004192: 619a str r2, [r3, #24]
  10279. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  10280. 8004194: 4b06 ldr r3, [pc, #24] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10281. 8004196: 2200 movs r2, #0
  10282. 8004198: 61da str r2, [r3, #28]
  10283. if (HAL_UART_Init(&huart1) != HAL_OK)
  10284. 800419a: 4805 ldr r0, [pc, #20] ; (80041b0 <MX_USART1_UART_Init+0x4c>)
  10285. 800419c: f7ff f84c bl 8003238 <HAL_UART_Init>
  10286. 80041a0: 4603 mov r3, r0
  10287. 80041a2: 2b00 cmp r3, #0
  10288. 80041a4: d001 beq.n 80041aa <MX_USART1_UART_Init+0x46>
  10289. {
  10290. Error_Handler();
  10291. 80041a6: f000 f907 bl 80043b8 <Error_Handler>
  10292. }
  10293. /* USER CODE BEGIN USART1_Init 2 */
  10294. /* USER CODE END USART1_Init 2 */
  10295. }
  10296. 80041aa: bf00 nop
  10297. 80041ac: bd80 pop {r7, pc}
  10298. 80041ae: bf00 nop
  10299. 80041b0: 20000534 .word 0x20000534
  10300. 80041b4: 40013800 .word 0x40013800
  10301. 080041b8 <MX_USART3_UART_Init>:
  10302. * @brief USART3 Initialization Function
  10303. * @param None
  10304. * @retval None
  10305. */
  10306. static void MX_USART3_UART_Init(void)
  10307. {
  10308. 80041b8: b580 push {r7, lr}
  10309. 80041ba: af00 add r7, sp, #0
  10310. /* USER CODE END USART3_Init 0 */
  10311. /* USER CODE BEGIN USART3_Init 1 */
  10312. /* USER CODE END USART3_Init 1 */
  10313. huart3.Instance = USART3;
  10314. 80041bc: 4b11 ldr r3, [pc, #68] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10315. 80041be: 4a12 ldr r2, [pc, #72] ; (8004208 <MX_USART3_UART_Init+0x50>)
  10316. 80041c0: 601a str r2, [r3, #0]
  10317. huart3.Init.BaudRate = 57600;
  10318. 80041c2: 4b10 ldr r3, [pc, #64] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10319. 80041c4: f44f 4261 mov.w r2, #57600 ; 0xe100
  10320. 80041c8: 605a str r2, [r3, #4]
  10321. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  10322. 80041ca: 4b0e ldr r3, [pc, #56] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10323. 80041cc: 2200 movs r2, #0
  10324. 80041ce: 609a str r2, [r3, #8]
  10325. huart3.Init.StopBits = UART_STOPBITS_1;
  10326. 80041d0: 4b0c ldr r3, [pc, #48] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10327. 80041d2: 2200 movs r2, #0
  10328. 80041d4: 60da str r2, [r3, #12]
  10329. huart3.Init.Parity = UART_PARITY_NONE;
  10330. 80041d6: 4b0b ldr r3, [pc, #44] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10331. 80041d8: 2200 movs r2, #0
  10332. 80041da: 611a str r2, [r3, #16]
  10333. huart3.Init.Mode = UART_MODE_TX_RX;
  10334. 80041dc: 4b09 ldr r3, [pc, #36] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10335. 80041de: 220c movs r2, #12
  10336. 80041e0: 615a str r2, [r3, #20]
  10337. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  10338. 80041e2: 4b08 ldr r3, [pc, #32] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10339. 80041e4: 2200 movs r2, #0
  10340. 80041e6: 619a str r2, [r3, #24]
  10341. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  10342. 80041e8: 4b06 ldr r3, [pc, #24] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10343. 80041ea: 2200 movs r2, #0
  10344. 80041ec: 61da str r2, [r3, #28]
  10345. if (HAL_UART_Init(&huart3) != HAL_OK)
  10346. 80041ee: 4805 ldr r0, [pc, #20] ; (8004204 <MX_USART3_UART_Init+0x4c>)
  10347. 80041f0: f7ff f822 bl 8003238 <HAL_UART_Init>
  10348. 80041f4: 4603 mov r3, r0
  10349. 80041f6: 2b00 cmp r3, #0
  10350. 80041f8: d001 beq.n 80041fe <MX_USART3_UART_Init+0x46>
  10351. {
  10352. Error_Handler();
  10353. 80041fa: f000 f8dd bl 80043b8 <Error_Handler>
  10354. }
  10355. /* USER CODE BEGIN USART3_Init 2 */
  10356. /* USER CODE END USART3_Init 2 */
  10357. }
  10358. 80041fe: bf00 nop
  10359. 8004200: bd80 pop {r7, pc}
  10360. 8004202: bf00 nop
  10361. 8004204: 2000043c .word 0x2000043c
  10362. 8004208: 40004800 .word 0x40004800
  10363. 0800420c <MX_DMA_Init>:
  10364. /**
  10365. * Enable DMA controller clock
  10366. */
  10367. static void MX_DMA_Init(void)
  10368. {
  10369. 800420c: b580 push {r7, lr}
  10370. 800420e: b082 sub sp, #8
  10371. 8004210: af00 add r7, sp, #0
  10372. /* DMA controller clock enable */
  10373. __HAL_RCC_DMA1_CLK_ENABLE();
  10374. 8004212: 4b0c ldr r3, [pc, #48] ; (8004244 <MX_DMA_Init+0x38>)
  10375. 8004214: 695b ldr r3, [r3, #20]
  10376. 8004216: 4a0b ldr r2, [pc, #44] ; (8004244 <MX_DMA_Init+0x38>)
  10377. 8004218: f043 0301 orr.w r3, r3, #1
  10378. 800421c: 6153 str r3, [r2, #20]
  10379. 800421e: 4b09 ldr r3, [pc, #36] ; (8004244 <MX_DMA_Init+0x38>)
  10380. 8004220: 695b ldr r3, [r3, #20]
  10381. 8004222: f003 0301 and.w r3, r3, #1
  10382. 8004226: 607b str r3, [r7, #4]
  10383. 8004228: 687b ldr r3, [r7, #4]
  10384. /* DMA interrupt init */
  10385. /* DMA1_Channel1_IRQn interrupt configuration */
  10386. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  10387. 800422a: 2200 movs r2, #0
  10388. 800422c: 2100 movs r1, #0
  10389. 800422e: 200b movs r0, #11
  10390. 8004230: f7fd fc83 bl 8001b3a <HAL_NVIC_SetPriority>
  10391. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  10392. 8004234: 200b movs r0, #11
  10393. 8004236: f7fd fc9c bl 8001b72 <HAL_NVIC_EnableIRQ>
  10394. }
  10395. 800423a: bf00 nop
  10396. 800423c: 3708 adds r7, #8
  10397. 800423e: 46bd mov sp, r7
  10398. 8004240: bd80 pop {r7, pc}
  10399. 8004242: bf00 nop
  10400. 8004244: 40021000 .word 0x40021000
  10401. 08004248 <MX_GPIO_Init>:
  10402. * @brief GPIO Initialization Function
  10403. * @param None
  10404. * @retval None
  10405. */
  10406. static void MX_GPIO_Init(void)
  10407. {
  10408. 8004248: b580 push {r7, lr}
  10409. 800424a: b088 sub sp, #32
  10410. 800424c: af00 add r7, sp, #0
  10411. GPIO_InitTypeDef GPIO_InitStruct = {0};
  10412. 800424e: f107 0310 add.w r3, r7, #16
  10413. 8004252: 2200 movs r2, #0
  10414. 8004254: 601a str r2, [r3, #0]
  10415. 8004256: 605a str r2, [r3, #4]
  10416. 8004258: 609a str r2, [r3, #8]
  10417. 800425a: 60da str r2, [r3, #12]
  10418. /* GPIO Ports Clock Enable */
  10419. __HAL_RCC_GPIOC_CLK_ENABLE();
  10420. 800425c: 4b40 ldr r3, [pc, #256] ; (8004360 <MX_GPIO_Init+0x118>)
  10421. 800425e: 699b ldr r3, [r3, #24]
  10422. 8004260: 4a3f ldr r2, [pc, #252] ; (8004360 <MX_GPIO_Init+0x118>)
  10423. 8004262: f043 0310 orr.w r3, r3, #16
  10424. 8004266: 6193 str r3, [r2, #24]
  10425. 8004268: 4b3d ldr r3, [pc, #244] ; (8004360 <MX_GPIO_Init+0x118>)
  10426. 800426a: 699b ldr r3, [r3, #24]
  10427. 800426c: f003 0310 and.w r3, r3, #16
  10428. 8004270: 60fb str r3, [r7, #12]
  10429. 8004272: 68fb ldr r3, [r7, #12]
  10430. __HAL_RCC_GPIOA_CLK_ENABLE();
  10431. 8004274: 4b3a ldr r3, [pc, #232] ; (8004360 <MX_GPIO_Init+0x118>)
  10432. 8004276: 699b ldr r3, [r3, #24]
  10433. 8004278: 4a39 ldr r2, [pc, #228] ; (8004360 <MX_GPIO_Init+0x118>)
  10434. 800427a: f043 0304 orr.w r3, r3, #4
  10435. 800427e: 6193 str r3, [r2, #24]
  10436. 8004280: 4b37 ldr r3, [pc, #220] ; (8004360 <MX_GPIO_Init+0x118>)
  10437. 8004282: 699b ldr r3, [r3, #24]
  10438. 8004284: f003 0304 and.w r3, r3, #4
  10439. 8004288: 60bb str r3, [r7, #8]
  10440. 800428a: 68bb ldr r3, [r7, #8]
  10441. __HAL_RCC_GPIOB_CLK_ENABLE();
  10442. 800428c: 4b34 ldr r3, [pc, #208] ; (8004360 <MX_GPIO_Init+0x118>)
  10443. 800428e: 699b ldr r3, [r3, #24]
  10444. 8004290: 4a33 ldr r2, [pc, #204] ; (8004360 <MX_GPIO_Init+0x118>)
  10445. 8004292: f043 0308 orr.w r3, r3, #8
  10446. 8004296: 6193 str r3, [r2, #24]
  10447. 8004298: 4b31 ldr r3, [pc, #196] ; (8004360 <MX_GPIO_Init+0x118>)
  10448. 800429a: 699b ldr r3, [r3, #24]
  10449. 800429c: f003 0308 and.w r3, r3, #8
  10450. 80042a0: 607b str r3, [r7, #4]
  10451. 80042a2: 687b ldr r3, [r7, #4]
  10452. /*Configure GPIO pin Output Level */
  10453. HAL_GPIO_WritePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin, GPIO_PIN_RESET);
  10454. 80042a4: 2200 movs r2, #0
  10455. 80042a6: f44f 4100 mov.w r1, #32768 ; 0x8000
  10456. 80042aa: 482e ldr r0, [pc, #184] ; (8004364 <MX_GPIO_Init+0x11c>)
  10457. 80042ac: f7fe f82e bl 800230c <HAL_GPIO_WritePin>
  10458. /*Configure GPIO pin Output Level */
  10459. HAL_GPIO_WritePin(GPIOA, PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin, GPIO_PIN_RESET);
  10460. 80042b0: 2200 movs r2, #0
  10461. 80042b2: f44f 71e0 mov.w r1, #448 ; 0x1c0
  10462. 80042b6: 482c ldr r0, [pc, #176] ; (8004368 <MX_GPIO_Init+0x120>)
  10463. 80042b8: f7fe f828 bl 800230c <HAL_GPIO_WritePin>
  10464. /*Configure GPIO pin Output Level */
  10465. HAL_GPIO_WritePin(GPIOB, PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin, GPIO_PIN_RESET);
  10466. 80042bc: 2200 movs r2, #0
  10467. 80042be: f244 0103 movw r1, #16387 ; 0x4003
  10468. 80042c2: 482a ldr r0, [pc, #168] ; (800436c <MX_GPIO_Init+0x124>)
  10469. 80042c4: f7fe f822 bl 800230c <HAL_GPIO_WritePin>
  10470. /*Configure GPIO pin : BOOT_LED_Pin */
  10471. GPIO_InitStruct.Pin = BOOT_LED_Pin;
  10472. 80042c8: f44f 4300 mov.w r3, #32768 ; 0x8000
  10473. 80042cc: 613b str r3, [r7, #16]
  10474. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  10475. 80042ce: 2301 movs r3, #1
  10476. 80042d0: 617b str r3, [r7, #20]
  10477. GPIO_InitStruct.Pull = GPIO_NOPULL;
  10478. 80042d2: 2300 movs r3, #0
  10479. 80042d4: 61bb str r3, [r7, #24]
  10480. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  10481. 80042d6: 2302 movs r3, #2
  10482. 80042d8: 61fb str r3, [r7, #28]
  10483. HAL_GPIO_Init(BOOT_LED_GPIO_Port, &GPIO_InitStruct);
  10484. 80042da: f107 0310 add.w r3, r7, #16
  10485. 80042de: 4619 mov r1, r3
  10486. 80042e0: 4820 ldr r0, [pc, #128] ; (8004364 <MX_GPIO_Init+0x11c>)
  10487. 80042e2: f7fd feb9 bl 8002058 <HAL_GPIO_Init>
  10488. /*Configure GPIO pins : DC_FAIL_ALARM_Pin OVER_INPUT_ALARM_Pin OVER_TEMP_ALARM_Pin */
  10489. GPIO_InitStruct.Pin = DC_FAIL_ALARM_Pin|OVER_INPUT_ALARM_Pin|OVER_TEMP_ALARM_Pin;
  10490. 80042e6: f641 0304 movw r3, #6148 ; 0x1804
  10491. 80042ea: 613b str r3, [r7, #16]
  10492. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  10493. 80042ec: 2300 movs r3, #0
  10494. 80042ee: 617b str r3, [r7, #20]
  10495. GPIO_InitStruct.Pull = GPIO_NOPULL;
  10496. 80042f0: 2300 movs r3, #0
  10497. 80042f2: 61bb str r3, [r7, #24]
  10498. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  10499. 80042f4: f107 0310 add.w r3, r7, #16
  10500. 80042f8: 4619 mov r1, r3
  10501. 80042fa: 481b ldr r0, [pc, #108] ; (8004368 <MX_GPIO_Init+0x120>)
  10502. 80042fc: f7fd feac bl 8002058 <HAL_GPIO_Init>
  10503. /*Configure GPIO pins : PAU_RESERVED0_Pin PAU_RESERVED1_Pin AMP_EN_Pin */
  10504. GPIO_InitStruct.Pin = PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin;
  10505. 8004300: f44f 73e0 mov.w r3, #448 ; 0x1c0
  10506. 8004304: 613b str r3, [r7, #16]
  10507. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  10508. 8004306: 2301 movs r3, #1
  10509. 8004308: 617b str r3, [r7, #20]
  10510. GPIO_InitStruct.Pull = GPIO_NOPULL;
  10511. 800430a: 2300 movs r3, #0
  10512. 800430c: 61bb str r3, [r7, #24]
  10513. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  10514. 800430e: 2302 movs r3, #2
  10515. 8004310: 61fb str r3, [r7, #28]
  10516. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  10517. 8004312: f107 0310 add.w r3, r7, #16
  10518. 8004316: 4619 mov r1, r3
  10519. 8004318: 4813 ldr r0, [pc, #76] ; (8004368 <MX_GPIO_Init+0x120>)
  10520. 800431a: f7fd fe9d bl 8002058 <HAL_GPIO_Init>
  10521. /*Configure GPIO pins : PAU_RESERVED3_Pin PAU_RESERVED2_Pin PAU_RESET_Pin */
  10522. GPIO_InitStruct.Pin = PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin;
  10523. 800431e: f244 0303 movw r3, #16387 ; 0x4003
  10524. 8004322: 613b str r3, [r7, #16]
  10525. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  10526. 8004324: 2301 movs r3, #1
  10527. 8004326: 617b str r3, [r7, #20]
  10528. GPIO_InitStruct.Pull = GPIO_NOPULL;
  10529. 8004328: 2300 movs r3, #0
  10530. 800432a: 61bb str r3, [r7, #24]
  10531. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  10532. 800432c: 2302 movs r3, #2
  10533. 800432e: 61fb str r3, [r7, #28]
  10534. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  10535. 8004330: f107 0310 add.w r3, r7, #16
  10536. 8004334: 4619 mov r1, r3
  10537. 8004336: 480d ldr r0, [pc, #52] ; (800436c <MX_GPIO_Init+0x124>)
  10538. 8004338: f7fd fe8e bl 8002058 <HAL_GPIO_Init>
  10539. /*Configure GPIO pins : OVER_POWER_ALARM_Pin VSWR_ALARM_Pin PAU_EN_Pin ALC_ALARM_Pin */
  10540. GPIO_InitStruct.Pin = OVER_POWER_ALARM_Pin|VSWR_ALARM_Pin|PAU_EN_Pin|ALC_ALARM_Pin;
  10541. 800433c: f24b 0308 movw r3, #45064 ; 0xb008
  10542. 8004340: 613b str r3, [r7, #16]
  10543. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  10544. 8004342: 2300 movs r3, #0
  10545. 8004344: 617b str r3, [r7, #20]
  10546. GPIO_InitStruct.Pull = GPIO_NOPULL;
  10547. 8004346: 2300 movs r3, #0
  10548. 8004348: 61bb str r3, [r7, #24]
  10549. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  10550. 800434a: f107 0310 add.w r3, r7, #16
  10551. 800434e: 4619 mov r1, r3
  10552. 8004350: 4806 ldr r0, [pc, #24] ; (800436c <MX_GPIO_Init+0x124>)
  10553. 8004352: f7fd fe81 bl 8002058 <HAL_GPIO_Init>
  10554. }
  10555. 8004356: bf00 nop
  10556. 8004358: 3720 adds r7, #32
  10557. 800435a: 46bd mov sp, r7
  10558. 800435c: bd80 pop {r7, pc}
  10559. 800435e: bf00 nop
  10560. 8004360: 40021000 .word 0x40021000
  10561. 8004364: 40011000 .word 0x40011000
  10562. 8004368: 40010800 .word 0x40010800
  10563. 800436c: 40010c00 .word 0x40010c00
  10564. 08004370 <HAL_TIM_PeriodElapsedCallback>:
  10565. * a global variable "uwTick" used as application time base.
  10566. * @param htim : TIM handle
  10567. * @retval None
  10568. */
  10569. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  10570. {
  10571. 8004370: b580 push {r7, lr}
  10572. 8004372: b082 sub sp, #8
  10573. 8004374: af00 add r7, sp, #0
  10574. 8004376: 6078 str r0, [r7, #4]
  10575. /* USER CODE BEGIN Callback 0 */
  10576. /* USER CODE END Callback 0 */
  10577. if (htim->Instance == TIM2) {
  10578. 8004378: 687b ldr r3, [r7, #4]
  10579. 800437a: 681b ldr r3, [r3, #0]
  10580. 800437c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  10581. 8004380: d101 bne.n 8004386 <HAL_TIM_PeriodElapsedCallback+0x16>
  10582. HAL_IncTick();
  10583. 8004382: f7fc fe29 bl 8000fd8 <HAL_IncTick>
  10584. }
  10585. /* USER CODE BEGIN Callback 1 */
  10586. if(htim->Instance == TIM6){
  10587. 8004386: 687b ldr r3, [r7, #4]
  10588. 8004388: 681b ldr r3, [r3, #0]
  10589. 800438a: 4a08 ldr r2, [pc, #32] ; (80043ac <HAL_TIM_PeriodElapsedCallback+0x3c>)
  10590. 800438c: 4293 cmp r3, r2
  10591. 800438e: d109 bne.n 80043a4 <HAL_TIM_PeriodElapsedCallback+0x34>
  10592. UartRxTimerCnt++;
  10593. 8004390: 4b07 ldr r3, [pc, #28] ; (80043b0 <HAL_TIM_PeriodElapsedCallback+0x40>)
  10594. 8004392: 681b ldr r3, [r3, #0]
  10595. 8004394: 3301 adds r3, #1
  10596. 8004396: 4a06 ldr r2, [pc, #24] ; (80043b0 <HAL_TIM_PeriodElapsedCallback+0x40>)
  10597. 8004398: 6013 str r3, [r2, #0]
  10598. LED_TimerCnt++;
  10599. 800439a: 4b06 ldr r3, [pc, #24] ; (80043b4 <HAL_TIM_PeriodElapsedCallback+0x44>)
  10600. 800439c: 681b ldr r3, [r3, #0]
  10601. 800439e: 3301 adds r3, #1
  10602. 80043a0: 4a04 ldr r2, [pc, #16] ; (80043b4 <HAL_TIM_PeriodElapsedCallback+0x44>)
  10603. 80043a2: 6013 str r3, [r2, #0]
  10604. }
  10605. /* USER CODE END Callback 1 */
  10606. }
  10607. 80043a4: bf00 nop
  10608. 80043a6: 3708 adds r7, #8
  10609. 80043a8: 46bd mov sp, r7
  10610. 80043aa: bd80 pop {r7, pc}
  10611. 80043ac: 40001000 .word 0x40001000
  10612. 80043b0: 20000204 .word 0x20000204
  10613. 80043b4: 200001fc .word 0x200001fc
  10614. 080043b8 <Error_Handler>:
  10615. /**
  10616. * @brief This function is executed in case of error occurrence.
  10617. * @retval None
  10618. */
  10619. void Error_Handler(void)
  10620. {
  10621. 80043b8: b480 push {r7}
  10622. 80043ba: af00 add r7, sp, #0
  10623. /* USER CODE BEGIN Error_Handler_Debug */
  10624. /* User can add his own implementation to report the HAL error return state */
  10625. /* USER CODE END Error_Handler_Debug */
  10626. }
  10627. 80043bc: bf00 nop
  10628. 80043be: 46bd mov sp, r7
  10629. 80043c0: bc80 pop {r7}
  10630. 80043c2: 4770 bx lr
  10631. 080043c4 <HAL_MspInit>:
  10632. /* USER CODE END 0 */
  10633. /**
  10634. * Initializes the Global MSP.
  10635. */
  10636. void HAL_MspInit(void)
  10637. {
  10638. 80043c4: b480 push {r7}
  10639. 80043c6: b085 sub sp, #20
  10640. 80043c8: af00 add r7, sp, #0
  10641. /* USER CODE BEGIN MspInit 0 */
  10642. /* USER CODE END MspInit 0 */
  10643. __HAL_RCC_AFIO_CLK_ENABLE();
  10644. 80043ca: 4b15 ldr r3, [pc, #84] ; (8004420 <HAL_MspInit+0x5c>)
  10645. 80043cc: 699b ldr r3, [r3, #24]
  10646. 80043ce: 4a14 ldr r2, [pc, #80] ; (8004420 <HAL_MspInit+0x5c>)
  10647. 80043d0: f043 0301 orr.w r3, r3, #1
  10648. 80043d4: 6193 str r3, [r2, #24]
  10649. 80043d6: 4b12 ldr r3, [pc, #72] ; (8004420 <HAL_MspInit+0x5c>)
  10650. 80043d8: 699b ldr r3, [r3, #24]
  10651. 80043da: f003 0301 and.w r3, r3, #1
  10652. 80043de: 60bb str r3, [r7, #8]
  10653. 80043e0: 68bb ldr r3, [r7, #8]
  10654. __HAL_RCC_PWR_CLK_ENABLE();
  10655. 80043e2: 4b0f ldr r3, [pc, #60] ; (8004420 <HAL_MspInit+0x5c>)
  10656. 80043e4: 69db ldr r3, [r3, #28]
  10657. 80043e6: 4a0e ldr r2, [pc, #56] ; (8004420 <HAL_MspInit+0x5c>)
  10658. 80043e8: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  10659. 80043ec: 61d3 str r3, [r2, #28]
  10660. 80043ee: 4b0c ldr r3, [pc, #48] ; (8004420 <HAL_MspInit+0x5c>)
  10661. 80043f0: 69db ldr r3, [r3, #28]
  10662. 80043f2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  10663. 80043f6: 607b str r3, [r7, #4]
  10664. 80043f8: 687b ldr r3, [r7, #4]
  10665. /* System interrupt init*/
  10666. /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled
  10667. */
  10668. __HAL_AFIO_REMAP_SWJ_NOJTAG();
  10669. 80043fa: 4b0a ldr r3, [pc, #40] ; (8004424 <HAL_MspInit+0x60>)
  10670. 80043fc: 685b ldr r3, [r3, #4]
  10671. 80043fe: 60fb str r3, [r7, #12]
  10672. 8004400: 68fb ldr r3, [r7, #12]
  10673. 8004402: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000
  10674. 8004406: 60fb str r3, [r7, #12]
  10675. 8004408: 68fb ldr r3, [r7, #12]
  10676. 800440a: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000
  10677. 800440e: 60fb str r3, [r7, #12]
  10678. 8004410: 4a04 ldr r2, [pc, #16] ; (8004424 <HAL_MspInit+0x60>)
  10679. 8004412: 68fb ldr r3, [r7, #12]
  10680. 8004414: 6053 str r3, [r2, #4]
  10681. /* USER CODE BEGIN MspInit 1 */
  10682. /* USER CODE END MspInit 1 */
  10683. }
  10684. 8004416: bf00 nop
  10685. 8004418: 3714 adds r7, #20
  10686. 800441a: 46bd mov sp, r7
  10687. 800441c: bc80 pop {r7}
  10688. 800441e: 4770 bx lr
  10689. 8004420: 40021000 .word 0x40021000
  10690. 8004424: 40010000 .word 0x40010000
  10691. 08004428 <HAL_ADC_MspInit>:
  10692. * This function configures the hardware resources used in this example
  10693. * @param hadc: ADC handle pointer
  10694. * @retval None
  10695. */
  10696. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  10697. {
  10698. 8004428: b580 push {r7, lr}
  10699. 800442a: b088 sub sp, #32
  10700. 800442c: af00 add r7, sp, #0
  10701. 800442e: 6078 str r0, [r7, #4]
  10702. GPIO_InitTypeDef GPIO_InitStruct = {0};
  10703. 8004430: f107 0310 add.w r3, r7, #16
  10704. 8004434: 2200 movs r2, #0
  10705. 8004436: 601a str r2, [r3, #0]
  10706. 8004438: 605a str r2, [r3, #4]
  10707. 800443a: 609a str r2, [r3, #8]
  10708. 800443c: 60da str r2, [r3, #12]
  10709. if(hadc->Instance==ADC1)
  10710. 800443e: 687b ldr r3, [r7, #4]
  10711. 8004440: 681b ldr r3, [r3, #0]
  10712. 8004442: 4a28 ldr r2, [pc, #160] ; (80044e4 <HAL_ADC_MspInit+0xbc>)
  10713. 8004444: 4293 cmp r3, r2
  10714. 8004446: d149 bne.n 80044dc <HAL_ADC_MspInit+0xb4>
  10715. {
  10716. /* USER CODE BEGIN ADC1_MspInit 0 */
  10717. /* USER CODE END ADC1_MspInit 0 */
  10718. /* Peripheral clock enable */
  10719. __HAL_RCC_ADC1_CLK_ENABLE();
  10720. 8004448: 4b27 ldr r3, [pc, #156] ; (80044e8 <HAL_ADC_MspInit+0xc0>)
  10721. 800444a: 699b ldr r3, [r3, #24]
  10722. 800444c: 4a26 ldr r2, [pc, #152] ; (80044e8 <HAL_ADC_MspInit+0xc0>)
  10723. 800444e: f443 7300 orr.w r3, r3, #512 ; 0x200
  10724. 8004452: 6193 str r3, [r2, #24]
  10725. 8004454: 4b24 ldr r3, [pc, #144] ; (80044e8 <HAL_ADC_MspInit+0xc0>)
  10726. 8004456: 699b ldr r3, [r3, #24]
  10727. 8004458: f403 7300 and.w r3, r3, #512 ; 0x200
  10728. 800445c: 60fb str r3, [r7, #12]
  10729. 800445e: 68fb ldr r3, [r7, #12]
  10730. __HAL_RCC_GPIOA_CLK_ENABLE();
  10731. 8004460: 4b21 ldr r3, [pc, #132] ; (80044e8 <HAL_ADC_MspInit+0xc0>)
  10732. 8004462: 699b ldr r3, [r3, #24]
  10733. 8004464: 4a20 ldr r2, [pc, #128] ; (80044e8 <HAL_ADC_MspInit+0xc0>)
  10734. 8004466: f043 0304 orr.w r3, r3, #4
  10735. 800446a: 6193 str r3, [r2, #24]
  10736. 800446c: 4b1e ldr r3, [pc, #120] ; (80044e8 <HAL_ADC_MspInit+0xc0>)
  10737. 800446e: 699b ldr r3, [r3, #24]
  10738. 8004470: f003 0304 and.w r3, r3, #4
  10739. 8004474: 60bb str r3, [r7, #8]
  10740. 8004476: 68bb ldr r3, [r7, #8]
  10741. /**ADC1 GPIO Configuration
  10742. PA0-WKUP ------> ADC1_IN0
  10743. PA1 ------> ADC1_IN1
  10744. PA3 ------> ADC1_IN3
  10745. */
  10746. GPIO_InitStruct.Pin = DL_TX_DET_Pin|DL_RX_DET_Pin|PAU_TEMP_Pin;
  10747. 8004478: 230b movs r3, #11
  10748. 800447a: 613b str r3, [r7, #16]
  10749. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  10750. 800447c: 2303 movs r3, #3
  10751. 800447e: 617b str r3, [r7, #20]
  10752. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  10753. 8004480: f107 0310 add.w r3, r7, #16
  10754. 8004484: 4619 mov r1, r3
  10755. 8004486: 4819 ldr r0, [pc, #100] ; (80044ec <HAL_ADC_MspInit+0xc4>)
  10756. 8004488: f7fd fde6 bl 8002058 <HAL_GPIO_Init>
  10757. /* ADC1 DMA Init */
  10758. /* ADC1 Init */
  10759. hdma_adc1.Instance = DMA1_Channel1;
  10760. 800448c: 4b18 ldr r3, [pc, #96] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10761. 800448e: 4a19 ldr r2, [pc, #100] ; (80044f4 <HAL_ADC_MspInit+0xcc>)
  10762. 8004490: 601a str r2, [r3, #0]
  10763. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  10764. 8004492: 4b17 ldr r3, [pc, #92] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10765. 8004494: 2200 movs r2, #0
  10766. 8004496: 605a str r2, [r3, #4]
  10767. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  10768. 8004498: 4b15 ldr r3, [pc, #84] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10769. 800449a: 2200 movs r2, #0
  10770. 800449c: 609a str r2, [r3, #8]
  10771. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  10772. 800449e: 4b14 ldr r3, [pc, #80] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10773. 80044a0: 2280 movs r2, #128 ; 0x80
  10774. 80044a2: 60da str r2, [r3, #12]
  10775. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  10776. 80044a4: 4b12 ldr r3, [pc, #72] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10777. 80044a6: f44f 7280 mov.w r2, #256 ; 0x100
  10778. 80044aa: 611a str r2, [r3, #16]
  10779. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  10780. 80044ac: 4b10 ldr r3, [pc, #64] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10781. 80044ae: f44f 6280 mov.w r2, #1024 ; 0x400
  10782. 80044b2: 615a str r2, [r3, #20]
  10783. hdma_adc1.Init.Mode = DMA_CIRCULAR;
  10784. 80044b4: 4b0e ldr r3, [pc, #56] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10785. 80044b6: 2220 movs r2, #32
  10786. 80044b8: 619a str r2, [r3, #24]
  10787. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  10788. 80044ba: 4b0d ldr r3, [pc, #52] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10789. 80044bc: 2200 movs r2, #0
  10790. 80044be: 61da str r2, [r3, #28]
  10791. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  10792. 80044c0: 480b ldr r0, [pc, #44] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10793. 80044c2: f7fd fb65 bl 8001b90 <HAL_DMA_Init>
  10794. 80044c6: 4603 mov r3, r0
  10795. 80044c8: 2b00 cmp r3, #0
  10796. 80044ca: d001 beq.n 80044d0 <HAL_ADC_MspInit+0xa8>
  10797. {
  10798. Error_Handler();
  10799. 80044cc: f7ff ff74 bl 80043b8 <Error_Handler>
  10800. }
  10801. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  10802. 80044d0: 687b ldr r3, [r7, #4]
  10803. 80044d2: 4a07 ldr r2, [pc, #28] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10804. 80044d4: 621a str r2, [r3, #32]
  10805. 80044d6: 4a06 ldr r2, [pc, #24] ; (80044f0 <HAL_ADC_MspInit+0xc8>)
  10806. 80044d8: 687b ldr r3, [r7, #4]
  10807. 80044da: 6253 str r3, [r2, #36] ; 0x24
  10808. /* USER CODE BEGIN ADC1_MspInit 1 */
  10809. /* USER CODE END ADC1_MspInit 1 */
  10810. }
  10811. }
  10812. 80044dc: bf00 nop
  10813. 80044de: 3720 adds r7, #32
  10814. 80044e0: 46bd mov sp, r7
  10815. 80044e2: bd80 pop {r7, pc}
  10816. 80044e4: 40012400 .word 0x40012400
  10817. 80044e8: 40021000 .word 0x40021000
  10818. 80044ec: 40010800 .word 0x40010800
  10819. 80044f0: 20000574 .word 0x20000574
  10820. 80044f4: 40020008 .word 0x40020008
  10821. 080044f8 <HAL_TIM_Base_MspInit>:
  10822. * This function configures the hardware resources used in this example
  10823. * @param htim_base: TIM_Base handle pointer
  10824. * @retval None
  10825. */
  10826. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  10827. {
  10828. 80044f8: b480 push {r7}
  10829. 80044fa: b085 sub sp, #20
  10830. 80044fc: af00 add r7, sp, #0
  10831. 80044fe: 6078 str r0, [r7, #4]
  10832. if(htim_base->Instance==TIM6)
  10833. 8004500: 687b ldr r3, [r7, #4]
  10834. 8004502: 681b ldr r3, [r3, #0]
  10835. 8004504: 4a09 ldr r2, [pc, #36] ; (800452c <HAL_TIM_Base_MspInit+0x34>)
  10836. 8004506: 4293 cmp r3, r2
  10837. 8004508: d10b bne.n 8004522 <HAL_TIM_Base_MspInit+0x2a>
  10838. {
  10839. /* USER CODE BEGIN TIM6_MspInit 0 */
  10840. /* USER CODE END TIM6_MspInit 0 */
  10841. /* Peripheral clock enable */
  10842. __HAL_RCC_TIM6_CLK_ENABLE();
  10843. 800450a: 4b09 ldr r3, [pc, #36] ; (8004530 <HAL_TIM_Base_MspInit+0x38>)
  10844. 800450c: 69db ldr r3, [r3, #28]
  10845. 800450e: 4a08 ldr r2, [pc, #32] ; (8004530 <HAL_TIM_Base_MspInit+0x38>)
  10846. 8004510: f043 0310 orr.w r3, r3, #16
  10847. 8004514: 61d3 str r3, [r2, #28]
  10848. 8004516: 4b06 ldr r3, [pc, #24] ; (8004530 <HAL_TIM_Base_MspInit+0x38>)
  10849. 8004518: 69db ldr r3, [r3, #28]
  10850. 800451a: f003 0310 and.w r3, r3, #16
  10851. 800451e: 60fb str r3, [r7, #12]
  10852. 8004520: 68fb ldr r3, [r7, #12]
  10853. /* USER CODE BEGIN TIM6_MspInit 1 */
  10854. /* USER CODE END TIM6_MspInit 1 */
  10855. }
  10856. }
  10857. 8004522: bf00 nop
  10858. 8004524: 3714 adds r7, #20
  10859. 8004526: 46bd mov sp, r7
  10860. 8004528: bc80 pop {r7}
  10861. 800452a: 4770 bx lr
  10862. 800452c: 40001000 .word 0x40001000
  10863. 8004530: 40021000 .word 0x40021000
  10864. 08004534 <HAL_UART_MspInit>:
  10865. * This function configures the hardware resources used in this example
  10866. * @param huart: UART handle pointer
  10867. * @retval None
  10868. */
  10869. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  10870. {
  10871. 8004534: b580 push {r7, lr}
  10872. 8004536: b08a sub sp, #40 ; 0x28
  10873. 8004538: af00 add r7, sp, #0
  10874. 800453a: 6078 str r0, [r7, #4]
  10875. GPIO_InitTypeDef GPIO_InitStruct = {0};
  10876. 800453c: f107 0318 add.w r3, r7, #24
  10877. 8004540: 2200 movs r2, #0
  10878. 8004542: 601a str r2, [r3, #0]
  10879. 8004544: 605a str r2, [r3, #4]
  10880. 8004546: 609a str r2, [r3, #8]
  10881. 8004548: 60da str r2, [r3, #12]
  10882. if(huart->Instance==USART1)
  10883. 800454a: 687b ldr r3, [r7, #4]
  10884. 800454c: 681b ldr r3, [r3, #0]
  10885. 800454e: 4a5e ldr r2, [pc, #376] ; (80046c8 <HAL_UART_MspInit+0x194>)
  10886. 8004550: 4293 cmp r3, r2
  10887. 8004552: d158 bne.n 8004606 <HAL_UART_MspInit+0xd2>
  10888. {
  10889. /* USER CODE BEGIN USART1_MspInit 0 */
  10890. /* USER CODE END USART1_MspInit 0 */
  10891. /* Peripheral clock enable */
  10892. __HAL_RCC_USART1_CLK_ENABLE();
  10893. 8004554: 4b5d ldr r3, [pc, #372] ; (80046cc <HAL_UART_MspInit+0x198>)
  10894. 8004556: 699b ldr r3, [r3, #24]
  10895. 8004558: 4a5c ldr r2, [pc, #368] ; (80046cc <HAL_UART_MspInit+0x198>)
  10896. 800455a: f443 4380 orr.w r3, r3, #16384 ; 0x4000
  10897. 800455e: 6193 str r3, [r2, #24]
  10898. 8004560: 4b5a ldr r3, [pc, #360] ; (80046cc <HAL_UART_MspInit+0x198>)
  10899. 8004562: 699b ldr r3, [r3, #24]
  10900. 8004564: f403 4380 and.w r3, r3, #16384 ; 0x4000
  10901. 8004568: 617b str r3, [r7, #20]
  10902. 800456a: 697b ldr r3, [r7, #20]
  10903. __HAL_RCC_GPIOA_CLK_ENABLE();
  10904. 800456c: 4b57 ldr r3, [pc, #348] ; (80046cc <HAL_UART_MspInit+0x198>)
  10905. 800456e: 699b ldr r3, [r3, #24]
  10906. 8004570: 4a56 ldr r2, [pc, #344] ; (80046cc <HAL_UART_MspInit+0x198>)
  10907. 8004572: f043 0304 orr.w r3, r3, #4
  10908. 8004576: 6193 str r3, [r2, #24]
  10909. 8004578: 4b54 ldr r3, [pc, #336] ; (80046cc <HAL_UART_MspInit+0x198>)
  10910. 800457a: 699b ldr r3, [r3, #24]
  10911. 800457c: f003 0304 and.w r3, r3, #4
  10912. 8004580: 613b str r3, [r7, #16]
  10913. 8004582: 693b ldr r3, [r7, #16]
  10914. /**USART1 GPIO Configuration
  10915. PA9 ------> USART1_TX
  10916. PA10 ------> USART1_RX
  10917. */
  10918. GPIO_InitStruct.Pin = GPIO_PIN_9;
  10919. 8004584: f44f 7300 mov.w r3, #512 ; 0x200
  10920. 8004588: 61bb str r3, [r7, #24]
  10921. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  10922. 800458a: 2302 movs r3, #2
  10923. 800458c: 61fb str r3, [r7, #28]
  10924. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  10925. 800458e: 2303 movs r3, #3
  10926. 8004590: 627b str r3, [r7, #36] ; 0x24
  10927. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  10928. 8004592: f107 0318 add.w r3, r7, #24
  10929. 8004596: 4619 mov r1, r3
  10930. 8004598: 484d ldr r0, [pc, #308] ; (80046d0 <HAL_UART_MspInit+0x19c>)
  10931. 800459a: f7fd fd5d bl 8002058 <HAL_GPIO_Init>
  10932. GPIO_InitStruct.Pin = GPIO_PIN_10;
  10933. 800459e: f44f 6380 mov.w r3, #1024 ; 0x400
  10934. 80045a2: 61bb str r3, [r7, #24]
  10935. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  10936. 80045a4: 2300 movs r3, #0
  10937. 80045a6: 61fb str r3, [r7, #28]
  10938. GPIO_InitStruct.Pull = GPIO_NOPULL;
  10939. 80045a8: 2300 movs r3, #0
  10940. 80045aa: 623b str r3, [r7, #32]
  10941. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  10942. 80045ac: f107 0318 add.w r3, r7, #24
  10943. 80045b0: 4619 mov r1, r3
  10944. 80045b2: 4847 ldr r0, [pc, #284] ; (80046d0 <HAL_UART_MspInit+0x19c>)
  10945. 80045b4: f7fd fd50 bl 8002058 <HAL_GPIO_Init>
  10946. /* USART1 DMA Init */
  10947. /* USART1_TX Init */
  10948. hdma_usart1_tx.Instance = DMA1_Channel4;
  10949. 80045b8: 4b46 ldr r3, [pc, #280] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10950. 80045ba: 4a47 ldr r2, [pc, #284] ; (80046d8 <HAL_UART_MspInit+0x1a4>)
  10951. 80045bc: 601a str r2, [r3, #0]
  10952. hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  10953. 80045be: 4b45 ldr r3, [pc, #276] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10954. 80045c0: 2210 movs r2, #16
  10955. 80045c2: 605a str r2, [r3, #4]
  10956. hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  10957. 80045c4: 4b43 ldr r3, [pc, #268] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10958. 80045c6: 2200 movs r2, #0
  10959. 80045c8: 609a str r2, [r3, #8]
  10960. hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE;
  10961. 80045ca: 4b42 ldr r3, [pc, #264] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10962. 80045cc: 2280 movs r2, #128 ; 0x80
  10963. 80045ce: 60da str r2, [r3, #12]
  10964. hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  10965. 80045d0: 4b40 ldr r3, [pc, #256] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10966. 80045d2: 2200 movs r2, #0
  10967. 80045d4: 611a str r2, [r3, #16]
  10968. hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  10969. 80045d6: 4b3f ldr r3, [pc, #252] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10970. 80045d8: 2200 movs r2, #0
  10971. 80045da: 615a str r2, [r3, #20]
  10972. hdma_usart1_tx.Init.Mode = DMA_NORMAL;
  10973. 80045dc: 4b3d ldr r3, [pc, #244] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10974. 80045de: 2200 movs r2, #0
  10975. 80045e0: 619a str r2, [r3, #24]
  10976. hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW;
  10977. 80045e2: 4b3c ldr r3, [pc, #240] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10978. 80045e4: 2200 movs r2, #0
  10979. 80045e6: 61da str r2, [r3, #28]
  10980. if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK)
  10981. 80045e8: 483a ldr r0, [pc, #232] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10982. 80045ea: f7fd fad1 bl 8001b90 <HAL_DMA_Init>
  10983. 80045ee: 4603 mov r3, r0
  10984. 80045f0: 2b00 cmp r3, #0
  10985. 80045f2: d001 beq.n 80045f8 <HAL_UART_MspInit+0xc4>
  10986. {
  10987. Error_Handler();
  10988. 80045f4: f7ff fee0 bl 80043b8 <Error_Handler>
  10989. }
  10990. __HAL_LINKDMA(huart,hdmatx,hdma_usart1_tx);
  10991. 80045f8: 687b ldr r3, [r7, #4]
  10992. 80045fa: 4a36 ldr r2, [pc, #216] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10993. 80045fc: 631a str r2, [r3, #48] ; 0x30
  10994. 80045fe: 4a35 ldr r2, [pc, #212] ; (80046d4 <HAL_UART_MspInit+0x1a0>)
  10995. 8004600: 687b ldr r3, [r7, #4]
  10996. 8004602: 6253 str r3, [r2, #36] ; 0x24
  10997. /* USER CODE BEGIN USART3_MspInit 1 */
  10998. /* USER CODE END USART3_MspInit 1 */
  10999. }
  11000. }
  11001. 8004604: e05c b.n 80046c0 <HAL_UART_MspInit+0x18c>
  11002. else if(huart->Instance==USART3)
  11003. 8004606: 687b ldr r3, [r7, #4]
  11004. 8004608: 681b ldr r3, [r3, #0]
  11005. 800460a: 4a34 ldr r2, [pc, #208] ; (80046dc <HAL_UART_MspInit+0x1a8>)
  11006. 800460c: 4293 cmp r3, r2
  11007. 800460e: d157 bne.n 80046c0 <HAL_UART_MspInit+0x18c>
  11008. __HAL_RCC_USART3_CLK_ENABLE();
  11009. 8004610: 4b2e ldr r3, [pc, #184] ; (80046cc <HAL_UART_MspInit+0x198>)
  11010. 8004612: 69db ldr r3, [r3, #28]
  11011. 8004614: 4a2d ldr r2, [pc, #180] ; (80046cc <HAL_UART_MspInit+0x198>)
  11012. 8004616: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  11013. 800461a: 61d3 str r3, [r2, #28]
  11014. 800461c: 4b2b ldr r3, [pc, #172] ; (80046cc <HAL_UART_MspInit+0x198>)
  11015. 800461e: 69db ldr r3, [r3, #28]
  11016. 8004620: f403 2380 and.w r3, r3, #262144 ; 0x40000
  11017. 8004624: 60fb str r3, [r7, #12]
  11018. 8004626: 68fb ldr r3, [r7, #12]
  11019. __HAL_RCC_GPIOB_CLK_ENABLE();
  11020. 8004628: 4b28 ldr r3, [pc, #160] ; (80046cc <HAL_UART_MspInit+0x198>)
  11021. 800462a: 699b ldr r3, [r3, #24]
  11022. 800462c: 4a27 ldr r2, [pc, #156] ; (80046cc <HAL_UART_MspInit+0x198>)
  11023. 800462e: f043 0308 orr.w r3, r3, #8
  11024. 8004632: 6193 str r3, [r2, #24]
  11025. 8004634: 4b25 ldr r3, [pc, #148] ; (80046cc <HAL_UART_MspInit+0x198>)
  11026. 8004636: 699b ldr r3, [r3, #24]
  11027. 8004638: f003 0308 and.w r3, r3, #8
  11028. 800463c: 60bb str r3, [r7, #8]
  11029. 800463e: 68bb ldr r3, [r7, #8]
  11030. GPIO_InitStruct.Pin = GPIO_PIN_10;
  11031. 8004640: f44f 6380 mov.w r3, #1024 ; 0x400
  11032. 8004644: 61bb str r3, [r7, #24]
  11033. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  11034. 8004646: 2302 movs r3, #2
  11035. 8004648: 61fb str r3, [r7, #28]
  11036. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  11037. 800464a: 2303 movs r3, #3
  11038. 800464c: 627b str r3, [r7, #36] ; 0x24
  11039. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  11040. 800464e: f107 0318 add.w r3, r7, #24
  11041. 8004652: 4619 mov r1, r3
  11042. 8004654: 4822 ldr r0, [pc, #136] ; (80046e0 <HAL_UART_MspInit+0x1ac>)
  11043. 8004656: f7fd fcff bl 8002058 <HAL_GPIO_Init>
  11044. GPIO_InitStruct.Pin = GPIO_PIN_11;
  11045. 800465a: f44f 6300 mov.w r3, #2048 ; 0x800
  11046. 800465e: 61bb str r3, [r7, #24]
  11047. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  11048. 8004660: 2300 movs r3, #0
  11049. 8004662: 61fb str r3, [r7, #28]
  11050. GPIO_InitStruct.Pull = GPIO_NOPULL;
  11051. 8004664: 2300 movs r3, #0
  11052. 8004666: 623b str r3, [r7, #32]
  11053. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  11054. 8004668: f107 0318 add.w r3, r7, #24
  11055. 800466c: 4619 mov r1, r3
  11056. 800466e: 481c ldr r0, [pc, #112] ; (80046e0 <HAL_UART_MspInit+0x1ac>)
  11057. 8004670: f7fd fcf2 bl 8002058 <HAL_GPIO_Init>
  11058. hdma_usart3_tx.Instance = DMA1_Channel2;
  11059. 8004674: 4b1b ldr r3, [pc, #108] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11060. 8004676: 4a1c ldr r2, [pc, #112] ; (80046e8 <HAL_UART_MspInit+0x1b4>)
  11061. 8004678: 601a str r2, [r3, #0]
  11062. hdma_usart3_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  11063. 800467a: 4b1a ldr r3, [pc, #104] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11064. 800467c: 2210 movs r2, #16
  11065. 800467e: 605a str r2, [r3, #4]
  11066. hdma_usart3_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  11067. 8004680: 4b18 ldr r3, [pc, #96] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11068. 8004682: 2200 movs r2, #0
  11069. 8004684: 609a str r2, [r3, #8]
  11070. hdma_usart3_tx.Init.MemInc = DMA_MINC_ENABLE;
  11071. 8004686: 4b17 ldr r3, [pc, #92] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11072. 8004688: 2280 movs r2, #128 ; 0x80
  11073. 800468a: 60da str r2, [r3, #12]
  11074. hdma_usart3_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  11075. 800468c: 4b15 ldr r3, [pc, #84] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11076. 800468e: 2200 movs r2, #0
  11077. 8004690: 611a str r2, [r3, #16]
  11078. hdma_usart3_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  11079. 8004692: 4b14 ldr r3, [pc, #80] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11080. 8004694: 2200 movs r2, #0
  11081. 8004696: 615a str r2, [r3, #20]
  11082. hdma_usart3_tx.Init.Mode = DMA_NORMAL;
  11083. 8004698: 4b12 ldr r3, [pc, #72] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11084. 800469a: 2200 movs r2, #0
  11085. 800469c: 619a str r2, [r3, #24]
  11086. hdma_usart3_tx.Init.Priority = DMA_PRIORITY_LOW;
  11087. 800469e: 4b11 ldr r3, [pc, #68] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11088. 80046a0: 2200 movs r2, #0
  11089. 80046a2: 61da str r2, [r3, #28]
  11090. if (HAL_DMA_Init(&hdma_usart3_tx) != HAL_OK)
  11091. 80046a4: 480f ldr r0, [pc, #60] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11092. 80046a6: f7fd fa73 bl 8001b90 <HAL_DMA_Init>
  11093. 80046aa: 4603 mov r3, r0
  11094. 80046ac: 2b00 cmp r3, #0
  11095. 80046ae: d001 beq.n 80046b4 <HAL_UART_MspInit+0x180>
  11096. Error_Handler();
  11097. 80046b0: f7ff fe82 bl 80043b8 <Error_Handler>
  11098. __HAL_LINKDMA(huart,hdmatx,hdma_usart3_tx);
  11099. 80046b4: 687b ldr r3, [r7, #4]
  11100. 80046b6: 4a0b ldr r2, [pc, #44] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11101. 80046b8: 631a str r2, [r3, #48] ; 0x30
  11102. 80046ba: 4a0a ldr r2, [pc, #40] ; (80046e4 <HAL_UART_MspInit+0x1b0>)
  11103. 80046bc: 687b ldr r3, [r7, #4]
  11104. 80046be: 6253 str r3, [r2, #36] ; 0x24
  11105. }
  11106. 80046c0: bf00 nop
  11107. 80046c2: 3728 adds r7, #40 ; 0x28
  11108. 80046c4: 46bd mov sp, r7
  11109. 80046c6: bd80 pop {r7, pc}
  11110. 80046c8: 40013800 .word 0x40013800
  11111. 80046cc: 40021000 .word 0x40021000
  11112. 80046d0: 40010800 .word 0x40010800
  11113. 80046d4: 200004c0 .word 0x200004c0
  11114. 80046d8: 40020044 .word 0x40020044
  11115. 80046dc: 40004800 .word 0x40004800
  11116. 80046e0: 40010c00 .word 0x40010c00
  11117. 80046e4: 2000047c .word 0x2000047c
  11118. 80046e8: 4002001c .word 0x4002001c
  11119. 080046ec <HAL_InitTick>:
  11120. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  11121. * @param TickPriority: Tick interrupt priority.
  11122. * @retval HAL status
  11123. */
  11124. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  11125. {
  11126. 80046ec: b580 push {r7, lr}
  11127. 80046ee: b08c sub sp, #48 ; 0x30
  11128. 80046f0: af00 add r7, sp, #0
  11129. 80046f2: 6078 str r0, [r7, #4]
  11130. RCC_ClkInitTypeDef clkconfig;
  11131. uint32_t uwTimclock = 0;
  11132. 80046f4: 2300 movs r3, #0
  11133. 80046f6: 62fb str r3, [r7, #44] ; 0x2c
  11134. uint32_t uwPrescalerValue = 0;
  11135. 80046f8: 2300 movs r3, #0
  11136. 80046fa: 62bb str r3, [r7, #40] ; 0x28
  11137. uint32_t pFLatency;
  11138. /*Configure the TIM2 IRQ priority */
  11139. HAL_NVIC_SetPriority(TIM2_IRQn, TickPriority ,0);
  11140. 80046fc: 2200 movs r2, #0
  11141. 80046fe: 6879 ldr r1, [r7, #4]
  11142. 8004700: 201c movs r0, #28
  11143. 8004702: f7fd fa1a bl 8001b3a <HAL_NVIC_SetPriority>
  11144. /* Enable the TIM2 global Interrupt */
  11145. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  11146. 8004706: 201c movs r0, #28
  11147. 8004708: f7fd fa33 bl 8001b72 <HAL_NVIC_EnableIRQ>
  11148. /* Enable TIM2 clock */
  11149. __HAL_RCC_TIM2_CLK_ENABLE();
  11150. 800470c: 4b1f ldr r3, [pc, #124] ; (800478c <HAL_InitTick+0xa0>)
  11151. 800470e: 69db ldr r3, [r3, #28]
  11152. 8004710: 4a1e ldr r2, [pc, #120] ; (800478c <HAL_InitTick+0xa0>)
  11153. 8004712: f043 0301 orr.w r3, r3, #1
  11154. 8004716: 61d3 str r3, [r2, #28]
  11155. 8004718: 4b1c ldr r3, [pc, #112] ; (800478c <HAL_InitTick+0xa0>)
  11156. 800471a: 69db ldr r3, [r3, #28]
  11157. 800471c: f003 0301 and.w r3, r3, #1
  11158. 8004720: 60fb str r3, [r7, #12]
  11159. 8004722: 68fb ldr r3, [r7, #12]
  11160. /* Get clock configuration */
  11161. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  11162. 8004724: f107 0210 add.w r2, r7, #16
  11163. 8004728: f107 0314 add.w r3, r7, #20
  11164. 800472c: 4611 mov r1, r2
  11165. 800472e: 4618 mov r0, r3
  11166. 8004730: f7fe f9ea bl 8002b08 <HAL_RCC_GetClockConfig>
  11167. /* Compute TIM2 clock */
  11168. uwTimclock = HAL_RCC_GetPCLK1Freq();
  11169. 8004734: f7fe f9c0 bl 8002ab8 <HAL_RCC_GetPCLK1Freq>
  11170. 8004738: 62f8 str r0, [r7, #44] ; 0x2c
  11171. /* Compute the prescaler value to have TIM2 counter clock equal to 1MHz */
  11172. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000) - 1);
  11173. 800473a: 6afb ldr r3, [r7, #44] ; 0x2c
  11174. 800473c: 4a14 ldr r2, [pc, #80] ; (8004790 <HAL_InitTick+0xa4>)
  11175. 800473e: fba2 2303 umull r2, r3, r2, r3
  11176. 8004742: 0c9b lsrs r3, r3, #18
  11177. 8004744: 3b01 subs r3, #1
  11178. 8004746: 62bb str r3, [r7, #40] ; 0x28
  11179. /* Initialize TIM2 */
  11180. htim2.Instance = TIM2;
  11181. 8004748: 4b12 ldr r3, [pc, #72] ; (8004794 <HAL_InitTick+0xa8>)
  11182. 800474a: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
  11183. 800474e: 601a str r2, [r3, #0]
  11184. + Period = [(TIM2CLK/1000) - 1]. to have a (1/1000) s time base.
  11185. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  11186. + ClockDivision = 0
  11187. + Counter direction = Up
  11188. */
  11189. htim2.Init.Period = (1000000 / 1000) - 1;
  11190. 8004750: 4b10 ldr r3, [pc, #64] ; (8004794 <HAL_InitTick+0xa8>)
  11191. 8004752: f240 32e7 movw r2, #999 ; 0x3e7
  11192. 8004756: 60da str r2, [r3, #12]
  11193. htim2.Init.Prescaler = uwPrescalerValue;
  11194. 8004758: 4a0e ldr r2, [pc, #56] ; (8004794 <HAL_InitTick+0xa8>)
  11195. 800475a: 6abb ldr r3, [r7, #40] ; 0x28
  11196. 800475c: 6053 str r3, [r2, #4]
  11197. htim2.Init.ClockDivision = 0;
  11198. 800475e: 4b0d ldr r3, [pc, #52] ; (8004794 <HAL_InitTick+0xa8>)
  11199. 8004760: 2200 movs r2, #0
  11200. 8004762: 611a str r2, [r3, #16]
  11201. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  11202. 8004764: 4b0b ldr r3, [pc, #44] ; (8004794 <HAL_InitTick+0xa8>)
  11203. 8004766: 2200 movs r2, #0
  11204. 8004768: 609a str r2, [r3, #8]
  11205. if(HAL_TIM_Base_Init(&htim2) == HAL_OK)
  11206. 800476a: 480a ldr r0, [pc, #40] ; (8004794 <HAL_InitTick+0xa8>)
  11207. 800476c: f7fe fb14 bl 8002d98 <HAL_TIM_Base_Init>
  11208. 8004770: 4603 mov r3, r0
  11209. 8004772: 2b00 cmp r3, #0
  11210. 8004774: d104 bne.n 8004780 <HAL_InitTick+0x94>
  11211. {
  11212. /* Start the TIM time Base generation in interrupt mode */
  11213. return HAL_TIM_Base_Start_IT(&htim2);
  11214. 8004776: 4807 ldr r0, [pc, #28] ; (8004794 <HAL_InitTick+0xa8>)
  11215. 8004778: f7fe fb39 bl 8002dee <HAL_TIM_Base_Start_IT>
  11216. 800477c: 4603 mov r3, r0
  11217. 800477e: e000 b.n 8004782 <HAL_InitTick+0x96>
  11218. }
  11219. /* Return function status */
  11220. return HAL_ERROR;
  11221. 8004780: 2301 movs r3, #1
  11222. }
  11223. 8004782: 4618 mov r0, r3
  11224. 8004784: 3730 adds r7, #48 ; 0x30
  11225. 8004786: 46bd mov sp, r7
  11226. 8004788: bd80 pop {r7, pc}
  11227. 800478a: bf00 nop
  11228. 800478c: 40021000 .word 0x40021000
  11229. 8004790: 431bde83 .word 0x431bde83
  11230. 8004794: 200005f8 .word 0x200005f8
  11231. 08004798 <NMI_Handler>:
  11232. /******************************************************************************/
  11233. /**
  11234. * @brief This function handles Non maskable interrupt.
  11235. */
  11236. void NMI_Handler(void)
  11237. {
  11238. 8004798: b480 push {r7}
  11239. 800479a: af00 add r7, sp, #0
  11240. /* USER CODE END NonMaskableInt_IRQn 0 */
  11241. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  11242. /* USER CODE END NonMaskableInt_IRQn 1 */
  11243. }
  11244. 800479c: bf00 nop
  11245. 800479e: 46bd mov sp, r7
  11246. 80047a0: bc80 pop {r7}
  11247. 80047a2: 4770 bx lr
  11248. 080047a4 <HardFault_Handler>:
  11249. /**
  11250. * @brief This function handles Hard fault interrupt.
  11251. */
  11252. void HardFault_Handler(void)
  11253. {
  11254. 80047a4: b480 push {r7}
  11255. 80047a6: af00 add r7, sp, #0
  11256. /* USER CODE BEGIN HardFault_IRQn 0 */
  11257. /* USER CODE END HardFault_IRQn 0 */
  11258. while (1)
  11259. 80047a8: e7fe b.n 80047a8 <HardFault_Handler+0x4>
  11260. 080047aa <MemManage_Handler>:
  11261. /**
  11262. * @brief This function handles Memory management fault.
  11263. */
  11264. void MemManage_Handler(void)
  11265. {
  11266. 80047aa: b480 push {r7}
  11267. 80047ac: af00 add r7, sp, #0
  11268. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  11269. /* USER CODE END MemoryManagement_IRQn 0 */
  11270. while (1)
  11271. 80047ae: e7fe b.n 80047ae <MemManage_Handler+0x4>
  11272. 080047b0 <BusFault_Handler>:
  11273. /**
  11274. * @brief This function handles Prefetch fault, memory access fault.
  11275. */
  11276. void BusFault_Handler(void)
  11277. {
  11278. 80047b0: b480 push {r7}
  11279. 80047b2: af00 add r7, sp, #0
  11280. /* USER CODE BEGIN BusFault_IRQn 0 */
  11281. /* USER CODE END BusFault_IRQn 0 */
  11282. while (1)
  11283. 80047b4: e7fe b.n 80047b4 <BusFault_Handler+0x4>
  11284. 080047b6 <UsageFault_Handler>:
  11285. /**
  11286. * @brief This function handles Undefined instruction or illegal state.
  11287. */
  11288. void UsageFault_Handler(void)
  11289. {
  11290. 80047b6: b480 push {r7}
  11291. 80047b8: af00 add r7, sp, #0
  11292. /* USER CODE BEGIN UsageFault_IRQn 0 */
  11293. /* USER CODE END UsageFault_IRQn 0 */
  11294. while (1)
  11295. 80047ba: e7fe b.n 80047ba <UsageFault_Handler+0x4>
  11296. 080047bc <SVC_Handler>:
  11297. /**
  11298. * @brief This function handles System service call via SWI instruction.
  11299. */
  11300. void SVC_Handler(void)
  11301. {
  11302. 80047bc: b480 push {r7}
  11303. 80047be: af00 add r7, sp, #0
  11304. /* USER CODE END SVCall_IRQn 0 */
  11305. /* USER CODE BEGIN SVCall_IRQn 1 */
  11306. /* USER CODE END SVCall_IRQn 1 */
  11307. }
  11308. 80047c0: bf00 nop
  11309. 80047c2: 46bd mov sp, r7
  11310. 80047c4: bc80 pop {r7}
  11311. 80047c6: 4770 bx lr
  11312. 080047c8 <DebugMon_Handler>:
  11313. /**
  11314. * @brief This function handles Debug monitor.
  11315. */
  11316. void DebugMon_Handler(void)
  11317. {
  11318. 80047c8: b480 push {r7}
  11319. 80047ca: af00 add r7, sp, #0
  11320. /* USER CODE END DebugMonitor_IRQn 0 */
  11321. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  11322. /* USER CODE END DebugMonitor_IRQn 1 */
  11323. }
  11324. 80047cc: bf00 nop
  11325. 80047ce: 46bd mov sp, r7
  11326. 80047d0: bc80 pop {r7}
  11327. 80047d2: 4770 bx lr
  11328. 080047d4 <PendSV_Handler>:
  11329. /**
  11330. * @brief This function handles Pendable request for system service.
  11331. */
  11332. void PendSV_Handler(void)
  11333. {
  11334. 80047d4: b480 push {r7}
  11335. 80047d6: af00 add r7, sp, #0
  11336. /* USER CODE END PendSV_IRQn 0 */
  11337. /* USER CODE BEGIN PendSV_IRQn 1 */
  11338. /* USER CODE END PendSV_IRQn 1 */
  11339. }
  11340. 80047d8: bf00 nop
  11341. 80047da: 46bd mov sp, r7
  11342. 80047dc: bc80 pop {r7}
  11343. 80047de: 4770 bx lr
  11344. 080047e0 <DMA1_Channel1_IRQHandler>:
  11345. /**
  11346. * @brief This function handles DMA1 channel1 global interrupt.
  11347. */
  11348. void DMA1_Channel1_IRQHandler(void)
  11349. {
  11350. 80047e0: b580 push {r7, lr}
  11351. 80047e2: af00 add r7, sp, #0
  11352. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  11353. /* USER CODE END DMA1_Channel1_IRQn 0 */
  11354. HAL_DMA_IRQHandler(&hdma_adc1);
  11355. 80047e4: 4802 ldr r0, [pc, #8] ; (80047f0 <DMA1_Channel1_IRQHandler+0x10>)
  11356. 80047e6: f7fd fb03 bl 8001df0 <HAL_DMA_IRQHandler>
  11357. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  11358. /* USER CODE END DMA1_Channel1_IRQn 1 */
  11359. }
  11360. 80047ea: bf00 nop
  11361. 80047ec: bd80 pop {r7, pc}
  11362. 80047ee: bf00 nop
  11363. 80047f0: 20000574 .word 0x20000574
  11364. 080047f4 <DMA1_Channel2_IRQHandler>:
  11365. /**
  11366. * @brief This function handles DMA1 channel2 global interrupt.
  11367. */
  11368. void DMA1_Channel2_IRQHandler(void)
  11369. {
  11370. 80047f4: b580 push {r7, lr}
  11371. 80047f6: af00 add r7, sp, #0
  11372. /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
  11373. /* USER CODE END DMA1_Channel2_IRQn 0 */
  11374. HAL_DMA_IRQHandler(&hdma_usart3_tx);
  11375. 80047f8: 4802 ldr r0, [pc, #8] ; (8004804 <DMA1_Channel2_IRQHandler+0x10>)
  11376. 80047fa: f7fd faf9 bl 8001df0 <HAL_DMA_IRQHandler>
  11377. /* USER CODE BEGIN DMA1_Channel2_IRQn 1 */
  11378. /* USER CODE END DMA1_Channel2_IRQn 1 */
  11379. }
  11380. 80047fe: bf00 nop
  11381. 8004800: bd80 pop {r7, pc}
  11382. 8004802: bf00 nop
  11383. 8004804: 2000047c .word 0x2000047c
  11384. 08004808 <DMA1_Channel4_IRQHandler>:
  11385. /**
  11386. * @brief This function handles DMA1 channel4 global interrupt.
  11387. */
  11388. void DMA1_Channel4_IRQHandler(void)
  11389. {
  11390. 8004808: b580 push {r7, lr}
  11391. 800480a: af00 add r7, sp, #0
  11392. /* USER CODE BEGIN DMA1_Channel4_IRQn 0 */
  11393. /* USER CODE END DMA1_Channel4_IRQn 0 */
  11394. HAL_DMA_IRQHandler(&hdma_usart1_tx);
  11395. 800480c: 4802 ldr r0, [pc, #8] ; (8004818 <DMA1_Channel4_IRQHandler+0x10>)
  11396. 800480e: f7fd faef bl 8001df0 <HAL_DMA_IRQHandler>
  11397. /* USER CODE BEGIN DMA1_Channel4_IRQn 1 */
  11398. /* USER CODE END DMA1_Channel4_IRQn 1 */
  11399. }
  11400. 8004812: bf00 nop
  11401. 8004814: bd80 pop {r7, pc}
  11402. 8004816: bf00 nop
  11403. 8004818: 200004c0 .word 0x200004c0
  11404. 0800481c <ADC1_IRQHandler>:
  11405. /**
  11406. * @brief This function handles ADC1 global interrupt.
  11407. */
  11408. void ADC1_IRQHandler(void)
  11409. {
  11410. 800481c: b580 push {r7, lr}
  11411. 800481e: af00 add r7, sp, #0
  11412. /* USER CODE BEGIN ADC1_IRQn 0 */
  11413. /* USER CODE END ADC1_IRQn 0 */
  11414. HAL_ADC_IRQHandler(&hadc1);
  11415. 8004820: 4802 ldr r0, [pc, #8] ; (800482c <ADC1_IRQHandler+0x10>)
  11416. 8004822: f7fc fd67 bl 80012f4 <HAL_ADC_IRQHandler>
  11417. /* USER CODE BEGIN ADC1_IRQn 1 */
  11418. /* USER CODE END ADC1_IRQn 1 */
  11419. }
  11420. 8004826: bf00 nop
  11421. 8004828: bd80 pop {r7, pc}
  11422. 800482a: bf00 nop
  11423. 800482c: 20000504 .word 0x20000504
  11424. 08004830 <TIM2_IRQHandler>:
  11425. /**
  11426. * @brief This function handles TIM2 global interrupt.
  11427. */
  11428. void TIM2_IRQHandler(void)
  11429. {
  11430. 8004830: b580 push {r7, lr}
  11431. 8004832: af00 add r7, sp, #0
  11432. /* USER CODE BEGIN TIM2_IRQn 0 */
  11433. /* USER CODE END TIM2_IRQn 0 */
  11434. HAL_TIM_IRQHandler(&htim2);
  11435. 8004834: 4802 ldr r0, [pc, #8] ; (8004840 <TIM2_IRQHandler+0x10>)
  11436. 8004836: f7fe fafd bl 8002e34 <HAL_TIM_IRQHandler>
  11437. /* USER CODE BEGIN TIM2_IRQn 1 */
  11438. /* USER CODE END TIM2_IRQn 1 */
  11439. }
  11440. 800483a: bf00 nop
  11441. 800483c: bd80 pop {r7, pc}
  11442. 800483e: bf00 nop
  11443. 8004840: 200005f8 .word 0x200005f8
  11444. 08004844 <USART1_IRQHandler>:
  11445. /**
  11446. * @brief This function handles USART1 global interrupt.
  11447. */
  11448. void USART1_IRQHandler(void)
  11449. {
  11450. 8004844: b580 push {r7, lr}
  11451. 8004846: af00 add r7, sp, #0
  11452. /* USER CODE BEGIN USART1_IRQn 0 */
  11453. /* USER CODE END USART1_IRQn 0 */
  11454. HAL_UART_IRQHandler(&huart1);
  11455. 8004848: 4802 ldr r0, [pc, #8] ; (8004854 <USART1_IRQHandler+0x10>)
  11456. 800484a: f7fe fe83 bl 8003554 <HAL_UART_IRQHandler>
  11457. /* USER CODE BEGIN USART1_IRQn 1 */
  11458. /* USER CODE END USART1_IRQn 1 */
  11459. }
  11460. 800484e: bf00 nop
  11461. 8004850: bd80 pop {r7, pc}
  11462. 8004852: bf00 nop
  11463. 8004854: 20000534 .word 0x20000534
  11464. 08004858 <USART3_IRQHandler>:
  11465. /**
  11466. * @brief This function handles USART3 global interrupt.
  11467. */
  11468. void USART3_IRQHandler(void)
  11469. {
  11470. 8004858: b580 push {r7, lr}
  11471. 800485a: af00 add r7, sp, #0
  11472. /* USER CODE BEGIN USART3_IRQn 0 */
  11473. /* USER CODE END USART3_IRQn 0 */
  11474. HAL_UART_IRQHandler(&huart3);
  11475. 800485c: 4802 ldr r0, [pc, #8] ; (8004868 <USART3_IRQHandler+0x10>)
  11476. 800485e: f7fe fe79 bl 8003554 <HAL_UART_IRQHandler>
  11477. /* USER CODE BEGIN USART3_IRQn 1 */
  11478. /* USER CODE END USART3_IRQn 1 */
  11479. }
  11480. 8004862: bf00 nop
  11481. 8004864: bd80 pop {r7, pc}
  11482. 8004866: bf00 nop
  11483. 8004868: 2000043c .word 0x2000043c
  11484. 0800486c <TIM6_DAC_IRQHandler>:
  11485. /**
  11486. * @brief This function handles TIM6 global interrupt and DAC underrun error interrupts.
  11487. */
  11488. void TIM6_DAC_IRQHandler(void)
  11489. {
  11490. 800486c: b580 push {r7, lr}
  11491. 800486e: af00 add r7, sp, #0
  11492. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  11493. /* USER CODE END TIM6_DAC_IRQn 0 */
  11494. HAL_TIM_IRQHandler(&htim6);
  11495. 8004870: 4802 ldr r0, [pc, #8] ; (800487c <TIM6_DAC_IRQHandler+0x10>)
  11496. 8004872: f7fe fadf bl 8002e34 <HAL_TIM_IRQHandler>
  11497. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  11498. /* USER CODE END TIM6_DAC_IRQn 1 */
  11499. }
  11500. 8004876: bf00 nop
  11501. 8004878: bd80 pop {r7, pc}
  11502. 800487a: bf00 nop
  11503. 800487c: 200005b8 .word 0x200005b8
  11504. 08004880 <_read>:
  11505. _kill(status, -1);
  11506. while (1) {} /* Make sure we hang here */
  11507. }
  11508. __attribute__((weak)) int _read(int file, char *ptr, int len)
  11509. {
  11510. 8004880: b580 push {r7, lr}
  11511. 8004882: b086 sub sp, #24
  11512. 8004884: af00 add r7, sp, #0
  11513. 8004886: 60f8 str r0, [r7, #12]
  11514. 8004888: 60b9 str r1, [r7, #8]
  11515. 800488a: 607a str r2, [r7, #4]
  11516. int DataIdx;
  11517. for (DataIdx = 0; DataIdx < len; DataIdx++)
  11518. 800488c: 2300 movs r3, #0
  11519. 800488e: 617b str r3, [r7, #20]
  11520. 8004890: e00a b.n 80048a8 <_read+0x28>
  11521. {
  11522. *ptr++ = __io_getchar();
  11523. 8004892: f3af 8000 nop.w
  11524. 8004896: 4601 mov r1, r0
  11525. 8004898: 68bb ldr r3, [r7, #8]
  11526. 800489a: 1c5a adds r2, r3, #1
  11527. 800489c: 60ba str r2, [r7, #8]
  11528. 800489e: b2ca uxtb r2, r1
  11529. 80048a0: 701a strb r2, [r3, #0]
  11530. for (DataIdx = 0; DataIdx < len; DataIdx++)
  11531. 80048a2: 697b ldr r3, [r7, #20]
  11532. 80048a4: 3301 adds r3, #1
  11533. 80048a6: 617b str r3, [r7, #20]
  11534. 80048a8: 697a ldr r2, [r7, #20]
  11535. 80048aa: 687b ldr r3, [r7, #4]
  11536. 80048ac: 429a cmp r2, r3
  11537. 80048ae: dbf0 blt.n 8004892 <_read+0x12>
  11538. }
  11539. return len;
  11540. 80048b0: 687b ldr r3, [r7, #4]
  11541. }
  11542. 80048b2: 4618 mov r0, r3
  11543. 80048b4: 3718 adds r7, #24
  11544. 80048b6: 46bd mov sp, r7
  11545. 80048b8: bd80 pop {r7, pc}
  11546. 080048ba <_write>:
  11547. __attribute__((weak)) int _write(int file, char *ptr, int len)
  11548. {
  11549. 80048ba: b580 push {r7, lr}
  11550. 80048bc: b086 sub sp, #24
  11551. 80048be: af00 add r7, sp, #0
  11552. 80048c0: 60f8 str r0, [r7, #12]
  11553. 80048c2: 60b9 str r1, [r7, #8]
  11554. 80048c4: 607a str r2, [r7, #4]
  11555. int DataIdx;
  11556. for (DataIdx = 0; DataIdx < len; DataIdx++)
  11557. 80048c6: 2300 movs r3, #0
  11558. 80048c8: 617b str r3, [r7, #20]
  11559. 80048ca: e009 b.n 80048e0 <_write+0x26>
  11560. {
  11561. __io_putchar(*ptr++);
  11562. 80048cc: 68bb ldr r3, [r7, #8]
  11563. 80048ce: 1c5a adds r2, r3, #1
  11564. 80048d0: 60ba str r2, [r7, #8]
  11565. 80048d2: 781b ldrb r3, [r3, #0]
  11566. 80048d4: 4618 mov r0, r3
  11567. 80048d6: f3af 8000 nop.w
  11568. for (DataIdx = 0; DataIdx < len; DataIdx++)
  11569. 80048da: 697b ldr r3, [r7, #20]
  11570. 80048dc: 3301 adds r3, #1
  11571. 80048de: 617b str r3, [r7, #20]
  11572. 80048e0: 697a ldr r2, [r7, #20]
  11573. 80048e2: 687b ldr r3, [r7, #4]
  11574. 80048e4: 429a cmp r2, r3
  11575. 80048e6: dbf1 blt.n 80048cc <_write+0x12>
  11576. }
  11577. return len;
  11578. 80048e8: 687b ldr r3, [r7, #4]
  11579. }
  11580. 80048ea: 4618 mov r0, r3
  11581. 80048ec: 3718 adds r7, #24
  11582. 80048ee: 46bd mov sp, r7
  11583. 80048f0: bd80 pop {r7, pc}
  11584. 080048f2 <_close>:
  11585. int _close(int file)
  11586. {
  11587. 80048f2: b480 push {r7}
  11588. 80048f4: b083 sub sp, #12
  11589. 80048f6: af00 add r7, sp, #0
  11590. 80048f8: 6078 str r0, [r7, #4]
  11591. return -1;
  11592. 80048fa: f04f 33ff mov.w r3, #4294967295
  11593. }
  11594. 80048fe: 4618 mov r0, r3
  11595. 8004900: 370c adds r7, #12
  11596. 8004902: 46bd mov sp, r7
  11597. 8004904: bc80 pop {r7}
  11598. 8004906: 4770 bx lr
  11599. 08004908 <_fstat>:
  11600. int _fstat(int file, struct stat *st)
  11601. {
  11602. 8004908: b480 push {r7}
  11603. 800490a: b083 sub sp, #12
  11604. 800490c: af00 add r7, sp, #0
  11605. 800490e: 6078 str r0, [r7, #4]
  11606. 8004910: 6039 str r1, [r7, #0]
  11607. st->st_mode = S_IFCHR;
  11608. 8004912: 683b ldr r3, [r7, #0]
  11609. 8004914: f44f 5200 mov.w r2, #8192 ; 0x2000
  11610. 8004918: 605a str r2, [r3, #4]
  11611. return 0;
  11612. 800491a: 2300 movs r3, #0
  11613. }
  11614. 800491c: 4618 mov r0, r3
  11615. 800491e: 370c adds r7, #12
  11616. 8004920: 46bd mov sp, r7
  11617. 8004922: bc80 pop {r7}
  11618. 8004924: 4770 bx lr
  11619. 08004926 <_isatty>:
  11620. int _isatty(int file)
  11621. {
  11622. 8004926: b480 push {r7}
  11623. 8004928: b083 sub sp, #12
  11624. 800492a: af00 add r7, sp, #0
  11625. 800492c: 6078 str r0, [r7, #4]
  11626. return 1;
  11627. 800492e: 2301 movs r3, #1
  11628. }
  11629. 8004930: 4618 mov r0, r3
  11630. 8004932: 370c adds r7, #12
  11631. 8004934: 46bd mov sp, r7
  11632. 8004936: bc80 pop {r7}
  11633. 8004938: 4770 bx lr
  11634. 0800493a <_lseek>:
  11635. int _lseek(int file, int ptr, int dir)
  11636. {
  11637. 800493a: b480 push {r7}
  11638. 800493c: b085 sub sp, #20
  11639. 800493e: af00 add r7, sp, #0
  11640. 8004940: 60f8 str r0, [r7, #12]
  11641. 8004942: 60b9 str r1, [r7, #8]
  11642. 8004944: 607a str r2, [r7, #4]
  11643. return 0;
  11644. 8004946: 2300 movs r3, #0
  11645. }
  11646. 8004948: 4618 mov r0, r3
  11647. 800494a: 3714 adds r7, #20
  11648. 800494c: 46bd mov sp, r7
  11649. 800494e: bc80 pop {r7}
  11650. 8004950: 4770 bx lr
  11651. ...
  11652. 08004954 <_sbrk>:
  11653. /**
  11654. _sbrk
  11655. Increase program data space. Malloc and related functions depend on this
  11656. **/
  11657. caddr_t _sbrk(int incr)
  11658. {
  11659. 8004954: b580 push {r7, lr}
  11660. 8004956: b084 sub sp, #16
  11661. 8004958: af00 add r7, sp, #0
  11662. 800495a: 6078 str r0, [r7, #4]
  11663. extern char end asm("end");
  11664. static char *heap_end;
  11665. char *prev_heap_end;
  11666. if (heap_end == 0)
  11667. 800495c: 4b11 ldr r3, [pc, #68] ; (80049a4 <_sbrk+0x50>)
  11668. 800495e: 681b ldr r3, [r3, #0]
  11669. 8004960: 2b00 cmp r3, #0
  11670. 8004962: d102 bne.n 800496a <_sbrk+0x16>
  11671. heap_end = &end;
  11672. 8004964: 4b0f ldr r3, [pc, #60] ; (80049a4 <_sbrk+0x50>)
  11673. 8004966: 4a10 ldr r2, [pc, #64] ; (80049a8 <_sbrk+0x54>)
  11674. 8004968: 601a str r2, [r3, #0]
  11675. prev_heap_end = heap_end;
  11676. 800496a: 4b0e ldr r3, [pc, #56] ; (80049a4 <_sbrk+0x50>)
  11677. 800496c: 681b ldr r3, [r3, #0]
  11678. 800496e: 60fb str r3, [r7, #12]
  11679. if (heap_end + incr > stack_ptr)
  11680. 8004970: 4b0c ldr r3, [pc, #48] ; (80049a4 <_sbrk+0x50>)
  11681. 8004972: 681a ldr r2, [r3, #0]
  11682. 8004974: 687b ldr r3, [r7, #4]
  11683. 8004976: 4413 add r3, r2
  11684. 8004978: 466a mov r2, sp
  11685. 800497a: 4293 cmp r3, r2
  11686. 800497c: d907 bls.n 800498e <_sbrk+0x3a>
  11687. {
  11688. errno = ENOMEM;
  11689. 800497e: f000 f873 bl 8004a68 <__errno>
  11690. 8004982: 4602 mov r2, r0
  11691. 8004984: 230c movs r3, #12
  11692. 8004986: 6013 str r3, [r2, #0]
  11693. return (caddr_t) -1;
  11694. 8004988: f04f 33ff mov.w r3, #4294967295
  11695. 800498c: e006 b.n 800499c <_sbrk+0x48>
  11696. }
  11697. heap_end += incr;
  11698. 800498e: 4b05 ldr r3, [pc, #20] ; (80049a4 <_sbrk+0x50>)
  11699. 8004990: 681a ldr r2, [r3, #0]
  11700. 8004992: 687b ldr r3, [r7, #4]
  11701. 8004994: 4413 add r3, r2
  11702. 8004996: 4a03 ldr r2, [pc, #12] ; (80049a4 <_sbrk+0x50>)
  11703. 8004998: 6013 str r3, [r2, #0]
  11704. return (caddr_t) prev_heap_end;
  11705. 800499a: 68fb ldr r3, [r7, #12]
  11706. }
  11707. 800499c: 4618 mov r0, r3
  11708. 800499e: 3710 adds r7, #16
  11709. 80049a0: 46bd mov sp, r7
  11710. 80049a2: bd80 pop {r7, pc}
  11711. 80049a4: 20000208 .word 0x20000208
  11712. 80049a8: 20000640 .word 0x20000640
  11713. 080049ac <SystemInit>:
  11714. * @note This function should be used only after reset.
  11715. * @param None
  11716. * @retval None
  11717. */
  11718. void SystemInit (void)
  11719. {
  11720. 80049ac: b480 push {r7}
  11721. 80049ae: af00 add r7, sp, #0
  11722. /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
  11723. /* Set HSION bit */
  11724. RCC->CR |= 0x00000001U;
  11725. 80049b0: 4b17 ldr r3, [pc, #92] ; (8004a10 <SystemInit+0x64>)
  11726. 80049b2: 681b ldr r3, [r3, #0]
  11727. 80049b4: 4a16 ldr r2, [pc, #88] ; (8004a10 <SystemInit+0x64>)
  11728. 80049b6: f043 0301 orr.w r3, r3, #1
  11729. 80049ba: 6013 str r3, [r2, #0]
  11730. /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
  11731. #if !defined(STM32F105xC) && !defined(STM32F107xC)
  11732. RCC->CFGR &= 0xF8FF0000U;
  11733. 80049bc: 4b14 ldr r3, [pc, #80] ; (8004a10 <SystemInit+0x64>)
  11734. 80049be: 685a ldr r2, [r3, #4]
  11735. 80049c0: 4913 ldr r1, [pc, #76] ; (8004a10 <SystemInit+0x64>)
  11736. 80049c2: 4b14 ldr r3, [pc, #80] ; (8004a14 <SystemInit+0x68>)
  11737. 80049c4: 4013 ands r3, r2
  11738. 80049c6: 604b str r3, [r1, #4]
  11739. #else
  11740. RCC->CFGR &= 0xF0FF0000U;
  11741. #endif /* STM32F105xC */
  11742. /* Reset HSEON, CSSON and PLLON bits */
  11743. RCC->CR &= 0xFEF6FFFFU;
  11744. 80049c8: 4b11 ldr r3, [pc, #68] ; (8004a10 <SystemInit+0x64>)
  11745. 80049ca: 681b ldr r3, [r3, #0]
  11746. 80049cc: 4a10 ldr r2, [pc, #64] ; (8004a10 <SystemInit+0x64>)
  11747. 80049ce: f023 7384 bic.w r3, r3, #17301504 ; 0x1080000
  11748. 80049d2: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  11749. 80049d6: 6013 str r3, [r2, #0]
  11750. /* Reset HSEBYP bit */
  11751. RCC->CR &= 0xFFFBFFFFU;
  11752. 80049d8: 4b0d ldr r3, [pc, #52] ; (8004a10 <SystemInit+0x64>)
  11753. 80049da: 681b ldr r3, [r3, #0]
  11754. 80049dc: 4a0c ldr r2, [pc, #48] ; (8004a10 <SystemInit+0x64>)
  11755. 80049de: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  11756. 80049e2: 6013 str r3, [r2, #0]
  11757. /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */
  11758. RCC->CFGR &= 0xFF80FFFFU;
  11759. 80049e4: 4b0a ldr r3, [pc, #40] ; (8004a10 <SystemInit+0x64>)
  11760. 80049e6: 685b ldr r3, [r3, #4]
  11761. 80049e8: 4a09 ldr r2, [pc, #36] ; (8004a10 <SystemInit+0x64>)
  11762. 80049ea: f423 03fe bic.w r3, r3, #8323072 ; 0x7f0000
  11763. 80049ee: 6053 str r3, [r2, #4]
  11764. /* Reset CFGR2 register */
  11765. RCC->CFGR2 = 0x00000000U;
  11766. #elif defined(STM32F100xB) || defined(STM32F100xE)
  11767. /* Disable all interrupts and clear pending bits */
  11768. RCC->CIR = 0x009F0000U;
  11769. 80049f0: 4b07 ldr r3, [pc, #28] ; (8004a10 <SystemInit+0x64>)
  11770. 80049f2: f44f 021f mov.w r2, #10420224 ; 0x9f0000
  11771. 80049f6: 609a str r2, [r3, #8]
  11772. /* Reset CFGR2 register */
  11773. RCC->CFGR2 = 0x00000000U;
  11774. 80049f8: 4b05 ldr r3, [pc, #20] ; (8004a10 <SystemInit+0x64>)
  11775. 80049fa: 2200 movs r2, #0
  11776. 80049fc: 62da str r2, [r3, #44] ; 0x2c
  11777. #endif
  11778. #ifdef VECT_TAB_SRAM
  11779. SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  11780. #else
  11781. SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
  11782. 80049fe: 4b06 ldr r3, [pc, #24] ; (8004a18 <SystemInit+0x6c>)
  11783. 8004a00: f04f 6200 mov.w r2, #134217728 ; 0x8000000
  11784. 8004a04: 609a str r2, [r3, #8]
  11785. #endif
  11786. }
  11787. 8004a06: bf00 nop
  11788. 8004a08: 46bd mov sp, r7
  11789. 8004a0a: bc80 pop {r7}
  11790. 8004a0c: 4770 bx lr
  11791. 8004a0e: bf00 nop
  11792. 8004a10: 40021000 .word 0x40021000
  11793. 8004a14: f8ff0000 .word 0xf8ff0000
  11794. 8004a18: e000ed00 .word 0xe000ed00
  11795. 08004a1c <Reset_Handler>:
  11796. .weak Reset_Handler
  11797. .type Reset_Handler, %function
  11798. Reset_Handler:
  11799. /* Copy the data segment initializers from flash to SRAM */
  11800. movs r1, #0
  11801. 8004a1c: 2100 movs r1, #0
  11802. b LoopCopyDataInit
  11803. 8004a1e: e003 b.n 8004a28 <LoopCopyDataInit>
  11804. 08004a20 <CopyDataInit>:
  11805. CopyDataInit:
  11806. ldr r3, =_sidata
  11807. 8004a20: 4b0b ldr r3, [pc, #44] ; (8004a50 <LoopFillZerobss+0x14>)
  11808. ldr r3, [r3, r1]
  11809. 8004a22: 585b ldr r3, [r3, r1]
  11810. str r3, [r0, r1]
  11811. 8004a24: 5043 str r3, [r0, r1]
  11812. adds r1, r1, #4
  11813. 8004a26: 3104 adds r1, #4
  11814. 08004a28 <LoopCopyDataInit>:
  11815. LoopCopyDataInit:
  11816. ldr r0, =_sdata
  11817. 8004a28: 480a ldr r0, [pc, #40] ; (8004a54 <LoopFillZerobss+0x18>)
  11818. ldr r3, =_edata
  11819. 8004a2a: 4b0b ldr r3, [pc, #44] ; (8004a58 <LoopFillZerobss+0x1c>)
  11820. adds r2, r0, r1
  11821. 8004a2c: 1842 adds r2, r0, r1
  11822. cmp r2, r3
  11823. 8004a2e: 429a cmp r2, r3
  11824. bcc CopyDataInit
  11825. 8004a30: d3f6 bcc.n 8004a20 <CopyDataInit>
  11826. ldr r2, =_sbss
  11827. 8004a32: 4a0a ldr r2, [pc, #40] ; (8004a5c <LoopFillZerobss+0x20>)
  11828. b LoopFillZerobss
  11829. 8004a34: e002 b.n 8004a3c <LoopFillZerobss>
  11830. 08004a36 <FillZerobss>:
  11831. /* Zero fill the bss segment. */
  11832. FillZerobss:
  11833. movs r3, #0
  11834. 8004a36: 2300 movs r3, #0
  11835. str r3, [r2], #4
  11836. 8004a38: f842 3b04 str.w r3, [r2], #4
  11837. 08004a3c <LoopFillZerobss>:
  11838. LoopFillZerobss:
  11839. ldr r3, = _ebss
  11840. 8004a3c: 4b08 ldr r3, [pc, #32] ; (8004a60 <LoopFillZerobss+0x24>)
  11841. cmp r2, r3
  11842. 8004a3e: 429a cmp r2, r3
  11843. bcc FillZerobss
  11844. 8004a40: d3f9 bcc.n 8004a36 <FillZerobss>
  11845. /* Call the clock system intitialization function.*/
  11846. bl SystemInit
  11847. 8004a42: f7ff ffb3 bl 80049ac <SystemInit>
  11848. /* Call static constructors */
  11849. bl __libc_init_array
  11850. 8004a46: f000 f815 bl 8004a74 <__libc_init_array>
  11851. /* Call the application's entry point.*/
  11852. bl main
  11853. 8004a4a: f7ff fa23 bl 8003e94 <main>
  11854. bx lr
  11855. 8004a4e: 4770 bx lr
  11856. ldr r3, =_sidata
  11857. 8004a50: 08007710 .word 0x08007710
  11858. ldr r0, =_sdata
  11859. 8004a54: 20000000 .word 0x20000000
  11860. ldr r3, =_edata
  11861. 8004a58: 200001dc .word 0x200001dc
  11862. ldr r2, =_sbss
  11863. 8004a5c: 200001dc .word 0x200001dc
  11864. ldr r3, = _ebss
  11865. 8004a60: 2000063c .word 0x2000063c
  11866. 08004a64 <CEC_IRQHandler>:
  11867. * @retval : None
  11868. */
  11869. .section .text.Default_Handler,"ax",%progbits
  11870. Default_Handler:
  11871. Infinite_Loop:
  11872. b Infinite_Loop
  11873. 8004a64: e7fe b.n 8004a64 <CEC_IRQHandler>
  11874. ...
  11875. 08004a68 <__errno>:
  11876. 8004a68: 4b01 ldr r3, [pc, #4] ; (8004a70 <__errno+0x8>)
  11877. 8004a6a: 6818 ldr r0, [r3, #0]
  11878. 8004a6c: 4770 bx lr
  11879. 8004a6e: bf00 nop
  11880. 8004a70: 2000000c .word 0x2000000c
  11881. 08004a74 <__libc_init_array>:
  11882. 8004a74: b570 push {r4, r5, r6, lr}
  11883. 8004a76: 2500 movs r5, #0
  11884. 8004a78: 4e0c ldr r6, [pc, #48] ; (8004aac <__libc_init_array+0x38>)
  11885. 8004a7a: 4c0d ldr r4, [pc, #52] ; (8004ab0 <__libc_init_array+0x3c>)
  11886. 8004a7c: 1ba4 subs r4, r4, r6
  11887. 8004a7e: 10a4 asrs r4, r4, #2
  11888. 8004a80: 42a5 cmp r5, r4
  11889. 8004a82: d109 bne.n 8004a98 <__libc_init_array+0x24>
  11890. 8004a84: f002 fc62 bl 800734c <_init>
  11891. 8004a88: 2500 movs r5, #0
  11892. 8004a8a: 4e0a ldr r6, [pc, #40] ; (8004ab4 <__libc_init_array+0x40>)
  11893. 8004a8c: 4c0a ldr r4, [pc, #40] ; (8004ab8 <__libc_init_array+0x44>)
  11894. 8004a8e: 1ba4 subs r4, r4, r6
  11895. 8004a90: 10a4 asrs r4, r4, #2
  11896. 8004a92: 42a5 cmp r5, r4
  11897. 8004a94: d105 bne.n 8004aa2 <__libc_init_array+0x2e>
  11898. 8004a96: bd70 pop {r4, r5, r6, pc}
  11899. 8004a98: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  11900. 8004a9c: 4798 blx r3
  11901. 8004a9e: 3501 adds r5, #1
  11902. 8004aa0: e7ee b.n 8004a80 <__libc_init_array+0xc>
  11903. 8004aa2: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  11904. 8004aa6: 4798 blx r3
  11905. 8004aa8: 3501 adds r5, #1
  11906. 8004aaa: e7f2 b.n 8004a92 <__libc_init_array+0x1e>
  11907. 8004aac: 08007708 .word 0x08007708
  11908. 8004ab0: 08007708 .word 0x08007708
  11909. 8004ab4: 08007708 .word 0x08007708
  11910. 8004ab8: 0800770c .word 0x0800770c
  11911. 08004abc <memset>:
  11912. 8004abc: 4603 mov r3, r0
  11913. 8004abe: 4402 add r2, r0
  11914. 8004ac0: 4293 cmp r3, r2
  11915. 8004ac2: d100 bne.n 8004ac6 <memset+0xa>
  11916. 8004ac4: 4770 bx lr
  11917. 8004ac6: f803 1b01 strb.w r1, [r3], #1
  11918. 8004aca: e7f9 b.n 8004ac0 <memset+0x4>
  11919. 08004acc <__cvt>:
  11920. 8004acc: 2b00 cmp r3, #0
  11921. 8004ace: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  11922. 8004ad2: 461e mov r6, r3
  11923. 8004ad4: bfbb ittet lt
  11924. 8004ad6: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
  11925. 8004ada: 461e movlt r6, r3
  11926. 8004adc: 2300 movge r3, #0
  11927. 8004ade: 232d movlt r3, #45 ; 0x2d
  11928. 8004ae0: b088 sub sp, #32
  11929. 8004ae2: 9f14 ldr r7, [sp, #80] ; 0x50
  11930. 8004ae4: e9dd 1a12 ldrd r1, sl, [sp, #72] ; 0x48
  11931. 8004ae8: f027 0720 bic.w r7, r7, #32
  11932. 8004aec: 2f46 cmp r7, #70 ; 0x46
  11933. 8004aee: 4614 mov r4, r2
  11934. 8004af0: 9d10 ldr r5, [sp, #64] ; 0x40
  11935. 8004af2: 700b strb r3, [r1, #0]
  11936. 8004af4: d004 beq.n 8004b00 <__cvt+0x34>
  11937. 8004af6: 2f45 cmp r7, #69 ; 0x45
  11938. 8004af8: d100 bne.n 8004afc <__cvt+0x30>
  11939. 8004afa: 3501 adds r5, #1
  11940. 8004afc: 2302 movs r3, #2
  11941. 8004afe: e000 b.n 8004b02 <__cvt+0x36>
  11942. 8004b00: 2303 movs r3, #3
  11943. 8004b02: aa07 add r2, sp, #28
  11944. 8004b04: 9204 str r2, [sp, #16]
  11945. 8004b06: aa06 add r2, sp, #24
  11946. 8004b08: e9cd a202 strd sl, r2, [sp, #8]
  11947. 8004b0c: e9cd 3500 strd r3, r5, [sp]
  11948. 8004b10: 4622 mov r2, r4
  11949. 8004b12: 4633 mov r3, r6
  11950. 8004b14: f000 feac bl 8005870 <_dtoa_r>
  11951. 8004b18: 2f47 cmp r7, #71 ; 0x47
  11952. 8004b1a: 4680 mov r8, r0
  11953. 8004b1c: d102 bne.n 8004b24 <__cvt+0x58>
  11954. 8004b1e: 9b11 ldr r3, [sp, #68] ; 0x44
  11955. 8004b20: 07db lsls r3, r3, #31
  11956. 8004b22: d526 bpl.n 8004b72 <__cvt+0xa6>
  11957. 8004b24: 2f46 cmp r7, #70 ; 0x46
  11958. 8004b26: eb08 0905 add.w r9, r8, r5
  11959. 8004b2a: d111 bne.n 8004b50 <__cvt+0x84>
  11960. 8004b2c: f898 3000 ldrb.w r3, [r8]
  11961. 8004b30: 2b30 cmp r3, #48 ; 0x30
  11962. 8004b32: d10a bne.n 8004b4a <__cvt+0x7e>
  11963. 8004b34: 2200 movs r2, #0
  11964. 8004b36: 2300 movs r3, #0
  11965. 8004b38: 4620 mov r0, r4
  11966. 8004b3a: 4631 mov r1, r6
  11967. 8004b3c: f7fb ff94 bl 8000a68 <__aeabi_dcmpeq>
  11968. 8004b40: b918 cbnz r0, 8004b4a <__cvt+0x7e>
  11969. 8004b42: f1c5 0501 rsb r5, r5, #1
  11970. 8004b46: f8ca 5000 str.w r5, [sl]
  11971. 8004b4a: f8da 3000 ldr.w r3, [sl]
  11972. 8004b4e: 4499 add r9, r3
  11973. 8004b50: 2200 movs r2, #0
  11974. 8004b52: 2300 movs r3, #0
  11975. 8004b54: 4620 mov r0, r4
  11976. 8004b56: 4631 mov r1, r6
  11977. 8004b58: f7fb ff86 bl 8000a68 <__aeabi_dcmpeq>
  11978. 8004b5c: b938 cbnz r0, 8004b6e <__cvt+0xa2>
  11979. 8004b5e: 2230 movs r2, #48 ; 0x30
  11980. 8004b60: 9b07 ldr r3, [sp, #28]
  11981. 8004b62: 454b cmp r3, r9
  11982. 8004b64: d205 bcs.n 8004b72 <__cvt+0xa6>
  11983. 8004b66: 1c59 adds r1, r3, #1
  11984. 8004b68: 9107 str r1, [sp, #28]
  11985. 8004b6a: 701a strb r2, [r3, #0]
  11986. 8004b6c: e7f8 b.n 8004b60 <__cvt+0x94>
  11987. 8004b6e: f8cd 901c str.w r9, [sp, #28]
  11988. 8004b72: 4640 mov r0, r8
  11989. 8004b74: 9b07 ldr r3, [sp, #28]
  11990. 8004b76: 9a15 ldr r2, [sp, #84] ; 0x54
  11991. 8004b78: eba3 0308 sub.w r3, r3, r8
  11992. 8004b7c: 6013 str r3, [r2, #0]
  11993. 8004b7e: b008 add sp, #32
  11994. 8004b80: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  11995. 08004b84 <__exponent>:
  11996. 8004b84: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  11997. 8004b86: 2900 cmp r1, #0
  11998. 8004b88: bfb4 ite lt
  11999. 8004b8a: 232d movlt r3, #45 ; 0x2d
  12000. 8004b8c: 232b movge r3, #43 ; 0x2b
  12001. 8004b8e: 4604 mov r4, r0
  12002. 8004b90: bfb8 it lt
  12003. 8004b92: 4249 neglt r1, r1
  12004. 8004b94: 2909 cmp r1, #9
  12005. 8004b96: f804 2b02 strb.w r2, [r4], #2
  12006. 8004b9a: 7043 strb r3, [r0, #1]
  12007. 8004b9c: dd21 ble.n 8004be2 <__exponent+0x5e>
  12008. 8004b9e: f10d 0307 add.w r3, sp, #7
  12009. 8004ba2: 461f mov r7, r3
  12010. 8004ba4: 260a movs r6, #10
  12011. 8004ba6: fb91 f5f6 sdiv r5, r1, r6
  12012. 8004baa: fb06 1115 mls r1, r6, r5, r1
  12013. 8004bae: 2d09 cmp r5, #9
  12014. 8004bb0: f101 0130 add.w r1, r1, #48 ; 0x30
  12015. 8004bb4: f803 1c01 strb.w r1, [r3, #-1]
  12016. 8004bb8: f103 32ff add.w r2, r3, #4294967295
  12017. 8004bbc: 4629 mov r1, r5
  12018. 8004bbe: dc09 bgt.n 8004bd4 <__exponent+0x50>
  12019. 8004bc0: 3130 adds r1, #48 ; 0x30
  12020. 8004bc2: 3b02 subs r3, #2
  12021. 8004bc4: f802 1c01 strb.w r1, [r2, #-1]
  12022. 8004bc8: 42bb cmp r3, r7
  12023. 8004bca: 4622 mov r2, r4
  12024. 8004bcc: d304 bcc.n 8004bd8 <__exponent+0x54>
  12025. 8004bce: 1a10 subs r0, r2, r0
  12026. 8004bd0: b003 add sp, #12
  12027. 8004bd2: bdf0 pop {r4, r5, r6, r7, pc}
  12028. 8004bd4: 4613 mov r3, r2
  12029. 8004bd6: e7e6 b.n 8004ba6 <__exponent+0x22>
  12030. 8004bd8: f813 2b01 ldrb.w r2, [r3], #1
  12031. 8004bdc: f804 2b01 strb.w r2, [r4], #1
  12032. 8004be0: e7f2 b.n 8004bc8 <__exponent+0x44>
  12033. 8004be2: 2330 movs r3, #48 ; 0x30
  12034. 8004be4: 4419 add r1, r3
  12035. 8004be6: 7083 strb r3, [r0, #2]
  12036. 8004be8: 1d02 adds r2, r0, #4
  12037. 8004bea: 70c1 strb r1, [r0, #3]
  12038. 8004bec: e7ef b.n 8004bce <__exponent+0x4a>
  12039. ...
  12040. 08004bf0 <_printf_float>:
  12041. 8004bf0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  12042. 8004bf4: b091 sub sp, #68 ; 0x44
  12043. 8004bf6: 460c mov r4, r1
  12044. 8004bf8: 9f1a ldr r7, [sp, #104] ; 0x68
  12045. 8004bfa: 4693 mov fp, r2
  12046. 8004bfc: 461e mov r6, r3
  12047. 8004bfe: 4605 mov r5, r0
  12048. 8004c00: f001 fd64 bl 80066cc <_localeconv_r>
  12049. 8004c04: 6803 ldr r3, [r0, #0]
  12050. 8004c06: 4618 mov r0, r3
  12051. 8004c08: 9309 str r3, [sp, #36] ; 0x24
  12052. 8004c0a: f7fb fb01 bl 8000210 <strlen>
  12053. 8004c0e: 2300 movs r3, #0
  12054. 8004c10: 930e str r3, [sp, #56] ; 0x38
  12055. 8004c12: 683b ldr r3, [r7, #0]
  12056. 8004c14: 900a str r0, [sp, #40] ; 0x28
  12057. 8004c16: 3307 adds r3, #7
  12058. 8004c18: f023 0307 bic.w r3, r3, #7
  12059. 8004c1c: f103 0208 add.w r2, r3, #8
  12060. 8004c20: f894 8018 ldrb.w r8, [r4, #24]
  12061. 8004c24: f8d4 a000 ldr.w sl, [r4]
  12062. 8004c28: 603a str r2, [r7, #0]
  12063. 8004c2a: e9d3 2300 ldrd r2, r3, [r3]
  12064. 8004c2e: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
  12065. 8004c32: e9d4 7912 ldrd r7, r9, [r4, #72] ; 0x48
  12066. 8004c36: f029 4300 bic.w r3, r9, #2147483648 ; 0x80000000
  12067. 8004c3a: 930b str r3, [sp, #44] ; 0x2c
  12068. 8004c3c: f04f 32ff mov.w r2, #4294967295
  12069. 8004c40: 4ba6 ldr r3, [pc, #664] ; (8004edc <_printf_float+0x2ec>)
  12070. 8004c42: 4638 mov r0, r7
  12071. 8004c44: 990b ldr r1, [sp, #44] ; 0x2c
  12072. 8004c46: f7fb ff41 bl 8000acc <__aeabi_dcmpun>
  12073. 8004c4a: bb68 cbnz r0, 8004ca8 <_printf_float+0xb8>
  12074. 8004c4c: f04f 32ff mov.w r2, #4294967295
  12075. 8004c50: 4ba2 ldr r3, [pc, #648] ; (8004edc <_printf_float+0x2ec>)
  12076. 8004c52: 4638 mov r0, r7
  12077. 8004c54: 990b ldr r1, [sp, #44] ; 0x2c
  12078. 8004c56: f7fb ff1b bl 8000a90 <__aeabi_dcmple>
  12079. 8004c5a: bb28 cbnz r0, 8004ca8 <_printf_float+0xb8>
  12080. 8004c5c: 2200 movs r2, #0
  12081. 8004c5e: 2300 movs r3, #0
  12082. 8004c60: 4638 mov r0, r7
  12083. 8004c62: 4649 mov r1, r9
  12084. 8004c64: f7fb ff0a bl 8000a7c <__aeabi_dcmplt>
  12085. 8004c68: b110 cbz r0, 8004c70 <_printf_float+0x80>
  12086. 8004c6a: 232d movs r3, #45 ; 0x2d
  12087. 8004c6c: f884 3043 strb.w r3, [r4, #67] ; 0x43
  12088. 8004c70: 4f9b ldr r7, [pc, #620] ; (8004ee0 <_printf_float+0x2f0>)
  12089. 8004c72: 4b9c ldr r3, [pc, #624] ; (8004ee4 <_printf_float+0x2f4>)
  12090. 8004c74: f1b8 0f47 cmp.w r8, #71 ; 0x47
  12091. 8004c78: bf98 it ls
  12092. 8004c7a: 461f movls r7, r3
  12093. 8004c7c: 2303 movs r3, #3
  12094. 8004c7e: f04f 0900 mov.w r9, #0
  12095. 8004c82: 6123 str r3, [r4, #16]
  12096. 8004c84: f02a 0304 bic.w r3, sl, #4
  12097. 8004c88: 6023 str r3, [r4, #0]
  12098. 8004c8a: 9600 str r6, [sp, #0]
  12099. 8004c8c: 465b mov r3, fp
  12100. 8004c8e: aa0f add r2, sp, #60 ; 0x3c
  12101. 8004c90: 4621 mov r1, r4
  12102. 8004c92: 4628 mov r0, r5
  12103. 8004c94: f000 f9e2 bl 800505c <_printf_common>
  12104. 8004c98: 3001 adds r0, #1
  12105. 8004c9a: f040 8090 bne.w 8004dbe <_printf_float+0x1ce>
  12106. 8004c9e: f04f 30ff mov.w r0, #4294967295
  12107. 8004ca2: b011 add sp, #68 ; 0x44
  12108. 8004ca4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  12109. 8004ca8: 463a mov r2, r7
  12110. 8004caa: 464b mov r3, r9
  12111. 8004cac: 4638 mov r0, r7
  12112. 8004cae: 4649 mov r1, r9
  12113. 8004cb0: f7fb ff0c bl 8000acc <__aeabi_dcmpun>
  12114. 8004cb4: b110 cbz r0, 8004cbc <_printf_float+0xcc>
  12115. 8004cb6: 4f8c ldr r7, [pc, #560] ; (8004ee8 <_printf_float+0x2f8>)
  12116. 8004cb8: 4b8c ldr r3, [pc, #560] ; (8004eec <_printf_float+0x2fc>)
  12117. 8004cba: e7db b.n 8004c74 <_printf_float+0x84>
  12118. 8004cbc: 6863 ldr r3, [r4, #4]
  12119. 8004cbe: f44a 6280 orr.w r2, sl, #1024 ; 0x400
  12120. 8004cc2: 1c59 adds r1, r3, #1
  12121. 8004cc4: a80d add r0, sp, #52 ; 0x34
  12122. 8004cc6: a90e add r1, sp, #56 ; 0x38
  12123. 8004cc8: d140 bne.n 8004d4c <_printf_float+0x15c>
  12124. 8004cca: 2306 movs r3, #6
  12125. 8004ccc: 6063 str r3, [r4, #4]
  12126. 8004cce: f04f 0c00 mov.w ip, #0
  12127. 8004cd2: f10d 0333 add.w r3, sp, #51 ; 0x33
  12128. 8004cd6: e9cd 2301 strd r2, r3, [sp, #4]
  12129. 8004cda: 6863 ldr r3, [r4, #4]
  12130. 8004cdc: 6022 str r2, [r4, #0]
  12131. 8004cde: e9cd 0803 strd r0, r8, [sp, #12]
  12132. 8004ce2: 9300 str r3, [sp, #0]
  12133. 8004ce4: 463a mov r2, r7
  12134. 8004ce6: 464b mov r3, r9
  12135. 8004ce8: e9cd 1c05 strd r1, ip, [sp, #20]
  12136. 8004cec: 4628 mov r0, r5
  12137. 8004cee: f7ff feed bl 8004acc <__cvt>
  12138. 8004cf2: f008 03df and.w r3, r8, #223 ; 0xdf
  12139. 8004cf6: 2b47 cmp r3, #71 ; 0x47
  12140. 8004cf8: 4607 mov r7, r0
  12141. 8004cfa: d109 bne.n 8004d10 <_printf_float+0x120>
  12142. 8004cfc: 9b0d ldr r3, [sp, #52] ; 0x34
  12143. 8004cfe: 1cd8 adds r0, r3, #3
  12144. 8004d00: db02 blt.n 8004d08 <_printf_float+0x118>
  12145. 8004d02: 6862 ldr r2, [r4, #4]
  12146. 8004d04: 4293 cmp r3, r2
  12147. 8004d06: dd47 ble.n 8004d98 <_printf_float+0x1a8>
  12148. 8004d08: f1a8 0802 sub.w r8, r8, #2
  12149. 8004d0c: fa5f f888 uxtb.w r8, r8
  12150. 8004d10: f1b8 0f65 cmp.w r8, #101 ; 0x65
  12151. 8004d14: 990d ldr r1, [sp, #52] ; 0x34
  12152. 8004d16: d824 bhi.n 8004d62 <_printf_float+0x172>
  12153. 8004d18: 3901 subs r1, #1
  12154. 8004d1a: 4642 mov r2, r8
  12155. 8004d1c: f104 0050 add.w r0, r4, #80 ; 0x50
  12156. 8004d20: 910d str r1, [sp, #52] ; 0x34
  12157. 8004d22: f7ff ff2f bl 8004b84 <__exponent>
  12158. 8004d26: 9a0e ldr r2, [sp, #56] ; 0x38
  12159. 8004d28: 4681 mov r9, r0
  12160. 8004d2a: 1813 adds r3, r2, r0
  12161. 8004d2c: 2a01 cmp r2, #1
  12162. 8004d2e: 6123 str r3, [r4, #16]
  12163. 8004d30: dc02 bgt.n 8004d38 <_printf_float+0x148>
  12164. 8004d32: 6822 ldr r2, [r4, #0]
  12165. 8004d34: 07d1 lsls r1, r2, #31
  12166. 8004d36: d501 bpl.n 8004d3c <_printf_float+0x14c>
  12167. 8004d38: 3301 adds r3, #1
  12168. 8004d3a: 6123 str r3, [r4, #16]
  12169. 8004d3c: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
  12170. 8004d40: 2b00 cmp r3, #0
  12171. 8004d42: d0a2 beq.n 8004c8a <_printf_float+0x9a>
  12172. 8004d44: 232d movs r3, #45 ; 0x2d
  12173. 8004d46: f884 3043 strb.w r3, [r4, #67] ; 0x43
  12174. 8004d4a: e79e b.n 8004c8a <_printf_float+0x9a>
  12175. 8004d4c: f1b8 0f67 cmp.w r8, #103 ; 0x67
  12176. 8004d50: f000 816e beq.w 8005030 <_printf_float+0x440>
  12177. 8004d54: f1b8 0f47 cmp.w r8, #71 ; 0x47
  12178. 8004d58: d1b9 bne.n 8004cce <_printf_float+0xde>
  12179. 8004d5a: 2b00 cmp r3, #0
  12180. 8004d5c: d1b7 bne.n 8004cce <_printf_float+0xde>
  12181. 8004d5e: 2301 movs r3, #1
  12182. 8004d60: e7b4 b.n 8004ccc <_printf_float+0xdc>
  12183. 8004d62: f1b8 0f66 cmp.w r8, #102 ; 0x66
  12184. 8004d66: d119 bne.n 8004d9c <_printf_float+0x1ac>
  12185. 8004d68: 2900 cmp r1, #0
  12186. 8004d6a: 6863 ldr r3, [r4, #4]
  12187. 8004d6c: dd0c ble.n 8004d88 <_printf_float+0x198>
  12188. 8004d6e: 6121 str r1, [r4, #16]
  12189. 8004d70: b913 cbnz r3, 8004d78 <_printf_float+0x188>
  12190. 8004d72: 6822 ldr r2, [r4, #0]
  12191. 8004d74: 07d2 lsls r2, r2, #31
  12192. 8004d76: d502 bpl.n 8004d7e <_printf_float+0x18e>
  12193. 8004d78: 3301 adds r3, #1
  12194. 8004d7a: 440b add r3, r1
  12195. 8004d7c: 6123 str r3, [r4, #16]
  12196. 8004d7e: 9b0d ldr r3, [sp, #52] ; 0x34
  12197. 8004d80: f04f 0900 mov.w r9, #0
  12198. 8004d84: 65a3 str r3, [r4, #88] ; 0x58
  12199. 8004d86: e7d9 b.n 8004d3c <_printf_float+0x14c>
  12200. 8004d88: b913 cbnz r3, 8004d90 <_printf_float+0x1a0>
  12201. 8004d8a: 6822 ldr r2, [r4, #0]
  12202. 8004d8c: 07d0 lsls r0, r2, #31
  12203. 8004d8e: d501 bpl.n 8004d94 <_printf_float+0x1a4>
  12204. 8004d90: 3302 adds r3, #2
  12205. 8004d92: e7f3 b.n 8004d7c <_printf_float+0x18c>
  12206. 8004d94: 2301 movs r3, #1
  12207. 8004d96: e7f1 b.n 8004d7c <_printf_float+0x18c>
  12208. 8004d98: f04f 0867 mov.w r8, #103 ; 0x67
  12209. 8004d9c: e9dd 320d ldrd r3, r2, [sp, #52] ; 0x34
  12210. 8004da0: 4293 cmp r3, r2
  12211. 8004da2: db05 blt.n 8004db0 <_printf_float+0x1c0>
  12212. 8004da4: 6822 ldr r2, [r4, #0]
  12213. 8004da6: 6123 str r3, [r4, #16]
  12214. 8004da8: 07d1 lsls r1, r2, #31
  12215. 8004daa: d5e8 bpl.n 8004d7e <_printf_float+0x18e>
  12216. 8004dac: 3301 adds r3, #1
  12217. 8004dae: e7e5 b.n 8004d7c <_printf_float+0x18c>
  12218. 8004db0: 2b00 cmp r3, #0
  12219. 8004db2: bfcc ite gt
  12220. 8004db4: 2301 movgt r3, #1
  12221. 8004db6: f1c3 0302 rsble r3, r3, #2
  12222. 8004dba: 4413 add r3, r2
  12223. 8004dbc: e7de b.n 8004d7c <_printf_float+0x18c>
  12224. 8004dbe: 6823 ldr r3, [r4, #0]
  12225. 8004dc0: 055a lsls r2, r3, #21
  12226. 8004dc2: d407 bmi.n 8004dd4 <_printf_float+0x1e4>
  12227. 8004dc4: 6923 ldr r3, [r4, #16]
  12228. 8004dc6: 463a mov r2, r7
  12229. 8004dc8: 4659 mov r1, fp
  12230. 8004dca: 4628 mov r0, r5
  12231. 8004dcc: 47b0 blx r6
  12232. 8004dce: 3001 adds r0, #1
  12233. 8004dd0: d129 bne.n 8004e26 <_printf_float+0x236>
  12234. 8004dd2: e764 b.n 8004c9e <_printf_float+0xae>
  12235. 8004dd4: f1b8 0f65 cmp.w r8, #101 ; 0x65
  12236. 8004dd8: f240 80d7 bls.w 8004f8a <_printf_float+0x39a>
  12237. 8004ddc: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  12238. 8004de0: 2200 movs r2, #0
  12239. 8004de2: 2300 movs r3, #0
  12240. 8004de4: f7fb fe40 bl 8000a68 <__aeabi_dcmpeq>
  12241. 8004de8: b388 cbz r0, 8004e4e <_printf_float+0x25e>
  12242. 8004dea: 2301 movs r3, #1
  12243. 8004dec: 4a40 ldr r2, [pc, #256] ; (8004ef0 <_printf_float+0x300>)
  12244. 8004dee: 4659 mov r1, fp
  12245. 8004df0: 4628 mov r0, r5
  12246. 8004df2: 47b0 blx r6
  12247. 8004df4: 3001 adds r0, #1
  12248. 8004df6: f43f af52 beq.w 8004c9e <_printf_float+0xae>
  12249. 8004dfa: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  12250. 8004dfe: 429a cmp r2, r3
  12251. 8004e00: db02 blt.n 8004e08 <_printf_float+0x218>
  12252. 8004e02: 6823 ldr r3, [r4, #0]
  12253. 8004e04: 07d8 lsls r0, r3, #31
  12254. 8004e06: d50e bpl.n 8004e26 <_printf_float+0x236>
  12255. 8004e08: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  12256. 8004e0c: 4659 mov r1, fp
  12257. 8004e0e: 4628 mov r0, r5
  12258. 8004e10: 47b0 blx r6
  12259. 8004e12: 3001 adds r0, #1
  12260. 8004e14: f43f af43 beq.w 8004c9e <_printf_float+0xae>
  12261. 8004e18: 2700 movs r7, #0
  12262. 8004e1a: f104 081a add.w r8, r4, #26
  12263. 8004e1e: 9b0e ldr r3, [sp, #56] ; 0x38
  12264. 8004e20: 3b01 subs r3, #1
  12265. 8004e22: 42bb cmp r3, r7
  12266. 8004e24: dc09 bgt.n 8004e3a <_printf_float+0x24a>
  12267. 8004e26: 6823 ldr r3, [r4, #0]
  12268. 8004e28: 079f lsls r7, r3, #30
  12269. 8004e2a: f100 80fd bmi.w 8005028 <_printf_float+0x438>
  12270. 8004e2e: 68e0 ldr r0, [r4, #12]
  12271. 8004e30: 9b0f ldr r3, [sp, #60] ; 0x3c
  12272. 8004e32: 4298 cmp r0, r3
  12273. 8004e34: bfb8 it lt
  12274. 8004e36: 4618 movlt r0, r3
  12275. 8004e38: e733 b.n 8004ca2 <_printf_float+0xb2>
  12276. 8004e3a: 2301 movs r3, #1
  12277. 8004e3c: 4642 mov r2, r8
  12278. 8004e3e: 4659 mov r1, fp
  12279. 8004e40: 4628 mov r0, r5
  12280. 8004e42: 47b0 blx r6
  12281. 8004e44: 3001 adds r0, #1
  12282. 8004e46: f43f af2a beq.w 8004c9e <_printf_float+0xae>
  12283. 8004e4a: 3701 adds r7, #1
  12284. 8004e4c: e7e7 b.n 8004e1e <_printf_float+0x22e>
  12285. 8004e4e: 9b0d ldr r3, [sp, #52] ; 0x34
  12286. 8004e50: 2b00 cmp r3, #0
  12287. 8004e52: dc2b bgt.n 8004eac <_printf_float+0x2bc>
  12288. 8004e54: 2301 movs r3, #1
  12289. 8004e56: 4a26 ldr r2, [pc, #152] ; (8004ef0 <_printf_float+0x300>)
  12290. 8004e58: 4659 mov r1, fp
  12291. 8004e5a: 4628 mov r0, r5
  12292. 8004e5c: 47b0 blx r6
  12293. 8004e5e: 3001 adds r0, #1
  12294. 8004e60: f43f af1d beq.w 8004c9e <_printf_float+0xae>
  12295. 8004e64: 9b0d ldr r3, [sp, #52] ; 0x34
  12296. 8004e66: b923 cbnz r3, 8004e72 <_printf_float+0x282>
  12297. 8004e68: 9b0e ldr r3, [sp, #56] ; 0x38
  12298. 8004e6a: b913 cbnz r3, 8004e72 <_printf_float+0x282>
  12299. 8004e6c: 6823 ldr r3, [r4, #0]
  12300. 8004e6e: 07d9 lsls r1, r3, #31
  12301. 8004e70: d5d9 bpl.n 8004e26 <_printf_float+0x236>
  12302. 8004e72: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  12303. 8004e76: 4659 mov r1, fp
  12304. 8004e78: 4628 mov r0, r5
  12305. 8004e7a: 47b0 blx r6
  12306. 8004e7c: 3001 adds r0, #1
  12307. 8004e7e: f43f af0e beq.w 8004c9e <_printf_float+0xae>
  12308. 8004e82: f04f 0800 mov.w r8, #0
  12309. 8004e86: f104 091a add.w r9, r4, #26
  12310. 8004e8a: 9b0d ldr r3, [sp, #52] ; 0x34
  12311. 8004e8c: 425b negs r3, r3
  12312. 8004e8e: 4543 cmp r3, r8
  12313. 8004e90: dc01 bgt.n 8004e96 <_printf_float+0x2a6>
  12314. 8004e92: 9b0e ldr r3, [sp, #56] ; 0x38
  12315. 8004e94: e797 b.n 8004dc6 <_printf_float+0x1d6>
  12316. 8004e96: 2301 movs r3, #1
  12317. 8004e98: 464a mov r2, r9
  12318. 8004e9a: 4659 mov r1, fp
  12319. 8004e9c: 4628 mov r0, r5
  12320. 8004e9e: 47b0 blx r6
  12321. 8004ea0: 3001 adds r0, #1
  12322. 8004ea2: f43f aefc beq.w 8004c9e <_printf_float+0xae>
  12323. 8004ea6: f108 0801 add.w r8, r8, #1
  12324. 8004eaa: e7ee b.n 8004e8a <_printf_float+0x29a>
  12325. 8004eac: 9a0e ldr r2, [sp, #56] ; 0x38
  12326. 8004eae: 6da3 ldr r3, [r4, #88] ; 0x58
  12327. 8004eb0: 429a cmp r2, r3
  12328. 8004eb2: bfa8 it ge
  12329. 8004eb4: 461a movge r2, r3
  12330. 8004eb6: 2a00 cmp r2, #0
  12331. 8004eb8: 4690 mov r8, r2
  12332. 8004eba: dd07 ble.n 8004ecc <_printf_float+0x2dc>
  12333. 8004ebc: 4613 mov r3, r2
  12334. 8004ebe: 4659 mov r1, fp
  12335. 8004ec0: 463a mov r2, r7
  12336. 8004ec2: 4628 mov r0, r5
  12337. 8004ec4: 47b0 blx r6
  12338. 8004ec6: 3001 adds r0, #1
  12339. 8004ec8: f43f aee9 beq.w 8004c9e <_printf_float+0xae>
  12340. 8004ecc: f104 031a add.w r3, r4, #26
  12341. 8004ed0: f04f 0a00 mov.w sl, #0
  12342. 8004ed4: ea28 78e8 bic.w r8, r8, r8, asr #31
  12343. 8004ed8: 930b str r3, [sp, #44] ; 0x2c
  12344. 8004eda: e015 b.n 8004f08 <_printf_float+0x318>
  12345. 8004edc: 7fefffff .word 0x7fefffff
  12346. 8004ee0: 0800744c .word 0x0800744c
  12347. 8004ee4: 08007448 .word 0x08007448
  12348. 8004ee8: 08007454 .word 0x08007454
  12349. 8004eec: 08007450 .word 0x08007450
  12350. 8004ef0: 08007458 .word 0x08007458
  12351. 8004ef4: 2301 movs r3, #1
  12352. 8004ef6: 9a0b ldr r2, [sp, #44] ; 0x2c
  12353. 8004ef8: 4659 mov r1, fp
  12354. 8004efa: 4628 mov r0, r5
  12355. 8004efc: 47b0 blx r6
  12356. 8004efe: 3001 adds r0, #1
  12357. 8004f00: f43f aecd beq.w 8004c9e <_printf_float+0xae>
  12358. 8004f04: f10a 0a01 add.w sl, sl, #1
  12359. 8004f08: f8d4 9058 ldr.w r9, [r4, #88] ; 0x58
  12360. 8004f0c: eba9 0308 sub.w r3, r9, r8
  12361. 8004f10: 4553 cmp r3, sl
  12362. 8004f12: dcef bgt.n 8004ef4 <_printf_float+0x304>
  12363. 8004f14: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  12364. 8004f18: 429a cmp r2, r3
  12365. 8004f1a: 444f add r7, r9
  12366. 8004f1c: db14 blt.n 8004f48 <_printf_float+0x358>
  12367. 8004f1e: 6823 ldr r3, [r4, #0]
  12368. 8004f20: 07da lsls r2, r3, #31
  12369. 8004f22: d411 bmi.n 8004f48 <_printf_float+0x358>
  12370. 8004f24: 9b0e ldr r3, [sp, #56] ; 0x38
  12371. 8004f26: 990d ldr r1, [sp, #52] ; 0x34
  12372. 8004f28: eba3 0209 sub.w r2, r3, r9
  12373. 8004f2c: eba3 0901 sub.w r9, r3, r1
  12374. 8004f30: 4591 cmp r9, r2
  12375. 8004f32: bfa8 it ge
  12376. 8004f34: 4691 movge r9, r2
  12377. 8004f36: f1b9 0f00 cmp.w r9, #0
  12378. 8004f3a: dc0d bgt.n 8004f58 <_printf_float+0x368>
  12379. 8004f3c: 2700 movs r7, #0
  12380. 8004f3e: ea29 79e9 bic.w r9, r9, r9, asr #31
  12381. 8004f42: f104 081a add.w r8, r4, #26
  12382. 8004f46: e018 b.n 8004f7a <_printf_float+0x38a>
  12383. 8004f48: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  12384. 8004f4c: 4659 mov r1, fp
  12385. 8004f4e: 4628 mov r0, r5
  12386. 8004f50: 47b0 blx r6
  12387. 8004f52: 3001 adds r0, #1
  12388. 8004f54: d1e6 bne.n 8004f24 <_printf_float+0x334>
  12389. 8004f56: e6a2 b.n 8004c9e <_printf_float+0xae>
  12390. 8004f58: 464b mov r3, r9
  12391. 8004f5a: 463a mov r2, r7
  12392. 8004f5c: 4659 mov r1, fp
  12393. 8004f5e: 4628 mov r0, r5
  12394. 8004f60: 47b0 blx r6
  12395. 8004f62: 3001 adds r0, #1
  12396. 8004f64: d1ea bne.n 8004f3c <_printf_float+0x34c>
  12397. 8004f66: e69a b.n 8004c9e <_printf_float+0xae>
  12398. 8004f68: 2301 movs r3, #1
  12399. 8004f6a: 4642 mov r2, r8
  12400. 8004f6c: 4659 mov r1, fp
  12401. 8004f6e: 4628 mov r0, r5
  12402. 8004f70: 47b0 blx r6
  12403. 8004f72: 3001 adds r0, #1
  12404. 8004f74: f43f ae93 beq.w 8004c9e <_printf_float+0xae>
  12405. 8004f78: 3701 adds r7, #1
  12406. 8004f7a: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  12407. 8004f7e: 1a9b subs r3, r3, r2
  12408. 8004f80: eba3 0309 sub.w r3, r3, r9
  12409. 8004f84: 42bb cmp r3, r7
  12410. 8004f86: dcef bgt.n 8004f68 <_printf_float+0x378>
  12411. 8004f88: e74d b.n 8004e26 <_printf_float+0x236>
  12412. 8004f8a: 9a0e ldr r2, [sp, #56] ; 0x38
  12413. 8004f8c: 2a01 cmp r2, #1
  12414. 8004f8e: dc01 bgt.n 8004f94 <_printf_float+0x3a4>
  12415. 8004f90: 07db lsls r3, r3, #31
  12416. 8004f92: d538 bpl.n 8005006 <_printf_float+0x416>
  12417. 8004f94: 2301 movs r3, #1
  12418. 8004f96: 463a mov r2, r7
  12419. 8004f98: 4659 mov r1, fp
  12420. 8004f9a: 4628 mov r0, r5
  12421. 8004f9c: 47b0 blx r6
  12422. 8004f9e: 3001 adds r0, #1
  12423. 8004fa0: f43f ae7d beq.w 8004c9e <_printf_float+0xae>
  12424. 8004fa4: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  12425. 8004fa8: 4659 mov r1, fp
  12426. 8004faa: 4628 mov r0, r5
  12427. 8004fac: 47b0 blx r6
  12428. 8004fae: 3001 adds r0, #1
  12429. 8004fb0: f107 0701 add.w r7, r7, #1
  12430. 8004fb4: f43f ae73 beq.w 8004c9e <_printf_float+0xae>
  12431. 8004fb8: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  12432. 8004fbc: 9b0e ldr r3, [sp, #56] ; 0x38
  12433. 8004fbe: 2200 movs r2, #0
  12434. 8004fc0: f103 38ff add.w r8, r3, #4294967295
  12435. 8004fc4: 2300 movs r3, #0
  12436. 8004fc6: f7fb fd4f bl 8000a68 <__aeabi_dcmpeq>
  12437. 8004fca: b9c0 cbnz r0, 8004ffe <_printf_float+0x40e>
  12438. 8004fcc: 4643 mov r3, r8
  12439. 8004fce: 463a mov r2, r7
  12440. 8004fd0: 4659 mov r1, fp
  12441. 8004fd2: 4628 mov r0, r5
  12442. 8004fd4: 47b0 blx r6
  12443. 8004fd6: 3001 adds r0, #1
  12444. 8004fd8: d10d bne.n 8004ff6 <_printf_float+0x406>
  12445. 8004fda: e660 b.n 8004c9e <_printf_float+0xae>
  12446. 8004fdc: 2301 movs r3, #1
  12447. 8004fde: 4642 mov r2, r8
  12448. 8004fe0: 4659 mov r1, fp
  12449. 8004fe2: 4628 mov r0, r5
  12450. 8004fe4: 47b0 blx r6
  12451. 8004fe6: 3001 adds r0, #1
  12452. 8004fe8: f43f ae59 beq.w 8004c9e <_printf_float+0xae>
  12453. 8004fec: 3701 adds r7, #1
  12454. 8004fee: 9b0e ldr r3, [sp, #56] ; 0x38
  12455. 8004ff0: 3b01 subs r3, #1
  12456. 8004ff2: 42bb cmp r3, r7
  12457. 8004ff4: dcf2 bgt.n 8004fdc <_printf_float+0x3ec>
  12458. 8004ff6: 464b mov r3, r9
  12459. 8004ff8: f104 0250 add.w r2, r4, #80 ; 0x50
  12460. 8004ffc: e6e4 b.n 8004dc8 <_printf_float+0x1d8>
  12461. 8004ffe: 2700 movs r7, #0
  12462. 8005000: f104 081a add.w r8, r4, #26
  12463. 8005004: e7f3 b.n 8004fee <_printf_float+0x3fe>
  12464. 8005006: 2301 movs r3, #1
  12465. 8005008: e7e1 b.n 8004fce <_printf_float+0x3de>
  12466. 800500a: 2301 movs r3, #1
  12467. 800500c: 4642 mov r2, r8
  12468. 800500e: 4659 mov r1, fp
  12469. 8005010: 4628 mov r0, r5
  12470. 8005012: 47b0 blx r6
  12471. 8005014: 3001 adds r0, #1
  12472. 8005016: f43f ae42 beq.w 8004c9e <_printf_float+0xae>
  12473. 800501a: 3701 adds r7, #1
  12474. 800501c: 68e3 ldr r3, [r4, #12]
  12475. 800501e: 9a0f ldr r2, [sp, #60] ; 0x3c
  12476. 8005020: 1a9b subs r3, r3, r2
  12477. 8005022: 42bb cmp r3, r7
  12478. 8005024: dcf1 bgt.n 800500a <_printf_float+0x41a>
  12479. 8005026: e702 b.n 8004e2e <_printf_float+0x23e>
  12480. 8005028: 2700 movs r7, #0
  12481. 800502a: f104 0819 add.w r8, r4, #25
  12482. 800502e: e7f5 b.n 800501c <_printf_float+0x42c>
  12483. 8005030: 2b00 cmp r3, #0
  12484. 8005032: f43f ae94 beq.w 8004d5e <_printf_float+0x16e>
  12485. 8005036: f04f 0c00 mov.w ip, #0
  12486. 800503a: e9cd 1c05 strd r1, ip, [sp, #20]
  12487. 800503e: f10d 0133 add.w r1, sp, #51 ; 0x33
  12488. 8005042: 6022 str r2, [r4, #0]
  12489. 8005044: e9cd 0803 strd r0, r8, [sp, #12]
  12490. 8005048: e9cd 2101 strd r2, r1, [sp, #4]
  12491. 800504c: 9300 str r3, [sp, #0]
  12492. 800504e: 463a mov r2, r7
  12493. 8005050: 464b mov r3, r9
  12494. 8005052: 4628 mov r0, r5
  12495. 8005054: f7ff fd3a bl 8004acc <__cvt>
  12496. 8005058: 4607 mov r7, r0
  12497. 800505a: e64f b.n 8004cfc <_printf_float+0x10c>
  12498. 0800505c <_printf_common>:
  12499. 800505c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  12500. 8005060: 4691 mov r9, r2
  12501. 8005062: 461f mov r7, r3
  12502. 8005064: 688a ldr r2, [r1, #8]
  12503. 8005066: 690b ldr r3, [r1, #16]
  12504. 8005068: 4606 mov r6, r0
  12505. 800506a: 4293 cmp r3, r2
  12506. 800506c: bfb8 it lt
  12507. 800506e: 4613 movlt r3, r2
  12508. 8005070: f8c9 3000 str.w r3, [r9]
  12509. 8005074: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  12510. 8005078: 460c mov r4, r1
  12511. 800507a: f8dd 8020 ldr.w r8, [sp, #32]
  12512. 800507e: b112 cbz r2, 8005086 <_printf_common+0x2a>
  12513. 8005080: 3301 adds r3, #1
  12514. 8005082: f8c9 3000 str.w r3, [r9]
  12515. 8005086: 6823 ldr r3, [r4, #0]
  12516. 8005088: 0699 lsls r1, r3, #26
  12517. 800508a: bf42 ittt mi
  12518. 800508c: f8d9 3000 ldrmi.w r3, [r9]
  12519. 8005090: 3302 addmi r3, #2
  12520. 8005092: f8c9 3000 strmi.w r3, [r9]
  12521. 8005096: 6825 ldr r5, [r4, #0]
  12522. 8005098: f015 0506 ands.w r5, r5, #6
  12523. 800509c: d107 bne.n 80050ae <_printf_common+0x52>
  12524. 800509e: f104 0a19 add.w sl, r4, #25
  12525. 80050a2: 68e3 ldr r3, [r4, #12]
  12526. 80050a4: f8d9 2000 ldr.w r2, [r9]
  12527. 80050a8: 1a9b subs r3, r3, r2
  12528. 80050aa: 42ab cmp r3, r5
  12529. 80050ac: dc29 bgt.n 8005102 <_printf_common+0xa6>
  12530. 80050ae: f894 3043 ldrb.w r3, [r4, #67] ; 0x43
  12531. 80050b2: 6822 ldr r2, [r4, #0]
  12532. 80050b4: 3300 adds r3, #0
  12533. 80050b6: bf18 it ne
  12534. 80050b8: 2301 movne r3, #1
  12535. 80050ba: 0692 lsls r2, r2, #26
  12536. 80050bc: d42e bmi.n 800511c <_printf_common+0xc0>
  12537. 80050be: f104 0243 add.w r2, r4, #67 ; 0x43
  12538. 80050c2: 4639 mov r1, r7
  12539. 80050c4: 4630 mov r0, r6
  12540. 80050c6: 47c0 blx r8
  12541. 80050c8: 3001 adds r0, #1
  12542. 80050ca: d021 beq.n 8005110 <_printf_common+0xb4>
  12543. 80050cc: 6823 ldr r3, [r4, #0]
  12544. 80050ce: 68e5 ldr r5, [r4, #12]
  12545. 80050d0: f003 0306 and.w r3, r3, #6
  12546. 80050d4: 2b04 cmp r3, #4
  12547. 80050d6: bf18 it ne
  12548. 80050d8: 2500 movne r5, #0
  12549. 80050da: f8d9 2000 ldr.w r2, [r9]
  12550. 80050de: f04f 0900 mov.w r9, #0
  12551. 80050e2: bf08 it eq
  12552. 80050e4: 1aad subeq r5, r5, r2
  12553. 80050e6: 68a3 ldr r3, [r4, #8]
  12554. 80050e8: 6922 ldr r2, [r4, #16]
  12555. 80050ea: bf08 it eq
  12556. 80050ec: ea25 75e5 biceq.w r5, r5, r5, asr #31
  12557. 80050f0: 4293 cmp r3, r2
  12558. 80050f2: bfc4 itt gt
  12559. 80050f4: 1a9b subgt r3, r3, r2
  12560. 80050f6: 18ed addgt r5, r5, r3
  12561. 80050f8: 341a adds r4, #26
  12562. 80050fa: 454d cmp r5, r9
  12563. 80050fc: d11a bne.n 8005134 <_printf_common+0xd8>
  12564. 80050fe: 2000 movs r0, #0
  12565. 8005100: e008 b.n 8005114 <_printf_common+0xb8>
  12566. 8005102: 2301 movs r3, #1
  12567. 8005104: 4652 mov r2, sl
  12568. 8005106: 4639 mov r1, r7
  12569. 8005108: 4630 mov r0, r6
  12570. 800510a: 47c0 blx r8
  12571. 800510c: 3001 adds r0, #1
  12572. 800510e: d103 bne.n 8005118 <_printf_common+0xbc>
  12573. 8005110: f04f 30ff mov.w r0, #4294967295
  12574. 8005114: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  12575. 8005118: 3501 adds r5, #1
  12576. 800511a: e7c2 b.n 80050a2 <_printf_common+0x46>
  12577. 800511c: 2030 movs r0, #48 ; 0x30
  12578. 800511e: 18e1 adds r1, r4, r3
  12579. 8005120: f881 0043 strb.w r0, [r1, #67] ; 0x43
  12580. 8005124: 1c5a adds r2, r3, #1
  12581. 8005126: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  12582. 800512a: 4422 add r2, r4
  12583. 800512c: 3302 adds r3, #2
  12584. 800512e: f882 1043 strb.w r1, [r2, #67] ; 0x43
  12585. 8005132: e7c4 b.n 80050be <_printf_common+0x62>
  12586. 8005134: 2301 movs r3, #1
  12587. 8005136: 4622 mov r2, r4
  12588. 8005138: 4639 mov r1, r7
  12589. 800513a: 4630 mov r0, r6
  12590. 800513c: 47c0 blx r8
  12591. 800513e: 3001 adds r0, #1
  12592. 8005140: d0e6 beq.n 8005110 <_printf_common+0xb4>
  12593. 8005142: f109 0901 add.w r9, r9, #1
  12594. 8005146: e7d8 b.n 80050fa <_printf_common+0x9e>
  12595. 08005148 <_printf_i>:
  12596. 8005148: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  12597. 800514c: f101 0c43 add.w ip, r1, #67 ; 0x43
  12598. 8005150: 460c mov r4, r1
  12599. 8005152: 7e09 ldrb r1, [r1, #24]
  12600. 8005154: b085 sub sp, #20
  12601. 8005156: 296e cmp r1, #110 ; 0x6e
  12602. 8005158: 4617 mov r7, r2
  12603. 800515a: 4606 mov r6, r0
  12604. 800515c: 4698 mov r8, r3
  12605. 800515e: 9a0c ldr r2, [sp, #48] ; 0x30
  12606. 8005160: f000 80b3 beq.w 80052ca <_printf_i+0x182>
  12607. 8005164: d822 bhi.n 80051ac <_printf_i+0x64>
  12608. 8005166: 2963 cmp r1, #99 ; 0x63
  12609. 8005168: d036 beq.n 80051d8 <_printf_i+0x90>
  12610. 800516a: d80a bhi.n 8005182 <_printf_i+0x3a>
  12611. 800516c: 2900 cmp r1, #0
  12612. 800516e: f000 80b9 beq.w 80052e4 <_printf_i+0x19c>
  12613. 8005172: 2958 cmp r1, #88 ; 0x58
  12614. 8005174: f000 8083 beq.w 800527e <_printf_i+0x136>
  12615. 8005178: f104 0542 add.w r5, r4, #66 ; 0x42
  12616. 800517c: f884 1042 strb.w r1, [r4, #66] ; 0x42
  12617. 8005180: e032 b.n 80051e8 <_printf_i+0xa0>
  12618. 8005182: 2964 cmp r1, #100 ; 0x64
  12619. 8005184: d001 beq.n 800518a <_printf_i+0x42>
  12620. 8005186: 2969 cmp r1, #105 ; 0x69
  12621. 8005188: d1f6 bne.n 8005178 <_printf_i+0x30>
  12622. 800518a: 6820 ldr r0, [r4, #0]
  12623. 800518c: 6813 ldr r3, [r2, #0]
  12624. 800518e: 0605 lsls r5, r0, #24
  12625. 8005190: f103 0104 add.w r1, r3, #4
  12626. 8005194: d52a bpl.n 80051ec <_printf_i+0xa4>
  12627. 8005196: 681b ldr r3, [r3, #0]
  12628. 8005198: 6011 str r1, [r2, #0]
  12629. 800519a: 2b00 cmp r3, #0
  12630. 800519c: da03 bge.n 80051a6 <_printf_i+0x5e>
  12631. 800519e: 222d movs r2, #45 ; 0x2d
  12632. 80051a0: 425b negs r3, r3
  12633. 80051a2: f884 2043 strb.w r2, [r4, #67] ; 0x43
  12634. 80051a6: 486f ldr r0, [pc, #444] ; (8005364 <_printf_i+0x21c>)
  12635. 80051a8: 220a movs r2, #10
  12636. 80051aa: e039 b.n 8005220 <_printf_i+0xd8>
  12637. 80051ac: 2973 cmp r1, #115 ; 0x73
  12638. 80051ae: f000 809d beq.w 80052ec <_printf_i+0x1a4>
  12639. 80051b2: d808 bhi.n 80051c6 <_printf_i+0x7e>
  12640. 80051b4: 296f cmp r1, #111 ; 0x6f
  12641. 80051b6: d020 beq.n 80051fa <_printf_i+0xb2>
  12642. 80051b8: 2970 cmp r1, #112 ; 0x70
  12643. 80051ba: d1dd bne.n 8005178 <_printf_i+0x30>
  12644. 80051bc: 6823 ldr r3, [r4, #0]
  12645. 80051be: f043 0320 orr.w r3, r3, #32
  12646. 80051c2: 6023 str r3, [r4, #0]
  12647. 80051c4: e003 b.n 80051ce <_printf_i+0x86>
  12648. 80051c6: 2975 cmp r1, #117 ; 0x75
  12649. 80051c8: d017 beq.n 80051fa <_printf_i+0xb2>
  12650. 80051ca: 2978 cmp r1, #120 ; 0x78
  12651. 80051cc: d1d4 bne.n 8005178 <_printf_i+0x30>
  12652. 80051ce: 2378 movs r3, #120 ; 0x78
  12653. 80051d0: 4865 ldr r0, [pc, #404] ; (8005368 <_printf_i+0x220>)
  12654. 80051d2: f884 3045 strb.w r3, [r4, #69] ; 0x45
  12655. 80051d6: e055 b.n 8005284 <_printf_i+0x13c>
  12656. 80051d8: 6813 ldr r3, [r2, #0]
  12657. 80051da: f104 0542 add.w r5, r4, #66 ; 0x42
  12658. 80051de: 1d19 adds r1, r3, #4
  12659. 80051e0: 681b ldr r3, [r3, #0]
  12660. 80051e2: 6011 str r1, [r2, #0]
  12661. 80051e4: f884 3042 strb.w r3, [r4, #66] ; 0x42
  12662. 80051e8: 2301 movs r3, #1
  12663. 80051ea: e08c b.n 8005306 <_printf_i+0x1be>
  12664. 80051ec: 681b ldr r3, [r3, #0]
  12665. 80051ee: f010 0f40 tst.w r0, #64 ; 0x40
  12666. 80051f2: 6011 str r1, [r2, #0]
  12667. 80051f4: bf18 it ne
  12668. 80051f6: b21b sxthne r3, r3
  12669. 80051f8: e7cf b.n 800519a <_printf_i+0x52>
  12670. 80051fa: 6813 ldr r3, [r2, #0]
  12671. 80051fc: 6825 ldr r5, [r4, #0]
  12672. 80051fe: 1d18 adds r0, r3, #4
  12673. 8005200: 6010 str r0, [r2, #0]
  12674. 8005202: 0628 lsls r0, r5, #24
  12675. 8005204: d501 bpl.n 800520a <_printf_i+0xc2>
  12676. 8005206: 681b ldr r3, [r3, #0]
  12677. 8005208: e002 b.n 8005210 <_printf_i+0xc8>
  12678. 800520a: 0668 lsls r0, r5, #25
  12679. 800520c: d5fb bpl.n 8005206 <_printf_i+0xbe>
  12680. 800520e: 881b ldrh r3, [r3, #0]
  12681. 8005210: 296f cmp r1, #111 ; 0x6f
  12682. 8005212: bf14 ite ne
  12683. 8005214: 220a movne r2, #10
  12684. 8005216: 2208 moveq r2, #8
  12685. 8005218: 4852 ldr r0, [pc, #328] ; (8005364 <_printf_i+0x21c>)
  12686. 800521a: 2100 movs r1, #0
  12687. 800521c: f884 1043 strb.w r1, [r4, #67] ; 0x43
  12688. 8005220: 6865 ldr r5, [r4, #4]
  12689. 8005222: 2d00 cmp r5, #0
  12690. 8005224: 60a5 str r5, [r4, #8]
  12691. 8005226: f2c0 8095 blt.w 8005354 <_printf_i+0x20c>
  12692. 800522a: 6821 ldr r1, [r4, #0]
  12693. 800522c: f021 0104 bic.w r1, r1, #4
  12694. 8005230: 6021 str r1, [r4, #0]
  12695. 8005232: 2b00 cmp r3, #0
  12696. 8005234: d13d bne.n 80052b2 <_printf_i+0x16a>
  12697. 8005236: 2d00 cmp r5, #0
  12698. 8005238: f040 808e bne.w 8005358 <_printf_i+0x210>
  12699. 800523c: 4665 mov r5, ip
  12700. 800523e: 2a08 cmp r2, #8
  12701. 8005240: d10b bne.n 800525a <_printf_i+0x112>
  12702. 8005242: 6823 ldr r3, [r4, #0]
  12703. 8005244: 07db lsls r3, r3, #31
  12704. 8005246: d508 bpl.n 800525a <_printf_i+0x112>
  12705. 8005248: 6923 ldr r3, [r4, #16]
  12706. 800524a: 6862 ldr r2, [r4, #4]
  12707. 800524c: 429a cmp r2, r3
  12708. 800524e: bfde ittt le
  12709. 8005250: 2330 movle r3, #48 ; 0x30
  12710. 8005252: f805 3c01 strble.w r3, [r5, #-1]
  12711. 8005256: f105 35ff addle.w r5, r5, #4294967295
  12712. 800525a: ebac 0305 sub.w r3, ip, r5
  12713. 800525e: 6123 str r3, [r4, #16]
  12714. 8005260: f8cd 8000 str.w r8, [sp]
  12715. 8005264: 463b mov r3, r7
  12716. 8005266: aa03 add r2, sp, #12
  12717. 8005268: 4621 mov r1, r4
  12718. 800526a: 4630 mov r0, r6
  12719. 800526c: f7ff fef6 bl 800505c <_printf_common>
  12720. 8005270: 3001 adds r0, #1
  12721. 8005272: d14d bne.n 8005310 <_printf_i+0x1c8>
  12722. 8005274: f04f 30ff mov.w r0, #4294967295
  12723. 8005278: b005 add sp, #20
  12724. 800527a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  12725. 800527e: 4839 ldr r0, [pc, #228] ; (8005364 <_printf_i+0x21c>)
  12726. 8005280: f884 1045 strb.w r1, [r4, #69] ; 0x45
  12727. 8005284: 6813 ldr r3, [r2, #0]
  12728. 8005286: 6821 ldr r1, [r4, #0]
  12729. 8005288: 1d1d adds r5, r3, #4
  12730. 800528a: 681b ldr r3, [r3, #0]
  12731. 800528c: 6015 str r5, [r2, #0]
  12732. 800528e: 060a lsls r2, r1, #24
  12733. 8005290: d50b bpl.n 80052aa <_printf_i+0x162>
  12734. 8005292: 07ca lsls r2, r1, #31
  12735. 8005294: bf44 itt mi
  12736. 8005296: f041 0120 orrmi.w r1, r1, #32
  12737. 800529a: 6021 strmi r1, [r4, #0]
  12738. 800529c: b91b cbnz r3, 80052a6 <_printf_i+0x15e>
  12739. 800529e: 6822 ldr r2, [r4, #0]
  12740. 80052a0: f022 0220 bic.w r2, r2, #32
  12741. 80052a4: 6022 str r2, [r4, #0]
  12742. 80052a6: 2210 movs r2, #16
  12743. 80052a8: e7b7 b.n 800521a <_printf_i+0xd2>
  12744. 80052aa: 064d lsls r5, r1, #25
  12745. 80052ac: bf48 it mi
  12746. 80052ae: b29b uxthmi r3, r3
  12747. 80052b0: e7ef b.n 8005292 <_printf_i+0x14a>
  12748. 80052b2: 4665 mov r5, ip
  12749. 80052b4: fbb3 f1f2 udiv r1, r3, r2
  12750. 80052b8: fb02 3311 mls r3, r2, r1, r3
  12751. 80052bc: 5cc3 ldrb r3, [r0, r3]
  12752. 80052be: f805 3d01 strb.w r3, [r5, #-1]!
  12753. 80052c2: 460b mov r3, r1
  12754. 80052c4: 2900 cmp r1, #0
  12755. 80052c6: d1f5 bne.n 80052b4 <_printf_i+0x16c>
  12756. 80052c8: e7b9 b.n 800523e <_printf_i+0xf6>
  12757. 80052ca: 6813 ldr r3, [r2, #0]
  12758. 80052cc: 6825 ldr r5, [r4, #0]
  12759. 80052ce: 1d18 adds r0, r3, #4
  12760. 80052d0: 6961 ldr r1, [r4, #20]
  12761. 80052d2: 6010 str r0, [r2, #0]
  12762. 80052d4: 0628 lsls r0, r5, #24
  12763. 80052d6: 681b ldr r3, [r3, #0]
  12764. 80052d8: d501 bpl.n 80052de <_printf_i+0x196>
  12765. 80052da: 6019 str r1, [r3, #0]
  12766. 80052dc: e002 b.n 80052e4 <_printf_i+0x19c>
  12767. 80052de: 066a lsls r2, r5, #25
  12768. 80052e0: d5fb bpl.n 80052da <_printf_i+0x192>
  12769. 80052e2: 8019 strh r1, [r3, #0]
  12770. 80052e4: 2300 movs r3, #0
  12771. 80052e6: 4665 mov r5, ip
  12772. 80052e8: 6123 str r3, [r4, #16]
  12773. 80052ea: e7b9 b.n 8005260 <_printf_i+0x118>
  12774. 80052ec: 6813 ldr r3, [r2, #0]
  12775. 80052ee: 1d19 adds r1, r3, #4
  12776. 80052f0: 6011 str r1, [r2, #0]
  12777. 80052f2: 681d ldr r5, [r3, #0]
  12778. 80052f4: 6862 ldr r2, [r4, #4]
  12779. 80052f6: 2100 movs r1, #0
  12780. 80052f8: 4628 mov r0, r5
  12781. 80052fa: f001 fa61 bl 80067c0 <memchr>
  12782. 80052fe: b108 cbz r0, 8005304 <_printf_i+0x1bc>
  12783. 8005300: 1b40 subs r0, r0, r5
  12784. 8005302: 6060 str r0, [r4, #4]
  12785. 8005304: 6863 ldr r3, [r4, #4]
  12786. 8005306: 6123 str r3, [r4, #16]
  12787. 8005308: 2300 movs r3, #0
  12788. 800530a: f884 3043 strb.w r3, [r4, #67] ; 0x43
  12789. 800530e: e7a7 b.n 8005260 <_printf_i+0x118>
  12790. 8005310: 6923 ldr r3, [r4, #16]
  12791. 8005312: 462a mov r2, r5
  12792. 8005314: 4639 mov r1, r7
  12793. 8005316: 4630 mov r0, r6
  12794. 8005318: 47c0 blx r8
  12795. 800531a: 3001 adds r0, #1
  12796. 800531c: d0aa beq.n 8005274 <_printf_i+0x12c>
  12797. 800531e: 6823 ldr r3, [r4, #0]
  12798. 8005320: 079b lsls r3, r3, #30
  12799. 8005322: d413 bmi.n 800534c <_printf_i+0x204>
  12800. 8005324: 68e0 ldr r0, [r4, #12]
  12801. 8005326: 9b03 ldr r3, [sp, #12]
  12802. 8005328: 4298 cmp r0, r3
  12803. 800532a: bfb8 it lt
  12804. 800532c: 4618 movlt r0, r3
  12805. 800532e: e7a3 b.n 8005278 <_printf_i+0x130>
  12806. 8005330: 2301 movs r3, #1
  12807. 8005332: 464a mov r2, r9
  12808. 8005334: 4639 mov r1, r7
  12809. 8005336: 4630 mov r0, r6
  12810. 8005338: 47c0 blx r8
  12811. 800533a: 3001 adds r0, #1
  12812. 800533c: d09a beq.n 8005274 <_printf_i+0x12c>
  12813. 800533e: 3501 adds r5, #1
  12814. 8005340: 68e3 ldr r3, [r4, #12]
  12815. 8005342: 9a03 ldr r2, [sp, #12]
  12816. 8005344: 1a9b subs r3, r3, r2
  12817. 8005346: 42ab cmp r3, r5
  12818. 8005348: dcf2 bgt.n 8005330 <_printf_i+0x1e8>
  12819. 800534a: e7eb b.n 8005324 <_printf_i+0x1dc>
  12820. 800534c: 2500 movs r5, #0
  12821. 800534e: f104 0919 add.w r9, r4, #25
  12822. 8005352: e7f5 b.n 8005340 <_printf_i+0x1f8>
  12823. 8005354: 2b00 cmp r3, #0
  12824. 8005356: d1ac bne.n 80052b2 <_printf_i+0x16a>
  12825. 8005358: 7803 ldrb r3, [r0, #0]
  12826. 800535a: f104 0542 add.w r5, r4, #66 ; 0x42
  12827. 800535e: f884 3042 strb.w r3, [r4, #66] ; 0x42
  12828. 8005362: e76c b.n 800523e <_printf_i+0xf6>
  12829. 8005364: 0800745a .word 0x0800745a
  12830. 8005368: 0800746b .word 0x0800746b
  12831. 0800536c <iprintf>:
  12832. 800536c: b40f push {r0, r1, r2, r3}
  12833. 800536e: 4b0a ldr r3, [pc, #40] ; (8005398 <iprintf+0x2c>)
  12834. 8005370: b513 push {r0, r1, r4, lr}
  12835. 8005372: 681c ldr r4, [r3, #0]
  12836. 8005374: b124 cbz r4, 8005380 <iprintf+0x14>
  12837. 8005376: 69a3 ldr r3, [r4, #24]
  12838. 8005378: b913 cbnz r3, 8005380 <iprintf+0x14>
  12839. 800537a: 4620 mov r0, r4
  12840. 800537c: f001 f91c bl 80065b8 <__sinit>
  12841. 8005380: ab05 add r3, sp, #20
  12842. 8005382: 9a04 ldr r2, [sp, #16]
  12843. 8005384: 68a1 ldr r1, [r4, #8]
  12844. 8005386: 4620 mov r0, r4
  12845. 8005388: 9301 str r3, [sp, #4]
  12846. 800538a: f001 fdeb bl 8006f64 <_vfiprintf_r>
  12847. 800538e: b002 add sp, #8
  12848. 8005390: e8bd 4010 ldmia.w sp!, {r4, lr}
  12849. 8005394: b004 add sp, #16
  12850. 8005396: 4770 bx lr
  12851. 8005398: 2000000c .word 0x2000000c
  12852. 0800539c <_puts_r>:
  12853. 800539c: b570 push {r4, r5, r6, lr}
  12854. 800539e: 460e mov r6, r1
  12855. 80053a0: 4605 mov r5, r0
  12856. 80053a2: b118 cbz r0, 80053ac <_puts_r+0x10>
  12857. 80053a4: 6983 ldr r3, [r0, #24]
  12858. 80053a6: b90b cbnz r3, 80053ac <_puts_r+0x10>
  12859. 80053a8: f001 f906 bl 80065b8 <__sinit>
  12860. 80053ac: 69ab ldr r3, [r5, #24]
  12861. 80053ae: 68ac ldr r4, [r5, #8]
  12862. 80053b0: b913 cbnz r3, 80053b8 <_puts_r+0x1c>
  12863. 80053b2: 4628 mov r0, r5
  12864. 80053b4: f001 f900 bl 80065b8 <__sinit>
  12865. 80053b8: 4b23 ldr r3, [pc, #140] ; (8005448 <_puts_r+0xac>)
  12866. 80053ba: 429c cmp r4, r3
  12867. 80053bc: d117 bne.n 80053ee <_puts_r+0x52>
  12868. 80053be: 686c ldr r4, [r5, #4]
  12869. 80053c0: 89a3 ldrh r3, [r4, #12]
  12870. 80053c2: 071b lsls r3, r3, #28
  12871. 80053c4: d51d bpl.n 8005402 <_puts_r+0x66>
  12872. 80053c6: 6923 ldr r3, [r4, #16]
  12873. 80053c8: b1db cbz r3, 8005402 <_puts_r+0x66>
  12874. 80053ca: 3e01 subs r6, #1
  12875. 80053cc: 68a3 ldr r3, [r4, #8]
  12876. 80053ce: f816 1f01 ldrb.w r1, [r6, #1]!
  12877. 80053d2: 3b01 subs r3, #1
  12878. 80053d4: 60a3 str r3, [r4, #8]
  12879. 80053d6: b9e9 cbnz r1, 8005414 <_puts_r+0x78>
  12880. 80053d8: 2b00 cmp r3, #0
  12881. 80053da: da2e bge.n 800543a <_puts_r+0x9e>
  12882. 80053dc: 4622 mov r2, r4
  12883. 80053de: 210a movs r1, #10
  12884. 80053e0: 4628 mov r0, r5
  12885. 80053e2: f000 f8f5 bl 80055d0 <__swbuf_r>
  12886. 80053e6: 3001 adds r0, #1
  12887. 80053e8: d011 beq.n 800540e <_puts_r+0x72>
  12888. 80053ea: 200a movs r0, #10
  12889. 80053ec: e011 b.n 8005412 <_puts_r+0x76>
  12890. 80053ee: 4b17 ldr r3, [pc, #92] ; (800544c <_puts_r+0xb0>)
  12891. 80053f0: 429c cmp r4, r3
  12892. 80053f2: d101 bne.n 80053f8 <_puts_r+0x5c>
  12893. 80053f4: 68ac ldr r4, [r5, #8]
  12894. 80053f6: e7e3 b.n 80053c0 <_puts_r+0x24>
  12895. 80053f8: 4b15 ldr r3, [pc, #84] ; (8005450 <_puts_r+0xb4>)
  12896. 80053fa: 429c cmp r4, r3
  12897. 80053fc: bf08 it eq
  12898. 80053fe: 68ec ldreq r4, [r5, #12]
  12899. 8005400: e7de b.n 80053c0 <_puts_r+0x24>
  12900. 8005402: 4621 mov r1, r4
  12901. 8005404: 4628 mov r0, r5
  12902. 8005406: f000 f935 bl 8005674 <__swsetup_r>
  12903. 800540a: 2800 cmp r0, #0
  12904. 800540c: d0dd beq.n 80053ca <_puts_r+0x2e>
  12905. 800540e: f04f 30ff mov.w r0, #4294967295
  12906. 8005412: bd70 pop {r4, r5, r6, pc}
  12907. 8005414: 2b00 cmp r3, #0
  12908. 8005416: da04 bge.n 8005422 <_puts_r+0x86>
  12909. 8005418: 69a2 ldr r2, [r4, #24]
  12910. 800541a: 429a cmp r2, r3
  12911. 800541c: dc06 bgt.n 800542c <_puts_r+0x90>
  12912. 800541e: 290a cmp r1, #10
  12913. 8005420: d004 beq.n 800542c <_puts_r+0x90>
  12914. 8005422: 6823 ldr r3, [r4, #0]
  12915. 8005424: 1c5a adds r2, r3, #1
  12916. 8005426: 6022 str r2, [r4, #0]
  12917. 8005428: 7019 strb r1, [r3, #0]
  12918. 800542a: e7cf b.n 80053cc <_puts_r+0x30>
  12919. 800542c: 4622 mov r2, r4
  12920. 800542e: 4628 mov r0, r5
  12921. 8005430: f000 f8ce bl 80055d0 <__swbuf_r>
  12922. 8005434: 3001 adds r0, #1
  12923. 8005436: d1c9 bne.n 80053cc <_puts_r+0x30>
  12924. 8005438: e7e9 b.n 800540e <_puts_r+0x72>
  12925. 800543a: 200a movs r0, #10
  12926. 800543c: 6823 ldr r3, [r4, #0]
  12927. 800543e: 1c5a adds r2, r3, #1
  12928. 8005440: 6022 str r2, [r4, #0]
  12929. 8005442: 7018 strb r0, [r3, #0]
  12930. 8005444: e7e5 b.n 8005412 <_puts_r+0x76>
  12931. 8005446: bf00 nop
  12932. 8005448: 080074ac .word 0x080074ac
  12933. 800544c: 080074cc .word 0x080074cc
  12934. 8005450: 0800748c .word 0x0800748c
  12935. 08005454 <puts>:
  12936. 8005454: 4b02 ldr r3, [pc, #8] ; (8005460 <puts+0xc>)
  12937. 8005456: 4601 mov r1, r0
  12938. 8005458: 6818 ldr r0, [r3, #0]
  12939. 800545a: f7ff bf9f b.w 800539c <_puts_r>
  12940. 800545e: bf00 nop
  12941. 8005460: 2000000c .word 0x2000000c
  12942. 08005464 <setbuf>:
  12943. 8005464: 2900 cmp r1, #0
  12944. 8005466: f44f 6380 mov.w r3, #1024 ; 0x400
  12945. 800546a: bf0c ite eq
  12946. 800546c: 2202 moveq r2, #2
  12947. 800546e: 2200 movne r2, #0
  12948. 8005470: f000 b800 b.w 8005474 <setvbuf>
  12949. 08005474 <setvbuf>:
  12950. 8005474: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  12951. 8005478: 461d mov r5, r3
  12952. 800547a: 4b51 ldr r3, [pc, #324] ; (80055c0 <setvbuf+0x14c>)
  12953. 800547c: 4604 mov r4, r0
  12954. 800547e: 681e ldr r6, [r3, #0]
  12955. 8005480: 460f mov r7, r1
  12956. 8005482: 4690 mov r8, r2
  12957. 8005484: b126 cbz r6, 8005490 <setvbuf+0x1c>
  12958. 8005486: 69b3 ldr r3, [r6, #24]
  12959. 8005488: b913 cbnz r3, 8005490 <setvbuf+0x1c>
  12960. 800548a: 4630 mov r0, r6
  12961. 800548c: f001 f894 bl 80065b8 <__sinit>
  12962. 8005490: 4b4c ldr r3, [pc, #304] ; (80055c4 <setvbuf+0x150>)
  12963. 8005492: 429c cmp r4, r3
  12964. 8005494: d152 bne.n 800553c <setvbuf+0xc8>
  12965. 8005496: 6874 ldr r4, [r6, #4]
  12966. 8005498: f1b8 0f02 cmp.w r8, #2
  12967. 800549c: d006 beq.n 80054ac <setvbuf+0x38>
  12968. 800549e: f1b8 0f01 cmp.w r8, #1
  12969. 80054a2: f200 8089 bhi.w 80055b8 <setvbuf+0x144>
  12970. 80054a6: 2d00 cmp r5, #0
  12971. 80054a8: f2c0 8086 blt.w 80055b8 <setvbuf+0x144>
  12972. 80054ac: 4621 mov r1, r4
  12973. 80054ae: 4630 mov r0, r6
  12974. 80054b0: f001 f818 bl 80064e4 <_fflush_r>
  12975. 80054b4: 6b61 ldr r1, [r4, #52] ; 0x34
  12976. 80054b6: b141 cbz r1, 80054ca <setvbuf+0x56>
  12977. 80054b8: f104 0344 add.w r3, r4, #68 ; 0x44
  12978. 80054bc: 4299 cmp r1, r3
  12979. 80054be: d002 beq.n 80054c6 <setvbuf+0x52>
  12980. 80054c0: 4630 mov r0, r6
  12981. 80054c2: f001 fc81 bl 8006dc8 <_free_r>
  12982. 80054c6: 2300 movs r3, #0
  12983. 80054c8: 6363 str r3, [r4, #52] ; 0x34
  12984. 80054ca: 2300 movs r3, #0
  12985. 80054cc: 61a3 str r3, [r4, #24]
  12986. 80054ce: 6063 str r3, [r4, #4]
  12987. 80054d0: 89a3 ldrh r3, [r4, #12]
  12988. 80054d2: 061b lsls r3, r3, #24
  12989. 80054d4: d503 bpl.n 80054de <setvbuf+0x6a>
  12990. 80054d6: 6921 ldr r1, [r4, #16]
  12991. 80054d8: 4630 mov r0, r6
  12992. 80054da: f001 fc75 bl 8006dc8 <_free_r>
  12993. 80054de: 89a3 ldrh r3, [r4, #12]
  12994. 80054e0: f1b8 0f02 cmp.w r8, #2
  12995. 80054e4: f423 634a bic.w r3, r3, #3232 ; 0xca0
  12996. 80054e8: f023 0303 bic.w r3, r3, #3
  12997. 80054ec: 81a3 strh r3, [r4, #12]
  12998. 80054ee: d05d beq.n 80055ac <setvbuf+0x138>
  12999. 80054f0: ab01 add r3, sp, #4
  13000. 80054f2: 466a mov r2, sp
  13001. 80054f4: 4621 mov r1, r4
  13002. 80054f6: 4630 mov r0, r6
  13003. 80054f8: f001 f8f6 bl 80066e8 <__swhatbuf_r>
  13004. 80054fc: 89a3 ldrh r3, [r4, #12]
  13005. 80054fe: 4318 orrs r0, r3
  13006. 8005500: 81a0 strh r0, [r4, #12]
  13007. 8005502: bb2d cbnz r5, 8005550 <setvbuf+0xdc>
  13008. 8005504: 9d00 ldr r5, [sp, #0]
  13009. 8005506: 4628 mov r0, r5
  13010. 8005508: f001 f952 bl 80067b0 <malloc>
  13011. 800550c: 4607 mov r7, r0
  13012. 800550e: 2800 cmp r0, #0
  13013. 8005510: d14e bne.n 80055b0 <setvbuf+0x13c>
  13014. 8005512: f8dd 9000 ldr.w r9, [sp]
  13015. 8005516: 45a9 cmp r9, r5
  13016. 8005518: d13c bne.n 8005594 <setvbuf+0x120>
  13017. 800551a: f04f 30ff mov.w r0, #4294967295
  13018. 800551e: 89a3 ldrh r3, [r4, #12]
  13019. 8005520: f043 0302 orr.w r3, r3, #2
  13020. 8005524: 81a3 strh r3, [r4, #12]
  13021. 8005526: 2300 movs r3, #0
  13022. 8005528: 60a3 str r3, [r4, #8]
  13023. 800552a: f104 0347 add.w r3, r4, #71 ; 0x47
  13024. 800552e: 6023 str r3, [r4, #0]
  13025. 8005530: 6123 str r3, [r4, #16]
  13026. 8005532: 2301 movs r3, #1
  13027. 8005534: 6163 str r3, [r4, #20]
  13028. 8005536: b003 add sp, #12
  13029. 8005538: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  13030. 800553c: 4b22 ldr r3, [pc, #136] ; (80055c8 <setvbuf+0x154>)
  13031. 800553e: 429c cmp r4, r3
  13032. 8005540: d101 bne.n 8005546 <setvbuf+0xd2>
  13033. 8005542: 68b4 ldr r4, [r6, #8]
  13034. 8005544: e7a8 b.n 8005498 <setvbuf+0x24>
  13035. 8005546: 4b21 ldr r3, [pc, #132] ; (80055cc <setvbuf+0x158>)
  13036. 8005548: 429c cmp r4, r3
  13037. 800554a: bf08 it eq
  13038. 800554c: 68f4 ldreq r4, [r6, #12]
  13039. 800554e: e7a3 b.n 8005498 <setvbuf+0x24>
  13040. 8005550: 2f00 cmp r7, #0
  13041. 8005552: d0d8 beq.n 8005506 <setvbuf+0x92>
  13042. 8005554: 69b3 ldr r3, [r6, #24]
  13043. 8005556: b913 cbnz r3, 800555e <setvbuf+0xea>
  13044. 8005558: 4630 mov r0, r6
  13045. 800555a: f001 f82d bl 80065b8 <__sinit>
  13046. 800555e: f1b8 0f01 cmp.w r8, #1
  13047. 8005562: bf08 it eq
  13048. 8005564: 89a3 ldrheq r3, [r4, #12]
  13049. 8005566: 6027 str r7, [r4, #0]
  13050. 8005568: bf04 itt eq
  13051. 800556a: f043 0301 orreq.w r3, r3, #1
  13052. 800556e: 81a3 strheq r3, [r4, #12]
  13053. 8005570: 89a3 ldrh r3, [r4, #12]
  13054. 8005572: e9c4 7504 strd r7, r5, [r4, #16]
  13055. 8005576: f013 0008 ands.w r0, r3, #8
  13056. 800557a: d01b beq.n 80055b4 <setvbuf+0x140>
  13057. 800557c: f013 0001 ands.w r0, r3, #1
  13058. 8005580: f04f 0300 mov.w r3, #0
  13059. 8005584: bf1f itttt ne
  13060. 8005586: 426d negne r5, r5
  13061. 8005588: 60a3 strne r3, [r4, #8]
  13062. 800558a: 61a5 strne r5, [r4, #24]
  13063. 800558c: 4618 movne r0, r3
  13064. 800558e: bf08 it eq
  13065. 8005590: 60a5 streq r5, [r4, #8]
  13066. 8005592: e7d0 b.n 8005536 <setvbuf+0xc2>
  13067. 8005594: 4648 mov r0, r9
  13068. 8005596: f001 f90b bl 80067b0 <malloc>
  13069. 800559a: 4607 mov r7, r0
  13070. 800559c: 2800 cmp r0, #0
  13071. 800559e: d0bc beq.n 800551a <setvbuf+0xa6>
  13072. 80055a0: 89a3 ldrh r3, [r4, #12]
  13073. 80055a2: 464d mov r5, r9
  13074. 80055a4: f043 0380 orr.w r3, r3, #128 ; 0x80
  13075. 80055a8: 81a3 strh r3, [r4, #12]
  13076. 80055aa: e7d3 b.n 8005554 <setvbuf+0xe0>
  13077. 80055ac: 2000 movs r0, #0
  13078. 80055ae: e7b6 b.n 800551e <setvbuf+0xaa>
  13079. 80055b0: 46a9 mov r9, r5
  13080. 80055b2: e7f5 b.n 80055a0 <setvbuf+0x12c>
  13081. 80055b4: 60a0 str r0, [r4, #8]
  13082. 80055b6: e7be b.n 8005536 <setvbuf+0xc2>
  13083. 80055b8: f04f 30ff mov.w r0, #4294967295
  13084. 80055bc: e7bb b.n 8005536 <setvbuf+0xc2>
  13085. 80055be: bf00 nop
  13086. 80055c0: 2000000c .word 0x2000000c
  13087. 80055c4: 080074ac .word 0x080074ac
  13088. 80055c8: 080074cc .word 0x080074cc
  13089. 80055cc: 0800748c .word 0x0800748c
  13090. 080055d0 <__swbuf_r>:
  13091. 80055d0: b5f8 push {r3, r4, r5, r6, r7, lr}
  13092. 80055d2: 460e mov r6, r1
  13093. 80055d4: 4614 mov r4, r2
  13094. 80055d6: 4605 mov r5, r0
  13095. 80055d8: b118 cbz r0, 80055e2 <__swbuf_r+0x12>
  13096. 80055da: 6983 ldr r3, [r0, #24]
  13097. 80055dc: b90b cbnz r3, 80055e2 <__swbuf_r+0x12>
  13098. 80055de: f000 ffeb bl 80065b8 <__sinit>
  13099. 80055e2: 4b21 ldr r3, [pc, #132] ; (8005668 <__swbuf_r+0x98>)
  13100. 80055e4: 429c cmp r4, r3
  13101. 80055e6: d12a bne.n 800563e <__swbuf_r+0x6e>
  13102. 80055e8: 686c ldr r4, [r5, #4]
  13103. 80055ea: 69a3 ldr r3, [r4, #24]
  13104. 80055ec: 60a3 str r3, [r4, #8]
  13105. 80055ee: 89a3 ldrh r3, [r4, #12]
  13106. 80055f0: 071a lsls r2, r3, #28
  13107. 80055f2: d52e bpl.n 8005652 <__swbuf_r+0x82>
  13108. 80055f4: 6923 ldr r3, [r4, #16]
  13109. 80055f6: b363 cbz r3, 8005652 <__swbuf_r+0x82>
  13110. 80055f8: 6923 ldr r3, [r4, #16]
  13111. 80055fa: 6820 ldr r0, [r4, #0]
  13112. 80055fc: b2f6 uxtb r6, r6
  13113. 80055fe: 1ac0 subs r0, r0, r3
  13114. 8005600: 6963 ldr r3, [r4, #20]
  13115. 8005602: 4637 mov r7, r6
  13116. 8005604: 4283 cmp r3, r0
  13117. 8005606: dc04 bgt.n 8005612 <__swbuf_r+0x42>
  13118. 8005608: 4621 mov r1, r4
  13119. 800560a: 4628 mov r0, r5
  13120. 800560c: f000 ff6a bl 80064e4 <_fflush_r>
  13121. 8005610: bb28 cbnz r0, 800565e <__swbuf_r+0x8e>
  13122. 8005612: 68a3 ldr r3, [r4, #8]
  13123. 8005614: 3001 adds r0, #1
  13124. 8005616: 3b01 subs r3, #1
  13125. 8005618: 60a3 str r3, [r4, #8]
  13126. 800561a: 6823 ldr r3, [r4, #0]
  13127. 800561c: 1c5a adds r2, r3, #1
  13128. 800561e: 6022 str r2, [r4, #0]
  13129. 8005620: 701e strb r6, [r3, #0]
  13130. 8005622: 6963 ldr r3, [r4, #20]
  13131. 8005624: 4283 cmp r3, r0
  13132. 8005626: d004 beq.n 8005632 <__swbuf_r+0x62>
  13133. 8005628: 89a3 ldrh r3, [r4, #12]
  13134. 800562a: 07db lsls r3, r3, #31
  13135. 800562c: d519 bpl.n 8005662 <__swbuf_r+0x92>
  13136. 800562e: 2e0a cmp r6, #10
  13137. 8005630: d117 bne.n 8005662 <__swbuf_r+0x92>
  13138. 8005632: 4621 mov r1, r4
  13139. 8005634: 4628 mov r0, r5
  13140. 8005636: f000 ff55 bl 80064e4 <_fflush_r>
  13141. 800563a: b190 cbz r0, 8005662 <__swbuf_r+0x92>
  13142. 800563c: e00f b.n 800565e <__swbuf_r+0x8e>
  13143. 800563e: 4b0b ldr r3, [pc, #44] ; (800566c <__swbuf_r+0x9c>)
  13144. 8005640: 429c cmp r4, r3
  13145. 8005642: d101 bne.n 8005648 <__swbuf_r+0x78>
  13146. 8005644: 68ac ldr r4, [r5, #8]
  13147. 8005646: e7d0 b.n 80055ea <__swbuf_r+0x1a>
  13148. 8005648: 4b09 ldr r3, [pc, #36] ; (8005670 <__swbuf_r+0xa0>)
  13149. 800564a: 429c cmp r4, r3
  13150. 800564c: bf08 it eq
  13151. 800564e: 68ec ldreq r4, [r5, #12]
  13152. 8005650: e7cb b.n 80055ea <__swbuf_r+0x1a>
  13153. 8005652: 4621 mov r1, r4
  13154. 8005654: 4628 mov r0, r5
  13155. 8005656: f000 f80d bl 8005674 <__swsetup_r>
  13156. 800565a: 2800 cmp r0, #0
  13157. 800565c: d0cc beq.n 80055f8 <__swbuf_r+0x28>
  13158. 800565e: f04f 37ff mov.w r7, #4294967295
  13159. 8005662: 4638 mov r0, r7
  13160. 8005664: bdf8 pop {r3, r4, r5, r6, r7, pc}
  13161. 8005666: bf00 nop
  13162. 8005668: 080074ac .word 0x080074ac
  13163. 800566c: 080074cc .word 0x080074cc
  13164. 8005670: 0800748c .word 0x0800748c
  13165. 08005674 <__swsetup_r>:
  13166. 8005674: 4b32 ldr r3, [pc, #200] ; (8005740 <__swsetup_r+0xcc>)
  13167. 8005676: b570 push {r4, r5, r6, lr}
  13168. 8005678: 681d ldr r5, [r3, #0]
  13169. 800567a: 4606 mov r6, r0
  13170. 800567c: 460c mov r4, r1
  13171. 800567e: b125 cbz r5, 800568a <__swsetup_r+0x16>
  13172. 8005680: 69ab ldr r3, [r5, #24]
  13173. 8005682: b913 cbnz r3, 800568a <__swsetup_r+0x16>
  13174. 8005684: 4628 mov r0, r5
  13175. 8005686: f000 ff97 bl 80065b8 <__sinit>
  13176. 800568a: 4b2e ldr r3, [pc, #184] ; (8005744 <__swsetup_r+0xd0>)
  13177. 800568c: 429c cmp r4, r3
  13178. 800568e: d10f bne.n 80056b0 <__swsetup_r+0x3c>
  13179. 8005690: 686c ldr r4, [r5, #4]
  13180. 8005692: f9b4 300c ldrsh.w r3, [r4, #12]
  13181. 8005696: b29a uxth r2, r3
  13182. 8005698: 0715 lsls r5, r2, #28
  13183. 800569a: d42c bmi.n 80056f6 <__swsetup_r+0x82>
  13184. 800569c: 06d0 lsls r0, r2, #27
  13185. 800569e: d411 bmi.n 80056c4 <__swsetup_r+0x50>
  13186. 80056a0: 2209 movs r2, #9
  13187. 80056a2: 6032 str r2, [r6, #0]
  13188. 80056a4: f043 0340 orr.w r3, r3, #64 ; 0x40
  13189. 80056a8: 81a3 strh r3, [r4, #12]
  13190. 80056aa: f04f 30ff mov.w r0, #4294967295
  13191. 80056ae: e03e b.n 800572e <__swsetup_r+0xba>
  13192. 80056b0: 4b25 ldr r3, [pc, #148] ; (8005748 <__swsetup_r+0xd4>)
  13193. 80056b2: 429c cmp r4, r3
  13194. 80056b4: d101 bne.n 80056ba <__swsetup_r+0x46>
  13195. 80056b6: 68ac ldr r4, [r5, #8]
  13196. 80056b8: e7eb b.n 8005692 <__swsetup_r+0x1e>
  13197. 80056ba: 4b24 ldr r3, [pc, #144] ; (800574c <__swsetup_r+0xd8>)
  13198. 80056bc: 429c cmp r4, r3
  13199. 80056be: bf08 it eq
  13200. 80056c0: 68ec ldreq r4, [r5, #12]
  13201. 80056c2: e7e6 b.n 8005692 <__swsetup_r+0x1e>
  13202. 80056c4: 0751 lsls r1, r2, #29
  13203. 80056c6: d512 bpl.n 80056ee <__swsetup_r+0x7a>
  13204. 80056c8: 6b61 ldr r1, [r4, #52] ; 0x34
  13205. 80056ca: b141 cbz r1, 80056de <__swsetup_r+0x6a>
  13206. 80056cc: f104 0344 add.w r3, r4, #68 ; 0x44
  13207. 80056d0: 4299 cmp r1, r3
  13208. 80056d2: d002 beq.n 80056da <__swsetup_r+0x66>
  13209. 80056d4: 4630 mov r0, r6
  13210. 80056d6: f001 fb77 bl 8006dc8 <_free_r>
  13211. 80056da: 2300 movs r3, #0
  13212. 80056dc: 6363 str r3, [r4, #52] ; 0x34
  13213. 80056de: 89a3 ldrh r3, [r4, #12]
  13214. 80056e0: f023 0324 bic.w r3, r3, #36 ; 0x24
  13215. 80056e4: 81a3 strh r3, [r4, #12]
  13216. 80056e6: 2300 movs r3, #0
  13217. 80056e8: 6063 str r3, [r4, #4]
  13218. 80056ea: 6923 ldr r3, [r4, #16]
  13219. 80056ec: 6023 str r3, [r4, #0]
  13220. 80056ee: 89a3 ldrh r3, [r4, #12]
  13221. 80056f0: f043 0308 orr.w r3, r3, #8
  13222. 80056f4: 81a3 strh r3, [r4, #12]
  13223. 80056f6: 6923 ldr r3, [r4, #16]
  13224. 80056f8: b94b cbnz r3, 800570e <__swsetup_r+0x9a>
  13225. 80056fa: 89a3 ldrh r3, [r4, #12]
  13226. 80056fc: f403 7320 and.w r3, r3, #640 ; 0x280
  13227. 8005700: f5b3 7f00 cmp.w r3, #512 ; 0x200
  13228. 8005704: d003 beq.n 800570e <__swsetup_r+0x9a>
  13229. 8005706: 4621 mov r1, r4
  13230. 8005708: 4630 mov r0, r6
  13231. 800570a: f001 f811 bl 8006730 <__smakebuf_r>
  13232. 800570e: 89a2 ldrh r2, [r4, #12]
  13233. 8005710: f012 0301 ands.w r3, r2, #1
  13234. 8005714: d00c beq.n 8005730 <__swsetup_r+0xbc>
  13235. 8005716: 2300 movs r3, #0
  13236. 8005718: 60a3 str r3, [r4, #8]
  13237. 800571a: 6963 ldr r3, [r4, #20]
  13238. 800571c: 425b negs r3, r3
  13239. 800571e: 61a3 str r3, [r4, #24]
  13240. 8005720: 6923 ldr r3, [r4, #16]
  13241. 8005722: b953 cbnz r3, 800573a <__swsetup_r+0xc6>
  13242. 8005724: f9b4 300c ldrsh.w r3, [r4, #12]
  13243. 8005728: f013 0080 ands.w r0, r3, #128 ; 0x80
  13244. 800572c: d1ba bne.n 80056a4 <__swsetup_r+0x30>
  13245. 800572e: bd70 pop {r4, r5, r6, pc}
  13246. 8005730: 0792 lsls r2, r2, #30
  13247. 8005732: bf58 it pl
  13248. 8005734: 6963 ldrpl r3, [r4, #20]
  13249. 8005736: 60a3 str r3, [r4, #8]
  13250. 8005738: e7f2 b.n 8005720 <__swsetup_r+0xac>
  13251. 800573a: 2000 movs r0, #0
  13252. 800573c: e7f7 b.n 800572e <__swsetup_r+0xba>
  13253. 800573e: bf00 nop
  13254. 8005740: 2000000c .word 0x2000000c
  13255. 8005744: 080074ac .word 0x080074ac
  13256. 8005748: 080074cc .word 0x080074cc
  13257. 800574c: 0800748c .word 0x0800748c
  13258. 08005750 <quorem>:
  13259. 8005750: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  13260. 8005754: 6903 ldr r3, [r0, #16]
  13261. 8005756: 690c ldr r4, [r1, #16]
  13262. 8005758: 4680 mov r8, r0
  13263. 800575a: 42a3 cmp r3, r4
  13264. 800575c: f2c0 8084 blt.w 8005868 <quorem+0x118>
  13265. 8005760: 3c01 subs r4, #1
  13266. 8005762: f101 0714 add.w r7, r1, #20
  13267. 8005766: f100 0614 add.w r6, r0, #20
  13268. 800576a: f857 5024 ldr.w r5, [r7, r4, lsl #2]
  13269. 800576e: f856 0024 ldr.w r0, [r6, r4, lsl #2]
  13270. 8005772: 3501 adds r5, #1
  13271. 8005774: fbb0 f5f5 udiv r5, r0, r5
  13272. 8005778: ea4f 0c84 mov.w ip, r4, lsl #2
  13273. 800577c: eb06 030c add.w r3, r6, ip
  13274. 8005780: eb07 090c add.w r9, r7, ip
  13275. 8005784: 9301 str r3, [sp, #4]
  13276. 8005786: b39d cbz r5, 80057f0 <quorem+0xa0>
  13277. 8005788: f04f 0a00 mov.w sl, #0
  13278. 800578c: 4638 mov r0, r7
  13279. 800578e: 46b6 mov lr, r6
  13280. 8005790: 46d3 mov fp, sl
  13281. 8005792: f850 2b04 ldr.w r2, [r0], #4
  13282. 8005796: b293 uxth r3, r2
  13283. 8005798: fb05 a303 mla r3, r5, r3, sl
  13284. 800579c: 0c12 lsrs r2, r2, #16
  13285. 800579e: ea4f 4a13 mov.w sl, r3, lsr #16
  13286. 80057a2: fb05 a202 mla r2, r5, r2, sl
  13287. 80057a6: b29b uxth r3, r3
  13288. 80057a8: ebab 0303 sub.w r3, fp, r3
  13289. 80057ac: f8de b000 ldr.w fp, [lr]
  13290. 80057b0: ea4f 4a12 mov.w sl, r2, lsr #16
  13291. 80057b4: fa1f fb8b uxth.w fp, fp
  13292. 80057b8: 445b add r3, fp
  13293. 80057ba: fa1f fb82 uxth.w fp, r2
  13294. 80057be: f8de 2000 ldr.w r2, [lr]
  13295. 80057c2: 4581 cmp r9, r0
  13296. 80057c4: ebcb 4212 rsb r2, fp, r2, lsr #16
  13297. 80057c8: eb02 4223 add.w r2, r2, r3, asr #16
  13298. 80057cc: b29b uxth r3, r3
  13299. 80057ce: ea43 4302 orr.w r3, r3, r2, lsl #16
  13300. 80057d2: ea4f 4b22 mov.w fp, r2, asr #16
  13301. 80057d6: f84e 3b04 str.w r3, [lr], #4
  13302. 80057da: d2da bcs.n 8005792 <quorem+0x42>
  13303. 80057dc: f856 300c ldr.w r3, [r6, ip]
  13304. 80057e0: b933 cbnz r3, 80057f0 <quorem+0xa0>
  13305. 80057e2: 9b01 ldr r3, [sp, #4]
  13306. 80057e4: 3b04 subs r3, #4
  13307. 80057e6: 429e cmp r6, r3
  13308. 80057e8: 461a mov r2, r3
  13309. 80057ea: d331 bcc.n 8005850 <quorem+0x100>
  13310. 80057ec: f8c8 4010 str.w r4, [r8, #16]
  13311. 80057f0: 4640 mov r0, r8
  13312. 80057f2: f001 fa13 bl 8006c1c <__mcmp>
  13313. 80057f6: 2800 cmp r0, #0
  13314. 80057f8: db26 blt.n 8005848 <quorem+0xf8>
  13315. 80057fa: 4630 mov r0, r6
  13316. 80057fc: f04f 0c00 mov.w ip, #0
  13317. 8005800: 3501 adds r5, #1
  13318. 8005802: f857 1b04 ldr.w r1, [r7], #4
  13319. 8005806: f8d0 e000 ldr.w lr, [r0]
  13320. 800580a: b28b uxth r3, r1
  13321. 800580c: ebac 0303 sub.w r3, ip, r3
  13322. 8005810: fa1f f28e uxth.w r2, lr
  13323. 8005814: 4413 add r3, r2
  13324. 8005816: 0c0a lsrs r2, r1, #16
  13325. 8005818: ebc2 421e rsb r2, r2, lr, lsr #16
  13326. 800581c: eb02 4223 add.w r2, r2, r3, asr #16
  13327. 8005820: b29b uxth r3, r3
  13328. 8005822: ea43 4302 orr.w r3, r3, r2, lsl #16
  13329. 8005826: 45b9 cmp r9, r7
  13330. 8005828: ea4f 4c22 mov.w ip, r2, asr #16
  13331. 800582c: f840 3b04 str.w r3, [r0], #4
  13332. 8005830: d2e7 bcs.n 8005802 <quorem+0xb2>
  13333. 8005832: f856 2024 ldr.w r2, [r6, r4, lsl #2]
  13334. 8005836: eb06 0384 add.w r3, r6, r4, lsl #2
  13335. 800583a: b92a cbnz r2, 8005848 <quorem+0xf8>
  13336. 800583c: 3b04 subs r3, #4
  13337. 800583e: 429e cmp r6, r3
  13338. 8005840: 461a mov r2, r3
  13339. 8005842: d30b bcc.n 800585c <quorem+0x10c>
  13340. 8005844: f8c8 4010 str.w r4, [r8, #16]
  13341. 8005848: 4628 mov r0, r5
  13342. 800584a: b003 add sp, #12
  13343. 800584c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  13344. 8005850: 6812 ldr r2, [r2, #0]
  13345. 8005852: 3b04 subs r3, #4
  13346. 8005854: 2a00 cmp r2, #0
  13347. 8005856: d1c9 bne.n 80057ec <quorem+0x9c>
  13348. 8005858: 3c01 subs r4, #1
  13349. 800585a: e7c4 b.n 80057e6 <quorem+0x96>
  13350. 800585c: 6812 ldr r2, [r2, #0]
  13351. 800585e: 3b04 subs r3, #4
  13352. 8005860: 2a00 cmp r2, #0
  13353. 8005862: d1ef bne.n 8005844 <quorem+0xf4>
  13354. 8005864: 3c01 subs r4, #1
  13355. 8005866: e7ea b.n 800583e <quorem+0xee>
  13356. 8005868: 2000 movs r0, #0
  13357. 800586a: e7ee b.n 800584a <quorem+0xfa>
  13358. 800586c: 0000 movs r0, r0
  13359. ...
  13360. 08005870 <_dtoa_r>:
  13361. 8005870: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  13362. 8005874: 4616 mov r6, r2
  13363. 8005876: 461f mov r7, r3
  13364. 8005878: 6a45 ldr r5, [r0, #36] ; 0x24
  13365. 800587a: b095 sub sp, #84 ; 0x54
  13366. 800587c: 4604 mov r4, r0
  13367. 800587e: f8dd 8084 ldr.w r8, [sp, #132] ; 0x84
  13368. 8005882: e9cd 6702 strd r6, r7, [sp, #8]
  13369. 8005886: b93d cbnz r5, 8005898 <_dtoa_r+0x28>
  13370. 8005888: 2010 movs r0, #16
  13371. 800588a: f000 ff91 bl 80067b0 <malloc>
  13372. 800588e: 6260 str r0, [r4, #36] ; 0x24
  13373. 8005890: e9c0 5501 strd r5, r5, [r0, #4]
  13374. 8005894: 6005 str r5, [r0, #0]
  13375. 8005896: 60c5 str r5, [r0, #12]
  13376. 8005898: 6a63 ldr r3, [r4, #36] ; 0x24
  13377. 800589a: 6819 ldr r1, [r3, #0]
  13378. 800589c: b151 cbz r1, 80058b4 <_dtoa_r+0x44>
  13379. 800589e: 685a ldr r2, [r3, #4]
  13380. 80058a0: 2301 movs r3, #1
  13381. 80058a2: 4093 lsls r3, r2
  13382. 80058a4: 604a str r2, [r1, #4]
  13383. 80058a6: 608b str r3, [r1, #8]
  13384. 80058a8: 4620 mov r0, r4
  13385. 80058aa: f000 ffd6 bl 800685a <_Bfree>
  13386. 80058ae: 2200 movs r2, #0
  13387. 80058b0: 6a63 ldr r3, [r4, #36] ; 0x24
  13388. 80058b2: 601a str r2, [r3, #0]
  13389. 80058b4: 1e3b subs r3, r7, #0
  13390. 80058b6: bfaf iteee ge
  13391. 80058b8: 2300 movge r3, #0
  13392. 80058ba: 2201 movlt r2, #1
  13393. 80058bc: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
  13394. 80058c0: 9303 strlt r3, [sp, #12]
  13395. 80058c2: bfac ite ge
  13396. 80058c4: f8c8 3000 strge.w r3, [r8]
  13397. 80058c8: f8c8 2000 strlt.w r2, [r8]
  13398. 80058cc: 4bae ldr r3, [pc, #696] ; (8005b88 <_dtoa_r+0x318>)
  13399. 80058ce: f8dd 800c ldr.w r8, [sp, #12]
  13400. 80058d2: ea33 0308 bics.w r3, r3, r8
  13401. 80058d6: d11b bne.n 8005910 <_dtoa_r+0xa0>
  13402. 80058d8: f242 730f movw r3, #9999 ; 0x270f
  13403. 80058dc: 9a20 ldr r2, [sp, #128] ; 0x80
  13404. 80058de: 6013 str r3, [r2, #0]
  13405. 80058e0: 9b02 ldr r3, [sp, #8]
  13406. 80058e2: b923 cbnz r3, 80058ee <_dtoa_r+0x7e>
  13407. 80058e4: f3c8 0013 ubfx r0, r8, #0, #20
  13408. 80058e8: 2800 cmp r0, #0
  13409. 80058ea: f000 8545 beq.w 8006378 <_dtoa_r+0xb08>
  13410. 80058ee: 9b22 ldr r3, [sp, #136] ; 0x88
  13411. 80058f0: b953 cbnz r3, 8005908 <_dtoa_r+0x98>
  13412. 80058f2: 4ba6 ldr r3, [pc, #664] ; (8005b8c <_dtoa_r+0x31c>)
  13413. 80058f4: e021 b.n 800593a <_dtoa_r+0xca>
  13414. 80058f6: 4ba6 ldr r3, [pc, #664] ; (8005b90 <_dtoa_r+0x320>)
  13415. 80058f8: 9306 str r3, [sp, #24]
  13416. 80058fa: 3308 adds r3, #8
  13417. 80058fc: 9a22 ldr r2, [sp, #136] ; 0x88
  13418. 80058fe: 6013 str r3, [r2, #0]
  13419. 8005900: 9806 ldr r0, [sp, #24]
  13420. 8005902: b015 add sp, #84 ; 0x54
  13421. 8005904: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  13422. 8005908: 4ba0 ldr r3, [pc, #640] ; (8005b8c <_dtoa_r+0x31c>)
  13423. 800590a: 9306 str r3, [sp, #24]
  13424. 800590c: 3303 adds r3, #3
  13425. 800590e: e7f5 b.n 80058fc <_dtoa_r+0x8c>
  13426. 8005910: e9dd 6702 ldrd r6, r7, [sp, #8]
  13427. 8005914: 2200 movs r2, #0
  13428. 8005916: 2300 movs r3, #0
  13429. 8005918: 4630 mov r0, r6
  13430. 800591a: 4639 mov r1, r7
  13431. 800591c: f7fb f8a4 bl 8000a68 <__aeabi_dcmpeq>
  13432. 8005920: 4682 mov sl, r0
  13433. 8005922: b160 cbz r0, 800593e <_dtoa_r+0xce>
  13434. 8005924: 2301 movs r3, #1
  13435. 8005926: 9a20 ldr r2, [sp, #128] ; 0x80
  13436. 8005928: 6013 str r3, [r2, #0]
  13437. 800592a: 9b22 ldr r3, [sp, #136] ; 0x88
  13438. 800592c: 2b00 cmp r3, #0
  13439. 800592e: f000 8520 beq.w 8006372 <_dtoa_r+0xb02>
  13440. 8005932: 4b98 ldr r3, [pc, #608] ; (8005b94 <_dtoa_r+0x324>)
  13441. 8005934: 9a22 ldr r2, [sp, #136] ; 0x88
  13442. 8005936: 6013 str r3, [r2, #0]
  13443. 8005938: 3b01 subs r3, #1
  13444. 800593a: 9306 str r3, [sp, #24]
  13445. 800593c: e7e0 b.n 8005900 <_dtoa_r+0x90>
  13446. 800593e: ab12 add r3, sp, #72 ; 0x48
  13447. 8005940: 9301 str r3, [sp, #4]
  13448. 8005942: ab13 add r3, sp, #76 ; 0x4c
  13449. 8005944: 9300 str r3, [sp, #0]
  13450. 8005946: 4632 mov r2, r6
  13451. 8005948: 463b mov r3, r7
  13452. 800594a: 4620 mov r0, r4
  13453. 800594c: f001 f9de bl 8006d0c <__d2b>
  13454. 8005950: f3c8 550a ubfx r5, r8, #20, #11
  13455. 8005954: 4683 mov fp, r0
  13456. 8005956: 2d00 cmp r5, #0
  13457. 8005958: d07d beq.n 8005a56 <_dtoa_r+0x1e6>
  13458. 800595a: 46b0 mov r8, r6
  13459. 800595c: f3c7 0313 ubfx r3, r7, #0, #20
  13460. 8005960: f043 597f orr.w r9, r3, #1069547520 ; 0x3fc00000
  13461. 8005964: f449 1940 orr.w r9, r9, #3145728 ; 0x300000
  13462. 8005968: f2a5 35ff subw r5, r5, #1023 ; 0x3ff
  13463. 800596c: f8cd a040 str.w sl, [sp, #64] ; 0x40
  13464. 8005970: 2200 movs r2, #0
  13465. 8005972: 4b89 ldr r3, [pc, #548] ; (8005b98 <_dtoa_r+0x328>)
  13466. 8005974: 4640 mov r0, r8
  13467. 8005976: 4649 mov r1, r9
  13468. 8005978: f7fa fc56 bl 8000228 <__aeabi_dsub>
  13469. 800597c: a37c add r3, pc, #496 ; (adr r3, 8005b70 <_dtoa_r+0x300>)
  13470. 800597e: e9d3 2300 ldrd r2, r3, [r3]
  13471. 8005982: f7fa fe09 bl 8000598 <__aeabi_dmul>
  13472. 8005986: a37c add r3, pc, #496 ; (adr r3, 8005b78 <_dtoa_r+0x308>)
  13473. 8005988: e9d3 2300 ldrd r2, r3, [r3]
  13474. 800598c: f7fa fc4e bl 800022c <__adddf3>
  13475. 8005990: 4606 mov r6, r0
  13476. 8005992: 4628 mov r0, r5
  13477. 8005994: 460f mov r7, r1
  13478. 8005996: f7fa fd95 bl 80004c4 <__aeabi_i2d>
  13479. 800599a: a379 add r3, pc, #484 ; (adr r3, 8005b80 <_dtoa_r+0x310>)
  13480. 800599c: e9d3 2300 ldrd r2, r3, [r3]
  13481. 80059a0: f7fa fdfa bl 8000598 <__aeabi_dmul>
  13482. 80059a4: 4602 mov r2, r0
  13483. 80059a6: 460b mov r3, r1
  13484. 80059a8: 4630 mov r0, r6
  13485. 80059aa: 4639 mov r1, r7
  13486. 80059ac: f7fa fc3e bl 800022c <__adddf3>
  13487. 80059b0: 4606 mov r6, r0
  13488. 80059b2: 460f mov r7, r1
  13489. 80059b4: f7fb f8a0 bl 8000af8 <__aeabi_d2iz>
  13490. 80059b8: 2200 movs r2, #0
  13491. 80059ba: 4682 mov sl, r0
  13492. 80059bc: 2300 movs r3, #0
  13493. 80059be: 4630 mov r0, r6
  13494. 80059c0: 4639 mov r1, r7
  13495. 80059c2: f7fb f85b bl 8000a7c <__aeabi_dcmplt>
  13496. 80059c6: b148 cbz r0, 80059dc <_dtoa_r+0x16c>
  13497. 80059c8: 4650 mov r0, sl
  13498. 80059ca: f7fa fd7b bl 80004c4 <__aeabi_i2d>
  13499. 80059ce: 4632 mov r2, r6
  13500. 80059d0: 463b mov r3, r7
  13501. 80059d2: f7fb f849 bl 8000a68 <__aeabi_dcmpeq>
  13502. 80059d6: b908 cbnz r0, 80059dc <_dtoa_r+0x16c>
  13503. 80059d8: f10a 3aff add.w sl, sl, #4294967295
  13504. 80059dc: f1ba 0f16 cmp.w sl, #22
  13505. 80059e0: d85a bhi.n 8005a98 <_dtoa_r+0x228>
  13506. 80059e2: e9dd 2302 ldrd r2, r3, [sp, #8]
  13507. 80059e6: 496d ldr r1, [pc, #436] ; (8005b9c <_dtoa_r+0x32c>)
  13508. 80059e8: eb01 01ca add.w r1, r1, sl, lsl #3
  13509. 80059ec: e9d1 0100 ldrd r0, r1, [r1]
  13510. 80059f0: f7fb f862 bl 8000ab8 <__aeabi_dcmpgt>
  13511. 80059f4: 2800 cmp r0, #0
  13512. 80059f6: d051 beq.n 8005a9c <_dtoa_r+0x22c>
  13513. 80059f8: 2300 movs r3, #0
  13514. 80059fa: f10a 3aff add.w sl, sl, #4294967295
  13515. 80059fe: 930d str r3, [sp, #52] ; 0x34
  13516. 8005a00: 9b12 ldr r3, [sp, #72] ; 0x48
  13517. 8005a02: 1b5d subs r5, r3, r5
  13518. 8005a04: 1e6b subs r3, r5, #1
  13519. 8005a06: 9307 str r3, [sp, #28]
  13520. 8005a08: bf43 ittte mi
  13521. 8005a0a: 2300 movmi r3, #0
  13522. 8005a0c: f1c5 0901 rsbmi r9, r5, #1
  13523. 8005a10: 9307 strmi r3, [sp, #28]
  13524. 8005a12: f04f 0900 movpl.w r9, #0
  13525. 8005a16: f1ba 0f00 cmp.w sl, #0
  13526. 8005a1a: db41 blt.n 8005aa0 <_dtoa_r+0x230>
  13527. 8005a1c: 9b07 ldr r3, [sp, #28]
  13528. 8005a1e: f8cd a030 str.w sl, [sp, #48] ; 0x30
  13529. 8005a22: 4453 add r3, sl
  13530. 8005a24: 9307 str r3, [sp, #28]
  13531. 8005a26: 2300 movs r3, #0
  13532. 8005a28: 9308 str r3, [sp, #32]
  13533. 8005a2a: 9b1e ldr r3, [sp, #120] ; 0x78
  13534. 8005a2c: 2b09 cmp r3, #9
  13535. 8005a2e: f200 808f bhi.w 8005b50 <_dtoa_r+0x2e0>
  13536. 8005a32: 2b05 cmp r3, #5
  13537. 8005a34: bfc4 itt gt
  13538. 8005a36: 3b04 subgt r3, #4
  13539. 8005a38: 931e strgt r3, [sp, #120] ; 0x78
  13540. 8005a3a: 9b1e ldr r3, [sp, #120] ; 0x78
  13541. 8005a3c: bfc8 it gt
  13542. 8005a3e: 2500 movgt r5, #0
  13543. 8005a40: f1a3 0302 sub.w r3, r3, #2
  13544. 8005a44: bfd8 it le
  13545. 8005a46: 2501 movle r5, #1
  13546. 8005a48: 2b03 cmp r3, #3
  13547. 8005a4a: f200 808d bhi.w 8005b68 <_dtoa_r+0x2f8>
  13548. 8005a4e: e8df f003 tbb [pc, r3]
  13549. 8005a52: 7d7b .short 0x7d7b
  13550. 8005a54: 6f2f .short 0x6f2f
  13551. 8005a56: e9dd 5312 ldrd r5, r3, [sp, #72] ; 0x48
  13552. 8005a5a: 441d add r5, r3
  13553. 8005a5c: f205 4032 addw r0, r5, #1074 ; 0x432
  13554. 8005a60: 2820 cmp r0, #32
  13555. 8005a62: dd13 ble.n 8005a8c <_dtoa_r+0x21c>
  13556. 8005a64: f1c0 0040 rsb r0, r0, #64 ; 0x40
  13557. 8005a68: 9b02 ldr r3, [sp, #8]
  13558. 8005a6a: fa08 f800 lsl.w r8, r8, r0
  13559. 8005a6e: f205 4012 addw r0, r5, #1042 ; 0x412
  13560. 8005a72: fa23 f000 lsr.w r0, r3, r0
  13561. 8005a76: ea48 0000 orr.w r0, r8, r0
  13562. 8005a7a: f7fa fd13 bl 80004a4 <__aeabi_ui2d>
  13563. 8005a7e: 2301 movs r3, #1
  13564. 8005a80: 4680 mov r8, r0
  13565. 8005a82: f1a1 79f8 sub.w r9, r1, #32505856 ; 0x1f00000
  13566. 8005a86: 3d01 subs r5, #1
  13567. 8005a88: 9310 str r3, [sp, #64] ; 0x40
  13568. 8005a8a: e771 b.n 8005970 <_dtoa_r+0x100>
  13569. 8005a8c: 9b02 ldr r3, [sp, #8]
  13570. 8005a8e: f1c0 0020 rsb r0, r0, #32
  13571. 8005a92: fa03 f000 lsl.w r0, r3, r0
  13572. 8005a96: e7f0 b.n 8005a7a <_dtoa_r+0x20a>
  13573. 8005a98: 2301 movs r3, #1
  13574. 8005a9a: e7b0 b.n 80059fe <_dtoa_r+0x18e>
  13575. 8005a9c: 900d str r0, [sp, #52] ; 0x34
  13576. 8005a9e: e7af b.n 8005a00 <_dtoa_r+0x190>
  13577. 8005aa0: f1ca 0300 rsb r3, sl, #0
  13578. 8005aa4: 9308 str r3, [sp, #32]
  13579. 8005aa6: 2300 movs r3, #0
  13580. 8005aa8: eba9 090a sub.w r9, r9, sl
  13581. 8005aac: 930c str r3, [sp, #48] ; 0x30
  13582. 8005aae: e7bc b.n 8005a2a <_dtoa_r+0x1ba>
  13583. 8005ab0: 2301 movs r3, #1
  13584. 8005ab2: 9309 str r3, [sp, #36] ; 0x24
  13585. 8005ab4: 9b1f ldr r3, [sp, #124] ; 0x7c
  13586. 8005ab6: 2b00 cmp r3, #0
  13587. 8005ab8: dd74 ble.n 8005ba4 <_dtoa_r+0x334>
  13588. 8005aba: 4698 mov r8, r3
  13589. 8005abc: 9304 str r3, [sp, #16]
  13590. 8005abe: 2200 movs r2, #0
  13591. 8005ac0: 6a66 ldr r6, [r4, #36] ; 0x24
  13592. 8005ac2: 6072 str r2, [r6, #4]
  13593. 8005ac4: 2204 movs r2, #4
  13594. 8005ac6: f102 0014 add.w r0, r2, #20
  13595. 8005aca: 4298 cmp r0, r3
  13596. 8005acc: 6871 ldr r1, [r6, #4]
  13597. 8005ace: d96e bls.n 8005bae <_dtoa_r+0x33e>
  13598. 8005ad0: 4620 mov r0, r4
  13599. 8005ad2: f000 fe8e bl 80067f2 <_Balloc>
  13600. 8005ad6: 6a63 ldr r3, [r4, #36] ; 0x24
  13601. 8005ad8: 6030 str r0, [r6, #0]
  13602. 8005ada: 681b ldr r3, [r3, #0]
  13603. 8005adc: f1b8 0f0e cmp.w r8, #14
  13604. 8005ae0: 9306 str r3, [sp, #24]
  13605. 8005ae2: f200 80ed bhi.w 8005cc0 <_dtoa_r+0x450>
  13606. 8005ae6: 2d00 cmp r5, #0
  13607. 8005ae8: f000 80ea beq.w 8005cc0 <_dtoa_r+0x450>
  13608. 8005aec: e9dd 2302 ldrd r2, r3, [sp, #8]
  13609. 8005af0: f1ba 0f00 cmp.w sl, #0
  13610. 8005af4: e9cd 230e strd r2, r3, [sp, #56] ; 0x38
  13611. 8005af8: dd77 ble.n 8005bea <_dtoa_r+0x37a>
  13612. 8005afa: 4a28 ldr r2, [pc, #160] ; (8005b9c <_dtoa_r+0x32c>)
  13613. 8005afc: f00a 030f and.w r3, sl, #15
  13614. 8005b00: ea4f 162a mov.w r6, sl, asr #4
  13615. 8005b04: eb02 03c3 add.w r3, r2, r3, lsl #3
  13616. 8005b08: 06f0 lsls r0, r6, #27
  13617. 8005b0a: e9d3 2300 ldrd r2, r3, [r3]
  13618. 8005b0e: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  13619. 8005b12: d568 bpl.n 8005be6 <_dtoa_r+0x376>
  13620. 8005b14: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  13621. 8005b18: 4b21 ldr r3, [pc, #132] ; (8005ba0 <_dtoa_r+0x330>)
  13622. 8005b1a: 2503 movs r5, #3
  13623. 8005b1c: e9d3 2308 ldrd r2, r3, [r3, #32]
  13624. 8005b20: f7fa fe64 bl 80007ec <__aeabi_ddiv>
  13625. 8005b24: e9cd 0102 strd r0, r1, [sp, #8]
  13626. 8005b28: f006 060f and.w r6, r6, #15
  13627. 8005b2c: 4f1c ldr r7, [pc, #112] ; (8005ba0 <_dtoa_r+0x330>)
  13628. 8005b2e: e04f b.n 8005bd0 <_dtoa_r+0x360>
  13629. 8005b30: 2301 movs r3, #1
  13630. 8005b32: 9309 str r3, [sp, #36] ; 0x24
  13631. 8005b34: 9b1f ldr r3, [sp, #124] ; 0x7c
  13632. 8005b36: 4453 add r3, sl
  13633. 8005b38: f103 0801 add.w r8, r3, #1
  13634. 8005b3c: 9304 str r3, [sp, #16]
  13635. 8005b3e: 4643 mov r3, r8
  13636. 8005b40: 2b01 cmp r3, #1
  13637. 8005b42: bfb8 it lt
  13638. 8005b44: 2301 movlt r3, #1
  13639. 8005b46: e7ba b.n 8005abe <_dtoa_r+0x24e>
  13640. 8005b48: 2300 movs r3, #0
  13641. 8005b4a: e7b2 b.n 8005ab2 <_dtoa_r+0x242>
  13642. 8005b4c: 2300 movs r3, #0
  13643. 8005b4e: e7f0 b.n 8005b32 <_dtoa_r+0x2c2>
  13644. 8005b50: 2501 movs r5, #1
  13645. 8005b52: 2300 movs r3, #0
  13646. 8005b54: 9509 str r5, [sp, #36] ; 0x24
  13647. 8005b56: 931e str r3, [sp, #120] ; 0x78
  13648. 8005b58: f04f 33ff mov.w r3, #4294967295
  13649. 8005b5c: 2200 movs r2, #0
  13650. 8005b5e: 9304 str r3, [sp, #16]
  13651. 8005b60: 4698 mov r8, r3
  13652. 8005b62: 2312 movs r3, #18
  13653. 8005b64: 921f str r2, [sp, #124] ; 0x7c
  13654. 8005b66: e7aa b.n 8005abe <_dtoa_r+0x24e>
  13655. 8005b68: 2301 movs r3, #1
  13656. 8005b6a: 9309 str r3, [sp, #36] ; 0x24
  13657. 8005b6c: e7f4 b.n 8005b58 <_dtoa_r+0x2e8>
  13658. 8005b6e: bf00 nop
  13659. 8005b70: 636f4361 .word 0x636f4361
  13660. 8005b74: 3fd287a7 .word 0x3fd287a7
  13661. 8005b78: 8b60c8b3 .word 0x8b60c8b3
  13662. 8005b7c: 3fc68a28 .word 0x3fc68a28
  13663. 8005b80: 509f79fb .word 0x509f79fb
  13664. 8005b84: 3fd34413 .word 0x3fd34413
  13665. 8005b88: 7ff00000 .word 0x7ff00000
  13666. 8005b8c: 08007485 .word 0x08007485
  13667. 8005b90: 0800747c .word 0x0800747c
  13668. 8005b94: 08007459 .word 0x08007459
  13669. 8005b98: 3ff80000 .word 0x3ff80000
  13670. 8005b9c: 08007518 .word 0x08007518
  13671. 8005ba0: 080074f0 .word 0x080074f0
  13672. 8005ba4: 2301 movs r3, #1
  13673. 8005ba6: 9304 str r3, [sp, #16]
  13674. 8005ba8: 4698 mov r8, r3
  13675. 8005baa: 461a mov r2, r3
  13676. 8005bac: e7da b.n 8005b64 <_dtoa_r+0x2f4>
  13677. 8005bae: 3101 adds r1, #1
  13678. 8005bb0: 6071 str r1, [r6, #4]
  13679. 8005bb2: 0052 lsls r2, r2, #1
  13680. 8005bb4: e787 b.n 8005ac6 <_dtoa_r+0x256>
  13681. 8005bb6: 07f1 lsls r1, r6, #31
  13682. 8005bb8: d508 bpl.n 8005bcc <_dtoa_r+0x35c>
  13683. 8005bba: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  13684. 8005bbe: e9d7 2300 ldrd r2, r3, [r7]
  13685. 8005bc2: f7fa fce9 bl 8000598 <__aeabi_dmul>
  13686. 8005bc6: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  13687. 8005bca: 3501 adds r5, #1
  13688. 8005bcc: 1076 asrs r6, r6, #1
  13689. 8005bce: 3708 adds r7, #8
  13690. 8005bd0: 2e00 cmp r6, #0
  13691. 8005bd2: d1f0 bne.n 8005bb6 <_dtoa_r+0x346>
  13692. 8005bd4: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  13693. 8005bd8: e9dd 0102 ldrd r0, r1, [sp, #8]
  13694. 8005bdc: f7fa fe06 bl 80007ec <__aeabi_ddiv>
  13695. 8005be0: e9cd 0102 strd r0, r1, [sp, #8]
  13696. 8005be4: e01b b.n 8005c1e <_dtoa_r+0x3ae>
  13697. 8005be6: 2502 movs r5, #2
  13698. 8005be8: e7a0 b.n 8005b2c <_dtoa_r+0x2bc>
  13699. 8005bea: f000 80a4 beq.w 8005d36 <_dtoa_r+0x4c6>
  13700. 8005bee: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  13701. 8005bf2: f1ca 0600 rsb r6, sl, #0
  13702. 8005bf6: 4ba0 ldr r3, [pc, #640] ; (8005e78 <_dtoa_r+0x608>)
  13703. 8005bf8: f006 020f and.w r2, r6, #15
  13704. 8005bfc: eb03 03c2 add.w r3, r3, r2, lsl #3
  13705. 8005c00: e9d3 2300 ldrd r2, r3, [r3]
  13706. 8005c04: f7fa fcc8 bl 8000598 <__aeabi_dmul>
  13707. 8005c08: 2502 movs r5, #2
  13708. 8005c0a: 2300 movs r3, #0
  13709. 8005c0c: e9cd 0102 strd r0, r1, [sp, #8]
  13710. 8005c10: 4f9a ldr r7, [pc, #616] ; (8005e7c <_dtoa_r+0x60c>)
  13711. 8005c12: 1136 asrs r6, r6, #4
  13712. 8005c14: 2e00 cmp r6, #0
  13713. 8005c16: f040 8083 bne.w 8005d20 <_dtoa_r+0x4b0>
  13714. 8005c1a: 2b00 cmp r3, #0
  13715. 8005c1c: d1e0 bne.n 8005be0 <_dtoa_r+0x370>
  13716. 8005c1e: 9b0d ldr r3, [sp, #52] ; 0x34
  13717. 8005c20: 2b00 cmp r3, #0
  13718. 8005c22: f000 808a beq.w 8005d3a <_dtoa_r+0x4ca>
  13719. 8005c26: e9dd 2302 ldrd r2, r3, [sp, #8]
  13720. 8005c2a: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  13721. 8005c2e: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  13722. 8005c32: 2200 movs r2, #0
  13723. 8005c34: 4b92 ldr r3, [pc, #584] ; (8005e80 <_dtoa_r+0x610>)
  13724. 8005c36: f7fa ff21 bl 8000a7c <__aeabi_dcmplt>
  13725. 8005c3a: 2800 cmp r0, #0
  13726. 8005c3c: d07d beq.n 8005d3a <_dtoa_r+0x4ca>
  13727. 8005c3e: f1b8 0f00 cmp.w r8, #0
  13728. 8005c42: d07a beq.n 8005d3a <_dtoa_r+0x4ca>
  13729. 8005c44: 9b04 ldr r3, [sp, #16]
  13730. 8005c46: 2b00 cmp r3, #0
  13731. 8005c48: dd36 ble.n 8005cb8 <_dtoa_r+0x448>
  13732. 8005c4a: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  13733. 8005c4e: 2200 movs r2, #0
  13734. 8005c50: 4b8c ldr r3, [pc, #560] ; (8005e84 <_dtoa_r+0x614>)
  13735. 8005c52: f7fa fca1 bl 8000598 <__aeabi_dmul>
  13736. 8005c56: e9cd 0102 strd r0, r1, [sp, #8]
  13737. 8005c5a: 9e04 ldr r6, [sp, #16]
  13738. 8005c5c: f10a 37ff add.w r7, sl, #4294967295
  13739. 8005c60: 3501 adds r5, #1
  13740. 8005c62: 4628 mov r0, r5
  13741. 8005c64: f7fa fc2e bl 80004c4 <__aeabi_i2d>
  13742. 8005c68: e9dd 2302 ldrd r2, r3, [sp, #8]
  13743. 8005c6c: f7fa fc94 bl 8000598 <__aeabi_dmul>
  13744. 8005c70: 2200 movs r2, #0
  13745. 8005c72: 4b85 ldr r3, [pc, #532] ; (8005e88 <_dtoa_r+0x618>)
  13746. 8005c74: f7fa fada bl 800022c <__adddf3>
  13747. 8005c78: f1a1 7550 sub.w r5, r1, #54525952 ; 0x3400000
  13748. 8005c7c: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  13749. 8005c80: 950b str r5, [sp, #44] ; 0x2c
  13750. 8005c82: 2e00 cmp r6, #0
  13751. 8005c84: d15c bne.n 8005d40 <_dtoa_r+0x4d0>
  13752. 8005c86: e9dd 0102 ldrd r0, r1, [sp, #8]
  13753. 8005c8a: 2200 movs r2, #0
  13754. 8005c8c: 4b7f ldr r3, [pc, #508] ; (8005e8c <_dtoa_r+0x61c>)
  13755. 8005c8e: f7fa facb bl 8000228 <__aeabi_dsub>
  13756. 8005c92: 9a0a ldr r2, [sp, #40] ; 0x28
  13757. 8005c94: 462b mov r3, r5
  13758. 8005c96: e9cd 0102 strd r0, r1, [sp, #8]
  13759. 8005c9a: f7fa ff0d bl 8000ab8 <__aeabi_dcmpgt>
  13760. 8005c9e: 2800 cmp r0, #0
  13761. 8005ca0: f040 8281 bne.w 80061a6 <_dtoa_r+0x936>
  13762. 8005ca4: e9dd 0102 ldrd r0, r1, [sp, #8]
  13763. 8005ca8: 9a0a ldr r2, [sp, #40] ; 0x28
  13764. 8005caa: f105 4300 add.w r3, r5, #2147483648 ; 0x80000000
  13765. 8005cae: f7fa fee5 bl 8000a7c <__aeabi_dcmplt>
  13766. 8005cb2: 2800 cmp r0, #0
  13767. 8005cb4: f040 8275 bne.w 80061a2 <_dtoa_r+0x932>
  13768. 8005cb8: e9dd 230e ldrd r2, r3, [sp, #56] ; 0x38
  13769. 8005cbc: e9cd 2302 strd r2, r3, [sp, #8]
  13770. 8005cc0: 9b13 ldr r3, [sp, #76] ; 0x4c
  13771. 8005cc2: 2b00 cmp r3, #0
  13772. 8005cc4: f2c0 814b blt.w 8005f5e <_dtoa_r+0x6ee>
  13773. 8005cc8: f1ba 0f0e cmp.w sl, #14
  13774. 8005ccc: f300 8147 bgt.w 8005f5e <_dtoa_r+0x6ee>
  13775. 8005cd0: 4b69 ldr r3, [pc, #420] ; (8005e78 <_dtoa_r+0x608>)
  13776. 8005cd2: eb03 03ca add.w r3, r3, sl, lsl #3
  13777. 8005cd6: e9d3 2300 ldrd r2, r3, [r3]
  13778. 8005cda: e9cd 2304 strd r2, r3, [sp, #16]
  13779. 8005cde: 9b1f ldr r3, [sp, #124] ; 0x7c
  13780. 8005ce0: 2b00 cmp r3, #0
  13781. 8005ce2: f280 80d7 bge.w 8005e94 <_dtoa_r+0x624>
  13782. 8005ce6: f1b8 0f00 cmp.w r8, #0
  13783. 8005cea: f300 80d3 bgt.w 8005e94 <_dtoa_r+0x624>
  13784. 8005cee: f040 8257 bne.w 80061a0 <_dtoa_r+0x930>
  13785. 8005cf2: e9dd 0104 ldrd r0, r1, [sp, #16]
  13786. 8005cf6: 2200 movs r2, #0
  13787. 8005cf8: 4b64 ldr r3, [pc, #400] ; (8005e8c <_dtoa_r+0x61c>)
  13788. 8005cfa: f7fa fc4d bl 8000598 <__aeabi_dmul>
  13789. 8005cfe: e9dd 2302 ldrd r2, r3, [sp, #8]
  13790. 8005d02: f7fa fecf bl 8000aa4 <__aeabi_dcmpge>
  13791. 8005d06: 4646 mov r6, r8
  13792. 8005d08: 4647 mov r7, r8
  13793. 8005d0a: 2800 cmp r0, #0
  13794. 8005d0c: f040 822d bne.w 800616a <_dtoa_r+0x8fa>
  13795. 8005d10: 9b06 ldr r3, [sp, #24]
  13796. 8005d12: 9a06 ldr r2, [sp, #24]
  13797. 8005d14: 1c5d adds r5, r3, #1
  13798. 8005d16: 2331 movs r3, #49 ; 0x31
  13799. 8005d18: f10a 0a01 add.w sl, sl, #1
  13800. 8005d1c: 7013 strb r3, [r2, #0]
  13801. 8005d1e: e228 b.n 8006172 <_dtoa_r+0x902>
  13802. 8005d20: 07f2 lsls r2, r6, #31
  13803. 8005d22: d505 bpl.n 8005d30 <_dtoa_r+0x4c0>
  13804. 8005d24: e9d7 2300 ldrd r2, r3, [r7]
  13805. 8005d28: f7fa fc36 bl 8000598 <__aeabi_dmul>
  13806. 8005d2c: 2301 movs r3, #1
  13807. 8005d2e: 3501 adds r5, #1
  13808. 8005d30: 1076 asrs r6, r6, #1
  13809. 8005d32: 3708 adds r7, #8
  13810. 8005d34: e76e b.n 8005c14 <_dtoa_r+0x3a4>
  13811. 8005d36: 2502 movs r5, #2
  13812. 8005d38: e771 b.n 8005c1e <_dtoa_r+0x3ae>
  13813. 8005d3a: 4657 mov r7, sl
  13814. 8005d3c: 4646 mov r6, r8
  13815. 8005d3e: e790 b.n 8005c62 <_dtoa_r+0x3f2>
  13816. 8005d40: 4b4d ldr r3, [pc, #308] ; (8005e78 <_dtoa_r+0x608>)
  13817. 8005d42: eb03 03c6 add.w r3, r3, r6, lsl #3
  13818. 8005d46: e953 0102 ldrd r0, r1, [r3, #-8]
  13819. 8005d4a: 9b09 ldr r3, [sp, #36] ; 0x24
  13820. 8005d4c: 2b00 cmp r3, #0
  13821. 8005d4e: d048 beq.n 8005de2 <_dtoa_r+0x572>
  13822. 8005d50: 4602 mov r2, r0
  13823. 8005d52: 460b mov r3, r1
  13824. 8005d54: 2000 movs r0, #0
  13825. 8005d56: 494e ldr r1, [pc, #312] ; (8005e90 <_dtoa_r+0x620>)
  13826. 8005d58: f7fa fd48 bl 80007ec <__aeabi_ddiv>
  13827. 8005d5c: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  13828. 8005d60: f7fa fa62 bl 8000228 <__aeabi_dsub>
  13829. 8005d64: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  13830. 8005d68: 9d06 ldr r5, [sp, #24]
  13831. 8005d6a: e9dd 0102 ldrd r0, r1, [sp, #8]
  13832. 8005d6e: f7fa fec3 bl 8000af8 <__aeabi_d2iz>
  13833. 8005d72: 9011 str r0, [sp, #68] ; 0x44
  13834. 8005d74: f7fa fba6 bl 80004c4 <__aeabi_i2d>
  13835. 8005d78: 4602 mov r2, r0
  13836. 8005d7a: 460b mov r3, r1
  13837. 8005d7c: e9dd 0102 ldrd r0, r1, [sp, #8]
  13838. 8005d80: f7fa fa52 bl 8000228 <__aeabi_dsub>
  13839. 8005d84: 9b11 ldr r3, [sp, #68] ; 0x44
  13840. 8005d86: e9cd 0102 strd r0, r1, [sp, #8]
  13841. 8005d8a: 3330 adds r3, #48 ; 0x30
  13842. 8005d8c: f805 3b01 strb.w r3, [r5], #1
  13843. 8005d90: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  13844. 8005d94: f7fa fe72 bl 8000a7c <__aeabi_dcmplt>
  13845. 8005d98: 2800 cmp r0, #0
  13846. 8005d9a: d163 bne.n 8005e64 <_dtoa_r+0x5f4>
  13847. 8005d9c: e9dd 2302 ldrd r2, r3, [sp, #8]
  13848. 8005da0: 2000 movs r0, #0
  13849. 8005da2: 4937 ldr r1, [pc, #220] ; (8005e80 <_dtoa_r+0x610>)
  13850. 8005da4: f7fa fa40 bl 8000228 <__aeabi_dsub>
  13851. 8005da8: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  13852. 8005dac: f7fa fe66 bl 8000a7c <__aeabi_dcmplt>
  13853. 8005db0: 2800 cmp r0, #0
  13854. 8005db2: f040 80b5 bne.w 8005f20 <_dtoa_r+0x6b0>
  13855. 8005db6: 9b06 ldr r3, [sp, #24]
  13856. 8005db8: 1aeb subs r3, r5, r3
  13857. 8005dba: 429e cmp r6, r3
  13858. 8005dbc: f77f af7c ble.w 8005cb8 <_dtoa_r+0x448>
  13859. 8005dc0: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  13860. 8005dc4: 2200 movs r2, #0
  13861. 8005dc6: 4b2f ldr r3, [pc, #188] ; (8005e84 <_dtoa_r+0x614>)
  13862. 8005dc8: f7fa fbe6 bl 8000598 <__aeabi_dmul>
  13863. 8005dcc: 2200 movs r2, #0
  13864. 8005dce: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  13865. 8005dd2: e9dd 0102 ldrd r0, r1, [sp, #8]
  13866. 8005dd6: 4b2b ldr r3, [pc, #172] ; (8005e84 <_dtoa_r+0x614>)
  13867. 8005dd8: f7fa fbde bl 8000598 <__aeabi_dmul>
  13868. 8005ddc: e9cd 0102 strd r0, r1, [sp, #8]
  13869. 8005de0: e7c3 b.n 8005d6a <_dtoa_r+0x4fa>
  13870. 8005de2: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  13871. 8005de6: f7fa fbd7 bl 8000598 <__aeabi_dmul>
  13872. 8005dea: 9b06 ldr r3, [sp, #24]
  13873. 8005dec: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  13874. 8005df0: 199d adds r5, r3, r6
  13875. 8005df2: 461e mov r6, r3
  13876. 8005df4: e9dd 0102 ldrd r0, r1, [sp, #8]
  13877. 8005df8: f7fa fe7e bl 8000af8 <__aeabi_d2iz>
  13878. 8005dfc: 9011 str r0, [sp, #68] ; 0x44
  13879. 8005dfe: f7fa fb61 bl 80004c4 <__aeabi_i2d>
  13880. 8005e02: 4602 mov r2, r0
  13881. 8005e04: 460b mov r3, r1
  13882. 8005e06: e9dd 0102 ldrd r0, r1, [sp, #8]
  13883. 8005e0a: f7fa fa0d bl 8000228 <__aeabi_dsub>
  13884. 8005e0e: 9b11 ldr r3, [sp, #68] ; 0x44
  13885. 8005e10: e9cd 0102 strd r0, r1, [sp, #8]
  13886. 8005e14: 3330 adds r3, #48 ; 0x30
  13887. 8005e16: f806 3b01 strb.w r3, [r6], #1
  13888. 8005e1a: 42ae cmp r6, r5
  13889. 8005e1c: f04f 0200 mov.w r2, #0
  13890. 8005e20: d124 bne.n 8005e6c <_dtoa_r+0x5fc>
  13891. 8005e22: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  13892. 8005e26: 4b1a ldr r3, [pc, #104] ; (8005e90 <_dtoa_r+0x620>)
  13893. 8005e28: f7fa fa00 bl 800022c <__adddf3>
  13894. 8005e2c: 4602 mov r2, r0
  13895. 8005e2e: 460b mov r3, r1
  13896. 8005e30: e9dd 0102 ldrd r0, r1, [sp, #8]
  13897. 8005e34: f7fa fe40 bl 8000ab8 <__aeabi_dcmpgt>
  13898. 8005e38: 2800 cmp r0, #0
  13899. 8005e3a: d171 bne.n 8005f20 <_dtoa_r+0x6b0>
  13900. 8005e3c: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  13901. 8005e40: 2000 movs r0, #0
  13902. 8005e42: 4913 ldr r1, [pc, #76] ; (8005e90 <_dtoa_r+0x620>)
  13903. 8005e44: f7fa f9f0 bl 8000228 <__aeabi_dsub>
  13904. 8005e48: 4602 mov r2, r0
  13905. 8005e4a: 460b mov r3, r1
  13906. 8005e4c: e9dd 0102 ldrd r0, r1, [sp, #8]
  13907. 8005e50: f7fa fe14 bl 8000a7c <__aeabi_dcmplt>
  13908. 8005e54: 2800 cmp r0, #0
  13909. 8005e56: f43f af2f beq.w 8005cb8 <_dtoa_r+0x448>
  13910. 8005e5a: f815 3c01 ldrb.w r3, [r5, #-1]
  13911. 8005e5e: 1e6a subs r2, r5, #1
  13912. 8005e60: 2b30 cmp r3, #48 ; 0x30
  13913. 8005e62: d001 beq.n 8005e68 <_dtoa_r+0x5f8>
  13914. 8005e64: 46ba mov sl, r7
  13915. 8005e66: e04a b.n 8005efe <_dtoa_r+0x68e>
  13916. 8005e68: 4615 mov r5, r2
  13917. 8005e6a: e7f6 b.n 8005e5a <_dtoa_r+0x5ea>
  13918. 8005e6c: 4b05 ldr r3, [pc, #20] ; (8005e84 <_dtoa_r+0x614>)
  13919. 8005e6e: f7fa fb93 bl 8000598 <__aeabi_dmul>
  13920. 8005e72: e9cd 0102 strd r0, r1, [sp, #8]
  13921. 8005e76: e7bd b.n 8005df4 <_dtoa_r+0x584>
  13922. 8005e78: 08007518 .word 0x08007518
  13923. 8005e7c: 080074f0 .word 0x080074f0
  13924. 8005e80: 3ff00000 .word 0x3ff00000
  13925. 8005e84: 40240000 .word 0x40240000
  13926. 8005e88: 401c0000 .word 0x401c0000
  13927. 8005e8c: 40140000 .word 0x40140000
  13928. 8005e90: 3fe00000 .word 0x3fe00000
  13929. 8005e94: 9d06 ldr r5, [sp, #24]
  13930. 8005e96: e9dd 6702 ldrd r6, r7, [sp, #8]
  13931. 8005e9a: e9dd 2304 ldrd r2, r3, [sp, #16]
  13932. 8005e9e: 4630 mov r0, r6
  13933. 8005ea0: 4639 mov r1, r7
  13934. 8005ea2: f7fa fca3 bl 80007ec <__aeabi_ddiv>
  13935. 8005ea6: f7fa fe27 bl 8000af8 <__aeabi_d2iz>
  13936. 8005eaa: 4681 mov r9, r0
  13937. 8005eac: f7fa fb0a bl 80004c4 <__aeabi_i2d>
  13938. 8005eb0: e9dd 2304 ldrd r2, r3, [sp, #16]
  13939. 8005eb4: f7fa fb70 bl 8000598 <__aeabi_dmul>
  13940. 8005eb8: 4602 mov r2, r0
  13941. 8005eba: 460b mov r3, r1
  13942. 8005ebc: 4630 mov r0, r6
  13943. 8005ebe: 4639 mov r1, r7
  13944. 8005ec0: f7fa f9b2 bl 8000228 <__aeabi_dsub>
  13945. 8005ec4: f109 0630 add.w r6, r9, #48 ; 0x30
  13946. 8005ec8: f805 6b01 strb.w r6, [r5], #1
  13947. 8005ecc: 9e06 ldr r6, [sp, #24]
  13948. 8005ece: 4602 mov r2, r0
  13949. 8005ed0: 1bae subs r6, r5, r6
  13950. 8005ed2: 45b0 cmp r8, r6
  13951. 8005ed4: 460b mov r3, r1
  13952. 8005ed6: d135 bne.n 8005f44 <_dtoa_r+0x6d4>
  13953. 8005ed8: f7fa f9a8 bl 800022c <__adddf3>
  13954. 8005edc: e9dd 2304 ldrd r2, r3, [sp, #16]
  13955. 8005ee0: 4606 mov r6, r0
  13956. 8005ee2: 460f mov r7, r1
  13957. 8005ee4: f7fa fde8 bl 8000ab8 <__aeabi_dcmpgt>
  13958. 8005ee8: b9c8 cbnz r0, 8005f1e <_dtoa_r+0x6ae>
  13959. 8005eea: e9dd 2304 ldrd r2, r3, [sp, #16]
  13960. 8005eee: 4630 mov r0, r6
  13961. 8005ef0: 4639 mov r1, r7
  13962. 8005ef2: f7fa fdb9 bl 8000a68 <__aeabi_dcmpeq>
  13963. 8005ef6: b110 cbz r0, 8005efe <_dtoa_r+0x68e>
  13964. 8005ef8: f019 0f01 tst.w r9, #1
  13965. 8005efc: d10f bne.n 8005f1e <_dtoa_r+0x6ae>
  13966. 8005efe: 4659 mov r1, fp
  13967. 8005f00: 4620 mov r0, r4
  13968. 8005f02: f000 fcaa bl 800685a <_Bfree>
  13969. 8005f06: 2300 movs r3, #0
  13970. 8005f08: 9a20 ldr r2, [sp, #128] ; 0x80
  13971. 8005f0a: 702b strb r3, [r5, #0]
  13972. 8005f0c: f10a 0301 add.w r3, sl, #1
  13973. 8005f10: 6013 str r3, [r2, #0]
  13974. 8005f12: 9b22 ldr r3, [sp, #136] ; 0x88
  13975. 8005f14: 2b00 cmp r3, #0
  13976. 8005f16: f43f acf3 beq.w 8005900 <_dtoa_r+0x90>
  13977. 8005f1a: 601d str r5, [r3, #0]
  13978. 8005f1c: e4f0 b.n 8005900 <_dtoa_r+0x90>
  13979. 8005f1e: 4657 mov r7, sl
  13980. 8005f20: f815 2c01 ldrb.w r2, [r5, #-1]
  13981. 8005f24: 1e6b subs r3, r5, #1
  13982. 8005f26: 2a39 cmp r2, #57 ; 0x39
  13983. 8005f28: d106 bne.n 8005f38 <_dtoa_r+0x6c8>
  13984. 8005f2a: 9a06 ldr r2, [sp, #24]
  13985. 8005f2c: 429a cmp r2, r3
  13986. 8005f2e: d107 bne.n 8005f40 <_dtoa_r+0x6d0>
  13987. 8005f30: 2330 movs r3, #48 ; 0x30
  13988. 8005f32: 7013 strb r3, [r2, #0]
  13989. 8005f34: 4613 mov r3, r2
  13990. 8005f36: 3701 adds r7, #1
  13991. 8005f38: 781a ldrb r2, [r3, #0]
  13992. 8005f3a: 3201 adds r2, #1
  13993. 8005f3c: 701a strb r2, [r3, #0]
  13994. 8005f3e: e791 b.n 8005e64 <_dtoa_r+0x5f4>
  13995. 8005f40: 461d mov r5, r3
  13996. 8005f42: e7ed b.n 8005f20 <_dtoa_r+0x6b0>
  13997. 8005f44: 2200 movs r2, #0
  13998. 8005f46: 4b99 ldr r3, [pc, #612] ; (80061ac <_dtoa_r+0x93c>)
  13999. 8005f48: f7fa fb26 bl 8000598 <__aeabi_dmul>
  14000. 8005f4c: 2200 movs r2, #0
  14001. 8005f4e: 2300 movs r3, #0
  14002. 8005f50: 4606 mov r6, r0
  14003. 8005f52: 460f mov r7, r1
  14004. 8005f54: f7fa fd88 bl 8000a68 <__aeabi_dcmpeq>
  14005. 8005f58: 2800 cmp r0, #0
  14006. 8005f5a: d09e beq.n 8005e9a <_dtoa_r+0x62a>
  14007. 8005f5c: e7cf b.n 8005efe <_dtoa_r+0x68e>
  14008. 8005f5e: 9a09 ldr r2, [sp, #36] ; 0x24
  14009. 8005f60: 2a00 cmp r2, #0
  14010. 8005f62: f000 8088 beq.w 8006076 <_dtoa_r+0x806>
  14011. 8005f66: 9a1e ldr r2, [sp, #120] ; 0x78
  14012. 8005f68: 2a01 cmp r2, #1
  14013. 8005f6a: dc6d bgt.n 8006048 <_dtoa_r+0x7d8>
  14014. 8005f6c: 9a10 ldr r2, [sp, #64] ; 0x40
  14015. 8005f6e: 2a00 cmp r2, #0
  14016. 8005f70: d066 beq.n 8006040 <_dtoa_r+0x7d0>
  14017. 8005f72: f203 4333 addw r3, r3, #1075 ; 0x433
  14018. 8005f76: 464d mov r5, r9
  14019. 8005f78: 9e08 ldr r6, [sp, #32]
  14020. 8005f7a: 9a07 ldr r2, [sp, #28]
  14021. 8005f7c: 2101 movs r1, #1
  14022. 8005f7e: 441a add r2, r3
  14023. 8005f80: 4620 mov r0, r4
  14024. 8005f82: 4499 add r9, r3
  14025. 8005f84: 9207 str r2, [sp, #28]
  14026. 8005f86: f000 fd08 bl 800699a <__i2b>
  14027. 8005f8a: 4607 mov r7, r0
  14028. 8005f8c: 2d00 cmp r5, #0
  14029. 8005f8e: dd0b ble.n 8005fa8 <_dtoa_r+0x738>
  14030. 8005f90: 9b07 ldr r3, [sp, #28]
  14031. 8005f92: 2b00 cmp r3, #0
  14032. 8005f94: dd08 ble.n 8005fa8 <_dtoa_r+0x738>
  14033. 8005f96: 42ab cmp r3, r5
  14034. 8005f98: bfa8 it ge
  14035. 8005f9a: 462b movge r3, r5
  14036. 8005f9c: 9a07 ldr r2, [sp, #28]
  14037. 8005f9e: eba9 0903 sub.w r9, r9, r3
  14038. 8005fa2: 1aed subs r5, r5, r3
  14039. 8005fa4: 1ad3 subs r3, r2, r3
  14040. 8005fa6: 9307 str r3, [sp, #28]
  14041. 8005fa8: 9b08 ldr r3, [sp, #32]
  14042. 8005faa: b1eb cbz r3, 8005fe8 <_dtoa_r+0x778>
  14043. 8005fac: 9b09 ldr r3, [sp, #36] ; 0x24
  14044. 8005fae: 2b00 cmp r3, #0
  14045. 8005fb0: d065 beq.n 800607e <_dtoa_r+0x80e>
  14046. 8005fb2: b18e cbz r6, 8005fd8 <_dtoa_r+0x768>
  14047. 8005fb4: 4639 mov r1, r7
  14048. 8005fb6: 4632 mov r2, r6
  14049. 8005fb8: 4620 mov r0, r4
  14050. 8005fba: f000 fd8d bl 8006ad8 <__pow5mult>
  14051. 8005fbe: 465a mov r2, fp
  14052. 8005fc0: 4601 mov r1, r0
  14053. 8005fc2: 4607 mov r7, r0
  14054. 8005fc4: 4620 mov r0, r4
  14055. 8005fc6: f000 fcf1 bl 80069ac <__multiply>
  14056. 8005fca: 4659 mov r1, fp
  14057. 8005fcc: 900a str r0, [sp, #40] ; 0x28
  14058. 8005fce: 4620 mov r0, r4
  14059. 8005fd0: f000 fc43 bl 800685a <_Bfree>
  14060. 8005fd4: 9b0a ldr r3, [sp, #40] ; 0x28
  14061. 8005fd6: 469b mov fp, r3
  14062. 8005fd8: 9b08 ldr r3, [sp, #32]
  14063. 8005fda: 1b9a subs r2, r3, r6
  14064. 8005fdc: d004 beq.n 8005fe8 <_dtoa_r+0x778>
  14065. 8005fde: 4659 mov r1, fp
  14066. 8005fe0: 4620 mov r0, r4
  14067. 8005fe2: f000 fd79 bl 8006ad8 <__pow5mult>
  14068. 8005fe6: 4683 mov fp, r0
  14069. 8005fe8: 2101 movs r1, #1
  14070. 8005fea: 4620 mov r0, r4
  14071. 8005fec: f000 fcd5 bl 800699a <__i2b>
  14072. 8005ff0: 9b0c ldr r3, [sp, #48] ; 0x30
  14073. 8005ff2: 4606 mov r6, r0
  14074. 8005ff4: 2b00 cmp r3, #0
  14075. 8005ff6: f000 81c6 beq.w 8006386 <_dtoa_r+0xb16>
  14076. 8005ffa: 461a mov r2, r3
  14077. 8005ffc: 4601 mov r1, r0
  14078. 8005ffe: 4620 mov r0, r4
  14079. 8006000: f000 fd6a bl 8006ad8 <__pow5mult>
  14080. 8006004: 9b1e ldr r3, [sp, #120] ; 0x78
  14081. 8006006: 4606 mov r6, r0
  14082. 8006008: 2b01 cmp r3, #1
  14083. 800600a: dc3e bgt.n 800608a <_dtoa_r+0x81a>
  14084. 800600c: 9b02 ldr r3, [sp, #8]
  14085. 800600e: 2b00 cmp r3, #0
  14086. 8006010: d137 bne.n 8006082 <_dtoa_r+0x812>
  14087. 8006012: 9b03 ldr r3, [sp, #12]
  14088. 8006014: f3c3 0313 ubfx r3, r3, #0, #20
  14089. 8006018: 2b00 cmp r3, #0
  14090. 800601a: d134 bne.n 8006086 <_dtoa_r+0x816>
  14091. 800601c: 9b03 ldr r3, [sp, #12]
  14092. 800601e: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  14093. 8006022: 0d1b lsrs r3, r3, #20
  14094. 8006024: 051b lsls r3, r3, #20
  14095. 8006026: b12b cbz r3, 8006034 <_dtoa_r+0x7c4>
  14096. 8006028: 9b07 ldr r3, [sp, #28]
  14097. 800602a: f109 0901 add.w r9, r9, #1
  14098. 800602e: 3301 adds r3, #1
  14099. 8006030: 9307 str r3, [sp, #28]
  14100. 8006032: 2301 movs r3, #1
  14101. 8006034: 9308 str r3, [sp, #32]
  14102. 8006036: 9b0c ldr r3, [sp, #48] ; 0x30
  14103. 8006038: 2b00 cmp r3, #0
  14104. 800603a: d128 bne.n 800608e <_dtoa_r+0x81e>
  14105. 800603c: 2001 movs r0, #1
  14106. 800603e: e02e b.n 800609e <_dtoa_r+0x82e>
  14107. 8006040: 9b12 ldr r3, [sp, #72] ; 0x48
  14108. 8006042: f1c3 0336 rsb r3, r3, #54 ; 0x36
  14109. 8006046: e796 b.n 8005f76 <_dtoa_r+0x706>
  14110. 8006048: 9b08 ldr r3, [sp, #32]
  14111. 800604a: f108 36ff add.w r6, r8, #4294967295
  14112. 800604e: 42b3 cmp r3, r6
  14113. 8006050: bfb7 itett lt
  14114. 8006052: 9b08 ldrlt r3, [sp, #32]
  14115. 8006054: 1b9e subge r6, r3, r6
  14116. 8006056: 1af2 sublt r2, r6, r3
  14117. 8006058: 9b0c ldrlt r3, [sp, #48] ; 0x30
  14118. 800605a: bfbf itttt lt
  14119. 800605c: 9608 strlt r6, [sp, #32]
  14120. 800605e: 189b addlt r3, r3, r2
  14121. 8006060: 930c strlt r3, [sp, #48] ; 0x30
  14122. 8006062: 2600 movlt r6, #0
  14123. 8006064: f1b8 0f00 cmp.w r8, #0
  14124. 8006068: bfb9 ittee lt
  14125. 800606a: eba9 0508 sublt.w r5, r9, r8
  14126. 800606e: 2300 movlt r3, #0
  14127. 8006070: 464d movge r5, r9
  14128. 8006072: 4643 movge r3, r8
  14129. 8006074: e781 b.n 8005f7a <_dtoa_r+0x70a>
  14130. 8006076: 9e08 ldr r6, [sp, #32]
  14131. 8006078: 464d mov r5, r9
  14132. 800607a: 9f09 ldr r7, [sp, #36] ; 0x24
  14133. 800607c: e786 b.n 8005f8c <_dtoa_r+0x71c>
  14134. 800607e: 9a08 ldr r2, [sp, #32]
  14135. 8006080: e7ad b.n 8005fde <_dtoa_r+0x76e>
  14136. 8006082: 2300 movs r3, #0
  14137. 8006084: e7d6 b.n 8006034 <_dtoa_r+0x7c4>
  14138. 8006086: 9b02 ldr r3, [sp, #8]
  14139. 8006088: e7d4 b.n 8006034 <_dtoa_r+0x7c4>
  14140. 800608a: 2300 movs r3, #0
  14141. 800608c: 9308 str r3, [sp, #32]
  14142. 800608e: 6933 ldr r3, [r6, #16]
  14143. 8006090: eb06 0383 add.w r3, r6, r3, lsl #2
  14144. 8006094: 6918 ldr r0, [r3, #16]
  14145. 8006096: f000 fc32 bl 80068fe <__hi0bits>
  14146. 800609a: f1c0 0020 rsb r0, r0, #32
  14147. 800609e: 9b07 ldr r3, [sp, #28]
  14148. 80060a0: 4418 add r0, r3
  14149. 80060a2: f010 001f ands.w r0, r0, #31
  14150. 80060a6: d047 beq.n 8006138 <_dtoa_r+0x8c8>
  14151. 80060a8: f1c0 0320 rsb r3, r0, #32
  14152. 80060ac: 2b04 cmp r3, #4
  14153. 80060ae: dd3b ble.n 8006128 <_dtoa_r+0x8b8>
  14154. 80060b0: 9b07 ldr r3, [sp, #28]
  14155. 80060b2: f1c0 001c rsb r0, r0, #28
  14156. 80060b6: 4481 add r9, r0
  14157. 80060b8: 4405 add r5, r0
  14158. 80060ba: 4403 add r3, r0
  14159. 80060bc: 9307 str r3, [sp, #28]
  14160. 80060be: f1b9 0f00 cmp.w r9, #0
  14161. 80060c2: dd05 ble.n 80060d0 <_dtoa_r+0x860>
  14162. 80060c4: 4659 mov r1, fp
  14163. 80060c6: 464a mov r2, r9
  14164. 80060c8: 4620 mov r0, r4
  14165. 80060ca: f000 fd53 bl 8006b74 <__lshift>
  14166. 80060ce: 4683 mov fp, r0
  14167. 80060d0: 9b07 ldr r3, [sp, #28]
  14168. 80060d2: 2b00 cmp r3, #0
  14169. 80060d4: dd05 ble.n 80060e2 <_dtoa_r+0x872>
  14170. 80060d6: 4631 mov r1, r6
  14171. 80060d8: 461a mov r2, r3
  14172. 80060da: 4620 mov r0, r4
  14173. 80060dc: f000 fd4a bl 8006b74 <__lshift>
  14174. 80060e0: 4606 mov r6, r0
  14175. 80060e2: 9b0d ldr r3, [sp, #52] ; 0x34
  14176. 80060e4: b353 cbz r3, 800613c <_dtoa_r+0x8cc>
  14177. 80060e6: 4631 mov r1, r6
  14178. 80060e8: 4658 mov r0, fp
  14179. 80060ea: f000 fd97 bl 8006c1c <__mcmp>
  14180. 80060ee: 2800 cmp r0, #0
  14181. 80060f0: da24 bge.n 800613c <_dtoa_r+0x8cc>
  14182. 80060f2: 2300 movs r3, #0
  14183. 80060f4: 4659 mov r1, fp
  14184. 80060f6: 220a movs r2, #10
  14185. 80060f8: 4620 mov r0, r4
  14186. 80060fa: f000 fbc5 bl 8006888 <__multadd>
  14187. 80060fe: 9b09 ldr r3, [sp, #36] ; 0x24
  14188. 8006100: f10a 3aff add.w sl, sl, #4294967295
  14189. 8006104: 4683 mov fp, r0
  14190. 8006106: 2b00 cmp r3, #0
  14191. 8006108: f000 8144 beq.w 8006394 <_dtoa_r+0xb24>
  14192. 800610c: 2300 movs r3, #0
  14193. 800610e: 4639 mov r1, r7
  14194. 8006110: 220a movs r2, #10
  14195. 8006112: 4620 mov r0, r4
  14196. 8006114: f000 fbb8 bl 8006888 <__multadd>
  14197. 8006118: 9b04 ldr r3, [sp, #16]
  14198. 800611a: 4607 mov r7, r0
  14199. 800611c: 2b00 cmp r3, #0
  14200. 800611e: dc4d bgt.n 80061bc <_dtoa_r+0x94c>
  14201. 8006120: 9b1e ldr r3, [sp, #120] ; 0x78
  14202. 8006122: 2b02 cmp r3, #2
  14203. 8006124: dd4a ble.n 80061bc <_dtoa_r+0x94c>
  14204. 8006126: e011 b.n 800614c <_dtoa_r+0x8dc>
  14205. 8006128: d0c9 beq.n 80060be <_dtoa_r+0x84e>
  14206. 800612a: 9a07 ldr r2, [sp, #28]
  14207. 800612c: 331c adds r3, #28
  14208. 800612e: 441a add r2, r3
  14209. 8006130: 4499 add r9, r3
  14210. 8006132: 441d add r5, r3
  14211. 8006134: 4613 mov r3, r2
  14212. 8006136: e7c1 b.n 80060bc <_dtoa_r+0x84c>
  14213. 8006138: 4603 mov r3, r0
  14214. 800613a: e7f6 b.n 800612a <_dtoa_r+0x8ba>
  14215. 800613c: f1b8 0f00 cmp.w r8, #0
  14216. 8006140: dc36 bgt.n 80061b0 <_dtoa_r+0x940>
  14217. 8006142: 9b1e ldr r3, [sp, #120] ; 0x78
  14218. 8006144: 2b02 cmp r3, #2
  14219. 8006146: dd33 ble.n 80061b0 <_dtoa_r+0x940>
  14220. 8006148: f8cd 8010 str.w r8, [sp, #16]
  14221. 800614c: 9b04 ldr r3, [sp, #16]
  14222. 800614e: b963 cbnz r3, 800616a <_dtoa_r+0x8fa>
  14223. 8006150: 4631 mov r1, r6
  14224. 8006152: 2205 movs r2, #5
  14225. 8006154: 4620 mov r0, r4
  14226. 8006156: f000 fb97 bl 8006888 <__multadd>
  14227. 800615a: 4601 mov r1, r0
  14228. 800615c: 4606 mov r6, r0
  14229. 800615e: 4658 mov r0, fp
  14230. 8006160: f000 fd5c bl 8006c1c <__mcmp>
  14231. 8006164: 2800 cmp r0, #0
  14232. 8006166: f73f add3 bgt.w 8005d10 <_dtoa_r+0x4a0>
  14233. 800616a: 9b1f ldr r3, [sp, #124] ; 0x7c
  14234. 800616c: 9d06 ldr r5, [sp, #24]
  14235. 800616e: ea6f 0a03 mvn.w sl, r3
  14236. 8006172: f04f 0900 mov.w r9, #0
  14237. 8006176: 4631 mov r1, r6
  14238. 8006178: 4620 mov r0, r4
  14239. 800617a: f000 fb6e bl 800685a <_Bfree>
  14240. 800617e: 2f00 cmp r7, #0
  14241. 8006180: f43f aebd beq.w 8005efe <_dtoa_r+0x68e>
  14242. 8006184: f1b9 0f00 cmp.w r9, #0
  14243. 8006188: d005 beq.n 8006196 <_dtoa_r+0x926>
  14244. 800618a: 45b9 cmp r9, r7
  14245. 800618c: d003 beq.n 8006196 <_dtoa_r+0x926>
  14246. 800618e: 4649 mov r1, r9
  14247. 8006190: 4620 mov r0, r4
  14248. 8006192: f000 fb62 bl 800685a <_Bfree>
  14249. 8006196: 4639 mov r1, r7
  14250. 8006198: 4620 mov r0, r4
  14251. 800619a: f000 fb5e bl 800685a <_Bfree>
  14252. 800619e: e6ae b.n 8005efe <_dtoa_r+0x68e>
  14253. 80061a0: 2600 movs r6, #0
  14254. 80061a2: 4637 mov r7, r6
  14255. 80061a4: e7e1 b.n 800616a <_dtoa_r+0x8fa>
  14256. 80061a6: 46ba mov sl, r7
  14257. 80061a8: 4637 mov r7, r6
  14258. 80061aa: e5b1 b.n 8005d10 <_dtoa_r+0x4a0>
  14259. 80061ac: 40240000 .word 0x40240000
  14260. 80061b0: 9b09 ldr r3, [sp, #36] ; 0x24
  14261. 80061b2: f8cd 8010 str.w r8, [sp, #16]
  14262. 80061b6: 2b00 cmp r3, #0
  14263. 80061b8: f000 80f3 beq.w 80063a2 <_dtoa_r+0xb32>
  14264. 80061bc: 2d00 cmp r5, #0
  14265. 80061be: dd05 ble.n 80061cc <_dtoa_r+0x95c>
  14266. 80061c0: 4639 mov r1, r7
  14267. 80061c2: 462a mov r2, r5
  14268. 80061c4: 4620 mov r0, r4
  14269. 80061c6: f000 fcd5 bl 8006b74 <__lshift>
  14270. 80061ca: 4607 mov r7, r0
  14271. 80061cc: 9b08 ldr r3, [sp, #32]
  14272. 80061ce: 2b00 cmp r3, #0
  14273. 80061d0: d04c beq.n 800626c <_dtoa_r+0x9fc>
  14274. 80061d2: 6879 ldr r1, [r7, #4]
  14275. 80061d4: 4620 mov r0, r4
  14276. 80061d6: f000 fb0c bl 80067f2 <_Balloc>
  14277. 80061da: 4605 mov r5, r0
  14278. 80061dc: 693a ldr r2, [r7, #16]
  14279. 80061de: f107 010c add.w r1, r7, #12
  14280. 80061e2: 3202 adds r2, #2
  14281. 80061e4: 0092 lsls r2, r2, #2
  14282. 80061e6: 300c adds r0, #12
  14283. 80061e8: f000 faf8 bl 80067dc <memcpy>
  14284. 80061ec: 2201 movs r2, #1
  14285. 80061ee: 4629 mov r1, r5
  14286. 80061f0: 4620 mov r0, r4
  14287. 80061f2: f000 fcbf bl 8006b74 <__lshift>
  14288. 80061f6: 46b9 mov r9, r7
  14289. 80061f8: 4607 mov r7, r0
  14290. 80061fa: 9b06 ldr r3, [sp, #24]
  14291. 80061fc: 9307 str r3, [sp, #28]
  14292. 80061fe: 9b02 ldr r3, [sp, #8]
  14293. 8006200: f003 0301 and.w r3, r3, #1
  14294. 8006204: 9308 str r3, [sp, #32]
  14295. 8006206: 4631 mov r1, r6
  14296. 8006208: 4658 mov r0, fp
  14297. 800620a: f7ff faa1 bl 8005750 <quorem>
  14298. 800620e: 4649 mov r1, r9
  14299. 8006210: 4605 mov r5, r0
  14300. 8006212: f100 0830 add.w r8, r0, #48 ; 0x30
  14301. 8006216: 4658 mov r0, fp
  14302. 8006218: f000 fd00 bl 8006c1c <__mcmp>
  14303. 800621c: 463a mov r2, r7
  14304. 800621e: 9002 str r0, [sp, #8]
  14305. 8006220: 4631 mov r1, r6
  14306. 8006222: 4620 mov r0, r4
  14307. 8006224: f000 fd14 bl 8006c50 <__mdiff>
  14308. 8006228: 68c3 ldr r3, [r0, #12]
  14309. 800622a: 4602 mov r2, r0
  14310. 800622c: bb03 cbnz r3, 8006270 <_dtoa_r+0xa00>
  14311. 800622e: 4601 mov r1, r0
  14312. 8006230: 9009 str r0, [sp, #36] ; 0x24
  14313. 8006232: 4658 mov r0, fp
  14314. 8006234: f000 fcf2 bl 8006c1c <__mcmp>
  14315. 8006238: 4603 mov r3, r0
  14316. 800623a: 9a09 ldr r2, [sp, #36] ; 0x24
  14317. 800623c: 4611 mov r1, r2
  14318. 800623e: 4620 mov r0, r4
  14319. 8006240: 9309 str r3, [sp, #36] ; 0x24
  14320. 8006242: f000 fb0a bl 800685a <_Bfree>
  14321. 8006246: 9b09 ldr r3, [sp, #36] ; 0x24
  14322. 8006248: b9a3 cbnz r3, 8006274 <_dtoa_r+0xa04>
  14323. 800624a: 9a1e ldr r2, [sp, #120] ; 0x78
  14324. 800624c: b992 cbnz r2, 8006274 <_dtoa_r+0xa04>
  14325. 800624e: 9a08 ldr r2, [sp, #32]
  14326. 8006250: b982 cbnz r2, 8006274 <_dtoa_r+0xa04>
  14327. 8006252: f1b8 0f39 cmp.w r8, #57 ; 0x39
  14328. 8006256: d029 beq.n 80062ac <_dtoa_r+0xa3c>
  14329. 8006258: 9b02 ldr r3, [sp, #8]
  14330. 800625a: 2b00 cmp r3, #0
  14331. 800625c: dd01 ble.n 8006262 <_dtoa_r+0x9f2>
  14332. 800625e: f105 0831 add.w r8, r5, #49 ; 0x31
  14333. 8006262: 9b07 ldr r3, [sp, #28]
  14334. 8006264: 1c5d adds r5, r3, #1
  14335. 8006266: f883 8000 strb.w r8, [r3]
  14336. 800626a: e784 b.n 8006176 <_dtoa_r+0x906>
  14337. 800626c: 4638 mov r0, r7
  14338. 800626e: e7c2 b.n 80061f6 <_dtoa_r+0x986>
  14339. 8006270: 2301 movs r3, #1
  14340. 8006272: e7e3 b.n 800623c <_dtoa_r+0x9cc>
  14341. 8006274: 9a02 ldr r2, [sp, #8]
  14342. 8006276: 2a00 cmp r2, #0
  14343. 8006278: db04 blt.n 8006284 <_dtoa_r+0xa14>
  14344. 800627a: d123 bne.n 80062c4 <_dtoa_r+0xa54>
  14345. 800627c: 9a1e ldr r2, [sp, #120] ; 0x78
  14346. 800627e: bb0a cbnz r2, 80062c4 <_dtoa_r+0xa54>
  14347. 8006280: 9a08 ldr r2, [sp, #32]
  14348. 8006282: b9fa cbnz r2, 80062c4 <_dtoa_r+0xa54>
  14349. 8006284: 2b00 cmp r3, #0
  14350. 8006286: ddec ble.n 8006262 <_dtoa_r+0x9f2>
  14351. 8006288: 4659 mov r1, fp
  14352. 800628a: 2201 movs r2, #1
  14353. 800628c: 4620 mov r0, r4
  14354. 800628e: f000 fc71 bl 8006b74 <__lshift>
  14355. 8006292: 4631 mov r1, r6
  14356. 8006294: 4683 mov fp, r0
  14357. 8006296: f000 fcc1 bl 8006c1c <__mcmp>
  14358. 800629a: 2800 cmp r0, #0
  14359. 800629c: dc03 bgt.n 80062a6 <_dtoa_r+0xa36>
  14360. 800629e: d1e0 bne.n 8006262 <_dtoa_r+0x9f2>
  14361. 80062a0: f018 0f01 tst.w r8, #1
  14362. 80062a4: d0dd beq.n 8006262 <_dtoa_r+0x9f2>
  14363. 80062a6: f1b8 0f39 cmp.w r8, #57 ; 0x39
  14364. 80062aa: d1d8 bne.n 800625e <_dtoa_r+0x9ee>
  14365. 80062ac: 9b07 ldr r3, [sp, #28]
  14366. 80062ae: 9a07 ldr r2, [sp, #28]
  14367. 80062b0: 1c5d adds r5, r3, #1
  14368. 80062b2: 2339 movs r3, #57 ; 0x39
  14369. 80062b4: 7013 strb r3, [r2, #0]
  14370. 80062b6: f815 3c01 ldrb.w r3, [r5, #-1]
  14371. 80062ba: 1e6a subs r2, r5, #1
  14372. 80062bc: 2b39 cmp r3, #57 ; 0x39
  14373. 80062be: d04d beq.n 800635c <_dtoa_r+0xaec>
  14374. 80062c0: 3301 adds r3, #1
  14375. 80062c2: e052 b.n 800636a <_dtoa_r+0xafa>
  14376. 80062c4: 9a07 ldr r2, [sp, #28]
  14377. 80062c6: 2b00 cmp r3, #0
  14378. 80062c8: f102 0501 add.w r5, r2, #1
  14379. 80062cc: dd06 ble.n 80062dc <_dtoa_r+0xa6c>
  14380. 80062ce: f1b8 0f39 cmp.w r8, #57 ; 0x39
  14381. 80062d2: d0eb beq.n 80062ac <_dtoa_r+0xa3c>
  14382. 80062d4: f108 0801 add.w r8, r8, #1
  14383. 80062d8: 9b07 ldr r3, [sp, #28]
  14384. 80062da: e7c4 b.n 8006266 <_dtoa_r+0x9f6>
  14385. 80062dc: 9b06 ldr r3, [sp, #24]
  14386. 80062de: 9a04 ldr r2, [sp, #16]
  14387. 80062e0: 1aeb subs r3, r5, r3
  14388. 80062e2: 4293 cmp r3, r2
  14389. 80062e4: f805 8c01 strb.w r8, [r5, #-1]
  14390. 80062e8: d021 beq.n 800632e <_dtoa_r+0xabe>
  14391. 80062ea: 4659 mov r1, fp
  14392. 80062ec: 2300 movs r3, #0
  14393. 80062ee: 220a movs r2, #10
  14394. 80062f0: 4620 mov r0, r4
  14395. 80062f2: f000 fac9 bl 8006888 <__multadd>
  14396. 80062f6: 45b9 cmp r9, r7
  14397. 80062f8: 4683 mov fp, r0
  14398. 80062fa: f04f 0300 mov.w r3, #0
  14399. 80062fe: f04f 020a mov.w r2, #10
  14400. 8006302: 4649 mov r1, r9
  14401. 8006304: 4620 mov r0, r4
  14402. 8006306: d105 bne.n 8006314 <_dtoa_r+0xaa4>
  14403. 8006308: f000 fabe bl 8006888 <__multadd>
  14404. 800630c: 4681 mov r9, r0
  14405. 800630e: 4607 mov r7, r0
  14406. 8006310: 9507 str r5, [sp, #28]
  14407. 8006312: e778 b.n 8006206 <_dtoa_r+0x996>
  14408. 8006314: f000 fab8 bl 8006888 <__multadd>
  14409. 8006318: 4639 mov r1, r7
  14410. 800631a: 4681 mov r9, r0
  14411. 800631c: 2300 movs r3, #0
  14412. 800631e: 220a movs r2, #10
  14413. 8006320: 4620 mov r0, r4
  14414. 8006322: f000 fab1 bl 8006888 <__multadd>
  14415. 8006326: 4607 mov r7, r0
  14416. 8006328: e7f2 b.n 8006310 <_dtoa_r+0xaa0>
  14417. 800632a: f04f 0900 mov.w r9, #0
  14418. 800632e: 4659 mov r1, fp
  14419. 8006330: 2201 movs r2, #1
  14420. 8006332: 4620 mov r0, r4
  14421. 8006334: f000 fc1e bl 8006b74 <__lshift>
  14422. 8006338: 4631 mov r1, r6
  14423. 800633a: 4683 mov fp, r0
  14424. 800633c: f000 fc6e bl 8006c1c <__mcmp>
  14425. 8006340: 2800 cmp r0, #0
  14426. 8006342: dcb8 bgt.n 80062b6 <_dtoa_r+0xa46>
  14427. 8006344: d102 bne.n 800634c <_dtoa_r+0xadc>
  14428. 8006346: f018 0f01 tst.w r8, #1
  14429. 800634a: d1b4 bne.n 80062b6 <_dtoa_r+0xa46>
  14430. 800634c: f815 3c01 ldrb.w r3, [r5, #-1]
  14431. 8006350: 1e6a subs r2, r5, #1
  14432. 8006352: 2b30 cmp r3, #48 ; 0x30
  14433. 8006354: f47f af0f bne.w 8006176 <_dtoa_r+0x906>
  14434. 8006358: 4615 mov r5, r2
  14435. 800635a: e7f7 b.n 800634c <_dtoa_r+0xadc>
  14436. 800635c: 9b06 ldr r3, [sp, #24]
  14437. 800635e: 4293 cmp r3, r2
  14438. 8006360: d105 bne.n 800636e <_dtoa_r+0xafe>
  14439. 8006362: 2331 movs r3, #49 ; 0x31
  14440. 8006364: 9a06 ldr r2, [sp, #24]
  14441. 8006366: f10a 0a01 add.w sl, sl, #1
  14442. 800636a: 7013 strb r3, [r2, #0]
  14443. 800636c: e703 b.n 8006176 <_dtoa_r+0x906>
  14444. 800636e: 4615 mov r5, r2
  14445. 8006370: e7a1 b.n 80062b6 <_dtoa_r+0xa46>
  14446. 8006372: 4b17 ldr r3, [pc, #92] ; (80063d0 <_dtoa_r+0xb60>)
  14447. 8006374: f7ff bae1 b.w 800593a <_dtoa_r+0xca>
  14448. 8006378: 9b22 ldr r3, [sp, #136] ; 0x88
  14449. 800637a: 2b00 cmp r3, #0
  14450. 800637c: f47f aabb bne.w 80058f6 <_dtoa_r+0x86>
  14451. 8006380: 4b14 ldr r3, [pc, #80] ; (80063d4 <_dtoa_r+0xb64>)
  14452. 8006382: f7ff bada b.w 800593a <_dtoa_r+0xca>
  14453. 8006386: 9b1e ldr r3, [sp, #120] ; 0x78
  14454. 8006388: 2b01 cmp r3, #1
  14455. 800638a: f77f ae3f ble.w 800600c <_dtoa_r+0x79c>
  14456. 800638e: 9b0c ldr r3, [sp, #48] ; 0x30
  14457. 8006390: 9308 str r3, [sp, #32]
  14458. 8006392: e653 b.n 800603c <_dtoa_r+0x7cc>
  14459. 8006394: 9b04 ldr r3, [sp, #16]
  14460. 8006396: 2b00 cmp r3, #0
  14461. 8006398: dc03 bgt.n 80063a2 <_dtoa_r+0xb32>
  14462. 800639a: 9b1e ldr r3, [sp, #120] ; 0x78
  14463. 800639c: 2b02 cmp r3, #2
  14464. 800639e: f73f aed5 bgt.w 800614c <_dtoa_r+0x8dc>
  14465. 80063a2: 9d06 ldr r5, [sp, #24]
  14466. 80063a4: 4631 mov r1, r6
  14467. 80063a6: 4658 mov r0, fp
  14468. 80063a8: f7ff f9d2 bl 8005750 <quorem>
  14469. 80063ac: 9b06 ldr r3, [sp, #24]
  14470. 80063ae: f100 0830 add.w r8, r0, #48 ; 0x30
  14471. 80063b2: f805 8b01 strb.w r8, [r5], #1
  14472. 80063b6: 9a04 ldr r2, [sp, #16]
  14473. 80063b8: 1aeb subs r3, r5, r3
  14474. 80063ba: 429a cmp r2, r3
  14475. 80063bc: ddb5 ble.n 800632a <_dtoa_r+0xaba>
  14476. 80063be: 4659 mov r1, fp
  14477. 80063c0: 2300 movs r3, #0
  14478. 80063c2: 220a movs r2, #10
  14479. 80063c4: 4620 mov r0, r4
  14480. 80063c6: f000 fa5f bl 8006888 <__multadd>
  14481. 80063ca: 4683 mov fp, r0
  14482. 80063cc: e7ea b.n 80063a4 <_dtoa_r+0xb34>
  14483. 80063ce: bf00 nop
  14484. 80063d0: 08007458 .word 0x08007458
  14485. 80063d4: 0800747c .word 0x0800747c
  14486. 080063d8 <__sflush_r>:
  14487. 80063d8: 898a ldrh r2, [r1, #12]
  14488. 80063da: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  14489. 80063de: 4605 mov r5, r0
  14490. 80063e0: 0710 lsls r0, r2, #28
  14491. 80063e2: 460c mov r4, r1
  14492. 80063e4: d458 bmi.n 8006498 <__sflush_r+0xc0>
  14493. 80063e6: 684b ldr r3, [r1, #4]
  14494. 80063e8: 2b00 cmp r3, #0
  14495. 80063ea: dc05 bgt.n 80063f8 <__sflush_r+0x20>
  14496. 80063ec: 6c0b ldr r3, [r1, #64] ; 0x40
  14497. 80063ee: 2b00 cmp r3, #0
  14498. 80063f0: dc02 bgt.n 80063f8 <__sflush_r+0x20>
  14499. 80063f2: 2000 movs r0, #0
  14500. 80063f4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  14501. 80063f8: 6ae6 ldr r6, [r4, #44] ; 0x2c
  14502. 80063fa: 2e00 cmp r6, #0
  14503. 80063fc: d0f9 beq.n 80063f2 <__sflush_r+0x1a>
  14504. 80063fe: 2300 movs r3, #0
  14505. 8006400: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  14506. 8006404: 682f ldr r7, [r5, #0]
  14507. 8006406: 6a21 ldr r1, [r4, #32]
  14508. 8006408: 602b str r3, [r5, #0]
  14509. 800640a: d032 beq.n 8006472 <__sflush_r+0x9a>
  14510. 800640c: 6d60 ldr r0, [r4, #84] ; 0x54
  14511. 800640e: 89a3 ldrh r3, [r4, #12]
  14512. 8006410: 075a lsls r2, r3, #29
  14513. 8006412: d505 bpl.n 8006420 <__sflush_r+0x48>
  14514. 8006414: 6863 ldr r3, [r4, #4]
  14515. 8006416: 1ac0 subs r0, r0, r3
  14516. 8006418: 6b63 ldr r3, [r4, #52] ; 0x34
  14517. 800641a: b10b cbz r3, 8006420 <__sflush_r+0x48>
  14518. 800641c: 6c23 ldr r3, [r4, #64] ; 0x40
  14519. 800641e: 1ac0 subs r0, r0, r3
  14520. 8006420: 2300 movs r3, #0
  14521. 8006422: 4602 mov r2, r0
  14522. 8006424: 6ae6 ldr r6, [r4, #44] ; 0x2c
  14523. 8006426: 6a21 ldr r1, [r4, #32]
  14524. 8006428: 4628 mov r0, r5
  14525. 800642a: 47b0 blx r6
  14526. 800642c: 1c43 adds r3, r0, #1
  14527. 800642e: 89a3 ldrh r3, [r4, #12]
  14528. 8006430: d106 bne.n 8006440 <__sflush_r+0x68>
  14529. 8006432: 6829 ldr r1, [r5, #0]
  14530. 8006434: 291d cmp r1, #29
  14531. 8006436: d848 bhi.n 80064ca <__sflush_r+0xf2>
  14532. 8006438: 4a29 ldr r2, [pc, #164] ; (80064e0 <__sflush_r+0x108>)
  14533. 800643a: 40ca lsrs r2, r1
  14534. 800643c: 07d6 lsls r6, r2, #31
  14535. 800643e: d544 bpl.n 80064ca <__sflush_r+0xf2>
  14536. 8006440: 2200 movs r2, #0
  14537. 8006442: 6062 str r2, [r4, #4]
  14538. 8006444: 6922 ldr r2, [r4, #16]
  14539. 8006446: 04d9 lsls r1, r3, #19
  14540. 8006448: 6022 str r2, [r4, #0]
  14541. 800644a: d504 bpl.n 8006456 <__sflush_r+0x7e>
  14542. 800644c: 1c42 adds r2, r0, #1
  14543. 800644e: d101 bne.n 8006454 <__sflush_r+0x7c>
  14544. 8006450: 682b ldr r3, [r5, #0]
  14545. 8006452: b903 cbnz r3, 8006456 <__sflush_r+0x7e>
  14546. 8006454: 6560 str r0, [r4, #84] ; 0x54
  14547. 8006456: 6b61 ldr r1, [r4, #52] ; 0x34
  14548. 8006458: 602f str r7, [r5, #0]
  14549. 800645a: 2900 cmp r1, #0
  14550. 800645c: d0c9 beq.n 80063f2 <__sflush_r+0x1a>
  14551. 800645e: f104 0344 add.w r3, r4, #68 ; 0x44
  14552. 8006462: 4299 cmp r1, r3
  14553. 8006464: d002 beq.n 800646c <__sflush_r+0x94>
  14554. 8006466: 4628 mov r0, r5
  14555. 8006468: f000 fcae bl 8006dc8 <_free_r>
  14556. 800646c: 2000 movs r0, #0
  14557. 800646e: 6360 str r0, [r4, #52] ; 0x34
  14558. 8006470: e7c0 b.n 80063f4 <__sflush_r+0x1c>
  14559. 8006472: 2301 movs r3, #1
  14560. 8006474: 4628 mov r0, r5
  14561. 8006476: 47b0 blx r6
  14562. 8006478: 1c41 adds r1, r0, #1
  14563. 800647a: d1c8 bne.n 800640e <__sflush_r+0x36>
  14564. 800647c: 682b ldr r3, [r5, #0]
  14565. 800647e: 2b00 cmp r3, #0
  14566. 8006480: d0c5 beq.n 800640e <__sflush_r+0x36>
  14567. 8006482: 2b1d cmp r3, #29
  14568. 8006484: d001 beq.n 800648a <__sflush_r+0xb2>
  14569. 8006486: 2b16 cmp r3, #22
  14570. 8006488: d101 bne.n 800648e <__sflush_r+0xb6>
  14571. 800648a: 602f str r7, [r5, #0]
  14572. 800648c: e7b1 b.n 80063f2 <__sflush_r+0x1a>
  14573. 800648e: 89a3 ldrh r3, [r4, #12]
  14574. 8006490: f043 0340 orr.w r3, r3, #64 ; 0x40
  14575. 8006494: 81a3 strh r3, [r4, #12]
  14576. 8006496: e7ad b.n 80063f4 <__sflush_r+0x1c>
  14577. 8006498: 690f ldr r7, [r1, #16]
  14578. 800649a: 2f00 cmp r7, #0
  14579. 800649c: d0a9 beq.n 80063f2 <__sflush_r+0x1a>
  14580. 800649e: 0793 lsls r3, r2, #30
  14581. 80064a0: bf18 it ne
  14582. 80064a2: 2300 movne r3, #0
  14583. 80064a4: 680e ldr r6, [r1, #0]
  14584. 80064a6: bf08 it eq
  14585. 80064a8: 694b ldreq r3, [r1, #20]
  14586. 80064aa: eba6 0807 sub.w r8, r6, r7
  14587. 80064ae: 600f str r7, [r1, #0]
  14588. 80064b0: 608b str r3, [r1, #8]
  14589. 80064b2: f1b8 0f00 cmp.w r8, #0
  14590. 80064b6: dd9c ble.n 80063f2 <__sflush_r+0x1a>
  14591. 80064b8: 4643 mov r3, r8
  14592. 80064ba: 463a mov r2, r7
  14593. 80064bc: 6a21 ldr r1, [r4, #32]
  14594. 80064be: 4628 mov r0, r5
  14595. 80064c0: 6aa6 ldr r6, [r4, #40] ; 0x28
  14596. 80064c2: 47b0 blx r6
  14597. 80064c4: 2800 cmp r0, #0
  14598. 80064c6: dc06 bgt.n 80064d6 <__sflush_r+0xfe>
  14599. 80064c8: 89a3 ldrh r3, [r4, #12]
  14600. 80064ca: f043 0340 orr.w r3, r3, #64 ; 0x40
  14601. 80064ce: 81a3 strh r3, [r4, #12]
  14602. 80064d0: f04f 30ff mov.w r0, #4294967295
  14603. 80064d4: e78e b.n 80063f4 <__sflush_r+0x1c>
  14604. 80064d6: 4407 add r7, r0
  14605. 80064d8: eba8 0800 sub.w r8, r8, r0
  14606. 80064dc: e7e9 b.n 80064b2 <__sflush_r+0xda>
  14607. 80064de: bf00 nop
  14608. 80064e0: 20400001 .word 0x20400001
  14609. 080064e4 <_fflush_r>:
  14610. 80064e4: b538 push {r3, r4, r5, lr}
  14611. 80064e6: 690b ldr r3, [r1, #16]
  14612. 80064e8: 4605 mov r5, r0
  14613. 80064ea: 460c mov r4, r1
  14614. 80064ec: b1db cbz r3, 8006526 <_fflush_r+0x42>
  14615. 80064ee: b118 cbz r0, 80064f8 <_fflush_r+0x14>
  14616. 80064f0: 6983 ldr r3, [r0, #24]
  14617. 80064f2: b90b cbnz r3, 80064f8 <_fflush_r+0x14>
  14618. 80064f4: f000 f860 bl 80065b8 <__sinit>
  14619. 80064f8: 4b0c ldr r3, [pc, #48] ; (800652c <_fflush_r+0x48>)
  14620. 80064fa: 429c cmp r4, r3
  14621. 80064fc: d109 bne.n 8006512 <_fflush_r+0x2e>
  14622. 80064fe: 686c ldr r4, [r5, #4]
  14623. 8006500: f9b4 300c ldrsh.w r3, [r4, #12]
  14624. 8006504: b17b cbz r3, 8006526 <_fflush_r+0x42>
  14625. 8006506: 4621 mov r1, r4
  14626. 8006508: 4628 mov r0, r5
  14627. 800650a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  14628. 800650e: f7ff bf63 b.w 80063d8 <__sflush_r>
  14629. 8006512: 4b07 ldr r3, [pc, #28] ; (8006530 <_fflush_r+0x4c>)
  14630. 8006514: 429c cmp r4, r3
  14631. 8006516: d101 bne.n 800651c <_fflush_r+0x38>
  14632. 8006518: 68ac ldr r4, [r5, #8]
  14633. 800651a: e7f1 b.n 8006500 <_fflush_r+0x1c>
  14634. 800651c: 4b05 ldr r3, [pc, #20] ; (8006534 <_fflush_r+0x50>)
  14635. 800651e: 429c cmp r4, r3
  14636. 8006520: bf08 it eq
  14637. 8006522: 68ec ldreq r4, [r5, #12]
  14638. 8006524: e7ec b.n 8006500 <_fflush_r+0x1c>
  14639. 8006526: 2000 movs r0, #0
  14640. 8006528: bd38 pop {r3, r4, r5, pc}
  14641. 800652a: bf00 nop
  14642. 800652c: 080074ac .word 0x080074ac
  14643. 8006530: 080074cc .word 0x080074cc
  14644. 8006534: 0800748c .word 0x0800748c
  14645. 08006538 <std>:
  14646. 8006538: 2300 movs r3, #0
  14647. 800653a: b510 push {r4, lr}
  14648. 800653c: 4604 mov r4, r0
  14649. 800653e: e9c0 3300 strd r3, r3, [r0]
  14650. 8006542: 6083 str r3, [r0, #8]
  14651. 8006544: 8181 strh r1, [r0, #12]
  14652. 8006546: 6643 str r3, [r0, #100] ; 0x64
  14653. 8006548: 81c2 strh r2, [r0, #14]
  14654. 800654a: e9c0 3304 strd r3, r3, [r0, #16]
  14655. 800654e: 6183 str r3, [r0, #24]
  14656. 8006550: 4619 mov r1, r3
  14657. 8006552: 2208 movs r2, #8
  14658. 8006554: 305c adds r0, #92 ; 0x5c
  14659. 8006556: f7fe fab1 bl 8004abc <memset>
  14660. 800655a: 4b05 ldr r3, [pc, #20] ; (8006570 <std+0x38>)
  14661. 800655c: 6224 str r4, [r4, #32]
  14662. 800655e: 6263 str r3, [r4, #36] ; 0x24
  14663. 8006560: 4b04 ldr r3, [pc, #16] ; (8006574 <std+0x3c>)
  14664. 8006562: 62a3 str r3, [r4, #40] ; 0x28
  14665. 8006564: 4b04 ldr r3, [pc, #16] ; (8006578 <std+0x40>)
  14666. 8006566: 62e3 str r3, [r4, #44] ; 0x2c
  14667. 8006568: 4b04 ldr r3, [pc, #16] ; (800657c <std+0x44>)
  14668. 800656a: 6323 str r3, [r4, #48] ; 0x30
  14669. 800656c: bd10 pop {r4, pc}
  14670. 800656e: bf00 nop
  14671. 8006570: 080071b1 .word 0x080071b1
  14672. 8006574: 080071d3 .word 0x080071d3
  14673. 8006578: 0800720b .word 0x0800720b
  14674. 800657c: 0800722f .word 0x0800722f
  14675. 08006580 <_cleanup_r>:
  14676. 8006580: 4901 ldr r1, [pc, #4] ; (8006588 <_cleanup_r+0x8>)
  14677. 8006582: f000 b885 b.w 8006690 <_fwalk_reent>
  14678. 8006586: bf00 nop
  14679. 8006588: 080064e5 .word 0x080064e5
  14680. 0800658c <__sfmoreglue>:
  14681. 800658c: b570 push {r4, r5, r6, lr}
  14682. 800658e: 2568 movs r5, #104 ; 0x68
  14683. 8006590: 1e4a subs r2, r1, #1
  14684. 8006592: 4355 muls r5, r2
  14685. 8006594: 460e mov r6, r1
  14686. 8006596: f105 0174 add.w r1, r5, #116 ; 0x74
  14687. 800659a: f000 fc61 bl 8006e60 <_malloc_r>
  14688. 800659e: 4604 mov r4, r0
  14689. 80065a0: b140 cbz r0, 80065b4 <__sfmoreglue+0x28>
  14690. 80065a2: 2100 movs r1, #0
  14691. 80065a4: e9c0 1600 strd r1, r6, [r0]
  14692. 80065a8: 300c adds r0, #12
  14693. 80065aa: 60a0 str r0, [r4, #8]
  14694. 80065ac: f105 0268 add.w r2, r5, #104 ; 0x68
  14695. 80065b0: f7fe fa84 bl 8004abc <memset>
  14696. 80065b4: 4620 mov r0, r4
  14697. 80065b6: bd70 pop {r4, r5, r6, pc}
  14698. 080065b8 <__sinit>:
  14699. 80065b8: 6983 ldr r3, [r0, #24]
  14700. 80065ba: b510 push {r4, lr}
  14701. 80065bc: 4604 mov r4, r0
  14702. 80065be: bb33 cbnz r3, 800660e <__sinit+0x56>
  14703. 80065c0: e9c0 3312 strd r3, r3, [r0, #72] ; 0x48
  14704. 80065c4: 6503 str r3, [r0, #80] ; 0x50
  14705. 80065c6: 4b12 ldr r3, [pc, #72] ; (8006610 <__sinit+0x58>)
  14706. 80065c8: 4a12 ldr r2, [pc, #72] ; (8006614 <__sinit+0x5c>)
  14707. 80065ca: 681b ldr r3, [r3, #0]
  14708. 80065cc: 6282 str r2, [r0, #40] ; 0x28
  14709. 80065ce: 4298 cmp r0, r3
  14710. 80065d0: bf04 itt eq
  14711. 80065d2: 2301 moveq r3, #1
  14712. 80065d4: 6183 streq r3, [r0, #24]
  14713. 80065d6: f000 f81f bl 8006618 <__sfp>
  14714. 80065da: 6060 str r0, [r4, #4]
  14715. 80065dc: 4620 mov r0, r4
  14716. 80065de: f000 f81b bl 8006618 <__sfp>
  14717. 80065e2: 60a0 str r0, [r4, #8]
  14718. 80065e4: 4620 mov r0, r4
  14719. 80065e6: f000 f817 bl 8006618 <__sfp>
  14720. 80065ea: 2200 movs r2, #0
  14721. 80065ec: 60e0 str r0, [r4, #12]
  14722. 80065ee: 2104 movs r1, #4
  14723. 80065f0: 6860 ldr r0, [r4, #4]
  14724. 80065f2: f7ff ffa1 bl 8006538 <std>
  14725. 80065f6: 2201 movs r2, #1
  14726. 80065f8: 2109 movs r1, #9
  14727. 80065fa: 68a0 ldr r0, [r4, #8]
  14728. 80065fc: f7ff ff9c bl 8006538 <std>
  14729. 8006600: 2202 movs r2, #2
  14730. 8006602: 2112 movs r1, #18
  14731. 8006604: 68e0 ldr r0, [r4, #12]
  14732. 8006606: f7ff ff97 bl 8006538 <std>
  14733. 800660a: 2301 movs r3, #1
  14734. 800660c: 61a3 str r3, [r4, #24]
  14735. 800660e: bd10 pop {r4, pc}
  14736. 8006610: 08007444 .word 0x08007444
  14737. 8006614: 08006581 .word 0x08006581
  14738. 08006618 <__sfp>:
  14739. 8006618: b5f8 push {r3, r4, r5, r6, r7, lr}
  14740. 800661a: 4b1b ldr r3, [pc, #108] ; (8006688 <__sfp+0x70>)
  14741. 800661c: 4607 mov r7, r0
  14742. 800661e: 681e ldr r6, [r3, #0]
  14743. 8006620: 69b3 ldr r3, [r6, #24]
  14744. 8006622: b913 cbnz r3, 800662a <__sfp+0x12>
  14745. 8006624: 4630 mov r0, r6
  14746. 8006626: f7ff ffc7 bl 80065b8 <__sinit>
  14747. 800662a: 3648 adds r6, #72 ; 0x48
  14748. 800662c: e9d6 3401 ldrd r3, r4, [r6, #4]
  14749. 8006630: 3b01 subs r3, #1
  14750. 8006632: d503 bpl.n 800663c <__sfp+0x24>
  14751. 8006634: 6833 ldr r3, [r6, #0]
  14752. 8006636: b133 cbz r3, 8006646 <__sfp+0x2e>
  14753. 8006638: 6836 ldr r6, [r6, #0]
  14754. 800663a: e7f7 b.n 800662c <__sfp+0x14>
  14755. 800663c: f9b4 500c ldrsh.w r5, [r4, #12]
  14756. 8006640: b16d cbz r5, 800665e <__sfp+0x46>
  14757. 8006642: 3468 adds r4, #104 ; 0x68
  14758. 8006644: e7f4 b.n 8006630 <__sfp+0x18>
  14759. 8006646: 2104 movs r1, #4
  14760. 8006648: 4638 mov r0, r7
  14761. 800664a: f7ff ff9f bl 800658c <__sfmoreglue>
  14762. 800664e: 6030 str r0, [r6, #0]
  14763. 8006650: 2800 cmp r0, #0
  14764. 8006652: d1f1 bne.n 8006638 <__sfp+0x20>
  14765. 8006654: 230c movs r3, #12
  14766. 8006656: 4604 mov r4, r0
  14767. 8006658: 603b str r3, [r7, #0]
  14768. 800665a: 4620 mov r0, r4
  14769. 800665c: bdf8 pop {r3, r4, r5, r6, r7, pc}
  14770. 800665e: 4b0b ldr r3, [pc, #44] ; (800668c <__sfp+0x74>)
  14771. 8006660: 6665 str r5, [r4, #100] ; 0x64
  14772. 8006662: e9c4 5500 strd r5, r5, [r4]
  14773. 8006666: 60a5 str r5, [r4, #8]
  14774. 8006668: e9c4 3503 strd r3, r5, [r4, #12]
  14775. 800666c: e9c4 5505 strd r5, r5, [r4, #20]
  14776. 8006670: 2208 movs r2, #8
  14777. 8006672: 4629 mov r1, r5
  14778. 8006674: f104 005c add.w r0, r4, #92 ; 0x5c
  14779. 8006678: f7fe fa20 bl 8004abc <memset>
  14780. 800667c: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
  14781. 8006680: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
  14782. 8006684: e7e9 b.n 800665a <__sfp+0x42>
  14783. 8006686: bf00 nop
  14784. 8006688: 08007444 .word 0x08007444
  14785. 800668c: ffff0001 .word 0xffff0001
  14786. 08006690 <_fwalk_reent>:
  14787. 8006690: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  14788. 8006694: 4680 mov r8, r0
  14789. 8006696: 4689 mov r9, r1
  14790. 8006698: 2600 movs r6, #0
  14791. 800669a: f100 0448 add.w r4, r0, #72 ; 0x48
  14792. 800669e: b914 cbnz r4, 80066a6 <_fwalk_reent+0x16>
  14793. 80066a0: 4630 mov r0, r6
  14794. 80066a2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  14795. 80066a6: e9d4 7501 ldrd r7, r5, [r4, #4]
  14796. 80066aa: 3f01 subs r7, #1
  14797. 80066ac: d501 bpl.n 80066b2 <_fwalk_reent+0x22>
  14798. 80066ae: 6824 ldr r4, [r4, #0]
  14799. 80066b0: e7f5 b.n 800669e <_fwalk_reent+0xe>
  14800. 80066b2: 89ab ldrh r3, [r5, #12]
  14801. 80066b4: 2b01 cmp r3, #1
  14802. 80066b6: d907 bls.n 80066c8 <_fwalk_reent+0x38>
  14803. 80066b8: f9b5 300e ldrsh.w r3, [r5, #14]
  14804. 80066bc: 3301 adds r3, #1
  14805. 80066be: d003 beq.n 80066c8 <_fwalk_reent+0x38>
  14806. 80066c0: 4629 mov r1, r5
  14807. 80066c2: 4640 mov r0, r8
  14808. 80066c4: 47c8 blx r9
  14809. 80066c6: 4306 orrs r6, r0
  14810. 80066c8: 3568 adds r5, #104 ; 0x68
  14811. 80066ca: e7ee b.n 80066aa <_fwalk_reent+0x1a>
  14812. 080066cc <_localeconv_r>:
  14813. 80066cc: 4b04 ldr r3, [pc, #16] ; (80066e0 <_localeconv_r+0x14>)
  14814. 80066ce: 681b ldr r3, [r3, #0]
  14815. 80066d0: 6a18 ldr r0, [r3, #32]
  14816. 80066d2: 4b04 ldr r3, [pc, #16] ; (80066e4 <_localeconv_r+0x18>)
  14817. 80066d4: 2800 cmp r0, #0
  14818. 80066d6: bf08 it eq
  14819. 80066d8: 4618 moveq r0, r3
  14820. 80066da: 30f0 adds r0, #240 ; 0xf0
  14821. 80066dc: 4770 bx lr
  14822. 80066de: bf00 nop
  14823. 80066e0: 2000000c .word 0x2000000c
  14824. 80066e4: 20000070 .word 0x20000070
  14825. 080066e8 <__swhatbuf_r>:
  14826. 80066e8: b570 push {r4, r5, r6, lr}
  14827. 80066ea: 460e mov r6, r1
  14828. 80066ec: f9b1 100e ldrsh.w r1, [r1, #14]
  14829. 80066f0: b096 sub sp, #88 ; 0x58
  14830. 80066f2: 2900 cmp r1, #0
  14831. 80066f4: 4614 mov r4, r2
  14832. 80066f6: 461d mov r5, r3
  14833. 80066f8: da07 bge.n 800670a <__swhatbuf_r+0x22>
  14834. 80066fa: 2300 movs r3, #0
  14835. 80066fc: 602b str r3, [r5, #0]
  14836. 80066fe: 89b3 ldrh r3, [r6, #12]
  14837. 8006700: 061a lsls r2, r3, #24
  14838. 8006702: d410 bmi.n 8006726 <__swhatbuf_r+0x3e>
  14839. 8006704: f44f 6380 mov.w r3, #1024 ; 0x400
  14840. 8006708: e00e b.n 8006728 <__swhatbuf_r+0x40>
  14841. 800670a: 466a mov r2, sp
  14842. 800670c: f000 fdb6 bl 800727c <_fstat_r>
  14843. 8006710: 2800 cmp r0, #0
  14844. 8006712: dbf2 blt.n 80066fa <__swhatbuf_r+0x12>
  14845. 8006714: 9a01 ldr r2, [sp, #4]
  14846. 8006716: f402 4270 and.w r2, r2, #61440 ; 0xf000
  14847. 800671a: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  14848. 800671e: 425a negs r2, r3
  14849. 8006720: 415a adcs r2, r3
  14850. 8006722: 602a str r2, [r5, #0]
  14851. 8006724: e7ee b.n 8006704 <__swhatbuf_r+0x1c>
  14852. 8006726: 2340 movs r3, #64 ; 0x40
  14853. 8006728: 2000 movs r0, #0
  14854. 800672a: 6023 str r3, [r4, #0]
  14855. 800672c: b016 add sp, #88 ; 0x58
  14856. 800672e: bd70 pop {r4, r5, r6, pc}
  14857. 08006730 <__smakebuf_r>:
  14858. 8006730: 898b ldrh r3, [r1, #12]
  14859. 8006732: b573 push {r0, r1, r4, r5, r6, lr}
  14860. 8006734: 079d lsls r5, r3, #30
  14861. 8006736: 4606 mov r6, r0
  14862. 8006738: 460c mov r4, r1
  14863. 800673a: d507 bpl.n 800674c <__smakebuf_r+0x1c>
  14864. 800673c: f104 0347 add.w r3, r4, #71 ; 0x47
  14865. 8006740: 6023 str r3, [r4, #0]
  14866. 8006742: 6123 str r3, [r4, #16]
  14867. 8006744: 2301 movs r3, #1
  14868. 8006746: 6163 str r3, [r4, #20]
  14869. 8006748: b002 add sp, #8
  14870. 800674a: bd70 pop {r4, r5, r6, pc}
  14871. 800674c: ab01 add r3, sp, #4
  14872. 800674e: 466a mov r2, sp
  14873. 8006750: f7ff ffca bl 80066e8 <__swhatbuf_r>
  14874. 8006754: 9900 ldr r1, [sp, #0]
  14875. 8006756: 4605 mov r5, r0
  14876. 8006758: 4630 mov r0, r6
  14877. 800675a: f000 fb81 bl 8006e60 <_malloc_r>
  14878. 800675e: b948 cbnz r0, 8006774 <__smakebuf_r+0x44>
  14879. 8006760: f9b4 300c ldrsh.w r3, [r4, #12]
  14880. 8006764: 059a lsls r2, r3, #22
  14881. 8006766: d4ef bmi.n 8006748 <__smakebuf_r+0x18>
  14882. 8006768: f023 0303 bic.w r3, r3, #3
  14883. 800676c: f043 0302 orr.w r3, r3, #2
  14884. 8006770: 81a3 strh r3, [r4, #12]
  14885. 8006772: e7e3 b.n 800673c <__smakebuf_r+0xc>
  14886. 8006774: 4b0d ldr r3, [pc, #52] ; (80067ac <__smakebuf_r+0x7c>)
  14887. 8006776: 62b3 str r3, [r6, #40] ; 0x28
  14888. 8006778: 89a3 ldrh r3, [r4, #12]
  14889. 800677a: 6020 str r0, [r4, #0]
  14890. 800677c: f043 0380 orr.w r3, r3, #128 ; 0x80
  14891. 8006780: 81a3 strh r3, [r4, #12]
  14892. 8006782: 9b00 ldr r3, [sp, #0]
  14893. 8006784: 6120 str r0, [r4, #16]
  14894. 8006786: 6163 str r3, [r4, #20]
  14895. 8006788: 9b01 ldr r3, [sp, #4]
  14896. 800678a: b15b cbz r3, 80067a4 <__smakebuf_r+0x74>
  14897. 800678c: f9b4 100e ldrsh.w r1, [r4, #14]
  14898. 8006790: 4630 mov r0, r6
  14899. 8006792: f000 fd85 bl 80072a0 <_isatty_r>
  14900. 8006796: b128 cbz r0, 80067a4 <__smakebuf_r+0x74>
  14901. 8006798: 89a3 ldrh r3, [r4, #12]
  14902. 800679a: f023 0303 bic.w r3, r3, #3
  14903. 800679e: f043 0301 orr.w r3, r3, #1
  14904. 80067a2: 81a3 strh r3, [r4, #12]
  14905. 80067a4: 89a3 ldrh r3, [r4, #12]
  14906. 80067a6: 431d orrs r5, r3
  14907. 80067a8: 81a5 strh r5, [r4, #12]
  14908. 80067aa: e7cd b.n 8006748 <__smakebuf_r+0x18>
  14909. 80067ac: 08006581 .word 0x08006581
  14910. 080067b0 <malloc>:
  14911. 80067b0: 4b02 ldr r3, [pc, #8] ; (80067bc <malloc+0xc>)
  14912. 80067b2: 4601 mov r1, r0
  14913. 80067b4: 6818 ldr r0, [r3, #0]
  14914. 80067b6: f000 bb53 b.w 8006e60 <_malloc_r>
  14915. 80067ba: bf00 nop
  14916. 80067bc: 2000000c .word 0x2000000c
  14917. 080067c0 <memchr>:
  14918. 80067c0: b510 push {r4, lr}
  14919. 80067c2: b2c9 uxtb r1, r1
  14920. 80067c4: 4402 add r2, r0
  14921. 80067c6: 4290 cmp r0, r2
  14922. 80067c8: 4603 mov r3, r0
  14923. 80067ca: d101 bne.n 80067d0 <memchr+0x10>
  14924. 80067cc: 2300 movs r3, #0
  14925. 80067ce: e003 b.n 80067d8 <memchr+0x18>
  14926. 80067d0: 781c ldrb r4, [r3, #0]
  14927. 80067d2: 3001 adds r0, #1
  14928. 80067d4: 428c cmp r4, r1
  14929. 80067d6: d1f6 bne.n 80067c6 <memchr+0x6>
  14930. 80067d8: 4618 mov r0, r3
  14931. 80067da: bd10 pop {r4, pc}
  14932. 080067dc <memcpy>:
  14933. 80067dc: b510 push {r4, lr}
  14934. 80067de: 1e43 subs r3, r0, #1
  14935. 80067e0: 440a add r2, r1
  14936. 80067e2: 4291 cmp r1, r2
  14937. 80067e4: d100 bne.n 80067e8 <memcpy+0xc>
  14938. 80067e6: bd10 pop {r4, pc}
  14939. 80067e8: f811 4b01 ldrb.w r4, [r1], #1
  14940. 80067ec: f803 4f01 strb.w r4, [r3, #1]!
  14941. 80067f0: e7f7 b.n 80067e2 <memcpy+0x6>
  14942. 080067f2 <_Balloc>:
  14943. 80067f2: b570 push {r4, r5, r6, lr}
  14944. 80067f4: 6a45 ldr r5, [r0, #36] ; 0x24
  14945. 80067f6: 4604 mov r4, r0
  14946. 80067f8: 460e mov r6, r1
  14947. 80067fa: b93d cbnz r5, 800680c <_Balloc+0x1a>
  14948. 80067fc: 2010 movs r0, #16
  14949. 80067fe: f7ff ffd7 bl 80067b0 <malloc>
  14950. 8006802: 6260 str r0, [r4, #36] ; 0x24
  14951. 8006804: e9c0 5501 strd r5, r5, [r0, #4]
  14952. 8006808: 6005 str r5, [r0, #0]
  14953. 800680a: 60c5 str r5, [r0, #12]
  14954. 800680c: 6a65 ldr r5, [r4, #36] ; 0x24
  14955. 800680e: 68eb ldr r3, [r5, #12]
  14956. 8006810: b183 cbz r3, 8006834 <_Balloc+0x42>
  14957. 8006812: 6a63 ldr r3, [r4, #36] ; 0x24
  14958. 8006814: 68db ldr r3, [r3, #12]
  14959. 8006816: f853 0026 ldr.w r0, [r3, r6, lsl #2]
  14960. 800681a: b9b8 cbnz r0, 800684c <_Balloc+0x5a>
  14961. 800681c: 2101 movs r1, #1
  14962. 800681e: fa01 f506 lsl.w r5, r1, r6
  14963. 8006822: 1d6a adds r2, r5, #5
  14964. 8006824: 0092 lsls r2, r2, #2
  14965. 8006826: 4620 mov r0, r4
  14966. 8006828: f000 fabf bl 8006daa <_calloc_r>
  14967. 800682c: b160 cbz r0, 8006848 <_Balloc+0x56>
  14968. 800682e: e9c0 6501 strd r6, r5, [r0, #4]
  14969. 8006832: e00e b.n 8006852 <_Balloc+0x60>
  14970. 8006834: 2221 movs r2, #33 ; 0x21
  14971. 8006836: 2104 movs r1, #4
  14972. 8006838: 4620 mov r0, r4
  14973. 800683a: f000 fab6 bl 8006daa <_calloc_r>
  14974. 800683e: 6a63 ldr r3, [r4, #36] ; 0x24
  14975. 8006840: 60e8 str r0, [r5, #12]
  14976. 8006842: 68db ldr r3, [r3, #12]
  14977. 8006844: 2b00 cmp r3, #0
  14978. 8006846: d1e4 bne.n 8006812 <_Balloc+0x20>
  14979. 8006848: 2000 movs r0, #0
  14980. 800684a: bd70 pop {r4, r5, r6, pc}
  14981. 800684c: 6802 ldr r2, [r0, #0]
  14982. 800684e: f843 2026 str.w r2, [r3, r6, lsl #2]
  14983. 8006852: 2300 movs r3, #0
  14984. 8006854: e9c0 3303 strd r3, r3, [r0, #12]
  14985. 8006858: e7f7 b.n 800684a <_Balloc+0x58>
  14986. 0800685a <_Bfree>:
  14987. 800685a: b570 push {r4, r5, r6, lr}
  14988. 800685c: 6a44 ldr r4, [r0, #36] ; 0x24
  14989. 800685e: 4606 mov r6, r0
  14990. 8006860: 460d mov r5, r1
  14991. 8006862: b93c cbnz r4, 8006874 <_Bfree+0x1a>
  14992. 8006864: 2010 movs r0, #16
  14993. 8006866: f7ff ffa3 bl 80067b0 <malloc>
  14994. 800686a: 6270 str r0, [r6, #36] ; 0x24
  14995. 800686c: e9c0 4401 strd r4, r4, [r0, #4]
  14996. 8006870: 6004 str r4, [r0, #0]
  14997. 8006872: 60c4 str r4, [r0, #12]
  14998. 8006874: b13d cbz r5, 8006886 <_Bfree+0x2c>
  14999. 8006876: 6a73 ldr r3, [r6, #36] ; 0x24
  15000. 8006878: 686a ldr r2, [r5, #4]
  15001. 800687a: 68db ldr r3, [r3, #12]
  15002. 800687c: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  15003. 8006880: 6029 str r1, [r5, #0]
  15004. 8006882: f843 5022 str.w r5, [r3, r2, lsl #2]
  15005. 8006886: bd70 pop {r4, r5, r6, pc}
  15006. 08006888 <__multadd>:
  15007. 8006888: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  15008. 800688c: 461f mov r7, r3
  15009. 800688e: 4606 mov r6, r0
  15010. 8006890: 460c mov r4, r1
  15011. 8006892: 2300 movs r3, #0
  15012. 8006894: 690d ldr r5, [r1, #16]
  15013. 8006896: f101 0c14 add.w ip, r1, #20
  15014. 800689a: f8dc 0000 ldr.w r0, [ip]
  15015. 800689e: 3301 adds r3, #1
  15016. 80068a0: b281 uxth r1, r0
  15017. 80068a2: fb02 7101 mla r1, r2, r1, r7
  15018. 80068a6: 0c00 lsrs r0, r0, #16
  15019. 80068a8: 0c0f lsrs r7, r1, #16
  15020. 80068aa: fb02 7000 mla r0, r2, r0, r7
  15021. 80068ae: b289 uxth r1, r1
  15022. 80068b0: eb01 4100 add.w r1, r1, r0, lsl #16
  15023. 80068b4: 429d cmp r5, r3
  15024. 80068b6: ea4f 4710 mov.w r7, r0, lsr #16
  15025. 80068ba: f84c 1b04 str.w r1, [ip], #4
  15026. 80068be: dcec bgt.n 800689a <__multadd+0x12>
  15027. 80068c0: b1d7 cbz r7, 80068f8 <__multadd+0x70>
  15028. 80068c2: 68a3 ldr r3, [r4, #8]
  15029. 80068c4: 42ab cmp r3, r5
  15030. 80068c6: dc12 bgt.n 80068ee <__multadd+0x66>
  15031. 80068c8: 6861 ldr r1, [r4, #4]
  15032. 80068ca: 4630 mov r0, r6
  15033. 80068cc: 3101 adds r1, #1
  15034. 80068ce: f7ff ff90 bl 80067f2 <_Balloc>
  15035. 80068d2: 4680 mov r8, r0
  15036. 80068d4: 6922 ldr r2, [r4, #16]
  15037. 80068d6: f104 010c add.w r1, r4, #12
  15038. 80068da: 3202 adds r2, #2
  15039. 80068dc: 0092 lsls r2, r2, #2
  15040. 80068de: 300c adds r0, #12
  15041. 80068e0: f7ff ff7c bl 80067dc <memcpy>
  15042. 80068e4: 4621 mov r1, r4
  15043. 80068e6: 4630 mov r0, r6
  15044. 80068e8: f7ff ffb7 bl 800685a <_Bfree>
  15045. 80068ec: 4644 mov r4, r8
  15046. 80068ee: eb04 0385 add.w r3, r4, r5, lsl #2
  15047. 80068f2: 3501 adds r5, #1
  15048. 80068f4: 615f str r7, [r3, #20]
  15049. 80068f6: 6125 str r5, [r4, #16]
  15050. 80068f8: 4620 mov r0, r4
  15051. 80068fa: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  15052. 080068fe <__hi0bits>:
  15053. 80068fe: 0c02 lsrs r2, r0, #16
  15054. 8006900: 0412 lsls r2, r2, #16
  15055. 8006902: 4603 mov r3, r0
  15056. 8006904: b9b2 cbnz r2, 8006934 <__hi0bits+0x36>
  15057. 8006906: 0403 lsls r3, r0, #16
  15058. 8006908: 2010 movs r0, #16
  15059. 800690a: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
  15060. 800690e: bf04 itt eq
  15061. 8006910: 021b lsleq r3, r3, #8
  15062. 8006912: 3008 addeq r0, #8
  15063. 8006914: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
  15064. 8006918: bf04 itt eq
  15065. 800691a: 011b lsleq r3, r3, #4
  15066. 800691c: 3004 addeq r0, #4
  15067. 800691e: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
  15068. 8006922: bf04 itt eq
  15069. 8006924: 009b lsleq r3, r3, #2
  15070. 8006926: 3002 addeq r0, #2
  15071. 8006928: 2b00 cmp r3, #0
  15072. 800692a: db06 blt.n 800693a <__hi0bits+0x3c>
  15073. 800692c: 005b lsls r3, r3, #1
  15074. 800692e: d503 bpl.n 8006938 <__hi0bits+0x3a>
  15075. 8006930: 3001 adds r0, #1
  15076. 8006932: 4770 bx lr
  15077. 8006934: 2000 movs r0, #0
  15078. 8006936: e7e8 b.n 800690a <__hi0bits+0xc>
  15079. 8006938: 2020 movs r0, #32
  15080. 800693a: 4770 bx lr
  15081. 0800693c <__lo0bits>:
  15082. 800693c: 6803 ldr r3, [r0, #0]
  15083. 800693e: 4601 mov r1, r0
  15084. 8006940: f013 0207 ands.w r2, r3, #7
  15085. 8006944: d00b beq.n 800695e <__lo0bits+0x22>
  15086. 8006946: 07da lsls r2, r3, #31
  15087. 8006948: d423 bmi.n 8006992 <__lo0bits+0x56>
  15088. 800694a: 0798 lsls r0, r3, #30
  15089. 800694c: bf49 itett mi
  15090. 800694e: 085b lsrmi r3, r3, #1
  15091. 8006950: 089b lsrpl r3, r3, #2
  15092. 8006952: 2001 movmi r0, #1
  15093. 8006954: 600b strmi r3, [r1, #0]
  15094. 8006956: bf5c itt pl
  15095. 8006958: 600b strpl r3, [r1, #0]
  15096. 800695a: 2002 movpl r0, #2
  15097. 800695c: 4770 bx lr
  15098. 800695e: b298 uxth r0, r3
  15099. 8006960: b9a8 cbnz r0, 800698e <__lo0bits+0x52>
  15100. 8006962: 2010 movs r0, #16
  15101. 8006964: 0c1b lsrs r3, r3, #16
  15102. 8006966: f013 0fff tst.w r3, #255 ; 0xff
  15103. 800696a: bf04 itt eq
  15104. 800696c: 0a1b lsreq r3, r3, #8
  15105. 800696e: 3008 addeq r0, #8
  15106. 8006970: 071a lsls r2, r3, #28
  15107. 8006972: bf04 itt eq
  15108. 8006974: 091b lsreq r3, r3, #4
  15109. 8006976: 3004 addeq r0, #4
  15110. 8006978: 079a lsls r2, r3, #30
  15111. 800697a: bf04 itt eq
  15112. 800697c: 089b lsreq r3, r3, #2
  15113. 800697e: 3002 addeq r0, #2
  15114. 8006980: 07da lsls r2, r3, #31
  15115. 8006982: d402 bmi.n 800698a <__lo0bits+0x4e>
  15116. 8006984: 085b lsrs r3, r3, #1
  15117. 8006986: d006 beq.n 8006996 <__lo0bits+0x5a>
  15118. 8006988: 3001 adds r0, #1
  15119. 800698a: 600b str r3, [r1, #0]
  15120. 800698c: 4770 bx lr
  15121. 800698e: 4610 mov r0, r2
  15122. 8006990: e7e9 b.n 8006966 <__lo0bits+0x2a>
  15123. 8006992: 2000 movs r0, #0
  15124. 8006994: 4770 bx lr
  15125. 8006996: 2020 movs r0, #32
  15126. 8006998: 4770 bx lr
  15127. 0800699a <__i2b>:
  15128. 800699a: b510 push {r4, lr}
  15129. 800699c: 460c mov r4, r1
  15130. 800699e: 2101 movs r1, #1
  15131. 80069a0: f7ff ff27 bl 80067f2 <_Balloc>
  15132. 80069a4: 2201 movs r2, #1
  15133. 80069a6: 6144 str r4, [r0, #20]
  15134. 80069a8: 6102 str r2, [r0, #16]
  15135. 80069aa: bd10 pop {r4, pc}
  15136. 080069ac <__multiply>:
  15137. 80069ac: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  15138. 80069b0: 4614 mov r4, r2
  15139. 80069b2: 690a ldr r2, [r1, #16]
  15140. 80069b4: 6923 ldr r3, [r4, #16]
  15141. 80069b6: 4688 mov r8, r1
  15142. 80069b8: 429a cmp r2, r3
  15143. 80069ba: bfbe ittt lt
  15144. 80069bc: 460b movlt r3, r1
  15145. 80069be: 46a0 movlt r8, r4
  15146. 80069c0: 461c movlt r4, r3
  15147. 80069c2: f8d8 7010 ldr.w r7, [r8, #16]
  15148. 80069c6: f8d4 9010 ldr.w r9, [r4, #16]
  15149. 80069ca: f8d8 3008 ldr.w r3, [r8, #8]
  15150. 80069ce: f8d8 1004 ldr.w r1, [r8, #4]
  15151. 80069d2: eb07 0609 add.w r6, r7, r9
  15152. 80069d6: 42b3 cmp r3, r6
  15153. 80069d8: bfb8 it lt
  15154. 80069da: 3101 addlt r1, #1
  15155. 80069dc: f7ff ff09 bl 80067f2 <_Balloc>
  15156. 80069e0: f100 0514 add.w r5, r0, #20
  15157. 80069e4: 462b mov r3, r5
  15158. 80069e6: 2200 movs r2, #0
  15159. 80069e8: eb05 0e86 add.w lr, r5, r6, lsl #2
  15160. 80069ec: 4573 cmp r3, lr
  15161. 80069ee: d316 bcc.n 8006a1e <__multiply+0x72>
  15162. 80069f0: f104 0214 add.w r2, r4, #20
  15163. 80069f4: f108 0114 add.w r1, r8, #20
  15164. 80069f8: eb02 0389 add.w r3, r2, r9, lsl #2
  15165. 80069fc: eb01 0787 add.w r7, r1, r7, lsl #2
  15166. 8006a00: 9300 str r3, [sp, #0]
  15167. 8006a02: 9b00 ldr r3, [sp, #0]
  15168. 8006a04: 9201 str r2, [sp, #4]
  15169. 8006a06: 4293 cmp r3, r2
  15170. 8006a08: d80c bhi.n 8006a24 <__multiply+0x78>
  15171. 8006a0a: 2e00 cmp r6, #0
  15172. 8006a0c: dd03 ble.n 8006a16 <__multiply+0x6a>
  15173. 8006a0e: f85e 3d04 ldr.w r3, [lr, #-4]!
  15174. 8006a12: 2b00 cmp r3, #0
  15175. 8006a14: d05d beq.n 8006ad2 <__multiply+0x126>
  15176. 8006a16: 6106 str r6, [r0, #16]
  15177. 8006a18: b003 add sp, #12
  15178. 8006a1a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  15179. 8006a1e: f843 2b04 str.w r2, [r3], #4
  15180. 8006a22: e7e3 b.n 80069ec <__multiply+0x40>
  15181. 8006a24: f8b2 b000 ldrh.w fp, [r2]
  15182. 8006a28: f1bb 0f00 cmp.w fp, #0
  15183. 8006a2c: d023 beq.n 8006a76 <__multiply+0xca>
  15184. 8006a2e: 4689 mov r9, r1
  15185. 8006a30: 46ac mov ip, r5
  15186. 8006a32: f04f 0800 mov.w r8, #0
  15187. 8006a36: f859 4b04 ldr.w r4, [r9], #4
  15188. 8006a3a: f8dc a000 ldr.w sl, [ip]
  15189. 8006a3e: b2a3 uxth r3, r4
  15190. 8006a40: fa1f fa8a uxth.w sl, sl
  15191. 8006a44: fb0b a303 mla r3, fp, r3, sl
  15192. 8006a48: ea4f 4a14 mov.w sl, r4, lsr #16
  15193. 8006a4c: f8dc 4000 ldr.w r4, [ip]
  15194. 8006a50: 4443 add r3, r8
  15195. 8006a52: ea4f 4814 mov.w r8, r4, lsr #16
  15196. 8006a56: fb0b 840a mla r4, fp, sl, r8
  15197. 8006a5a: 46e2 mov sl, ip
  15198. 8006a5c: eb04 4413 add.w r4, r4, r3, lsr #16
  15199. 8006a60: b29b uxth r3, r3
  15200. 8006a62: ea43 4304 orr.w r3, r3, r4, lsl #16
  15201. 8006a66: 454f cmp r7, r9
  15202. 8006a68: ea4f 4814 mov.w r8, r4, lsr #16
  15203. 8006a6c: f84a 3b04 str.w r3, [sl], #4
  15204. 8006a70: d82b bhi.n 8006aca <__multiply+0x11e>
  15205. 8006a72: f8cc 8004 str.w r8, [ip, #4]
  15206. 8006a76: 9b01 ldr r3, [sp, #4]
  15207. 8006a78: 3204 adds r2, #4
  15208. 8006a7a: f8b3 a002 ldrh.w sl, [r3, #2]
  15209. 8006a7e: f1ba 0f00 cmp.w sl, #0
  15210. 8006a82: d020 beq.n 8006ac6 <__multiply+0x11a>
  15211. 8006a84: 4689 mov r9, r1
  15212. 8006a86: 46a8 mov r8, r5
  15213. 8006a88: f04f 0b00 mov.w fp, #0
  15214. 8006a8c: 682b ldr r3, [r5, #0]
  15215. 8006a8e: f8b9 c000 ldrh.w ip, [r9]
  15216. 8006a92: f8b8 4002 ldrh.w r4, [r8, #2]
  15217. 8006a96: b29b uxth r3, r3
  15218. 8006a98: fb0a 440c mla r4, sl, ip, r4
  15219. 8006a9c: 46c4 mov ip, r8
  15220. 8006a9e: 445c add r4, fp
  15221. 8006aa0: ea43 4304 orr.w r3, r3, r4, lsl #16
  15222. 8006aa4: f84c 3b04 str.w r3, [ip], #4
  15223. 8006aa8: f859 3b04 ldr.w r3, [r9], #4
  15224. 8006aac: f8b8 b004 ldrh.w fp, [r8, #4]
  15225. 8006ab0: 0c1b lsrs r3, r3, #16
  15226. 8006ab2: fb0a b303 mla r3, sl, r3, fp
  15227. 8006ab6: 454f cmp r7, r9
  15228. 8006ab8: eb03 4314 add.w r3, r3, r4, lsr #16
  15229. 8006abc: ea4f 4b13 mov.w fp, r3, lsr #16
  15230. 8006ac0: d805 bhi.n 8006ace <__multiply+0x122>
  15231. 8006ac2: f8c8 3004 str.w r3, [r8, #4]
  15232. 8006ac6: 3504 adds r5, #4
  15233. 8006ac8: e79b b.n 8006a02 <__multiply+0x56>
  15234. 8006aca: 46d4 mov ip, sl
  15235. 8006acc: e7b3 b.n 8006a36 <__multiply+0x8a>
  15236. 8006ace: 46e0 mov r8, ip
  15237. 8006ad0: e7dd b.n 8006a8e <__multiply+0xe2>
  15238. 8006ad2: 3e01 subs r6, #1
  15239. 8006ad4: e799 b.n 8006a0a <__multiply+0x5e>
  15240. ...
  15241. 08006ad8 <__pow5mult>:
  15242. 8006ad8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  15243. 8006adc: 4615 mov r5, r2
  15244. 8006ade: f012 0203 ands.w r2, r2, #3
  15245. 8006ae2: 4606 mov r6, r0
  15246. 8006ae4: 460f mov r7, r1
  15247. 8006ae6: d007 beq.n 8006af8 <__pow5mult+0x20>
  15248. 8006ae8: 4c21 ldr r4, [pc, #132] ; (8006b70 <__pow5mult+0x98>)
  15249. 8006aea: 3a01 subs r2, #1
  15250. 8006aec: 2300 movs r3, #0
  15251. 8006aee: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  15252. 8006af2: f7ff fec9 bl 8006888 <__multadd>
  15253. 8006af6: 4607 mov r7, r0
  15254. 8006af8: 10ad asrs r5, r5, #2
  15255. 8006afa: d035 beq.n 8006b68 <__pow5mult+0x90>
  15256. 8006afc: 6a74 ldr r4, [r6, #36] ; 0x24
  15257. 8006afe: b93c cbnz r4, 8006b10 <__pow5mult+0x38>
  15258. 8006b00: 2010 movs r0, #16
  15259. 8006b02: f7ff fe55 bl 80067b0 <malloc>
  15260. 8006b06: 6270 str r0, [r6, #36] ; 0x24
  15261. 8006b08: e9c0 4401 strd r4, r4, [r0, #4]
  15262. 8006b0c: 6004 str r4, [r0, #0]
  15263. 8006b0e: 60c4 str r4, [r0, #12]
  15264. 8006b10: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
  15265. 8006b14: f8d8 4008 ldr.w r4, [r8, #8]
  15266. 8006b18: b94c cbnz r4, 8006b2e <__pow5mult+0x56>
  15267. 8006b1a: f240 2171 movw r1, #625 ; 0x271
  15268. 8006b1e: 4630 mov r0, r6
  15269. 8006b20: f7ff ff3b bl 800699a <__i2b>
  15270. 8006b24: 2300 movs r3, #0
  15271. 8006b26: 4604 mov r4, r0
  15272. 8006b28: f8c8 0008 str.w r0, [r8, #8]
  15273. 8006b2c: 6003 str r3, [r0, #0]
  15274. 8006b2e: f04f 0800 mov.w r8, #0
  15275. 8006b32: 07eb lsls r3, r5, #31
  15276. 8006b34: d50a bpl.n 8006b4c <__pow5mult+0x74>
  15277. 8006b36: 4639 mov r1, r7
  15278. 8006b38: 4622 mov r2, r4
  15279. 8006b3a: 4630 mov r0, r6
  15280. 8006b3c: f7ff ff36 bl 80069ac <__multiply>
  15281. 8006b40: 4681 mov r9, r0
  15282. 8006b42: 4639 mov r1, r7
  15283. 8006b44: 4630 mov r0, r6
  15284. 8006b46: f7ff fe88 bl 800685a <_Bfree>
  15285. 8006b4a: 464f mov r7, r9
  15286. 8006b4c: 106d asrs r5, r5, #1
  15287. 8006b4e: d00b beq.n 8006b68 <__pow5mult+0x90>
  15288. 8006b50: 6820 ldr r0, [r4, #0]
  15289. 8006b52: b938 cbnz r0, 8006b64 <__pow5mult+0x8c>
  15290. 8006b54: 4622 mov r2, r4
  15291. 8006b56: 4621 mov r1, r4
  15292. 8006b58: 4630 mov r0, r6
  15293. 8006b5a: f7ff ff27 bl 80069ac <__multiply>
  15294. 8006b5e: 6020 str r0, [r4, #0]
  15295. 8006b60: f8c0 8000 str.w r8, [r0]
  15296. 8006b64: 4604 mov r4, r0
  15297. 8006b66: e7e4 b.n 8006b32 <__pow5mult+0x5a>
  15298. 8006b68: 4638 mov r0, r7
  15299. 8006b6a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  15300. 8006b6e: bf00 nop
  15301. 8006b70: 080075e0 .word 0x080075e0
  15302. 08006b74 <__lshift>:
  15303. 8006b74: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  15304. 8006b78: 460c mov r4, r1
  15305. 8006b7a: 4607 mov r7, r0
  15306. 8006b7c: 4616 mov r6, r2
  15307. 8006b7e: 6923 ldr r3, [r4, #16]
  15308. 8006b80: ea4f 1a62 mov.w sl, r2, asr #5
  15309. 8006b84: eb0a 0903 add.w r9, sl, r3
  15310. 8006b88: 6849 ldr r1, [r1, #4]
  15311. 8006b8a: 68a3 ldr r3, [r4, #8]
  15312. 8006b8c: f109 0501 add.w r5, r9, #1
  15313. 8006b90: 42ab cmp r3, r5
  15314. 8006b92: db32 blt.n 8006bfa <__lshift+0x86>
  15315. 8006b94: 4638 mov r0, r7
  15316. 8006b96: f7ff fe2c bl 80067f2 <_Balloc>
  15317. 8006b9a: 2300 movs r3, #0
  15318. 8006b9c: 4680 mov r8, r0
  15319. 8006b9e: 461a mov r2, r3
  15320. 8006ba0: f100 0114 add.w r1, r0, #20
  15321. 8006ba4: 4553 cmp r3, sl
  15322. 8006ba6: db2b blt.n 8006c00 <__lshift+0x8c>
  15323. 8006ba8: 6920 ldr r0, [r4, #16]
  15324. 8006baa: ea2a 7aea bic.w sl, sl, sl, asr #31
  15325. 8006bae: f104 0314 add.w r3, r4, #20
  15326. 8006bb2: f016 021f ands.w r2, r6, #31
  15327. 8006bb6: eb01 018a add.w r1, r1, sl, lsl #2
  15328. 8006bba: eb03 0c80 add.w ip, r3, r0, lsl #2
  15329. 8006bbe: d025 beq.n 8006c0c <__lshift+0x98>
  15330. 8006bc0: 2000 movs r0, #0
  15331. 8006bc2: f1c2 0e20 rsb lr, r2, #32
  15332. 8006bc6: 468a mov sl, r1
  15333. 8006bc8: 681e ldr r6, [r3, #0]
  15334. 8006bca: 4096 lsls r6, r2
  15335. 8006bcc: 4330 orrs r0, r6
  15336. 8006bce: f84a 0b04 str.w r0, [sl], #4
  15337. 8006bd2: f853 0b04 ldr.w r0, [r3], #4
  15338. 8006bd6: 459c cmp ip, r3
  15339. 8006bd8: fa20 f00e lsr.w r0, r0, lr
  15340. 8006bdc: d814 bhi.n 8006c08 <__lshift+0x94>
  15341. 8006bde: 6048 str r0, [r1, #4]
  15342. 8006be0: b108 cbz r0, 8006be6 <__lshift+0x72>
  15343. 8006be2: f109 0502 add.w r5, r9, #2
  15344. 8006be6: 3d01 subs r5, #1
  15345. 8006be8: 4638 mov r0, r7
  15346. 8006bea: f8c8 5010 str.w r5, [r8, #16]
  15347. 8006bee: 4621 mov r1, r4
  15348. 8006bf0: f7ff fe33 bl 800685a <_Bfree>
  15349. 8006bf4: 4640 mov r0, r8
  15350. 8006bf6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  15351. 8006bfa: 3101 adds r1, #1
  15352. 8006bfc: 005b lsls r3, r3, #1
  15353. 8006bfe: e7c7 b.n 8006b90 <__lshift+0x1c>
  15354. 8006c00: f841 2023 str.w r2, [r1, r3, lsl #2]
  15355. 8006c04: 3301 adds r3, #1
  15356. 8006c06: e7cd b.n 8006ba4 <__lshift+0x30>
  15357. 8006c08: 4651 mov r1, sl
  15358. 8006c0a: e7dc b.n 8006bc6 <__lshift+0x52>
  15359. 8006c0c: 3904 subs r1, #4
  15360. 8006c0e: f853 2b04 ldr.w r2, [r3], #4
  15361. 8006c12: 459c cmp ip, r3
  15362. 8006c14: f841 2f04 str.w r2, [r1, #4]!
  15363. 8006c18: d8f9 bhi.n 8006c0e <__lshift+0x9a>
  15364. 8006c1a: e7e4 b.n 8006be6 <__lshift+0x72>
  15365. 08006c1c <__mcmp>:
  15366. 8006c1c: 6903 ldr r3, [r0, #16]
  15367. 8006c1e: 690a ldr r2, [r1, #16]
  15368. 8006c20: b530 push {r4, r5, lr}
  15369. 8006c22: 1a9b subs r3, r3, r2
  15370. 8006c24: d10c bne.n 8006c40 <__mcmp+0x24>
  15371. 8006c26: 0092 lsls r2, r2, #2
  15372. 8006c28: 3014 adds r0, #20
  15373. 8006c2a: 3114 adds r1, #20
  15374. 8006c2c: 1884 adds r4, r0, r2
  15375. 8006c2e: 4411 add r1, r2
  15376. 8006c30: f854 5d04 ldr.w r5, [r4, #-4]!
  15377. 8006c34: f851 2d04 ldr.w r2, [r1, #-4]!
  15378. 8006c38: 4295 cmp r5, r2
  15379. 8006c3a: d003 beq.n 8006c44 <__mcmp+0x28>
  15380. 8006c3c: d305 bcc.n 8006c4a <__mcmp+0x2e>
  15381. 8006c3e: 2301 movs r3, #1
  15382. 8006c40: 4618 mov r0, r3
  15383. 8006c42: bd30 pop {r4, r5, pc}
  15384. 8006c44: 42a0 cmp r0, r4
  15385. 8006c46: d3f3 bcc.n 8006c30 <__mcmp+0x14>
  15386. 8006c48: e7fa b.n 8006c40 <__mcmp+0x24>
  15387. 8006c4a: f04f 33ff mov.w r3, #4294967295
  15388. 8006c4e: e7f7 b.n 8006c40 <__mcmp+0x24>
  15389. 08006c50 <__mdiff>:
  15390. 8006c50: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  15391. 8006c54: 460d mov r5, r1
  15392. 8006c56: 4607 mov r7, r0
  15393. 8006c58: 4611 mov r1, r2
  15394. 8006c5a: 4628 mov r0, r5
  15395. 8006c5c: 4614 mov r4, r2
  15396. 8006c5e: f7ff ffdd bl 8006c1c <__mcmp>
  15397. 8006c62: 1e06 subs r6, r0, #0
  15398. 8006c64: d108 bne.n 8006c78 <__mdiff+0x28>
  15399. 8006c66: 4631 mov r1, r6
  15400. 8006c68: 4638 mov r0, r7
  15401. 8006c6a: f7ff fdc2 bl 80067f2 <_Balloc>
  15402. 8006c6e: 2301 movs r3, #1
  15403. 8006c70: e9c0 3604 strd r3, r6, [r0, #16]
  15404. 8006c74: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  15405. 8006c78: bfa4 itt ge
  15406. 8006c7a: 4623 movge r3, r4
  15407. 8006c7c: 462c movge r4, r5
  15408. 8006c7e: 4638 mov r0, r7
  15409. 8006c80: 6861 ldr r1, [r4, #4]
  15410. 8006c82: bfa6 itte ge
  15411. 8006c84: 461d movge r5, r3
  15412. 8006c86: 2600 movge r6, #0
  15413. 8006c88: 2601 movlt r6, #1
  15414. 8006c8a: f7ff fdb2 bl 80067f2 <_Balloc>
  15415. 8006c8e: f04f 0e00 mov.w lr, #0
  15416. 8006c92: 60c6 str r6, [r0, #12]
  15417. 8006c94: 692b ldr r3, [r5, #16]
  15418. 8006c96: 6926 ldr r6, [r4, #16]
  15419. 8006c98: f104 0214 add.w r2, r4, #20
  15420. 8006c9c: f105 0914 add.w r9, r5, #20
  15421. 8006ca0: eb02 0786 add.w r7, r2, r6, lsl #2
  15422. 8006ca4: eb09 0883 add.w r8, r9, r3, lsl #2
  15423. 8006ca8: f100 0114 add.w r1, r0, #20
  15424. 8006cac: f852 ab04 ldr.w sl, [r2], #4
  15425. 8006cb0: f859 5b04 ldr.w r5, [r9], #4
  15426. 8006cb4: fa1f f38a uxth.w r3, sl
  15427. 8006cb8: 4473 add r3, lr
  15428. 8006cba: b2ac uxth r4, r5
  15429. 8006cbc: 1b1b subs r3, r3, r4
  15430. 8006cbe: 0c2c lsrs r4, r5, #16
  15431. 8006cc0: ebc4 441a rsb r4, r4, sl, lsr #16
  15432. 8006cc4: eb04 4423 add.w r4, r4, r3, asr #16
  15433. 8006cc8: b29b uxth r3, r3
  15434. 8006cca: ea4f 4e24 mov.w lr, r4, asr #16
  15435. 8006cce: 45c8 cmp r8, r9
  15436. 8006cd0: ea43 4404 orr.w r4, r3, r4, lsl #16
  15437. 8006cd4: 4694 mov ip, r2
  15438. 8006cd6: f841 4b04 str.w r4, [r1], #4
  15439. 8006cda: d8e7 bhi.n 8006cac <__mdiff+0x5c>
  15440. 8006cdc: 45bc cmp ip, r7
  15441. 8006cde: d304 bcc.n 8006cea <__mdiff+0x9a>
  15442. 8006ce0: f851 3d04 ldr.w r3, [r1, #-4]!
  15443. 8006ce4: b183 cbz r3, 8006d08 <__mdiff+0xb8>
  15444. 8006ce6: 6106 str r6, [r0, #16]
  15445. 8006ce8: e7c4 b.n 8006c74 <__mdiff+0x24>
  15446. 8006cea: f85c 4b04 ldr.w r4, [ip], #4
  15447. 8006cee: b2a2 uxth r2, r4
  15448. 8006cf0: 4472 add r2, lr
  15449. 8006cf2: 1413 asrs r3, r2, #16
  15450. 8006cf4: eb03 4314 add.w r3, r3, r4, lsr #16
  15451. 8006cf8: b292 uxth r2, r2
  15452. 8006cfa: ea42 4203 orr.w r2, r2, r3, lsl #16
  15453. 8006cfe: ea4f 4e23 mov.w lr, r3, asr #16
  15454. 8006d02: f841 2b04 str.w r2, [r1], #4
  15455. 8006d06: e7e9 b.n 8006cdc <__mdiff+0x8c>
  15456. 8006d08: 3e01 subs r6, #1
  15457. 8006d0a: e7e9 b.n 8006ce0 <__mdiff+0x90>
  15458. 08006d0c <__d2b>:
  15459. 8006d0c: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  15460. 8006d10: 461c mov r4, r3
  15461. 8006d12: e9dd 6508 ldrd r6, r5, [sp, #32]
  15462. 8006d16: 2101 movs r1, #1
  15463. 8006d18: 4690 mov r8, r2
  15464. 8006d1a: f7ff fd6a bl 80067f2 <_Balloc>
  15465. 8006d1e: f3c4 0213 ubfx r2, r4, #0, #20
  15466. 8006d22: f3c4 540a ubfx r4, r4, #20, #11
  15467. 8006d26: 4607 mov r7, r0
  15468. 8006d28: bb34 cbnz r4, 8006d78 <__d2b+0x6c>
  15469. 8006d2a: 9201 str r2, [sp, #4]
  15470. 8006d2c: f1b8 0200 subs.w r2, r8, #0
  15471. 8006d30: d027 beq.n 8006d82 <__d2b+0x76>
  15472. 8006d32: a802 add r0, sp, #8
  15473. 8006d34: f840 2d08 str.w r2, [r0, #-8]!
  15474. 8006d38: f7ff fe00 bl 800693c <__lo0bits>
  15475. 8006d3c: 9900 ldr r1, [sp, #0]
  15476. 8006d3e: b1f0 cbz r0, 8006d7e <__d2b+0x72>
  15477. 8006d40: 9a01 ldr r2, [sp, #4]
  15478. 8006d42: f1c0 0320 rsb r3, r0, #32
  15479. 8006d46: fa02 f303 lsl.w r3, r2, r3
  15480. 8006d4a: 430b orrs r3, r1
  15481. 8006d4c: 40c2 lsrs r2, r0
  15482. 8006d4e: 617b str r3, [r7, #20]
  15483. 8006d50: 9201 str r2, [sp, #4]
  15484. 8006d52: 9b01 ldr r3, [sp, #4]
  15485. 8006d54: 2b00 cmp r3, #0
  15486. 8006d56: bf14 ite ne
  15487. 8006d58: 2102 movne r1, #2
  15488. 8006d5a: 2101 moveq r1, #1
  15489. 8006d5c: 61bb str r3, [r7, #24]
  15490. 8006d5e: 6139 str r1, [r7, #16]
  15491. 8006d60: b1c4 cbz r4, 8006d94 <__d2b+0x88>
  15492. 8006d62: f2a4 4433 subw r4, r4, #1075 ; 0x433
  15493. 8006d66: 4404 add r4, r0
  15494. 8006d68: 6034 str r4, [r6, #0]
  15495. 8006d6a: f1c0 0035 rsb r0, r0, #53 ; 0x35
  15496. 8006d6e: 6028 str r0, [r5, #0]
  15497. 8006d70: 4638 mov r0, r7
  15498. 8006d72: b002 add sp, #8
  15499. 8006d74: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  15500. 8006d78: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  15501. 8006d7c: e7d5 b.n 8006d2a <__d2b+0x1e>
  15502. 8006d7e: 6179 str r1, [r7, #20]
  15503. 8006d80: e7e7 b.n 8006d52 <__d2b+0x46>
  15504. 8006d82: a801 add r0, sp, #4
  15505. 8006d84: f7ff fdda bl 800693c <__lo0bits>
  15506. 8006d88: 2101 movs r1, #1
  15507. 8006d8a: 9b01 ldr r3, [sp, #4]
  15508. 8006d8c: 6139 str r1, [r7, #16]
  15509. 8006d8e: 617b str r3, [r7, #20]
  15510. 8006d90: 3020 adds r0, #32
  15511. 8006d92: e7e5 b.n 8006d60 <__d2b+0x54>
  15512. 8006d94: f2a0 4032 subw r0, r0, #1074 ; 0x432
  15513. 8006d98: eb07 0381 add.w r3, r7, r1, lsl #2
  15514. 8006d9c: 6030 str r0, [r6, #0]
  15515. 8006d9e: 6918 ldr r0, [r3, #16]
  15516. 8006da0: f7ff fdad bl 80068fe <__hi0bits>
  15517. 8006da4: ebc0 1041 rsb r0, r0, r1, lsl #5
  15518. 8006da8: e7e1 b.n 8006d6e <__d2b+0x62>
  15519. 08006daa <_calloc_r>:
  15520. 8006daa: b538 push {r3, r4, r5, lr}
  15521. 8006dac: fb02 f401 mul.w r4, r2, r1
  15522. 8006db0: 4621 mov r1, r4
  15523. 8006db2: f000 f855 bl 8006e60 <_malloc_r>
  15524. 8006db6: 4605 mov r5, r0
  15525. 8006db8: b118 cbz r0, 8006dc2 <_calloc_r+0x18>
  15526. 8006dba: 4622 mov r2, r4
  15527. 8006dbc: 2100 movs r1, #0
  15528. 8006dbe: f7fd fe7d bl 8004abc <memset>
  15529. 8006dc2: 4628 mov r0, r5
  15530. 8006dc4: bd38 pop {r3, r4, r5, pc}
  15531. ...
  15532. 08006dc8 <_free_r>:
  15533. 8006dc8: b538 push {r3, r4, r5, lr}
  15534. 8006dca: 4605 mov r5, r0
  15535. 8006dcc: 2900 cmp r1, #0
  15536. 8006dce: d043 beq.n 8006e58 <_free_r+0x90>
  15537. 8006dd0: f851 3c04 ldr.w r3, [r1, #-4]
  15538. 8006dd4: 1f0c subs r4, r1, #4
  15539. 8006dd6: 2b00 cmp r3, #0
  15540. 8006dd8: bfb8 it lt
  15541. 8006dda: 18e4 addlt r4, r4, r3
  15542. 8006ddc: f000 fa94 bl 8007308 <__malloc_lock>
  15543. 8006de0: 4a1e ldr r2, [pc, #120] ; (8006e5c <_free_r+0x94>)
  15544. 8006de2: 6813 ldr r3, [r2, #0]
  15545. 8006de4: 4610 mov r0, r2
  15546. 8006de6: b933 cbnz r3, 8006df6 <_free_r+0x2e>
  15547. 8006de8: 6063 str r3, [r4, #4]
  15548. 8006dea: 6014 str r4, [r2, #0]
  15549. 8006dec: 4628 mov r0, r5
  15550. 8006dee: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  15551. 8006df2: f000 ba8a b.w 800730a <__malloc_unlock>
  15552. 8006df6: 42a3 cmp r3, r4
  15553. 8006df8: d90b bls.n 8006e12 <_free_r+0x4a>
  15554. 8006dfa: 6821 ldr r1, [r4, #0]
  15555. 8006dfc: 1862 adds r2, r4, r1
  15556. 8006dfe: 4293 cmp r3, r2
  15557. 8006e00: bf01 itttt eq
  15558. 8006e02: 681a ldreq r2, [r3, #0]
  15559. 8006e04: 685b ldreq r3, [r3, #4]
  15560. 8006e06: 1852 addeq r2, r2, r1
  15561. 8006e08: 6022 streq r2, [r4, #0]
  15562. 8006e0a: 6063 str r3, [r4, #4]
  15563. 8006e0c: 6004 str r4, [r0, #0]
  15564. 8006e0e: e7ed b.n 8006dec <_free_r+0x24>
  15565. 8006e10: 4613 mov r3, r2
  15566. 8006e12: 685a ldr r2, [r3, #4]
  15567. 8006e14: b10a cbz r2, 8006e1a <_free_r+0x52>
  15568. 8006e16: 42a2 cmp r2, r4
  15569. 8006e18: d9fa bls.n 8006e10 <_free_r+0x48>
  15570. 8006e1a: 6819 ldr r1, [r3, #0]
  15571. 8006e1c: 1858 adds r0, r3, r1
  15572. 8006e1e: 42a0 cmp r0, r4
  15573. 8006e20: d10b bne.n 8006e3a <_free_r+0x72>
  15574. 8006e22: 6820 ldr r0, [r4, #0]
  15575. 8006e24: 4401 add r1, r0
  15576. 8006e26: 1858 adds r0, r3, r1
  15577. 8006e28: 4282 cmp r2, r0
  15578. 8006e2a: 6019 str r1, [r3, #0]
  15579. 8006e2c: d1de bne.n 8006dec <_free_r+0x24>
  15580. 8006e2e: 6810 ldr r0, [r2, #0]
  15581. 8006e30: 6852 ldr r2, [r2, #4]
  15582. 8006e32: 4401 add r1, r0
  15583. 8006e34: 6019 str r1, [r3, #0]
  15584. 8006e36: 605a str r2, [r3, #4]
  15585. 8006e38: e7d8 b.n 8006dec <_free_r+0x24>
  15586. 8006e3a: d902 bls.n 8006e42 <_free_r+0x7a>
  15587. 8006e3c: 230c movs r3, #12
  15588. 8006e3e: 602b str r3, [r5, #0]
  15589. 8006e40: e7d4 b.n 8006dec <_free_r+0x24>
  15590. 8006e42: 6820 ldr r0, [r4, #0]
  15591. 8006e44: 1821 adds r1, r4, r0
  15592. 8006e46: 428a cmp r2, r1
  15593. 8006e48: bf01 itttt eq
  15594. 8006e4a: 6811 ldreq r1, [r2, #0]
  15595. 8006e4c: 6852 ldreq r2, [r2, #4]
  15596. 8006e4e: 1809 addeq r1, r1, r0
  15597. 8006e50: 6021 streq r1, [r4, #0]
  15598. 8006e52: 6062 str r2, [r4, #4]
  15599. 8006e54: 605c str r4, [r3, #4]
  15600. 8006e56: e7c9 b.n 8006dec <_free_r+0x24>
  15601. 8006e58: bd38 pop {r3, r4, r5, pc}
  15602. 8006e5a: bf00 nop
  15603. 8006e5c: 2000020c .word 0x2000020c
  15604. 08006e60 <_malloc_r>:
  15605. 8006e60: b570 push {r4, r5, r6, lr}
  15606. 8006e62: 1ccd adds r5, r1, #3
  15607. 8006e64: f025 0503 bic.w r5, r5, #3
  15608. 8006e68: 3508 adds r5, #8
  15609. 8006e6a: 2d0c cmp r5, #12
  15610. 8006e6c: bf38 it cc
  15611. 8006e6e: 250c movcc r5, #12
  15612. 8006e70: 2d00 cmp r5, #0
  15613. 8006e72: 4606 mov r6, r0
  15614. 8006e74: db01 blt.n 8006e7a <_malloc_r+0x1a>
  15615. 8006e76: 42a9 cmp r1, r5
  15616. 8006e78: d903 bls.n 8006e82 <_malloc_r+0x22>
  15617. 8006e7a: 230c movs r3, #12
  15618. 8006e7c: 6033 str r3, [r6, #0]
  15619. 8006e7e: 2000 movs r0, #0
  15620. 8006e80: bd70 pop {r4, r5, r6, pc}
  15621. 8006e82: f000 fa41 bl 8007308 <__malloc_lock>
  15622. 8006e86: 4a21 ldr r2, [pc, #132] ; (8006f0c <_malloc_r+0xac>)
  15623. 8006e88: 6814 ldr r4, [r2, #0]
  15624. 8006e8a: 4621 mov r1, r4
  15625. 8006e8c: b991 cbnz r1, 8006eb4 <_malloc_r+0x54>
  15626. 8006e8e: 4c20 ldr r4, [pc, #128] ; (8006f10 <_malloc_r+0xb0>)
  15627. 8006e90: 6823 ldr r3, [r4, #0]
  15628. 8006e92: b91b cbnz r3, 8006e9c <_malloc_r+0x3c>
  15629. 8006e94: 4630 mov r0, r6
  15630. 8006e96: f000 f97b bl 8007190 <_sbrk_r>
  15631. 8006e9a: 6020 str r0, [r4, #0]
  15632. 8006e9c: 4629 mov r1, r5
  15633. 8006e9e: 4630 mov r0, r6
  15634. 8006ea0: f000 f976 bl 8007190 <_sbrk_r>
  15635. 8006ea4: 1c43 adds r3, r0, #1
  15636. 8006ea6: d124 bne.n 8006ef2 <_malloc_r+0x92>
  15637. 8006ea8: 230c movs r3, #12
  15638. 8006eaa: 4630 mov r0, r6
  15639. 8006eac: 6033 str r3, [r6, #0]
  15640. 8006eae: f000 fa2c bl 800730a <__malloc_unlock>
  15641. 8006eb2: e7e4 b.n 8006e7e <_malloc_r+0x1e>
  15642. 8006eb4: 680b ldr r3, [r1, #0]
  15643. 8006eb6: 1b5b subs r3, r3, r5
  15644. 8006eb8: d418 bmi.n 8006eec <_malloc_r+0x8c>
  15645. 8006eba: 2b0b cmp r3, #11
  15646. 8006ebc: d90f bls.n 8006ede <_malloc_r+0x7e>
  15647. 8006ebe: 600b str r3, [r1, #0]
  15648. 8006ec0: 18cc adds r4, r1, r3
  15649. 8006ec2: 50cd str r5, [r1, r3]
  15650. 8006ec4: 4630 mov r0, r6
  15651. 8006ec6: f000 fa20 bl 800730a <__malloc_unlock>
  15652. 8006eca: f104 000b add.w r0, r4, #11
  15653. 8006ece: 1d23 adds r3, r4, #4
  15654. 8006ed0: f020 0007 bic.w r0, r0, #7
  15655. 8006ed4: 1ac3 subs r3, r0, r3
  15656. 8006ed6: d0d3 beq.n 8006e80 <_malloc_r+0x20>
  15657. 8006ed8: 425a negs r2, r3
  15658. 8006eda: 50e2 str r2, [r4, r3]
  15659. 8006edc: e7d0 b.n 8006e80 <_malloc_r+0x20>
  15660. 8006ede: 684b ldr r3, [r1, #4]
  15661. 8006ee0: 428c cmp r4, r1
  15662. 8006ee2: bf16 itet ne
  15663. 8006ee4: 6063 strne r3, [r4, #4]
  15664. 8006ee6: 6013 streq r3, [r2, #0]
  15665. 8006ee8: 460c movne r4, r1
  15666. 8006eea: e7eb b.n 8006ec4 <_malloc_r+0x64>
  15667. 8006eec: 460c mov r4, r1
  15668. 8006eee: 6849 ldr r1, [r1, #4]
  15669. 8006ef0: e7cc b.n 8006e8c <_malloc_r+0x2c>
  15670. 8006ef2: 1cc4 adds r4, r0, #3
  15671. 8006ef4: f024 0403 bic.w r4, r4, #3
  15672. 8006ef8: 42a0 cmp r0, r4
  15673. 8006efa: d005 beq.n 8006f08 <_malloc_r+0xa8>
  15674. 8006efc: 1a21 subs r1, r4, r0
  15675. 8006efe: 4630 mov r0, r6
  15676. 8006f00: f000 f946 bl 8007190 <_sbrk_r>
  15677. 8006f04: 3001 adds r0, #1
  15678. 8006f06: d0cf beq.n 8006ea8 <_malloc_r+0x48>
  15679. 8006f08: 6025 str r5, [r4, #0]
  15680. 8006f0a: e7db b.n 8006ec4 <_malloc_r+0x64>
  15681. 8006f0c: 2000020c .word 0x2000020c
  15682. 8006f10: 20000210 .word 0x20000210
  15683. 08006f14 <__sfputc_r>:
  15684. 8006f14: 6893 ldr r3, [r2, #8]
  15685. 8006f16: b410 push {r4}
  15686. 8006f18: 3b01 subs r3, #1
  15687. 8006f1a: 2b00 cmp r3, #0
  15688. 8006f1c: 6093 str r3, [r2, #8]
  15689. 8006f1e: da07 bge.n 8006f30 <__sfputc_r+0x1c>
  15690. 8006f20: 6994 ldr r4, [r2, #24]
  15691. 8006f22: 42a3 cmp r3, r4
  15692. 8006f24: db01 blt.n 8006f2a <__sfputc_r+0x16>
  15693. 8006f26: 290a cmp r1, #10
  15694. 8006f28: d102 bne.n 8006f30 <__sfputc_r+0x1c>
  15695. 8006f2a: bc10 pop {r4}
  15696. 8006f2c: f7fe bb50 b.w 80055d0 <__swbuf_r>
  15697. 8006f30: 6813 ldr r3, [r2, #0]
  15698. 8006f32: 1c58 adds r0, r3, #1
  15699. 8006f34: 6010 str r0, [r2, #0]
  15700. 8006f36: 7019 strb r1, [r3, #0]
  15701. 8006f38: 4608 mov r0, r1
  15702. 8006f3a: bc10 pop {r4}
  15703. 8006f3c: 4770 bx lr
  15704. 08006f3e <__sfputs_r>:
  15705. 8006f3e: b5f8 push {r3, r4, r5, r6, r7, lr}
  15706. 8006f40: 4606 mov r6, r0
  15707. 8006f42: 460f mov r7, r1
  15708. 8006f44: 4614 mov r4, r2
  15709. 8006f46: 18d5 adds r5, r2, r3
  15710. 8006f48: 42ac cmp r4, r5
  15711. 8006f4a: d101 bne.n 8006f50 <__sfputs_r+0x12>
  15712. 8006f4c: 2000 movs r0, #0
  15713. 8006f4e: e007 b.n 8006f60 <__sfputs_r+0x22>
  15714. 8006f50: 463a mov r2, r7
  15715. 8006f52: f814 1b01 ldrb.w r1, [r4], #1
  15716. 8006f56: 4630 mov r0, r6
  15717. 8006f58: f7ff ffdc bl 8006f14 <__sfputc_r>
  15718. 8006f5c: 1c43 adds r3, r0, #1
  15719. 8006f5e: d1f3 bne.n 8006f48 <__sfputs_r+0xa>
  15720. 8006f60: bdf8 pop {r3, r4, r5, r6, r7, pc}
  15721. ...
  15722. 08006f64 <_vfiprintf_r>:
  15723. 8006f64: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  15724. 8006f68: 460c mov r4, r1
  15725. 8006f6a: b09d sub sp, #116 ; 0x74
  15726. 8006f6c: 4617 mov r7, r2
  15727. 8006f6e: 461d mov r5, r3
  15728. 8006f70: 4606 mov r6, r0
  15729. 8006f72: b118 cbz r0, 8006f7c <_vfiprintf_r+0x18>
  15730. 8006f74: 6983 ldr r3, [r0, #24]
  15731. 8006f76: b90b cbnz r3, 8006f7c <_vfiprintf_r+0x18>
  15732. 8006f78: f7ff fb1e bl 80065b8 <__sinit>
  15733. 8006f7c: 4b7c ldr r3, [pc, #496] ; (8007170 <_vfiprintf_r+0x20c>)
  15734. 8006f7e: 429c cmp r4, r3
  15735. 8006f80: d158 bne.n 8007034 <_vfiprintf_r+0xd0>
  15736. 8006f82: 6874 ldr r4, [r6, #4]
  15737. 8006f84: 89a3 ldrh r3, [r4, #12]
  15738. 8006f86: 0718 lsls r0, r3, #28
  15739. 8006f88: d55e bpl.n 8007048 <_vfiprintf_r+0xe4>
  15740. 8006f8a: 6923 ldr r3, [r4, #16]
  15741. 8006f8c: 2b00 cmp r3, #0
  15742. 8006f8e: d05b beq.n 8007048 <_vfiprintf_r+0xe4>
  15743. 8006f90: 2300 movs r3, #0
  15744. 8006f92: 9309 str r3, [sp, #36] ; 0x24
  15745. 8006f94: 2320 movs r3, #32
  15746. 8006f96: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  15747. 8006f9a: 2330 movs r3, #48 ; 0x30
  15748. 8006f9c: f04f 0b01 mov.w fp, #1
  15749. 8006fa0: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  15750. 8006fa4: 9503 str r5, [sp, #12]
  15751. 8006fa6: 46b8 mov r8, r7
  15752. 8006fa8: 4645 mov r5, r8
  15753. 8006faa: f815 3b01 ldrb.w r3, [r5], #1
  15754. 8006fae: b10b cbz r3, 8006fb4 <_vfiprintf_r+0x50>
  15755. 8006fb0: 2b25 cmp r3, #37 ; 0x25
  15756. 8006fb2: d154 bne.n 800705e <_vfiprintf_r+0xfa>
  15757. 8006fb4: ebb8 0a07 subs.w sl, r8, r7
  15758. 8006fb8: d00b beq.n 8006fd2 <_vfiprintf_r+0x6e>
  15759. 8006fba: 4653 mov r3, sl
  15760. 8006fbc: 463a mov r2, r7
  15761. 8006fbe: 4621 mov r1, r4
  15762. 8006fc0: 4630 mov r0, r6
  15763. 8006fc2: f7ff ffbc bl 8006f3e <__sfputs_r>
  15764. 8006fc6: 3001 adds r0, #1
  15765. 8006fc8: f000 80c2 beq.w 8007150 <_vfiprintf_r+0x1ec>
  15766. 8006fcc: 9b09 ldr r3, [sp, #36] ; 0x24
  15767. 8006fce: 4453 add r3, sl
  15768. 8006fd0: 9309 str r3, [sp, #36] ; 0x24
  15769. 8006fd2: f898 3000 ldrb.w r3, [r8]
  15770. 8006fd6: 2b00 cmp r3, #0
  15771. 8006fd8: f000 80ba beq.w 8007150 <_vfiprintf_r+0x1ec>
  15772. 8006fdc: 2300 movs r3, #0
  15773. 8006fde: f04f 32ff mov.w r2, #4294967295
  15774. 8006fe2: e9cd 2305 strd r2, r3, [sp, #20]
  15775. 8006fe6: 9304 str r3, [sp, #16]
  15776. 8006fe8: 9307 str r3, [sp, #28]
  15777. 8006fea: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  15778. 8006fee: 931a str r3, [sp, #104] ; 0x68
  15779. 8006ff0: 46a8 mov r8, r5
  15780. 8006ff2: 2205 movs r2, #5
  15781. 8006ff4: f818 1b01 ldrb.w r1, [r8], #1
  15782. 8006ff8: 485e ldr r0, [pc, #376] ; (8007174 <_vfiprintf_r+0x210>)
  15783. 8006ffa: f7ff fbe1 bl 80067c0 <memchr>
  15784. 8006ffe: 9b04 ldr r3, [sp, #16]
  15785. 8007000: bb78 cbnz r0, 8007062 <_vfiprintf_r+0xfe>
  15786. 8007002: 06d9 lsls r1, r3, #27
  15787. 8007004: bf44 itt mi
  15788. 8007006: 2220 movmi r2, #32
  15789. 8007008: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  15790. 800700c: 071a lsls r2, r3, #28
  15791. 800700e: bf44 itt mi
  15792. 8007010: 222b movmi r2, #43 ; 0x2b
  15793. 8007012: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  15794. 8007016: 782a ldrb r2, [r5, #0]
  15795. 8007018: 2a2a cmp r2, #42 ; 0x2a
  15796. 800701a: d02a beq.n 8007072 <_vfiprintf_r+0x10e>
  15797. 800701c: 46a8 mov r8, r5
  15798. 800701e: 2000 movs r0, #0
  15799. 8007020: 250a movs r5, #10
  15800. 8007022: 9a07 ldr r2, [sp, #28]
  15801. 8007024: 4641 mov r1, r8
  15802. 8007026: f811 3b01 ldrb.w r3, [r1], #1
  15803. 800702a: 3b30 subs r3, #48 ; 0x30
  15804. 800702c: 2b09 cmp r3, #9
  15805. 800702e: d969 bls.n 8007104 <_vfiprintf_r+0x1a0>
  15806. 8007030: b360 cbz r0, 800708c <_vfiprintf_r+0x128>
  15807. 8007032: e024 b.n 800707e <_vfiprintf_r+0x11a>
  15808. 8007034: 4b50 ldr r3, [pc, #320] ; (8007178 <_vfiprintf_r+0x214>)
  15809. 8007036: 429c cmp r4, r3
  15810. 8007038: d101 bne.n 800703e <_vfiprintf_r+0xda>
  15811. 800703a: 68b4 ldr r4, [r6, #8]
  15812. 800703c: e7a2 b.n 8006f84 <_vfiprintf_r+0x20>
  15813. 800703e: 4b4f ldr r3, [pc, #316] ; (800717c <_vfiprintf_r+0x218>)
  15814. 8007040: 429c cmp r4, r3
  15815. 8007042: bf08 it eq
  15816. 8007044: 68f4 ldreq r4, [r6, #12]
  15817. 8007046: e79d b.n 8006f84 <_vfiprintf_r+0x20>
  15818. 8007048: 4621 mov r1, r4
  15819. 800704a: 4630 mov r0, r6
  15820. 800704c: f7fe fb12 bl 8005674 <__swsetup_r>
  15821. 8007050: 2800 cmp r0, #0
  15822. 8007052: d09d beq.n 8006f90 <_vfiprintf_r+0x2c>
  15823. 8007054: f04f 30ff mov.w r0, #4294967295
  15824. 8007058: b01d add sp, #116 ; 0x74
  15825. 800705a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  15826. 800705e: 46a8 mov r8, r5
  15827. 8007060: e7a2 b.n 8006fa8 <_vfiprintf_r+0x44>
  15828. 8007062: 4a44 ldr r2, [pc, #272] ; (8007174 <_vfiprintf_r+0x210>)
  15829. 8007064: 4645 mov r5, r8
  15830. 8007066: 1a80 subs r0, r0, r2
  15831. 8007068: fa0b f000 lsl.w r0, fp, r0
  15832. 800706c: 4318 orrs r0, r3
  15833. 800706e: 9004 str r0, [sp, #16]
  15834. 8007070: e7be b.n 8006ff0 <_vfiprintf_r+0x8c>
  15835. 8007072: 9a03 ldr r2, [sp, #12]
  15836. 8007074: 1d11 adds r1, r2, #4
  15837. 8007076: 6812 ldr r2, [r2, #0]
  15838. 8007078: 9103 str r1, [sp, #12]
  15839. 800707a: 2a00 cmp r2, #0
  15840. 800707c: db01 blt.n 8007082 <_vfiprintf_r+0x11e>
  15841. 800707e: 9207 str r2, [sp, #28]
  15842. 8007080: e004 b.n 800708c <_vfiprintf_r+0x128>
  15843. 8007082: 4252 negs r2, r2
  15844. 8007084: f043 0302 orr.w r3, r3, #2
  15845. 8007088: 9207 str r2, [sp, #28]
  15846. 800708a: 9304 str r3, [sp, #16]
  15847. 800708c: f898 3000 ldrb.w r3, [r8]
  15848. 8007090: 2b2e cmp r3, #46 ; 0x2e
  15849. 8007092: d10e bne.n 80070b2 <_vfiprintf_r+0x14e>
  15850. 8007094: f898 3001 ldrb.w r3, [r8, #1]
  15851. 8007098: 2b2a cmp r3, #42 ; 0x2a
  15852. 800709a: d138 bne.n 800710e <_vfiprintf_r+0x1aa>
  15853. 800709c: 9b03 ldr r3, [sp, #12]
  15854. 800709e: f108 0802 add.w r8, r8, #2
  15855. 80070a2: 1d1a adds r2, r3, #4
  15856. 80070a4: 681b ldr r3, [r3, #0]
  15857. 80070a6: 9203 str r2, [sp, #12]
  15858. 80070a8: 2b00 cmp r3, #0
  15859. 80070aa: bfb8 it lt
  15860. 80070ac: f04f 33ff movlt.w r3, #4294967295
  15861. 80070b0: 9305 str r3, [sp, #20]
  15862. 80070b2: 4d33 ldr r5, [pc, #204] ; (8007180 <_vfiprintf_r+0x21c>)
  15863. 80070b4: 2203 movs r2, #3
  15864. 80070b6: f898 1000 ldrb.w r1, [r8]
  15865. 80070ba: 4628 mov r0, r5
  15866. 80070bc: f7ff fb80 bl 80067c0 <memchr>
  15867. 80070c0: b140 cbz r0, 80070d4 <_vfiprintf_r+0x170>
  15868. 80070c2: 2340 movs r3, #64 ; 0x40
  15869. 80070c4: 1b40 subs r0, r0, r5
  15870. 80070c6: fa03 f000 lsl.w r0, r3, r0
  15871. 80070ca: 9b04 ldr r3, [sp, #16]
  15872. 80070cc: f108 0801 add.w r8, r8, #1
  15873. 80070d0: 4303 orrs r3, r0
  15874. 80070d2: 9304 str r3, [sp, #16]
  15875. 80070d4: f898 1000 ldrb.w r1, [r8]
  15876. 80070d8: 2206 movs r2, #6
  15877. 80070da: 482a ldr r0, [pc, #168] ; (8007184 <_vfiprintf_r+0x220>)
  15878. 80070dc: f108 0701 add.w r7, r8, #1
  15879. 80070e0: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  15880. 80070e4: f7ff fb6c bl 80067c0 <memchr>
  15881. 80070e8: 2800 cmp r0, #0
  15882. 80070ea: d037 beq.n 800715c <_vfiprintf_r+0x1f8>
  15883. 80070ec: 4b26 ldr r3, [pc, #152] ; (8007188 <_vfiprintf_r+0x224>)
  15884. 80070ee: bb1b cbnz r3, 8007138 <_vfiprintf_r+0x1d4>
  15885. 80070f0: 9b03 ldr r3, [sp, #12]
  15886. 80070f2: 3307 adds r3, #7
  15887. 80070f4: f023 0307 bic.w r3, r3, #7
  15888. 80070f8: 3308 adds r3, #8
  15889. 80070fa: 9303 str r3, [sp, #12]
  15890. 80070fc: 9b09 ldr r3, [sp, #36] ; 0x24
  15891. 80070fe: 444b add r3, r9
  15892. 8007100: 9309 str r3, [sp, #36] ; 0x24
  15893. 8007102: e750 b.n 8006fa6 <_vfiprintf_r+0x42>
  15894. 8007104: fb05 3202 mla r2, r5, r2, r3
  15895. 8007108: 2001 movs r0, #1
  15896. 800710a: 4688 mov r8, r1
  15897. 800710c: e78a b.n 8007024 <_vfiprintf_r+0xc0>
  15898. 800710e: 2300 movs r3, #0
  15899. 8007110: 250a movs r5, #10
  15900. 8007112: 4619 mov r1, r3
  15901. 8007114: f108 0801 add.w r8, r8, #1
  15902. 8007118: 9305 str r3, [sp, #20]
  15903. 800711a: 4640 mov r0, r8
  15904. 800711c: f810 2b01 ldrb.w r2, [r0], #1
  15905. 8007120: 3a30 subs r2, #48 ; 0x30
  15906. 8007122: 2a09 cmp r2, #9
  15907. 8007124: d903 bls.n 800712e <_vfiprintf_r+0x1ca>
  15908. 8007126: 2b00 cmp r3, #0
  15909. 8007128: d0c3 beq.n 80070b2 <_vfiprintf_r+0x14e>
  15910. 800712a: 9105 str r1, [sp, #20]
  15911. 800712c: e7c1 b.n 80070b2 <_vfiprintf_r+0x14e>
  15912. 800712e: fb05 2101 mla r1, r5, r1, r2
  15913. 8007132: 2301 movs r3, #1
  15914. 8007134: 4680 mov r8, r0
  15915. 8007136: e7f0 b.n 800711a <_vfiprintf_r+0x1b6>
  15916. 8007138: ab03 add r3, sp, #12
  15917. 800713a: 9300 str r3, [sp, #0]
  15918. 800713c: 4622 mov r2, r4
  15919. 800713e: 4b13 ldr r3, [pc, #76] ; (800718c <_vfiprintf_r+0x228>)
  15920. 8007140: a904 add r1, sp, #16
  15921. 8007142: 4630 mov r0, r6
  15922. 8007144: f7fd fd54 bl 8004bf0 <_printf_float>
  15923. 8007148: f1b0 3fff cmp.w r0, #4294967295
  15924. 800714c: 4681 mov r9, r0
  15925. 800714e: d1d5 bne.n 80070fc <_vfiprintf_r+0x198>
  15926. 8007150: 89a3 ldrh r3, [r4, #12]
  15927. 8007152: 065b lsls r3, r3, #25
  15928. 8007154: f53f af7e bmi.w 8007054 <_vfiprintf_r+0xf0>
  15929. 8007158: 9809 ldr r0, [sp, #36] ; 0x24
  15930. 800715a: e77d b.n 8007058 <_vfiprintf_r+0xf4>
  15931. 800715c: ab03 add r3, sp, #12
  15932. 800715e: 9300 str r3, [sp, #0]
  15933. 8007160: 4622 mov r2, r4
  15934. 8007162: 4b0a ldr r3, [pc, #40] ; (800718c <_vfiprintf_r+0x228>)
  15935. 8007164: a904 add r1, sp, #16
  15936. 8007166: 4630 mov r0, r6
  15937. 8007168: f7fd ffee bl 8005148 <_printf_i>
  15938. 800716c: e7ec b.n 8007148 <_vfiprintf_r+0x1e4>
  15939. 800716e: bf00 nop
  15940. 8007170: 080074ac .word 0x080074ac
  15941. 8007174: 080075ec .word 0x080075ec
  15942. 8007178: 080074cc .word 0x080074cc
  15943. 800717c: 0800748c .word 0x0800748c
  15944. 8007180: 080075f2 .word 0x080075f2
  15945. 8007184: 080075f6 .word 0x080075f6
  15946. 8007188: 08004bf1 .word 0x08004bf1
  15947. 800718c: 08006f3f .word 0x08006f3f
  15948. 08007190 <_sbrk_r>:
  15949. 8007190: b538 push {r3, r4, r5, lr}
  15950. 8007192: 2300 movs r3, #0
  15951. 8007194: 4c05 ldr r4, [pc, #20] ; (80071ac <_sbrk_r+0x1c>)
  15952. 8007196: 4605 mov r5, r0
  15953. 8007198: 4608 mov r0, r1
  15954. 800719a: 6023 str r3, [r4, #0]
  15955. 800719c: f7fd fbda bl 8004954 <_sbrk>
  15956. 80071a0: 1c43 adds r3, r0, #1
  15957. 80071a2: d102 bne.n 80071aa <_sbrk_r+0x1a>
  15958. 80071a4: 6823 ldr r3, [r4, #0]
  15959. 80071a6: b103 cbz r3, 80071aa <_sbrk_r+0x1a>
  15960. 80071a8: 602b str r3, [r5, #0]
  15961. 80071aa: bd38 pop {r3, r4, r5, pc}
  15962. 80071ac: 20000638 .word 0x20000638
  15963. 080071b0 <__sread>:
  15964. 80071b0: b510 push {r4, lr}
  15965. 80071b2: 460c mov r4, r1
  15966. 80071b4: f9b1 100e ldrsh.w r1, [r1, #14]
  15967. 80071b8: f000 f8a8 bl 800730c <_read_r>
  15968. 80071bc: 2800 cmp r0, #0
  15969. 80071be: bfab itete ge
  15970. 80071c0: 6d63 ldrge r3, [r4, #84] ; 0x54
  15971. 80071c2: 89a3 ldrhlt r3, [r4, #12]
  15972. 80071c4: 181b addge r3, r3, r0
  15973. 80071c6: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  15974. 80071ca: bfac ite ge
  15975. 80071cc: 6563 strge r3, [r4, #84] ; 0x54
  15976. 80071ce: 81a3 strhlt r3, [r4, #12]
  15977. 80071d0: bd10 pop {r4, pc}
  15978. 080071d2 <__swrite>:
  15979. 80071d2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  15980. 80071d6: 461f mov r7, r3
  15981. 80071d8: 898b ldrh r3, [r1, #12]
  15982. 80071da: 4605 mov r5, r0
  15983. 80071dc: 05db lsls r3, r3, #23
  15984. 80071de: 460c mov r4, r1
  15985. 80071e0: 4616 mov r6, r2
  15986. 80071e2: d505 bpl.n 80071f0 <__swrite+0x1e>
  15987. 80071e4: 2302 movs r3, #2
  15988. 80071e6: 2200 movs r2, #0
  15989. 80071e8: f9b1 100e ldrsh.w r1, [r1, #14]
  15990. 80071ec: f000 f868 bl 80072c0 <_lseek_r>
  15991. 80071f0: 89a3 ldrh r3, [r4, #12]
  15992. 80071f2: 4632 mov r2, r6
  15993. 80071f4: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  15994. 80071f8: 81a3 strh r3, [r4, #12]
  15995. 80071fa: f9b4 100e ldrsh.w r1, [r4, #14]
  15996. 80071fe: 463b mov r3, r7
  15997. 8007200: 4628 mov r0, r5
  15998. 8007202: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  15999. 8007206: f000 b817 b.w 8007238 <_write_r>
  16000. 0800720a <__sseek>:
  16001. 800720a: b510 push {r4, lr}
  16002. 800720c: 460c mov r4, r1
  16003. 800720e: f9b1 100e ldrsh.w r1, [r1, #14]
  16004. 8007212: f000 f855 bl 80072c0 <_lseek_r>
  16005. 8007216: 1c43 adds r3, r0, #1
  16006. 8007218: 89a3 ldrh r3, [r4, #12]
  16007. 800721a: bf15 itete ne
  16008. 800721c: 6560 strne r0, [r4, #84] ; 0x54
  16009. 800721e: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  16010. 8007222: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  16011. 8007226: 81a3 strheq r3, [r4, #12]
  16012. 8007228: bf18 it ne
  16013. 800722a: 81a3 strhne r3, [r4, #12]
  16014. 800722c: bd10 pop {r4, pc}
  16015. 0800722e <__sclose>:
  16016. 800722e: f9b1 100e ldrsh.w r1, [r1, #14]
  16017. 8007232: f000 b813 b.w 800725c <_close_r>
  16018. ...
  16019. 08007238 <_write_r>:
  16020. 8007238: b538 push {r3, r4, r5, lr}
  16021. 800723a: 4605 mov r5, r0
  16022. 800723c: 4608 mov r0, r1
  16023. 800723e: 4611 mov r1, r2
  16024. 8007240: 2200 movs r2, #0
  16025. 8007242: 4c05 ldr r4, [pc, #20] ; (8007258 <_write_r+0x20>)
  16026. 8007244: 6022 str r2, [r4, #0]
  16027. 8007246: 461a mov r2, r3
  16028. 8007248: f7fd fb37 bl 80048ba <_write>
  16029. 800724c: 1c43 adds r3, r0, #1
  16030. 800724e: d102 bne.n 8007256 <_write_r+0x1e>
  16031. 8007250: 6823 ldr r3, [r4, #0]
  16032. 8007252: b103 cbz r3, 8007256 <_write_r+0x1e>
  16033. 8007254: 602b str r3, [r5, #0]
  16034. 8007256: bd38 pop {r3, r4, r5, pc}
  16035. 8007258: 20000638 .word 0x20000638
  16036. 0800725c <_close_r>:
  16037. 800725c: b538 push {r3, r4, r5, lr}
  16038. 800725e: 2300 movs r3, #0
  16039. 8007260: 4c05 ldr r4, [pc, #20] ; (8007278 <_close_r+0x1c>)
  16040. 8007262: 4605 mov r5, r0
  16041. 8007264: 4608 mov r0, r1
  16042. 8007266: 6023 str r3, [r4, #0]
  16043. 8007268: f7fd fb43 bl 80048f2 <_close>
  16044. 800726c: 1c43 adds r3, r0, #1
  16045. 800726e: d102 bne.n 8007276 <_close_r+0x1a>
  16046. 8007270: 6823 ldr r3, [r4, #0]
  16047. 8007272: b103 cbz r3, 8007276 <_close_r+0x1a>
  16048. 8007274: 602b str r3, [r5, #0]
  16049. 8007276: bd38 pop {r3, r4, r5, pc}
  16050. 8007278: 20000638 .word 0x20000638
  16051. 0800727c <_fstat_r>:
  16052. 800727c: b538 push {r3, r4, r5, lr}
  16053. 800727e: 2300 movs r3, #0
  16054. 8007280: 4c06 ldr r4, [pc, #24] ; (800729c <_fstat_r+0x20>)
  16055. 8007282: 4605 mov r5, r0
  16056. 8007284: 4608 mov r0, r1
  16057. 8007286: 4611 mov r1, r2
  16058. 8007288: 6023 str r3, [r4, #0]
  16059. 800728a: f7fd fb3d bl 8004908 <_fstat>
  16060. 800728e: 1c43 adds r3, r0, #1
  16061. 8007290: d102 bne.n 8007298 <_fstat_r+0x1c>
  16062. 8007292: 6823 ldr r3, [r4, #0]
  16063. 8007294: b103 cbz r3, 8007298 <_fstat_r+0x1c>
  16064. 8007296: 602b str r3, [r5, #0]
  16065. 8007298: bd38 pop {r3, r4, r5, pc}
  16066. 800729a: bf00 nop
  16067. 800729c: 20000638 .word 0x20000638
  16068. 080072a0 <_isatty_r>:
  16069. 80072a0: b538 push {r3, r4, r5, lr}
  16070. 80072a2: 2300 movs r3, #0
  16071. 80072a4: 4c05 ldr r4, [pc, #20] ; (80072bc <_isatty_r+0x1c>)
  16072. 80072a6: 4605 mov r5, r0
  16073. 80072a8: 4608 mov r0, r1
  16074. 80072aa: 6023 str r3, [r4, #0]
  16075. 80072ac: f7fd fb3b bl 8004926 <_isatty>
  16076. 80072b0: 1c43 adds r3, r0, #1
  16077. 80072b2: d102 bne.n 80072ba <_isatty_r+0x1a>
  16078. 80072b4: 6823 ldr r3, [r4, #0]
  16079. 80072b6: b103 cbz r3, 80072ba <_isatty_r+0x1a>
  16080. 80072b8: 602b str r3, [r5, #0]
  16081. 80072ba: bd38 pop {r3, r4, r5, pc}
  16082. 80072bc: 20000638 .word 0x20000638
  16083. 080072c0 <_lseek_r>:
  16084. 80072c0: b538 push {r3, r4, r5, lr}
  16085. 80072c2: 4605 mov r5, r0
  16086. 80072c4: 4608 mov r0, r1
  16087. 80072c6: 4611 mov r1, r2
  16088. 80072c8: 2200 movs r2, #0
  16089. 80072ca: 4c05 ldr r4, [pc, #20] ; (80072e0 <_lseek_r+0x20>)
  16090. 80072cc: 6022 str r2, [r4, #0]
  16091. 80072ce: 461a mov r2, r3
  16092. 80072d0: f7fd fb33 bl 800493a <_lseek>
  16093. 80072d4: 1c43 adds r3, r0, #1
  16094. 80072d6: d102 bne.n 80072de <_lseek_r+0x1e>
  16095. 80072d8: 6823 ldr r3, [r4, #0]
  16096. 80072da: b103 cbz r3, 80072de <_lseek_r+0x1e>
  16097. 80072dc: 602b str r3, [r5, #0]
  16098. 80072de: bd38 pop {r3, r4, r5, pc}
  16099. 80072e0: 20000638 .word 0x20000638
  16100. 080072e4 <__ascii_mbtowc>:
  16101. 80072e4: b082 sub sp, #8
  16102. 80072e6: b901 cbnz r1, 80072ea <__ascii_mbtowc+0x6>
  16103. 80072e8: a901 add r1, sp, #4
  16104. 80072ea: b142 cbz r2, 80072fe <__ascii_mbtowc+0x1a>
  16105. 80072ec: b14b cbz r3, 8007302 <__ascii_mbtowc+0x1e>
  16106. 80072ee: 7813 ldrb r3, [r2, #0]
  16107. 80072f0: 600b str r3, [r1, #0]
  16108. 80072f2: 7812 ldrb r2, [r2, #0]
  16109. 80072f4: 1c10 adds r0, r2, #0
  16110. 80072f6: bf18 it ne
  16111. 80072f8: 2001 movne r0, #1
  16112. 80072fa: b002 add sp, #8
  16113. 80072fc: 4770 bx lr
  16114. 80072fe: 4610 mov r0, r2
  16115. 8007300: e7fb b.n 80072fa <__ascii_mbtowc+0x16>
  16116. 8007302: f06f 0001 mvn.w r0, #1
  16117. 8007306: e7f8 b.n 80072fa <__ascii_mbtowc+0x16>
  16118. 08007308 <__malloc_lock>:
  16119. 8007308: 4770 bx lr
  16120. 0800730a <__malloc_unlock>:
  16121. 800730a: 4770 bx lr
  16122. 0800730c <_read_r>:
  16123. 800730c: b538 push {r3, r4, r5, lr}
  16124. 800730e: 4605 mov r5, r0
  16125. 8007310: 4608 mov r0, r1
  16126. 8007312: 4611 mov r1, r2
  16127. 8007314: 2200 movs r2, #0
  16128. 8007316: 4c05 ldr r4, [pc, #20] ; (800732c <_read_r+0x20>)
  16129. 8007318: 6022 str r2, [r4, #0]
  16130. 800731a: 461a mov r2, r3
  16131. 800731c: f7fd fab0 bl 8004880 <_read>
  16132. 8007320: 1c43 adds r3, r0, #1
  16133. 8007322: d102 bne.n 800732a <_read_r+0x1e>
  16134. 8007324: 6823 ldr r3, [r4, #0]
  16135. 8007326: b103 cbz r3, 800732a <_read_r+0x1e>
  16136. 8007328: 602b str r3, [r5, #0]
  16137. 800732a: bd38 pop {r3, r4, r5, pc}
  16138. 800732c: 20000638 .word 0x20000638
  16139. 08007330 <__ascii_wctomb>:
  16140. 8007330: b149 cbz r1, 8007346 <__ascii_wctomb+0x16>
  16141. 8007332: 2aff cmp r2, #255 ; 0xff
  16142. 8007334: bf8b itete hi
  16143. 8007336: 238a movhi r3, #138 ; 0x8a
  16144. 8007338: 700a strbls r2, [r1, #0]
  16145. 800733a: 6003 strhi r3, [r0, #0]
  16146. 800733c: 2001 movls r0, #1
  16147. 800733e: bf88 it hi
  16148. 8007340: f04f 30ff movhi.w r0, #4294967295
  16149. 8007344: 4770 bx lr
  16150. 8007346: 4608 mov r0, r1
  16151. 8007348: 4770 bx lr
  16152. ...
  16153. 0800734c <_init>:
  16154. 800734c: b5f8 push {r3, r4, r5, r6, r7, lr}
  16155. 800734e: bf00 nop
  16156. 8007350: bcf8 pop {r3, r4, r5, r6, r7}
  16157. 8007352: bc08 pop {r3}
  16158. 8007354: 469e mov lr, r3
  16159. 8007356: 4770 bx lr
  16160. 08007358 <_fini>:
  16161. 8007358: b5f8 push {r3, r4, r5, r6, r7, lr}
  16162. 800735a: bf00 nop
  16163. 800735c: bcf8 pop {r3, r4, r5, r6, r7}
  16164. 800735e: bc08 pop {r3}
  16165. 8007360: 469e mov lr, r3
  16166. 8007362: 4770 bx lr