Nesslab_200M_System.list 725 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308
  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 000080e4 080001d0 080001d0 000101d0 2**3
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000600 080082b8 080082b8 000182b8 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 080088b8 080088b8 000201dc 2**0
  11. CONTENTS
  12. 4 .ARM 00000000 080088b8 080088b8 000201dc 2**0
  13. CONTENTS
  14. 5 .preinit_array 00000000 080088b8 080088b8 000201dc 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 080088b8 080088b8 000188b8 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 080088bc 080088bc 000188bc 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 000001dc 20000000 080088c0 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 00000708 200001e0 08008a9c 000201e0 2**3
  23. ALLOC
  24. 10 ._user_heap_stack 00000600 200008e8 08008a9c 000208e8 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000029 00000000 00000000 000201dc 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 00014194 00000000 00000000 00020205 2**0
  29. CONTENTS, READONLY, DEBUGGING
  30. 13 .debug_abbrev 00003508 00000000 00000000 00034399 2**0
  31. CONTENTS, READONLY, DEBUGGING
  32. 14 .debug_aranges 00001110 00000000 00000000 000378a8 2**3
  33. CONTENTS, READONLY, DEBUGGING
  34. 15 .debug_ranges 00000f68 00000000 00000000 000389b8 2**3
  35. CONTENTS, READONLY, DEBUGGING
  36. 16 .debug_macro 00010ee7 00000000 00000000 00039920 2**0
  37. CONTENTS, READONLY, DEBUGGING
  38. 17 .debug_line 0000f3c5 00000000 00000000 0004a807 2**0
  39. CONTENTS, READONLY, DEBUGGING
  40. 18 .debug_str 0005855e 00000000 00000000 00059bcc 2**0
  41. CONTENTS, READONLY, DEBUGGING
  42. 19 .comment 0000007b 00000000 00000000 000b212a 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00005358 00000000 00000000 000b21a8 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: 200001e0 .word 0x200001e0
  60. 80001ec: 00000000 .word 0x00000000
  61. 80001f0: 0800829c .word 0x0800829c
  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: 200001e4 .word 0x200001e4
  72. 800020c: 0800829c .word 0x0800829c
  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 <__aeabi_d2f>:
  846. 8000b48: ea4f 0241 mov.w r2, r1, lsl #1
  847. 8000b4c: f1b2 43e0 subs.w r3, r2, #1879048192 ; 0x70000000
  848. 8000b50: bf24 itt cs
  849. 8000b52: f5b3 1c00 subscs.w ip, r3, #2097152 ; 0x200000
  850. 8000b56: f1dc 5cfe rsbscs ip, ip, #532676608 ; 0x1fc00000
  851. 8000b5a: d90d bls.n 8000b78 <__aeabi_d2f+0x30>
  852. 8000b5c: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000
  853. 8000b60: ea4f 02c0 mov.w r2, r0, lsl #3
  854. 8000b64: ea4c 7050 orr.w r0, ip, r0, lsr #29
  855. 8000b68: f1b2 4f00 cmp.w r2, #2147483648 ; 0x80000000
  856. 8000b6c: eb40 0083 adc.w r0, r0, r3, lsl #2
  857. 8000b70: bf08 it eq
  858. 8000b72: f020 0001 biceq.w r0, r0, #1
  859. 8000b76: 4770 bx lr
  860. 8000b78: f011 4f80 tst.w r1, #1073741824 ; 0x40000000
  861. 8000b7c: d121 bne.n 8000bc2 <__aeabi_d2f+0x7a>
  862. 8000b7e: f113 7238 adds.w r2, r3, #48234496 ; 0x2e00000
  863. 8000b82: bfbc itt lt
  864. 8000b84: f001 4000 andlt.w r0, r1, #2147483648 ; 0x80000000
  865. 8000b88: 4770 bxlt lr
  866. 8000b8a: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  867. 8000b8e: ea4f 5252 mov.w r2, r2, lsr #21
  868. 8000b92: f1c2 0218 rsb r2, r2, #24
  869. 8000b96: f1c2 0c20 rsb ip, r2, #32
  870. 8000b9a: fa10 f30c lsls.w r3, r0, ip
  871. 8000b9e: fa20 f002 lsr.w r0, r0, r2
  872. 8000ba2: bf18 it ne
  873. 8000ba4: f040 0001 orrne.w r0, r0, #1
  874. 8000ba8: ea4f 23c1 mov.w r3, r1, lsl #11
  875. 8000bac: ea4f 23d3 mov.w r3, r3, lsr #11
  876. 8000bb0: fa03 fc0c lsl.w ip, r3, ip
  877. 8000bb4: ea40 000c orr.w r0, r0, ip
  878. 8000bb8: fa23 f302 lsr.w r3, r3, r2
  879. 8000bbc: ea4f 0343 mov.w r3, r3, lsl #1
  880. 8000bc0: e7cc b.n 8000b5c <__aeabi_d2f+0x14>
  881. 8000bc2: ea7f 5362 mvns.w r3, r2, asr #21
  882. 8000bc6: d107 bne.n 8000bd8 <__aeabi_d2f+0x90>
  883. 8000bc8: ea50 3301 orrs.w r3, r0, r1, lsl #12
  884. 8000bcc: bf1e ittt ne
  885. 8000bce: f04f 40fe movne.w r0, #2130706432 ; 0x7f000000
  886. 8000bd2: f440 0040 orrne.w r0, r0, #12582912 ; 0xc00000
  887. 8000bd6: 4770 bxne lr
  888. 8000bd8: f001 4000 and.w r0, r1, #2147483648 ; 0x80000000
  889. 8000bdc: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000
  890. 8000be0: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  891. 8000be4: 4770 bx lr
  892. 8000be6: bf00 nop
  893. 08000be8 <__aeabi_fmul>:
  894. 8000be8: f04f 0cff mov.w ip, #255 ; 0xff
  895. 8000bec: ea1c 52d0 ands.w r2, ip, r0, lsr #23
  896. 8000bf0: bf1e ittt ne
  897. 8000bf2: ea1c 53d1 andsne.w r3, ip, r1, lsr #23
  898. 8000bf6: ea92 0f0c teqne r2, ip
  899. 8000bfa: ea93 0f0c teqne r3, ip
  900. 8000bfe: d06f beq.n 8000ce0 <__aeabi_fmul+0xf8>
  901. 8000c00: 441a add r2, r3
  902. 8000c02: ea80 0c01 eor.w ip, r0, r1
  903. 8000c06: 0240 lsls r0, r0, #9
  904. 8000c08: bf18 it ne
  905. 8000c0a: ea5f 2141 movsne.w r1, r1, lsl #9
  906. 8000c0e: d01e beq.n 8000c4e <__aeabi_fmul+0x66>
  907. 8000c10: f04f 6300 mov.w r3, #134217728 ; 0x8000000
  908. 8000c14: ea43 1050 orr.w r0, r3, r0, lsr #5
  909. 8000c18: ea43 1151 orr.w r1, r3, r1, lsr #5
  910. 8000c1c: fba0 3101 umull r3, r1, r0, r1
  911. 8000c20: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000
  912. 8000c24: f5b1 0f00 cmp.w r1, #8388608 ; 0x800000
  913. 8000c28: bf3e ittt cc
  914. 8000c2a: 0049 lslcc r1, r1, #1
  915. 8000c2c: ea41 71d3 orrcc.w r1, r1, r3, lsr #31
  916. 8000c30: 005b lslcc r3, r3, #1
  917. 8000c32: ea40 0001 orr.w r0, r0, r1
  918. 8000c36: f162 027f sbc.w r2, r2, #127 ; 0x7f
  919. 8000c3a: 2afd cmp r2, #253 ; 0xfd
  920. 8000c3c: d81d bhi.n 8000c7a <__aeabi_fmul+0x92>
  921. 8000c3e: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000
  922. 8000c42: eb40 50c2 adc.w r0, r0, r2, lsl #23
  923. 8000c46: bf08 it eq
  924. 8000c48: f020 0001 biceq.w r0, r0, #1
  925. 8000c4c: 4770 bx lr
  926. 8000c4e: f090 0f00 teq r0, #0
  927. 8000c52: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000
  928. 8000c56: bf08 it eq
  929. 8000c58: 0249 lsleq r1, r1, #9
  930. 8000c5a: ea4c 2050 orr.w r0, ip, r0, lsr #9
  931. 8000c5e: ea40 2051 orr.w r0, r0, r1, lsr #9
  932. 8000c62: 3a7f subs r2, #127 ; 0x7f
  933. 8000c64: bfc2 ittt gt
  934. 8000c66: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff
  935. 8000c6a: ea40 50c2 orrgt.w r0, r0, r2, lsl #23
  936. 8000c6e: 4770 bxgt lr
  937. 8000c70: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  938. 8000c74: f04f 0300 mov.w r3, #0
  939. 8000c78: 3a01 subs r2, #1
  940. 8000c7a: dc5d bgt.n 8000d38 <__aeabi_fmul+0x150>
  941. 8000c7c: f112 0f19 cmn.w r2, #25
  942. 8000c80: bfdc itt le
  943. 8000c82: f000 4000 andle.w r0, r0, #2147483648 ; 0x80000000
  944. 8000c86: 4770 bxle lr
  945. 8000c88: f1c2 0200 rsb r2, r2, #0
  946. 8000c8c: 0041 lsls r1, r0, #1
  947. 8000c8e: fa21 f102 lsr.w r1, r1, r2
  948. 8000c92: f1c2 0220 rsb r2, r2, #32
  949. 8000c96: fa00 fc02 lsl.w ip, r0, r2
  950. 8000c9a: ea5f 0031 movs.w r0, r1, rrx
  951. 8000c9e: f140 0000 adc.w r0, r0, #0
  952. 8000ca2: ea53 034c orrs.w r3, r3, ip, lsl #1
  953. 8000ca6: bf08 it eq
  954. 8000ca8: ea20 70dc biceq.w r0, r0, ip, lsr #31
  955. 8000cac: 4770 bx lr
  956. 8000cae: f092 0f00 teq r2, #0
  957. 8000cb2: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000
  958. 8000cb6: bf02 ittt eq
  959. 8000cb8: 0040 lsleq r0, r0, #1
  960. 8000cba: f410 0f00 tsteq.w r0, #8388608 ; 0x800000
  961. 8000cbe: 3a01 subeq r2, #1
  962. 8000cc0: d0f9 beq.n 8000cb6 <__aeabi_fmul+0xce>
  963. 8000cc2: ea40 000c orr.w r0, r0, ip
  964. 8000cc6: f093 0f00 teq r3, #0
  965. 8000cca: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000
  966. 8000cce: bf02 ittt eq
  967. 8000cd0: 0049 lsleq r1, r1, #1
  968. 8000cd2: f411 0f00 tsteq.w r1, #8388608 ; 0x800000
  969. 8000cd6: 3b01 subeq r3, #1
  970. 8000cd8: d0f9 beq.n 8000cce <__aeabi_fmul+0xe6>
  971. 8000cda: ea41 010c orr.w r1, r1, ip
  972. 8000cde: e78f b.n 8000c00 <__aeabi_fmul+0x18>
  973. 8000ce0: ea0c 53d1 and.w r3, ip, r1, lsr #23
  974. 8000ce4: ea92 0f0c teq r2, ip
  975. 8000ce8: bf18 it ne
  976. 8000cea: ea93 0f0c teqne r3, ip
  977. 8000cee: d00a beq.n 8000d06 <__aeabi_fmul+0x11e>
  978. 8000cf0: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000
  979. 8000cf4: bf18 it ne
  980. 8000cf6: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000
  981. 8000cfa: d1d8 bne.n 8000cae <__aeabi_fmul+0xc6>
  982. 8000cfc: ea80 0001 eor.w r0, r0, r1
  983. 8000d00: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000
  984. 8000d04: 4770 bx lr
  985. 8000d06: f090 0f00 teq r0, #0
  986. 8000d0a: bf17 itett ne
  987. 8000d0c: f090 4f00 teqne r0, #2147483648 ; 0x80000000
  988. 8000d10: 4608 moveq r0, r1
  989. 8000d12: f091 0f00 teqne r1, #0
  990. 8000d16: f091 4f00 teqne r1, #2147483648 ; 0x80000000
  991. 8000d1a: d014 beq.n 8000d46 <__aeabi_fmul+0x15e>
  992. 8000d1c: ea92 0f0c teq r2, ip
  993. 8000d20: d101 bne.n 8000d26 <__aeabi_fmul+0x13e>
  994. 8000d22: 0242 lsls r2, r0, #9
  995. 8000d24: d10f bne.n 8000d46 <__aeabi_fmul+0x15e>
  996. 8000d26: ea93 0f0c teq r3, ip
  997. 8000d2a: d103 bne.n 8000d34 <__aeabi_fmul+0x14c>
  998. 8000d2c: 024b lsls r3, r1, #9
  999. 8000d2e: bf18 it ne
  1000. 8000d30: 4608 movne r0, r1
  1001. 8000d32: d108 bne.n 8000d46 <__aeabi_fmul+0x15e>
  1002. 8000d34: ea80 0001 eor.w r0, r0, r1
  1003. 8000d38: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000
  1004. 8000d3c: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000
  1005. 8000d40: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  1006. 8000d44: 4770 bx lr
  1007. 8000d46: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000
  1008. 8000d4a: f440 0040 orr.w r0, r0, #12582912 ; 0xc00000
  1009. 8000d4e: 4770 bx lr
  1010. 08000d50 <__aeabi_fdiv>:
  1011. 8000d50: f04f 0cff mov.w ip, #255 ; 0xff
  1012. 8000d54: ea1c 52d0 ands.w r2, ip, r0, lsr #23
  1013. 8000d58: bf1e ittt ne
  1014. 8000d5a: ea1c 53d1 andsne.w r3, ip, r1, lsr #23
  1015. 8000d5e: ea92 0f0c teqne r2, ip
  1016. 8000d62: ea93 0f0c teqne r3, ip
  1017. 8000d66: d069 beq.n 8000e3c <__aeabi_fdiv+0xec>
  1018. 8000d68: eba2 0203 sub.w r2, r2, r3
  1019. 8000d6c: ea80 0c01 eor.w ip, r0, r1
  1020. 8000d70: 0249 lsls r1, r1, #9
  1021. 8000d72: ea4f 2040 mov.w r0, r0, lsl #9
  1022. 8000d76: d037 beq.n 8000de8 <__aeabi_fdiv+0x98>
  1023. 8000d78: f04f 5380 mov.w r3, #268435456 ; 0x10000000
  1024. 8000d7c: ea43 1111 orr.w r1, r3, r1, lsr #4
  1025. 8000d80: ea43 1310 orr.w r3, r3, r0, lsr #4
  1026. 8000d84: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000
  1027. 8000d88: 428b cmp r3, r1
  1028. 8000d8a: bf38 it cc
  1029. 8000d8c: 005b lslcc r3, r3, #1
  1030. 8000d8e: f142 027d adc.w r2, r2, #125 ; 0x7d
  1031. 8000d92: f44f 0c00 mov.w ip, #8388608 ; 0x800000
  1032. 8000d96: 428b cmp r3, r1
  1033. 8000d98: bf24 itt cs
  1034. 8000d9a: 1a5b subcs r3, r3, r1
  1035. 8000d9c: ea40 000c orrcs.w r0, r0, ip
  1036. 8000da0: ebb3 0f51 cmp.w r3, r1, lsr #1
  1037. 8000da4: bf24 itt cs
  1038. 8000da6: eba3 0351 subcs.w r3, r3, r1, lsr #1
  1039. 8000daa: ea40 005c orrcs.w r0, r0, ip, lsr #1
  1040. 8000dae: ebb3 0f91 cmp.w r3, r1, lsr #2
  1041. 8000db2: bf24 itt cs
  1042. 8000db4: eba3 0391 subcs.w r3, r3, r1, lsr #2
  1043. 8000db8: ea40 009c orrcs.w r0, r0, ip, lsr #2
  1044. 8000dbc: ebb3 0fd1 cmp.w r3, r1, lsr #3
  1045. 8000dc0: bf24 itt cs
  1046. 8000dc2: eba3 03d1 subcs.w r3, r3, r1, lsr #3
  1047. 8000dc6: ea40 00dc orrcs.w r0, r0, ip, lsr #3
  1048. 8000dca: 011b lsls r3, r3, #4
  1049. 8000dcc: bf18 it ne
  1050. 8000dce: ea5f 1c1c movsne.w ip, ip, lsr #4
  1051. 8000dd2: d1e0 bne.n 8000d96 <__aeabi_fdiv+0x46>
  1052. 8000dd4: 2afd cmp r2, #253 ; 0xfd
  1053. 8000dd6: f63f af50 bhi.w 8000c7a <__aeabi_fmul+0x92>
  1054. 8000dda: 428b cmp r3, r1
  1055. 8000ddc: eb40 50c2 adc.w r0, r0, r2, lsl #23
  1056. 8000de0: bf08 it eq
  1057. 8000de2: f020 0001 biceq.w r0, r0, #1
  1058. 8000de6: 4770 bx lr
  1059. 8000de8: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000
  1060. 8000dec: ea4c 2050 orr.w r0, ip, r0, lsr #9
  1061. 8000df0: 327f adds r2, #127 ; 0x7f
  1062. 8000df2: bfc2 ittt gt
  1063. 8000df4: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff
  1064. 8000df8: ea40 50c2 orrgt.w r0, r0, r2, lsl #23
  1065. 8000dfc: 4770 bxgt lr
  1066. 8000dfe: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  1067. 8000e02: f04f 0300 mov.w r3, #0
  1068. 8000e06: 3a01 subs r2, #1
  1069. 8000e08: e737 b.n 8000c7a <__aeabi_fmul+0x92>
  1070. 8000e0a: f092 0f00 teq r2, #0
  1071. 8000e0e: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000
  1072. 8000e12: bf02 ittt eq
  1073. 8000e14: 0040 lsleq r0, r0, #1
  1074. 8000e16: f410 0f00 tsteq.w r0, #8388608 ; 0x800000
  1075. 8000e1a: 3a01 subeq r2, #1
  1076. 8000e1c: d0f9 beq.n 8000e12 <__aeabi_fdiv+0xc2>
  1077. 8000e1e: ea40 000c orr.w r0, r0, ip
  1078. 8000e22: f093 0f00 teq r3, #0
  1079. 8000e26: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000
  1080. 8000e2a: bf02 ittt eq
  1081. 8000e2c: 0049 lsleq r1, r1, #1
  1082. 8000e2e: f411 0f00 tsteq.w r1, #8388608 ; 0x800000
  1083. 8000e32: 3b01 subeq r3, #1
  1084. 8000e34: d0f9 beq.n 8000e2a <__aeabi_fdiv+0xda>
  1085. 8000e36: ea41 010c orr.w r1, r1, ip
  1086. 8000e3a: e795 b.n 8000d68 <__aeabi_fdiv+0x18>
  1087. 8000e3c: ea0c 53d1 and.w r3, ip, r1, lsr #23
  1088. 8000e40: ea92 0f0c teq r2, ip
  1089. 8000e44: d108 bne.n 8000e58 <__aeabi_fdiv+0x108>
  1090. 8000e46: 0242 lsls r2, r0, #9
  1091. 8000e48: f47f af7d bne.w 8000d46 <__aeabi_fmul+0x15e>
  1092. 8000e4c: ea93 0f0c teq r3, ip
  1093. 8000e50: f47f af70 bne.w 8000d34 <__aeabi_fmul+0x14c>
  1094. 8000e54: 4608 mov r0, r1
  1095. 8000e56: e776 b.n 8000d46 <__aeabi_fmul+0x15e>
  1096. 8000e58: ea93 0f0c teq r3, ip
  1097. 8000e5c: d104 bne.n 8000e68 <__aeabi_fdiv+0x118>
  1098. 8000e5e: 024b lsls r3, r1, #9
  1099. 8000e60: f43f af4c beq.w 8000cfc <__aeabi_fmul+0x114>
  1100. 8000e64: 4608 mov r0, r1
  1101. 8000e66: e76e b.n 8000d46 <__aeabi_fmul+0x15e>
  1102. 8000e68: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000
  1103. 8000e6c: bf18 it ne
  1104. 8000e6e: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000
  1105. 8000e72: d1ca bne.n 8000e0a <__aeabi_fdiv+0xba>
  1106. 8000e74: f030 4200 bics.w r2, r0, #2147483648 ; 0x80000000
  1107. 8000e78: f47f af5c bne.w 8000d34 <__aeabi_fmul+0x14c>
  1108. 8000e7c: f031 4300 bics.w r3, r1, #2147483648 ; 0x80000000
  1109. 8000e80: f47f af3c bne.w 8000cfc <__aeabi_fmul+0x114>
  1110. 8000e84: e75f b.n 8000d46 <__aeabi_fmul+0x15e>
  1111. 8000e86: bf00 nop
  1112. 08000e88 <__aeabi_f2uiz>:
  1113. 8000e88: 0042 lsls r2, r0, #1
  1114. 8000e8a: d20e bcs.n 8000eaa <__aeabi_f2uiz+0x22>
  1115. 8000e8c: f1b2 4ffe cmp.w r2, #2130706432 ; 0x7f000000
  1116. 8000e90: d30b bcc.n 8000eaa <__aeabi_f2uiz+0x22>
  1117. 8000e92: f04f 039e mov.w r3, #158 ; 0x9e
  1118. 8000e96: ebb3 6212 subs.w r2, r3, r2, lsr #24
  1119. 8000e9a: d409 bmi.n 8000eb0 <__aeabi_f2uiz+0x28>
  1120. 8000e9c: ea4f 2300 mov.w r3, r0, lsl #8
  1121. 8000ea0: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  1122. 8000ea4: fa23 f002 lsr.w r0, r3, r2
  1123. 8000ea8: 4770 bx lr
  1124. 8000eaa: f04f 0000 mov.w r0, #0
  1125. 8000eae: 4770 bx lr
  1126. 8000eb0: f112 0f61 cmn.w r2, #97 ; 0x61
  1127. 8000eb4: d101 bne.n 8000eba <__aeabi_f2uiz+0x32>
  1128. 8000eb6: 0242 lsls r2, r0, #9
  1129. 8000eb8: d102 bne.n 8000ec0 <__aeabi_f2uiz+0x38>
  1130. 8000eba: f04f 30ff mov.w r0, #4294967295
  1131. 8000ebe: 4770 bx lr
  1132. 8000ec0: f04f 0000 mov.w r0, #0
  1133. 8000ec4: 4770 bx lr
  1134. 8000ec6: bf00 nop
  1135. 08000ec8 <NessLab_Operate>:
  1136. }
  1137. void NessLab_Operate(uint8_t* data){
  1138. 8000ec8: b580 push {r7, lr}
  1139. 8000eca: b086 sub sp, #24
  1140. 8000ecc: af00 add r7, sp, #0
  1141. 8000ece: 6078 str r0, [r7, #4]
  1142. uint8_t datatype = data[NessLab_MsgID0];
  1143. 8000ed0: 687b ldr r3, [r7, #4]
  1144. 8000ed2: 789b ldrb r3, [r3, #2]
  1145. 8000ed4: 73fb strb r3, [r7, #15]
  1146. uint8_t UartLength = 0;
  1147. 8000ed6: 2300 movs r3, #0
  1148. 8000ed8: 75fb strb r3, [r7, #23]
  1149. static uint16_t MSG_SNCnt = 0;
  1150. switch(datatype){
  1151. 8000eda: 7bfb ldrb r3, [r7, #15]
  1152. 8000edc: 2bc9 cmp r3, #201 ; 0xc9
  1153. 8000ede: d02c beq.n 8000f3a <NessLab_Operate+0x72>
  1154. 8000ee0: 2bca cmp r3, #202 ; 0xca
  1155. 8000ee2: d034 beq.n 8000f4e <NessLab_Operate+0x86>
  1156. 8000ee4: 2b65 cmp r3, #101 ; 0x65
  1157. 8000ee6: d16a bne.n 8000fbe <NessLab_Operate+0xf6>
  1158. case NessLab_STATUS_REQ:
  1159. ADC_Check();
  1160. 8000ee8: f000 f9c2 bl 8001270 <ADC_Check>
  1161. UartLength = NessLab_MAX_INDEX + 1;
  1162. 8000eec: 2316 movs r3, #22
  1163. 8000eee: 75fb strb r3, [r7, #23]
  1164. MSG_SNCnt = data[NessLab_Req_MsgSN0] << 8 | data[NessLab_Req_MsgSN1];
  1165. 8000ef0: 687b ldr r3, [r7, #4]
  1166. 8000ef2: 3303 adds r3, #3
  1167. 8000ef4: 781b ldrb r3, [r3, #0]
  1168. 8000ef6: 021b lsls r3, r3, #8
  1169. 8000ef8: b21a sxth r2, r3
  1170. 8000efa: 687b ldr r3, [r7, #4]
  1171. 8000efc: 3304 adds r3, #4
  1172. 8000efe: 781b ldrb r3, [r3, #0]
  1173. 8000f00: b21b sxth r3, r3
  1174. 8000f02: 4313 orrs r3, r2
  1175. 8000f04: b21b sxth r3, r3
  1176. 8000f06: b29a uxth r2, r3
  1177. 8000f08: 4b31 ldr r3, [pc, #196] ; (8000fd0 <NessLab_Operate+0x108>)
  1178. 8000f0a: 801a strh r2, [r3, #0]
  1179. MSG_SNCnt++;
  1180. 8000f0c: 4b30 ldr r3, [pc, #192] ; (8000fd0 <NessLab_Operate+0x108>)
  1181. 8000f0e: 881b ldrh r3, [r3, #0]
  1182. 8000f10: 3301 adds r3, #1
  1183. 8000f12: b29a uxth r2, r3
  1184. 8000f14: 4b2e ldr r3, [pc, #184] ; (8000fd0 <NessLab_Operate+0x108>)
  1185. 8000f16: 801a strh r2, [r3, #0]
  1186. // if(data[NessLab_Req_Data_Cnt1] > 0)
  1187. // NessLab_TxData[NessLab_VSWR_ALARM] = 1;
  1188. // else
  1189. // NessLab_TxData[NessLab_VSWR_ALARM] = 0;
  1190. NessLab_TxData[NessLab_MsgSN0] = (uint8_t)((MSG_SNCnt & 0xFF00) >>8);//data[NessLab_Req_MsgSN0];
  1191. 8000f18: 4b2d ldr r3, [pc, #180] ; (8000fd0 <NessLab_Operate+0x108>)
  1192. 8000f1a: 881b ldrh r3, [r3, #0]
  1193. 8000f1c: 0a1b lsrs r3, r3, #8
  1194. 8000f1e: b29b uxth r3, r3
  1195. 8000f20: b2da uxtb r2, r3
  1196. 8000f22: 4b2c ldr r3, [pc, #176] ; (8000fd4 <NessLab_Operate+0x10c>)
  1197. 8000f24: 70da strb r2, [r3, #3]
  1198. NessLab_TxData[NessLab_MsgSN1] = (uint8_t)((MSG_SNCnt & 0x00FF));//data[NessLab_Req_MsgSN1] ;
  1199. 8000f26: 4b2a ldr r3, [pc, #168] ; (8000fd0 <NessLab_Operate+0x108>)
  1200. 8000f28: 881b ldrh r3, [r3, #0]
  1201. 8000f2a: b2da uxtb r2, r3
  1202. 8000f2c: 4b29 ldr r3, [pc, #164] ; (8000fd4 <NessLab_Operate+0x10c>)
  1203. 8000f2e: 711a strb r2, [r3, #4]
  1204. NessLab_Frame_Set(NessLab_TxData,12);
  1205. 8000f30: 210c movs r1, #12
  1206. 8000f32: 4828 ldr r0, [pc, #160] ; (8000fd4 <NessLab_Operate+0x10c>)
  1207. 8000f34: f000 f85c bl 8000ff0 <NessLab_Frame_Set>
  1208. // NessLab_TxData[14] = 1;
  1209. // NessLab_TxData[15] = 0;
  1210. // NessLab_TxData[16] = 1;
  1211. // NessLab_TxData[17] = 0;
  1212. break;
  1213. 8000f38: e041 b.n 8000fbe <NessLab_Operate+0xf6>
  1214. case NessLab_Table_REQ:
  1215. UartLength = NESSLAB_TABLE_LENGTH;
  1216. 8000f3a: 236e movs r3, #110 ; 0x6e
  1217. 8000f3c: 75fb strb r3, [r7, #23]
  1218. NessLab_Table_Frame_Set(NessLab_TxData,100);
  1219. 8000f3e: 2164 movs r1, #100 ; 0x64
  1220. 8000f40: 4824 ldr r0, [pc, #144] ; (8000fd4 <NessLab_Operate+0x10c>)
  1221. 8000f42: f000 f90b bl 800115c <NessLab_Table_Frame_Set>
  1222. printf("NessLab_Table_REQ \r\n");
  1223. 8000f46: 4824 ldr r0, [pc, #144] ; (8000fd8 <NessLab_Operate+0x110>)
  1224. 8000f48: f005 fa2c bl 80063a4 <puts>
  1225. break;
  1226. 8000f4c: e037 b.n 8000fbe <NessLab_Operate+0xf6>
  1227. case NessLab_TableSet_REQ:
  1228. DataErase_Func(FLASH_USER_USE_START_ADDR,200);
  1229. 8000f4e: 21c8 movs r1, #200 ; 0xc8
  1230. 8000f50: 4822 ldr r0, [pc, #136] ; (8000fdc <NessLab_Operate+0x114>)
  1231. 8000f52: f000 fa5b bl 800140c <DataErase_Func>
  1232. printf("Ram Data Display \r\n");
  1233. 8000f56: 4822 ldr r0, [pc, #136] ; (8000fe0 <NessLab_Operate+0x118>)
  1234. 8000f58: f005 fa24 bl 80063a4 <puts>
  1235. for(int i = 0; i < data[NessLab_DataLength]; i++){
  1236. 8000f5c: 2300 movs r3, #0
  1237. 8000f5e: 613b str r3, [r7, #16]
  1238. 8000f60: e015 b.n 8000f8e <NessLab_Operate+0xc6>
  1239. Flash_DataArray[i] = data[NessLab_Data_ADC1_H + i];
  1240. 8000f62: 693b ldr r3, [r7, #16]
  1241. 8000f64: 3307 adds r3, #7
  1242. 8000f66: 461a mov r2, r3
  1243. 8000f68: 687b ldr r3, [r7, #4]
  1244. 8000f6a: 4413 add r3, r2
  1245. 8000f6c: 7819 ldrb r1, [r3, #0]
  1246. 8000f6e: 4a1d ldr r2, [pc, #116] ; (8000fe4 <NessLab_Operate+0x11c>)
  1247. 8000f70: 693b ldr r3, [r7, #16]
  1248. 8000f72: 4413 add r3, r2
  1249. 8000f74: 460a mov r2, r1
  1250. 8000f76: 701a strb r2, [r3, #0]
  1251. printf("%x ",Flash_DataArray[i]);
  1252. 8000f78: 4a1a ldr r2, [pc, #104] ; (8000fe4 <NessLab_Operate+0x11c>)
  1253. 8000f7a: 693b ldr r3, [r7, #16]
  1254. 8000f7c: 4413 add r3, r2
  1255. 8000f7e: 781b ldrb r3, [r3, #0]
  1256. 8000f80: 4619 mov r1, r3
  1257. 8000f82: 4819 ldr r0, [pc, #100] ; (8000fe8 <NessLab_Operate+0x120>)
  1258. 8000f84: f005 f99a bl 80062bc <iprintf>
  1259. for(int i = 0; i < data[NessLab_DataLength]; i++){
  1260. 8000f88: 693b ldr r3, [r7, #16]
  1261. 8000f8a: 3301 adds r3, #1
  1262. 8000f8c: 613b str r3, [r7, #16]
  1263. 8000f8e: 687b ldr r3, [r7, #4]
  1264. 8000f90: 3306 adds r3, #6
  1265. 8000f92: 781b ldrb r3, [r3, #0]
  1266. 8000f94: 461a mov r2, r3
  1267. 8000f96: 693b ldr r3, [r7, #16]
  1268. 8000f98: 4293 cmp r3, r2
  1269. 8000f9a: dbe2 blt.n 8000f62 <NessLab_Operate+0x9a>
  1270. }
  1271. FLASH_Write_Func(&Flash_DataArray[0],data[NessLab_DataLength]);
  1272. 8000f9c: 687b ldr r3, [r7, #4]
  1273. 8000f9e: 3306 adds r3, #6
  1274. 8000fa0: 781b ldrb r3, [r3, #0]
  1275. 8000fa2: 4619 mov r1, r3
  1276. 8000fa4: 480f ldr r0, [pc, #60] ; (8000fe4 <NessLab_Operate+0x11c>)
  1277. 8000fa6: f000 fa83 bl 80014b0 <FLASH_Write_Func>
  1278. UartLength = NESSLAB_TABLE_LENGTH;
  1279. 8000faa: 236e movs r3, #110 ; 0x6e
  1280. 8000fac: 75fb strb r3, [r7, #23]
  1281. NessLab_Table_Frame_Set(NessLab_TxData,100);
  1282. 8000fae: 2164 movs r1, #100 ; 0x64
  1283. 8000fb0: 4808 ldr r0, [pc, #32] ; (8000fd4 <NessLab_Operate+0x10c>)
  1284. 8000fb2: f000 f8d3 bl 800115c <NessLab_Table_Frame_Set>
  1285. printf("\r\nNessLab_TableSet_REQ \r\n");
  1286. 8000fb6: 480d ldr r0, [pc, #52] ; (8000fec <NessLab_Operate+0x124>)
  1287. 8000fb8: f005 f9f4 bl 80063a4 <puts>
  1288. break;
  1289. 8000fbc: bf00 nop
  1290. }
  1291. Uart1_Data_Send(&NessLab_TxData[NessLab_Header0], UartLength);
  1292. 8000fbe: 7dfb ldrb r3, [r7, #23]
  1293. 8000fc0: 4619 mov r1, r3
  1294. 8000fc2: 4804 ldr r0, [pc, #16] ; (8000fd4 <NessLab_Operate+0x10c>)
  1295. 8000fc4: f000 fbf2 bl 80017ac <Uart1_Data_Send>
  1296. }
  1297. 8000fc8: bf00 nop
  1298. 8000fca: 3718 adds r7, #24
  1299. 8000fcc: 46bd mov sp, r7
  1300. 8000fce: bd80 pop {r7, pc}
  1301. 8000fd0: 2000038c .word 0x2000038c
  1302. 8000fd4: 200001fc .word 0x200001fc
  1303. 8000fd8: 080082b8 .word 0x080082b8
  1304. 8000fdc: 0800ff38 .word 0x0800ff38
  1305. 8000fe0: 080082cc .word 0x080082cc
  1306. 8000fe4: 200002c4 .word 0x200002c4
  1307. 8000fe8: 080082e0 .word 0x080082e0
  1308. 8000fec: 080082e4 .word 0x080082e4
  1309. 08000ff0 <NessLab_Frame_Set>:
  1310. void NessLab_Frame_Set(uint8_t* data,uint8_t size){
  1311. 8000ff0: b590 push {r4, r7, lr}
  1312. 8000ff2: b083 sub sp, #12
  1313. 8000ff4: af00 add r7, sp, #0
  1314. 8000ff6: 6078 str r0, [r7, #4]
  1315. 8000ff8: 460b mov r3, r1
  1316. 8000ffa: 70fb strb r3, [r7, #3]
  1317. data[NessLab_Header0] = 0x7E;
  1318. 8000ffc: 687b ldr r3, [r7, #4]
  1319. 8000ffe: 227e movs r2, #126 ; 0x7e
  1320. 8001000: 701a strb r2, [r3, #0]
  1321. data[NessLab_Header1] = 0x7E;
  1322. 8001002: 687b ldr r3, [r7, #4]
  1323. 8001004: 3301 adds r3, #1
  1324. 8001006: 227e movs r2, #126 ; 0x7e
  1325. 8001008: 701a strb r2, [r3, #0]
  1326. data[NessLab_MsgID0] = NessLab_STATUS_RES;// ID
  1327. 800100a: 687b ldr r3, [r7, #4]
  1328. 800100c: 3302 adds r3, #2
  1329. 800100e: 2266 movs r2, #102 ; 0x66
  1330. 8001010: 701a strb r2, [r3, #0]
  1331. // data[NessLab_MsgSN0] = 0; // SEQ NUMBER
  1332. // data[NessLab_MsgSN1] = 0; // SEQ NUMBER
  1333. data[NessLab_Reserve0] = 0; // NessLab_Reserve0
  1334. 8001012: 687b ldr r3, [r7, #4]
  1335. 8001014: 3305 adds r3, #5
  1336. 8001016: 2200 movs r2, #0
  1337. 8001018: 701a strb r2, [r3, #0]
  1338. data[NessLab_DataLength] = size; // Nesslab Size
  1339. 800101a: 687b ldr r3, [r7, #4]
  1340. 800101c: 3306 adds r3, #6
  1341. 800101e: 78fa ldrb r2, [r7, #3]
  1342. 8001020: 701a strb r2, [r3, #0]
  1343. data[NessLab_Data_ADC1_H] = Currstatus.DownLink_Forward_Det_H;//(uint8_t)((ADC1value[0] & 0xFF00) >> 8);
  1344. 8001022: 687b ldr r3, [r7, #4]
  1345. 8001024: 3307 adds r3, #7
  1346. 8001026: 4a4c ldr r2, [pc, #304] ; (8001158 <NessLab_Frame_Set+0x168>)
  1347. 8001028: 79d2 ldrb r2, [r2, #7]
  1348. 800102a: 701a strb r2, [r3, #0]
  1349. data[NessLab_Data_ADC1_L] = Currstatus.DownLink_Forward_Det_L;//(uint8_t)(ADC1value[0] & 0x00FF);
  1350. 800102c: 687b ldr r3, [r7, #4]
  1351. 800102e: 3308 adds r3, #8
  1352. 8001030: 4a49 ldr r2, [pc, #292] ; (8001158 <NessLab_Frame_Set+0x168>)
  1353. 8001032: 7a12 ldrb r2, [r2, #8]
  1354. 8001034: 701a strb r2, [r3, #0]
  1355. data[NessLab_Data_ADC1_L + 1]++;
  1356. 8001036: 687b ldr r3, [r7, #4]
  1357. 8001038: 3309 adds r3, #9
  1358. 800103a: 781a ldrb r2, [r3, #0]
  1359. 800103c: 3201 adds r2, #1
  1360. 800103e: b2d2 uxtb r2, r2
  1361. 8001040: 701a strb r2, [r3, #0]
  1362. if( data[NessLab_DC_FAIL_ALARM] == 0)
  1363. 8001042: 687b ldr r3, [r7, #4]
  1364. 8001044: 330a adds r3, #10
  1365. 8001046: 781b ldrb r3, [r3, #0]
  1366. 8001048: 2b00 cmp r3, #0
  1367. 800104a: d104 bne.n 8001056 <NessLab_Frame_Set+0x66>
  1368. data[NessLab_DC_FAIL_ALARM] = 1;
  1369. 800104c: 687b ldr r3, [r7, #4]
  1370. 800104e: 330a adds r3, #10
  1371. 8001050: 2201 movs r2, #1
  1372. 8001052: 701a strb r2, [r3, #0]
  1373. 8001054: e003 b.n 800105e <NessLab_Frame_Set+0x6e>
  1374. else
  1375. data[NessLab_DC_FAIL_ALARM] = 0;
  1376. 8001056: 687b ldr r3, [r7, #4]
  1377. 8001058: 330a adds r3, #10
  1378. 800105a: 2200 movs r2, #0
  1379. 800105c: 701a strb r2, [r3, #0]
  1380. if( data[NessLab_DownLink_Status] == 0)
  1381. 800105e: 687b ldr r3, [r7, #4]
  1382. 8001060: 330b adds r3, #11
  1383. 8001062: 781b ldrb r3, [r3, #0]
  1384. 8001064: 2b00 cmp r3, #0
  1385. 8001066: d104 bne.n 8001072 <NessLab_Frame_Set+0x82>
  1386. data[NessLab_DownLink_Status] = 1;
  1387. 8001068: 687b ldr r3, [r7, #4]
  1388. 800106a: 330b adds r3, #11
  1389. 800106c: 2201 movs r2, #1
  1390. 800106e: 701a strb r2, [r3, #0]
  1391. 8001070: e003 b.n 800107a <NessLab_Frame_Set+0x8a>
  1392. else
  1393. data[NessLab_DownLink_Status] = 0;
  1394. 8001072: 687b ldr r3, [r7, #4]
  1395. 8001074: 330b adds r3, #11
  1396. 8001076: 2200 movs r2, #0
  1397. 8001078: 701a strb r2, [r3, #0]
  1398. if( data[NessLab_Over_Power_Alarm] == 0)
  1399. 800107a: 687b ldr r3, [r7, #4]
  1400. 800107c: 330c adds r3, #12
  1401. 800107e: 781b ldrb r3, [r3, #0]
  1402. 8001080: 2b00 cmp r3, #0
  1403. 8001082: d104 bne.n 800108e <NessLab_Frame_Set+0x9e>
  1404. data[NessLab_Over_Power_Alarm] = 1;
  1405. 8001084: 687b ldr r3, [r7, #4]
  1406. 8001086: 330c adds r3, #12
  1407. 8001088: 2201 movs r2, #1
  1408. 800108a: 701a strb r2, [r3, #0]
  1409. 800108c: e003 b.n 8001096 <NessLab_Frame_Set+0xa6>
  1410. else
  1411. data[NessLab_Over_Power_Alarm] = 0;
  1412. 800108e: 687b ldr r3, [r7, #4]
  1413. 8001090: 330c adds r3, #12
  1414. 8001092: 2200 movs r2, #0
  1415. 8001094: 701a strb r2, [r3, #0]
  1416. // data[NessLab_Over_Power_Alarm] = 00;
  1417. if( data[NessLab_VSWR_ALARM] == 0)
  1418. 8001096: 687b ldr r3, [r7, #4]
  1419. 8001098: 330d adds r3, #13
  1420. 800109a: 781b ldrb r3, [r3, #0]
  1421. 800109c: 2b00 cmp r3, #0
  1422. 800109e: d104 bne.n 80010aa <NessLab_Frame_Set+0xba>
  1423. data[NessLab_VSWR_ALARM] = 1;
  1424. 80010a0: 687b ldr r3, [r7, #4]
  1425. 80010a2: 330d adds r3, #13
  1426. 80010a4: 2201 movs r2, #1
  1427. 80010a6: 701a strb r2, [r3, #0]
  1428. 80010a8: e003 b.n 80010b2 <NessLab_Frame_Set+0xc2>
  1429. else
  1430. data[NessLab_VSWR_ALARM] = 0;
  1431. 80010aa: 687b ldr r3, [r7, #4]
  1432. 80010ac: 330d adds r3, #13
  1433. 80010ae: 2200 movs r2, #0
  1434. 80010b0: 701a strb r2, [r3, #0]
  1435. // data[NessLab_VSWR_ALARM] = 0;
  1436. if( data[NessLab_Over_Input_Alarm] == 0)
  1437. 80010b2: 687b ldr r3, [r7, #4]
  1438. 80010b4: 330e adds r3, #14
  1439. 80010b6: 781b ldrb r3, [r3, #0]
  1440. 80010b8: 2b00 cmp r3, #0
  1441. 80010ba: d104 bne.n 80010c6 <NessLab_Frame_Set+0xd6>
  1442. data[NessLab_Over_Input_Alarm] = 1;
  1443. 80010bc: 687b ldr r3, [r7, #4]
  1444. 80010be: 330e adds r3, #14
  1445. 80010c0: 2201 movs r2, #1
  1446. 80010c2: 701a strb r2, [r3, #0]
  1447. 80010c4: e003 b.n 80010ce <NessLab_Frame_Set+0xde>
  1448. else
  1449. data[NessLab_Over_Input_Alarm] = 0;
  1450. 80010c6: 687b ldr r3, [r7, #4]
  1451. 80010c8: 330e adds r3, #14
  1452. 80010ca: 2200 movs r2, #0
  1453. 80010cc: 701a strb r2, [r3, #0]
  1454. // data[NessLab_Over_Input_Alarm] = 0;
  1455. if( data[NessLab_Over_Temp_Alarm] == 0)
  1456. 80010ce: 687b ldr r3, [r7, #4]
  1457. 80010d0: 330f adds r3, #15
  1458. 80010d2: 781b ldrb r3, [r3, #0]
  1459. 80010d4: 2b00 cmp r3, #0
  1460. 80010d6: d104 bne.n 80010e2 <NessLab_Frame_Set+0xf2>
  1461. data[NessLab_Over_Temp_Alarm] = 1;
  1462. 80010d8: 687b ldr r3, [r7, #4]
  1463. 80010da: 330f adds r3, #15
  1464. 80010dc: 2201 movs r2, #1
  1465. 80010de: 701a strb r2, [r3, #0]
  1466. 80010e0: e003 b.n 80010ea <NessLab_Frame_Set+0xfa>
  1467. else
  1468. data[NessLab_Over_Temp_Alarm] = 0;
  1469. 80010e2: 687b ldr r3, [r7, #4]
  1470. 80010e4: 330f adds r3, #15
  1471. 80010e6: 2200 movs r2, #0
  1472. 80010e8: 701a strb r2, [r3, #0]
  1473. // data[NessLab_Over_Temp_Alarm] = 0;
  1474. if( data[NessLab_Temp_Monitor] == 0)
  1475. 80010ea: 687b ldr r3, [r7, #4]
  1476. 80010ec: 3310 adds r3, #16
  1477. 80010ee: 781b ldrb r3, [r3, #0]
  1478. 80010f0: 2b00 cmp r3, #0
  1479. 80010f2: d104 bne.n 80010fe <NessLab_Frame_Set+0x10e>
  1480. data[NessLab_Temp_Monitor] = 1;
  1481. 80010f4: 687b ldr r3, [r7, #4]
  1482. 80010f6: 3310 adds r3, #16
  1483. 80010f8: 2201 movs r2, #1
  1484. 80010fa: 701a strb r2, [r3, #0]
  1485. 80010fc: e003 b.n 8001106 <NessLab_Frame_Set+0x116>
  1486. else
  1487. data[NessLab_Temp_Monitor] = 0;
  1488. 80010fe: 687b ldr r3, [r7, #4]
  1489. 8001100: 3310 adds r3, #16
  1490. 8001102: 2200 movs r2, #0
  1491. 8001104: 701a strb r2, [r3, #0]
  1492. // data[NessLab_Temp_Monitor] = 0;
  1493. if( data[NessLab_ALC_ALARM] == 0)
  1494. 8001106: 687b ldr r3, [r7, #4]
  1495. 8001108: 3311 adds r3, #17
  1496. 800110a: 781b ldrb r3, [r3, #0]
  1497. 800110c: 2b00 cmp r3, #0
  1498. 800110e: d104 bne.n 800111a <NessLab_Frame_Set+0x12a>
  1499. data[NessLab_ALC_ALARM] = 1;
  1500. 8001110: 687b ldr r3, [r7, #4]
  1501. 8001112: 3311 adds r3, #17
  1502. 8001114: 2201 movs r2, #1
  1503. 8001116: 701a strb r2, [r3, #0]
  1504. 8001118: e003 b.n 8001122 <NessLab_Frame_Set+0x132>
  1505. else
  1506. data[NessLab_ALC_ALARM] = 0;
  1507. 800111a: 687b ldr r3, [r7, #4]
  1508. 800111c: 3311 adds r3, #17
  1509. 800111e: 2200 movs r2, #0
  1510. 8001120: 701a strb r2, [r3, #0]
  1511. // data[NessLab_ALC_ALARM] = 0;
  1512. data[NessLab_ChecksumVal] = NessLab_Checksum(&data[NessLab_MsgID0], NessLab_MAX_INDEX - 5);
  1513. 8001122: 687b ldr r3, [r7, #4]
  1514. 8001124: 1c9a adds r2, r3, #2
  1515. 8001126: 687b ldr r3, [r7, #4]
  1516. 8001128: f103 0412 add.w r4, r3, #18
  1517. 800112c: 2110 movs r1, #16
  1518. 800112e: 4610 mov r0, r2
  1519. 8001130: f000 f90f bl 8001352 <NessLab_Checksum>
  1520. 8001134: 4603 mov r3, r0
  1521. 8001136: 7023 strb r3, [r4, #0]
  1522. /* Exception Header Tail Checksum */
  1523. data[NessLab_Tail0] = 0x7E;
  1524. 8001138: 687b ldr r3, [r7, #4]
  1525. 800113a: 3313 adds r3, #19
  1526. 800113c: 227e movs r2, #126 ; 0x7e
  1527. 800113e: 701a strb r2, [r3, #0]
  1528. data[NessLab_Tail1] = 0x7E;
  1529. 8001140: 687b ldr r3, [r7, #4]
  1530. 8001142: 3314 adds r3, #20
  1531. 8001144: 227e movs r2, #126 ; 0x7e
  1532. 8001146: 701a strb r2, [r3, #0]
  1533. data[NessLab_Tail1 + 1] = 0x0A;
  1534. 8001148: 687b ldr r3, [r7, #4]
  1535. 800114a: 3315 adds r3, #21
  1536. 800114c: 220a movs r2, #10
  1537. 800114e: 701a strb r2, [r3, #0]
  1538. }
  1539. 8001150: bf00 nop
  1540. 8001152: 370c adds r7, #12
  1541. 8001154: 46bd mov sp, r7
  1542. 8001156: bd90 pop {r4, r7, pc}
  1543. 8001158: 200003fc .word 0x200003fc
  1544. 0800115c <NessLab_Table_Frame_Set>:
  1545. void NessLab_Table_Frame_Set(uint8_t* data,uint8_t size){
  1546. 800115c: b590 push {r4, r7, lr}
  1547. 800115e: b087 sub sp, #28
  1548. 8001160: af00 add r7, sp, #0
  1549. 8001162: 6078 str r0, [r7, #4]
  1550. 8001164: 460b mov r3, r1
  1551. 8001166: 70fb strb r3, [r7, #3]
  1552. uint32_t i = 0;
  1553. 8001168: 2300 movs r3, #0
  1554. 800116a: 617b str r3, [r7, #20]
  1555. uint32_t CurrApiAddress = 0;
  1556. 800116c: 2300 movs r3, #0
  1557. 800116e: 60fb str r3, [r7, #12]
  1558. CurrApiAddress = FLASH_USER_USE_START_ADDR;
  1559. 8001170: 4b33 ldr r3, [pc, #204] ; (8001240 <NessLab_Table_Frame_Set+0xe4>)
  1560. 8001172: 60fb str r3, [r7, #12]
  1561. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  1562. 8001174: 68fb ldr r3, [r7, #12]
  1563. 8001176: 60bb str r3, [r7, #8]
  1564. uint8_t* pdata;
  1565. data[i++] = 0x7E;
  1566. 8001178: 697b ldr r3, [r7, #20]
  1567. 800117a: 1c5a adds r2, r3, #1
  1568. 800117c: 617a str r2, [r7, #20]
  1569. 800117e: 687a ldr r2, [r7, #4]
  1570. 8001180: 4413 add r3, r2
  1571. 8001182: 227e movs r2, #126 ; 0x7e
  1572. 8001184: 701a strb r2, [r3, #0]
  1573. data[i++] = 0x7E;
  1574. 8001186: 697b ldr r3, [r7, #20]
  1575. 8001188: 1c5a adds r2, r3, #1
  1576. 800118a: 617a str r2, [r7, #20]
  1577. 800118c: 687a ldr r2, [r7, #4]
  1578. 800118e: 4413 add r3, r2
  1579. 8001190: 227e movs r2, #126 ; 0x7e
  1580. 8001192: 701a strb r2, [r3, #0]
  1581. data[i++] = NessLab_STATUS_RES;// ID
  1582. 8001194: 697b ldr r3, [r7, #20]
  1583. 8001196: 1c5a adds r2, r3, #1
  1584. 8001198: 617a str r2, [r7, #20]
  1585. 800119a: 687a ldr r2, [r7, #4]
  1586. 800119c: 4413 add r3, r2
  1587. 800119e: 2266 movs r2, #102 ; 0x66
  1588. 80011a0: 701a strb r2, [r3, #0]
  1589. data[i++] = 0; // SEQ NUMBER
  1590. 80011a2: 697b ldr r3, [r7, #20]
  1591. 80011a4: 1c5a adds r2, r3, #1
  1592. 80011a6: 617a str r2, [r7, #20]
  1593. 80011a8: 687a ldr r2, [r7, #4]
  1594. 80011aa: 4413 add r3, r2
  1595. 80011ac: 2200 movs r2, #0
  1596. 80011ae: 701a strb r2, [r3, #0]
  1597. data[i++] = 0; // SEQ NUMBER
  1598. 80011b0: 697b ldr r3, [r7, #20]
  1599. 80011b2: 1c5a adds r2, r3, #1
  1600. 80011b4: 617a str r2, [r7, #20]
  1601. 80011b6: 687a ldr r2, [r7, #4]
  1602. 80011b8: 4413 add r3, r2
  1603. 80011ba: 2200 movs r2, #0
  1604. 80011bc: 701a strb r2, [r3, #0]
  1605. data[i++] = 0; // NessLab_Reserve0
  1606. 80011be: 697b ldr r3, [r7, #20]
  1607. 80011c0: 1c5a adds r2, r3, #1
  1608. 80011c2: 617a str r2, [r7, #20]
  1609. 80011c4: 687a ldr r2, [r7, #4]
  1610. 80011c6: 4413 add r3, r2
  1611. 80011c8: 2200 movs r2, #0
  1612. 80011ca: 701a strb r2, [r3, #0]
  1613. data[i++] = size; // Nesslab Size
  1614. 80011cc: 697b ldr r3, [r7, #20]
  1615. 80011ce: 1c5a adds r2, r3, #1
  1616. 80011d0: 617a str r2, [r7, #20]
  1617. 80011d2: 687a ldr r2, [r7, #4]
  1618. 80011d4: 4413 add r3, r2
  1619. 80011d6: 78fa ldrb r2, [r7, #3]
  1620. 80011d8: 701a strb r2, [r3, #0]
  1621. // NessLab_TalbleFlash_Read(&data[NessLab_DataLength + 1],100);
  1622. for(int a = 0; a < size; a++){
  1623. 80011da: 2300 movs r3, #0
  1624. 80011dc: 613b str r3, [r7, #16]
  1625. 80011de: e00c b.n 80011fa <NessLab_Table_Frame_Set+0x9e>
  1626. data[i++] = Currdata[a];
  1627. 80011e0: 693b ldr r3, [r7, #16]
  1628. 80011e2: 68ba ldr r2, [r7, #8]
  1629. 80011e4: 441a add r2, r3
  1630. 80011e6: 697b ldr r3, [r7, #20]
  1631. 80011e8: 1c59 adds r1, r3, #1
  1632. 80011ea: 6179 str r1, [r7, #20]
  1633. 80011ec: 6879 ldr r1, [r7, #4]
  1634. 80011ee: 440b add r3, r1
  1635. 80011f0: 7812 ldrb r2, [r2, #0]
  1636. 80011f2: 701a strb r2, [r3, #0]
  1637. for(int a = 0; a < size; a++){
  1638. 80011f4: 693b ldr r3, [r7, #16]
  1639. 80011f6: 3301 adds r3, #1
  1640. 80011f8: 613b str r3, [r7, #16]
  1641. 80011fa: 78fb ldrb r3, [r7, #3]
  1642. 80011fc: 693a ldr r2, [r7, #16]
  1643. 80011fe: 429a cmp r2, r3
  1644. 8001200: dbee blt.n 80011e0 <NessLab_Table_Frame_Set+0x84>
  1645. // printf("%02x ",Currdata[i]);
  1646. }
  1647. data[i++] = NessLab_Checksum(&data[NessLab_MsgID0], 100 + 5);
  1648. 8001202: 687b ldr r3, [r7, #4]
  1649. 8001204: 1c98 adds r0, r3, #2
  1650. 8001206: 697b ldr r3, [r7, #20]
  1651. 8001208: 1c5a adds r2, r3, #1
  1652. 800120a: 617a str r2, [r7, #20]
  1653. 800120c: 687a ldr r2, [r7, #4]
  1654. 800120e: 18d4 adds r4, r2, r3
  1655. 8001210: 2169 movs r1, #105 ; 0x69
  1656. 8001212: f000 f89e bl 8001352 <NessLab_Checksum>
  1657. 8001216: 4603 mov r3, r0
  1658. 8001218: 7023 strb r3, [r4, #0]
  1659. /* Exception Header Tail Checksum */
  1660. data[i++] = 0x7E;
  1661. 800121a: 697b ldr r3, [r7, #20]
  1662. 800121c: 1c5a adds r2, r3, #1
  1663. 800121e: 617a str r2, [r7, #20]
  1664. 8001220: 687a ldr r2, [r7, #4]
  1665. 8001222: 4413 add r3, r2
  1666. 8001224: 227e movs r2, #126 ; 0x7e
  1667. 8001226: 701a strb r2, [r3, #0]
  1668. data[i++] = 0x7E;
  1669. 8001228: 697b ldr r3, [r7, #20]
  1670. 800122a: 1c5a adds r2, r3, #1
  1671. 800122c: 617a str r2, [r7, #20]
  1672. 800122e: 687a ldr r2, [r7, #4]
  1673. 8001230: 4413 add r3, r2
  1674. 8001232: 227e movs r2, #126 ; 0x7e
  1675. 8001234: 701a strb r2, [r3, #0]
  1676. }
  1677. 8001236: bf00 nop
  1678. 8001238: 371c adds r7, #28
  1679. 800123a: 46bd mov sp, r7
  1680. 800123c: bd90 pop {r4, r7, pc}
  1681. 800123e: bf00 nop
  1682. 8001240: 0800ff38 .word 0x0800ff38
  1683. 08001244 <ADC_Initialize>:
  1684. /*Temp Calc*/
  1685. Currstatus.Temp_Monitor = ((ADC1value[1] & 0xFF00) >> 8);
  1686. }
  1687. void ADC_Initialize(){
  1688. 8001244: b580 push {r7, lr}
  1689. 8001246: af00 add r7, sp, #0
  1690. while(!(HAL_ADCEx_Calibration_Start(&hadc1)==HAL_OK));
  1691. 8001248: bf00 nop
  1692. 800124a: 4806 ldr r0, [pc, #24] ; (8001264 <ADC_Initialize+0x20>)
  1693. 800124c: f000 ff64 bl 8002118 <HAL_ADCEx_Calibration_Start>
  1694. 8001250: 4603 mov r3, r0
  1695. 8001252: 2b00 cmp r3, #0
  1696. 8001254: d1f9 bne.n 800124a <ADC_Initialize+0x6>
  1697. HAL_ADC_Start_DMA(&hadc1, (uint16_t*)ADC1value,(uint32_t) 3);
  1698. 8001256: 2203 movs r2, #3
  1699. 8001258: 4903 ldr r1, [pc, #12] ; (8001268 <ADC_Initialize+0x24>)
  1700. 800125a: 4802 ldr r0, [pc, #8] ; (8001264 <ADC_Initialize+0x20>)
  1701. 800125c: f000 fbfa bl 8001a54 <HAL_ADC_Start_DMA>
  1702. }
  1703. 8001260: bf00 nop
  1704. 8001262: bd80 pop {r7, pc}
  1705. 8001264: 2000076c .word 0x2000076c
  1706. 8001268: 20000414 .word 0x20000414
  1707. 800126c: 00000000 .word 0x00000000
  1708. 08001270 <ADC_Check>:
  1709. void ADC_Check(){
  1710. 8001270: b590 push {r4, r7, lr}
  1711. 8001272: b083 sub sp, #12
  1712. 8001274: af00 add r7, sp, #0
  1713. float tempval = 0;
  1714. 8001276: f04f 0300 mov.w r3, #0
  1715. 800127a: 607b str r3, [r7, #4]
  1716. for(int i = 0 ; i < 1; i++){
  1717. 800127c: 2300 movs r3, #0
  1718. 800127e: 603b str r3, [r7, #0]
  1719. 8001280: e01d b.n 80012be <ADC_Check+0x4e>
  1720. tempval = (ADC1value[i] * (3.3 / 4095));
  1721. 8001282: 4a29 ldr r2, [pc, #164] ; (8001328 <ADC_Check+0xb8>)
  1722. 8001284: 683b ldr r3, [r7, #0]
  1723. 8001286: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  1724. 800128a: b29b uxth r3, r3
  1725. 800128c: 4618 mov r0, r3
  1726. 800128e: f7ff f919 bl 80004c4 <__aeabi_i2d>
  1727. 8001292: a323 add r3, pc, #140 ; (adr r3, 8001320 <ADC_Check+0xb0>)
  1728. 8001294: e9d3 2300 ldrd r2, r3, [r3]
  1729. 8001298: f7ff f97e bl 8000598 <__aeabi_dmul>
  1730. 800129c: 4603 mov r3, r0
  1731. 800129e: 460c mov r4, r1
  1732. 80012a0: 4618 mov r0, r3
  1733. 80012a2: 4621 mov r1, r4
  1734. 80012a4: f7ff fc50 bl 8000b48 <__aeabi_d2f>
  1735. 80012a8: 4603 mov r3, r0
  1736. 80012aa: 607b str r3, [r7, #4]
  1737. tempval *= 1000;
  1738. 80012ac: 491f ldr r1, [pc, #124] ; (800132c <ADC_Check+0xbc>)
  1739. 80012ae: 6878 ldr r0, [r7, #4]
  1740. 80012b0: f7ff fc9a bl 8000be8 <__aeabi_fmul>
  1741. 80012b4: 4603 mov r3, r0
  1742. 80012b6: 607b str r3, [r7, #4]
  1743. for(int i = 0 ; i < 1; i++){
  1744. 80012b8: 683b ldr r3, [r7, #0]
  1745. 80012ba: 3301 adds r3, #1
  1746. 80012bc: 603b str r3, [r7, #0]
  1747. 80012be: 683b ldr r3, [r7, #0]
  1748. 80012c0: 2b00 cmp r3, #0
  1749. 80012c2: ddde ble.n 8001282 <ADC_Check+0x12>
  1750. }
  1751. printf("ADC1value[%d] : %f \r\n",0,tempval);
  1752. 80012c4: 6878 ldr r0, [r7, #4]
  1753. 80012c6: f7ff f90f bl 80004e8 <__aeabi_f2d>
  1754. 80012ca: 4603 mov r3, r0
  1755. 80012cc: 460c mov r4, r1
  1756. 80012ce: 461a mov r2, r3
  1757. 80012d0: 4623 mov r3, r4
  1758. 80012d2: 2100 movs r1, #0
  1759. 80012d4: 4816 ldr r0, [pc, #88] ; (8001330 <ADC_Check+0xc0>)
  1760. 80012d6: f004 fff1 bl 80062bc <iprintf>
  1761. // printf("ADC1value[%d] : %d \r\n",i,ADC1value[i] );
  1762. #if 1 // PYJ.2020.08.26_BEGIN --
  1763. Currstatus.DownLink_Forward_Det_H
  1764. = (((uint16_t)tempval & 0xFF00) >> 8);
  1765. 80012da: 6878 ldr r0, [r7, #4]
  1766. 80012dc: f7ff fdd4 bl 8000e88 <__aeabi_f2uiz>
  1767. 80012e0: 4603 mov r3, r0
  1768. 80012e2: b29b uxth r3, r3
  1769. 80012e4: 0a1b lsrs r3, r3, #8
  1770. 80012e6: b29b uxth r3, r3
  1771. 80012e8: b2da uxtb r2, r3
  1772. 80012ea: 4b12 ldr r3, [pc, #72] ; (8001334 <ADC_Check+0xc4>)
  1773. 80012ec: 71da strb r2, [r3, #7]
  1774. Currstatus.DownLink_Forward_Det_L
  1775. = (((uint16_t)tempval & 0x00FF) );
  1776. 80012ee: 6878 ldr r0, [r7, #4]
  1777. 80012f0: f7ff fdca bl 8000e88 <__aeabi_f2uiz>
  1778. 80012f4: 4603 mov r3, r0
  1779. 80012f6: b29b uxth r3, r3
  1780. 80012f8: b2da uxtb r2, r3
  1781. 80012fa: 4b0e ldr r3, [pc, #56] ; (8001334 <ADC_Check+0xc4>)
  1782. 80012fc: 721a strb r2, [r3, #8]
  1783. printf("Currstatus.DownLink_Forward_Det : %d \r\n",Currstatus.DownLink_Forward_Det_H << 8 | Currstatus.DownLink_Forward_Det_L);
  1784. 80012fe: 4b0d ldr r3, [pc, #52] ; (8001334 <ADC_Check+0xc4>)
  1785. 8001300: 79db ldrb r3, [r3, #7]
  1786. 8001302: 021b lsls r3, r3, #8
  1787. 8001304: 4a0b ldr r2, [pc, #44] ; (8001334 <ADC_Check+0xc4>)
  1788. 8001306: 7a12 ldrb r2, [r2, #8]
  1789. 8001308: 4313 orrs r3, r2
  1790. 800130a: 4619 mov r1, r3
  1791. 800130c: 480a ldr r0, [pc, #40] ; (8001338 <ADC_Check+0xc8>)
  1792. 800130e: f004 ffd5 bl 80062bc <iprintf>
  1793. #endif // PYJ.2020.08.26_END --
  1794. adc1cnt = 0;
  1795. 8001312: 4b0a ldr r3, [pc, #40] ; (800133c <ADC_Check+0xcc>)
  1796. 8001314: 2200 movs r2, #0
  1797. 8001316: 801a strh r2, [r3, #0]
  1798. }
  1799. 8001318: bf00 nop
  1800. 800131a: 370c adds r7, #12
  1801. 800131c: 46bd mov sp, r7
  1802. 800131e: bd90 pop {r4, r7, pc}
  1803. 8001320: e734d9b4 .word 0xe734d9b4
  1804. 8001324: 3f4a680c .word 0x3f4a680c
  1805. 8001328: 20000414 .word 0x20000414
  1806. 800132c: 447a0000 .word 0x447a0000
  1807. 8001330: 08008300 .word 0x08008300
  1808. 8001334: 200003fc .word 0x200003fc
  1809. 8001338: 08008318 .word 0x08008318
  1810. 800133c: 2000038e .word 0x2000038e
  1811. 08001340 <HAL_ADC_ConvCpltCallback>:
  1812. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
  1813. {
  1814. 8001340: b480 push {r7}
  1815. 8001342: b083 sub sp, #12
  1816. 8001344: af00 add r7, sp, #0
  1817. 8001346: 6078 str r0, [r7, #4]
  1818. // ADC1valuearray[i][adc1cnt] = ADC1value[i];
  1819. // }
  1820. // adc1cnt++;
  1821. // }
  1822. }
  1823. }
  1824. 8001348: bf00 nop
  1825. 800134a: 370c adds r7, #12
  1826. 800134c: 46bd mov sp, r7
  1827. 800134e: bc80 pop {r7}
  1828. 8001350: 4770 bx lr
  1829. 08001352 <NessLab_Checksum>:
  1830. crcret ^ ~0U;
  1831. return (crcret == checksum ? CHECKSUM_ERROR : NO_ERROR);
  1832. }
  1833. uint8_t NessLab_Checksum(uint8_t *data,uint8_t size){
  1834. 8001352: b480 push {r7}
  1835. 8001354: b085 sub sp, #20
  1836. 8001356: af00 add r7, sp, #0
  1837. 8001358: 6078 str r0, [r7, #4]
  1838. 800135a: 460b mov r3, r1
  1839. 800135c: 70fb strb r3, [r7, #3]
  1840. uint16_t ret = 0;
  1841. 800135e: 2300 movs r3, #0
  1842. 8001360: 81fb strh r3, [r7, #14]
  1843. // printf("Crc Process : ");
  1844. for(int i = 0; i < size; i++){
  1845. 8001362: 2300 movs r3, #0
  1846. 8001364: 60bb str r3, [r7, #8]
  1847. 8001366: e00c b.n 8001382 <NessLab_Checksum+0x30>
  1848. ret = ((ret + data[i]) & 0xFF);
  1849. 8001368: 68bb ldr r3, [r7, #8]
  1850. 800136a: 687a ldr r2, [r7, #4]
  1851. 800136c: 4413 add r3, r2
  1852. 800136e: 781b ldrb r3, [r3, #0]
  1853. 8001370: b29a uxth r2, r3
  1854. 8001372: 89fb ldrh r3, [r7, #14]
  1855. 8001374: 4413 add r3, r2
  1856. 8001376: b29b uxth r3, r3
  1857. 8001378: b2db uxtb r3, r3
  1858. 800137a: 81fb strh r3, [r7, #14]
  1859. for(int i = 0; i < size; i++){
  1860. 800137c: 68bb ldr r3, [r7, #8]
  1861. 800137e: 3301 adds r3, #1
  1862. 8001380: 60bb str r3, [r7, #8]
  1863. 8001382: 78fb ldrb r3, [r7, #3]
  1864. 8001384: 68ba ldr r2, [r7, #8]
  1865. 8001386: 429a cmp r2, r3
  1866. 8001388: dbee blt.n 8001368 <NessLab_Checksum+0x16>
  1867. // printf(" %x + %x \r\n",ret,data[i]);
  1868. }
  1869. // printf("Result : ");
  1870. ret = (~ret) + 1;
  1871. 800138a: 89fb ldrh r3, [r7, #14]
  1872. 800138c: 425b negs r3, r3
  1873. 800138e: 81fb strh r3, [r7, #14]
  1874. // printf("ret [i] : %x \r\n",ret);
  1875. return (uint8_t)(ret & 0x00FF);
  1876. 8001390: 89fb ldrh r3, [r7, #14]
  1877. 8001392: b2db uxtb r3, r3
  1878. }
  1879. 8001394: 4618 mov r0, r3
  1880. 8001396: 3714 adds r7, #20
  1881. 8001398: 46bd mov sp, r7
  1882. 800139a: bc80 pop {r7}
  1883. 800139c: 4770 bx lr
  1884. ...
  1885. 080013a0 <NessLab_CheckSum_Check>:
  1886. bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum){
  1887. 80013a0: b580 push {r7, lr}
  1888. 80013a2: b084 sub sp, #16
  1889. 80013a4: af00 add r7, sp, #0
  1890. 80013a6: 6078 str r0, [r7, #4]
  1891. 80013a8: 460b mov r3, r1
  1892. 80013aa: 70fb strb r3, [r7, #3]
  1893. 80013ac: 4613 mov r3, r2
  1894. 80013ae: 70bb strb r3, [r7, #2]
  1895. uint8_t dataret = 0;
  1896. 80013b0: 2300 movs r3, #0
  1897. 80013b2: 73fb strb r3, [r7, #15]
  1898. bool ret = false;
  1899. 80013b4: 2300 movs r3, #0
  1900. 80013b6: 73bb strb r3, [r7, #14]
  1901. // printf("size : %d \r\n",size);
  1902. for(int i = 0; i < size; i++){
  1903. 80013b8: 2300 movs r3, #0
  1904. 80013ba: 60bb str r3, [r7, #8]
  1905. 80013bc: e009 b.n 80013d2 <NessLab_CheckSum_Check+0x32>
  1906. dataret += data[i];
  1907. 80013be: 68bb ldr r3, [r7, #8]
  1908. 80013c0: 687a ldr r2, [r7, #4]
  1909. 80013c2: 4413 add r3, r2
  1910. 80013c4: 781a ldrb r2, [r3, #0]
  1911. 80013c6: 7bfb ldrb r3, [r7, #15]
  1912. 80013c8: 4413 add r3, r2
  1913. 80013ca: 73fb strb r3, [r7, #15]
  1914. for(int i = 0; i < size; i++){
  1915. 80013cc: 68bb ldr r3, [r7, #8]
  1916. 80013ce: 3301 adds r3, #1
  1917. 80013d0: 60bb str r3, [r7, #8]
  1918. 80013d2: 78fb ldrb r3, [r7, #3]
  1919. 80013d4: 68ba ldr r2, [r7, #8]
  1920. 80013d6: 429a cmp r2, r3
  1921. 80013d8: dbf1 blt.n 80013be <NessLab_CheckSum_Check+0x1e>
  1922. // printf("data [i] : %x \r\n",data[i]);
  1923. }
  1924. dataret = (~dataret) + 1;
  1925. 80013da: 7bfb ldrb r3, [r7, #15]
  1926. 80013dc: 425b negs r3, r3
  1927. 80013de: 73fb strb r3, [r7, #15]
  1928. printf("\r\ndataret : %x /// checksum : %x \r\n",dataret,checksum);
  1929. 80013e0: 7bfb ldrb r3, [r7, #15]
  1930. 80013e2: 78ba ldrb r2, [r7, #2]
  1931. 80013e4: 4619 mov r1, r3
  1932. 80013e6: 4808 ldr r0, [pc, #32] ; (8001408 <NessLab_CheckSum_Check+0x68>)
  1933. 80013e8: f004 ff68 bl 80062bc <iprintf>
  1934. if(dataret != checksum){
  1935. 80013ec: 7bfa ldrb r2, [r7, #15]
  1936. 80013ee: 78bb ldrb r3, [r7, #2]
  1937. 80013f0: 429a cmp r2, r3
  1938. 80013f2: d002 beq.n 80013fa <NessLab_CheckSum_Check+0x5a>
  1939. ret = false;
  1940. 80013f4: 2300 movs r3, #0
  1941. 80013f6: 73bb strb r3, [r7, #14]
  1942. 80013f8: e001 b.n 80013fe <NessLab_CheckSum_Check+0x5e>
  1943. }else{
  1944. ret = true;
  1945. 80013fa: 2301 movs r3, #1
  1946. 80013fc: 73bb strb r3, [r7, #14]
  1947. }
  1948. return ret;
  1949. 80013fe: 7bbb ldrb r3, [r7, #14]
  1950. }
  1951. 8001400: 4618 mov r0, r3
  1952. 8001402: 3710 adds r7, #16
  1953. 8001404: 46bd mov sp, r7
  1954. 8001406: bd80 pop {r7, pc}
  1955. 8001408: 08008340 .word 0x08008340
  1956. 0800140c <DataErase_Func>:
  1957. __set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
  1958. jump_to_app();
  1959. }
  1960. bool EraseInit = false;
  1961. void DataErase_Func(uint32_t User_Address,uint32_t size){
  1962. 800140c: b580 push {r7, lr}
  1963. 800140e: b082 sub sp, #8
  1964. 8001410: af00 add r7, sp, #0
  1965. 8001412: 6078 str r0, [r7, #4]
  1966. 8001414: 6039 str r1, [r7, #0]
  1967. static FLASH_EraseInitTypeDef EraseInitStruct;
  1968. static uint32_t PAGEError = 0;
  1969. HAL_FLASH_Unlock();
  1970. 8001416: f001 fad9 bl 80029cc <HAL_FLASH_Unlock>
  1971. EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
  1972. 800141a: 4b1b ldr r3, [pc, #108] ; (8001488 <DataErase_Func+0x7c>)
  1973. 800141c: 2200 movs r2, #0
  1974. 800141e: 601a str r2, [r3, #0]
  1975. EraseInitStruct.PageAddress = FLASH_USER_USE_START_ADDR;
  1976. 8001420: 4b19 ldr r3, [pc, #100] ; (8001488 <DataErase_Func+0x7c>)
  1977. 8001422: 4a1a ldr r2, [pc, #104] ; (800148c <DataErase_Func+0x80>)
  1978. 8001424: 609a str r2, [r3, #8]
  1979. EraseInitStruct.NbPages = ((FLASH_USER_END_ADDR - FLASH_USER_USE_START_ADDR) / FLASH_PAGE_SIZE) + 1;
  1980. 8001426: 4b18 ldr r3, [pc, #96] ; (8001488 <DataErase_Func+0x7c>)
  1981. 8001428: 2201 movs r2, #1
  1982. 800142a: 60da str r2, [r3, #12]
  1983. UserAddress = User_Address;
  1984. 800142c: 4a18 ldr r2, [pc, #96] ; (8001490 <DataErase_Func+0x84>)
  1985. 800142e: 687b ldr r3, [r7, #4]
  1986. 8001430: 6013 str r3, [r2, #0]
  1987. printf("NbPages : %x \r\n",EraseInitStruct.NbPages );
  1988. 8001432: 4b15 ldr r3, [pc, #84] ; (8001488 <DataErase_Func+0x7c>)
  1989. 8001434: 68db ldr r3, [r3, #12]
  1990. 8001436: 4619 mov r1, r3
  1991. 8001438: 4816 ldr r0, [pc, #88] ; (8001494 <DataErase_Func+0x88>)
  1992. 800143a: f004 ff3f bl 80062bc <iprintf>
  1993. printf("EraseInitStruct.PageAddress : %x \r\n",EraseInitStruct.PageAddress);
  1994. 800143e: 4b12 ldr r3, [pc, #72] ; (8001488 <DataErase_Func+0x7c>)
  1995. 8001440: 689b ldr r3, [r3, #8]
  1996. 8001442: 4619 mov r1, r3
  1997. 8001444: 4814 ldr r0, [pc, #80] ; (8001498 <DataErase_Func+0x8c>)
  1998. 8001446: f004 ff39 bl 80062bc <iprintf>
  1999. printf("Erase Start\r\n");
  2000. 800144a: 4814 ldr r0, [pc, #80] ; (800149c <DataErase_Func+0x90>)
  2001. 800144c: f004 ffaa bl 80063a4 <puts>
  2002. if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
  2003. 8001450: 4913 ldr r1, [pc, #76] ; (80014a0 <DataErase_Func+0x94>)
  2004. 8001452: 480d ldr r0, [pc, #52] ; (8001488 <DataErase_Func+0x7c>)
  2005. 8001454: f001 fba2 bl 8002b9c <HAL_FLASHEx_Erase>
  2006. 8001458: 4603 mov r3, r0
  2007. 800145a: 2b00 cmp r3, #0
  2008. 800145c: d007 beq.n 800146e <DataErase_Func+0x62>
  2009. */
  2010. /* Infinite loop */
  2011. while (1)
  2012. {
  2013. /* Make LED2 blink (100ms on, 2s off) to indicate error in Erase operation */
  2014. printf("HAL_FLASHEx_Erase Error\r\n");
  2015. 800145e: 4811 ldr r0, [pc, #68] ; (80014a4 <DataErase_Func+0x98>)
  2016. 8001460: f004 ffa0 bl 80063a4 <puts>
  2017. HAL_Delay(2000);
  2018. 8001464: f44f 60fa mov.w r0, #2000 ; 0x7d0
  2019. 8001468: f000 f9fa bl 8001860 <HAL_Delay>
  2020. printf("HAL_FLASHEx_Erase Error\r\n");
  2021. 800146c: e7f7 b.n 800145e <DataErase_Func+0x52>
  2022. }
  2023. }
  2024. EraseInit = true;
  2025. 800146e: 4b0e ldr r3, [pc, #56] ; (80014a8 <DataErase_Func+0x9c>)
  2026. 8001470: 2201 movs r2, #1
  2027. 8001472: 701a strb r2, [r3, #0]
  2028. printf("Erase End\r\n");
  2029. 8001474: 480d ldr r0, [pc, #52] ; (80014ac <DataErase_Func+0xa0>)
  2030. 8001476: f004 ff95 bl 80063a4 <puts>
  2031. HAL_FLASH_Lock();
  2032. 800147a: f001 facd bl 8002a18 <HAL_FLASH_Lock>
  2033. }
  2034. 800147e: bf00 nop
  2035. 8001480: 3708 adds r7, #8
  2036. 8001482: 46bd mov sp, r7
  2037. 8001484: bd80 pop {r7, pc}
  2038. 8001486: bf00 nop
  2039. 8001488: 20000398 .word 0x20000398
  2040. 800148c: 0800ff38 .word 0x0800ff38
  2041. 8001490: 20000390 .word 0x20000390
  2042. 8001494: 08008380 .word 0x08008380
  2043. 8001498: 08008390 .word 0x08008390
  2044. 800149c: 080083b4 .word 0x080083b4
  2045. 80014a0: 200003a8 .word 0x200003a8
  2046. 80014a4: 080083c4 .word 0x080083c4
  2047. 80014a8: 20000394 .word 0x20000394
  2048. 80014ac: 080083e0 .word 0x080083e0
  2049. 080014b0 <FLASH_Write_Func>:
  2050. uint8_t FLASH_Write_Func(uint8_t* data,uint32_t size){
  2051. 80014b0: b590 push {r4, r7, lr}
  2052. 80014b2: b089 sub sp, #36 ; 0x24
  2053. 80014b4: af00 add r7, sp, #0
  2054. 80014b6: 6078 str r0, [r7, #4]
  2055. 80014b8: 6039 str r1, [r7, #0]
  2056. //static FLASH_EraseInitTypeDef EraseInitStruct;
  2057. //static uint32_t PAGEError = 0;
  2058. static uint32_t DownloadIndex;
  2059. static __IO uint32_t data32 = 0 , MemoryProgramStatus = 0;
  2060. int dataindex = 0;
  2061. 80014ba: 2300 movs r3, #0
  2062. 80014bc: 61bb str r3, [r7, #24]
  2063. uint32_t writedata = 0;
  2064. 80014be: 2300 movs r3, #0
  2065. 80014c0: 617b str r3, [r7, #20]
  2066. uint32_t CurrApiAddress = 0;
  2067. 80014c2: 2300 movs r3, #0
  2068. 80014c4: 613b str r3, [r7, #16]
  2069. uint8_t ret = 0;
  2070. 80014c6: 2300 movs r3, #0
  2071. 80014c8: 73fb strb r3, [r7, #15]
  2072. CurrApiAddress = FLASH_USER_USE_START_ADDR;
  2073. 80014ca: 4b35 ldr r3, [pc, #212] ; (80015a0 <FLASH_Write_Func+0xf0>)
  2074. 80014cc: 613b str r3, [r7, #16]
  2075. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  2076. 80014ce: 693b ldr r3, [r7, #16]
  2077. 80014d0: 60bb str r3, [r7, #8]
  2078. printf("HAL_FLASH_Program Start\r\n");
  2079. 80014d2: 4834 ldr r0, [pc, #208] ; (80015a4 <FLASH_Write_Func+0xf4>)
  2080. 80014d4: f004 ff66 bl 80063a4 <puts>
  2081. DownloadIndex += size;
  2082. 80014d8: 4b33 ldr r3, [pc, #204] ; (80015a8 <FLASH_Write_Func+0xf8>)
  2083. 80014da: 681a ldr r2, [r3, #0]
  2084. 80014dc: 683b ldr r3, [r7, #0]
  2085. 80014de: 4413 add r3, r2
  2086. 80014e0: 4a31 ldr r2, [pc, #196] ; (80015a8 <FLASH_Write_Func+0xf8>)
  2087. 80014e2: 6013 str r3, [r2, #0]
  2088. printf("User_Address : %x \r\n",UserAddress);
  2089. 80014e4: 4b31 ldr r3, [pc, #196] ; (80015ac <FLASH_Write_Func+0xfc>)
  2090. 80014e6: 681b ldr r3, [r3, #0]
  2091. 80014e8: 4619 mov r1, r3
  2092. 80014ea: 4831 ldr r0, [pc, #196] ; (80015b0 <FLASH_Write_Func+0x100>)
  2093. 80014ec: f004 fee6 bl 80062bc <iprintf>
  2094. HAL_FLASH_Unlock();
  2095. 80014f0: f001 fa6c bl 80029cc <HAL_FLASH_Unlock>
  2096. for(int downindex = 0; downindex < size; downindex+=4)
  2097. 80014f4: 2300 movs r3, #0
  2098. 80014f6: 61fb str r3, [r7, #28]
  2099. 80014f8: e041 b.n 800157e <FLASH_Write_Func+0xce>
  2100. {
  2101. writedata = data[downindex + 0] ;
  2102. 80014fa: 69fb ldr r3, [r7, #28]
  2103. 80014fc: 687a ldr r2, [r7, #4]
  2104. 80014fe: 4413 add r3, r2
  2105. 8001500: 781b ldrb r3, [r3, #0]
  2106. 8001502: 617b str r3, [r7, #20]
  2107. writedata += data[downindex + 1] << 8 ;
  2108. 8001504: 69fb ldr r3, [r7, #28]
  2109. 8001506: 3301 adds r3, #1
  2110. 8001508: 687a ldr r2, [r7, #4]
  2111. 800150a: 4413 add r3, r2
  2112. 800150c: 781b ldrb r3, [r3, #0]
  2113. 800150e: 021b lsls r3, r3, #8
  2114. 8001510: 461a mov r2, r3
  2115. 8001512: 697b ldr r3, [r7, #20]
  2116. 8001514: 4413 add r3, r2
  2117. 8001516: 617b str r3, [r7, #20]
  2118. writedata += data[downindex + 2] << 16;
  2119. 8001518: 69fb ldr r3, [r7, #28]
  2120. 800151a: 3302 adds r3, #2
  2121. 800151c: 687a ldr r2, [r7, #4]
  2122. 800151e: 4413 add r3, r2
  2123. 8001520: 781b ldrb r3, [r3, #0]
  2124. 8001522: 041b lsls r3, r3, #16
  2125. 8001524: 461a mov r2, r3
  2126. 8001526: 697b ldr r3, [r7, #20]
  2127. 8001528: 4413 add r3, r2
  2128. 800152a: 617b str r3, [r7, #20]
  2129. writedata += data[downindex + 3] << 24;
  2130. 800152c: 69fb ldr r3, [r7, #28]
  2131. 800152e: 3303 adds r3, #3
  2132. 8001530: 687a ldr r2, [r7, #4]
  2133. 8001532: 4413 add r3, r2
  2134. 8001534: 781b ldrb r3, [r3, #0]
  2135. 8001536: 061b lsls r3, r3, #24
  2136. 8001538: 461a mov r2, r3
  2137. 800153a: 697b ldr r3, [r7, #20]
  2138. 800153c: 4413 add r3, r2
  2139. 800153e: 617b str r3, [r7, #20]
  2140. if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, UserAddress,writedata) == HAL_OK)
  2141. 8001540: 4b1a ldr r3, [pc, #104] ; (80015ac <FLASH_Write_Func+0xfc>)
  2142. 8001542: 6819 ldr r1, [r3, #0]
  2143. 8001544: 697b ldr r3, [r7, #20]
  2144. 8001546: f04f 0400 mov.w r4, #0
  2145. 800154a: 461a mov r2, r3
  2146. 800154c: 4623 mov r3, r4
  2147. 800154e: 2002 movs r0, #2
  2148. 8001550: f001 f9cc bl 80028ec <HAL_FLASH_Program>
  2149. 8001554: 4603 mov r3, r0
  2150. 8001556: 2b00 cmp r3, #0
  2151. 8001558: d105 bne.n 8001566 <FLASH_Write_Func+0xb6>
  2152. {
  2153. UserAddress += 4;
  2154. 800155a: 4b14 ldr r3, [pc, #80] ; (80015ac <FLASH_Write_Func+0xfc>)
  2155. 800155c: 681b ldr r3, [r3, #0]
  2156. 800155e: 3304 adds r3, #4
  2157. 8001560: 4a12 ldr r2, [pc, #72] ; (80015ac <FLASH_Write_Func+0xfc>)
  2158. 8001562: 6013 str r3, [r2, #0]
  2159. 8001564: e008 b.n 8001578 <FLASH_Write_Func+0xc8>
  2160. }
  2161. else
  2162. {
  2163. printf("HAL_FLASH_Program Error\r\n");
  2164. 8001566: 4813 ldr r0, [pc, #76] ; (80015b4 <FLASH_Write_Func+0x104>)
  2165. 8001568: f004 ff1c bl 80063a4 <puts>
  2166. printf("Flash Failed %x \r\n",UserAddress);
  2167. 800156c: 4b0f ldr r3, [pc, #60] ; (80015ac <FLASH_Write_Func+0xfc>)
  2168. 800156e: 681b ldr r3, [r3, #0]
  2169. 8001570: 4619 mov r1, r3
  2170. 8001572: 4811 ldr r0, [pc, #68] ; (80015b8 <FLASH_Write_Func+0x108>)
  2171. 8001574: f004 fea2 bl 80062bc <iprintf>
  2172. for(int downindex = 0; downindex < size; downindex+=4)
  2173. 8001578: 69fb ldr r3, [r7, #28]
  2174. 800157a: 3304 adds r3, #4
  2175. 800157c: 61fb str r3, [r7, #28]
  2176. 800157e: 69fb ldr r3, [r7, #28]
  2177. 8001580: 683a ldr r2, [r7, #0]
  2178. 8001582: 429a cmp r2, r3
  2179. 8001584: d8b9 bhi.n 80014fa <FLASH_Write_Func+0x4a>
  2180. }
  2181. }
  2182. printf("HAL_FLASH_Program END %x \r\n",UserAddress);
  2183. 8001586: 4b09 ldr r3, [pc, #36] ; (80015ac <FLASH_Write_Func+0xfc>)
  2184. 8001588: 681b ldr r3, [r3, #0]
  2185. 800158a: 4619 mov r1, r3
  2186. 800158c: 480b ldr r0, [pc, #44] ; (80015bc <FLASH_Write_Func+0x10c>)
  2187. 800158e: f004 fe95 bl 80062bc <iprintf>
  2188. /* Lock the Flash to disable the flash control register access (recommended
  2189. to protect the FLASH memory against possible unwanted operation) *********/
  2190. HAL_FLASH_Lock();
  2191. 8001592: f001 fa41 bl 8002a18 <HAL_FLASH_Lock>
  2192. return 0;
  2193. 8001596: 2300 movs r3, #0
  2194. /* Check if the programmed data is OK
  2195. MemoryProgramStatus = 0: data programmed correctly
  2196. MemoryProgramStatus != 0: number of words not programmed correctly ******/
  2197. }
  2198. 8001598: 4618 mov r0, r3
  2199. 800159a: 3724 adds r7, #36 ; 0x24
  2200. 800159c: 46bd mov sp, r7
  2201. 800159e: bd90 pop {r4, r7, pc}
  2202. 80015a0: 0800ff38 .word 0x0800ff38
  2203. 80015a4: 080083ec .word 0x080083ec
  2204. 80015a8: 200003ac .word 0x200003ac
  2205. 80015ac: 20000390 .word 0x20000390
  2206. 80015b0: 08008408 .word 0x08008408
  2207. 80015b4: 08008420 .word 0x08008420
  2208. 80015b8: 0800843c .word 0x0800843c
  2209. 80015bc: 08008450 .word 0x08008450
  2210. 080015c0 <InitUartQueue>:
  2211. extern bool Bluecell_Operate(uint8_t* data);
  2212. extern void MBIC_Operate(uint8_t * data);
  2213. extern bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum);
  2214. void InitUartQueue(pUARTQUEUE pQueue)
  2215. {
  2216. 80015c0: b580 push {r7, lr}
  2217. 80015c2: b082 sub sp, #8
  2218. 80015c4: af00 add r7, sp, #0
  2219. 80015c6: 6078 str r0, [r7, #4]
  2220. pQueue->data = pQueue->head = pQueue->tail = 0;
  2221. 80015c8: 687b ldr r3, [r7, #4]
  2222. 80015ca: 2200 movs r2, #0
  2223. 80015cc: 605a str r2, [r3, #4]
  2224. 80015ce: 687b ldr r3, [r7, #4]
  2225. 80015d0: 685a ldr r2, [r3, #4]
  2226. 80015d2: 687b ldr r3, [r7, #4]
  2227. 80015d4: 601a str r2, [r3, #0]
  2228. 80015d6: 687b ldr r3, [r7, #4]
  2229. 80015d8: 681a ldr r2, [r3, #0]
  2230. 80015da: 687b ldr r3, [r7, #4]
  2231. 80015dc: 609a str r2, [r3, #8]
  2232. uart_hal_tx.output_p = uart_hal_tx.input_p = 0;
  2233. 80015de: 2100 movs r1, #0
  2234. 80015e0: 4b08 ldr r3, [pc, #32] ; (8001604 <InitUartQueue+0x44>)
  2235. 80015e2: 460a mov r2, r1
  2236. 80015e4: f8a3 2080 strh.w r2, [r3, #128] ; 0x80
  2237. 80015e8: 4b06 ldr r3, [pc, #24] ; (8001604 <InitUartQueue+0x44>)
  2238. 80015ea: 460a mov r2, r1
  2239. 80015ec: f8a3 2082 strh.w r2, [r3, #130] ; 0x82
  2240. // HAL_UART_Receive_IT(&huart2,rxBuf,5);
  2241. if (HAL_UART_Receive_DMA(&hMain, MainQueue.Buffer, 1) != HAL_OK)
  2242. 80015f0: 2201 movs r2, #1
  2243. 80015f2: 4905 ldr r1, [pc, #20] ; (8001608 <InitUartQueue+0x48>)
  2244. 80015f4: 4805 ldr r0, [pc, #20] ; (800160c <InitUartQueue+0x4c>)
  2245. 80015f6: f002 fdf7 bl 80041e8 <HAL_UART_Receive_DMA>
  2246. // {
  2247. //// _Error_Handler(__FILE__, __LINE__);
  2248. // }
  2249. //HAL_UART_Receive_DMA(&hTerminal, TerminalQueue.Buffer, 1);
  2250. //HAL_UART_Receive_IT(hTerminal, pQueue->Buffer + pQueue->head, 1);
  2251. }
  2252. 80015fa: bf00 nop
  2253. 80015fc: 3708 adds r7, #8
  2254. 80015fe: 46bd mov sp, r7
  2255. 8001600: bd80 pop {r7, pc}
  2256. 8001602: bf00 nop
  2257. 8001604: 200005b4 .word 0x200005b4
  2258. 8001608: 200004a8 .word 0x200004a8
  2259. 800160c: 200007e0 .word 0x200007e0
  2260. 08001610 <HAL_UART_RxCpltCallback>:
  2261. void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
  2262. {
  2263. 8001610: b580 push {r7, lr}
  2264. 8001612: b084 sub sp, #16
  2265. 8001614: af00 add r7, sp, #0
  2266. 8001616: 6078 str r0, [r7, #4]
  2267. // UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);
  2268. pUARTQUEUE pQueue;
  2269. // printf("Function : %s : \r\n",__func__);
  2270. //printf("%02x ",uart_buf[i]);
  2271. UartRxTimerCnt = 0;
  2272. 8001618: 4b15 ldr r3, [pc, #84] ; (8001670 <HAL_UART_RxCpltCallback+0x60>)
  2273. 800161a: 2200 movs r2, #0
  2274. 800161c: 601a str r2, [r3, #0]
  2275. pQueue = &MainQueue;
  2276. 800161e: 4b15 ldr r3, [pc, #84] ; (8001674 <HAL_UART_RxCpltCallback+0x64>)
  2277. 8001620: 60fb str r3, [r7, #12]
  2278. pQueue->head++;
  2279. 8001622: 68fb ldr r3, [r7, #12]
  2280. 8001624: 681b ldr r3, [r3, #0]
  2281. 8001626: 1c5a adds r2, r3, #1
  2282. 8001628: 68fb ldr r3, [r7, #12]
  2283. 800162a: 601a str r2, [r3, #0]
  2284. if (pQueue->head >= QUEUE_BUFFER_LENGTH) pQueue->head = 0;
  2285. 800162c: 68fb ldr r3, [r7, #12]
  2286. 800162e: 681b ldr r3, [r3, #0]
  2287. 8001630: 2b7f cmp r3, #127 ; 0x7f
  2288. 8001632: dd02 ble.n 800163a <HAL_UART_RxCpltCallback+0x2a>
  2289. 8001634: 68fb ldr r3, [r7, #12]
  2290. 8001636: 2200 movs r2, #0
  2291. 8001638: 601a str r2, [r3, #0]
  2292. pQueue->data++;
  2293. 800163a: 68fb ldr r3, [r7, #12]
  2294. 800163c: 689b ldr r3, [r3, #8]
  2295. 800163e: 1c5a adds r2, r3, #1
  2296. 8001640: 68fb ldr r3, [r7, #12]
  2297. 8001642: 609a str r2, [r3, #8]
  2298. if (pQueue->data >= QUEUE_BUFFER_LENGTH)
  2299. 8001644: 68fb ldr r3, [r7, #12]
  2300. 8001646: 689b ldr r3, [r3, #8]
  2301. 8001648: 2b7f cmp r3, #127 ; 0x7f
  2302. 800164a: dd02 ble.n 8001652 <HAL_UART_RxCpltCallback+0x42>
  2303. GetDataFromUartQueue(huart);
  2304. 800164c: 6878 ldr r0, [r7, #4]
  2305. 800164e: f000 f815 bl 800167c <GetDataFromUartQueue>
  2306. HAL_UART_Receive_IT(&hMain, pQueue->Buffer + pQueue->head, 1);
  2307. 8001652: 68fb ldr r3, [r7, #12]
  2308. 8001654: 330c adds r3, #12
  2309. 8001656: 68fa ldr r2, [r7, #12]
  2310. 8001658: 6812 ldr r2, [r2, #0]
  2311. 800165a: 4413 add r3, r2
  2312. 800165c: 2201 movs r2, #1
  2313. 800165e: 4619 mov r1, r3
  2314. 8001660: 4805 ldr r0, [pc, #20] ; (8001678 <HAL_UART_RxCpltCallback+0x68>)
  2315. 8001662: f002 fd01 bl 8004068 <HAL_UART_Receive_IT>
  2316. // HAL_UART_Receive_DMA(&hTest, pQueue->Buffer + pQueue->head, 1);
  2317. // Set_UartRcv(true);
  2318. }
  2319. 8001666: bf00 nop
  2320. 8001668: 3710 adds r7, #16
  2321. 800166a: 46bd mov sp, r7
  2322. 800166c: bd80 pop {r7, pc}
  2323. 800166e: bf00 nop
  2324. 8001670: 200003b8 .word 0x200003b8
  2325. 8001674: 2000049c .word 0x2000049c
  2326. 8001678: 200007e0 .word 0x200007e0
  2327. 0800167c <GetDataFromUartQueue>:
  2328. // HAL_UART_Receive_DMA(&hTerminal, pQueue->Buffer + pQueue->head, 10);
  2329. }
  2330. void GetDataFromUartQueue(UART_HandleTypeDef *huart)
  2331. {
  2332. 800167c: b580 push {r7, lr}
  2333. 800167e: b086 sub sp, #24
  2334. 8001680: af00 add r7, sp, #0
  2335. 8001682: 6078 str r0, [r7, #4]
  2336. volatile static int cnt;
  2337. bool ret = 0;
  2338. 8001684: 2300 movs r3, #0
  2339. 8001686: 74fb strb r3, [r7, #19]
  2340. /* bool chksumret = 0;
  2341. uint16_t Length = 0;
  2342. uint16_t CrcChk = 0;
  2343. UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);*/
  2344. // UART_HandleTypeDef *dst = &hTerminal;
  2345. pUARTQUEUE pQueue = &MainQueue;
  2346. 8001688: 4b3d ldr r3, [pc, #244] ; (8001780 <GetDataFromUartQueue+0x104>)
  2347. 800168a: 60fb str r3, [r7, #12]
  2348. // if (HAL_UART_Transmit(dst, pQueue->Buffer + pQueue->tail, 1, 3000) != HAL_OK)
  2349. // {
  2350. // _Error_Handler(__FILE__, __LINE__);
  2351. // }
  2352. uart_buf[cnt++] = *(pQueue->Buffer + pQueue->tail);
  2353. 800168c: 68fb ldr r3, [r7, #12]
  2354. 800168e: 330c adds r3, #12
  2355. 8001690: 68fa ldr r2, [r7, #12]
  2356. 8001692: 6852 ldr r2, [r2, #4]
  2357. 8001694: 441a add r2, r3
  2358. 8001696: 4b3b ldr r3, [pc, #236] ; (8001784 <GetDataFromUartQueue+0x108>)
  2359. 8001698: 681b ldr r3, [r3, #0]
  2360. 800169a: 1c59 adds r1, r3, #1
  2361. 800169c: 4839 ldr r0, [pc, #228] ; (8001784 <GetDataFromUartQueue+0x108>)
  2362. 800169e: 6001 str r1, [r0, #0]
  2363. 80016a0: 7811 ldrb r1, [r2, #0]
  2364. 80016a2: 4a39 ldr r2, [pc, #228] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2365. 80016a4: 54d1 strb r1, [r2, r3]
  2366. //#ifdef DEBUG_PRINT
  2367. // printf("%02x ",*(pQueue->Buffer + pQueue->tail)) ;
  2368. //#endif /* DEBUG_PRINT */
  2369. pQueue->tail++;
  2370. 80016a6: 68fb ldr r3, [r7, #12]
  2371. 80016a8: 685b ldr r3, [r3, #4]
  2372. 80016aa: 1c5a adds r2, r3, #1
  2373. 80016ac: 68fb ldr r3, [r7, #12]
  2374. 80016ae: 605a str r2, [r3, #4]
  2375. if (pQueue->tail >= QUEUE_BUFFER_LENGTH) pQueue->tail = 0;
  2376. 80016b0: 68fb ldr r3, [r7, #12]
  2377. 80016b2: 685b ldr r3, [r3, #4]
  2378. 80016b4: 2b7f cmp r3, #127 ; 0x7f
  2379. 80016b6: dd02 ble.n 80016be <GetDataFromUartQueue+0x42>
  2380. 80016b8: 68fb ldr r3, [r7, #12]
  2381. 80016ba: 2200 movs r2, #0
  2382. 80016bc: 605a str r2, [r3, #4]
  2383. pQueue->data--;
  2384. 80016be: 68fb ldr r3, [r7, #12]
  2385. 80016c0: 689b ldr r3, [r3, #8]
  2386. 80016c2: 1e5a subs r2, r3, #1
  2387. 80016c4: 68fb ldr r3, [r7, #12]
  2388. 80016c6: 609a str r2, [r3, #8]
  2389. if(pQueue->data == 0){
  2390. 80016c8: 68fb ldr r3, [r7, #12]
  2391. 80016ca: 689b ldr r3, [r3, #8]
  2392. 80016cc: 2b00 cmp r3, #0
  2393. 80016ce: d152 bne.n 8001776 <GetDataFromUartQueue+0xfa>
  2394. // printf("data cnt zero !!! \r\n");
  2395. //RF_Ctrl_Main(&uart_buf[Header]);
  2396. // HAL_UART_Transmit(dst, &temp_buf[BLUECELL_HEADER00], 11, 3000);
  2397. #if 1// PYJ.2019.07.15_BEGIN --
  2398. printf("\r\n[RX]");
  2399. 80016d0: 482e ldr r0, [pc, #184] ; (800178c <GetDataFromUartQueue+0x110>)
  2400. 80016d2: f004 fdf3 bl 80062bc <iprintf>
  2401. for(int i = 0; i < cnt; i++){
  2402. 80016d6: 2300 movs r3, #0
  2403. 80016d8: 617b str r3, [r7, #20]
  2404. 80016da: e00b b.n 80016f4 <GetDataFromUartQueue+0x78>
  2405. printf("%02x ",uart_buf[i]);
  2406. 80016dc: 4a2a ldr r2, [pc, #168] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2407. 80016de: 697b ldr r3, [r7, #20]
  2408. 80016e0: 4413 add r3, r2
  2409. 80016e2: 781b ldrb r3, [r3, #0]
  2410. 80016e4: b2db uxtb r3, r3
  2411. 80016e6: 4619 mov r1, r3
  2412. 80016e8: 4829 ldr r0, [pc, #164] ; (8001790 <GetDataFromUartQueue+0x114>)
  2413. 80016ea: f004 fde7 bl 80062bc <iprintf>
  2414. for(int i = 0; i < cnt; i++){
  2415. 80016ee: 697b ldr r3, [r7, #20]
  2416. 80016f0: 3301 adds r3, #1
  2417. 80016f2: 617b str r3, [r7, #20]
  2418. 80016f4: 4b23 ldr r3, [pc, #140] ; (8001784 <GetDataFromUartQueue+0x108>)
  2419. 80016f6: 681b ldr r3, [r3, #0]
  2420. 80016f8: 697a ldr r2, [r7, #20]
  2421. 80016fa: 429a cmp r2, r3
  2422. 80016fc: dbee blt.n 80016dc <GetDataFromUartQueue+0x60>
  2423. }
  2424. // printf("Checksum Index : %d %x\r\n",uart_buf[NessLab_Req_DataLength] + NessLab_Req_DataLength + 1,uart_buf[uart_buf[NessLab_Req_DataLength] + NessLab_Req_DataLength + 1]);
  2425. // printf(ANSI_COLOR_GREEN"\r\n CNT : %d \r\n"ANSI_COLOR_RESET,cnt);
  2426. #endif // PYJ.2019.07.15_END --
  2427. ret = NessLab_CheckSum_Check(&uart_buf[NessLab_Req_MsgID0],uart_buf[NessLab_DataLength] + 5 ,uart_buf[uart_buf[NessLab_Req_DataLength] + NessLab_Req_DataLength + 1]);
  2428. 80016fe: 4b22 ldr r3, [pc, #136] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2429. 8001700: 799b ldrb r3, [r3, #6]
  2430. 8001702: b2db uxtb r3, r3
  2431. 8001704: 3305 adds r3, #5
  2432. 8001706: b2d9 uxtb r1, r3
  2433. 8001708: 4b1f ldr r3, [pc, #124] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2434. 800170a: 799b ldrb r3, [r3, #6]
  2435. 800170c: b2db uxtb r3, r3
  2436. 800170e: 3307 adds r3, #7
  2437. 8001710: 4a1d ldr r2, [pc, #116] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2438. 8001712: 5cd3 ldrb r3, [r2, r3]
  2439. 8001714: b2db uxtb r3, r3
  2440. 8001716: 461a mov r2, r3
  2441. 8001718: 481e ldr r0, [pc, #120] ; (8001794 <GetDataFromUartQueue+0x118>)
  2442. 800171a: f7ff fe41 bl 80013a0 <NessLab_CheckSum_Check>
  2443. 800171e: 4603 mov r3, r0
  2444. 8001720: 74fb strb r3, [r7, #19]
  2445. if(ret == true){
  2446. 8001722: 7cfb ldrb r3, [r7, #19]
  2447. 8001724: 2b00 cmp r3, #0
  2448. 8001726: d006 beq.n 8001736 <GetDataFromUartQueue+0xba>
  2449. NessLab_Operate(&uart_buf[0]);
  2450. 8001728: 4817 ldr r0, [pc, #92] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2451. 800172a: f7ff fbcd bl 8000ec8 <NessLab_Operate>
  2452. printf("Checksum OK \r\n");
  2453. 800172e: 481a ldr r0, [pc, #104] ; (8001798 <GetDataFromUartQueue+0x11c>)
  2454. 8001730: f004 fe38 bl 80063a4 <puts>
  2455. 8001734: e01c b.n 8001770 <GetDataFromUartQueue+0xf4>
  2456. }else{
  2457. printf("Checksum Error \r\n");
  2458. 8001736: 4819 ldr r0, [pc, #100] ; (800179c <GetDataFromUartQueue+0x120>)
  2459. 8001738: f004 fe34 bl 80063a4 <puts>
  2460. printf("uart_buf[NessLab_Req_DataLength] : %x \r\n",uart_buf[NessLab_Req_DataLength]);
  2461. 800173c: 4b12 ldr r3, [pc, #72] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2462. 800173e: 799b ldrb r3, [r3, #6]
  2463. 8001740: b2db uxtb r3, r3
  2464. 8001742: 4619 mov r1, r3
  2465. 8001744: 4816 ldr r0, [pc, #88] ; (80017a0 <GetDataFromUartQueue+0x124>)
  2466. 8001746: f004 fdb9 bl 80062bc <iprintf>
  2467. printf("NessLab_Req_DataLength : %d \r\n",NessLab_Req_DataLength);
  2468. 800174a: 2106 movs r1, #6
  2469. 800174c: 4815 ldr r0, [pc, #84] ; (80017a4 <GetDataFromUartQueue+0x128>)
  2470. 800174e: f004 fdb5 bl 80062bc <iprintf>
  2471. printf("Checksum Index : %d %x\r\n",uart_buf[NessLab_Req_DataLength] + NessLab_Req_DataLength + 1,uart_buf[uart_buf[NessLab_Req_DataLength] + NessLab_Req_DataLength + 1]);
  2472. 8001752: 4b0d ldr r3, [pc, #52] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2473. 8001754: 799b ldrb r3, [r3, #6]
  2474. 8001756: b2db uxtb r3, r3
  2475. 8001758: 1dd9 adds r1, r3, #7
  2476. 800175a: 4b0b ldr r3, [pc, #44] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2477. 800175c: 799b ldrb r3, [r3, #6]
  2478. 800175e: b2db uxtb r3, r3
  2479. 8001760: 3307 adds r3, #7
  2480. 8001762: 4a09 ldr r2, [pc, #36] ; (8001788 <GetDataFromUartQueue+0x10c>)
  2481. 8001764: 5cd3 ldrb r3, [r2, r3]
  2482. 8001766: b2db uxtb r3, r3
  2483. 8001768: 461a mov r2, r3
  2484. 800176a: 480f ldr r0, [pc, #60] ; (80017a8 <GetDataFromUartQueue+0x12c>)
  2485. 800176c: f004 fda6 bl 80062bc <iprintf>
  2486. }
  2487. cnt = 0;
  2488. 8001770: 4b04 ldr r3, [pc, #16] ; (8001784 <GetDataFromUartQueue+0x108>)
  2489. 8001772: 2200 movs r2, #0
  2490. 8001774: 601a str r2, [r3, #0]
  2491. }
  2492. }
  2493. 8001776: bf00 nop
  2494. 8001778: 3718 adds r7, #24
  2495. 800177a: 46bd mov sp, r7
  2496. 800177c: bd80 pop {r7, pc}
  2497. 800177e: bf00 nop
  2498. 8001780: 2000049c .word 0x2000049c
  2499. 8001784: 200003b4 .word 0x200003b4
  2500. 8001788: 2000041c .word 0x2000041c
  2501. 800178c: 08008488 .word 0x08008488
  2502. 8001790: 08008490 .word 0x08008490
  2503. 8001794: 2000041e .word 0x2000041e
  2504. 8001798: 08008498 .word 0x08008498
  2505. 800179c: 080084a8 .word 0x080084a8
  2506. 80017a0: 080084bc .word 0x080084bc
  2507. 80017a4: 080084e8 .word 0x080084e8
  2508. 80017a8: 08008508 .word 0x08008508
  2509. 080017ac <Uart1_Data_Send>:
  2510. void Uart_Check(void){
  2511. while (MainQueue.data > 0 && UartRxTimerCnt > 50) GetDataFromUartQueue(&hMain);
  2512. }
  2513. void Uart1_Data_Send(uint8_t* data,uint16_t size){
  2514. 80017ac: b580 push {r7, lr}
  2515. 80017ae: b084 sub sp, #16
  2516. 80017b0: af00 add r7, sp, #0
  2517. 80017b2: 6078 str r0, [r7, #4]
  2518. 80017b4: 460b mov r3, r1
  2519. 80017b6: 807b strh r3, [r7, #2]
  2520. HAL_UART_Transmit_DMA(&hMain, &data[0],size);
  2521. 80017b8: 887b ldrh r3, [r7, #2]
  2522. 80017ba: 461a mov r2, r3
  2523. 80017bc: 6879 ldr r1, [r7, #4]
  2524. 80017be: 480f ldr r0, [pc, #60] ; (80017fc <Uart1_Data_Send+0x50>)
  2525. 80017c0: f002 fca6 bl 8004110 <HAL_UART_Transmit_DMA>
  2526. //HAL_UART_Transmit_IT(&hTerminal, &data[0],size);
  2527. // printf("data[278] : %x \r\n",data[278]);
  2528. //// HAL_Delay(1);
  2529. #if 1 // PYJ.2020.07.19_BEGIN --
  2530. printf("\r\n [TX] : ");
  2531. 80017c4: 480e ldr r0, [pc, #56] ; (8001800 <Uart1_Data_Send+0x54>)
  2532. 80017c6: f004 fd79 bl 80062bc <iprintf>
  2533. for(int i = 0; i< size; i++)
  2534. 80017ca: 2300 movs r3, #0
  2535. 80017cc: 60fb str r3, [r7, #12]
  2536. 80017ce: e00a b.n 80017e6 <Uart1_Data_Send+0x3a>
  2537. printf("%02x ",data[i]);
  2538. 80017d0: 68fb ldr r3, [r7, #12]
  2539. 80017d2: 687a ldr r2, [r7, #4]
  2540. 80017d4: 4413 add r3, r2
  2541. 80017d6: 781b ldrb r3, [r3, #0]
  2542. 80017d8: 4619 mov r1, r3
  2543. 80017da: 480a ldr r0, [pc, #40] ; (8001804 <Uart1_Data_Send+0x58>)
  2544. 80017dc: f004 fd6e bl 80062bc <iprintf>
  2545. for(int i = 0; i< size; i++)
  2546. 80017e0: 68fb ldr r3, [r7, #12]
  2547. 80017e2: 3301 adds r3, #1
  2548. 80017e4: 60fb str r3, [r7, #12]
  2549. 80017e6: 887b ldrh r3, [r7, #2]
  2550. 80017e8: 68fa ldr r2, [r7, #12]
  2551. 80017ea: 429a cmp r2, r3
  2552. 80017ec: dbf0 blt.n 80017d0 <Uart1_Data_Send+0x24>
  2553. // printf("};\r\n\tCOUNT : %d \r\n",size);
  2554. printf("\r\n");
  2555. 80017ee: 4806 ldr r0, [pc, #24] ; (8001808 <Uart1_Data_Send+0x5c>)
  2556. 80017f0: f004 fdd8 bl 80063a4 <puts>
  2557. // data[i] = 0;
  2558. // }
  2559. // printf("};\r\n\tCOUNT : %d \r\n",size);
  2560. // printf("\r\n");
  2561. }
  2562. 80017f4: bf00 nop
  2563. 80017f6: 3710 adds r7, #16
  2564. 80017f8: 46bd mov sp, r7
  2565. 80017fa: bd80 pop {r7, pc}
  2566. 80017fc: 200007e0 .word 0x200007e0
  2567. 8001800: 08008524 .word 0x08008524
  2568. 8001804: 08008490 .word 0x08008490
  2569. 8001808: 08008530 .word 0x08008530
  2570. 0800180c <HAL_Init>:
  2571. * need to ensure that the SysTick time base is always set to 1 millisecond
  2572. * to have correct HAL operation.
  2573. * @retval HAL status
  2574. */
  2575. HAL_StatusTypeDef HAL_Init(void)
  2576. {
  2577. 800180c: b580 push {r7, lr}
  2578. 800180e: af00 add r7, sp, #0
  2579. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  2580. #endif
  2581. #endif /* PREFETCH_ENABLE */
  2582. /* Set Interrupt Group Priority */
  2583. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  2584. 8001810: 2003 movs r0, #3
  2585. 8001812: f000 fdd1 bl 80023b8 <HAL_NVIC_SetPriorityGrouping>
  2586. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  2587. HAL_InitTick(TICK_INT_PRIORITY);
  2588. 8001816: 2000 movs r0, #0
  2589. 8001818: f003 ff18 bl 800564c <HAL_InitTick>
  2590. /* Init the low level hardware */
  2591. HAL_MspInit();
  2592. 800181c: f003 fd2e bl 800527c <HAL_MspInit>
  2593. /* Return function status */
  2594. return HAL_OK;
  2595. 8001820: 2300 movs r3, #0
  2596. }
  2597. 8001822: 4618 mov r0, r3
  2598. 8001824: bd80 pop {r7, pc}
  2599. ...
  2600. 08001828 <HAL_IncTick>:
  2601. * @note This function is declared as __weak to be overwritten in case of other
  2602. * implementations in user file.
  2603. * @retval None
  2604. */
  2605. __weak void HAL_IncTick(void)
  2606. {
  2607. 8001828: b480 push {r7}
  2608. 800182a: af00 add r7, sp, #0
  2609. uwTick += uwTickFreq;
  2610. 800182c: 4b05 ldr r3, [pc, #20] ; (8001844 <HAL_IncTick+0x1c>)
  2611. 800182e: 781b ldrb r3, [r3, #0]
  2612. 8001830: 461a mov r2, r3
  2613. 8001832: 4b05 ldr r3, [pc, #20] ; (8001848 <HAL_IncTick+0x20>)
  2614. 8001834: 681b ldr r3, [r3, #0]
  2615. 8001836: 4413 add r3, r2
  2616. 8001838: 4a03 ldr r2, [pc, #12] ; (8001848 <HAL_IncTick+0x20>)
  2617. 800183a: 6013 str r3, [r2, #0]
  2618. }
  2619. 800183c: bf00 nop
  2620. 800183e: 46bd mov sp, r7
  2621. 8001840: bc80 pop {r7}
  2622. 8001842: 4770 bx lr
  2623. 8001844: 20000004 .word 0x20000004
  2624. 8001848: 20000638 .word 0x20000638
  2625. 0800184c <HAL_GetTick>:
  2626. * @note This function is declared as __weak to be overwritten in case of other
  2627. * implementations in user file.
  2628. * @retval tick value
  2629. */
  2630. __weak uint32_t HAL_GetTick(void)
  2631. {
  2632. 800184c: b480 push {r7}
  2633. 800184e: af00 add r7, sp, #0
  2634. return uwTick;
  2635. 8001850: 4b02 ldr r3, [pc, #8] ; (800185c <HAL_GetTick+0x10>)
  2636. 8001852: 681b ldr r3, [r3, #0]
  2637. }
  2638. 8001854: 4618 mov r0, r3
  2639. 8001856: 46bd mov sp, r7
  2640. 8001858: bc80 pop {r7}
  2641. 800185a: 4770 bx lr
  2642. 800185c: 20000638 .word 0x20000638
  2643. 08001860 <HAL_Delay>:
  2644. * implementations in user file.
  2645. * @param Delay specifies the delay time length, in milliseconds.
  2646. * @retval None
  2647. */
  2648. __weak void HAL_Delay(uint32_t Delay)
  2649. {
  2650. 8001860: b580 push {r7, lr}
  2651. 8001862: b084 sub sp, #16
  2652. 8001864: af00 add r7, sp, #0
  2653. 8001866: 6078 str r0, [r7, #4]
  2654. uint32_t tickstart = HAL_GetTick();
  2655. 8001868: f7ff fff0 bl 800184c <HAL_GetTick>
  2656. 800186c: 60b8 str r0, [r7, #8]
  2657. uint32_t wait = Delay;
  2658. 800186e: 687b ldr r3, [r7, #4]
  2659. 8001870: 60fb str r3, [r7, #12]
  2660. /* Add a freq to guarantee minimum wait */
  2661. if (wait < HAL_MAX_DELAY)
  2662. 8001872: 68fb ldr r3, [r7, #12]
  2663. 8001874: f1b3 3fff cmp.w r3, #4294967295
  2664. 8001878: d005 beq.n 8001886 <HAL_Delay+0x26>
  2665. {
  2666. wait += (uint32_t)(uwTickFreq);
  2667. 800187a: 4b09 ldr r3, [pc, #36] ; (80018a0 <HAL_Delay+0x40>)
  2668. 800187c: 781b ldrb r3, [r3, #0]
  2669. 800187e: 461a mov r2, r3
  2670. 8001880: 68fb ldr r3, [r7, #12]
  2671. 8001882: 4413 add r3, r2
  2672. 8001884: 60fb str r3, [r7, #12]
  2673. }
  2674. while ((HAL_GetTick() - tickstart) < wait)
  2675. 8001886: bf00 nop
  2676. 8001888: f7ff ffe0 bl 800184c <HAL_GetTick>
  2677. 800188c: 4602 mov r2, r0
  2678. 800188e: 68bb ldr r3, [r7, #8]
  2679. 8001890: 1ad3 subs r3, r2, r3
  2680. 8001892: 68fa ldr r2, [r7, #12]
  2681. 8001894: 429a cmp r2, r3
  2682. 8001896: d8f7 bhi.n 8001888 <HAL_Delay+0x28>
  2683. {
  2684. }
  2685. }
  2686. 8001898: bf00 nop
  2687. 800189a: 3710 adds r7, #16
  2688. 800189c: 46bd mov sp, r7
  2689. 800189e: bd80 pop {r7, pc}
  2690. 80018a0: 20000004 .word 0x20000004
  2691. 080018a4 <HAL_ADC_Init>:
  2692. * of structure "ADC_InitTypeDef".
  2693. * @param hadc: ADC handle
  2694. * @retval HAL status
  2695. */
  2696. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
  2697. {
  2698. 80018a4: b580 push {r7, lr}
  2699. 80018a6: b086 sub sp, #24
  2700. 80018a8: af00 add r7, sp, #0
  2701. 80018aa: 6078 str r0, [r7, #4]
  2702. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  2703. 80018ac: 2300 movs r3, #0
  2704. 80018ae: 75fb strb r3, [r7, #23]
  2705. uint32_t tmp_cr1 = 0U;
  2706. 80018b0: 2300 movs r3, #0
  2707. 80018b2: 613b str r3, [r7, #16]
  2708. uint32_t tmp_cr2 = 0U;
  2709. 80018b4: 2300 movs r3, #0
  2710. 80018b6: 60bb str r3, [r7, #8]
  2711. uint32_t tmp_sqr1 = 0U;
  2712. 80018b8: 2300 movs r3, #0
  2713. 80018ba: 60fb str r3, [r7, #12]
  2714. /* Check ADC handle */
  2715. if(hadc == NULL)
  2716. 80018bc: 687b ldr r3, [r7, #4]
  2717. 80018be: 2b00 cmp r3, #0
  2718. 80018c0: d101 bne.n 80018c6 <HAL_ADC_Init+0x22>
  2719. {
  2720. return HAL_ERROR;
  2721. 80018c2: 2301 movs r3, #1
  2722. 80018c4: e0be b.n 8001a44 <HAL_ADC_Init+0x1a0>
  2723. assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign));
  2724. assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode));
  2725. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  2726. assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
  2727. if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  2728. 80018c6: 687b ldr r3, [r7, #4]
  2729. 80018c8: 689b ldr r3, [r3, #8]
  2730. 80018ca: 2b00 cmp r3, #0
  2731. /* Refer to header of this file for more details on clock enabling */
  2732. /* procedure. */
  2733. /* Actions performed only if ADC is coming from state reset: */
  2734. /* - Initialization of ADC MSP */
  2735. if (hadc->State == HAL_ADC_STATE_RESET)
  2736. 80018cc: 687b ldr r3, [r7, #4]
  2737. 80018ce: 6a9b ldr r3, [r3, #40] ; 0x28
  2738. 80018d0: 2b00 cmp r3, #0
  2739. 80018d2: d109 bne.n 80018e8 <HAL_ADC_Init+0x44>
  2740. {
  2741. /* Initialize ADC error code */
  2742. ADC_CLEAR_ERRORCODE(hadc);
  2743. 80018d4: 687b ldr r3, [r7, #4]
  2744. 80018d6: 2200 movs r2, #0
  2745. 80018d8: 62da str r2, [r3, #44] ; 0x2c
  2746. /* Allocate lock resource and initialize it */
  2747. hadc->Lock = HAL_UNLOCKED;
  2748. 80018da: 687b ldr r3, [r7, #4]
  2749. 80018dc: 2200 movs r2, #0
  2750. 80018de: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2751. /* Init the low level hardware */
  2752. hadc->MspInitCallback(hadc);
  2753. #else
  2754. /* Init the low level hardware */
  2755. HAL_ADC_MspInit(hadc);
  2756. 80018e2: 6878 ldr r0, [r7, #4]
  2757. 80018e4: f003 fcfc bl 80052e0 <HAL_ADC_MspInit>
  2758. /* Stop potential conversion on going, on regular and injected groups */
  2759. /* Disable ADC peripheral */
  2760. /* Note: In case of ADC already enabled, precaution to not launch an */
  2761. /* unwanted conversion while modifying register CR2 by writing 1 to */
  2762. /* bit ADON. */
  2763. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  2764. 80018e8: 6878 ldr r0, [r7, #4]
  2765. 80018ea: f000 fb75 bl 8001fd8 <ADC_ConversionStop_Disable>
  2766. 80018ee: 4603 mov r3, r0
  2767. 80018f0: 75fb strb r3, [r7, #23]
  2768. /* Configuration of ADC parameters if previous preliminary actions are */
  2769. /* correctly completed. */
  2770. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) &&
  2771. 80018f2: 687b ldr r3, [r7, #4]
  2772. 80018f4: 6a9b ldr r3, [r3, #40] ; 0x28
  2773. 80018f6: f003 0310 and.w r3, r3, #16
  2774. 80018fa: 2b00 cmp r3, #0
  2775. 80018fc: f040 8099 bne.w 8001a32 <HAL_ADC_Init+0x18e>
  2776. 8001900: 7dfb ldrb r3, [r7, #23]
  2777. 8001902: 2b00 cmp r3, #0
  2778. 8001904: f040 8095 bne.w 8001a32 <HAL_ADC_Init+0x18e>
  2779. (tmp_hal_status == HAL_OK) )
  2780. {
  2781. /* Set ADC state */
  2782. ADC_STATE_CLR_SET(hadc->State,
  2783. 8001908: 687b ldr r3, [r7, #4]
  2784. 800190a: 6a9b ldr r3, [r3, #40] ; 0x28
  2785. 800190c: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  2786. 8001910: f023 0302 bic.w r3, r3, #2
  2787. 8001914: f043 0202 orr.w r2, r3, #2
  2788. 8001918: 687b ldr r3, [r7, #4]
  2789. 800191a: 629a str r2, [r3, #40] ; 0x28
  2790. /* - continuous conversion mode */
  2791. /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */
  2792. /* HAL_ADC_Start_xxx functions because if set in this function, */
  2793. /* a conversion on injected group would start a conversion also on */
  2794. /* regular group after ADC enabling. */
  2795. tmp_cr2 |= (hadc->Init.DataAlign |
  2796. 800191c: 687b ldr r3, [r7, #4]
  2797. 800191e: 685a ldr r2, [r3, #4]
  2798. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  2799. 8001920: 687b ldr r3, [r7, #4]
  2800. 8001922: 69db ldr r3, [r3, #28]
  2801. tmp_cr2 |= (hadc->Init.DataAlign |
  2802. 8001924: 431a orrs r2, r3
  2803. ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
  2804. 8001926: 687b ldr r3, [r7, #4]
  2805. 8001928: 7b1b ldrb r3, [r3, #12]
  2806. 800192a: 005b lsls r3, r3, #1
  2807. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  2808. 800192c: 4313 orrs r3, r2
  2809. tmp_cr2 |= (hadc->Init.DataAlign |
  2810. 800192e: 68ba ldr r2, [r7, #8]
  2811. 8001930: 4313 orrs r3, r2
  2812. 8001932: 60bb str r3, [r7, #8]
  2813. /* Configuration of ADC: */
  2814. /* - scan mode */
  2815. /* - discontinuous mode disable/enable */
  2816. /* - discontinuous mode number of conversions */
  2817. tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode));
  2818. 8001934: 687b ldr r3, [r7, #4]
  2819. 8001936: 689b ldr r3, [r3, #8]
  2820. 8001938: f5b3 7f80 cmp.w r3, #256 ; 0x100
  2821. 800193c: d003 beq.n 8001946 <HAL_ADC_Init+0xa2>
  2822. 800193e: 687b ldr r3, [r7, #4]
  2823. 8001940: 689b ldr r3, [r3, #8]
  2824. 8001942: 2b01 cmp r3, #1
  2825. 8001944: d102 bne.n 800194c <HAL_ADC_Init+0xa8>
  2826. 8001946: f44f 7380 mov.w r3, #256 ; 0x100
  2827. 800194a: e000 b.n 800194e <HAL_ADC_Init+0xaa>
  2828. 800194c: 2300 movs r3, #0
  2829. 800194e: 693a ldr r2, [r7, #16]
  2830. 8001950: 4313 orrs r3, r2
  2831. 8001952: 613b str r3, [r7, #16]
  2832. /* Enable discontinuous mode only if continuous mode is disabled */
  2833. /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
  2834. /* discontinuous is set anyway, but will have no effect on ADC HW. */
  2835. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  2836. 8001954: 687b ldr r3, [r7, #4]
  2837. 8001956: 7d1b ldrb r3, [r3, #20]
  2838. 8001958: 2b01 cmp r3, #1
  2839. 800195a: d119 bne.n 8001990 <HAL_ADC_Init+0xec>
  2840. {
  2841. if (hadc->Init.ContinuousConvMode == DISABLE)
  2842. 800195c: 687b ldr r3, [r7, #4]
  2843. 800195e: 7b1b ldrb r3, [r3, #12]
  2844. 8001960: 2b00 cmp r3, #0
  2845. 8001962: d109 bne.n 8001978 <HAL_ADC_Init+0xd4>
  2846. {
  2847. /* Enable the selected ADC regular discontinuous mode */
  2848. /* Set the number of channels to be converted in discontinuous mode */
  2849. SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
  2850. 8001964: 687b ldr r3, [r7, #4]
  2851. 8001966: 699b ldr r3, [r3, #24]
  2852. 8001968: 3b01 subs r3, #1
  2853. 800196a: 035a lsls r2, r3, #13
  2854. 800196c: 693b ldr r3, [r7, #16]
  2855. 800196e: 4313 orrs r3, r2
  2856. 8001970: f443 6300 orr.w r3, r3, #2048 ; 0x800
  2857. 8001974: 613b str r3, [r7, #16]
  2858. 8001976: e00b b.n 8001990 <HAL_ADC_Init+0xec>
  2859. {
  2860. /* ADC regular group settings continuous and sequencer discontinuous*/
  2861. /* cannot be enabled simultaneously. */
  2862. /* Update ADC state machine to error */
  2863. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  2864. 8001978: 687b ldr r3, [r7, #4]
  2865. 800197a: 6a9b ldr r3, [r3, #40] ; 0x28
  2866. 800197c: f043 0220 orr.w r2, r3, #32
  2867. 8001980: 687b ldr r3, [r7, #4]
  2868. 8001982: 629a str r2, [r3, #40] ; 0x28
  2869. /* Set ADC error code to ADC IP internal error */
  2870. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  2871. 8001984: 687b ldr r3, [r7, #4]
  2872. 8001986: 6adb ldr r3, [r3, #44] ; 0x2c
  2873. 8001988: f043 0201 orr.w r2, r3, #1
  2874. 800198c: 687b ldr r3, [r7, #4]
  2875. 800198e: 62da str r2, [r3, #44] ; 0x2c
  2876. }
  2877. }
  2878. /* Update ADC configuration register CR1 with previous settings */
  2879. MODIFY_REG(hadc->Instance->CR1,
  2880. 8001990: 687b ldr r3, [r7, #4]
  2881. 8001992: 681b ldr r3, [r3, #0]
  2882. 8001994: 685b ldr r3, [r3, #4]
  2883. 8001996: f423 4169 bic.w r1, r3, #59648 ; 0xe900
  2884. 800199a: 687b ldr r3, [r7, #4]
  2885. 800199c: 681b ldr r3, [r3, #0]
  2886. 800199e: 693a ldr r2, [r7, #16]
  2887. 80019a0: 430a orrs r2, r1
  2888. 80019a2: 605a str r2, [r3, #4]
  2889. ADC_CR1_DISCEN |
  2890. ADC_CR1_DISCNUM ,
  2891. tmp_cr1 );
  2892. /* Update ADC configuration register CR2 with previous settings */
  2893. MODIFY_REG(hadc->Instance->CR2,
  2894. 80019a4: 687b ldr r3, [r7, #4]
  2895. 80019a6: 681b ldr r3, [r3, #0]
  2896. 80019a8: 689a ldr r2, [r3, #8]
  2897. 80019aa: 4b28 ldr r3, [pc, #160] ; (8001a4c <HAL_ADC_Init+0x1a8>)
  2898. 80019ac: 4013 ands r3, r2
  2899. 80019ae: 687a ldr r2, [r7, #4]
  2900. 80019b0: 6812 ldr r2, [r2, #0]
  2901. 80019b2: 68b9 ldr r1, [r7, #8]
  2902. 80019b4: 430b orrs r3, r1
  2903. 80019b6: 6093 str r3, [r2, #8]
  2904. /* Note: Scan mode is present by hardware on this device and, if */
  2905. /* disabled, discards automatically nb of conversions. Anyway, nb of */
  2906. /* conversions is forced to 0x00 for alignment over all STM32 devices. */
  2907. /* - if scan mode is enabled, regular channels sequence length is set to */
  2908. /* parameter "NbrOfConversion" */
  2909. if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
  2910. 80019b8: 687b ldr r3, [r7, #4]
  2911. 80019ba: 689b ldr r3, [r3, #8]
  2912. 80019bc: f5b3 7f80 cmp.w r3, #256 ; 0x100
  2913. 80019c0: d003 beq.n 80019ca <HAL_ADC_Init+0x126>
  2914. 80019c2: 687b ldr r3, [r7, #4]
  2915. 80019c4: 689b ldr r3, [r3, #8]
  2916. 80019c6: 2b01 cmp r3, #1
  2917. 80019c8: d104 bne.n 80019d4 <HAL_ADC_Init+0x130>
  2918. {
  2919. tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion);
  2920. 80019ca: 687b ldr r3, [r7, #4]
  2921. 80019cc: 691b ldr r3, [r3, #16]
  2922. 80019ce: 3b01 subs r3, #1
  2923. 80019d0: 051b lsls r3, r3, #20
  2924. 80019d2: 60fb str r3, [r7, #12]
  2925. }
  2926. MODIFY_REG(hadc->Instance->SQR1,
  2927. 80019d4: 687b ldr r3, [r7, #4]
  2928. 80019d6: 681b ldr r3, [r3, #0]
  2929. 80019d8: 6adb ldr r3, [r3, #44] ; 0x2c
  2930. 80019da: f423 0170 bic.w r1, r3, #15728640 ; 0xf00000
  2931. 80019de: 687b ldr r3, [r7, #4]
  2932. 80019e0: 681b ldr r3, [r3, #0]
  2933. 80019e2: 68fa ldr r2, [r7, #12]
  2934. 80019e4: 430a orrs r2, r1
  2935. 80019e6: 62da str r2, [r3, #44] ; 0x2c
  2936. /* ensure of no potential problem of ADC core IP clocking. */
  2937. /* Check through register CR2 (excluding bits set in other functions: */
  2938. /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */
  2939. /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */
  2940. /* measurement path bit (TSVREFE). */
  2941. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  2942. 80019e8: 687b ldr r3, [r7, #4]
  2943. 80019ea: 681b ldr r3, [r3, #0]
  2944. 80019ec: 689a ldr r2, [r3, #8]
  2945. 80019ee: 4b18 ldr r3, [pc, #96] ; (8001a50 <HAL_ADC_Init+0x1ac>)
  2946. 80019f0: 4013 ands r3, r2
  2947. 80019f2: 68ba ldr r2, [r7, #8]
  2948. 80019f4: 429a cmp r2, r3
  2949. 80019f6: d10b bne.n 8001a10 <HAL_ADC_Init+0x16c>
  2950. ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL |
  2951. ADC_CR2_TSVREFE ))
  2952. == tmp_cr2)
  2953. {
  2954. /* Set ADC error code to none */
  2955. ADC_CLEAR_ERRORCODE(hadc);
  2956. 80019f8: 687b ldr r3, [r7, #4]
  2957. 80019fa: 2200 movs r2, #0
  2958. 80019fc: 62da str r2, [r3, #44] ; 0x2c
  2959. /* Set the ADC state */
  2960. ADC_STATE_CLR_SET(hadc->State,
  2961. 80019fe: 687b ldr r3, [r7, #4]
  2962. 8001a00: 6a9b ldr r3, [r3, #40] ; 0x28
  2963. 8001a02: f023 0303 bic.w r3, r3, #3
  2964. 8001a06: f043 0201 orr.w r2, r3, #1
  2965. 8001a0a: 687b ldr r3, [r7, #4]
  2966. 8001a0c: 629a str r2, [r3, #40] ; 0x28
  2967. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  2968. 8001a0e: e018 b.n 8001a42 <HAL_ADC_Init+0x19e>
  2969. HAL_ADC_STATE_READY);
  2970. }
  2971. else
  2972. {
  2973. /* Update ADC state machine to error */
  2974. ADC_STATE_CLR_SET(hadc->State,
  2975. 8001a10: 687b ldr r3, [r7, #4]
  2976. 8001a12: 6a9b ldr r3, [r3, #40] ; 0x28
  2977. 8001a14: f023 0312 bic.w r3, r3, #18
  2978. 8001a18: f043 0210 orr.w r2, r3, #16
  2979. 8001a1c: 687b ldr r3, [r7, #4]
  2980. 8001a1e: 629a str r2, [r3, #40] ; 0x28
  2981. HAL_ADC_STATE_BUSY_INTERNAL,
  2982. HAL_ADC_STATE_ERROR_INTERNAL);
  2983. /* Set ADC error code to ADC IP internal error */
  2984. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  2985. 8001a20: 687b ldr r3, [r7, #4]
  2986. 8001a22: 6adb ldr r3, [r3, #44] ; 0x2c
  2987. 8001a24: f043 0201 orr.w r2, r3, #1
  2988. 8001a28: 687b ldr r3, [r7, #4]
  2989. 8001a2a: 62da str r2, [r3, #44] ; 0x2c
  2990. tmp_hal_status = HAL_ERROR;
  2991. 8001a2c: 2301 movs r3, #1
  2992. 8001a2e: 75fb strb r3, [r7, #23]
  2993. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  2994. 8001a30: e007 b.n 8001a42 <HAL_ADC_Init+0x19e>
  2995. }
  2996. else
  2997. {
  2998. /* Update ADC state machine to error */
  2999. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  3000. 8001a32: 687b ldr r3, [r7, #4]
  3001. 8001a34: 6a9b ldr r3, [r3, #40] ; 0x28
  3002. 8001a36: f043 0210 orr.w r2, r3, #16
  3003. 8001a3a: 687b ldr r3, [r7, #4]
  3004. 8001a3c: 629a str r2, [r3, #40] ; 0x28
  3005. tmp_hal_status = HAL_ERROR;
  3006. 8001a3e: 2301 movs r3, #1
  3007. 8001a40: 75fb strb r3, [r7, #23]
  3008. }
  3009. /* Return function status */
  3010. return tmp_hal_status;
  3011. 8001a42: 7dfb ldrb r3, [r7, #23]
  3012. }
  3013. 8001a44: 4618 mov r0, r3
  3014. 8001a46: 3718 adds r7, #24
  3015. 8001a48: 46bd mov sp, r7
  3016. 8001a4a: bd80 pop {r7, pc}
  3017. 8001a4c: ffe1f7fd .word 0xffe1f7fd
  3018. 8001a50: ff1f0efe .word 0xff1f0efe
  3019. 08001a54 <HAL_ADC_Start_DMA>:
  3020. * @param pData: The destination Buffer address.
  3021. * @param Length: The length of data to be transferred from ADC peripheral to memory.
  3022. * @retval None
  3023. */
  3024. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
  3025. {
  3026. 8001a54: b580 push {r7, lr}
  3027. 8001a56: b086 sub sp, #24
  3028. 8001a58: af00 add r7, sp, #0
  3029. 8001a5a: 60f8 str r0, [r7, #12]
  3030. 8001a5c: 60b9 str r1, [r7, #8]
  3031. 8001a5e: 607a str r2, [r7, #4]
  3032. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3033. 8001a60: 2300 movs r3, #0
  3034. 8001a62: 75fb strb r3, [r7, #23]
  3035. /* If multimode is enabled, dedicated function multimode conversion */
  3036. /* start DMA must be used. */
  3037. if(ADC_MULTIMODE_IS_ENABLE(hadc) == RESET)
  3038. {
  3039. /* Process locked */
  3040. __HAL_LOCK(hadc);
  3041. 8001a64: 68fb ldr r3, [r7, #12]
  3042. 8001a66: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  3043. 8001a6a: 2b01 cmp r3, #1
  3044. 8001a6c: d101 bne.n 8001a72 <HAL_ADC_Start_DMA+0x1e>
  3045. 8001a6e: 2302 movs r3, #2
  3046. 8001a70: e080 b.n 8001b74 <HAL_ADC_Start_DMA+0x120>
  3047. 8001a72: 68fb ldr r3, [r7, #12]
  3048. 8001a74: 2201 movs r2, #1
  3049. 8001a76: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3050. /* Enable the ADC peripheral */
  3051. tmp_hal_status = ADC_Enable(hadc);
  3052. 8001a7a: 68f8 ldr r0, [r7, #12]
  3053. 8001a7c: f000 fa5a bl 8001f34 <ADC_Enable>
  3054. 8001a80: 4603 mov r3, r0
  3055. 8001a82: 75fb strb r3, [r7, #23]
  3056. /* Start conversion if ADC is effectively enabled */
  3057. if (tmp_hal_status == HAL_OK)
  3058. 8001a84: 7dfb ldrb r3, [r7, #23]
  3059. 8001a86: 2b00 cmp r3, #0
  3060. 8001a88: d16f bne.n 8001b6a <HAL_ADC_Start_DMA+0x116>
  3061. {
  3062. /* Set ADC state */
  3063. /* - Clear state bitfield related to regular group conversion results */
  3064. /* - Set state bitfield related to regular operation */
  3065. ADC_STATE_CLR_SET(hadc->State,
  3066. 8001a8a: 68fb ldr r3, [r7, #12]
  3067. 8001a8c: 6a9b ldr r3, [r3, #40] ; 0x28
  3068. 8001a8e: f423 6370 bic.w r3, r3, #3840 ; 0xf00
  3069. 8001a92: f023 0301 bic.w r3, r3, #1
  3070. 8001a96: f443 7280 orr.w r2, r3, #256 ; 0x100
  3071. 8001a9a: 68fb ldr r3, [r7, #12]
  3072. 8001a9c: 629a str r2, [r3, #40] ; 0x28
  3073. /* for all cases of multimode: independent mode, multimode ADC master */
  3074. /* or multimode ADC slave (for devices with several ADCs): */
  3075. if (ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc))
  3076. {
  3077. /* Set ADC state (ADC independent or master) */
  3078. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  3079. 8001a9e: 68fb ldr r3, [r7, #12]
  3080. 8001aa0: 6a9b ldr r3, [r3, #40] ; 0x28
  3081. 8001aa2: f423 1280 bic.w r2, r3, #1048576 ; 0x100000
  3082. 8001aa6: 68fb ldr r3, [r7, #12]
  3083. 8001aa8: 629a str r2, [r3, #40] ; 0x28
  3084. /* If conversions on group regular are also triggering group injected, */
  3085. /* update ADC state. */
  3086. if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
  3087. 8001aaa: 68fb ldr r3, [r7, #12]
  3088. 8001aac: 681b ldr r3, [r3, #0]
  3089. 8001aae: 685b ldr r3, [r3, #4]
  3090. 8001ab0: f403 6380 and.w r3, r3, #1024 ; 0x400
  3091. 8001ab4: 2b00 cmp r3, #0
  3092. 8001ab6: d007 beq.n 8001ac8 <HAL_ADC_Start_DMA+0x74>
  3093. {
  3094. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  3095. 8001ab8: 68fb ldr r3, [r7, #12]
  3096. 8001aba: 6a9b ldr r3, [r3, #40] ; 0x28
  3097. 8001abc: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  3098. 8001ac0: f443 5280 orr.w r2, r3, #4096 ; 0x1000
  3099. 8001ac4: 68fb ldr r3, [r7, #12]
  3100. 8001ac6: 629a str r2, [r3, #40] ; 0x28
  3101. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  3102. }
  3103. }
  3104. /* State machine update: Check if an injected conversion is ongoing */
  3105. if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  3106. 8001ac8: 68fb ldr r3, [r7, #12]
  3107. 8001aca: 6a9b ldr r3, [r3, #40] ; 0x28
  3108. 8001acc: f403 5380 and.w r3, r3, #4096 ; 0x1000
  3109. 8001ad0: 2b00 cmp r3, #0
  3110. 8001ad2: d006 beq.n 8001ae2 <HAL_ADC_Start_DMA+0x8e>
  3111. {
  3112. /* Reset ADC error code fields related to conversions on group regular */
  3113. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  3114. 8001ad4: 68fb ldr r3, [r7, #12]
  3115. 8001ad6: 6adb ldr r3, [r3, #44] ; 0x2c
  3116. 8001ad8: f023 0206 bic.w r2, r3, #6
  3117. 8001adc: 68fb ldr r3, [r7, #12]
  3118. 8001ade: 62da str r2, [r3, #44] ; 0x2c
  3119. 8001ae0: e002 b.n 8001ae8 <HAL_ADC_Start_DMA+0x94>
  3120. }
  3121. else
  3122. {
  3123. /* Reset ADC all error code fields */
  3124. ADC_CLEAR_ERRORCODE(hadc);
  3125. 8001ae2: 68fb ldr r3, [r7, #12]
  3126. 8001ae4: 2200 movs r2, #0
  3127. 8001ae6: 62da str r2, [r3, #44] ; 0x2c
  3128. }
  3129. /* Process unlocked */
  3130. /* Unlock before starting ADC conversions: in case of potential */
  3131. /* interruption, to let the process to ADC IRQ Handler. */
  3132. __HAL_UNLOCK(hadc);
  3133. 8001ae8: 68fb ldr r3, [r7, #12]
  3134. 8001aea: 2200 movs r2, #0
  3135. 8001aec: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3136. /* Set the DMA transfer complete callback */
  3137. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  3138. 8001af0: 68fb ldr r3, [r7, #12]
  3139. 8001af2: 6a1b ldr r3, [r3, #32]
  3140. 8001af4: 4a21 ldr r2, [pc, #132] ; (8001b7c <HAL_ADC_Start_DMA+0x128>)
  3141. 8001af6: 629a str r2, [r3, #40] ; 0x28
  3142. /* Set the DMA half transfer complete callback */
  3143. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  3144. 8001af8: 68fb ldr r3, [r7, #12]
  3145. 8001afa: 6a1b ldr r3, [r3, #32]
  3146. 8001afc: 4a20 ldr r2, [pc, #128] ; (8001b80 <HAL_ADC_Start_DMA+0x12c>)
  3147. 8001afe: 62da str r2, [r3, #44] ; 0x2c
  3148. /* Set the DMA error callback */
  3149. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  3150. 8001b00: 68fb ldr r3, [r7, #12]
  3151. 8001b02: 6a1b ldr r3, [r3, #32]
  3152. 8001b04: 4a1f ldr r2, [pc, #124] ; (8001b84 <HAL_ADC_Start_DMA+0x130>)
  3153. 8001b06: 631a str r2, [r3, #48] ; 0x30
  3154. /* start (in case of SW start): */
  3155. /* Clear regular group conversion flag and overrun flag */
  3156. /* (To ensure of no unknown state from potential previous ADC */
  3157. /* operations) */
  3158. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC);
  3159. 8001b08: 68fb ldr r3, [r7, #12]
  3160. 8001b0a: 681b ldr r3, [r3, #0]
  3161. 8001b0c: f06f 0202 mvn.w r2, #2
  3162. 8001b10: 601a str r2, [r3, #0]
  3163. /* Enable ADC DMA mode */
  3164. SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA);
  3165. 8001b12: 68fb ldr r3, [r7, #12]
  3166. 8001b14: 681b ldr r3, [r3, #0]
  3167. 8001b16: 689a ldr r2, [r3, #8]
  3168. 8001b18: 68fb ldr r3, [r7, #12]
  3169. 8001b1a: 681b ldr r3, [r3, #0]
  3170. 8001b1c: f442 7280 orr.w r2, r2, #256 ; 0x100
  3171. 8001b20: 609a str r2, [r3, #8]
  3172. /* Start the DMA channel */
  3173. HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  3174. 8001b22: 68fb ldr r3, [r7, #12]
  3175. 8001b24: 6a18 ldr r0, [r3, #32]
  3176. 8001b26: 68fb ldr r3, [r7, #12]
  3177. 8001b28: 681b ldr r3, [r3, #0]
  3178. 8001b2a: 334c adds r3, #76 ; 0x4c
  3179. 8001b2c: 4619 mov r1, r3
  3180. 8001b2e: 68ba ldr r2, [r7, #8]
  3181. 8001b30: 687b ldr r3, [r7, #4]
  3182. 8001b32: f000 fcd1 bl 80024d8 <HAL_DMA_Start_IT>
  3183. /* Enable conversion of regular group. */
  3184. /* If software start has been selected, conversion starts immediately. */
  3185. /* If external trigger has been selected, conversion will start at next */
  3186. /* trigger event. */
  3187. if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
  3188. 8001b36: 68fb ldr r3, [r7, #12]
  3189. 8001b38: 681b ldr r3, [r3, #0]
  3190. 8001b3a: 689b ldr r3, [r3, #8]
  3191. 8001b3c: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  3192. 8001b40: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  3193. 8001b44: d108 bne.n 8001b58 <HAL_ADC_Start_DMA+0x104>
  3194. {
  3195. /* Start ADC conversion on regular group with SW start */
  3196. SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG));
  3197. 8001b46: 68fb ldr r3, [r7, #12]
  3198. 8001b48: 681b ldr r3, [r3, #0]
  3199. 8001b4a: 689a ldr r2, [r3, #8]
  3200. 8001b4c: 68fb ldr r3, [r7, #12]
  3201. 8001b4e: 681b ldr r3, [r3, #0]
  3202. 8001b50: f442 02a0 orr.w r2, r2, #5242880 ; 0x500000
  3203. 8001b54: 609a str r2, [r3, #8]
  3204. 8001b56: e00c b.n 8001b72 <HAL_ADC_Start_DMA+0x11e>
  3205. }
  3206. else
  3207. {
  3208. /* Start ADC conversion on regular group with external trigger */
  3209. SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG);
  3210. 8001b58: 68fb ldr r3, [r7, #12]
  3211. 8001b5a: 681b ldr r3, [r3, #0]
  3212. 8001b5c: 689a ldr r2, [r3, #8]
  3213. 8001b5e: 68fb ldr r3, [r7, #12]
  3214. 8001b60: 681b ldr r3, [r3, #0]
  3215. 8001b62: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  3216. 8001b66: 609a str r2, [r3, #8]
  3217. 8001b68: e003 b.n 8001b72 <HAL_ADC_Start_DMA+0x11e>
  3218. }
  3219. }
  3220. else
  3221. {
  3222. /* Process unlocked */
  3223. __HAL_UNLOCK(hadc);
  3224. 8001b6a: 68fb ldr r3, [r7, #12]
  3225. 8001b6c: 2200 movs r2, #0
  3226. 8001b6e: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3227. {
  3228. tmp_hal_status = HAL_ERROR;
  3229. }
  3230. /* Return function status */
  3231. return tmp_hal_status;
  3232. 8001b72: 7dfb ldrb r3, [r7, #23]
  3233. }
  3234. 8001b74: 4618 mov r0, r3
  3235. 8001b76: 3718 adds r7, #24
  3236. 8001b78: 46bd mov sp, r7
  3237. 8001b7a: bd80 pop {r7, pc}
  3238. 8001b7c: 0800204d .word 0x0800204d
  3239. 8001b80: 080020c9 .word 0x080020c9
  3240. 8001b84: 080020e5 .word 0x080020e5
  3241. 08001b88 <HAL_ADC_IRQHandler>:
  3242. * @brief Handles ADC interrupt request
  3243. * @param hadc: ADC handle
  3244. * @retval None
  3245. */
  3246. void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc)
  3247. {
  3248. 8001b88: b580 push {r7, lr}
  3249. 8001b8a: b082 sub sp, #8
  3250. 8001b8c: af00 add r7, sp, #0
  3251. 8001b8e: 6078 str r0, [r7, #4]
  3252. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  3253. assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion));
  3254. /* ========== Check End of Conversion flag for regular group ========== */
  3255. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOC))
  3256. 8001b90: 687b ldr r3, [r7, #4]
  3257. 8001b92: 681b ldr r3, [r3, #0]
  3258. 8001b94: 685b ldr r3, [r3, #4]
  3259. 8001b96: f003 0320 and.w r3, r3, #32
  3260. 8001b9a: 2b20 cmp r3, #32
  3261. 8001b9c: d140 bne.n 8001c20 <HAL_ADC_IRQHandler+0x98>
  3262. {
  3263. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC) )
  3264. 8001b9e: 687b ldr r3, [r7, #4]
  3265. 8001ba0: 681b ldr r3, [r3, #0]
  3266. 8001ba2: 681b ldr r3, [r3, #0]
  3267. 8001ba4: f003 0302 and.w r3, r3, #2
  3268. 8001ba8: 2b02 cmp r3, #2
  3269. 8001baa: d139 bne.n 8001c20 <HAL_ADC_IRQHandler+0x98>
  3270. {
  3271. /* Update state machine on conversion status if not in error state */
  3272. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  3273. 8001bac: 687b ldr r3, [r7, #4]
  3274. 8001bae: 6a9b ldr r3, [r3, #40] ; 0x28
  3275. 8001bb0: f003 0310 and.w r3, r3, #16
  3276. 8001bb4: 2b00 cmp r3, #0
  3277. 8001bb6: d105 bne.n 8001bc4 <HAL_ADC_IRQHandler+0x3c>
  3278. {
  3279. /* Set ADC state */
  3280. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  3281. 8001bb8: 687b ldr r3, [r7, #4]
  3282. 8001bba: 6a9b ldr r3, [r3, #40] ; 0x28
  3283. 8001bbc: f443 7200 orr.w r2, r3, #512 ; 0x200
  3284. 8001bc0: 687b ldr r3, [r7, #4]
  3285. 8001bc2: 629a str r2, [r3, #40] ; 0x28
  3286. /* Determine whether any further conversion upcoming on group regular */
  3287. /* by external trigger, continuous mode or scan sequence on going. */
  3288. /* Note: On STM32F1 devices, in case of sequencer enabled */
  3289. /* (several ranks selected), end of conversion flag is raised */
  3290. /* at the end of the sequence. */
  3291. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3292. 8001bc4: 687b ldr r3, [r7, #4]
  3293. 8001bc6: 681b ldr r3, [r3, #0]
  3294. 8001bc8: 689b ldr r3, [r3, #8]
  3295. 8001bca: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  3296. 8001bce: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  3297. 8001bd2: d11d bne.n 8001c10 <HAL_ADC_IRQHandler+0x88>
  3298. (hadc->Init.ContinuousConvMode == DISABLE) )
  3299. 8001bd4: 687b ldr r3, [r7, #4]
  3300. 8001bd6: 7b1b ldrb r3, [r3, #12]
  3301. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3302. 8001bd8: 2b00 cmp r3, #0
  3303. 8001bda: d119 bne.n 8001c10 <HAL_ADC_IRQHandler+0x88>
  3304. {
  3305. /* Disable ADC end of conversion interrupt on group regular */
  3306. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
  3307. 8001bdc: 687b ldr r3, [r7, #4]
  3308. 8001bde: 681b ldr r3, [r3, #0]
  3309. 8001be0: 685a ldr r2, [r3, #4]
  3310. 8001be2: 687b ldr r3, [r7, #4]
  3311. 8001be4: 681b ldr r3, [r3, #0]
  3312. 8001be6: f022 0220 bic.w r2, r2, #32
  3313. 8001bea: 605a str r2, [r3, #4]
  3314. /* Set ADC state */
  3315. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  3316. 8001bec: 687b ldr r3, [r7, #4]
  3317. 8001bee: 6a9b ldr r3, [r3, #40] ; 0x28
  3318. 8001bf0: f423 7280 bic.w r2, r3, #256 ; 0x100
  3319. 8001bf4: 687b ldr r3, [r7, #4]
  3320. 8001bf6: 629a str r2, [r3, #40] ; 0x28
  3321. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  3322. 8001bf8: 687b ldr r3, [r7, #4]
  3323. 8001bfa: 6a9b ldr r3, [r3, #40] ; 0x28
  3324. 8001bfc: f403 5380 and.w r3, r3, #4096 ; 0x1000
  3325. 8001c00: 2b00 cmp r3, #0
  3326. 8001c02: d105 bne.n 8001c10 <HAL_ADC_IRQHandler+0x88>
  3327. {
  3328. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  3329. 8001c04: 687b ldr r3, [r7, #4]
  3330. 8001c06: 6a9b ldr r3, [r3, #40] ; 0x28
  3331. 8001c08: f043 0201 orr.w r2, r3, #1
  3332. 8001c0c: 687b ldr r3, [r7, #4]
  3333. 8001c0e: 629a str r2, [r3, #40] ; 0x28
  3334. /* Conversion complete callback */
  3335. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  3336. hadc->ConvCpltCallback(hadc);
  3337. #else
  3338. HAL_ADC_ConvCpltCallback(hadc);
  3339. 8001c10: 6878 ldr r0, [r7, #4]
  3340. 8001c12: f7ff fb95 bl 8001340 <HAL_ADC_ConvCpltCallback>
  3341. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  3342. /* Clear regular group conversion flag */
  3343. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC);
  3344. 8001c16: 687b ldr r3, [r7, #4]
  3345. 8001c18: 681b ldr r3, [r3, #0]
  3346. 8001c1a: f06f 0212 mvn.w r2, #18
  3347. 8001c1e: 601a str r2, [r3, #0]
  3348. }
  3349. }
  3350. /* ========== Check End of Conversion flag for injected group ========== */
  3351. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_JEOC))
  3352. 8001c20: 687b ldr r3, [r7, #4]
  3353. 8001c22: 681b ldr r3, [r3, #0]
  3354. 8001c24: 685b ldr r3, [r3, #4]
  3355. 8001c26: f003 0380 and.w r3, r3, #128 ; 0x80
  3356. 8001c2a: 2b80 cmp r3, #128 ; 0x80
  3357. 8001c2c: d14f bne.n 8001cce <HAL_ADC_IRQHandler+0x146>
  3358. {
  3359. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC))
  3360. 8001c2e: 687b ldr r3, [r7, #4]
  3361. 8001c30: 681b ldr r3, [r3, #0]
  3362. 8001c32: 681b ldr r3, [r3, #0]
  3363. 8001c34: f003 0304 and.w r3, r3, #4
  3364. 8001c38: 2b04 cmp r3, #4
  3365. 8001c3a: d148 bne.n 8001cce <HAL_ADC_IRQHandler+0x146>
  3366. {
  3367. /* Update state machine on conversion status if not in error state */
  3368. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  3369. 8001c3c: 687b ldr r3, [r7, #4]
  3370. 8001c3e: 6a9b ldr r3, [r3, #40] ; 0x28
  3371. 8001c40: f003 0310 and.w r3, r3, #16
  3372. 8001c44: 2b00 cmp r3, #0
  3373. 8001c46: d105 bne.n 8001c54 <HAL_ADC_IRQHandler+0xcc>
  3374. {
  3375. /* Set ADC state */
  3376. SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC);
  3377. 8001c48: 687b ldr r3, [r7, #4]
  3378. 8001c4a: 6a9b ldr r3, [r3, #40] ; 0x28
  3379. 8001c4c: f443 5200 orr.w r2, r3, #8192 ; 0x2000
  3380. 8001c50: 687b ldr r3, [r7, #4]
  3381. 8001c52: 629a str r2, [r3, #40] ; 0x28
  3382. /* conversion from group regular (same conditions as group regular */
  3383. /* interruption disabling above). */
  3384. /* Note: On STM32F1 devices, in case of sequencer enabled */
  3385. /* (several ranks selected), end of conversion flag is raised */
  3386. /* at the end of the sequence. */
  3387. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  3388. 8001c54: 687b ldr r3, [r7, #4]
  3389. 8001c56: 681b ldr r3, [r3, #0]
  3390. 8001c58: 689b ldr r3, [r3, #8]
  3391. 8001c5a: f403 43e0 and.w r3, r3, #28672 ; 0x7000
  3392. 8001c5e: f5b3 4fe0 cmp.w r3, #28672 ; 0x7000
  3393. 8001c62: d012 beq.n 8001c8a <HAL_ADC_IRQHandler+0x102>
  3394. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  3395. 8001c64: 687b ldr r3, [r7, #4]
  3396. 8001c66: 681b ldr r3, [r3, #0]
  3397. 8001c68: 685b ldr r3, [r3, #4]
  3398. 8001c6a: f403 6380 and.w r3, r3, #1024 ; 0x400
  3399. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  3400. 8001c6e: 2b00 cmp r3, #0
  3401. 8001c70: d125 bne.n 8001cbe <HAL_ADC_IRQHandler+0x136>
  3402. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3403. 8001c72: 687b ldr r3, [r7, #4]
  3404. 8001c74: 681b ldr r3, [r3, #0]
  3405. 8001c76: 689b ldr r3, [r3, #8]
  3406. 8001c78: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  3407. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  3408. 8001c7c: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  3409. 8001c80: d11d bne.n 8001cbe <HAL_ADC_IRQHandler+0x136>
  3410. (hadc->Init.ContinuousConvMode == DISABLE) ) ) )
  3411. 8001c82: 687b ldr r3, [r7, #4]
  3412. 8001c84: 7b1b ldrb r3, [r3, #12]
  3413. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3414. 8001c86: 2b00 cmp r3, #0
  3415. 8001c88: d119 bne.n 8001cbe <HAL_ADC_IRQHandler+0x136>
  3416. {
  3417. /* Disable ADC end of conversion interrupt on group injected */
  3418. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC);
  3419. 8001c8a: 687b ldr r3, [r7, #4]
  3420. 8001c8c: 681b ldr r3, [r3, #0]
  3421. 8001c8e: 685a ldr r2, [r3, #4]
  3422. 8001c90: 687b ldr r3, [r7, #4]
  3423. 8001c92: 681b ldr r3, [r3, #0]
  3424. 8001c94: f022 0280 bic.w r2, r2, #128 ; 0x80
  3425. 8001c98: 605a str r2, [r3, #4]
  3426. /* Set ADC state */
  3427. CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY);
  3428. 8001c9a: 687b ldr r3, [r7, #4]
  3429. 8001c9c: 6a9b ldr r3, [r3, #40] ; 0x28
  3430. 8001c9e: f423 5280 bic.w r2, r3, #4096 ; 0x1000
  3431. 8001ca2: 687b ldr r3, [r7, #4]
  3432. 8001ca4: 629a str r2, [r3, #40] ; 0x28
  3433. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY))
  3434. 8001ca6: 687b ldr r3, [r7, #4]
  3435. 8001ca8: 6a9b ldr r3, [r3, #40] ; 0x28
  3436. 8001caa: f403 7380 and.w r3, r3, #256 ; 0x100
  3437. 8001cae: 2b00 cmp r3, #0
  3438. 8001cb0: d105 bne.n 8001cbe <HAL_ADC_IRQHandler+0x136>
  3439. {
  3440. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  3441. 8001cb2: 687b ldr r3, [r7, #4]
  3442. 8001cb4: 6a9b ldr r3, [r3, #40] ; 0x28
  3443. 8001cb6: f043 0201 orr.w r2, r3, #1
  3444. 8001cba: 687b ldr r3, [r7, #4]
  3445. 8001cbc: 629a str r2, [r3, #40] ; 0x28
  3446. /* Conversion complete callback */
  3447. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  3448. hadc->InjectedConvCpltCallback(hadc);
  3449. #else
  3450. HAL_ADCEx_InjectedConvCpltCallback(hadc);
  3451. 8001cbe: 6878 ldr r0, [r7, #4]
  3452. 8001cc0: f000 fac6 bl 8002250 <HAL_ADCEx_InjectedConvCpltCallback>
  3453. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  3454. /* Clear injected group conversion flag */
  3455. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC));
  3456. 8001cc4: 687b ldr r3, [r7, #4]
  3457. 8001cc6: 681b ldr r3, [r3, #0]
  3458. 8001cc8: f06f 020c mvn.w r2, #12
  3459. 8001ccc: 601a str r2, [r3, #0]
  3460. }
  3461. }
  3462. /* ========== Check Analog watchdog flags ========== */
  3463. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_AWD))
  3464. 8001cce: 687b ldr r3, [r7, #4]
  3465. 8001cd0: 681b ldr r3, [r3, #0]
  3466. 8001cd2: 685b ldr r3, [r3, #4]
  3467. 8001cd4: f003 0340 and.w r3, r3, #64 ; 0x40
  3468. 8001cd8: 2b40 cmp r3, #64 ; 0x40
  3469. 8001cda: d114 bne.n 8001d06 <HAL_ADC_IRQHandler+0x17e>
  3470. {
  3471. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD))
  3472. 8001cdc: 687b ldr r3, [r7, #4]
  3473. 8001cde: 681b ldr r3, [r3, #0]
  3474. 8001ce0: 681b ldr r3, [r3, #0]
  3475. 8001ce2: f003 0301 and.w r3, r3, #1
  3476. 8001ce6: 2b01 cmp r3, #1
  3477. 8001ce8: d10d bne.n 8001d06 <HAL_ADC_IRQHandler+0x17e>
  3478. {
  3479. /* Set ADC state */
  3480. SET_BIT(hadc->State, HAL_ADC_STATE_AWD1);
  3481. 8001cea: 687b ldr r3, [r7, #4]
  3482. 8001cec: 6a9b ldr r3, [r3, #40] ; 0x28
  3483. 8001cee: f443 3280 orr.w r2, r3, #65536 ; 0x10000
  3484. 8001cf2: 687b ldr r3, [r7, #4]
  3485. 8001cf4: 629a str r2, [r3, #40] ; 0x28
  3486. /* Level out of window callback */
  3487. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  3488. hadc->LevelOutOfWindowCallback(hadc);
  3489. #else
  3490. HAL_ADC_LevelOutOfWindowCallback(hadc);
  3491. 8001cf6: 6878 ldr r0, [r7, #4]
  3492. 8001cf8: f000 f812 bl 8001d20 <HAL_ADC_LevelOutOfWindowCallback>
  3493. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  3494. /* Clear the ADC analog watchdog flag */
  3495. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD);
  3496. 8001cfc: 687b ldr r3, [r7, #4]
  3497. 8001cfe: 681b ldr r3, [r3, #0]
  3498. 8001d00: f06f 0201 mvn.w r2, #1
  3499. 8001d04: 601a str r2, [r3, #0]
  3500. }
  3501. }
  3502. }
  3503. 8001d06: bf00 nop
  3504. 8001d08: 3708 adds r7, #8
  3505. 8001d0a: 46bd mov sp, r7
  3506. 8001d0c: bd80 pop {r7, pc}
  3507. 08001d0e <HAL_ADC_ConvHalfCpltCallback>:
  3508. * @brief Conversion DMA half-transfer callback in non blocking mode
  3509. * @param hadc: ADC handle
  3510. * @retval None
  3511. */
  3512. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
  3513. {
  3514. 8001d0e: b480 push {r7}
  3515. 8001d10: b083 sub sp, #12
  3516. 8001d12: af00 add r7, sp, #0
  3517. 8001d14: 6078 str r0, [r7, #4]
  3518. /* Prevent unused argument(s) compilation warning */
  3519. UNUSED(hadc);
  3520. /* NOTE : This function should not be modified. When the callback is needed,
  3521. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  3522. */
  3523. }
  3524. 8001d16: bf00 nop
  3525. 8001d18: 370c adds r7, #12
  3526. 8001d1a: 46bd mov sp, r7
  3527. 8001d1c: bc80 pop {r7}
  3528. 8001d1e: 4770 bx lr
  3529. 08001d20 <HAL_ADC_LevelOutOfWindowCallback>:
  3530. * @brief Analog watchdog callback in non blocking mode.
  3531. * @param hadc: ADC handle
  3532. * @retval None
  3533. */
  3534. __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc)
  3535. {
  3536. 8001d20: b480 push {r7}
  3537. 8001d22: b083 sub sp, #12
  3538. 8001d24: af00 add r7, sp, #0
  3539. 8001d26: 6078 str r0, [r7, #4]
  3540. /* Prevent unused argument(s) compilation warning */
  3541. UNUSED(hadc);
  3542. /* NOTE : This function should not be modified. When the callback is needed,
  3543. function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file.
  3544. */
  3545. }
  3546. 8001d28: bf00 nop
  3547. 8001d2a: 370c adds r7, #12
  3548. 8001d2c: 46bd mov sp, r7
  3549. 8001d2e: bc80 pop {r7}
  3550. 8001d30: 4770 bx lr
  3551. 08001d32 <HAL_ADC_ErrorCallback>:
  3552. * (ADC conversion with interruption or transfer by DMA)
  3553. * @param hadc: ADC handle
  3554. * @retval None
  3555. */
  3556. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  3557. {
  3558. 8001d32: b480 push {r7}
  3559. 8001d34: b083 sub sp, #12
  3560. 8001d36: af00 add r7, sp, #0
  3561. 8001d38: 6078 str r0, [r7, #4]
  3562. /* Prevent unused argument(s) compilation warning */
  3563. UNUSED(hadc);
  3564. /* NOTE : This function should not be modified. When the callback is needed,
  3565. function HAL_ADC_ErrorCallback must be implemented in the user file.
  3566. */
  3567. }
  3568. 8001d3a: bf00 nop
  3569. 8001d3c: 370c adds r7, #12
  3570. 8001d3e: 46bd mov sp, r7
  3571. 8001d40: bc80 pop {r7}
  3572. 8001d42: 4770 bx lr
  3573. 08001d44 <HAL_ADC_ConfigChannel>:
  3574. * @param hadc: ADC handle
  3575. * @param sConfig: Structure of ADC channel for regular group.
  3576. * @retval HAL status
  3577. */
  3578. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
  3579. {
  3580. 8001d44: b480 push {r7}
  3581. 8001d46: b085 sub sp, #20
  3582. 8001d48: af00 add r7, sp, #0
  3583. 8001d4a: 6078 str r0, [r7, #4]
  3584. 8001d4c: 6039 str r1, [r7, #0]
  3585. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3586. 8001d4e: 2300 movs r3, #0
  3587. 8001d50: 73fb strb r3, [r7, #15]
  3588. __IO uint32_t wait_loop_index = 0U;
  3589. 8001d52: 2300 movs r3, #0
  3590. 8001d54: 60bb str r3, [r7, #8]
  3591. assert_param(IS_ADC_CHANNEL(sConfig->Channel));
  3592. assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
  3593. assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
  3594. /* Process locked */
  3595. __HAL_LOCK(hadc);
  3596. 8001d56: 687b ldr r3, [r7, #4]
  3597. 8001d58: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  3598. 8001d5c: 2b01 cmp r3, #1
  3599. 8001d5e: d101 bne.n 8001d64 <HAL_ADC_ConfigChannel+0x20>
  3600. 8001d60: 2302 movs r3, #2
  3601. 8001d62: e0dc b.n 8001f1e <HAL_ADC_ConfigChannel+0x1da>
  3602. 8001d64: 687b ldr r3, [r7, #4]
  3603. 8001d66: 2201 movs r2, #1
  3604. 8001d68: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3605. /* Regular sequence configuration */
  3606. /* For Rank 1 to 6 */
  3607. if (sConfig->Rank < 7U)
  3608. 8001d6c: 683b ldr r3, [r7, #0]
  3609. 8001d6e: 685b ldr r3, [r3, #4]
  3610. 8001d70: 2b06 cmp r3, #6
  3611. 8001d72: d81c bhi.n 8001dae <HAL_ADC_ConfigChannel+0x6a>
  3612. {
  3613. MODIFY_REG(hadc->Instance->SQR3 ,
  3614. 8001d74: 687b ldr r3, [r7, #4]
  3615. 8001d76: 681b ldr r3, [r3, #0]
  3616. 8001d78: 6b59 ldr r1, [r3, #52] ; 0x34
  3617. 8001d7a: 683b ldr r3, [r7, #0]
  3618. 8001d7c: 685a ldr r2, [r3, #4]
  3619. 8001d7e: 4613 mov r3, r2
  3620. 8001d80: 009b lsls r3, r3, #2
  3621. 8001d82: 4413 add r3, r2
  3622. 8001d84: 3b05 subs r3, #5
  3623. 8001d86: 221f movs r2, #31
  3624. 8001d88: fa02 f303 lsl.w r3, r2, r3
  3625. 8001d8c: 43db mvns r3, r3
  3626. 8001d8e: 4019 ands r1, r3
  3627. 8001d90: 683b ldr r3, [r7, #0]
  3628. 8001d92: 6818 ldr r0, [r3, #0]
  3629. 8001d94: 683b ldr r3, [r7, #0]
  3630. 8001d96: 685a ldr r2, [r3, #4]
  3631. 8001d98: 4613 mov r3, r2
  3632. 8001d9a: 009b lsls r3, r3, #2
  3633. 8001d9c: 4413 add r3, r2
  3634. 8001d9e: 3b05 subs r3, #5
  3635. 8001da0: fa00 f203 lsl.w r2, r0, r3
  3636. 8001da4: 687b ldr r3, [r7, #4]
  3637. 8001da6: 681b ldr r3, [r3, #0]
  3638. 8001da8: 430a orrs r2, r1
  3639. 8001daa: 635a str r2, [r3, #52] ; 0x34
  3640. 8001dac: e03c b.n 8001e28 <HAL_ADC_ConfigChannel+0xe4>
  3641. ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) ,
  3642. ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
  3643. }
  3644. /* For Rank 7 to 12 */
  3645. else if (sConfig->Rank < 13U)
  3646. 8001dae: 683b ldr r3, [r7, #0]
  3647. 8001db0: 685b ldr r3, [r3, #4]
  3648. 8001db2: 2b0c cmp r3, #12
  3649. 8001db4: d81c bhi.n 8001df0 <HAL_ADC_ConfigChannel+0xac>
  3650. {
  3651. MODIFY_REG(hadc->Instance->SQR2 ,
  3652. 8001db6: 687b ldr r3, [r7, #4]
  3653. 8001db8: 681b ldr r3, [r3, #0]
  3654. 8001dba: 6b19 ldr r1, [r3, #48] ; 0x30
  3655. 8001dbc: 683b ldr r3, [r7, #0]
  3656. 8001dbe: 685a ldr r2, [r3, #4]
  3657. 8001dc0: 4613 mov r3, r2
  3658. 8001dc2: 009b lsls r3, r3, #2
  3659. 8001dc4: 4413 add r3, r2
  3660. 8001dc6: 3b23 subs r3, #35 ; 0x23
  3661. 8001dc8: 221f movs r2, #31
  3662. 8001dca: fa02 f303 lsl.w r3, r2, r3
  3663. 8001dce: 43db mvns r3, r3
  3664. 8001dd0: 4019 ands r1, r3
  3665. 8001dd2: 683b ldr r3, [r7, #0]
  3666. 8001dd4: 6818 ldr r0, [r3, #0]
  3667. 8001dd6: 683b ldr r3, [r7, #0]
  3668. 8001dd8: 685a ldr r2, [r3, #4]
  3669. 8001dda: 4613 mov r3, r2
  3670. 8001ddc: 009b lsls r3, r3, #2
  3671. 8001dde: 4413 add r3, r2
  3672. 8001de0: 3b23 subs r3, #35 ; 0x23
  3673. 8001de2: fa00 f203 lsl.w r2, r0, r3
  3674. 8001de6: 687b ldr r3, [r7, #4]
  3675. 8001de8: 681b ldr r3, [r3, #0]
  3676. 8001dea: 430a orrs r2, r1
  3677. 8001dec: 631a str r2, [r3, #48] ; 0x30
  3678. 8001dee: e01b b.n 8001e28 <HAL_ADC_ConfigChannel+0xe4>
  3679. ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
  3680. }
  3681. /* For Rank 13 to 16 */
  3682. else
  3683. {
  3684. MODIFY_REG(hadc->Instance->SQR1 ,
  3685. 8001df0: 687b ldr r3, [r7, #4]
  3686. 8001df2: 681b ldr r3, [r3, #0]
  3687. 8001df4: 6ad9 ldr r1, [r3, #44] ; 0x2c
  3688. 8001df6: 683b ldr r3, [r7, #0]
  3689. 8001df8: 685a ldr r2, [r3, #4]
  3690. 8001dfa: 4613 mov r3, r2
  3691. 8001dfc: 009b lsls r3, r3, #2
  3692. 8001dfe: 4413 add r3, r2
  3693. 8001e00: 3b41 subs r3, #65 ; 0x41
  3694. 8001e02: 221f movs r2, #31
  3695. 8001e04: fa02 f303 lsl.w r3, r2, r3
  3696. 8001e08: 43db mvns r3, r3
  3697. 8001e0a: 4019 ands r1, r3
  3698. 8001e0c: 683b ldr r3, [r7, #0]
  3699. 8001e0e: 6818 ldr r0, [r3, #0]
  3700. 8001e10: 683b ldr r3, [r7, #0]
  3701. 8001e12: 685a ldr r2, [r3, #4]
  3702. 8001e14: 4613 mov r3, r2
  3703. 8001e16: 009b lsls r3, r3, #2
  3704. 8001e18: 4413 add r3, r2
  3705. 8001e1a: 3b41 subs r3, #65 ; 0x41
  3706. 8001e1c: fa00 f203 lsl.w r2, r0, r3
  3707. 8001e20: 687b ldr r3, [r7, #4]
  3708. 8001e22: 681b ldr r3, [r3, #0]
  3709. 8001e24: 430a orrs r2, r1
  3710. 8001e26: 62da str r2, [r3, #44] ; 0x2c
  3711. }
  3712. /* Channel sampling time configuration */
  3713. /* For channels 10 to 17 */
  3714. if (sConfig->Channel >= ADC_CHANNEL_10)
  3715. 8001e28: 683b ldr r3, [r7, #0]
  3716. 8001e2a: 681b ldr r3, [r3, #0]
  3717. 8001e2c: 2b09 cmp r3, #9
  3718. 8001e2e: d91c bls.n 8001e6a <HAL_ADC_ConfigChannel+0x126>
  3719. {
  3720. MODIFY_REG(hadc->Instance->SMPR1 ,
  3721. 8001e30: 687b ldr r3, [r7, #4]
  3722. 8001e32: 681b ldr r3, [r3, #0]
  3723. 8001e34: 68d9 ldr r1, [r3, #12]
  3724. 8001e36: 683b ldr r3, [r7, #0]
  3725. 8001e38: 681a ldr r2, [r3, #0]
  3726. 8001e3a: 4613 mov r3, r2
  3727. 8001e3c: 005b lsls r3, r3, #1
  3728. 8001e3e: 4413 add r3, r2
  3729. 8001e40: 3b1e subs r3, #30
  3730. 8001e42: 2207 movs r2, #7
  3731. 8001e44: fa02 f303 lsl.w r3, r2, r3
  3732. 8001e48: 43db mvns r3, r3
  3733. 8001e4a: 4019 ands r1, r3
  3734. 8001e4c: 683b ldr r3, [r7, #0]
  3735. 8001e4e: 6898 ldr r0, [r3, #8]
  3736. 8001e50: 683b ldr r3, [r7, #0]
  3737. 8001e52: 681a ldr r2, [r3, #0]
  3738. 8001e54: 4613 mov r3, r2
  3739. 8001e56: 005b lsls r3, r3, #1
  3740. 8001e58: 4413 add r3, r2
  3741. 8001e5a: 3b1e subs r3, #30
  3742. 8001e5c: fa00 f203 lsl.w r2, r0, r3
  3743. 8001e60: 687b ldr r3, [r7, #4]
  3744. 8001e62: 681b ldr r3, [r3, #0]
  3745. 8001e64: 430a orrs r2, r1
  3746. 8001e66: 60da str r2, [r3, #12]
  3747. 8001e68: e019 b.n 8001e9e <HAL_ADC_ConfigChannel+0x15a>
  3748. ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) ,
  3749. ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
  3750. }
  3751. else /* For channels 0 to 9 */
  3752. {
  3753. MODIFY_REG(hadc->Instance->SMPR2 ,
  3754. 8001e6a: 687b ldr r3, [r7, #4]
  3755. 8001e6c: 681b ldr r3, [r3, #0]
  3756. 8001e6e: 6919 ldr r1, [r3, #16]
  3757. 8001e70: 683b ldr r3, [r7, #0]
  3758. 8001e72: 681a ldr r2, [r3, #0]
  3759. 8001e74: 4613 mov r3, r2
  3760. 8001e76: 005b lsls r3, r3, #1
  3761. 8001e78: 4413 add r3, r2
  3762. 8001e7a: 2207 movs r2, #7
  3763. 8001e7c: fa02 f303 lsl.w r3, r2, r3
  3764. 8001e80: 43db mvns r3, r3
  3765. 8001e82: 4019 ands r1, r3
  3766. 8001e84: 683b ldr r3, [r7, #0]
  3767. 8001e86: 6898 ldr r0, [r3, #8]
  3768. 8001e88: 683b ldr r3, [r7, #0]
  3769. 8001e8a: 681a ldr r2, [r3, #0]
  3770. 8001e8c: 4613 mov r3, r2
  3771. 8001e8e: 005b lsls r3, r3, #1
  3772. 8001e90: 4413 add r3, r2
  3773. 8001e92: fa00 f203 lsl.w r2, r0, r3
  3774. 8001e96: 687b ldr r3, [r7, #4]
  3775. 8001e98: 681b ldr r3, [r3, #0]
  3776. 8001e9a: 430a orrs r2, r1
  3777. 8001e9c: 611a str r2, [r3, #16]
  3778. ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
  3779. }
  3780. /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
  3781. /* and VREFINT measurement path. */
  3782. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  3783. 8001e9e: 683b ldr r3, [r7, #0]
  3784. 8001ea0: 681b ldr r3, [r3, #0]
  3785. 8001ea2: 2b10 cmp r3, #16
  3786. 8001ea4: d003 beq.n 8001eae <HAL_ADC_ConfigChannel+0x16a>
  3787. (sConfig->Channel == ADC_CHANNEL_VREFINT) )
  3788. 8001ea6: 683b ldr r3, [r7, #0]
  3789. 8001ea8: 681b ldr r3, [r3, #0]
  3790. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  3791. 8001eaa: 2b11 cmp r3, #17
  3792. 8001eac: d132 bne.n 8001f14 <HAL_ADC_ConfigChannel+0x1d0>
  3793. {
  3794. /* For STM32F1 devices with several ADC: Only ADC1 can access internal */
  3795. /* measurement channels (VrefInt/TempSensor). If these channels are */
  3796. /* intended to be set on other ADC instances, an error is reported. */
  3797. if (hadc->Instance == ADC1)
  3798. 8001eae: 687b ldr r3, [r7, #4]
  3799. 8001eb0: 681b ldr r3, [r3, #0]
  3800. 8001eb2: 4a1d ldr r2, [pc, #116] ; (8001f28 <HAL_ADC_ConfigChannel+0x1e4>)
  3801. 8001eb4: 4293 cmp r3, r2
  3802. 8001eb6: d125 bne.n 8001f04 <HAL_ADC_ConfigChannel+0x1c0>
  3803. {
  3804. if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET)
  3805. 8001eb8: 687b ldr r3, [r7, #4]
  3806. 8001eba: 681b ldr r3, [r3, #0]
  3807. 8001ebc: 689b ldr r3, [r3, #8]
  3808. 8001ebe: f403 0300 and.w r3, r3, #8388608 ; 0x800000
  3809. 8001ec2: 2b00 cmp r3, #0
  3810. 8001ec4: d126 bne.n 8001f14 <HAL_ADC_ConfigChannel+0x1d0>
  3811. {
  3812. SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE);
  3813. 8001ec6: 687b ldr r3, [r7, #4]
  3814. 8001ec8: 681b ldr r3, [r3, #0]
  3815. 8001eca: 689a ldr r2, [r3, #8]
  3816. 8001ecc: 687b ldr r3, [r7, #4]
  3817. 8001ece: 681b ldr r3, [r3, #0]
  3818. 8001ed0: f442 0200 orr.w r2, r2, #8388608 ; 0x800000
  3819. 8001ed4: 609a str r2, [r3, #8]
  3820. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR))
  3821. 8001ed6: 683b ldr r3, [r7, #0]
  3822. 8001ed8: 681b ldr r3, [r3, #0]
  3823. 8001eda: 2b10 cmp r3, #16
  3824. 8001edc: d11a bne.n 8001f14 <HAL_ADC_ConfigChannel+0x1d0>
  3825. {
  3826. /* Delay for temperature sensor stabilization time */
  3827. /* Compute number of CPU cycles to wait for */
  3828. wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U));
  3829. 8001ede: 4b13 ldr r3, [pc, #76] ; (8001f2c <HAL_ADC_ConfigChannel+0x1e8>)
  3830. 8001ee0: 681b ldr r3, [r3, #0]
  3831. 8001ee2: 4a13 ldr r2, [pc, #76] ; (8001f30 <HAL_ADC_ConfigChannel+0x1ec>)
  3832. 8001ee4: fba2 2303 umull r2, r3, r2, r3
  3833. 8001ee8: 0c9a lsrs r2, r3, #18
  3834. 8001eea: 4613 mov r3, r2
  3835. 8001eec: 009b lsls r3, r3, #2
  3836. 8001eee: 4413 add r3, r2
  3837. 8001ef0: 005b lsls r3, r3, #1
  3838. 8001ef2: 60bb str r3, [r7, #8]
  3839. while(wait_loop_index != 0U)
  3840. 8001ef4: e002 b.n 8001efc <HAL_ADC_ConfigChannel+0x1b8>
  3841. {
  3842. wait_loop_index--;
  3843. 8001ef6: 68bb ldr r3, [r7, #8]
  3844. 8001ef8: 3b01 subs r3, #1
  3845. 8001efa: 60bb str r3, [r7, #8]
  3846. while(wait_loop_index != 0U)
  3847. 8001efc: 68bb ldr r3, [r7, #8]
  3848. 8001efe: 2b00 cmp r3, #0
  3849. 8001f00: d1f9 bne.n 8001ef6 <HAL_ADC_ConfigChannel+0x1b2>
  3850. 8001f02: e007 b.n 8001f14 <HAL_ADC_ConfigChannel+0x1d0>
  3851. }
  3852. }
  3853. else
  3854. {
  3855. /* Update ADC state machine to error */
  3856. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  3857. 8001f04: 687b ldr r3, [r7, #4]
  3858. 8001f06: 6a9b ldr r3, [r3, #40] ; 0x28
  3859. 8001f08: f043 0220 orr.w r2, r3, #32
  3860. 8001f0c: 687b ldr r3, [r7, #4]
  3861. 8001f0e: 629a str r2, [r3, #40] ; 0x28
  3862. tmp_hal_status = HAL_ERROR;
  3863. 8001f10: 2301 movs r3, #1
  3864. 8001f12: 73fb strb r3, [r7, #15]
  3865. }
  3866. }
  3867. /* Process unlocked */
  3868. __HAL_UNLOCK(hadc);
  3869. 8001f14: 687b ldr r3, [r7, #4]
  3870. 8001f16: 2200 movs r2, #0
  3871. 8001f18: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3872. /* Return function status */
  3873. return tmp_hal_status;
  3874. 8001f1c: 7bfb ldrb r3, [r7, #15]
  3875. }
  3876. 8001f1e: 4618 mov r0, r3
  3877. 8001f20: 3714 adds r7, #20
  3878. 8001f22: 46bd mov sp, r7
  3879. 8001f24: bc80 pop {r7}
  3880. 8001f26: 4770 bx lr
  3881. 8001f28: 40012400 .word 0x40012400
  3882. 8001f2c: 20000008 .word 0x20000008
  3883. 8001f30: 431bde83 .word 0x431bde83
  3884. 08001f34 <ADC_Enable>:
  3885. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  3886. * @param hadc: ADC handle
  3887. * @retval HAL status.
  3888. */
  3889. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
  3890. {
  3891. 8001f34: b580 push {r7, lr}
  3892. 8001f36: b084 sub sp, #16
  3893. 8001f38: af00 add r7, sp, #0
  3894. 8001f3a: 6078 str r0, [r7, #4]
  3895. uint32_t tickstart = 0U;
  3896. 8001f3c: 2300 movs r3, #0
  3897. 8001f3e: 60fb str r3, [r7, #12]
  3898. __IO uint32_t wait_loop_index = 0U;
  3899. 8001f40: 2300 movs r3, #0
  3900. 8001f42: 60bb str r3, [r7, #8]
  3901. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  3902. /* enabling phase not yet completed: flag ADC ready not yet set). */
  3903. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  3904. /* causes: ADC clock not running, ...). */
  3905. if (ADC_IS_ENABLE(hadc) == RESET)
  3906. 8001f44: 687b ldr r3, [r7, #4]
  3907. 8001f46: 681b ldr r3, [r3, #0]
  3908. 8001f48: 689b ldr r3, [r3, #8]
  3909. 8001f4a: f003 0301 and.w r3, r3, #1
  3910. 8001f4e: 2b01 cmp r3, #1
  3911. 8001f50: d039 beq.n 8001fc6 <ADC_Enable+0x92>
  3912. {
  3913. /* Enable the Peripheral */
  3914. __HAL_ADC_ENABLE(hadc);
  3915. 8001f52: 687b ldr r3, [r7, #4]
  3916. 8001f54: 681b ldr r3, [r3, #0]
  3917. 8001f56: 689a ldr r2, [r3, #8]
  3918. 8001f58: 687b ldr r3, [r7, #4]
  3919. 8001f5a: 681b ldr r3, [r3, #0]
  3920. 8001f5c: f042 0201 orr.w r2, r2, #1
  3921. 8001f60: 609a str r2, [r3, #8]
  3922. /* Delay for ADC stabilization time */
  3923. /* Compute number of CPU cycles to wait for */
  3924. wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U));
  3925. 8001f62: 4b1b ldr r3, [pc, #108] ; (8001fd0 <ADC_Enable+0x9c>)
  3926. 8001f64: 681b ldr r3, [r3, #0]
  3927. 8001f66: 4a1b ldr r2, [pc, #108] ; (8001fd4 <ADC_Enable+0xa0>)
  3928. 8001f68: fba2 2303 umull r2, r3, r2, r3
  3929. 8001f6c: 0c9b lsrs r3, r3, #18
  3930. 8001f6e: 60bb str r3, [r7, #8]
  3931. while(wait_loop_index != 0U)
  3932. 8001f70: e002 b.n 8001f78 <ADC_Enable+0x44>
  3933. {
  3934. wait_loop_index--;
  3935. 8001f72: 68bb ldr r3, [r7, #8]
  3936. 8001f74: 3b01 subs r3, #1
  3937. 8001f76: 60bb str r3, [r7, #8]
  3938. while(wait_loop_index != 0U)
  3939. 8001f78: 68bb ldr r3, [r7, #8]
  3940. 8001f7a: 2b00 cmp r3, #0
  3941. 8001f7c: d1f9 bne.n 8001f72 <ADC_Enable+0x3e>
  3942. }
  3943. /* Get tick count */
  3944. tickstart = HAL_GetTick();
  3945. 8001f7e: f7ff fc65 bl 800184c <HAL_GetTick>
  3946. 8001f82: 60f8 str r0, [r7, #12]
  3947. /* Wait for ADC effectively enabled */
  3948. while(ADC_IS_ENABLE(hadc) == RESET)
  3949. 8001f84: e018 b.n 8001fb8 <ADC_Enable+0x84>
  3950. {
  3951. if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  3952. 8001f86: f7ff fc61 bl 800184c <HAL_GetTick>
  3953. 8001f8a: 4602 mov r2, r0
  3954. 8001f8c: 68fb ldr r3, [r7, #12]
  3955. 8001f8e: 1ad3 subs r3, r2, r3
  3956. 8001f90: 2b02 cmp r3, #2
  3957. 8001f92: d911 bls.n 8001fb8 <ADC_Enable+0x84>
  3958. {
  3959. /* Update ADC state machine to error */
  3960. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  3961. 8001f94: 687b ldr r3, [r7, #4]
  3962. 8001f96: 6a9b ldr r3, [r3, #40] ; 0x28
  3963. 8001f98: f043 0210 orr.w r2, r3, #16
  3964. 8001f9c: 687b ldr r3, [r7, #4]
  3965. 8001f9e: 629a str r2, [r3, #40] ; 0x28
  3966. /* Set ADC error code to ADC IP internal error */
  3967. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  3968. 8001fa0: 687b ldr r3, [r7, #4]
  3969. 8001fa2: 6adb ldr r3, [r3, #44] ; 0x2c
  3970. 8001fa4: f043 0201 orr.w r2, r3, #1
  3971. 8001fa8: 687b ldr r3, [r7, #4]
  3972. 8001faa: 62da str r2, [r3, #44] ; 0x2c
  3973. /* Process unlocked */
  3974. __HAL_UNLOCK(hadc);
  3975. 8001fac: 687b ldr r3, [r7, #4]
  3976. 8001fae: 2200 movs r2, #0
  3977. 8001fb0: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3978. return HAL_ERROR;
  3979. 8001fb4: 2301 movs r3, #1
  3980. 8001fb6: e007 b.n 8001fc8 <ADC_Enable+0x94>
  3981. while(ADC_IS_ENABLE(hadc) == RESET)
  3982. 8001fb8: 687b ldr r3, [r7, #4]
  3983. 8001fba: 681b ldr r3, [r3, #0]
  3984. 8001fbc: 689b ldr r3, [r3, #8]
  3985. 8001fbe: f003 0301 and.w r3, r3, #1
  3986. 8001fc2: 2b01 cmp r3, #1
  3987. 8001fc4: d1df bne.n 8001f86 <ADC_Enable+0x52>
  3988. }
  3989. }
  3990. }
  3991. /* Return HAL status */
  3992. return HAL_OK;
  3993. 8001fc6: 2300 movs r3, #0
  3994. }
  3995. 8001fc8: 4618 mov r0, r3
  3996. 8001fca: 3710 adds r7, #16
  3997. 8001fcc: 46bd mov sp, r7
  3998. 8001fce: bd80 pop {r7, pc}
  3999. 8001fd0: 20000008 .word 0x20000008
  4000. 8001fd4: 431bde83 .word 0x431bde83
  4001. 08001fd8 <ADC_ConversionStop_Disable>:
  4002. * stopped to disable the ADC.
  4003. * @param hadc: ADC handle
  4004. * @retval HAL status.
  4005. */
  4006. HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
  4007. {
  4008. 8001fd8: b580 push {r7, lr}
  4009. 8001fda: b084 sub sp, #16
  4010. 8001fdc: af00 add r7, sp, #0
  4011. 8001fde: 6078 str r0, [r7, #4]
  4012. uint32_t tickstart = 0U;
  4013. 8001fe0: 2300 movs r3, #0
  4014. 8001fe2: 60fb str r3, [r7, #12]
  4015. /* Verification if ADC is not already disabled */
  4016. if (ADC_IS_ENABLE(hadc) != RESET)
  4017. 8001fe4: 687b ldr r3, [r7, #4]
  4018. 8001fe6: 681b ldr r3, [r3, #0]
  4019. 8001fe8: 689b ldr r3, [r3, #8]
  4020. 8001fea: f003 0301 and.w r3, r3, #1
  4021. 8001fee: 2b01 cmp r3, #1
  4022. 8001ff0: d127 bne.n 8002042 <ADC_ConversionStop_Disable+0x6a>
  4023. {
  4024. /* Disable the ADC peripheral */
  4025. __HAL_ADC_DISABLE(hadc);
  4026. 8001ff2: 687b ldr r3, [r7, #4]
  4027. 8001ff4: 681b ldr r3, [r3, #0]
  4028. 8001ff6: 689a ldr r2, [r3, #8]
  4029. 8001ff8: 687b ldr r3, [r7, #4]
  4030. 8001ffa: 681b ldr r3, [r3, #0]
  4031. 8001ffc: f022 0201 bic.w r2, r2, #1
  4032. 8002000: 609a str r2, [r3, #8]
  4033. /* Get tick count */
  4034. tickstart = HAL_GetTick();
  4035. 8002002: f7ff fc23 bl 800184c <HAL_GetTick>
  4036. 8002006: 60f8 str r0, [r7, #12]
  4037. /* Wait for ADC effectively disabled */
  4038. while(ADC_IS_ENABLE(hadc) != RESET)
  4039. 8002008: e014 b.n 8002034 <ADC_ConversionStop_Disable+0x5c>
  4040. {
  4041. if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  4042. 800200a: f7ff fc1f bl 800184c <HAL_GetTick>
  4043. 800200e: 4602 mov r2, r0
  4044. 8002010: 68fb ldr r3, [r7, #12]
  4045. 8002012: 1ad3 subs r3, r2, r3
  4046. 8002014: 2b02 cmp r3, #2
  4047. 8002016: d90d bls.n 8002034 <ADC_ConversionStop_Disable+0x5c>
  4048. {
  4049. /* Update ADC state machine to error */
  4050. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  4051. 8002018: 687b ldr r3, [r7, #4]
  4052. 800201a: 6a9b ldr r3, [r3, #40] ; 0x28
  4053. 800201c: f043 0210 orr.w r2, r3, #16
  4054. 8002020: 687b ldr r3, [r7, #4]
  4055. 8002022: 629a str r2, [r3, #40] ; 0x28
  4056. /* Set ADC error code to ADC IP internal error */
  4057. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4058. 8002024: 687b ldr r3, [r7, #4]
  4059. 8002026: 6adb ldr r3, [r3, #44] ; 0x2c
  4060. 8002028: f043 0201 orr.w r2, r3, #1
  4061. 800202c: 687b ldr r3, [r7, #4]
  4062. 800202e: 62da str r2, [r3, #44] ; 0x2c
  4063. return HAL_ERROR;
  4064. 8002030: 2301 movs r3, #1
  4065. 8002032: e007 b.n 8002044 <ADC_ConversionStop_Disable+0x6c>
  4066. while(ADC_IS_ENABLE(hadc) != RESET)
  4067. 8002034: 687b ldr r3, [r7, #4]
  4068. 8002036: 681b ldr r3, [r3, #0]
  4069. 8002038: 689b ldr r3, [r3, #8]
  4070. 800203a: f003 0301 and.w r3, r3, #1
  4071. 800203e: 2b01 cmp r3, #1
  4072. 8002040: d0e3 beq.n 800200a <ADC_ConversionStop_Disable+0x32>
  4073. }
  4074. }
  4075. }
  4076. /* Return HAL status */
  4077. return HAL_OK;
  4078. 8002042: 2300 movs r3, #0
  4079. }
  4080. 8002044: 4618 mov r0, r3
  4081. 8002046: 3710 adds r7, #16
  4082. 8002048: 46bd mov sp, r7
  4083. 800204a: bd80 pop {r7, pc}
  4084. 0800204c <ADC_DMAConvCplt>:
  4085. * @brief DMA transfer complete callback.
  4086. * @param hdma: pointer to DMA handle.
  4087. * @retval None
  4088. */
  4089. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  4090. {
  4091. 800204c: b580 push {r7, lr}
  4092. 800204e: b084 sub sp, #16
  4093. 8002050: af00 add r7, sp, #0
  4094. 8002052: 6078 str r0, [r7, #4]
  4095. /* Retrieve ADC handle corresponding to current DMA handle */
  4096. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4097. 8002054: 687b ldr r3, [r7, #4]
  4098. 8002056: 6a5b ldr r3, [r3, #36] ; 0x24
  4099. 8002058: 60fb str r3, [r7, #12]
  4100. /* Update state machine on conversion status if not in error state */
  4101. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
  4102. 800205a: 68fb ldr r3, [r7, #12]
  4103. 800205c: 6a9b ldr r3, [r3, #40] ; 0x28
  4104. 800205e: f003 0350 and.w r3, r3, #80 ; 0x50
  4105. 8002062: 2b00 cmp r3, #0
  4106. 8002064: d127 bne.n 80020b6 <ADC_DMAConvCplt+0x6a>
  4107. {
  4108. /* Update ADC state machine */
  4109. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  4110. 8002066: 68fb ldr r3, [r7, #12]
  4111. 8002068: 6a9b ldr r3, [r3, #40] ; 0x28
  4112. 800206a: f443 7200 orr.w r2, r3, #512 ; 0x200
  4113. 800206e: 68fb ldr r3, [r7, #12]
  4114. 8002070: 629a str r2, [r3, #40] ; 0x28
  4115. /* Determine whether any further conversion upcoming on group regular */
  4116. /* by external trigger, continuous mode or scan sequence on going. */
  4117. /* Note: On STM32F1 devices, in case of sequencer enabled */
  4118. /* (several ranks selected), end of conversion flag is raised */
  4119. /* at the end of the sequence. */
  4120. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4121. 8002072: 68fb ldr r3, [r7, #12]
  4122. 8002074: 681b ldr r3, [r3, #0]
  4123. 8002076: 689b ldr r3, [r3, #8]
  4124. 8002078: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4125. 800207c: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4126. 8002080: d115 bne.n 80020ae <ADC_DMAConvCplt+0x62>
  4127. (hadc->Init.ContinuousConvMode == DISABLE) )
  4128. 8002082: 68fb ldr r3, [r7, #12]
  4129. 8002084: 7b1b ldrb r3, [r3, #12]
  4130. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4131. 8002086: 2b00 cmp r3, #0
  4132. 8002088: d111 bne.n 80020ae <ADC_DMAConvCplt+0x62>
  4133. {
  4134. /* Set ADC state */
  4135. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  4136. 800208a: 68fb ldr r3, [r7, #12]
  4137. 800208c: 6a9b ldr r3, [r3, #40] ; 0x28
  4138. 800208e: f423 7280 bic.w r2, r3, #256 ; 0x100
  4139. 8002092: 68fb ldr r3, [r7, #12]
  4140. 8002094: 629a str r2, [r3, #40] ; 0x28
  4141. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  4142. 8002096: 68fb ldr r3, [r7, #12]
  4143. 8002098: 6a9b ldr r3, [r3, #40] ; 0x28
  4144. 800209a: f403 5380 and.w r3, r3, #4096 ; 0x1000
  4145. 800209e: 2b00 cmp r3, #0
  4146. 80020a0: d105 bne.n 80020ae <ADC_DMAConvCplt+0x62>
  4147. {
  4148. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4149. 80020a2: 68fb ldr r3, [r7, #12]
  4150. 80020a4: 6a9b ldr r3, [r3, #40] ; 0x28
  4151. 80020a6: f043 0201 orr.w r2, r3, #1
  4152. 80020aa: 68fb ldr r3, [r7, #12]
  4153. 80020ac: 629a str r2, [r3, #40] ; 0x28
  4154. /* Conversion complete callback */
  4155. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4156. hadc->ConvCpltCallback(hadc);
  4157. #else
  4158. HAL_ADC_ConvCpltCallback(hadc);
  4159. 80020ae: 68f8 ldr r0, [r7, #12]
  4160. 80020b0: f7ff f946 bl 8001340 <HAL_ADC_ConvCpltCallback>
  4161. else
  4162. {
  4163. /* Call DMA error callback */
  4164. hadc->DMA_Handle->XferErrorCallback(hdma);
  4165. }
  4166. }
  4167. 80020b4: e004 b.n 80020c0 <ADC_DMAConvCplt+0x74>
  4168. hadc->DMA_Handle->XferErrorCallback(hdma);
  4169. 80020b6: 68fb ldr r3, [r7, #12]
  4170. 80020b8: 6a1b ldr r3, [r3, #32]
  4171. 80020ba: 6b1b ldr r3, [r3, #48] ; 0x30
  4172. 80020bc: 6878 ldr r0, [r7, #4]
  4173. 80020be: 4798 blx r3
  4174. }
  4175. 80020c0: bf00 nop
  4176. 80020c2: 3710 adds r7, #16
  4177. 80020c4: 46bd mov sp, r7
  4178. 80020c6: bd80 pop {r7, pc}
  4179. 080020c8 <ADC_DMAHalfConvCplt>:
  4180. * @brief DMA half transfer complete callback.
  4181. * @param hdma: pointer to DMA handle.
  4182. * @retval None
  4183. */
  4184. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  4185. {
  4186. 80020c8: b580 push {r7, lr}
  4187. 80020ca: b084 sub sp, #16
  4188. 80020cc: af00 add r7, sp, #0
  4189. 80020ce: 6078 str r0, [r7, #4]
  4190. /* Retrieve ADC handle corresponding to current DMA handle */
  4191. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4192. 80020d0: 687b ldr r3, [r7, #4]
  4193. 80020d2: 6a5b ldr r3, [r3, #36] ; 0x24
  4194. 80020d4: 60fb str r3, [r7, #12]
  4195. /* Half conversion callback */
  4196. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4197. hadc->ConvHalfCpltCallback(hadc);
  4198. #else
  4199. HAL_ADC_ConvHalfCpltCallback(hadc);
  4200. 80020d6: 68f8 ldr r0, [r7, #12]
  4201. 80020d8: f7ff fe19 bl 8001d0e <HAL_ADC_ConvHalfCpltCallback>
  4202. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4203. }
  4204. 80020dc: bf00 nop
  4205. 80020de: 3710 adds r7, #16
  4206. 80020e0: 46bd mov sp, r7
  4207. 80020e2: bd80 pop {r7, pc}
  4208. 080020e4 <ADC_DMAError>:
  4209. * @brief DMA error callback
  4210. * @param hdma: pointer to DMA handle.
  4211. * @retval None
  4212. */
  4213. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  4214. {
  4215. 80020e4: b580 push {r7, lr}
  4216. 80020e6: b084 sub sp, #16
  4217. 80020e8: af00 add r7, sp, #0
  4218. 80020ea: 6078 str r0, [r7, #4]
  4219. /* Retrieve ADC handle corresponding to current DMA handle */
  4220. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4221. 80020ec: 687b ldr r3, [r7, #4]
  4222. 80020ee: 6a5b ldr r3, [r3, #36] ; 0x24
  4223. 80020f0: 60fb str r3, [r7, #12]
  4224. /* Set ADC state */
  4225. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  4226. 80020f2: 68fb ldr r3, [r7, #12]
  4227. 80020f4: 6a9b ldr r3, [r3, #40] ; 0x28
  4228. 80020f6: f043 0240 orr.w r2, r3, #64 ; 0x40
  4229. 80020fa: 68fb ldr r3, [r7, #12]
  4230. 80020fc: 629a str r2, [r3, #40] ; 0x28
  4231. /* Set ADC error code to DMA error */
  4232. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  4233. 80020fe: 68fb ldr r3, [r7, #12]
  4234. 8002100: 6adb ldr r3, [r3, #44] ; 0x2c
  4235. 8002102: f043 0204 orr.w r2, r3, #4
  4236. 8002106: 68fb ldr r3, [r7, #12]
  4237. 8002108: 62da str r2, [r3, #44] ; 0x2c
  4238. /* Error callback */
  4239. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4240. hadc->ErrorCallback(hadc);
  4241. #else
  4242. HAL_ADC_ErrorCallback(hadc);
  4243. 800210a: 68f8 ldr r0, [r7, #12]
  4244. 800210c: f7ff fe11 bl 8001d32 <HAL_ADC_ErrorCallback>
  4245. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4246. }
  4247. 8002110: bf00 nop
  4248. 8002112: 3710 adds r7, #16
  4249. 8002114: 46bd mov sp, r7
  4250. 8002116: bd80 pop {r7, pc}
  4251. 08002118 <HAL_ADCEx_Calibration_Start>:
  4252. * the completion of this function.
  4253. * @param hadc: ADC handle
  4254. * @retval HAL status
  4255. */
  4256. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc)
  4257. {
  4258. 8002118: b590 push {r4, r7, lr}
  4259. 800211a: b087 sub sp, #28
  4260. 800211c: af00 add r7, sp, #0
  4261. 800211e: 6078 str r0, [r7, #4]
  4262. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4263. 8002120: 2300 movs r3, #0
  4264. 8002122: 75fb strb r3, [r7, #23]
  4265. uint32_t tickstart;
  4266. __IO uint32_t wait_loop_index = 0U;
  4267. 8002124: 2300 movs r3, #0
  4268. 8002126: 60fb str r3, [r7, #12]
  4269. /* Check the parameters */
  4270. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  4271. /* Process locked */
  4272. __HAL_LOCK(hadc);
  4273. 8002128: 687b ldr r3, [r7, #4]
  4274. 800212a: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  4275. 800212e: 2b01 cmp r3, #1
  4276. 8002130: d101 bne.n 8002136 <HAL_ADCEx_Calibration_Start+0x1e>
  4277. 8002132: 2302 movs r3, #2
  4278. 8002134: e086 b.n 8002244 <HAL_ADCEx_Calibration_Start+0x12c>
  4279. 8002136: 687b ldr r3, [r7, #4]
  4280. 8002138: 2201 movs r2, #1
  4281. 800213a: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4282. /* 1. Calibration prerequisite: */
  4283. /* - ADC must be disabled for at least two ADC clock cycles in disable */
  4284. /* mode before ADC enable */
  4285. /* Stop potential conversion on going, on regular and injected groups */
  4286. /* Disable ADC peripheral */
  4287. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  4288. 800213e: 6878 ldr r0, [r7, #4]
  4289. 8002140: f7ff ff4a bl 8001fd8 <ADC_ConversionStop_Disable>
  4290. 8002144: 4603 mov r3, r0
  4291. 8002146: 75fb strb r3, [r7, #23]
  4292. /* Check if ADC is effectively disabled */
  4293. if (tmp_hal_status == HAL_OK)
  4294. 8002148: 7dfb ldrb r3, [r7, #23]
  4295. 800214a: 2b00 cmp r3, #0
  4296. 800214c: d175 bne.n 800223a <HAL_ADCEx_Calibration_Start+0x122>
  4297. {
  4298. /* Set ADC state */
  4299. ADC_STATE_CLR_SET(hadc->State,
  4300. 800214e: 687b ldr r3, [r7, #4]
  4301. 8002150: 6a9b ldr r3, [r3, #40] ; 0x28
  4302. 8002152: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  4303. 8002156: f023 0302 bic.w r3, r3, #2
  4304. 800215a: f043 0202 orr.w r2, r3, #2
  4305. 800215e: 687b ldr r3, [r7, #4]
  4306. 8002160: 629a str r2, [r3, #40] ; 0x28
  4307. /* Hardware prerequisite: delay before starting the calibration. */
  4308. /* - Computation of CPU clock cycles corresponding to ADC clock cycles. */
  4309. /* - Wait for the expected ADC clock cycles delay */
  4310. wait_loop_index = ((SystemCoreClock
  4311. / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC))
  4312. 8002162: 4b3a ldr r3, [pc, #232] ; (800224c <HAL_ADCEx_Calibration_Start+0x134>)
  4313. 8002164: 681c ldr r4, [r3, #0]
  4314. 8002166: 2002 movs r0, #2
  4315. 8002168: f001 fbf0 bl 800394c <HAL_RCCEx_GetPeriphCLKFreq>
  4316. 800216c: 4603 mov r3, r0
  4317. 800216e: fbb4 f3f3 udiv r3, r4, r3
  4318. * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES );
  4319. 8002172: 005b lsls r3, r3, #1
  4320. wait_loop_index = ((SystemCoreClock
  4321. 8002174: 60fb str r3, [r7, #12]
  4322. while(wait_loop_index != 0U)
  4323. 8002176: e002 b.n 800217e <HAL_ADCEx_Calibration_Start+0x66>
  4324. {
  4325. wait_loop_index--;
  4326. 8002178: 68fb ldr r3, [r7, #12]
  4327. 800217a: 3b01 subs r3, #1
  4328. 800217c: 60fb str r3, [r7, #12]
  4329. while(wait_loop_index != 0U)
  4330. 800217e: 68fb ldr r3, [r7, #12]
  4331. 8002180: 2b00 cmp r3, #0
  4332. 8002182: d1f9 bne.n 8002178 <HAL_ADCEx_Calibration_Start+0x60>
  4333. }
  4334. /* 2. Enable the ADC peripheral */
  4335. ADC_Enable(hadc);
  4336. 8002184: 6878 ldr r0, [r7, #4]
  4337. 8002186: f7ff fed5 bl 8001f34 <ADC_Enable>
  4338. /* 3. Resets ADC calibration registers */
  4339. SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL);
  4340. 800218a: 687b ldr r3, [r7, #4]
  4341. 800218c: 681b ldr r3, [r3, #0]
  4342. 800218e: 689a ldr r2, [r3, #8]
  4343. 8002190: 687b ldr r3, [r7, #4]
  4344. 8002192: 681b ldr r3, [r3, #0]
  4345. 8002194: f042 0208 orr.w r2, r2, #8
  4346. 8002198: 609a str r2, [r3, #8]
  4347. tickstart = HAL_GetTick();
  4348. 800219a: f7ff fb57 bl 800184c <HAL_GetTick>
  4349. 800219e: 6138 str r0, [r7, #16]
  4350. /* Wait for calibration reset completion */
  4351. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  4352. 80021a0: e014 b.n 80021cc <HAL_ADCEx_Calibration_Start+0xb4>
  4353. {
  4354. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  4355. 80021a2: f7ff fb53 bl 800184c <HAL_GetTick>
  4356. 80021a6: 4602 mov r2, r0
  4357. 80021a8: 693b ldr r3, [r7, #16]
  4358. 80021aa: 1ad3 subs r3, r2, r3
  4359. 80021ac: 2b0a cmp r3, #10
  4360. 80021ae: d90d bls.n 80021cc <HAL_ADCEx_Calibration_Start+0xb4>
  4361. {
  4362. /* Update ADC state machine to error */
  4363. ADC_STATE_CLR_SET(hadc->State,
  4364. 80021b0: 687b ldr r3, [r7, #4]
  4365. 80021b2: 6a9b ldr r3, [r3, #40] ; 0x28
  4366. 80021b4: f023 0312 bic.w r3, r3, #18
  4367. 80021b8: f043 0210 orr.w r2, r3, #16
  4368. 80021bc: 687b ldr r3, [r7, #4]
  4369. 80021be: 629a str r2, [r3, #40] ; 0x28
  4370. HAL_ADC_STATE_BUSY_INTERNAL,
  4371. HAL_ADC_STATE_ERROR_INTERNAL);
  4372. /* Process unlocked */
  4373. __HAL_UNLOCK(hadc);
  4374. 80021c0: 687b ldr r3, [r7, #4]
  4375. 80021c2: 2200 movs r2, #0
  4376. 80021c4: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4377. return HAL_ERROR;
  4378. 80021c8: 2301 movs r3, #1
  4379. 80021ca: e03b b.n 8002244 <HAL_ADCEx_Calibration_Start+0x12c>
  4380. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  4381. 80021cc: 687b ldr r3, [r7, #4]
  4382. 80021ce: 681b ldr r3, [r3, #0]
  4383. 80021d0: 689b ldr r3, [r3, #8]
  4384. 80021d2: f003 0308 and.w r3, r3, #8
  4385. 80021d6: 2b00 cmp r3, #0
  4386. 80021d8: d1e3 bne.n 80021a2 <HAL_ADCEx_Calibration_Start+0x8a>
  4387. }
  4388. }
  4389. /* 4. Start ADC calibration */
  4390. SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL);
  4391. 80021da: 687b ldr r3, [r7, #4]
  4392. 80021dc: 681b ldr r3, [r3, #0]
  4393. 80021de: 689a ldr r2, [r3, #8]
  4394. 80021e0: 687b ldr r3, [r7, #4]
  4395. 80021e2: 681b ldr r3, [r3, #0]
  4396. 80021e4: f042 0204 orr.w r2, r2, #4
  4397. 80021e8: 609a str r2, [r3, #8]
  4398. tickstart = HAL_GetTick();
  4399. 80021ea: f7ff fb2f bl 800184c <HAL_GetTick>
  4400. 80021ee: 6138 str r0, [r7, #16]
  4401. /* Wait for calibration completion */
  4402. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  4403. 80021f0: e014 b.n 800221c <HAL_ADCEx_Calibration_Start+0x104>
  4404. {
  4405. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  4406. 80021f2: f7ff fb2b bl 800184c <HAL_GetTick>
  4407. 80021f6: 4602 mov r2, r0
  4408. 80021f8: 693b ldr r3, [r7, #16]
  4409. 80021fa: 1ad3 subs r3, r2, r3
  4410. 80021fc: 2b0a cmp r3, #10
  4411. 80021fe: d90d bls.n 800221c <HAL_ADCEx_Calibration_Start+0x104>
  4412. {
  4413. /* Update ADC state machine to error */
  4414. ADC_STATE_CLR_SET(hadc->State,
  4415. 8002200: 687b ldr r3, [r7, #4]
  4416. 8002202: 6a9b ldr r3, [r3, #40] ; 0x28
  4417. 8002204: f023 0312 bic.w r3, r3, #18
  4418. 8002208: f043 0210 orr.w r2, r3, #16
  4419. 800220c: 687b ldr r3, [r7, #4]
  4420. 800220e: 629a str r2, [r3, #40] ; 0x28
  4421. HAL_ADC_STATE_BUSY_INTERNAL,
  4422. HAL_ADC_STATE_ERROR_INTERNAL);
  4423. /* Process unlocked */
  4424. __HAL_UNLOCK(hadc);
  4425. 8002210: 687b ldr r3, [r7, #4]
  4426. 8002212: 2200 movs r2, #0
  4427. 8002214: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4428. return HAL_ERROR;
  4429. 8002218: 2301 movs r3, #1
  4430. 800221a: e013 b.n 8002244 <HAL_ADCEx_Calibration_Start+0x12c>
  4431. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  4432. 800221c: 687b ldr r3, [r7, #4]
  4433. 800221e: 681b ldr r3, [r3, #0]
  4434. 8002220: 689b ldr r3, [r3, #8]
  4435. 8002222: f003 0304 and.w r3, r3, #4
  4436. 8002226: 2b00 cmp r3, #0
  4437. 8002228: d1e3 bne.n 80021f2 <HAL_ADCEx_Calibration_Start+0xda>
  4438. }
  4439. }
  4440. /* Set ADC state */
  4441. ADC_STATE_CLR_SET(hadc->State,
  4442. 800222a: 687b ldr r3, [r7, #4]
  4443. 800222c: 6a9b ldr r3, [r3, #40] ; 0x28
  4444. 800222e: f023 0303 bic.w r3, r3, #3
  4445. 8002232: f043 0201 orr.w r2, r3, #1
  4446. 8002236: 687b ldr r3, [r7, #4]
  4447. 8002238: 629a str r2, [r3, #40] ; 0x28
  4448. HAL_ADC_STATE_BUSY_INTERNAL,
  4449. HAL_ADC_STATE_READY);
  4450. }
  4451. /* Process unlocked */
  4452. __HAL_UNLOCK(hadc);
  4453. 800223a: 687b ldr r3, [r7, #4]
  4454. 800223c: 2200 movs r2, #0
  4455. 800223e: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4456. /* Return function status */
  4457. return tmp_hal_status;
  4458. 8002242: 7dfb ldrb r3, [r7, #23]
  4459. }
  4460. 8002244: 4618 mov r0, r3
  4461. 8002246: 371c adds r7, #28
  4462. 8002248: 46bd mov sp, r7
  4463. 800224a: bd90 pop {r4, r7, pc}
  4464. 800224c: 20000008 .word 0x20000008
  4465. 08002250 <HAL_ADCEx_InjectedConvCpltCallback>:
  4466. * @brief Injected conversion complete callback in non blocking mode
  4467. * @param hadc: ADC handle
  4468. * @retval None
  4469. */
  4470. __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc)
  4471. {
  4472. 8002250: b480 push {r7}
  4473. 8002252: b083 sub sp, #12
  4474. 8002254: af00 add r7, sp, #0
  4475. 8002256: 6078 str r0, [r7, #4]
  4476. /* Prevent unused argument(s) compilation warning */
  4477. UNUSED(hadc);
  4478. /* NOTE : This function Should not be modified, when the callback is needed,
  4479. the HAL_ADCEx_InjectedConvCpltCallback could be implemented in the user file
  4480. */
  4481. }
  4482. 8002258: bf00 nop
  4483. 800225a: 370c adds r7, #12
  4484. 800225c: 46bd mov sp, r7
  4485. 800225e: bc80 pop {r7}
  4486. 8002260: 4770 bx lr
  4487. ...
  4488. 08002264 <__NVIC_SetPriorityGrouping>:
  4489. In case of a conflict between priority grouping and available
  4490. priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
  4491. \param [in] PriorityGroup Priority grouping field.
  4492. */
  4493. __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  4494. {
  4495. 8002264: b480 push {r7}
  4496. 8002266: b085 sub sp, #20
  4497. 8002268: af00 add r7, sp, #0
  4498. 800226a: 6078 str r0, [r7, #4]
  4499. uint32_t reg_value;
  4500. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  4501. 800226c: 687b ldr r3, [r7, #4]
  4502. 800226e: f003 0307 and.w r3, r3, #7
  4503. 8002272: 60fb str r3, [r7, #12]
  4504. reg_value = SCB->AIRCR; /* read old register configuration */
  4505. 8002274: 4b0c ldr r3, [pc, #48] ; (80022a8 <__NVIC_SetPriorityGrouping+0x44>)
  4506. 8002276: 68db ldr r3, [r3, #12]
  4507. 8002278: 60bb str r3, [r7, #8]
  4508. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  4509. 800227a: 68ba ldr r2, [r7, #8]
  4510. 800227c: f64f 03ff movw r3, #63743 ; 0xf8ff
  4511. 8002280: 4013 ands r3, r2
  4512. 8002282: 60bb str r3, [r7, #8]
  4513. reg_value = (reg_value |
  4514. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  4515. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  4516. 8002284: 68fb ldr r3, [r7, #12]
  4517. 8002286: 021a lsls r2, r3, #8
  4518. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  4519. 8002288: 68bb ldr r3, [r7, #8]
  4520. 800228a: 4313 orrs r3, r2
  4521. reg_value = (reg_value |
  4522. 800228c: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  4523. 8002290: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  4524. 8002294: 60bb str r3, [r7, #8]
  4525. SCB->AIRCR = reg_value;
  4526. 8002296: 4a04 ldr r2, [pc, #16] ; (80022a8 <__NVIC_SetPriorityGrouping+0x44>)
  4527. 8002298: 68bb ldr r3, [r7, #8]
  4528. 800229a: 60d3 str r3, [r2, #12]
  4529. }
  4530. 800229c: bf00 nop
  4531. 800229e: 3714 adds r7, #20
  4532. 80022a0: 46bd mov sp, r7
  4533. 80022a2: bc80 pop {r7}
  4534. 80022a4: 4770 bx lr
  4535. 80022a6: bf00 nop
  4536. 80022a8: e000ed00 .word 0xe000ed00
  4537. 080022ac <__NVIC_GetPriorityGrouping>:
  4538. \brief Get Priority Grouping
  4539. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  4540. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  4541. */
  4542. __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
  4543. {
  4544. 80022ac: b480 push {r7}
  4545. 80022ae: af00 add r7, sp, #0
  4546. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  4547. 80022b0: 4b04 ldr r3, [pc, #16] ; (80022c4 <__NVIC_GetPriorityGrouping+0x18>)
  4548. 80022b2: 68db ldr r3, [r3, #12]
  4549. 80022b4: 0a1b lsrs r3, r3, #8
  4550. 80022b6: f003 0307 and.w r3, r3, #7
  4551. }
  4552. 80022ba: 4618 mov r0, r3
  4553. 80022bc: 46bd mov sp, r7
  4554. 80022be: bc80 pop {r7}
  4555. 80022c0: 4770 bx lr
  4556. 80022c2: bf00 nop
  4557. 80022c4: e000ed00 .word 0xe000ed00
  4558. 080022c8 <__NVIC_EnableIRQ>:
  4559. \details Enables a device specific interrupt in the NVIC interrupt controller.
  4560. \param [in] IRQn Device specific interrupt number.
  4561. \note IRQn must not be negative.
  4562. */
  4563. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  4564. {
  4565. 80022c8: b480 push {r7}
  4566. 80022ca: b083 sub sp, #12
  4567. 80022cc: af00 add r7, sp, #0
  4568. 80022ce: 4603 mov r3, r0
  4569. 80022d0: 71fb strb r3, [r7, #7]
  4570. if ((int32_t)(IRQn) >= 0)
  4571. 80022d2: f997 3007 ldrsb.w r3, [r7, #7]
  4572. 80022d6: 2b00 cmp r3, #0
  4573. 80022d8: db0b blt.n 80022f2 <__NVIC_EnableIRQ+0x2a>
  4574. {
  4575. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  4576. 80022da: 79fb ldrb r3, [r7, #7]
  4577. 80022dc: f003 021f and.w r2, r3, #31
  4578. 80022e0: 4906 ldr r1, [pc, #24] ; (80022fc <__NVIC_EnableIRQ+0x34>)
  4579. 80022e2: f997 3007 ldrsb.w r3, [r7, #7]
  4580. 80022e6: 095b lsrs r3, r3, #5
  4581. 80022e8: 2001 movs r0, #1
  4582. 80022ea: fa00 f202 lsl.w r2, r0, r2
  4583. 80022ee: f841 2023 str.w r2, [r1, r3, lsl #2]
  4584. }
  4585. }
  4586. 80022f2: bf00 nop
  4587. 80022f4: 370c adds r7, #12
  4588. 80022f6: 46bd mov sp, r7
  4589. 80022f8: bc80 pop {r7}
  4590. 80022fa: 4770 bx lr
  4591. 80022fc: e000e100 .word 0xe000e100
  4592. 08002300 <__NVIC_SetPriority>:
  4593. \param [in] IRQn Interrupt number.
  4594. \param [in] priority Priority to set.
  4595. \note The priority cannot be set for every processor exception.
  4596. */
  4597. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  4598. {
  4599. 8002300: b480 push {r7}
  4600. 8002302: b083 sub sp, #12
  4601. 8002304: af00 add r7, sp, #0
  4602. 8002306: 4603 mov r3, r0
  4603. 8002308: 6039 str r1, [r7, #0]
  4604. 800230a: 71fb strb r3, [r7, #7]
  4605. if ((int32_t)(IRQn) >= 0)
  4606. 800230c: f997 3007 ldrsb.w r3, [r7, #7]
  4607. 8002310: 2b00 cmp r3, #0
  4608. 8002312: db0a blt.n 800232a <__NVIC_SetPriority+0x2a>
  4609. {
  4610. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  4611. 8002314: 683b ldr r3, [r7, #0]
  4612. 8002316: b2da uxtb r2, r3
  4613. 8002318: 490c ldr r1, [pc, #48] ; (800234c <__NVIC_SetPriority+0x4c>)
  4614. 800231a: f997 3007 ldrsb.w r3, [r7, #7]
  4615. 800231e: 0112 lsls r2, r2, #4
  4616. 8002320: b2d2 uxtb r2, r2
  4617. 8002322: 440b add r3, r1
  4618. 8002324: f883 2300 strb.w r2, [r3, #768] ; 0x300
  4619. }
  4620. else
  4621. {
  4622. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  4623. }
  4624. }
  4625. 8002328: e00a b.n 8002340 <__NVIC_SetPriority+0x40>
  4626. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  4627. 800232a: 683b ldr r3, [r7, #0]
  4628. 800232c: b2da uxtb r2, r3
  4629. 800232e: 4908 ldr r1, [pc, #32] ; (8002350 <__NVIC_SetPriority+0x50>)
  4630. 8002330: 79fb ldrb r3, [r7, #7]
  4631. 8002332: f003 030f and.w r3, r3, #15
  4632. 8002336: 3b04 subs r3, #4
  4633. 8002338: 0112 lsls r2, r2, #4
  4634. 800233a: b2d2 uxtb r2, r2
  4635. 800233c: 440b add r3, r1
  4636. 800233e: 761a strb r2, [r3, #24]
  4637. }
  4638. 8002340: bf00 nop
  4639. 8002342: 370c adds r7, #12
  4640. 8002344: 46bd mov sp, r7
  4641. 8002346: bc80 pop {r7}
  4642. 8002348: 4770 bx lr
  4643. 800234a: bf00 nop
  4644. 800234c: e000e100 .word 0xe000e100
  4645. 8002350: e000ed00 .word 0xe000ed00
  4646. 08002354 <NVIC_EncodePriority>:
  4647. \param [in] PreemptPriority Preemptive priority value (starting from 0).
  4648. \param [in] SubPriority Subpriority value (starting from 0).
  4649. \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
  4650. */
  4651. __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
  4652. {
  4653. 8002354: b480 push {r7}
  4654. 8002356: b089 sub sp, #36 ; 0x24
  4655. 8002358: af00 add r7, sp, #0
  4656. 800235a: 60f8 str r0, [r7, #12]
  4657. 800235c: 60b9 str r1, [r7, #8]
  4658. 800235e: 607a str r2, [r7, #4]
  4659. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  4660. 8002360: 68fb ldr r3, [r7, #12]
  4661. 8002362: f003 0307 and.w r3, r3, #7
  4662. 8002366: 61fb str r3, [r7, #28]
  4663. uint32_t PreemptPriorityBits;
  4664. uint32_t SubPriorityBits;
  4665. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  4666. 8002368: 69fb ldr r3, [r7, #28]
  4667. 800236a: f1c3 0307 rsb r3, r3, #7
  4668. 800236e: 2b04 cmp r3, #4
  4669. 8002370: bf28 it cs
  4670. 8002372: 2304 movcs r3, #4
  4671. 8002374: 61bb str r3, [r7, #24]
  4672. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  4673. 8002376: 69fb ldr r3, [r7, #28]
  4674. 8002378: 3304 adds r3, #4
  4675. 800237a: 2b06 cmp r3, #6
  4676. 800237c: d902 bls.n 8002384 <NVIC_EncodePriority+0x30>
  4677. 800237e: 69fb ldr r3, [r7, #28]
  4678. 8002380: 3b03 subs r3, #3
  4679. 8002382: e000 b.n 8002386 <NVIC_EncodePriority+0x32>
  4680. 8002384: 2300 movs r3, #0
  4681. 8002386: 617b str r3, [r7, #20]
  4682. return (
  4683. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  4684. 8002388: f04f 32ff mov.w r2, #4294967295
  4685. 800238c: 69bb ldr r3, [r7, #24]
  4686. 800238e: fa02 f303 lsl.w r3, r2, r3
  4687. 8002392: 43da mvns r2, r3
  4688. 8002394: 68bb ldr r3, [r7, #8]
  4689. 8002396: 401a ands r2, r3
  4690. 8002398: 697b ldr r3, [r7, #20]
  4691. 800239a: 409a lsls r2, r3
  4692. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  4693. 800239c: f04f 31ff mov.w r1, #4294967295
  4694. 80023a0: 697b ldr r3, [r7, #20]
  4695. 80023a2: fa01 f303 lsl.w r3, r1, r3
  4696. 80023a6: 43d9 mvns r1, r3
  4697. 80023a8: 687b ldr r3, [r7, #4]
  4698. 80023aa: 400b ands r3, r1
  4699. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  4700. 80023ac: 4313 orrs r3, r2
  4701. );
  4702. }
  4703. 80023ae: 4618 mov r0, r3
  4704. 80023b0: 3724 adds r7, #36 ; 0x24
  4705. 80023b2: 46bd mov sp, r7
  4706. 80023b4: bc80 pop {r7}
  4707. 80023b6: 4770 bx lr
  4708. 080023b8 <HAL_NVIC_SetPriorityGrouping>:
  4709. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  4710. * The pending IRQ priority will be managed only by the subpriority.
  4711. * @retval None
  4712. */
  4713. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  4714. {
  4715. 80023b8: b580 push {r7, lr}
  4716. 80023ba: b082 sub sp, #8
  4717. 80023bc: af00 add r7, sp, #0
  4718. 80023be: 6078 str r0, [r7, #4]
  4719. /* Check the parameters */
  4720. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  4721. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  4722. NVIC_SetPriorityGrouping(PriorityGroup);
  4723. 80023c0: 6878 ldr r0, [r7, #4]
  4724. 80023c2: f7ff ff4f bl 8002264 <__NVIC_SetPriorityGrouping>
  4725. }
  4726. 80023c6: bf00 nop
  4727. 80023c8: 3708 adds r7, #8
  4728. 80023ca: 46bd mov sp, r7
  4729. 80023cc: bd80 pop {r7, pc}
  4730. 080023ce <HAL_NVIC_SetPriority>:
  4731. * This parameter can be a value between 0 and 15
  4732. * A lower priority value indicates a higher priority.
  4733. * @retval None
  4734. */
  4735. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  4736. {
  4737. 80023ce: b580 push {r7, lr}
  4738. 80023d0: b086 sub sp, #24
  4739. 80023d2: af00 add r7, sp, #0
  4740. 80023d4: 4603 mov r3, r0
  4741. 80023d6: 60b9 str r1, [r7, #8]
  4742. 80023d8: 607a str r2, [r7, #4]
  4743. 80023da: 73fb strb r3, [r7, #15]
  4744. uint32_t prioritygroup = 0x00U;
  4745. 80023dc: 2300 movs r3, #0
  4746. 80023de: 617b str r3, [r7, #20]
  4747. /* Check the parameters */
  4748. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  4749. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  4750. prioritygroup = NVIC_GetPriorityGrouping();
  4751. 80023e0: f7ff ff64 bl 80022ac <__NVIC_GetPriorityGrouping>
  4752. 80023e4: 6178 str r0, [r7, #20]
  4753. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  4754. 80023e6: 687a ldr r2, [r7, #4]
  4755. 80023e8: 68b9 ldr r1, [r7, #8]
  4756. 80023ea: 6978 ldr r0, [r7, #20]
  4757. 80023ec: f7ff ffb2 bl 8002354 <NVIC_EncodePriority>
  4758. 80023f0: 4602 mov r2, r0
  4759. 80023f2: f997 300f ldrsb.w r3, [r7, #15]
  4760. 80023f6: 4611 mov r1, r2
  4761. 80023f8: 4618 mov r0, r3
  4762. 80023fa: f7ff ff81 bl 8002300 <__NVIC_SetPriority>
  4763. }
  4764. 80023fe: bf00 nop
  4765. 8002400: 3718 adds r7, #24
  4766. 8002402: 46bd mov sp, r7
  4767. 8002404: bd80 pop {r7, pc}
  4768. 08002406 <HAL_NVIC_EnableIRQ>:
  4769. * This parameter can be an enumerator of IRQn_Type enumeration
  4770. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f10xxx.h))
  4771. * @retval None
  4772. */
  4773. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  4774. {
  4775. 8002406: b580 push {r7, lr}
  4776. 8002408: b082 sub sp, #8
  4777. 800240a: af00 add r7, sp, #0
  4778. 800240c: 4603 mov r3, r0
  4779. 800240e: 71fb strb r3, [r7, #7]
  4780. /* Check the parameters */
  4781. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  4782. /* Enable interrupt */
  4783. NVIC_EnableIRQ(IRQn);
  4784. 8002410: f997 3007 ldrsb.w r3, [r7, #7]
  4785. 8002414: 4618 mov r0, r3
  4786. 8002416: f7ff ff57 bl 80022c8 <__NVIC_EnableIRQ>
  4787. }
  4788. 800241a: bf00 nop
  4789. 800241c: 3708 adds r7, #8
  4790. 800241e: 46bd mov sp, r7
  4791. 8002420: bd80 pop {r7, pc}
  4792. ...
  4793. 08002424 <HAL_DMA_Init>:
  4794. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  4795. * the configuration information for the specified DMA Channel.
  4796. * @retval HAL status
  4797. */
  4798. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  4799. {
  4800. 8002424: b480 push {r7}
  4801. 8002426: b085 sub sp, #20
  4802. 8002428: af00 add r7, sp, #0
  4803. 800242a: 6078 str r0, [r7, #4]
  4804. uint32_t tmp = 0U;
  4805. 800242c: 2300 movs r3, #0
  4806. 800242e: 60fb str r3, [r7, #12]
  4807. /* Check the DMA handle allocation */
  4808. if(hdma == NULL)
  4809. 8002430: 687b ldr r3, [r7, #4]
  4810. 8002432: 2b00 cmp r3, #0
  4811. 8002434: d101 bne.n 800243a <HAL_DMA_Init+0x16>
  4812. {
  4813. return HAL_ERROR;
  4814. 8002436: 2301 movs r3, #1
  4815. 8002438: e043 b.n 80024c2 <HAL_DMA_Init+0x9e>
  4816. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2;
  4817. hdma->DmaBaseAddress = DMA2;
  4818. }
  4819. #else
  4820. /* DMA1 */
  4821. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2;
  4822. 800243a: 687b ldr r3, [r7, #4]
  4823. 800243c: 681b ldr r3, [r3, #0]
  4824. 800243e: 461a mov r2, r3
  4825. 8002440: 4b22 ldr r3, [pc, #136] ; (80024cc <HAL_DMA_Init+0xa8>)
  4826. 8002442: 4413 add r3, r2
  4827. 8002444: 4a22 ldr r2, [pc, #136] ; (80024d0 <HAL_DMA_Init+0xac>)
  4828. 8002446: fba2 2303 umull r2, r3, r2, r3
  4829. 800244a: 091b lsrs r3, r3, #4
  4830. 800244c: 009a lsls r2, r3, #2
  4831. 800244e: 687b ldr r3, [r7, #4]
  4832. 8002450: 641a str r2, [r3, #64] ; 0x40
  4833. hdma->DmaBaseAddress = DMA1;
  4834. 8002452: 687b ldr r3, [r7, #4]
  4835. 8002454: 4a1f ldr r2, [pc, #124] ; (80024d4 <HAL_DMA_Init+0xb0>)
  4836. 8002456: 63da str r2, [r3, #60] ; 0x3c
  4837. #endif /* DMA2 */
  4838. /* Change DMA peripheral state */
  4839. hdma->State = HAL_DMA_STATE_BUSY;
  4840. 8002458: 687b ldr r3, [r7, #4]
  4841. 800245a: 2202 movs r2, #2
  4842. 800245c: f883 2021 strb.w r2, [r3, #33] ; 0x21
  4843. /* Get the CR register value */
  4844. tmp = hdma->Instance->CCR;
  4845. 8002460: 687b ldr r3, [r7, #4]
  4846. 8002462: 681b ldr r3, [r3, #0]
  4847. 8002464: 681b ldr r3, [r3, #0]
  4848. 8002466: 60fb str r3, [r7, #12]
  4849. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */
  4850. tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \
  4851. 8002468: 68fb ldr r3, [r7, #12]
  4852. 800246a: f423 537f bic.w r3, r3, #16320 ; 0x3fc0
  4853. 800246e: f023 0330 bic.w r3, r3, #48 ; 0x30
  4854. 8002472: 60fb str r3, [r7, #12]
  4855. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \
  4856. DMA_CCR_DIR));
  4857. /* Prepare the DMA Channel configuration */
  4858. tmp |= hdma->Init.Direction |
  4859. 8002474: 687b ldr r3, [r7, #4]
  4860. 8002476: 685a ldr r2, [r3, #4]
  4861. hdma->Init.PeriphInc | hdma->Init.MemInc |
  4862. 8002478: 687b ldr r3, [r7, #4]
  4863. 800247a: 689b ldr r3, [r3, #8]
  4864. tmp |= hdma->Init.Direction |
  4865. 800247c: 431a orrs r2, r3
  4866. hdma->Init.PeriphInc | hdma->Init.MemInc |
  4867. 800247e: 687b ldr r3, [r7, #4]
  4868. 8002480: 68db ldr r3, [r3, #12]
  4869. 8002482: 431a orrs r2, r3
  4870. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  4871. 8002484: 687b ldr r3, [r7, #4]
  4872. 8002486: 691b ldr r3, [r3, #16]
  4873. hdma->Init.PeriphInc | hdma->Init.MemInc |
  4874. 8002488: 431a orrs r2, r3
  4875. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  4876. 800248a: 687b ldr r3, [r7, #4]
  4877. 800248c: 695b ldr r3, [r3, #20]
  4878. 800248e: 431a orrs r2, r3
  4879. hdma->Init.Mode | hdma->Init.Priority;
  4880. 8002490: 687b ldr r3, [r7, #4]
  4881. 8002492: 699b ldr r3, [r3, #24]
  4882. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  4883. 8002494: 431a orrs r2, r3
  4884. hdma->Init.Mode | hdma->Init.Priority;
  4885. 8002496: 687b ldr r3, [r7, #4]
  4886. 8002498: 69db ldr r3, [r3, #28]
  4887. 800249a: 4313 orrs r3, r2
  4888. tmp |= hdma->Init.Direction |
  4889. 800249c: 68fa ldr r2, [r7, #12]
  4890. 800249e: 4313 orrs r3, r2
  4891. 80024a0: 60fb str r3, [r7, #12]
  4892. /* Write to DMA Channel CR register */
  4893. hdma->Instance->CCR = tmp;
  4894. 80024a2: 687b ldr r3, [r7, #4]
  4895. 80024a4: 681b ldr r3, [r3, #0]
  4896. 80024a6: 68fa ldr r2, [r7, #12]
  4897. 80024a8: 601a str r2, [r3, #0]
  4898. /* Initialise the error code */
  4899. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  4900. 80024aa: 687b ldr r3, [r7, #4]
  4901. 80024ac: 2200 movs r2, #0
  4902. 80024ae: 639a str r2, [r3, #56] ; 0x38
  4903. /* Initialize the DMA state*/
  4904. hdma->State = HAL_DMA_STATE_READY;
  4905. 80024b0: 687b ldr r3, [r7, #4]
  4906. 80024b2: 2201 movs r2, #1
  4907. 80024b4: f883 2021 strb.w r2, [r3, #33] ; 0x21
  4908. /* Allocate lock resource and initialize it */
  4909. hdma->Lock = HAL_UNLOCKED;
  4910. 80024b8: 687b ldr r3, [r7, #4]
  4911. 80024ba: 2200 movs r2, #0
  4912. 80024bc: f883 2020 strb.w r2, [r3, #32]
  4913. return HAL_OK;
  4914. 80024c0: 2300 movs r3, #0
  4915. }
  4916. 80024c2: 4618 mov r0, r3
  4917. 80024c4: 3714 adds r7, #20
  4918. 80024c6: 46bd mov sp, r7
  4919. 80024c8: bc80 pop {r7}
  4920. 80024ca: 4770 bx lr
  4921. 80024cc: bffdfff8 .word 0xbffdfff8
  4922. 80024d0: cccccccd .word 0xcccccccd
  4923. 80024d4: 40020000 .word 0x40020000
  4924. 080024d8 <HAL_DMA_Start_IT>:
  4925. * @param DstAddress: The destination memory Buffer address
  4926. * @param DataLength: The length of data to be transferred from source to destination
  4927. * @retval HAL status
  4928. */
  4929. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  4930. {
  4931. 80024d8: b580 push {r7, lr}
  4932. 80024da: b086 sub sp, #24
  4933. 80024dc: af00 add r7, sp, #0
  4934. 80024de: 60f8 str r0, [r7, #12]
  4935. 80024e0: 60b9 str r1, [r7, #8]
  4936. 80024e2: 607a str r2, [r7, #4]
  4937. 80024e4: 603b str r3, [r7, #0]
  4938. HAL_StatusTypeDef status = HAL_OK;
  4939. 80024e6: 2300 movs r3, #0
  4940. 80024e8: 75fb strb r3, [r7, #23]
  4941. /* Check the parameters */
  4942. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  4943. /* Process locked */
  4944. __HAL_LOCK(hdma);
  4945. 80024ea: 68fb ldr r3, [r7, #12]
  4946. 80024ec: f893 3020 ldrb.w r3, [r3, #32]
  4947. 80024f0: 2b01 cmp r3, #1
  4948. 80024f2: d101 bne.n 80024f8 <HAL_DMA_Start_IT+0x20>
  4949. 80024f4: 2302 movs r3, #2
  4950. 80024f6: e04a b.n 800258e <HAL_DMA_Start_IT+0xb6>
  4951. 80024f8: 68fb ldr r3, [r7, #12]
  4952. 80024fa: 2201 movs r2, #1
  4953. 80024fc: f883 2020 strb.w r2, [r3, #32]
  4954. if(HAL_DMA_STATE_READY == hdma->State)
  4955. 8002500: 68fb ldr r3, [r7, #12]
  4956. 8002502: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  4957. 8002506: 2b01 cmp r3, #1
  4958. 8002508: d13a bne.n 8002580 <HAL_DMA_Start_IT+0xa8>
  4959. {
  4960. /* Change DMA peripheral state */
  4961. hdma->State = HAL_DMA_STATE_BUSY;
  4962. 800250a: 68fb ldr r3, [r7, #12]
  4963. 800250c: 2202 movs r2, #2
  4964. 800250e: f883 2021 strb.w r2, [r3, #33] ; 0x21
  4965. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  4966. 8002512: 68fb ldr r3, [r7, #12]
  4967. 8002514: 2200 movs r2, #0
  4968. 8002516: 639a str r2, [r3, #56] ; 0x38
  4969. /* Disable the peripheral */
  4970. __HAL_DMA_DISABLE(hdma);
  4971. 8002518: 68fb ldr r3, [r7, #12]
  4972. 800251a: 681b ldr r3, [r3, #0]
  4973. 800251c: 681a ldr r2, [r3, #0]
  4974. 800251e: 68fb ldr r3, [r7, #12]
  4975. 8002520: 681b ldr r3, [r3, #0]
  4976. 8002522: f022 0201 bic.w r2, r2, #1
  4977. 8002526: 601a str r2, [r3, #0]
  4978. /* Configure the source, destination address and the data length & clear flags*/
  4979. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  4980. 8002528: 683b ldr r3, [r7, #0]
  4981. 800252a: 687a ldr r2, [r7, #4]
  4982. 800252c: 68b9 ldr r1, [r7, #8]
  4983. 800252e: 68f8 ldr r0, [r7, #12]
  4984. 8002530: f000 f9ae bl 8002890 <DMA_SetConfig>
  4985. /* Enable the transfer complete interrupt */
  4986. /* Enable the transfer Error interrupt */
  4987. if(NULL != hdma->XferHalfCpltCallback)
  4988. 8002534: 68fb ldr r3, [r7, #12]
  4989. 8002536: 6adb ldr r3, [r3, #44] ; 0x2c
  4990. 8002538: 2b00 cmp r3, #0
  4991. 800253a: d008 beq.n 800254e <HAL_DMA_Start_IT+0x76>
  4992. {
  4993. /* Enable the Half transfer complete interrupt as well */
  4994. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  4995. 800253c: 68fb ldr r3, [r7, #12]
  4996. 800253e: 681b ldr r3, [r3, #0]
  4997. 8002540: 681a ldr r2, [r3, #0]
  4998. 8002542: 68fb ldr r3, [r7, #12]
  4999. 8002544: 681b ldr r3, [r3, #0]
  5000. 8002546: f042 020e orr.w r2, r2, #14
  5001. 800254a: 601a str r2, [r3, #0]
  5002. 800254c: e00f b.n 800256e <HAL_DMA_Start_IT+0x96>
  5003. }
  5004. else
  5005. {
  5006. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  5007. 800254e: 68fb ldr r3, [r7, #12]
  5008. 8002550: 681b ldr r3, [r3, #0]
  5009. 8002552: 681a ldr r2, [r3, #0]
  5010. 8002554: 68fb ldr r3, [r7, #12]
  5011. 8002556: 681b ldr r3, [r3, #0]
  5012. 8002558: f022 0204 bic.w r2, r2, #4
  5013. 800255c: 601a str r2, [r3, #0]
  5014. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  5015. 800255e: 68fb ldr r3, [r7, #12]
  5016. 8002560: 681b ldr r3, [r3, #0]
  5017. 8002562: 681a ldr r2, [r3, #0]
  5018. 8002564: 68fb ldr r3, [r7, #12]
  5019. 8002566: 681b ldr r3, [r3, #0]
  5020. 8002568: f042 020a orr.w r2, r2, #10
  5021. 800256c: 601a str r2, [r3, #0]
  5022. }
  5023. /* Enable the Peripheral */
  5024. __HAL_DMA_ENABLE(hdma);
  5025. 800256e: 68fb ldr r3, [r7, #12]
  5026. 8002570: 681b ldr r3, [r3, #0]
  5027. 8002572: 681a ldr r2, [r3, #0]
  5028. 8002574: 68fb ldr r3, [r7, #12]
  5029. 8002576: 681b ldr r3, [r3, #0]
  5030. 8002578: f042 0201 orr.w r2, r2, #1
  5031. 800257c: 601a str r2, [r3, #0]
  5032. 800257e: e005 b.n 800258c <HAL_DMA_Start_IT+0xb4>
  5033. }
  5034. else
  5035. {
  5036. /* Process Unlocked */
  5037. __HAL_UNLOCK(hdma);
  5038. 8002580: 68fb ldr r3, [r7, #12]
  5039. 8002582: 2200 movs r2, #0
  5040. 8002584: f883 2020 strb.w r2, [r3, #32]
  5041. /* Remain BUSY */
  5042. status = HAL_BUSY;
  5043. 8002588: 2302 movs r3, #2
  5044. 800258a: 75fb strb r3, [r7, #23]
  5045. }
  5046. return status;
  5047. 800258c: 7dfb ldrb r3, [r7, #23]
  5048. }
  5049. 800258e: 4618 mov r0, r3
  5050. 8002590: 3718 adds r7, #24
  5051. 8002592: 46bd mov sp, r7
  5052. 8002594: bd80 pop {r7, pc}
  5053. ...
  5054. 08002598 <HAL_DMA_Abort_IT>:
  5055. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  5056. * the configuration information for the specified DMA Channel.
  5057. * @retval HAL status
  5058. */
  5059. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  5060. {
  5061. 8002598: b580 push {r7, lr}
  5062. 800259a: b084 sub sp, #16
  5063. 800259c: af00 add r7, sp, #0
  5064. 800259e: 6078 str r0, [r7, #4]
  5065. HAL_StatusTypeDef status = HAL_OK;
  5066. 80025a0: 2300 movs r3, #0
  5067. 80025a2: 73fb strb r3, [r7, #15]
  5068. if(HAL_DMA_STATE_BUSY != hdma->State)
  5069. 80025a4: 687b ldr r3, [r7, #4]
  5070. 80025a6: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5071. 80025aa: 2b02 cmp r3, #2
  5072. 80025ac: d005 beq.n 80025ba <HAL_DMA_Abort_IT+0x22>
  5073. {
  5074. /* no transfer ongoing */
  5075. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  5076. 80025ae: 687b ldr r3, [r7, #4]
  5077. 80025b0: 2204 movs r2, #4
  5078. 80025b2: 639a str r2, [r3, #56] ; 0x38
  5079. status = HAL_ERROR;
  5080. 80025b4: 2301 movs r3, #1
  5081. 80025b6: 73fb strb r3, [r7, #15]
  5082. 80025b8: e051 b.n 800265e <HAL_DMA_Abort_IT+0xc6>
  5083. }
  5084. else
  5085. {
  5086. /* Disable DMA IT */
  5087. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  5088. 80025ba: 687b ldr r3, [r7, #4]
  5089. 80025bc: 681b ldr r3, [r3, #0]
  5090. 80025be: 681a ldr r2, [r3, #0]
  5091. 80025c0: 687b ldr r3, [r7, #4]
  5092. 80025c2: 681b ldr r3, [r3, #0]
  5093. 80025c4: f022 020e bic.w r2, r2, #14
  5094. 80025c8: 601a str r2, [r3, #0]
  5095. /* Disable the channel */
  5096. __HAL_DMA_DISABLE(hdma);
  5097. 80025ca: 687b ldr r3, [r7, #4]
  5098. 80025cc: 681b ldr r3, [r3, #0]
  5099. 80025ce: 681a ldr r2, [r3, #0]
  5100. 80025d0: 687b ldr r3, [r7, #4]
  5101. 80025d2: 681b ldr r3, [r3, #0]
  5102. 80025d4: f022 0201 bic.w r2, r2, #1
  5103. 80025d8: 601a str r2, [r3, #0]
  5104. /* Clear all flags */
  5105. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma));
  5106. 80025da: 687b ldr r3, [r7, #4]
  5107. 80025dc: 681b ldr r3, [r3, #0]
  5108. 80025de: 4a22 ldr r2, [pc, #136] ; (8002668 <HAL_DMA_Abort_IT+0xd0>)
  5109. 80025e0: 4293 cmp r3, r2
  5110. 80025e2: d029 beq.n 8002638 <HAL_DMA_Abort_IT+0xa0>
  5111. 80025e4: 687b ldr r3, [r7, #4]
  5112. 80025e6: 681b ldr r3, [r3, #0]
  5113. 80025e8: 4a20 ldr r2, [pc, #128] ; (800266c <HAL_DMA_Abort_IT+0xd4>)
  5114. 80025ea: 4293 cmp r3, r2
  5115. 80025ec: d022 beq.n 8002634 <HAL_DMA_Abort_IT+0x9c>
  5116. 80025ee: 687b ldr r3, [r7, #4]
  5117. 80025f0: 681b ldr r3, [r3, #0]
  5118. 80025f2: 4a1f ldr r2, [pc, #124] ; (8002670 <HAL_DMA_Abort_IT+0xd8>)
  5119. 80025f4: 4293 cmp r3, r2
  5120. 80025f6: d01a beq.n 800262e <HAL_DMA_Abort_IT+0x96>
  5121. 80025f8: 687b ldr r3, [r7, #4]
  5122. 80025fa: 681b ldr r3, [r3, #0]
  5123. 80025fc: 4a1d ldr r2, [pc, #116] ; (8002674 <HAL_DMA_Abort_IT+0xdc>)
  5124. 80025fe: 4293 cmp r3, r2
  5125. 8002600: d012 beq.n 8002628 <HAL_DMA_Abort_IT+0x90>
  5126. 8002602: 687b ldr r3, [r7, #4]
  5127. 8002604: 681b ldr r3, [r3, #0]
  5128. 8002606: 4a1c ldr r2, [pc, #112] ; (8002678 <HAL_DMA_Abort_IT+0xe0>)
  5129. 8002608: 4293 cmp r3, r2
  5130. 800260a: d00a beq.n 8002622 <HAL_DMA_Abort_IT+0x8a>
  5131. 800260c: 687b ldr r3, [r7, #4]
  5132. 800260e: 681b ldr r3, [r3, #0]
  5133. 8002610: 4a1a ldr r2, [pc, #104] ; (800267c <HAL_DMA_Abort_IT+0xe4>)
  5134. 8002612: 4293 cmp r3, r2
  5135. 8002614: d102 bne.n 800261c <HAL_DMA_Abort_IT+0x84>
  5136. 8002616: f44f 1380 mov.w r3, #1048576 ; 0x100000
  5137. 800261a: e00e b.n 800263a <HAL_DMA_Abort_IT+0xa2>
  5138. 800261c: f04f 7380 mov.w r3, #16777216 ; 0x1000000
  5139. 8002620: e00b b.n 800263a <HAL_DMA_Abort_IT+0xa2>
  5140. 8002622: f44f 3380 mov.w r3, #65536 ; 0x10000
  5141. 8002626: e008 b.n 800263a <HAL_DMA_Abort_IT+0xa2>
  5142. 8002628: f44f 5380 mov.w r3, #4096 ; 0x1000
  5143. 800262c: e005 b.n 800263a <HAL_DMA_Abort_IT+0xa2>
  5144. 800262e: f44f 7380 mov.w r3, #256 ; 0x100
  5145. 8002632: e002 b.n 800263a <HAL_DMA_Abort_IT+0xa2>
  5146. 8002634: 2310 movs r3, #16
  5147. 8002636: e000 b.n 800263a <HAL_DMA_Abort_IT+0xa2>
  5148. 8002638: 2301 movs r3, #1
  5149. 800263a: 4a11 ldr r2, [pc, #68] ; (8002680 <HAL_DMA_Abort_IT+0xe8>)
  5150. 800263c: 6053 str r3, [r2, #4]
  5151. /* Change the DMA state */
  5152. hdma->State = HAL_DMA_STATE_READY;
  5153. 800263e: 687b ldr r3, [r7, #4]
  5154. 8002640: 2201 movs r2, #1
  5155. 8002642: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5156. /* Process Unlocked */
  5157. __HAL_UNLOCK(hdma);
  5158. 8002646: 687b ldr r3, [r7, #4]
  5159. 8002648: 2200 movs r2, #0
  5160. 800264a: f883 2020 strb.w r2, [r3, #32]
  5161. /* Call User Abort callback */
  5162. if(hdma->XferAbortCallback != NULL)
  5163. 800264e: 687b ldr r3, [r7, #4]
  5164. 8002650: 6b5b ldr r3, [r3, #52] ; 0x34
  5165. 8002652: 2b00 cmp r3, #0
  5166. 8002654: d003 beq.n 800265e <HAL_DMA_Abort_IT+0xc6>
  5167. {
  5168. hdma->XferAbortCallback(hdma);
  5169. 8002656: 687b ldr r3, [r7, #4]
  5170. 8002658: 6b5b ldr r3, [r3, #52] ; 0x34
  5171. 800265a: 6878 ldr r0, [r7, #4]
  5172. 800265c: 4798 blx r3
  5173. }
  5174. }
  5175. return status;
  5176. 800265e: 7bfb ldrb r3, [r7, #15]
  5177. }
  5178. 8002660: 4618 mov r0, r3
  5179. 8002662: 3710 adds r7, #16
  5180. 8002664: 46bd mov sp, r7
  5181. 8002666: bd80 pop {r7, pc}
  5182. 8002668: 40020008 .word 0x40020008
  5183. 800266c: 4002001c .word 0x4002001c
  5184. 8002670: 40020030 .word 0x40020030
  5185. 8002674: 40020044 .word 0x40020044
  5186. 8002678: 40020058 .word 0x40020058
  5187. 800267c: 4002006c .word 0x4002006c
  5188. 8002680: 40020000 .word 0x40020000
  5189. 08002684 <HAL_DMA_IRQHandler>:
  5190. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  5191. * the configuration information for the specified DMA Channel.
  5192. * @retval None
  5193. */
  5194. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  5195. {
  5196. 8002684: b580 push {r7, lr}
  5197. 8002686: b084 sub sp, #16
  5198. 8002688: af00 add r7, sp, #0
  5199. 800268a: 6078 str r0, [r7, #4]
  5200. uint32_t flag_it = hdma->DmaBaseAddress->ISR;
  5201. 800268c: 687b ldr r3, [r7, #4]
  5202. 800268e: 6bdb ldr r3, [r3, #60] ; 0x3c
  5203. 8002690: 681b ldr r3, [r3, #0]
  5204. 8002692: 60fb str r3, [r7, #12]
  5205. uint32_t source_it = hdma->Instance->CCR;
  5206. 8002694: 687b ldr r3, [r7, #4]
  5207. 8002696: 681b ldr r3, [r3, #0]
  5208. 8002698: 681b ldr r3, [r3, #0]
  5209. 800269a: 60bb str r3, [r7, #8]
  5210. /* Half Transfer Complete Interrupt management ******************************/
  5211. if (((flag_it & (DMA_FLAG_HT1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_HT) != RESET))
  5212. 800269c: 687b ldr r3, [r7, #4]
  5213. 800269e: 6c1b ldr r3, [r3, #64] ; 0x40
  5214. 80026a0: 2204 movs r2, #4
  5215. 80026a2: 409a lsls r2, r3
  5216. 80026a4: 68fb ldr r3, [r7, #12]
  5217. 80026a6: 4013 ands r3, r2
  5218. 80026a8: 2b00 cmp r3, #0
  5219. 80026aa: d04f beq.n 800274c <HAL_DMA_IRQHandler+0xc8>
  5220. 80026ac: 68bb ldr r3, [r7, #8]
  5221. 80026ae: f003 0304 and.w r3, r3, #4
  5222. 80026b2: 2b00 cmp r3, #0
  5223. 80026b4: d04a beq.n 800274c <HAL_DMA_IRQHandler+0xc8>
  5224. {
  5225. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  5226. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  5227. 80026b6: 687b ldr r3, [r7, #4]
  5228. 80026b8: 681b ldr r3, [r3, #0]
  5229. 80026ba: 681b ldr r3, [r3, #0]
  5230. 80026bc: f003 0320 and.w r3, r3, #32
  5231. 80026c0: 2b00 cmp r3, #0
  5232. 80026c2: d107 bne.n 80026d4 <HAL_DMA_IRQHandler+0x50>
  5233. {
  5234. /* Disable the half transfer interrupt */
  5235. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  5236. 80026c4: 687b ldr r3, [r7, #4]
  5237. 80026c6: 681b ldr r3, [r3, #0]
  5238. 80026c8: 681a ldr r2, [r3, #0]
  5239. 80026ca: 687b ldr r3, [r7, #4]
  5240. 80026cc: 681b ldr r3, [r3, #0]
  5241. 80026ce: f022 0204 bic.w r2, r2, #4
  5242. 80026d2: 601a str r2, [r3, #0]
  5243. }
  5244. /* Clear the half transfer complete flag */
  5245. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma));
  5246. 80026d4: 687b ldr r3, [r7, #4]
  5247. 80026d6: 681b ldr r3, [r3, #0]
  5248. 80026d8: 4a66 ldr r2, [pc, #408] ; (8002874 <HAL_DMA_IRQHandler+0x1f0>)
  5249. 80026da: 4293 cmp r3, r2
  5250. 80026dc: d029 beq.n 8002732 <HAL_DMA_IRQHandler+0xae>
  5251. 80026de: 687b ldr r3, [r7, #4]
  5252. 80026e0: 681b ldr r3, [r3, #0]
  5253. 80026e2: 4a65 ldr r2, [pc, #404] ; (8002878 <HAL_DMA_IRQHandler+0x1f4>)
  5254. 80026e4: 4293 cmp r3, r2
  5255. 80026e6: d022 beq.n 800272e <HAL_DMA_IRQHandler+0xaa>
  5256. 80026e8: 687b ldr r3, [r7, #4]
  5257. 80026ea: 681b ldr r3, [r3, #0]
  5258. 80026ec: 4a63 ldr r2, [pc, #396] ; (800287c <HAL_DMA_IRQHandler+0x1f8>)
  5259. 80026ee: 4293 cmp r3, r2
  5260. 80026f0: d01a beq.n 8002728 <HAL_DMA_IRQHandler+0xa4>
  5261. 80026f2: 687b ldr r3, [r7, #4]
  5262. 80026f4: 681b ldr r3, [r3, #0]
  5263. 80026f6: 4a62 ldr r2, [pc, #392] ; (8002880 <HAL_DMA_IRQHandler+0x1fc>)
  5264. 80026f8: 4293 cmp r3, r2
  5265. 80026fa: d012 beq.n 8002722 <HAL_DMA_IRQHandler+0x9e>
  5266. 80026fc: 687b ldr r3, [r7, #4]
  5267. 80026fe: 681b ldr r3, [r3, #0]
  5268. 8002700: 4a60 ldr r2, [pc, #384] ; (8002884 <HAL_DMA_IRQHandler+0x200>)
  5269. 8002702: 4293 cmp r3, r2
  5270. 8002704: d00a beq.n 800271c <HAL_DMA_IRQHandler+0x98>
  5271. 8002706: 687b ldr r3, [r7, #4]
  5272. 8002708: 681b ldr r3, [r3, #0]
  5273. 800270a: 4a5f ldr r2, [pc, #380] ; (8002888 <HAL_DMA_IRQHandler+0x204>)
  5274. 800270c: 4293 cmp r3, r2
  5275. 800270e: d102 bne.n 8002716 <HAL_DMA_IRQHandler+0x92>
  5276. 8002710: f44f 0380 mov.w r3, #4194304 ; 0x400000
  5277. 8002714: e00e b.n 8002734 <HAL_DMA_IRQHandler+0xb0>
  5278. 8002716: f04f 6380 mov.w r3, #67108864 ; 0x4000000
  5279. 800271a: e00b b.n 8002734 <HAL_DMA_IRQHandler+0xb0>
  5280. 800271c: f44f 2380 mov.w r3, #262144 ; 0x40000
  5281. 8002720: e008 b.n 8002734 <HAL_DMA_IRQHandler+0xb0>
  5282. 8002722: f44f 4380 mov.w r3, #16384 ; 0x4000
  5283. 8002726: e005 b.n 8002734 <HAL_DMA_IRQHandler+0xb0>
  5284. 8002728: f44f 6380 mov.w r3, #1024 ; 0x400
  5285. 800272c: e002 b.n 8002734 <HAL_DMA_IRQHandler+0xb0>
  5286. 800272e: 2340 movs r3, #64 ; 0x40
  5287. 8002730: e000 b.n 8002734 <HAL_DMA_IRQHandler+0xb0>
  5288. 8002732: 2304 movs r3, #4
  5289. 8002734: 4a55 ldr r2, [pc, #340] ; (800288c <HAL_DMA_IRQHandler+0x208>)
  5290. 8002736: 6053 str r3, [r2, #4]
  5291. /* DMA peripheral state is not updated in Half Transfer */
  5292. /* but in Transfer Complete case */
  5293. if(hdma->XferHalfCpltCallback != NULL)
  5294. 8002738: 687b ldr r3, [r7, #4]
  5295. 800273a: 6adb ldr r3, [r3, #44] ; 0x2c
  5296. 800273c: 2b00 cmp r3, #0
  5297. 800273e: f000 8094 beq.w 800286a <HAL_DMA_IRQHandler+0x1e6>
  5298. {
  5299. /* Half transfer callback */
  5300. hdma->XferHalfCpltCallback(hdma);
  5301. 8002742: 687b ldr r3, [r7, #4]
  5302. 8002744: 6adb ldr r3, [r3, #44] ; 0x2c
  5303. 8002746: 6878 ldr r0, [r7, #4]
  5304. 8002748: 4798 blx r3
  5305. if(hdma->XferHalfCpltCallback != NULL)
  5306. 800274a: e08e b.n 800286a <HAL_DMA_IRQHandler+0x1e6>
  5307. }
  5308. }
  5309. /* Transfer Complete Interrupt management ***********************************/
  5310. else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET))
  5311. 800274c: 687b ldr r3, [r7, #4]
  5312. 800274e: 6c1b ldr r3, [r3, #64] ; 0x40
  5313. 8002750: 2202 movs r2, #2
  5314. 8002752: 409a lsls r2, r3
  5315. 8002754: 68fb ldr r3, [r7, #12]
  5316. 8002756: 4013 ands r3, r2
  5317. 8002758: 2b00 cmp r3, #0
  5318. 800275a: d056 beq.n 800280a <HAL_DMA_IRQHandler+0x186>
  5319. 800275c: 68bb ldr r3, [r7, #8]
  5320. 800275e: f003 0302 and.w r3, r3, #2
  5321. 8002762: 2b00 cmp r3, #0
  5322. 8002764: d051 beq.n 800280a <HAL_DMA_IRQHandler+0x186>
  5323. {
  5324. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  5325. 8002766: 687b ldr r3, [r7, #4]
  5326. 8002768: 681b ldr r3, [r3, #0]
  5327. 800276a: 681b ldr r3, [r3, #0]
  5328. 800276c: f003 0320 and.w r3, r3, #32
  5329. 8002770: 2b00 cmp r3, #0
  5330. 8002772: d10b bne.n 800278c <HAL_DMA_IRQHandler+0x108>
  5331. {
  5332. /* Disable the transfer complete and error interrupt */
  5333. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  5334. 8002774: 687b ldr r3, [r7, #4]
  5335. 8002776: 681b ldr r3, [r3, #0]
  5336. 8002778: 681a ldr r2, [r3, #0]
  5337. 800277a: 687b ldr r3, [r7, #4]
  5338. 800277c: 681b ldr r3, [r3, #0]
  5339. 800277e: f022 020a bic.w r2, r2, #10
  5340. 8002782: 601a str r2, [r3, #0]
  5341. /* Change the DMA state */
  5342. hdma->State = HAL_DMA_STATE_READY;
  5343. 8002784: 687b ldr r3, [r7, #4]
  5344. 8002786: 2201 movs r2, #1
  5345. 8002788: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5346. }
  5347. /* Clear the transfer complete flag */
  5348. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_TC_FLAG_INDEX(hdma));
  5349. 800278c: 687b ldr r3, [r7, #4]
  5350. 800278e: 681b ldr r3, [r3, #0]
  5351. 8002790: 4a38 ldr r2, [pc, #224] ; (8002874 <HAL_DMA_IRQHandler+0x1f0>)
  5352. 8002792: 4293 cmp r3, r2
  5353. 8002794: d029 beq.n 80027ea <HAL_DMA_IRQHandler+0x166>
  5354. 8002796: 687b ldr r3, [r7, #4]
  5355. 8002798: 681b ldr r3, [r3, #0]
  5356. 800279a: 4a37 ldr r2, [pc, #220] ; (8002878 <HAL_DMA_IRQHandler+0x1f4>)
  5357. 800279c: 4293 cmp r3, r2
  5358. 800279e: d022 beq.n 80027e6 <HAL_DMA_IRQHandler+0x162>
  5359. 80027a0: 687b ldr r3, [r7, #4]
  5360. 80027a2: 681b ldr r3, [r3, #0]
  5361. 80027a4: 4a35 ldr r2, [pc, #212] ; (800287c <HAL_DMA_IRQHandler+0x1f8>)
  5362. 80027a6: 4293 cmp r3, r2
  5363. 80027a8: d01a beq.n 80027e0 <HAL_DMA_IRQHandler+0x15c>
  5364. 80027aa: 687b ldr r3, [r7, #4]
  5365. 80027ac: 681b ldr r3, [r3, #0]
  5366. 80027ae: 4a34 ldr r2, [pc, #208] ; (8002880 <HAL_DMA_IRQHandler+0x1fc>)
  5367. 80027b0: 4293 cmp r3, r2
  5368. 80027b2: d012 beq.n 80027da <HAL_DMA_IRQHandler+0x156>
  5369. 80027b4: 687b ldr r3, [r7, #4]
  5370. 80027b6: 681b ldr r3, [r3, #0]
  5371. 80027b8: 4a32 ldr r2, [pc, #200] ; (8002884 <HAL_DMA_IRQHandler+0x200>)
  5372. 80027ba: 4293 cmp r3, r2
  5373. 80027bc: d00a beq.n 80027d4 <HAL_DMA_IRQHandler+0x150>
  5374. 80027be: 687b ldr r3, [r7, #4]
  5375. 80027c0: 681b ldr r3, [r3, #0]
  5376. 80027c2: 4a31 ldr r2, [pc, #196] ; (8002888 <HAL_DMA_IRQHandler+0x204>)
  5377. 80027c4: 4293 cmp r3, r2
  5378. 80027c6: d102 bne.n 80027ce <HAL_DMA_IRQHandler+0x14a>
  5379. 80027c8: f44f 1300 mov.w r3, #2097152 ; 0x200000
  5380. 80027cc: e00e b.n 80027ec <HAL_DMA_IRQHandler+0x168>
  5381. 80027ce: f04f 7300 mov.w r3, #33554432 ; 0x2000000
  5382. 80027d2: e00b b.n 80027ec <HAL_DMA_IRQHandler+0x168>
  5383. 80027d4: f44f 3300 mov.w r3, #131072 ; 0x20000
  5384. 80027d8: e008 b.n 80027ec <HAL_DMA_IRQHandler+0x168>
  5385. 80027da: f44f 5300 mov.w r3, #8192 ; 0x2000
  5386. 80027de: e005 b.n 80027ec <HAL_DMA_IRQHandler+0x168>
  5387. 80027e0: f44f 7300 mov.w r3, #512 ; 0x200
  5388. 80027e4: e002 b.n 80027ec <HAL_DMA_IRQHandler+0x168>
  5389. 80027e6: 2320 movs r3, #32
  5390. 80027e8: e000 b.n 80027ec <HAL_DMA_IRQHandler+0x168>
  5391. 80027ea: 2302 movs r3, #2
  5392. 80027ec: 4a27 ldr r2, [pc, #156] ; (800288c <HAL_DMA_IRQHandler+0x208>)
  5393. 80027ee: 6053 str r3, [r2, #4]
  5394. /* Process Unlocked */
  5395. __HAL_UNLOCK(hdma);
  5396. 80027f0: 687b ldr r3, [r7, #4]
  5397. 80027f2: 2200 movs r2, #0
  5398. 80027f4: f883 2020 strb.w r2, [r3, #32]
  5399. if(hdma->XferCpltCallback != NULL)
  5400. 80027f8: 687b ldr r3, [r7, #4]
  5401. 80027fa: 6a9b ldr r3, [r3, #40] ; 0x28
  5402. 80027fc: 2b00 cmp r3, #0
  5403. 80027fe: d034 beq.n 800286a <HAL_DMA_IRQHandler+0x1e6>
  5404. {
  5405. /* Transfer complete callback */
  5406. hdma->XferCpltCallback(hdma);
  5407. 8002800: 687b ldr r3, [r7, #4]
  5408. 8002802: 6a9b ldr r3, [r3, #40] ; 0x28
  5409. 8002804: 6878 ldr r0, [r7, #4]
  5410. 8002806: 4798 blx r3
  5411. if(hdma->XferCpltCallback != NULL)
  5412. 8002808: e02f b.n 800286a <HAL_DMA_IRQHandler+0x1e6>
  5413. }
  5414. }
  5415. /* Transfer Error Interrupt management **************************************/
  5416. else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE)))
  5417. 800280a: 687b ldr r3, [r7, #4]
  5418. 800280c: 6c1b ldr r3, [r3, #64] ; 0x40
  5419. 800280e: 2208 movs r2, #8
  5420. 8002810: 409a lsls r2, r3
  5421. 8002812: 68fb ldr r3, [r7, #12]
  5422. 8002814: 4013 ands r3, r2
  5423. 8002816: 2b00 cmp r3, #0
  5424. 8002818: d028 beq.n 800286c <HAL_DMA_IRQHandler+0x1e8>
  5425. 800281a: 68bb ldr r3, [r7, #8]
  5426. 800281c: f003 0308 and.w r3, r3, #8
  5427. 8002820: 2b00 cmp r3, #0
  5428. 8002822: d023 beq.n 800286c <HAL_DMA_IRQHandler+0x1e8>
  5429. {
  5430. /* When a DMA transfer error occurs */
  5431. /* A hardware clear of its EN bits is performed */
  5432. /* Disable ALL DMA IT */
  5433. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  5434. 8002824: 687b ldr r3, [r7, #4]
  5435. 8002826: 681b ldr r3, [r3, #0]
  5436. 8002828: 681a ldr r2, [r3, #0]
  5437. 800282a: 687b ldr r3, [r7, #4]
  5438. 800282c: 681b ldr r3, [r3, #0]
  5439. 800282e: f022 020e bic.w r2, r2, #14
  5440. 8002832: 601a str r2, [r3, #0]
  5441. /* Clear all flags */
  5442. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  5443. 8002834: 687b ldr r3, [r7, #4]
  5444. 8002836: 6c1a ldr r2, [r3, #64] ; 0x40
  5445. 8002838: 687b ldr r3, [r7, #4]
  5446. 800283a: 6bdb ldr r3, [r3, #60] ; 0x3c
  5447. 800283c: 2101 movs r1, #1
  5448. 800283e: fa01 f202 lsl.w r2, r1, r2
  5449. 8002842: 605a str r2, [r3, #4]
  5450. /* Update error code */
  5451. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  5452. 8002844: 687b ldr r3, [r7, #4]
  5453. 8002846: 2201 movs r2, #1
  5454. 8002848: 639a str r2, [r3, #56] ; 0x38
  5455. /* Change the DMA state */
  5456. hdma->State = HAL_DMA_STATE_READY;
  5457. 800284a: 687b ldr r3, [r7, #4]
  5458. 800284c: 2201 movs r2, #1
  5459. 800284e: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5460. /* Process Unlocked */
  5461. __HAL_UNLOCK(hdma);
  5462. 8002852: 687b ldr r3, [r7, #4]
  5463. 8002854: 2200 movs r2, #0
  5464. 8002856: f883 2020 strb.w r2, [r3, #32]
  5465. if (hdma->XferErrorCallback != NULL)
  5466. 800285a: 687b ldr r3, [r7, #4]
  5467. 800285c: 6b1b ldr r3, [r3, #48] ; 0x30
  5468. 800285e: 2b00 cmp r3, #0
  5469. 8002860: d004 beq.n 800286c <HAL_DMA_IRQHandler+0x1e8>
  5470. {
  5471. /* Transfer error callback */
  5472. hdma->XferErrorCallback(hdma);
  5473. 8002862: 687b ldr r3, [r7, #4]
  5474. 8002864: 6b1b ldr r3, [r3, #48] ; 0x30
  5475. 8002866: 6878 ldr r0, [r7, #4]
  5476. 8002868: 4798 blx r3
  5477. }
  5478. }
  5479. return;
  5480. 800286a: bf00 nop
  5481. 800286c: bf00 nop
  5482. }
  5483. 800286e: 3710 adds r7, #16
  5484. 8002870: 46bd mov sp, r7
  5485. 8002872: bd80 pop {r7, pc}
  5486. 8002874: 40020008 .word 0x40020008
  5487. 8002878: 4002001c .word 0x4002001c
  5488. 800287c: 40020030 .word 0x40020030
  5489. 8002880: 40020044 .word 0x40020044
  5490. 8002884: 40020058 .word 0x40020058
  5491. 8002888: 4002006c .word 0x4002006c
  5492. 800288c: 40020000 .word 0x40020000
  5493. 08002890 <DMA_SetConfig>:
  5494. * @param DstAddress: The destination memory Buffer address
  5495. * @param DataLength: The length of data to be transferred from source to destination
  5496. * @retval HAL status
  5497. */
  5498. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  5499. {
  5500. 8002890: b480 push {r7}
  5501. 8002892: b085 sub sp, #20
  5502. 8002894: af00 add r7, sp, #0
  5503. 8002896: 60f8 str r0, [r7, #12]
  5504. 8002898: 60b9 str r1, [r7, #8]
  5505. 800289a: 607a str r2, [r7, #4]
  5506. 800289c: 603b str r3, [r7, #0]
  5507. /* Clear all flags */
  5508. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  5509. 800289e: 68fb ldr r3, [r7, #12]
  5510. 80028a0: 6c1a ldr r2, [r3, #64] ; 0x40
  5511. 80028a2: 68fb ldr r3, [r7, #12]
  5512. 80028a4: 6bdb ldr r3, [r3, #60] ; 0x3c
  5513. 80028a6: 2101 movs r1, #1
  5514. 80028a8: fa01 f202 lsl.w r2, r1, r2
  5515. 80028ac: 605a str r2, [r3, #4]
  5516. /* Configure DMA Channel data length */
  5517. hdma->Instance->CNDTR = DataLength;
  5518. 80028ae: 68fb ldr r3, [r7, #12]
  5519. 80028b0: 681b ldr r3, [r3, #0]
  5520. 80028b2: 683a ldr r2, [r7, #0]
  5521. 80028b4: 605a str r2, [r3, #4]
  5522. /* Memory to Peripheral */
  5523. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  5524. 80028b6: 68fb ldr r3, [r7, #12]
  5525. 80028b8: 685b ldr r3, [r3, #4]
  5526. 80028ba: 2b10 cmp r3, #16
  5527. 80028bc: d108 bne.n 80028d0 <DMA_SetConfig+0x40>
  5528. {
  5529. /* Configure DMA Channel destination address */
  5530. hdma->Instance->CPAR = DstAddress;
  5531. 80028be: 68fb ldr r3, [r7, #12]
  5532. 80028c0: 681b ldr r3, [r3, #0]
  5533. 80028c2: 687a ldr r2, [r7, #4]
  5534. 80028c4: 609a str r2, [r3, #8]
  5535. /* Configure DMA Channel source address */
  5536. hdma->Instance->CMAR = SrcAddress;
  5537. 80028c6: 68fb ldr r3, [r7, #12]
  5538. 80028c8: 681b ldr r3, [r3, #0]
  5539. 80028ca: 68ba ldr r2, [r7, #8]
  5540. 80028cc: 60da str r2, [r3, #12]
  5541. hdma->Instance->CPAR = SrcAddress;
  5542. /* Configure DMA Channel destination address */
  5543. hdma->Instance->CMAR = DstAddress;
  5544. }
  5545. }
  5546. 80028ce: e007 b.n 80028e0 <DMA_SetConfig+0x50>
  5547. hdma->Instance->CPAR = SrcAddress;
  5548. 80028d0: 68fb ldr r3, [r7, #12]
  5549. 80028d2: 681b ldr r3, [r3, #0]
  5550. 80028d4: 68ba ldr r2, [r7, #8]
  5551. 80028d6: 609a str r2, [r3, #8]
  5552. hdma->Instance->CMAR = DstAddress;
  5553. 80028d8: 68fb ldr r3, [r7, #12]
  5554. 80028da: 681b ldr r3, [r3, #0]
  5555. 80028dc: 687a ldr r2, [r7, #4]
  5556. 80028de: 60da str r2, [r3, #12]
  5557. }
  5558. 80028e0: bf00 nop
  5559. 80028e2: 3714 adds r7, #20
  5560. 80028e4: 46bd mov sp, r7
  5561. 80028e6: bc80 pop {r7}
  5562. 80028e8: 4770 bx lr
  5563. ...
  5564. 080028ec <HAL_FLASH_Program>:
  5565. * @param Data: Specifies the data to be programmed
  5566. *
  5567. * @retval HAL_StatusTypeDef HAL Status
  5568. */
  5569. HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  5570. {
  5571. 80028ec: b5f0 push {r4, r5, r6, r7, lr}
  5572. 80028ee: b087 sub sp, #28
  5573. 80028f0: af00 add r7, sp, #0
  5574. 80028f2: 60f8 str r0, [r7, #12]
  5575. 80028f4: 60b9 str r1, [r7, #8]
  5576. 80028f6: e9c7 2300 strd r2, r3, [r7]
  5577. HAL_StatusTypeDef status = HAL_ERROR;
  5578. 80028fa: 2301 movs r3, #1
  5579. 80028fc: 75fb strb r3, [r7, #23]
  5580. uint8_t index = 0;
  5581. 80028fe: 2300 movs r3, #0
  5582. 8002900: 75bb strb r3, [r7, #22]
  5583. uint8_t nbiterations = 0;
  5584. 8002902: 2300 movs r3, #0
  5585. 8002904: 757b strb r3, [r7, #21]
  5586. /* Process Locked */
  5587. __HAL_LOCK(&pFlash);
  5588. 8002906: 4b2f ldr r3, [pc, #188] ; (80029c4 <HAL_FLASH_Program+0xd8>)
  5589. 8002908: 7e1b ldrb r3, [r3, #24]
  5590. 800290a: 2b01 cmp r3, #1
  5591. 800290c: d101 bne.n 8002912 <HAL_FLASH_Program+0x26>
  5592. 800290e: 2302 movs r3, #2
  5593. 8002910: e054 b.n 80029bc <HAL_FLASH_Program+0xd0>
  5594. 8002912: 4b2c ldr r3, [pc, #176] ; (80029c4 <HAL_FLASH_Program+0xd8>)
  5595. 8002914: 2201 movs r2, #1
  5596. 8002916: 761a strb r2, [r3, #24]
  5597. #if defined(FLASH_BANK2_END)
  5598. if(Address <= FLASH_BANK1_END)
  5599. {
  5600. #endif /* FLASH_BANK2_END */
  5601. /* Wait for last operation to be completed */
  5602. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  5603. 8002918: f24c 3050 movw r0, #50000 ; 0xc350
  5604. 800291c: f000 f8a8 bl 8002a70 <FLASH_WaitForLastOperation>
  5605. 8002920: 4603 mov r3, r0
  5606. 8002922: 75fb strb r3, [r7, #23]
  5607. /* Wait for last operation to be completed */
  5608. status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE);
  5609. }
  5610. #endif /* FLASH_BANK2_END */
  5611. if(status == HAL_OK)
  5612. 8002924: 7dfb ldrb r3, [r7, #23]
  5613. 8002926: 2b00 cmp r3, #0
  5614. 8002928: d144 bne.n 80029b4 <HAL_FLASH_Program+0xc8>
  5615. {
  5616. if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  5617. 800292a: 68fb ldr r3, [r7, #12]
  5618. 800292c: 2b01 cmp r3, #1
  5619. 800292e: d102 bne.n 8002936 <HAL_FLASH_Program+0x4a>
  5620. {
  5621. /* Program halfword (16-bit) at a specified address. */
  5622. nbiterations = 1U;
  5623. 8002930: 2301 movs r3, #1
  5624. 8002932: 757b strb r3, [r7, #21]
  5625. 8002934: e007 b.n 8002946 <HAL_FLASH_Program+0x5a>
  5626. }
  5627. else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  5628. 8002936: 68fb ldr r3, [r7, #12]
  5629. 8002938: 2b02 cmp r3, #2
  5630. 800293a: d102 bne.n 8002942 <HAL_FLASH_Program+0x56>
  5631. {
  5632. /* Program word (32-bit = 2*16-bit) at a specified address. */
  5633. nbiterations = 2U;
  5634. 800293c: 2302 movs r3, #2
  5635. 800293e: 757b strb r3, [r7, #21]
  5636. 8002940: e001 b.n 8002946 <HAL_FLASH_Program+0x5a>
  5637. }
  5638. else
  5639. {
  5640. /* Program double word (64-bit = 4*16-bit) at a specified address. */
  5641. nbiterations = 4U;
  5642. 8002942: 2304 movs r3, #4
  5643. 8002944: 757b strb r3, [r7, #21]
  5644. }
  5645. for (index = 0U; index < nbiterations; index++)
  5646. 8002946: 2300 movs r3, #0
  5647. 8002948: 75bb strb r3, [r7, #22]
  5648. 800294a: e02d b.n 80029a8 <HAL_FLASH_Program+0xbc>
  5649. {
  5650. FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index)));
  5651. 800294c: 7dbb ldrb r3, [r7, #22]
  5652. 800294e: 005a lsls r2, r3, #1
  5653. 8002950: 68bb ldr r3, [r7, #8]
  5654. 8002952: eb02 0c03 add.w ip, r2, r3
  5655. 8002956: 7dbb ldrb r3, [r7, #22]
  5656. 8002958: 0119 lsls r1, r3, #4
  5657. 800295a: e9d7 2300 ldrd r2, r3, [r7]
  5658. 800295e: f1c1 0620 rsb r6, r1, #32
  5659. 8002962: f1a1 0020 sub.w r0, r1, #32
  5660. 8002966: fa22 f401 lsr.w r4, r2, r1
  5661. 800296a: fa03 f606 lsl.w r6, r3, r6
  5662. 800296e: 4334 orrs r4, r6
  5663. 8002970: fa23 f000 lsr.w r0, r3, r0
  5664. 8002974: 4304 orrs r4, r0
  5665. 8002976: fa23 f501 lsr.w r5, r3, r1
  5666. 800297a: b2a3 uxth r3, r4
  5667. 800297c: 4619 mov r1, r3
  5668. 800297e: 4660 mov r0, ip
  5669. 8002980: f000 f85a bl 8002a38 <FLASH_Program_HalfWord>
  5670. #if defined(FLASH_BANK2_END)
  5671. if(Address <= FLASH_BANK1_END)
  5672. {
  5673. #endif /* FLASH_BANK2_END */
  5674. /* Wait for last operation to be completed */
  5675. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  5676. 8002984: f24c 3050 movw r0, #50000 ; 0xc350
  5677. 8002988: f000 f872 bl 8002a70 <FLASH_WaitForLastOperation>
  5678. 800298c: 4603 mov r3, r0
  5679. 800298e: 75fb strb r3, [r7, #23]
  5680. /* If the program operation is completed, disable the PG Bit */
  5681. CLEAR_BIT(FLASH->CR, FLASH_CR_PG);
  5682. 8002990: 4b0d ldr r3, [pc, #52] ; (80029c8 <HAL_FLASH_Program+0xdc>)
  5683. 8002992: 691b ldr r3, [r3, #16]
  5684. 8002994: 4a0c ldr r2, [pc, #48] ; (80029c8 <HAL_FLASH_Program+0xdc>)
  5685. 8002996: f023 0301 bic.w r3, r3, #1
  5686. 800299a: 6113 str r3, [r2, #16]
  5687. /* If the program operation is completed, disable the PG Bit */
  5688. CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG);
  5689. }
  5690. #endif /* FLASH_BANK2_END */
  5691. /* In case of error, stop programation procedure */
  5692. if (status != HAL_OK)
  5693. 800299c: 7dfb ldrb r3, [r7, #23]
  5694. 800299e: 2b00 cmp r3, #0
  5695. 80029a0: d107 bne.n 80029b2 <HAL_FLASH_Program+0xc6>
  5696. for (index = 0U; index < nbiterations; index++)
  5697. 80029a2: 7dbb ldrb r3, [r7, #22]
  5698. 80029a4: 3301 adds r3, #1
  5699. 80029a6: 75bb strb r3, [r7, #22]
  5700. 80029a8: 7dba ldrb r2, [r7, #22]
  5701. 80029aa: 7d7b ldrb r3, [r7, #21]
  5702. 80029ac: 429a cmp r2, r3
  5703. 80029ae: d3cd bcc.n 800294c <HAL_FLASH_Program+0x60>
  5704. 80029b0: e000 b.n 80029b4 <HAL_FLASH_Program+0xc8>
  5705. {
  5706. break;
  5707. 80029b2: bf00 nop
  5708. }
  5709. }
  5710. }
  5711. /* Process Unlocked */
  5712. __HAL_UNLOCK(&pFlash);
  5713. 80029b4: 4b03 ldr r3, [pc, #12] ; (80029c4 <HAL_FLASH_Program+0xd8>)
  5714. 80029b6: 2200 movs r2, #0
  5715. 80029b8: 761a strb r2, [r3, #24]
  5716. return status;
  5717. 80029ba: 7dfb ldrb r3, [r7, #23]
  5718. }
  5719. 80029bc: 4618 mov r0, r3
  5720. 80029be: 371c adds r7, #28
  5721. 80029c0: 46bd mov sp, r7
  5722. 80029c2: bdf0 pop {r4, r5, r6, r7, pc}
  5723. 80029c4: 20000640 .word 0x20000640
  5724. 80029c8: 40022000 .word 0x40022000
  5725. 080029cc <HAL_FLASH_Unlock>:
  5726. /**
  5727. * @brief Unlock the FLASH control register access
  5728. * @retval HAL Status
  5729. */
  5730. HAL_StatusTypeDef HAL_FLASH_Unlock(void)
  5731. {
  5732. 80029cc: b480 push {r7}
  5733. 80029ce: b083 sub sp, #12
  5734. 80029d0: af00 add r7, sp, #0
  5735. HAL_StatusTypeDef status = HAL_OK;
  5736. 80029d2: 2300 movs r3, #0
  5737. 80029d4: 71fb strb r3, [r7, #7]
  5738. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  5739. 80029d6: 4b0d ldr r3, [pc, #52] ; (8002a0c <HAL_FLASH_Unlock+0x40>)
  5740. 80029d8: 691b ldr r3, [r3, #16]
  5741. 80029da: f003 0380 and.w r3, r3, #128 ; 0x80
  5742. 80029de: 2b00 cmp r3, #0
  5743. 80029e0: d00d beq.n 80029fe <HAL_FLASH_Unlock+0x32>
  5744. {
  5745. /* Authorize the FLASH Registers access */
  5746. WRITE_REG(FLASH->KEYR, FLASH_KEY1);
  5747. 80029e2: 4b0a ldr r3, [pc, #40] ; (8002a0c <HAL_FLASH_Unlock+0x40>)
  5748. 80029e4: 4a0a ldr r2, [pc, #40] ; (8002a10 <HAL_FLASH_Unlock+0x44>)
  5749. 80029e6: 605a str r2, [r3, #4]
  5750. WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  5751. 80029e8: 4b08 ldr r3, [pc, #32] ; (8002a0c <HAL_FLASH_Unlock+0x40>)
  5752. 80029ea: 4a0a ldr r2, [pc, #40] ; (8002a14 <HAL_FLASH_Unlock+0x48>)
  5753. 80029ec: 605a str r2, [r3, #4]
  5754. /* Verify Flash is unlocked */
  5755. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  5756. 80029ee: 4b07 ldr r3, [pc, #28] ; (8002a0c <HAL_FLASH_Unlock+0x40>)
  5757. 80029f0: 691b ldr r3, [r3, #16]
  5758. 80029f2: f003 0380 and.w r3, r3, #128 ; 0x80
  5759. 80029f6: 2b00 cmp r3, #0
  5760. 80029f8: d001 beq.n 80029fe <HAL_FLASH_Unlock+0x32>
  5761. {
  5762. status = HAL_ERROR;
  5763. 80029fa: 2301 movs r3, #1
  5764. 80029fc: 71fb strb r3, [r7, #7]
  5765. status = HAL_ERROR;
  5766. }
  5767. }
  5768. #endif /* FLASH_BANK2_END */
  5769. return status;
  5770. 80029fe: 79fb ldrb r3, [r7, #7]
  5771. }
  5772. 8002a00: 4618 mov r0, r3
  5773. 8002a02: 370c adds r7, #12
  5774. 8002a04: 46bd mov sp, r7
  5775. 8002a06: bc80 pop {r7}
  5776. 8002a08: 4770 bx lr
  5777. 8002a0a: bf00 nop
  5778. 8002a0c: 40022000 .word 0x40022000
  5779. 8002a10: 45670123 .word 0x45670123
  5780. 8002a14: cdef89ab .word 0xcdef89ab
  5781. 08002a18 <HAL_FLASH_Lock>:
  5782. /**
  5783. * @brief Locks the FLASH control register access
  5784. * @retval HAL Status
  5785. */
  5786. HAL_StatusTypeDef HAL_FLASH_Lock(void)
  5787. {
  5788. 8002a18: b480 push {r7}
  5789. 8002a1a: af00 add r7, sp, #0
  5790. /* Set the LOCK Bit to lock the FLASH Registers access */
  5791. SET_BIT(FLASH->CR, FLASH_CR_LOCK);
  5792. 8002a1c: 4b05 ldr r3, [pc, #20] ; (8002a34 <HAL_FLASH_Lock+0x1c>)
  5793. 8002a1e: 691b ldr r3, [r3, #16]
  5794. 8002a20: 4a04 ldr r2, [pc, #16] ; (8002a34 <HAL_FLASH_Lock+0x1c>)
  5795. 8002a22: f043 0380 orr.w r3, r3, #128 ; 0x80
  5796. 8002a26: 6113 str r3, [r2, #16]
  5797. #if defined(FLASH_BANK2_END)
  5798. /* Set the LOCK Bit to lock the FLASH BANK2 Registers access */
  5799. SET_BIT(FLASH->CR2, FLASH_CR2_LOCK);
  5800. #endif /* FLASH_BANK2_END */
  5801. return HAL_OK;
  5802. 8002a28: 2300 movs r3, #0
  5803. }
  5804. 8002a2a: 4618 mov r0, r3
  5805. 8002a2c: 46bd mov sp, r7
  5806. 8002a2e: bc80 pop {r7}
  5807. 8002a30: 4770 bx lr
  5808. 8002a32: bf00 nop
  5809. 8002a34: 40022000 .word 0x40022000
  5810. 08002a38 <FLASH_Program_HalfWord>:
  5811. * @param Address specify the address to be programmed.
  5812. * @param Data specify the data to be programmed.
  5813. * @retval None
  5814. */
  5815. static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data)
  5816. {
  5817. 8002a38: b480 push {r7}
  5818. 8002a3a: b083 sub sp, #12
  5819. 8002a3c: af00 add r7, sp, #0
  5820. 8002a3e: 6078 str r0, [r7, #4]
  5821. 8002a40: 460b mov r3, r1
  5822. 8002a42: 807b strh r3, [r7, #2]
  5823. /* Clean the error context */
  5824. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  5825. 8002a44: 4b08 ldr r3, [pc, #32] ; (8002a68 <FLASH_Program_HalfWord+0x30>)
  5826. 8002a46: 2200 movs r2, #0
  5827. 8002a48: 61da str r2, [r3, #28]
  5828. #if defined(FLASH_BANK2_END)
  5829. if(Address <= FLASH_BANK1_END)
  5830. {
  5831. #endif /* FLASH_BANK2_END */
  5832. /* Proceed to program the new data */
  5833. SET_BIT(FLASH->CR, FLASH_CR_PG);
  5834. 8002a4a: 4b08 ldr r3, [pc, #32] ; (8002a6c <FLASH_Program_HalfWord+0x34>)
  5835. 8002a4c: 691b ldr r3, [r3, #16]
  5836. 8002a4e: 4a07 ldr r2, [pc, #28] ; (8002a6c <FLASH_Program_HalfWord+0x34>)
  5837. 8002a50: f043 0301 orr.w r3, r3, #1
  5838. 8002a54: 6113 str r3, [r2, #16]
  5839. SET_BIT(FLASH->CR2, FLASH_CR2_PG);
  5840. }
  5841. #endif /* FLASH_BANK2_END */
  5842. /* Write data in the address */
  5843. *(__IO uint16_t*)Address = Data;
  5844. 8002a56: 687b ldr r3, [r7, #4]
  5845. 8002a58: 887a ldrh r2, [r7, #2]
  5846. 8002a5a: 801a strh r2, [r3, #0]
  5847. }
  5848. 8002a5c: bf00 nop
  5849. 8002a5e: 370c adds r7, #12
  5850. 8002a60: 46bd mov sp, r7
  5851. 8002a62: bc80 pop {r7}
  5852. 8002a64: 4770 bx lr
  5853. 8002a66: bf00 nop
  5854. 8002a68: 20000640 .word 0x20000640
  5855. 8002a6c: 40022000 .word 0x40022000
  5856. 08002a70 <FLASH_WaitForLastOperation>:
  5857. * @brief Wait for a FLASH operation to complete.
  5858. * @param Timeout maximum flash operation timeout
  5859. * @retval HAL Status
  5860. */
  5861. HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout)
  5862. {
  5863. 8002a70: b580 push {r7, lr}
  5864. 8002a72: b084 sub sp, #16
  5865. 8002a74: af00 add r7, sp, #0
  5866. 8002a76: 6078 str r0, [r7, #4]
  5867. /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
  5868. Even if the FLASH operation fails, the BUSY flag will be reset and an error
  5869. flag will be set */
  5870. uint32_t tickstart = HAL_GetTick();
  5871. 8002a78: f7fe fee8 bl 800184c <HAL_GetTick>
  5872. 8002a7c: 60f8 str r0, [r7, #12]
  5873. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  5874. 8002a7e: e010 b.n 8002aa2 <FLASH_WaitForLastOperation+0x32>
  5875. {
  5876. if (Timeout != HAL_MAX_DELAY)
  5877. 8002a80: 687b ldr r3, [r7, #4]
  5878. 8002a82: f1b3 3fff cmp.w r3, #4294967295
  5879. 8002a86: d00c beq.n 8002aa2 <FLASH_WaitForLastOperation+0x32>
  5880. {
  5881. if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
  5882. 8002a88: 687b ldr r3, [r7, #4]
  5883. 8002a8a: 2b00 cmp r3, #0
  5884. 8002a8c: d007 beq.n 8002a9e <FLASH_WaitForLastOperation+0x2e>
  5885. 8002a8e: f7fe fedd bl 800184c <HAL_GetTick>
  5886. 8002a92: 4602 mov r2, r0
  5887. 8002a94: 68fb ldr r3, [r7, #12]
  5888. 8002a96: 1ad3 subs r3, r2, r3
  5889. 8002a98: 687a ldr r2, [r7, #4]
  5890. 8002a9a: 429a cmp r2, r3
  5891. 8002a9c: d201 bcs.n 8002aa2 <FLASH_WaitForLastOperation+0x32>
  5892. {
  5893. return HAL_TIMEOUT;
  5894. 8002a9e: 2303 movs r3, #3
  5895. 8002aa0: e025 b.n 8002aee <FLASH_WaitForLastOperation+0x7e>
  5896. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  5897. 8002aa2: 4b15 ldr r3, [pc, #84] ; (8002af8 <FLASH_WaitForLastOperation+0x88>)
  5898. 8002aa4: 68db ldr r3, [r3, #12]
  5899. 8002aa6: f003 0301 and.w r3, r3, #1
  5900. 8002aaa: 2b00 cmp r3, #0
  5901. 8002aac: d1e8 bne.n 8002a80 <FLASH_WaitForLastOperation+0x10>
  5902. }
  5903. }
  5904. }
  5905. /* Check FLASH End of Operation flag */
  5906. if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP))
  5907. 8002aae: 4b12 ldr r3, [pc, #72] ; (8002af8 <FLASH_WaitForLastOperation+0x88>)
  5908. 8002ab0: 68db ldr r3, [r3, #12]
  5909. 8002ab2: f003 0320 and.w r3, r3, #32
  5910. 8002ab6: 2b00 cmp r3, #0
  5911. 8002ab8: d002 beq.n 8002ac0 <FLASH_WaitForLastOperation+0x50>
  5912. {
  5913. /* Clear FLASH End of Operation pending bit */
  5914. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  5915. 8002aba: 4b0f ldr r3, [pc, #60] ; (8002af8 <FLASH_WaitForLastOperation+0x88>)
  5916. 8002abc: 2220 movs r2, #32
  5917. 8002abe: 60da str r2, [r3, #12]
  5918. }
  5919. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  5920. 8002ac0: 4b0d ldr r3, [pc, #52] ; (8002af8 <FLASH_WaitForLastOperation+0x88>)
  5921. 8002ac2: 68db ldr r3, [r3, #12]
  5922. 8002ac4: f003 0310 and.w r3, r3, #16
  5923. 8002ac8: 2b00 cmp r3, #0
  5924. 8002aca: d10b bne.n 8002ae4 <FLASH_WaitForLastOperation+0x74>
  5925. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  5926. 8002acc: 4b0a ldr r3, [pc, #40] ; (8002af8 <FLASH_WaitForLastOperation+0x88>)
  5927. 8002ace: 69db ldr r3, [r3, #28]
  5928. 8002ad0: f003 0301 and.w r3, r3, #1
  5929. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  5930. 8002ad4: 2b00 cmp r3, #0
  5931. 8002ad6: d105 bne.n 8002ae4 <FLASH_WaitForLastOperation+0x74>
  5932. __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  5933. 8002ad8: 4b07 ldr r3, [pc, #28] ; (8002af8 <FLASH_WaitForLastOperation+0x88>)
  5934. 8002ada: 68db ldr r3, [r3, #12]
  5935. 8002adc: f003 0304 and.w r3, r3, #4
  5936. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  5937. 8002ae0: 2b00 cmp r3, #0
  5938. 8002ae2: d003 beq.n 8002aec <FLASH_WaitForLastOperation+0x7c>
  5939. {
  5940. /*Save the error code*/
  5941. FLASH_SetErrorCode();
  5942. 8002ae4: f000 f80a bl 8002afc <FLASH_SetErrorCode>
  5943. return HAL_ERROR;
  5944. 8002ae8: 2301 movs r3, #1
  5945. 8002aea: e000 b.n 8002aee <FLASH_WaitForLastOperation+0x7e>
  5946. }
  5947. /* There is no error flag set */
  5948. return HAL_OK;
  5949. 8002aec: 2300 movs r3, #0
  5950. }
  5951. 8002aee: 4618 mov r0, r3
  5952. 8002af0: 3710 adds r7, #16
  5953. 8002af2: 46bd mov sp, r7
  5954. 8002af4: bd80 pop {r7, pc}
  5955. 8002af6: bf00 nop
  5956. 8002af8: 40022000 .word 0x40022000
  5957. 08002afc <FLASH_SetErrorCode>:
  5958. /**
  5959. * @brief Set the specific FLASH error flag.
  5960. * @retval None
  5961. */
  5962. static void FLASH_SetErrorCode(void)
  5963. {
  5964. 8002afc: b480 push {r7}
  5965. 8002afe: b083 sub sp, #12
  5966. 8002b00: af00 add r7, sp, #0
  5967. uint32_t flags = 0U;
  5968. 8002b02: 2300 movs r3, #0
  5969. 8002b04: 607b str r3, [r7, #4]
  5970. #if defined(FLASH_BANK2_END)
  5971. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2))
  5972. #else
  5973. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR))
  5974. 8002b06: 4b23 ldr r3, [pc, #140] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  5975. 8002b08: 68db ldr r3, [r3, #12]
  5976. 8002b0a: f003 0310 and.w r3, r3, #16
  5977. 8002b0e: 2b00 cmp r3, #0
  5978. 8002b10: d009 beq.n 8002b26 <FLASH_SetErrorCode+0x2a>
  5979. #endif /* FLASH_BANK2_END */
  5980. {
  5981. pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
  5982. 8002b12: 4b21 ldr r3, [pc, #132] ; (8002b98 <FLASH_SetErrorCode+0x9c>)
  5983. 8002b14: 69db ldr r3, [r3, #28]
  5984. 8002b16: f043 0302 orr.w r3, r3, #2
  5985. 8002b1a: 4a1f ldr r2, [pc, #124] ; (8002b98 <FLASH_SetErrorCode+0x9c>)
  5986. 8002b1c: 61d3 str r3, [r2, #28]
  5987. #if defined(FLASH_BANK2_END)
  5988. flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2;
  5989. #else
  5990. flags |= FLASH_FLAG_WRPERR;
  5991. 8002b1e: 687b ldr r3, [r7, #4]
  5992. 8002b20: f043 0310 orr.w r3, r3, #16
  5993. 8002b24: 607b str r3, [r7, #4]
  5994. #endif /* FLASH_BANK2_END */
  5995. }
  5996. #if defined(FLASH_BANK2_END)
  5997. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
  5998. #else
  5999. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  6000. 8002b26: 4b1b ldr r3, [pc, #108] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6001. 8002b28: 68db ldr r3, [r3, #12]
  6002. 8002b2a: f003 0304 and.w r3, r3, #4
  6003. 8002b2e: 2b00 cmp r3, #0
  6004. 8002b30: d009 beq.n 8002b46 <FLASH_SetErrorCode+0x4a>
  6005. #endif /* FLASH_BANK2_END */
  6006. {
  6007. pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG;
  6008. 8002b32: 4b19 ldr r3, [pc, #100] ; (8002b98 <FLASH_SetErrorCode+0x9c>)
  6009. 8002b34: 69db ldr r3, [r3, #28]
  6010. 8002b36: f043 0301 orr.w r3, r3, #1
  6011. 8002b3a: 4a17 ldr r2, [pc, #92] ; (8002b98 <FLASH_SetErrorCode+0x9c>)
  6012. 8002b3c: 61d3 str r3, [r2, #28]
  6013. #if defined(FLASH_BANK2_END)
  6014. flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2;
  6015. #else
  6016. flags |= FLASH_FLAG_PGERR;
  6017. 8002b3e: 687b ldr r3, [r7, #4]
  6018. 8002b40: f043 0304 orr.w r3, r3, #4
  6019. 8002b44: 607b str r3, [r7, #4]
  6020. #endif /* FLASH_BANK2_END */
  6021. }
  6022. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR))
  6023. 8002b46: 4b13 ldr r3, [pc, #76] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6024. 8002b48: 69db ldr r3, [r3, #28]
  6025. 8002b4a: f003 0301 and.w r3, r3, #1
  6026. 8002b4e: 2b00 cmp r3, #0
  6027. 8002b50: d00b beq.n 8002b6a <FLASH_SetErrorCode+0x6e>
  6028. {
  6029. pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV;
  6030. 8002b52: 4b11 ldr r3, [pc, #68] ; (8002b98 <FLASH_SetErrorCode+0x9c>)
  6031. 8002b54: 69db ldr r3, [r3, #28]
  6032. 8002b56: f043 0304 orr.w r3, r3, #4
  6033. 8002b5a: 4a0f ldr r2, [pc, #60] ; (8002b98 <FLASH_SetErrorCode+0x9c>)
  6034. 8002b5c: 61d3 str r3, [r2, #28]
  6035. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
  6036. 8002b5e: 4b0d ldr r3, [pc, #52] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6037. 8002b60: 69db ldr r3, [r3, #28]
  6038. 8002b62: 4a0c ldr r2, [pc, #48] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6039. 8002b64: f023 0301 bic.w r3, r3, #1
  6040. 8002b68: 61d3 str r3, [r2, #28]
  6041. }
  6042. /* Clear FLASH error pending bits */
  6043. __HAL_FLASH_CLEAR_FLAG(flags);
  6044. 8002b6a: 687b ldr r3, [r7, #4]
  6045. 8002b6c: f240 1201 movw r2, #257 ; 0x101
  6046. 8002b70: 4293 cmp r3, r2
  6047. 8002b72: d106 bne.n 8002b82 <FLASH_SetErrorCode+0x86>
  6048. 8002b74: 4b07 ldr r3, [pc, #28] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6049. 8002b76: 69db ldr r3, [r3, #28]
  6050. 8002b78: 4a06 ldr r2, [pc, #24] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6051. 8002b7a: f023 0301 bic.w r3, r3, #1
  6052. 8002b7e: 61d3 str r3, [r2, #28]
  6053. }
  6054. 8002b80: e002 b.n 8002b88 <FLASH_SetErrorCode+0x8c>
  6055. __HAL_FLASH_CLEAR_FLAG(flags);
  6056. 8002b82: 4a04 ldr r2, [pc, #16] ; (8002b94 <FLASH_SetErrorCode+0x98>)
  6057. 8002b84: 687b ldr r3, [r7, #4]
  6058. 8002b86: 60d3 str r3, [r2, #12]
  6059. }
  6060. 8002b88: bf00 nop
  6061. 8002b8a: 370c adds r7, #12
  6062. 8002b8c: 46bd mov sp, r7
  6063. 8002b8e: bc80 pop {r7}
  6064. 8002b90: 4770 bx lr
  6065. 8002b92: bf00 nop
  6066. 8002b94: 40022000 .word 0x40022000
  6067. 8002b98: 20000640 .word 0x20000640
  6068. 08002b9c <HAL_FLASHEx_Erase>:
  6069. * (0xFFFFFFFF means that all the pages have been correctly erased)
  6070. *
  6071. * @retval HAL_StatusTypeDef HAL Status
  6072. */
  6073. HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)
  6074. {
  6075. 8002b9c: b580 push {r7, lr}
  6076. 8002b9e: b084 sub sp, #16
  6077. 8002ba0: af00 add r7, sp, #0
  6078. 8002ba2: 6078 str r0, [r7, #4]
  6079. 8002ba4: 6039 str r1, [r7, #0]
  6080. HAL_StatusTypeDef status = HAL_ERROR;
  6081. 8002ba6: 2301 movs r3, #1
  6082. 8002ba8: 73fb strb r3, [r7, #15]
  6083. uint32_t address = 0U;
  6084. 8002baa: 2300 movs r3, #0
  6085. 8002bac: 60bb str r3, [r7, #8]
  6086. /* Process Locked */
  6087. __HAL_LOCK(&pFlash);
  6088. 8002bae: 4b2f ldr r3, [pc, #188] ; (8002c6c <HAL_FLASHEx_Erase+0xd0>)
  6089. 8002bb0: 7e1b ldrb r3, [r3, #24]
  6090. 8002bb2: 2b01 cmp r3, #1
  6091. 8002bb4: d101 bne.n 8002bba <HAL_FLASHEx_Erase+0x1e>
  6092. 8002bb6: 2302 movs r3, #2
  6093. 8002bb8: e053 b.n 8002c62 <HAL_FLASHEx_Erase+0xc6>
  6094. 8002bba: 4b2c ldr r3, [pc, #176] ; (8002c6c <HAL_FLASHEx_Erase+0xd0>)
  6095. 8002bbc: 2201 movs r2, #1
  6096. 8002bbe: 761a strb r2, [r3, #24]
  6097. /* Check the parameters */
  6098. assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase));
  6099. if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE)
  6100. 8002bc0: 687b ldr r3, [r7, #4]
  6101. 8002bc2: 681b ldr r3, [r3, #0]
  6102. 8002bc4: 2b02 cmp r3, #2
  6103. 8002bc6: d116 bne.n 8002bf6 <HAL_FLASHEx_Erase+0x5a>
  6104. else
  6105. #endif /* FLASH_BANK2_END */
  6106. {
  6107. /* Mass Erase requested for Bank1 */
  6108. /* Wait for last operation to be completed */
  6109. if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK)
  6110. 8002bc8: f24c 3050 movw r0, #50000 ; 0xc350
  6111. 8002bcc: f7ff ff50 bl 8002a70 <FLASH_WaitForLastOperation>
  6112. 8002bd0: 4603 mov r3, r0
  6113. 8002bd2: 2b00 cmp r3, #0
  6114. 8002bd4: d141 bne.n 8002c5a <HAL_FLASHEx_Erase+0xbe>
  6115. {
  6116. /*Mass erase to be done*/
  6117. FLASH_MassErase(FLASH_BANK_1);
  6118. 8002bd6: 2001 movs r0, #1
  6119. 8002bd8: f000 f84c bl 8002c74 <FLASH_MassErase>
  6120. /* Wait for last operation to be completed */
  6121. status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  6122. 8002bdc: f24c 3050 movw r0, #50000 ; 0xc350
  6123. 8002be0: f7ff ff46 bl 8002a70 <FLASH_WaitForLastOperation>
  6124. 8002be4: 4603 mov r3, r0
  6125. 8002be6: 73fb strb r3, [r7, #15]
  6126. /* If the erase operation is completed, disable the MER Bit */
  6127. CLEAR_BIT(FLASH->CR, FLASH_CR_MER);
  6128. 8002be8: 4b21 ldr r3, [pc, #132] ; (8002c70 <HAL_FLASHEx_Erase+0xd4>)
  6129. 8002bea: 691b ldr r3, [r3, #16]
  6130. 8002bec: 4a20 ldr r2, [pc, #128] ; (8002c70 <HAL_FLASHEx_Erase+0xd4>)
  6131. 8002bee: f023 0304 bic.w r3, r3, #4
  6132. 8002bf2: 6113 str r3, [r2, #16]
  6133. 8002bf4: e031 b.n 8002c5a <HAL_FLASHEx_Erase+0xbe>
  6134. else
  6135. #endif /* FLASH_BANK2_END */
  6136. {
  6137. /* Page Erase requested on address located on bank1 */
  6138. /* Wait for last operation to be completed */
  6139. if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK)
  6140. 8002bf6: f24c 3050 movw r0, #50000 ; 0xc350
  6141. 8002bfa: f7ff ff39 bl 8002a70 <FLASH_WaitForLastOperation>
  6142. 8002bfe: 4603 mov r3, r0
  6143. 8002c00: 2b00 cmp r3, #0
  6144. 8002c02: d12a bne.n 8002c5a <HAL_FLASHEx_Erase+0xbe>
  6145. {
  6146. /*Initialization of PageError variable*/
  6147. *PageError = 0xFFFFFFFFU;
  6148. 8002c04: 683b ldr r3, [r7, #0]
  6149. 8002c06: f04f 32ff mov.w r2, #4294967295
  6150. 8002c0a: 601a str r2, [r3, #0]
  6151. /* Erase page by page to be done*/
  6152. for(address = pEraseInit->PageAddress;
  6153. 8002c0c: 687b ldr r3, [r7, #4]
  6154. 8002c0e: 689b ldr r3, [r3, #8]
  6155. 8002c10: 60bb str r3, [r7, #8]
  6156. 8002c12: e019 b.n 8002c48 <HAL_FLASHEx_Erase+0xac>
  6157. address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress);
  6158. address += FLASH_PAGE_SIZE)
  6159. {
  6160. FLASH_PageErase(address);
  6161. 8002c14: 68b8 ldr r0, [r7, #8]
  6162. 8002c16: f000 f849 bl 8002cac <FLASH_PageErase>
  6163. /* Wait for last operation to be completed */
  6164. status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  6165. 8002c1a: f24c 3050 movw r0, #50000 ; 0xc350
  6166. 8002c1e: f7ff ff27 bl 8002a70 <FLASH_WaitForLastOperation>
  6167. 8002c22: 4603 mov r3, r0
  6168. 8002c24: 73fb strb r3, [r7, #15]
  6169. /* If the erase operation is completed, disable the PER Bit */
  6170. CLEAR_BIT(FLASH->CR, FLASH_CR_PER);
  6171. 8002c26: 4b12 ldr r3, [pc, #72] ; (8002c70 <HAL_FLASHEx_Erase+0xd4>)
  6172. 8002c28: 691b ldr r3, [r3, #16]
  6173. 8002c2a: 4a11 ldr r2, [pc, #68] ; (8002c70 <HAL_FLASHEx_Erase+0xd4>)
  6174. 8002c2c: f023 0302 bic.w r3, r3, #2
  6175. 8002c30: 6113 str r3, [r2, #16]
  6176. if (status != HAL_OK)
  6177. 8002c32: 7bfb ldrb r3, [r7, #15]
  6178. 8002c34: 2b00 cmp r3, #0
  6179. 8002c36: d003 beq.n 8002c40 <HAL_FLASHEx_Erase+0xa4>
  6180. {
  6181. /* In case of error, stop erase procedure and return the faulty address */
  6182. *PageError = address;
  6183. 8002c38: 683b ldr r3, [r7, #0]
  6184. 8002c3a: 68ba ldr r2, [r7, #8]
  6185. 8002c3c: 601a str r2, [r3, #0]
  6186. break;
  6187. 8002c3e: e00c b.n 8002c5a <HAL_FLASHEx_Erase+0xbe>
  6188. address += FLASH_PAGE_SIZE)
  6189. 8002c40: 68bb ldr r3, [r7, #8]
  6190. 8002c42: f503 6380 add.w r3, r3, #1024 ; 0x400
  6191. 8002c46: 60bb str r3, [r7, #8]
  6192. address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress);
  6193. 8002c48: 687b ldr r3, [r7, #4]
  6194. 8002c4a: 68db ldr r3, [r3, #12]
  6195. 8002c4c: 029a lsls r2, r3, #10
  6196. 8002c4e: 687b ldr r3, [r7, #4]
  6197. 8002c50: 689b ldr r3, [r3, #8]
  6198. 8002c52: 4413 add r3, r2
  6199. for(address = pEraseInit->PageAddress;
  6200. 8002c54: 68ba ldr r2, [r7, #8]
  6201. 8002c56: 429a cmp r2, r3
  6202. 8002c58: d3dc bcc.n 8002c14 <HAL_FLASHEx_Erase+0x78>
  6203. }
  6204. }
  6205. }
  6206. /* Process Unlocked */
  6207. __HAL_UNLOCK(&pFlash);
  6208. 8002c5a: 4b04 ldr r3, [pc, #16] ; (8002c6c <HAL_FLASHEx_Erase+0xd0>)
  6209. 8002c5c: 2200 movs r2, #0
  6210. 8002c5e: 761a strb r2, [r3, #24]
  6211. return status;
  6212. 8002c60: 7bfb ldrb r3, [r7, #15]
  6213. }
  6214. 8002c62: 4618 mov r0, r3
  6215. 8002c64: 3710 adds r7, #16
  6216. 8002c66: 46bd mov sp, r7
  6217. 8002c68: bd80 pop {r7, pc}
  6218. 8002c6a: bf00 nop
  6219. 8002c6c: 20000640 .word 0x20000640
  6220. 8002c70: 40022000 .word 0x40022000
  6221. 08002c74 <FLASH_MassErase>:
  6222. @endif
  6223. *
  6224. * @retval None
  6225. */
  6226. static void FLASH_MassErase(uint32_t Banks)
  6227. {
  6228. 8002c74: b480 push {r7}
  6229. 8002c76: b083 sub sp, #12
  6230. 8002c78: af00 add r7, sp, #0
  6231. 8002c7a: 6078 str r0, [r7, #4]
  6232. /* Check the parameters */
  6233. assert_param(IS_FLASH_BANK(Banks));
  6234. /* Clean the error context */
  6235. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  6236. 8002c7c: 4b09 ldr r3, [pc, #36] ; (8002ca4 <FLASH_MassErase+0x30>)
  6237. 8002c7e: 2200 movs r2, #0
  6238. 8002c80: 61da str r2, [r3, #28]
  6239. #if !defined(FLASH_BANK2_END)
  6240. /* Prevent unused argument(s) compilation warning */
  6241. UNUSED(Banks);
  6242. #endif /* FLASH_BANK2_END */
  6243. /* Only bank1 will be erased*/
  6244. SET_BIT(FLASH->CR, FLASH_CR_MER);
  6245. 8002c82: 4b09 ldr r3, [pc, #36] ; (8002ca8 <FLASH_MassErase+0x34>)
  6246. 8002c84: 691b ldr r3, [r3, #16]
  6247. 8002c86: 4a08 ldr r2, [pc, #32] ; (8002ca8 <FLASH_MassErase+0x34>)
  6248. 8002c88: f043 0304 orr.w r3, r3, #4
  6249. 8002c8c: 6113 str r3, [r2, #16]
  6250. SET_BIT(FLASH->CR, FLASH_CR_STRT);
  6251. 8002c8e: 4b06 ldr r3, [pc, #24] ; (8002ca8 <FLASH_MassErase+0x34>)
  6252. 8002c90: 691b ldr r3, [r3, #16]
  6253. 8002c92: 4a05 ldr r2, [pc, #20] ; (8002ca8 <FLASH_MassErase+0x34>)
  6254. 8002c94: f043 0340 orr.w r3, r3, #64 ; 0x40
  6255. 8002c98: 6113 str r3, [r2, #16]
  6256. #if defined(FLASH_BANK2_END)
  6257. }
  6258. #endif /* FLASH_BANK2_END */
  6259. }
  6260. 8002c9a: bf00 nop
  6261. 8002c9c: 370c adds r7, #12
  6262. 8002c9e: 46bd mov sp, r7
  6263. 8002ca0: bc80 pop {r7}
  6264. 8002ca2: 4770 bx lr
  6265. 8002ca4: 20000640 .word 0x20000640
  6266. 8002ca8: 40022000 .word 0x40022000
  6267. 08002cac <FLASH_PageErase>:
  6268. * The value of this parameter depend on device used within the same series
  6269. *
  6270. * @retval None
  6271. */
  6272. void FLASH_PageErase(uint32_t PageAddress)
  6273. {
  6274. 8002cac: b480 push {r7}
  6275. 8002cae: b083 sub sp, #12
  6276. 8002cb0: af00 add r7, sp, #0
  6277. 8002cb2: 6078 str r0, [r7, #4]
  6278. /* Clean the error context */
  6279. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  6280. 8002cb4: 4b0b ldr r3, [pc, #44] ; (8002ce4 <FLASH_PageErase+0x38>)
  6281. 8002cb6: 2200 movs r2, #0
  6282. 8002cb8: 61da str r2, [r3, #28]
  6283. }
  6284. else
  6285. {
  6286. #endif /* FLASH_BANK2_END */
  6287. /* Proceed to erase the page */
  6288. SET_BIT(FLASH->CR, FLASH_CR_PER);
  6289. 8002cba: 4b0b ldr r3, [pc, #44] ; (8002ce8 <FLASH_PageErase+0x3c>)
  6290. 8002cbc: 691b ldr r3, [r3, #16]
  6291. 8002cbe: 4a0a ldr r2, [pc, #40] ; (8002ce8 <FLASH_PageErase+0x3c>)
  6292. 8002cc0: f043 0302 orr.w r3, r3, #2
  6293. 8002cc4: 6113 str r3, [r2, #16]
  6294. WRITE_REG(FLASH->AR, PageAddress);
  6295. 8002cc6: 4a08 ldr r2, [pc, #32] ; (8002ce8 <FLASH_PageErase+0x3c>)
  6296. 8002cc8: 687b ldr r3, [r7, #4]
  6297. 8002cca: 6153 str r3, [r2, #20]
  6298. SET_BIT(FLASH->CR, FLASH_CR_STRT);
  6299. 8002ccc: 4b06 ldr r3, [pc, #24] ; (8002ce8 <FLASH_PageErase+0x3c>)
  6300. 8002cce: 691b ldr r3, [r3, #16]
  6301. 8002cd0: 4a05 ldr r2, [pc, #20] ; (8002ce8 <FLASH_PageErase+0x3c>)
  6302. 8002cd2: f043 0340 orr.w r3, r3, #64 ; 0x40
  6303. 8002cd6: 6113 str r3, [r2, #16]
  6304. #if defined(FLASH_BANK2_END)
  6305. }
  6306. #endif /* FLASH_BANK2_END */
  6307. }
  6308. 8002cd8: bf00 nop
  6309. 8002cda: 370c adds r7, #12
  6310. 8002cdc: 46bd mov sp, r7
  6311. 8002cde: bc80 pop {r7}
  6312. 8002ce0: 4770 bx lr
  6313. 8002ce2: bf00 nop
  6314. 8002ce4: 20000640 .word 0x20000640
  6315. 8002ce8: 40022000 .word 0x40022000
  6316. 08002cec <HAL_GPIO_Init>:
  6317. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  6318. * the configuration information for the specified GPIO peripheral.
  6319. * @retval None
  6320. */
  6321. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  6322. {
  6323. 8002cec: b480 push {r7}
  6324. 8002cee: b08b sub sp, #44 ; 0x2c
  6325. 8002cf0: af00 add r7, sp, #0
  6326. 8002cf2: 6078 str r0, [r7, #4]
  6327. 8002cf4: 6039 str r1, [r7, #0]
  6328. uint32_t position = 0x00u;
  6329. 8002cf6: 2300 movs r3, #0
  6330. 8002cf8: 627b str r3, [r7, #36] ; 0x24
  6331. uint32_t ioposition;
  6332. uint32_t iocurrent;
  6333. uint32_t temp;
  6334. uint32_t config = 0x00u;
  6335. 8002cfa: 2300 movs r3, #0
  6336. 8002cfc: 623b str r3, [r7, #32]
  6337. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  6338. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  6339. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  6340. /* Configure the port pins */
  6341. while (((GPIO_Init->Pin) >> position) != 0x00u)
  6342. 8002cfe: e127 b.n 8002f50 <HAL_GPIO_Init+0x264>
  6343. {
  6344. /* Get the IO position */
  6345. ioposition = (0x01uL << position);
  6346. 8002d00: 2201 movs r2, #1
  6347. 8002d02: 6a7b ldr r3, [r7, #36] ; 0x24
  6348. 8002d04: fa02 f303 lsl.w r3, r2, r3
  6349. 8002d08: 61fb str r3, [r7, #28]
  6350. /* Get the current IO position */
  6351. iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
  6352. 8002d0a: 683b ldr r3, [r7, #0]
  6353. 8002d0c: 681b ldr r3, [r3, #0]
  6354. 8002d0e: 69fa ldr r2, [r7, #28]
  6355. 8002d10: 4013 ands r3, r2
  6356. 8002d12: 61bb str r3, [r7, #24]
  6357. if (iocurrent == ioposition)
  6358. 8002d14: 69ba ldr r2, [r7, #24]
  6359. 8002d16: 69fb ldr r3, [r7, #28]
  6360. 8002d18: 429a cmp r2, r3
  6361. 8002d1a: f040 8116 bne.w 8002f4a <HAL_GPIO_Init+0x25e>
  6362. {
  6363. /* Check the Alternate function parameters */
  6364. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  6365. /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */
  6366. switch (GPIO_Init->Mode)
  6367. 8002d1e: 683b ldr r3, [r7, #0]
  6368. 8002d20: 685b ldr r3, [r3, #4]
  6369. 8002d22: 2b12 cmp r3, #18
  6370. 8002d24: d034 beq.n 8002d90 <HAL_GPIO_Init+0xa4>
  6371. 8002d26: 2b12 cmp r3, #18
  6372. 8002d28: d80d bhi.n 8002d46 <HAL_GPIO_Init+0x5a>
  6373. 8002d2a: 2b02 cmp r3, #2
  6374. 8002d2c: d02b beq.n 8002d86 <HAL_GPIO_Init+0x9a>
  6375. 8002d2e: 2b02 cmp r3, #2
  6376. 8002d30: d804 bhi.n 8002d3c <HAL_GPIO_Init+0x50>
  6377. 8002d32: 2b00 cmp r3, #0
  6378. 8002d34: d031 beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6379. 8002d36: 2b01 cmp r3, #1
  6380. 8002d38: d01c beq.n 8002d74 <HAL_GPIO_Init+0x88>
  6381. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  6382. break;
  6383. /* Parameters are checked with assert_param */
  6384. default:
  6385. break;
  6386. 8002d3a: e048 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6387. switch (GPIO_Init->Mode)
  6388. 8002d3c: 2b03 cmp r3, #3
  6389. 8002d3e: d043 beq.n 8002dc8 <HAL_GPIO_Init+0xdc>
  6390. 8002d40: 2b11 cmp r3, #17
  6391. 8002d42: d01b beq.n 8002d7c <HAL_GPIO_Init+0x90>
  6392. break;
  6393. 8002d44: e043 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6394. switch (GPIO_Init->Mode)
  6395. 8002d46: 4a89 ldr r2, [pc, #548] ; (8002f6c <HAL_GPIO_Init+0x280>)
  6396. 8002d48: 4293 cmp r3, r2
  6397. 8002d4a: d026 beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6398. 8002d4c: 4a87 ldr r2, [pc, #540] ; (8002f6c <HAL_GPIO_Init+0x280>)
  6399. 8002d4e: 4293 cmp r3, r2
  6400. 8002d50: d806 bhi.n 8002d60 <HAL_GPIO_Init+0x74>
  6401. 8002d52: 4a87 ldr r2, [pc, #540] ; (8002f70 <HAL_GPIO_Init+0x284>)
  6402. 8002d54: 4293 cmp r3, r2
  6403. 8002d56: d020 beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6404. 8002d58: 4a86 ldr r2, [pc, #536] ; (8002f74 <HAL_GPIO_Init+0x288>)
  6405. 8002d5a: 4293 cmp r3, r2
  6406. 8002d5c: d01d beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6407. break;
  6408. 8002d5e: e036 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6409. switch (GPIO_Init->Mode)
  6410. 8002d60: 4a85 ldr r2, [pc, #532] ; (8002f78 <HAL_GPIO_Init+0x28c>)
  6411. 8002d62: 4293 cmp r3, r2
  6412. 8002d64: d019 beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6413. 8002d66: 4a85 ldr r2, [pc, #532] ; (8002f7c <HAL_GPIO_Init+0x290>)
  6414. 8002d68: 4293 cmp r3, r2
  6415. 8002d6a: d016 beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6416. 8002d6c: 4a84 ldr r2, [pc, #528] ; (8002f80 <HAL_GPIO_Init+0x294>)
  6417. 8002d6e: 4293 cmp r3, r2
  6418. 8002d70: d013 beq.n 8002d9a <HAL_GPIO_Init+0xae>
  6419. break;
  6420. 8002d72: e02c b.n 8002dce <HAL_GPIO_Init+0xe2>
  6421. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP;
  6422. 8002d74: 683b ldr r3, [r7, #0]
  6423. 8002d76: 68db ldr r3, [r3, #12]
  6424. 8002d78: 623b str r3, [r7, #32]
  6425. break;
  6426. 8002d7a: e028 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6427. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD;
  6428. 8002d7c: 683b ldr r3, [r7, #0]
  6429. 8002d7e: 68db ldr r3, [r3, #12]
  6430. 8002d80: 3304 adds r3, #4
  6431. 8002d82: 623b str r3, [r7, #32]
  6432. break;
  6433. 8002d84: e023 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6434. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP;
  6435. 8002d86: 683b ldr r3, [r7, #0]
  6436. 8002d88: 68db ldr r3, [r3, #12]
  6437. 8002d8a: 3308 adds r3, #8
  6438. 8002d8c: 623b str r3, [r7, #32]
  6439. break;
  6440. 8002d8e: e01e b.n 8002dce <HAL_GPIO_Init+0xe2>
  6441. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD;
  6442. 8002d90: 683b ldr r3, [r7, #0]
  6443. 8002d92: 68db ldr r3, [r3, #12]
  6444. 8002d94: 330c adds r3, #12
  6445. 8002d96: 623b str r3, [r7, #32]
  6446. break;
  6447. 8002d98: e019 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6448. if (GPIO_Init->Pull == GPIO_NOPULL)
  6449. 8002d9a: 683b ldr r3, [r7, #0]
  6450. 8002d9c: 689b ldr r3, [r3, #8]
  6451. 8002d9e: 2b00 cmp r3, #0
  6452. 8002da0: d102 bne.n 8002da8 <HAL_GPIO_Init+0xbc>
  6453. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING;
  6454. 8002da2: 2304 movs r3, #4
  6455. 8002da4: 623b str r3, [r7, #32]
  6456. break;
  6457. 8002da6: e012 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6458. else if (GPIO_Init->Pull == GPIO_PULLUP)
  6459. 8002da8: 683b ldr r3, [r7, #0]
  6460. 8002daa: 689b ldr r3, [r3, #8]
  6461. 8002dac: 2b01 cmp r3, #1
  6462. 8002dae: d105 bne.n 8002dbc <HAL_GPIO_Init+0xd0>
  6463. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  6464. 8002db0: 2308 movs r3, #8
  6465. 8002db2: 623b str r3, [r7, #32]
  6466. GPIOx->BSRR = ioposition;
  6467. 8002db4: 687b ldr r3, [r7, #4]
  6468. 8002db6: 69fa ldr r2, [r7, #28]
  6469. 8002db8: 611a str r2, [r3, #16]
  6470. break;
  6471. 8002dba: e008 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6472. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  6473. 8002dbc: 2308 movs r3, #8
  6474. 8002dbe: 623b str r3, [r7, #32]
  6475. GPIOx->BRR = ioposition;
  6476. 8002dc0: 687b ldr r3, [r7, #4]
  6477. 8002dc2: 69fa ldr r2, [r7, #28]
  6478. 8002dc4: 615a str r2, [r3, #20]
  6479. break;
  6480. 8002dc6: e002 b.n 8002dce <HAL_GPIO_Init+0xe2>
  6481. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  6482. 8002dc8: 2300 movs r3, #0
  6483. 8002dca: 623b str r3, [r7, #32]
  6484. break;
  6485. 8002dcc: bf00 nop
  6486. }
  6487. /* Check if the current bit belongs to first half or last half of the pin count number
  6488. in order to address CRH or CRL register*/
  6489. configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH;
  6490. 8002dce: 69bb ldr r3, [r7, #24]
  6491. 8002dd0: 2bff cmp r3, #255 ; 0xff
  6492. 8002dd2: d801 bhi.n 8002dd8 <HAL_GPIO_Init+0xec>
  6493. 8002dd4: 687b ldr r3, [r7, #4]
  6494. 8002dd6: e001 b.n 8002ddc <HAL_GPIO_Init+0xf0>
  6495. 8002dd8: 687b ldr r3, [r7, #4]
  6496. 8002dda: 3304 adds r3, #4
  6497. 8002ddc: 617b str r3, [r7, #20]
  6498. registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u);
  6499. 8002dde: 69bb ldr r3, [r7, #24]
  6500. 8002de0: 2bff cmp r3, #255 ; 0xff
  6501. 8002de2: d802 bhi.n 8002dea <HAL_GPIO_Init+0xfe>
  6502. 8002de4: 6a7b ldr r3, [r7, #36] ; 0x24
  6503. 8002de6: 009b lsls r3, r3, #2
  6504. 8002de8: e002 b.n 8002df0 <HAL_GPIO_Init+0x104>
  6505. 8002dea: 6a7b ldr r3, [r7, #36] ; 0x24
  6506. 8002dec: 3b08 subs r3, #8
  6507. 8002dee: 009b lsls r3, r3, #2
  6508. 8002df0: 613b str r3, [r7, #16]
  6509. /* Apply the new configuration of the pin to the register */
  6510. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  6511. 8002df2: 697b ldr r3, [r7, #20]
  6512. 8002df4: 681a ldr r2, [r3, #0]
  6513. 8002df6: 210f movs r1, #15
  6514. 8002df8: 693b ldr r3, [r7, #16]
  6515. 8002dfa: fa01 f303 lsl.w r3, r1, r3
  6516. 8002dfe: 43db mvns r3, r3
  6517. 8002e00: 401a ands r2, r3
  6518. 8002e02: 6a39 ldr r1, [r7, #32]
  6519. 8002e04: 693b ldr r3, [r7, #16]
  6520. 8002e06: fa01 f303 lsl.w r3, r1, r3
  6521. 8002e0a: 431a orrs r2, r3
  6522. 8002e0c: 697b ldr r3, [r7, #20]
  6523. 8002e0e: 601a str r2, [r3, #0]
  6524. /*--------------------- EXTI Mode Configuration ------------------------*/
  6525. /* Configure the External Interrupt or event for the current IO */
  6526. if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
  6527. 8002e10: 683b ldr r3, [r7, #0]
  6528. 8002e12: 685b ldr r3, [r3, #4]
  6529. 8002e14: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  6530. 8002e18: 2b00 cmp r3, #0
  6531. 8002e1a: f000 8096 beq.w 8002f4a <HAL_GPIO_Init+0x25e>
  6532. {
  6533. /* Enable AFIO Clock */
  6534. __HAL_RCC_AFIO_CLK_ENABLE();
  6535. 8002e1e: 4b59 ldr r3, [pc, #356] ; (8002f84 <HAL_GPIO_Init+0x298>)
  6536. 8002e20: 699b ldr r3, [r3, #24]
  6537. 8002e22: 4a58 ldr r2, [pc, #352] ; (8002f84 <HAL_GPIO_Init+0x298>)
  6538. 8002e24: f043 0301 orr.w r3, r3, #1
  6539. 8002e28: 6193 str r3, [r2, #24]
  6540. 8002e2a: 4b56 ldr r3, [pc, #344] ; (8002f84 <HAL_GPIO_Init+0x298>)
  6541. 8002e2c: 699b ldr r3, [r3, #24]
  6542. 8002e2e: f003 0301 and.w r3, r3, #1
  6543. 8002e32: 60bb str r3, [r7, #8]
  6544. 8002e34: 68bb ldr r3, [r7, #8]
  6545. temp = AFIO->EXTICR[position >> 2u];
  6546. 8002e36: 4a54 ldr r2, [pc, #336] ; (8002f88 <HAL_GPIO_Init+0x29c>)
  6547. 8002e38: 6a7b ldr r3, [r7, #36] ; 0x24
  6548. 8002e3a: 089b lsrs r3, r3, #2
  6549. 8002e3c: 3302 adds r3, #2
  6550. 8002e3e: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  6551. 8002e42: 60fb str r3, [r7, #12]
  6552. CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u)));
  6553. 8002e44: 6a7b ldr r3, [r7, #36] ; 0x24
  6554. 8002e46: f003 0303 and.w r3, r3, #3
  6555. 8002e4a: 009b lsls r3, r3, #2
  6556. 8002e4c: 220f movs r2, #15
  6557. 8002e4e: fa02 f303 lsl.w r3, r2, r3
  6558. 8002e52: 43db mvns r3, r3
  6559. 8002e54: 68fa ldr r2, [r7, #12]
  6560. 8002e56: 4013 ands r3, r2
  6561. 8002e58: 60fb str r3, [r7, #12]
  6562. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u)));
  6563. 8002e5a: 687b ldr r3, [r7, #4]
  6564. 8002e5c: 4a4b ldr r2, [pc, #300] ; (8002f8c <HAL_GPIO_Init+0x2a0>)
  6565. 8002e5e: 4293 cmp r3, r2
  6566. 8002e60: d013 beq.n 8002e8a <HAL_GPIO_Init+0x19e>
  6567. 8002e62: 687b ldr r3, [r7, #4]
  6568. 8002e64: 4a4a ldr r2, [pc, #296] ; (8002f90 <HAL_GPIO_Init+0x2a4>)
  6569. 8002e66: 4293 cmp r3, r2
  6570. 8002e68: d00d beq.n 8002e86 <HAL_GPIO_Init+0x19a>
  6571. 8002e6a: 687b ldr r3, [r7, #4]
  6572. 8002e6c: 4a49 ldr r2, [pc, #292] ; (8002f94 <HAL_GPIO_Init+0x2a8>)
  6573. 8002e6e: 4293 cmp r3, r2
  6574. 8002e70: d007 beq.n 8002e82 <HAL_GPIO_Init+0x196>
  6575. 8002e72: 687b ldr r3, [r7, #4]
  6576. 8002e74: 4a48 ldr r2, [pc, #288] ; (8002f98 <HAL_GPIO_Init+0x2ac>)
  6577. 8002e76: 4293 cmp r3, r2
  6578. 8002e78: d101 bne.n 8002e7e <HAL_GPIO_Init+0x192>
  6579. 8002e7a: 2303 movs r3, #3
  6580. 8002e7c: e006 b.n 8002e8c <HAL_GPIO_Init+0x1a0>
  6581. 8002e7e: 2304 movs r3, #4
  6582. 8002e80: e004 b.n 8002e8c <HAL_GPIO_Init+0x1a0>
  6583. 8002e82: 2302 movs r3, #2
  6584. 8002e84: e002 b.n 8002e8c <HAL_GPIO_Init+0x1a0>
  6585. 8002e86: 2301 movs r3, #1
  6586. 8002e88: e000 b.n 8002e8c <HAL_GPIO_Init+0x1a0>
  6587. 8002e8a: 2300 movs r3, #0
  6588. 8002e8c: 6a7a ldr r2, [r7, #36] ; 0x24
  6589. 8002e8e: f002 0203 and.w r2, r2, #3
  6590. 8002e92: 0092 lsls r2, r2, #2
  6591. 8002e94: 4093 lsls r3, r2
  6592. 8002e96: 68fa ldr r2, [r7, #12]
  6593. 8002e98: 4313 orrs r3, r2
  6594. 8002e9a: 60fb str r3, [r7, #12]
  6595. AFIO->EXTICR[position >> 2u] = temp;
  6596. 8002e9c: 493a ldr r1, [pc, #232] ; (8002f88 <HAL_GPIO_Init+0x29c>)
  6597. 8002e9e: 6a7b ldr r3, [r7, #36] ; 0x24
  6598. 8002ea0: 089b lsrs r3, r3, #2
  6599. 8002ea2: 3302 adds r3, #2
  6600. 8002ea4: 68fa ldr r2, [r7, #12]
  6601. 8002ea6: f841 2023 str.w r2, [r1, r3, lsl #2]
  6602. /* Configure the interrupt mask */
  6603. if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
  6604. 8002eaa: 683b ldr r3, [r7, #0]
  6605. 8002eac: 685b ldr r3, [r3, #4]
  6606. 8002eae: f403 3380 and.w r3, r3, #65536 ; 0x10000
  6607. 8002eb2: 2b00 cmp r3, #0
  6608. 8002eb4: d006 beq.n 8002ec4 <HAL_GPIO_Init+0x1d8>
  6609. {
  6610. SET_BIT(EXTI->IMR, iocurrent);
  6611. 8002eb6: 4b39 ldr r3, [pc, #228] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6612. 8002eb8: 681a ldr r2, [r3, #0]
  6613. 8002eba: 4938 ldr r1, [pc, #224] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6614. 8002ebc: 69bb ldr r3, [r7, #24]
  6615. 8002ebe: 4313 orrs r3, r2
  6616. 8002ec0: 600b str r3, [r1, #0]
  6617. 8002ec2: e006 b.n 8002ed2 <HAL_GPIO_Init+0x1e6>
  6618. }
  6619. else
  6620. {
  6621. CLEAR_BIT(EXTI->IMR, iocurrent);
  6622. 8002ec4: 4b35 ldr r3, [pc, #212] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6623. 8002ec6: 681a ldr r2, [r3, #0]
  6624. 8002ec8: 69bb ldr r3, [r7, #24]
  6625. 8002eca: 43db mvns r3, r3
  6626. 8002ecc: 4933 ldr r1, [pc, #204] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6627. 8002ece: 4013 ands r3, r2
  6628. 8002ed0: 600b str r3, [r1, #0]
  6629. }
  6630. /* Configure the event mask */
  6631. if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
  6632. 8002ed2: 683b ldr r3, [r7, #0]
  6633. 8002ed4: 685b ldr r3, [r3, #4]
  6634. 8002ed6: f403 3300 and.w r3, r3, #131072 ; 0x20000
  6635. 8002eda: 2b00 cmp r3, #0
  6636. 8002edc: d006 beq.n 8002eec <HAL_GPIO_Init+0x200>
  6637. {
  6638. SET_BIT(EXTI->EMR, iocurrent);
  6639. 8002ede: 4b2f ldr r3, [pc, #188] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6640. 8002ee0: 685a ldr r2, [r3, #4]
  6641. 8002ee2: 492e ldr r1, [pc, #184] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6642. 8002ee4: 69bb ldr r3, [r7, #24]
  6643. 8002ee6: 4313 orrs r3, r2
  6644. 8002ee8: 604b str r3, [r1, #4]
  6645. 8002eea: e006 b.n 8002efa <HAL_GPIO_Init+0x20e>
  6646. }
  6647. else
  6648. {
  6649. CLEAR_BIT(EXTI->EMR, iocurrent);
  6650. 8002eec: 4b2b ldr r3, [pc, #172] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6651. 8002eee: 685a ldr r2, [r3, #4]
  6652. 8002ef0: 69bb ldr r3, [r7, #24]
  6653. 8002ef2: 43db mvns r3, r3
  6654. 8002ef4: 4929 ldr r1, [pc, #164] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6655. 8002ef6: 4013 ands r3, r2
  6656. 8002ef8: 604b str r3, [r1, #4]
  6657. }
  6658. /* Enable or disable the rising trigger */
  6659. if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
  6660. 8002efa: 683b ldr r3, [r7, #0]
  6661. 8002efc: 685b ldr r3, [r3, #4]
  6662. 8002efe: f403 1380 and.w r3, r3, #1048576 ; 0x100000
  6663. 8002f02: 2b00 cmp r3, #0
  6664. 8002f04: d006 beq.n 8002f14 <HAL_GPIO_Init+0x228>
  6665. {
  6666. SET_BIT(EXTI->RTSR, iocurrent);
  6667. 8002f06: 4b25 ldr r3, [pc, #148] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6668. 8002f08: 689a ldr r2, [r3, #8]
  6669. 8002f0a: 4924 ldr r1, [pc, #144] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6670. 8002f0c: 69bb ldr r3, [r7, #24]
  6671. 8002f0e: 4313 orrs r3, r2
  6672. 8002f10: 608b str r3, [r1, #8]
  6673. 8002f12: e006 b.n 8002f22 <HAL_GPIO_Init+0x236>
  6674. }
  6675. else
  6676. {
  6677. CLEAR_BIT(EXTI->RTSR, iocurrent);
  6678. 8002f14: 4b21 ldr r3, [pc, #132] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6679. 8002f16: 689a ldr r2, [r3, #8]
  6680. 8002f18: 69bb ldr r3, [r7, #24]
  6681. 8002f1a: 43db mvns r3, r3
  6682. 8002f1c: 491f ldr r1, [pc, #124] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6683. 8002f1e: 4013 ands r3, r2
  6684. 8002f20: 608b str r3, [r1, #8]
  6685. }
  6686. /* Enable or disable the falling trigger */
  6687. if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
  6688. 8002f22: 683b ldr r3, [r7, #0]
  6689. 8002f24: 685b ldr r3, [r3, #4]
  6690. 8002f26: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  6691. 8002f2a: 2b00 cmp r3, #0
  6692. 8002f2c: d006 beq.n 8002f3c <HAL_GPIO_Init+0x250>
  6693. {
  6694. SET_BIT(EXTI->FTSR, iocurrent);
  6695. 8002f2e: 4b1b ldr r3, [pc, #108] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6696. 8002f30: 68da ldr r2, [r3, #12]
  6697. 8002f32: 491a ldr r1, [pc, #104] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6698. 8002f34: 69bb ldr r3, [r7, #24]
  6699. 8002f36: 4313 orrs r3, r2
  6700. 8002f38: 60cb str r3, [r1, #12]
  6701. 8002f3a: e006 b.n 8002f4a <HAL_GPIO_Init+0x25e>
  6702. }
  6703. else
  6704. {
  6705. CLEAR_BIT(EXTI->FTSR, iocurrent);
  6706. 8002f3c: 4b17 ldr r3, [pc, #92] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6707. 8002f3e: 68da ldr r2, [r3, #12]
  6708. 8002f40: 69bb ldr r3, [r7, #24]
  6709. 8002f42: 43db mvns r3, r3
  6710. 8002f44: 4915 ldr r1, [pc, #84] ; (8002f9c <HAL_GPIO_Init+0x2b0>)
  6711. 8002f46: 4013 ands r3, r2
  6712. 8002f48: 60cb str r3, [r1, #12]
  6713. }
  6714. }
  6715. }
  6716. position++;
  6717. 8002f4a: 6a7b ldr r3, [r7, #36] ; 0x24
  6718. 8002f4c: 3301 adds r3, #1
  6719. 8002f4e: 627b str r3, [r7, #36] ; 0x24
  6720. while (((GPIO_Init->Pin) >> position) != 0x00u)
  6721. 8002f50: 683b ldr r3, [r7, #0]
  6722. 8002f52: 681a ldr r2, [r3, #0]
  6723. 8002f54: 6a7b ldr r3, [r7, #36] ; 0x24
  6724. 8002f56: fa22 f303 lsr.w r3, r2, r3
  6725. 8002f5a: 2b00 cmp r3, #0
  6726. 8002f5c: f47f aed0 bne.w 8002d00 <HAL_GPIO_Init+0x14>
  6727. }
  6728. }
  6729. 8002f60: bf00 nop
  6730. 8002f62: 372c adds r7, #44 ; 0x2c
  6731. 8002f64: 46bd mov sp, r7
  6732. 8002f66: bc80 pop {r7}
  6733. 8002f68: 4770 bx lr
  6734. 8002f6a: bf00 nop
  6735. 8002f6c: 10210000 .word 0x10210000
  6736. 8002f70: 10110000 .word 0x10110000
  6737. 8002f74: 10120000 .word 0x10120000
  6738. 8002f78: 10310000 .word 0x10310000
  6739. 8002f7c: 10320000 .word 0x10320000
  6740. 8002f80: 10220000 .word 0x10220000
  6741. 8002f84: 40021000 .word 0x40021000
  6742. 8002f88: 40010000 .word 0x40010000
  6743. 8002f8c: 40010800 .word 0x40010800
  6744. 8002f90: 40010c00 .word 0x40010c00
  6745. 8002f94: 40011000 .word 0x40011000
  6746. 8002f98: 40011400 .word 0x40011400
  6747. 8002f9c: 40010400 .word 0x40010400
  6748. 08002fa0 <HAL_GPIO_WritePin>:
  6749. * @arg GPIO_PIN_RESET: to clear the port pin
  6750. * @arg GPIO_PIN_SET: to set the port pin
  6751. * @retval None
  6752. */
  6753. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  6754. {
  6755. 8002fa0: b480 push {r7}
  6756. 8002fa2: b083 sub sp, #12
  6757. 8002fa4: af00 add r7, sp, #0
  6758. 8002fa6: 6078 str r0, [r7, #4]
  6759. 8002fa8: 460b mov r3, r1
  6760. 8002faa: 807b strh r3, [r7, #2]
  6761. 8002fac: 4613 mov r3, r2
  6762. 8002fae: 707b strb r3, [r7, #1]
  6763. /* Check the parameters */
  6764. assert_param(IS_GPIO_PIN(GPIO_Pin));
  6765. assert_param(IS_GPIO_PIN_ACTION(PinState));
  6766. if (PinState != GPIO_PIN_RESET)
  6767. 8002fb0: 787b ldrb r3, [r7, #1]
  6768. 8002fb2: 2b00 cmp r3, #0
  6769. 8002fb4: d003 beq.n 8002fbe <HAL_GPIO_WritePin+0x1e>
  6770. {
  6771. GPIOx->BSRR = GPIO_Pin;
  6772. 8002fb6: 887a ldrh r2, [r7, #2]
  6773. 8002fb8: 687b ldr r3, [r7, #4]
  6774. 8002fba: 611a str r2, [r3, #16]
  6775. }
  6776. else
  6777. {
  6778. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  6779. }
  6780. }
  6781. 8002fbc: e003 b.n 8002fc6 <HAL_GPIO_WritePin+0x26>
  6782. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  6783. 8002fbe: 887b ldrh r3, [r7, #2]
  6784. 8002fc0: 041a lsls r2, r3, #16
  6785. 8002fc2: 687b ldr r3, [r7, #4]
  6786. 8002fc4: 611a str r2, [r3, #16]
  6787. }
  6788. 8002fc6: bf00 nop
  6789. 8002fc8: 370c adds r7, #12
  6790. 8002fca: 46bd mov sp, r7
  6791. 8002fcc: bc80 pop {r7}
  6792. 8002fce: 4770 bx lr
  6793. 08002fd0 <HAL_RCC_OscConfig>:
  6794. * supported by this macro. User should request a transition to HSE Off
  6795. * first and then HSE On or HSE Bypass.
  6796. * @retval HAL status
  6797. */
  6798. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  6799. {
  6800. 8002fd0: b580 push {r7, lr}
  6801. 8002fd2: b086 sub sp, #24
  6802. 8002fd4: af00 add r7, sp, #0
  6803. 8002fd6: 6078 str r0, [r7, #4]
  6804. uint32_t tickstart;
  6805. uint32_t pll_config;
  6806. /* Check Null pointer */
  6807. if (RCC_OscInitStruct == NULL)
  6808. 8002fd8: 687b ldr r3, [r7, #4]
  6809. 8002fda: 2b00 cmp r3, #0
  6810. 8002fdc: d101 bne.n 8002fe2 <HAL_RCC_OscConfig+0x12>
  6811. {
  6812. return HAL_ERROR;
  6813. 8002fde: 2301 movs r3, #1
  6814. 8002fe0: e26c b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  6815. /* Check the parameters */
  6816. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  6817. /*------------------------------- HSE Configuration ------------------------*/
  6818. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  6819. 8002fe2: 687b ldr r3, [r7, #4]
  6820. 8002fe4: 681b ldr r3, [r3, #0]
  6821. 8002fe6: f003 0301 and.w r3, r3, #1
  6822. 8002fea: 2b00 cmp r3, #0
  6823. 8002fec: f000 8087 beq.w 80030fe <HAL_RCC_OscConfig+0x12e>
  6824. {
  6825. /* Check the parameters */
  6826. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  6827. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  6828. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  6829. 8002ff0: 4b92 ldr r3, [pc, #584] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6830. 8002ff2: 685b ldr r3, [r3, #4]
  6831. 8002ff4: f003 030c and.w r3, r3, #12
  6832. 8002ff8: 2b04 cmp r3, #4
  6833. 8002ffa: d00c beq.n 8003016 <HAL_RCC_OscConfig+0x46>
  6834. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  6835. 8002ffc: 4b8f ldr r3, [pc, #572] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6836. 8002ffe: 685b ldr r3, [r3, #4]
  6837. 8003000: f003 030c and.w r3, r3, #12
  6838. 8003004: 2b08 cmp r3, #8
  6839. 8003006: d112 bne.n 800302e <HAL_RCC_OscConfig+0x5e>
  6840. 8003008: 4b8c ldr r3, [pc, #560] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6841. 800300a: 685b ldr r3, [r3, #4]
  6842. 800300c: f403 3380 and.w r3, r3, #65536 ; 0x10000
  6843. 8003010: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  6844. 8003014: d10b bne.n 800302e <HAL_RCC_OscConfig+0x5e>
  6845. {
  6846. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  6847. 8003016: 4b89 ldr r3, [pc, #548] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6848. 8003018: 681b ldr r3, [r3, #0]
  6849. 800301a: f403 3300 and.w r3, r3, #131072 ; 0x20000
  6850. 800301e: 2b00 cmp r3, #0
  6851. 8003020: d06c beq.n 80030fc <HAL_RCC_OscConfig+0x12c>
  6852. 8003022: 687b ldr r3, [r7, #4]
  6853. 8003024: 685b ldr r3, [r3, #4]
  6854. 8003026: 2b00 cmp r3, #0
  6855. 8003028: d168 bne.n 80030fc <HAL_RCC_OscConfig+0x12c>
  6856. {
  6857. return HAL_ERROR;
  6858. 800302a: 2301 movs r3, #1
  6859. 800302c: e246 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  6860. }
  6861. }
  6862. else
  6863. {
  6864. /* Set the new HSE configuration ---------------------------------------*/
  6865. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  6866. 800302e: 687b ldr r3, [r7, #4]
  6867. 8003030: 685b ldr r3, [r3, #4]
  6868. 8003032: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  6869. 8003036: d106 bne.n 8003046 <HAL_RCC_OscConfig+0x76>
  6870. 8003038: 4b80 ldr r3, [pc, #512] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6871. 800303a: 681b ldr r3, [r3, #0]
  6872. 800303c: 4a7f ldr r2, [pc, #508] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6873. 800303e: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  6874. 8003042: 6013 str r3, [r2, #0]
  6875. 8003044: e02e b.n 80030a4 <HAL_RCC_OscConfig+0xd4>
  6876. 8003046: 687b ldr r3, [r7, #4]
  6877. 8003048: 685b ldr r3, [r3, #4]
  6878. 800304a: 2b00 cmp r3, #0
  6879. 800304c: d10c bne.n 8003068 <HAL_RCC_OscConfig+0x98>
  6880. 800304e: 4b7b ldr r3, [pc, #492] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6881. 8003050: 681b ldr r3, [r3, #0]
  6882. 8003052: 4a7a ldr r2, [pc, #488] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6883. 8003054: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  6884. 8003058: 6013 str r3, [r2, #0]
  6885. 800305a: 4b78 ldr r3, [pc, #480] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6886. 800305c: 681b ldr r3, [r3, #0]
  6887. 800305e: 4a77 ldr r2, [pc, #476] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6888. 8003060: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  6889. 8003064: 6013 str r3, [r2, #0]
  6890. 8003066: e01d b.n 80030a4 <HAL_RCC_OscConfig+0xd4>
  6891. 8003068: 687b ldr r3, [r7, #4]
  6892. 800306a: 685b ldr r3, [r3, #4]
  6893. 800306c: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
  6894. 8003070: d10c bne.n 800308c <HAL_RCC_OscConfig+0xbc>
  6895. 8003072: 4b72 ldr r3, [pc, #456] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6896. 8003074: 681b ldr r3, [r3, #0]
  6897. 8003076: 4a71 ldr r2, [pc, #452] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6898. 8003078: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  6899. 800307c: 6013 str r3, [r2, #0]
  6900. 800307e: 4b6f ldr r3, [pc, #444] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6901. 8003080: 681b ldr r3, [r3, #0]
  6902. 8003082: 4a6e ldr r2, [pc, #440] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6903. 8003084: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  6904. 8003088: 6013 str r3, [r2, #0]
  6905. 800308a: e00b b.n 80030a4 <HAL_RCC_OscConfig+0xd4>
  6906. 800308c: 4b6b ldr r3, [pc, #428] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6907. 800308e: 681b ldr r3, [r3, #0]
  6908. 8003090: 4a6a ldr r2, [pc, #424] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6909. 8003092: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  6910. 8003096: 6013 str r3, [r2, #0]
  6911. 8003098: 4b68 ldr r3, [pc, #416] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6912. 800309a: 681b ldr r3, [r3, #0]
  6913. 800309c: 4a67 ldr r2, [pc, #412] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6914. 800309e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  6915. 80030a2: 6013 str r3, [r2, #0]
  6916. /* Check the HSE State */
  6917. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  6918. 80030a4: 687b ldr r3, [r7, #4]
  6919. 80030a6: 685b ldr r3, [r3, #4]
  6920. 80030a8: 2b00 cmp r3, #0
  6921. 80030aa: d013 beq.n 80030d4 <HAL_RCC_OscConfig+0x104>
  6922. {
  6923. /* Get Start Tick */
  6924. tickstart = HAL_GetTick();
  6925. 80030ac: f7fe fbce bl 800184c <HAL_GetTick>
  6926. 80030b0: 6138 str r0, [r7, #16]
  6927. /* Wait till HSE is ready */
  6928. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  6929. 80030b2: e008 b.n 80030c6 <HAL_RCC_OscConfig+0xf6>
  6930. {
  6931. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  6932. 80030b4: f7fe fbca bl 800184c <HAL_GetTick>
  6933. 80030b8: 4602 mov r2, r0
  6934. 80030ba: 693b ldr r3, [r7, #16]
  6935. 80030bc: 1ad3 subs r3, r2, r3
  6936. 80030be: 2b64 cmp r3, #100 ; 0x64
  6937. 80030c0: d901 bls.n 80030c6 <HAL_RCC_OscConfig+0xf6>
  6938. {
  6939. return HAL_TIMEOUT;
  6940. 80030c2: 2303 movs r3, #3
  6941. 80030c4: e1fa b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  6942. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  6943. 80030c6: 4b5d ldr r3, [pc, #372] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6944. 80030c8: 681b ldr r3, [r3, #0]
  6945. 80030ca: f403 3300 and.w r3, r3, #131072 ; 0x20000
  6946. 80030ce: 2b00 cmp r3, #0
  6947. 80030d0: d0f0 beq.n 80030b4 <HAL_RCC_OscConfig+0xe4>
  6948. 80030d2: e014 b.n 80030fe <HAL_RCC_OscConfig+0x12e>
  6949. }
  6950. }
  6951. else
  6952. {
  6953. /* Get Start Tick */
  6954. tickstart = HAL_GetTick();
  6955. 80030d4: f7fe fbba bl 800184c <HAL_GetTick>
  6956. 80030d8: 6138 str r0, [r7, #16]
  6957. /* Wait till HSE is disabled */
  6958. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  6959. 80030da: e008 b.n 80030ee <HAL_RCC_OscConfig+0x11e>
  6960. {
  6961. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  6962. 80030dc: f7fe fbb6 bl 800184c <HAL_GetTick>
  6963. 80030e0: 4602 mov r2, r0
  6964. 80030e2: 693b ldr r3, [r7, #16]
  6965. 80030e4: 1ad3 subs r3, r2, r3
  6966. 80030e6: 2b64 cmp r3, #100 ; 0x64
  6967. 80030e8: d901 bls.n 80030ee <HAL_RCC_OscConfig+0x11e>
  6968. {
  6969. return HAL_TIMEOUT;
  6970. 80030ea: 2303 movs r3, #3
  6971. 80030ec: e1e6 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  6972. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  6973. 80030ee: 4b53 ldr r3, [pc, #332] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6974. 80030f0: 681b ldr r3, [r3, #0]
  6975. 80030f2: f403 3300 and.w r3, r3, #131072 ; 0x20000
  6976. 80030f6: 2b00 cmp r3, #0
  6977. 80030f8: d1f0 bne.n 80030dc <HAL_RCC_OscConfig+0x10c>
  6978. 80030fa: e000 b.n 80030fe <HAL_RCC_OscConfig+0x12e>
  6979. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  6980. 80030fc: bf00 nop
  6981. }
  6982. }
  6983. }
  6984. }
  6985. /*----------------------------- HSI Configuration --------------------------*/
  6986. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  6987. 80030fe: 687b ldr r3, [r7, #4]
  6988. 8003100: 681b ldr r3, [r3, #0]
  6989. 8003102: f003 0302 and.w r3, r3, #2
  6990. 8003106: 2b00 cmp r3, #0
  6991. 8003108: d063 beq.n 80031d2 <HAL_RCC_OscConfig+0x202>
  6992. /* Check the parameters */
  6993. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  6994. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  6995. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  6996. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  6997. 800310a: 4b4c ldr r3, [pc, #304] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  6998. 800310c: 685b ldr r3, [r3, #4]
  6999. 800310e: f003 030c and.w r3, r3, #12
  7000. 8003112: 2b00 cmp r3, #0
  7001. 8003114: d00b beq.n 800312e <HAL_RCC_OscConfig+0x15e>
  7002. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2)))
  7003. 8003116: 4b49 ldr r3, [pc, #292] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7004. 8003118: 685b ldr r3, [r3, #4]
  7005. 800311a: f003 030c and.w r3, r3, #12
  7006. 800311e: 2b08 cmp r3, #8
  7007. 8003120: d11c bne.n 800315c <HAL_RCC_OscConfig+0x18c>
  7008. 8003122: 4b46 ldr r3, [pc, #280] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7009. 8003124: 685b ldr r3, [r3, #4]
  7010. 8003126: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7011. 800312a: 2b00 cmp r3, #0
  7012. 800312c: d116 bne.n 800315c <HAL_RCC_OscConfig+0x18c>
  7013. {
  7014. /* When HSI is used as system clock it will not disabled */
  7015. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  7016. 800312e: 4b43 ldr r3, [pc, #268] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7017. 8003130: 681b ldr r3, [r3, #0]
  7018. 8003132: f003 0302 and.w r3, r3, #2
  7019. 8003136: 2b00 cmp r3, #0
  7020. 8003138: d005 beq.n 8003146 <HAL_RCC_OscConfig+0x176>
  7021. 800313a: 687b ldr r3, [r7, #4]
  7022. 800313c: 691b ldr r3, [r3, #16]
  7023. 800313e: 2b01 cmp r3, #1
  7024. 8003140: d001 beq.n 8003146 <HAL_RCC_OscConfig+0x176>
  7025. {
  7026. return HAL_ERROR;
  7027. 8003142: 2301 movs r3, #1
  7028. 8003144: e1ba b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7029. }
  7030. /* Otherwise, just the calibration is allowed */
  7031. else
  7032. {
  7033. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  7034. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  7035. 8003146: 4b3d ldr r3, [pc, #244] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7036. 8003148: 681b ldr r3, [r3, #0]
  7037. 800314a: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  7038. 800314e: 687b ldr r3, [r7, #4]
  7039. 8003150: 695b ldr r3, [r3, #20]
  7040. 8003152: 00db lsls r3, r3, #3
  7041. 8003154: 4939 ldr r1, [pc, #228] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7042. 8003156: 4313 orrs r3, r2
  7043. 8003158: 600b str r3, [r1, #0]
  7044. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  7045. 800315a: e03a b.n 80031d2 <HAL_RCC_OscConfig+0x202>
  7046. }
  7047. }
  7048. else
  7049. {
  7050. /* Check the HSI State */
  7051. if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  7052. 800315c: 687b ldr r3, [r7, #4]
  7053. 800315e: 691b ldr r3, [r3, #16]
  7054. 8003160: 2b00 cmp r3, #0
  7055. 8003162: d020 beq.n 80031a6 <HAL_RCC_OscConfig+0x1d6>
  7056. {
  7057. /* Enable the Internal High Speed oscillator (HSI). */
  7058. __HAL_RCC_HSI_ENABLE();
  7059. 8003164: 4b36 ldr r3, [pc, #216] ; (8003240 <HAL_RCC_OscConfig+0x270>)
  7060. 8003166: 2201 movs r2, #1
  7061. 8003168: 601a str r2, [r3, #0]
  7062. /* Get Start Tick */
  7063. tickstart = HAL_GetTick();
  7064. 800316a: f7fe fb6f bl 800184c <HAL_GetTick>
  7065. 800316e: 6138 str r0, [r7, #16]
  7066. /* Wait till HSI is ready */
  7067. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  7068. 8003170: e008 b.n 8003184 <HAL_RCC_OscConfig+0x1b4>
  7069. {
  7070. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  7071. 8003172: f7fe fb6b bl 800184c <HAL_GetTick>
  7072. 8003176: 4602 mov r2, r0
  7073. 8003178: 693b ldr r3, [r7, #16]
  7074. 800317a: 1ad3 subs r3, r2, r3
  7075. 800317c: 2b02 cmp r3, #2
  7076. 800317e: d901 bls.n 8003184 <HAL_RCC_OscConfig+0x1b4>
  7077. {
  7078. return HAL_TIMEOUT;
  7079. 8003180: 2303 movs r3, #3
  7080. 8003182: e19b b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7081. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  7082. 8003184: 4b2d ldr r3, [pc, #180] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7083. 8003186: 681b ldr r3, [r3, #0]
  7084. 8003188: f003 0302 and.w r3, r3, #2
  7085. 800318c: 2b00 cmp r3, #0
  7086. 800318e: d0f0 beq.n 8003172 <HAL_RCC_OscConfig+0x1a2>
  7087. }
  7088. }
  7089. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  7090. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  7091. 8003190: 4b2a ldr r3, [pc, #168] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7092. 8003192: 681b ldr r3, [r3, #0]
  7093. 8003194: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  7094. 8003198: 687b ldr r3, [r7, #4]
  7095. 800319a: 695b ldr r3, [r3, #20]
  7096. 800319c: 00db lsls r3, r3, #3
  7097. 800319e: 4927 ldr r1, [pc, #156] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7098. 80031a0: 4313 orrs r3, r2
  7099. 80031a2: 600b str r3, [r1, #0]
  7100. 80031a4: e015 b.n 80031d2 <HAL_RCC_OscConfig+0x202>
  7101. }
  7102. else
  7103. {
  7104. /* Disable the Internal High Speed oscillator (HSI). */
  7105. __HAL_RCC_HSI_DISABLE();
  7106. 80031a6: 4b26 ldr r3, [pc, #152] ; (8003240 <HAL_RCC_OscConfig+0x270>)
  7107. 80031a8: 2200 movs r2, #0
  7108. 80031aa: 601a str r2, [r3, #0]
  7109. /* Get Start Tick */
  7110. tickstart = HAL_GetTick();
  7111. 80031ac: f7fe fb4e bl 800184c <HAL_GetTick>
  7112. 80031b0: 6138 str r0, [r7, #16]
  7113. /* Wait till HSI is disabled */
  7114. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  7115. 80031b2: e008 b.n 80031c6 <HAL_RCC_OscConfig+0x1f6>
  7116. {
  7117. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  7118. 80031b4: f7fe fb4a bl 800184c <HAL_GetTick>
  7119. 80031b8: 4602 mov r2, r0
  7120. 80031ba: 693b ldr r3, [r7, #16]
  7121. 80031bc: 1ad3 subs r3, r2, r3
  7122. 80031be: 2b02 cmp r3, #2
  7123. 80031c0: d901 bls.n 80031c6 <HAL_RCC_OscConfig+0x1f6>
  7124. {
  7125. return HAL_TIMEOUT;
  7126. 80031c2: 2303 movs r3, #3
  7127. 80031c4: e17a b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7128. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  7129. 80031c6: 4b1d ldr r3, [pc, #116] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7130. 80031c8: 681b ldr r3, [r3, #0]
  7131. 80031ca: f003 0302 and.w r3, r3, #2
  7132. 80031ce: 2b00 cmp r3, #0
  7133. 80031d0: d1f0 bne.n 80031b4 <HAL_RCC_OscConfig+0x1e4>
  7134. }
  7135. }
  7136. }
  7137. }
  7138. /*------------------------------ LSI Configuration -------------------------*/
  7139. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  7140. 80031d2: 687b ldr r3, [r7, #4]
  7141. 80031d4: 681b ldr r3, [r3, #0]
  7142. 80031d6: f003 0308 and.w r3, r3, #8
  7143. 80031da: 2b00 cmp r3, #0
  7144. 80031dc: d03a beq.n 8003254 <HAL_RCC_OscConfig+0x284>
  7145. {
  7146. /* Check the parameters */
  7147. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  7148. /* Check the LSI State */
  7149. if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  7150. 80031de: 687b ldr r3, [r7, #4]
  7151. 80031e0: 699b ldr r3, [r3, #24]
  7152. 80031e2: 2b00 cmp r3, #0
  7153. 80031e4: d019 beq.n 800321a <HAL_RCC_OscConfig+0x24a>
  7154. {
  7155. /* Enable the Internal Low Speed oscillator (LSI). */
  7156. __HAL_RCC_LSI_ENABLE();
  7157. 80031e6: 4b17 ldr r3, [pc, #92] ; (8003244 <HAL_RCC_OscConfig+0x274>)
  7158. 80031e8: 2201 movs r2, #1
  7159. 80031ea: 601a str r2, [r3, #0]
  7160. /* Get Start Tick */
  7161. tickstart = HAL_GetTick();
  7162. 80031ec: f7fe fb2e bl 800184c <HAL_GetTick>
  7163. 80031f0: 6138 str r0, [r7, #16]
  7164. /* Wait till LSI is ready */
  7165. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  7166. 80031f2: e008 b.n 8003206 <HAL_RCC_OscConfig+0x236>
  7167. {
  7168. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  7169. 80031f4: f7fe fb2a bl 800184c <HAL_GetTick>
  7170. 80031f8: 4602 mov r2, r0
  7171. 80031fa: 693b ldr r3, [r7, #16]
  7172. 80031fc: 1ad3 subs r3, r2, r3
  7173. 80031fe: 2b02 cmp r3, #2
  7174. 8003200: d901 bls.n 8003206 <HAL_RCC_OscConfig+0x236>
  7175. {
  7176. return HAL_TIMEOUT;
  7177. 8003202: 2303 movs r3, #3
  7178. 8003204: e15a b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7179. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  7180. 8003206: 4b0d ldr r3, [pc, #52] ; (800323c <HAL_RCC_OscConfig+0x26c>)
  7181. 8003208: 6a5b ldr r3, [r3, #36] ; 0x24
  7182. 800320a: f003 0302 and.w r3, r3, #2
  7183. 800320e: 2b00 cmp r3, #0
  7184. 8003210: d0f0 beq.n 80031f4 <HAL_RCC_OscConfig+0x224>
  7185. }
  7186. }
  7187. /* To have a fully stabilized clock in the specified range, a software delay of 1ms
  7188. should be added.*/
  7189. RCC_Delay(1);
  7190. 8003212: 2001 movs r0, #1
  7191. 8003214: f000 fad6 bl 80037c4 <RCC_Delay>
  7192. 8003218: e01c b.n 8003254 <HAL_RCC_OscConfig+0x284>
  7193. }
  7194. else
  7195. {
  7196. /* Disable the Internal Low Speed oscillator (LSI). */
  7197. __HAL_RCC_LSI_DISABLE();
  7198. 800321a: 4b0a ldr r3, [pc, #40] ; (8003244 <HAL_RCC_OscConfig+0x274>)
  7199. 800321c: 2200 movs r2, #0
  7200. 800321e: 601a str r2, [r3, #0]
  7201. /* Get Start Tick */
  7202. tickstart = HAL_GetTick();
  7203. 8003220: f7fe fb14 bl 800184c <HAL_GetTick>
  7204. 8003224: 6138 str r0, [r7, #16]
  7205. /* Wait till LSI is disabled */
  7206. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  7207. 8003226: e00f b.n 8003248 <HAL_RCC_OscConfig+0x278>
  7208. {
  7209. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  7210. 8003228: f7fe fb10 bl 800184c <HAL_GetTick>
  7211. 800322c: 4602 mov r2, r0
  7212. 800322e: 693b ldr r3, [r7, #16]
  7213. 8003230: 1ad3 subs r3, r2, r3
  7214. 8003232: 2b02 cmp r3, #2
  7215. 8003234: d908 bls.n 8003248 <HAL_RCC_OscConfig+0x278>
  7216. {
  7217. return HAL_TIMEOUT;
  7218. 8003236: 2303 movs r3, #3
  7219. 8003238: e140 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7220. 800323a: bf00 nop
  7221. 800323c: 40021000 .word 0x40021000
  7222. 8003240: 42420000 .word 0x42420000
  7223. 8003244: 42420480 .word 0x42420480
  7224. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  7225. 8003248: 4b9e ldr r3, [pc, #632] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7226. 800324a: 6a5b ldr r3, [r3, #36] ; 0x24
  7227. 800324c: f003 0302 and.w r3, r3, #2
  7228. 8003250: 2b00 cmp r3, #0
  7229. 8003252: d1e9 bne.n 8003228 <HAL_RCC_OscConfig+0x258>
  7230. }
  7231. }
  7232. }
  7233. }
  7234. /*------------------------------ LSE Configuration -------------------------*/
  7235. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  7236. 8003254: 687b ldr r3, [r7, #4]
  7237. 8003256: 681b ldr r3, [r3, #0]
  7238. 8003258: f003 0304 and.w r3, r3, #4
  7239. 800325c: 2b00 cmp r3, #0
  7240. 800325e: f000 80a6 beq.w 80033ae <HAL_RCC_OscConfig+0x3de>
  7241. {
  7242. FlagStatus pwrclkchanged = RESET;
  7243. 8003262: 2300 movs r3, #0
  7244. 8003264: 75fb strb r3, [r7, #23]
  7245. /* Check the parameters */
  7246. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  7247. /* Update LSE configuration in Backup Domain control register */
  7248. /* Requires to enable write access to Backup Domain of necessary */
  7249. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  7250. 8003266: 4b97 ldr r3, [pc, #604] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7251. 8003268: 69db ldr r3, [r3, #28]
  7252. 800326a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  7253. 800326e: 2b00 cmp r3, #0
  7254. 8003270: d10d bne.n 800328e <HAL_RCC_OscConfig+0x2be>
  7255. {
  7256. __HAL_RCC_PWR_CLK_ENABLE();
  7257. 8003272: 4b94 ldr r3, [pc, #592] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7258. 8003274: 69db ldr r3, [r3, #28]
  7259. 8003276: 4a93 ldr r2, [pc, #588] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7260. 8003278: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  7261. 800327c: 61d3 str r3, [r2, #28]
  7262. 800327e: 4b91 ldr r3, [pc, #580] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7263. 8003280: 69db ldr r3, [r3, #28]
  7264. 8003282: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  7265. 8003286: 60bb str r3, [r7, #8]
  7266. 8003288: 68bb ldr r3, [r7, #8]
  7267. pwrclkchanged = SET;
  7268. 800328a: 2301 movs r3, #1
  7269. 800328c: 75fb strb r3, [r7, #23]
  7270. }
  7271. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  7272. 800328e: 4b8e ldr r3, [pc, #568] ; (80034c8 <HAL_RCC_OscConfig+0x4f8>)
  7273. 8003290: 681b ldr r3, [r3, #0]
  7274. 8003292: f403 7380 and.w r3, r3, #256 ; 0x100
  7275. 8003296: 2b00 cmp r3, #0
  7276. 8003298: d118 bne.n 80032cc <HAL_RCC_OscConfig+0x2fc>
  7277. {
  7278. /* Enable write access to Backup domain */
  7279. SET_BIT(PWR->CR, PWR_CR_DBP);
  7280. 800329a: 4b8b ldr r3, [pc, #556] ; (80034c8 <HAL_RCC_OscConfig+0x4f8>)
  7281. 800329c: 681b ldr r3, [r3, #0]
  7282. 800329e: 4a8a ldr r2, [pc, #552] ; (80034c8 <HAL_RCC_OscConfig+0x4f8>)
  7283. 80032a0: f443 7380 orr.w r3, r3, #256 ; 0x100
  7284. 80032a4: 6013 str r3, [r2, #0]
  7285. /* Wait for Backup domain Write protection disable */
  7286. tickstart = HAL_GetTick();
  7287. 80032a6: f7fe fad1 bl 800184c <HAL_GetTick>
  7288. 80032aa: 6138 str r0, [r7, #16]
  7289. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  7290. 80032ac: e008 b.n 80032c0 <HAL_RCC_OscConfig+0x2f0>
  7291. {
  7292. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  7293. 80032ae: f7fe facd bl 800184c <HAL_GetTick>
  7294. 80032b2: 4602 mov r2, r0
  7295. 80032b4: 693b ldr r3, [r7, #16]
  7296. 80032b6: 1ad3 subs r3, r2, r3
  7297. 80032b8: 2b64 cmp r3, #100 ; 0x64
  7298. 80032ba: d901 bls.n 80032c0 <HAL_RCC_OscConfig+0x2f0>
  7299. {
  7300. return HAL_TIMEOUT;
  7301. 80032bc: 2303 movs r3, #3
  7302. 80032be: e0fd b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7303. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  7304. 80032c0: 4b81 ldr r3, [pc, #516] ; (80034c8 <HAL_RCC_OscConfig+0x4f8>)
  7305. 80032c2: 681b ldr r3, [r3, #0]
  7306. 80032c4: f403 7380 and.w r3, r3, #256 ; 0x100
  7307. 80032c8: 2b00 cmp r3, #0
  7308. 80032ca: d0f0 beq.n 80032ae <HAL_RCC_OscConfig+0x2de>
  7309. }
  7310. }
  7311. }
  7312. /* Set the new LSE configuration -----------------------------------------*/
  7313. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  7314. 80032cc: 687b ldr r3, [r7, #4]
  7315. 80032ce: 68db ldr r3, [r3, #12]
  7316. 80032d0: 2b01 cmp r3, #1
  7317. 80032d2: d106 bne.n 80032e2 <HAL_RCC_OscConfig+0x312>
  7318. 80032d4: 4b7b ldr r3, [pc, #492] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7319. 80032d6: 6a1b ldr r3, [r3, #32]
  7320. 80032d8: 4a7a ldr r2, [pc, #488] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7321. 80032da: f043 0301 orr.w r3, r3, #1
  7322. 80032de: 6213 str r3, [r2, #32]
  7323. 80032e0: e02d b.n 800333e <HAL_RCC_OscConfig+0x36e>
  7324. 80032e2: 687b ldr r3, [r7, #4]
  7325. 80032e4: 68db ldr r3, [r3, #12]
  7326. 80032e6: 2b00 cmp r3, #0
  7327. 80032e8: d10c bne.n 8003304 <HAL_RCC_OscConfig+0x334>
  7328. 80032ea: 4b76 ldr r3, [pc, #472] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7329. 80032ec: 6a1b ldr r3, [r3, #32]
  7330. 80032ee: 4a75 ldr r2, [pc, #468] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7331. 80032f0: f023 0301 bic.w r3, r3, #1
  7332. 80032f4: 6213 str r3, [r2, #32]
  7333. 80032f6: 4b73 ldr r3, [pc, #460] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7334. 80032f8: 6a1b ldr r3, [r3, #32]
  7335. 80032fa: 4a72 ldr r2, [pc, #456] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7336. 80032fc: f023 0304 bic.w r3, r3, #4
  7337. 8003300: 6213 str r3, [r2, #32]
  7338. 8003302: e01c b.n 800333e <HAL_RCC_OscConfig+0x36e>
  7339. 8003304: 687b ldr r3, [r7, #4]
  7340. 8003306: 68db ldr r3, [r3, #12]
  7341. 8003308: 2b05 cmp r3, #5
  7342. 800330a: d10c bne.n 8003326 <HAL_RCC_OscConfig+0x356>
  7343. 800330c: 4b6d ldr r3, [pc, #436] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7344. 800330e: 6a1b ldr r3, [r3, #32]
  7345. 8003310: 4a6c ldr r2, [pc, #432] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7346. 8003312: f043 0304 orr.w r3, r3, #4
  7347. 8003316: 6213 str r3, [r2, #32]
  7348. 8003318: 4b6a ldr r3, [pc, #424] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7349. 800331a: 6a1b ldr r3, [r3, #32]
  7350. 800331c: 4a69 ldr r2, [pc, #420] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7351. 800331e: f043 0301 orr.w r3, r3, #1
  7352. 8003322: 6213 str r3, [r2, #32]
  7353. 8003324: e00b b.n 800333e <HAL_RCC_OscConfig+0x36e>
  7354. 8003326: 4b67 ldr r3, [pc, #412] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7355. 8003328: 6a1b ldr r3, [r3, #32]
  7356. 800332a: 4a66 ldr r2, [pc, #408] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7357. 800332c: f023 0301 bic.w r3, r3, #1
  7358. 8003330: 6213 str r3, [r2, #32]
  7359. 8003332: 4b64 ldr r3, [pc, #400] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7360. 8003334: 6a1b ldr r3, [r3, #32]
  7361. 8003336: 4a63 ldr r2, [pc, #396] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7362. 8003338: f023 0304 bic.w r3, r3, #4
  7363. 800333c: 6213 str r3, [r2, #32]
  7364. /* Check the LSE State */
  7365. if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  7366. 800333e: 687b ldr r3, [r7, #4]
  7367. 8003340: 68db ldr r3, [r3, #12]
  7368. 8003342: 2b00 cmp r3, #0
  7369. 8003344: d015 beq.n 8003372 <HAL_RCC_OscConfig+0x3a2>
  7370. {
  7371. /* Get Start Tick */
  7372. tickstart = HAL_GetTick();
  7373. 8003346: f7fe fa81 bl 800184c <HAL_GetTick>
  7374. 800334a: 6138 str r0, [r7, #16]
  7375. /* Wait till LSE is ready */
  7376. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  7377. 800334c: e00a b.n 8003364 <HAL_RCC_OscConfig+0x394>
  7378. {
  7379. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  7380. 800334e: f7fe fa7d bl 800184c <HAL_GetTick>
  7381. 8003352: 4602 mov r2, r0
  7382. 8003354: 693b ldr r3, [r7, #16]
  7383. 8003356: 1ad3 subs r3, r2, r3
  7384. 8003358: f241 3288 movw r2, #5000 ; 0x1388
  7385. 800335c: 4293 cmp r3, r2
  7386. 800335e: d901 bls.n 8003364 <HAL_RCC_OscConfig+0x394>
  7387. {
  7388. return HAL_TIMEOUT;
  7389. 8003360: 2303 movs r3, #3
  7390. 8003362: e0ab b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7391. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  7392. 8003364: 4b57 ldr r3, [pc, #348] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7393. 8003366: 6a1b ldr r3, [r3, #32]
  7394. 8003368: f003 0302 and.w r3, r3, #2
  7395. 800336c: 2b00 cmp r3, #0
  7396. 800336e: d0ee beq.n 800334e <HAL_RCC_OscConfig+0x37e>
  7397. 8003370: e014 b.n 800339c <HAL_RCC_OscConfig+0x3cc>
  7398. }
  7399. }
  7400. else
  7401. {
  7402. /* Get Start Tick */
  7403. tickstart = HAL_GetTick();
  7404. 8003372: f7fe fa6b bl 800184c <HAL_GetTick>
  7405. 8003376: 6138 str r0, [r7, #16]
  7406. /* Wait till LSE is disabled */
  7407. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  7408. 8003378: e00a b.n 8003390 <HAL_RCC_OscConfig+0x3c0>
  7409. {
  7410. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  7411. 800337a: f7fe fa67 bl 800184c <HAL_GetTick>
  7412. 800337e: 4602 mov r2, r0
  7413. 8003380: 693b ldr r3, [r7, #16]
  7414. 8003382: 1ad3 subs r3, r2, r3
  7415. 8003384: f241 3288 movw r2, #5000 ; 0x1388
  7416. 8003388: 4293 cmp r3, r2
  7417. 800338a: d901 bls.n 8003390 <HAL_RCC_OscConfig+0x3c0>
  7418. {
  7419. return HAL_TIMEOUT;
  7420. 800338c: 2303 movs r3, #3
  7421. 800338e: e095 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7422. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  7423. 8003390: 4b4c ldr r3, [pc, #304] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7424. 8003392: 6a1b ldr r3, [r3, #32]
  7425. 8003394: f003 0302 and.w r3, r3, #2
  7426. 8003398: 2b00 cmp r3, #0
  7427. 800339a: d1ee bne.n 800337a <HAL_RCC_OscConfig+0x3aa>
  7428. }
  7429. }
  7430. }
  7431. /* Require to disable power clock if necessary */
  7432. if (pwrclkchanged == SET)
  7433. 800339c: 7dfb ldrb r3, [r7, #23]
  7434. 800339e: 2b01 cmp r3, #1
  7435. 80033a0: d105 bne.n 80033ae <HAL_RCC_OscConfig+0x3de>
  7436. {
  7437. __HAL_RCC_PWR_CLK_DISABLE();
  7438. 80033a2: 4b48 ldr r3, [pc, #288] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7439. 80033a4: 69db ldr r3, [r3, #28]
  7440. 80033a6: 4a47 ldr r2, [pc, #284] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7441. 80033a8: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  7442. 80033ac: 61d3 str r3, [r2, #28]
  7443. #endif /* RCC_CR_PLL2ON */
  7444. /*-------------------------------- PLL Configuration -----------------------*/
  7445. /* Check the parameters */
  7446. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  7447. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  7448. 80033ae: 687b ldr r3, [r7, #4]
  7449. 80033b0: 69db ldr r3, [r3, #28]
  7450. 80033b2: 2b00 cmp r3, #0
  7451. 80033b4: f000 8081 beq.w 80034ba <HAL_RCC_OscConfig+0x4ea>
  7452. {
  7453. /* Check if the PLL is used as system clock or not */
  7454. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  7455. 80033b8: 4b42 ldr r3, [pc, #264] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7456. 80033ba: 685b ldr r3, [r3, #4]
  7457. 80033bc: f003 030c and.w r3, r3, #12
  7458. 80033c0: 2b08 cmp r3, #8
  7459. 80033c2: d061 beq.n 8003488 <HAL_RCC_OscConfig+0x4b8>
  7460. {
  7461. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  7462. 80033c4: 687b ldr r3, [r7, #4]
  7463. 80033c6: 69db ldr r3, [r3, #28]
  7464. 80033c8: 2b02 cmp r3, #2
  7465. 80033ca: d146 bne.n 800345a <HAL_RCC_OscConfig+0x48a>
  7466. /* Check the parameters */
  7467. assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
  7468. assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
  7469. /* Disable the main PLL. */
  7470. __HAL_RCC_PLL_DISABLE();
  7471. 80033cc: 4b3f ldr r3, [pc, #252] ; (80034cc <HAL_RCC_OscConfig+0x4fc>)
  7472. 80033ce: 2200 movs r2, #0
  7473. 80033d0: 601a str r2, [r3, #0]
  7474. /* Get Start Tick */
  7475. tickstart = HAL_GetTick();
  7476. 80033d2: f7fe fa3b bl 800184c <HAL_GetTick>
  7477. 80033d6: 6138 str r0, [r7, #16]
  7478. /* Wait till PLL is disabled */
  7479. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  7480. 80033d8: e008 b.n 80033ec <HAL_RCC_OscConfig+0x41c>
  7481. {
  7482. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  7483. 80033da: f7fe fa37 bl 800184c <HAL_GetTick>
  7484. 80033de: 4602 mov r2, r0
  7485. 80033e0: 693b ldr r3, [r7, #16]
  7486. 80033e2: 1ad3 subs r3, r2, r3
  7487. 80033e4: 2b02 cmp r3, #2
  7488. 80033e6: d901 bls.n 80033ec <HAL_RCC_OscConfig+0x41c>
  7489. {
  7490. return HAL_TIMEOUT;
  7491. 80033e8: 2303 movs r3, #3
  7492. 80033ea: e067 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7493. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  7494. 80033ec: 4b35 ldr r3, [pc, #212] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7495. 80033ee: 681b ldr r3, [r3, #0]
  7496. 80033f0: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  7497. 80033f4: 2b00 cmp r3, #0
  7498. 80033f6: d1f0 bne.n 80033da <HAL_RCC_OscConfig+0x40a>
  7499. }
  7500. }
  7501. /* Configure the HSE prediv factor --------------------------------*/
  7502. /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */
  7503. if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE)
  7504. 80033f8: 687b ldr r3, [r7, #4]
  7505. 80033fa: 6a1b ldr r3, [r3, #32]
  7506. 80033fc: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  7507. 8003400: d108 bne.n 8003414 <HAL_RCC_OscConfig+0x444>
  7508. /* Set PREDIV1 source */
  7509. SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source);
  7510. #endif /* RCC_CFGR2_PREDIV1SRC */
  7511. /* Set PREDIV1 Value */
  7512. __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue);
  7513. 8003402: 4b30 ldr r3, [pc, #192] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7514. 8003404: 6adb ldr r3, [r3, #44] ; 0x2c
  7515. 8003406: f023 020f bic.w r2, r3, #15
  7516. 800340a: 687b ldr r3, [r7, #4]
  7517. 800340c: 689b ldr r3, [r3, #8]
  7518. 800340e: 492d ldr r1, [pc, #180] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7519. 8003410: 4313 orrs r3, r2
  7520. 8003412: 62cb str r3, [r1, #44] ; 0x2c
  7521. }
  7522. /* Configure the main PLL clock source and multiplication factors. */
  7523. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  7524. 8003414: 4b2b ldr r3, [pc, #172] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7525. 8003416: 685b ldr r3, [r3, #4]
  7526. 8003418: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000
  7527. 800341c: 687b ldr r3, [r7, #4]
  7528. 800341e: 6a19 ldr r1, [r3, #32]
  7529. 8003420: 687b ldr r3, [r7, #4]
  7530. 8003422: 6a5b ldr r3, [r3, #36] ; 0x24
  7531. 8003424: 430b orrs r3, r1
  7532. 8003426: 4927 ldr r1, [pc, #156] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7533. 8003428: 4313 orrs r3, r2
  7534. 800342a: 604b str r3, [r1, #4]
  7535. RCC_OscInitStruct->PLL.PLLMUL);
  7536. /* Enable the main PLL. */
  7537. __HAL_RCC_PLL_ENABLE();
  7538. 800342c: 4b27 ldr r3, [pc, #156] ; (80034cc <HAL_RCC_OscConfig+0x4fc>)
  7539. 800342e: 2201 movs r2, #1
  7540. 8003430: 601a str r2, [r3, #0]
  7541. /* Get Start Tick */
  7542. tickstart = HAL_GetTick();
  7543. 8003432: f7fe fa0b bl 800184c <HAL_GetTick>
  7544. 8003436: 6138 str r0, [r7, #16]
  7545. /* Wait till PLL is ready */
  7546. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  7547. 8003438: e008 b.n 800344c <HAL_RCC_OscConfig+0x47c>
  7548. {
  7549. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  7550. 800343a: f7fe fa07 bl 800184c <HAL_GetTick>
  7551. 800343e: 4602 mov r2, r0
  7552. 8003440: 693b ldr r3, [r7, #16]
  7553. 8003442: 1ad3 subs r3, r2, r3
  7554. 8003444: 2b02 cmp r3, #2
  7555. 8003446: d901 bls.n 800344c <HAL_RCC_OscConfig+0x47c>
  7556. {
  7557. return HAL_TIMEOUT;
  7558. 8003448: 2303 movs r3, #3
  7559. 800344a: e037 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7560. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  7561. 800344c: 4b1d ldr r3, [pc, #116] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7562. 800344e: 681b ldr r3, [r3, #0]
  7563. 8003450: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  7564. 8003454: 2b00 cmp r3, #0
  7565. 8003456: d0f0 beq.n 800343a <HAL_RCC_OscConfig+0x46a>
  7566. 8003458: e02f b.n 80034ba <HAL_RCC_OscConfig+0x4ea>
  7567. }
  7568. }
  7569. else
  7570. {
  7571. /* Disable the main PLL. */
  7572. __HAL_RCC_PLL_DISABLE();
  7573. 800345a: 4b1c ldr r3, [pc, #112] ; (80034cc <HAL_RCC_OscConfig+0x4fc>)
  7574. 800345c: 2200 movs r2, #0
  7575. 800345e: 601a str r2, [r3, #0]
  7576. /* Get Start Tick */
  7577. tickstart = HAL_GetTick();
  7578. 8003460: f7fe f9f4 bl 800184c <HAL_GetTick>
  7579. 8003464: 6138 str r0, [r7, #16]
  7580. /* Wait till PLL is disabled */
  7581. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  7582. 8003466: e008 b.n 800347a <HAL_RCC_OscConfig+0x4aa>
  7583. {
  7584. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  7585. 8003468: f7fe f9f0 bl 800184c <HAL_GetTick>
  7586. 800346c: 4602 mov r2, r0
  7587. 800346e: 693b ldr r3, [r7, #16]
  7588. 8003470: 1ad3 subs r3, r2, r3
  7589. 8003472: 2b02 cmp r3, #2
  7590. 8003474: d901 bls.n 800347a <HAL_RCC_OscConfig+0x4aa>
  7591. {
  7592. return HAL_TIMEOUT;
  7593. 8003476: 2303 movs r3, #3
  7594. 8003478: e020 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7595. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  7596. 800347a: 4b12 ldr r3, [pc, #72] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7597. 800347c: 681b ldr r3, [r3, #0]
  7598. 800347e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  7599. 8003482: 2b00 cmp r3, #0
  7600. 8003484: d1f0 bne.n 8003468 <HAL_RCC_OscConfig+0x498>
  7601. 8003486: e018 b.n 80034ba <HAL_RCC_OscConfig+0x4ea>
  7602. }
  7603. }
  7604. else
  7605. {
  7606. /* Check if there is a request to disable the PLL used as System clock source */
  7607. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  7608. 8003488: 687b ldr r3, [r7, #4]
  7609. 800348a: 69db ldr r3, [r3, #28]
  7610. 800348c: 2b01 cmp r3, #1
  7611. 800348e: d101 bne.n 8003494 <HAL_RCC_OscConfig+0x4c4>
  7612. {
  7613. return HAL_ERROR;
  7614. 8003490: 2301 movs r3, #1
  7615. 8003492: e013 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7616. }
  7617. else
  7618. {
  7619. /* Do not return HAL_ERROR if request repeats the current configuration */
  7620. pll_config = RCC->CFGR;
  7621. 8003494: 4b0b ldr r3, [pc, #44] ; (80034c4 <HAL_RCC_OscConfig+0x4f4>)
  7622. 8003496: 685b ldr r3, [r3, #4]
  7623. 8003498: 60fb str r3, [r7, #12]
  7624. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  7625. 800349a: 68fb ldr r3, [r7, #12]
  7626. 800349c: f403 3280 and.w r2, r3, #65536 ; 0x10000
  7627. 80034a0: 687b ldr r3, [r7, #4]
  7628. 80034a2: 6a1b ldr r3, [r3, #32]
  7629. 80034a4: 429a cmp r2, r3
  7630. 80034a6: d106 bne.n 80034b6 <HAL_RCC_OscConfig+0x4e6>
  7631. (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL))
  7632. 80034a8: 68fb ldr r3, [r7, #12]
  7633. 80034aa: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  7634. 80034ae: 687b ldr r3, [r7, #4]
  7635. 80034b0: 6a5b ldr r3, [r3, #36] ; 0x24
  7636. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  7637. 80034b2: 429a cmp r2, r3
  7638. 80034b4: d001 beq.n 80034ba <HAL_RCC_OscConfig+0x4ea>
  7639. {
  7640. return HAL_ERROR;
  7641. 80034b6: 2301 movs r3, #1
  7642. 80034b8: e000 b.n 80034bc <HAL_RCC_OscConfig+0x4ec>
  7643. }
  7644. }
  7645. }
  7646. }
  7647. return HAL_OK;
  7648. 80034ba: 2300 movs r3, #0
  7649. }
  7650. 80034bc: 4618 mov r0, r3
  7651. 80034be: 3718 adds r7, #24
  7652. 80034c0: 46bd mov sp, r7
  7653. 80034c2: bd80 pop {r7, pc}
  7654. 80034c4: 40021000 .word 0x40021000
  7655. 80034c8: 40007000 .word 0x40007000
  7656. 80034cc: 42420060 .word 0x42420060
  7657. 080034d0 <HAL_RCC_ClockConfig>:
  7658. * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is
  7659. * currently used as system clock source.
  7660. * @retval HAL status
  7661. */
  7662. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  7663. {
  7664. 80034d0: b580 push {r7, lr}
  7665. 80034d2: b084 sub sp, #16
  7666. 80034d4: af00 add r7, sp, #0
  7667. 80034d6: 6078 str r0, [r7, #4]
  7668. 80034d8: 6039 str r1, [r7, #0]
  7669. uint32_t tickstart;
  7670. /* Check Null pointer */
  7671. if (RCC_ClkInitStruct == NULL)
  7672. 80034da: 687b ldr r3, [r7, #4]
  7673. 80034dc: 2b00 cmp r3, #0
  7674. 80034de: d101 bne.n 80034e4 <HAL_RCC_ClockConfig+0x14>
  7675. {
  7676. return HAL_ERROR;
  7677. 80034e0: 2301 movs r3, #1
  7678. 80034e2: e0a0 b.n 8003626 <HAL_RCC_ClockConfig+0x156>
  7679. }
  7680. }
  7681. #endif /* FLASH_ACR_LATENCY */
  7682. /*-------------------------- HCLK Configuration --------------------------*/
  7683. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  7684. 80034e4: 687b ldr r3, [r7, #4]
  7685. 80034e6: 681b ldr r3, [r3, #0]
  7686. 80034e8: f003 0302 and.w r3, r3, #2
  7687. 80034ec: 2b00 cmp r3, #0
  7688. 80034ee: d020 beq.n 8003532 <HAL_RCC_ClockConfig+0x62>
  7689. {
  7690. /* Set the highest APBx dividers in order to ensure that we do not go through
  7691. a non-spec phase whatever we decrease or increase HCLK. */
  7692. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  7693. 80034f0: 687b ldr r3, [r7, #4]
  7694. 80034f2: 681b ldr r3, [r3, #0]
  7695. 80034f4: f003 0304 and.w r3, r3, #4
  7696. 80034f8: 2b00 cmp r3, #0
  7697. 80034fa: d005 beq.n 8003508 <HAL_RCC_ClockConfig+0x38>
  7698. {
  7699. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
  7700. 80034fc: 4b4c ldr r3, [pc, #304] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7701. 80034fe: 685b ldr r3, [r3, #4]
  7702. 8003500: 4a4b ldr r2, [pc, #300] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7703. 8003502: f443 63e0 orr.w r3, r3, #1792 ; 0x700
  7704. 8003506: 6053 str r3, [r2, #4]
  7705. }
  7706. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  7707. 8003508: 687b ldr r3, [r7, #4]
  7708. 800350a: 681b ldr r3, [r3, #0]
  7709. 800350c: f003 0308 and.w r3, r3, #8
  7710. 8003510: 2b00 cmp r3, #0
  7711. 8003512: d005 beq.n 8003520 <HAL_RCC_ClockConfig+0x50>
  7712. {
  7713. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
  7714. 8003514: 4b46 ldr r3, [pc, #280] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7715. 8003516: 685b ldr r3, [r3, #4]
  7716. 8003518: 4a45 ldr r2, [pc, #276] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7717. 800351a: f443 5360 orr.w r3, r3, #14336 ; 0x3800
  7718. 800351e: 6053 str r3, [r2, #4]
  7719. }
  7720. /* Set the new HCLK clock divider */
  7721. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  7722. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  7723. 8003520: 4b43 ldr r3, [pc, #268] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7724. 8003522: 685b ldr r3, [r3, #4]
  7725. 8003524: f023 02f0 bic.w r2, r3, #240 ; 0xf0
  7726. 8003528: 687b ldr r3, [r7, #4]
  7727. 800352a: 689b ldr r3, [r3, #8]
  7728. 800352c: 4940 ldr r1, [pc, #256] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7729. 800352e: 4313 orrs r3, r2
  7730. 8003530: 604b str r3, [r1, #4]
  7731. }
  7732. /*------------------------- SYSCLK Configuration ---------------------------*/
  7733. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  7734. 8003532: 687b ldr r3, [r7, #4]
  7735. 8003534: 681b ldr r3, [r3, #0]
  7736. 8003536: f003 0301 and.w r3, r3, #1
  7737. 800353a: 2b00 cmp r3, #0
  7738. 800353c: d040 beq.n 80035c0 <HAL_RCC_ClockConfig+0xf0>
  7739. {
  7740. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  7741. /* HSE is selected as System Clock Source */
  7742. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  7743. 800353e: 687b ldr r3, [r7, #4]
  7744. 8003540: 685b ldr r3, [r3, #4]
  7745. 8003542: 2b01 cmp r3, #1
  7746. 8003544: d107 bne.n 8003556 <HAL_RCC_ClockConfig+0x86>
  7747. {
  7748. /* Check the HSE ready flag */
  7749. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  7750. 8003546: 4b3a ldr r3, [pc, #232] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7751. 8003548: 681b ldr r3, [r3, #0]
  7752. 800354a: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7753. 800354e: 2b00 cmp r3, #0
  7754. 8003550: d115 bne.n 800357e <HAL_RCC_ClockConfig+0xae>
  7755. {
  7756. return HAL_ERROR;
  7757. 8003552: 2301 movs r3, #1
  7758. 8003554: e067 b.n 8003626 <HAL_RCC_ClockConfig+0x156>
  7759. }
  7760. }
  7761. /* PLL is selected as System Clock Source */
  7762. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  7763. 8003556: 687b ldr r3, [r7, #4]
  7764. 8003558: 685b ldr r3, [r3, #4]
  7765. 800355a: 2b02 cmp r3, #2
  7766. 800355c: d107 bne.n 800356e <HAL_RCC_ClockConfig+0x9e>
  7767. {
  7768. /* Check the PLL ready flag */
  7769. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  7770. 800355e: 4b34 ldr r3, [pc, #208] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7771. 8003560: 681b ldr r3, [r3, #0]
  7772. 8003562: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  7773. 8003566: 2b00 cmp r3, #0
  7774. 8003568: d109 bne.n 800357e <HAL_RCC_ClockConfig+0xae>
  7775. {
  7776. return HAL_ERROR;
  7777. 800356a: 2301 movs r3, #1
  7778. 800356c: e05b b.n 8003626 <HAL_RCC_ClockConfig+0x156>
  7779. }
  7780. /* HSI is selected as System Clock Source */
  7781. else
  7782. {
  7783. /* Check the HSI ready flag */
  7784. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  7785. 800356e: 4b30 ldr r3, [pc, #192] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7786. 8003570: 681b ldr r3, [r3, #0]
  7787. 8003572: f003 0302 and.w r3, r3, #2
  7788. 8003576: 2b00 cmp r3, #0
  7789. 8003578: d101 bne.n 800357e <HAL_RCC_ClockConfig+0xae>
  7790. {
  7791. return HAL_ERROR;
  7792. 800357a: 2301 movs r3, #1
  7793. 800357c: e053 b.n 8003626 <HAL_RCC_ClockConfig+0x156>
  7794. }
  7795. }
  7796. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  7797. 800357e: 4b2c ldr r3, [pc, #176] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7798. 8003580: 685b ldr r3, [r3, #4]
  7799. 8003582: f023 0203 bic.w r2, r3, #3
  7800. 8003586: 687b ldr r3, [r7, #4]
  7801. 8003588: 685b ldr r3, [r3, #4]
  7802. 800358a: 4929 ldr r1, [pc, #164] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7803. 800358c: 4313 orrs r3, r2
  7804. 800358e: 604b str r3, [r1, #4]
  7805. /* Get Start Tick */
  7806. tickstart = HAL_GetTick();
  7807. 8003590: f7fe f95c bl 800184c <HAL_GetTick>
  7808. 8003594: 60f8 str r0, [r7, #12]
  7809. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  7810. 8003596: e00a b.n 80035ae <HAL_RCC_ClockConfig+0xde>
  7811. {
  7812. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  7813. 8003598: f7fe f958 bl 800184c <HAL_GetTick>
  7814. 800359c: 4602 mov r2, r0
  7815. 800359e: 68fb ldr r3, [r7, #12]
  7816. 80035a0: 1ad3 subs r3, r2, r3
  7817. 80035a2: f241 3288 movw r2, #5000 ; 0x1388
  7818. 80035a6: 4293 cmp r3, r2
  7819. 80035a8: d901 bls.n 80035ae <HAL_RCC_ClockConfig+0xde>
  7820. {
  7821. return HAL_TIMEOUT;
  7822. 80035aa: 2303 movs r3, #3
  7823. 80035ac: e03b b.n 8003626 <HAL_RCC_ClockConfig+0x156>
  7824. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  7825. 80035ae: 4b20 ldr r3, [pc, #128] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7826. 80035b0: 685b ldr r3, [r3, #4]
  7827. 80035b2: f003 020c and.w r2, r3, #12
  7828. 80035b6: 687b ldr r3, [r7, #4]
  7829. 80035b8: 685b ldr r3, [r3, #4]
  7830. 80035ba: 009b lsls r3, r3, #2
  7831. 80035bc: 429a cmp r2, r3
  7832. 80035be: d1eb bne.n 8003598 <HAL_RCC_ClockConfig+0xc8>
  7833. }
  7834. }
  7835. #endif /* FLASH_ACR_LATENCY */
  7836. /*-------------------------- PCLK1 Configuration ---------------------------*/
  7837. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  7838. 80035c0: 687b ldr r3, [r7, #4]
  7839. 80035c2: 681b ldr r3, [r3, #0]
  7840. 80035c4: f003 0304 and.w r3, r3, #4
  7841. 80035c8: 2b00 cmp r3, #0
  7842. 80035ca: d008 beq.n 80035de <HAL_RCC_ClockConfig+0x10e>
  7843. {
  7844. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  7845. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  7846. 80035cc: 4b18 ldr r3, [pc, #96] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7847. 80035ce: 685b ldr r3, [r3, #4]
  7848. 80035d0: f423 62e0 bic.w r2, r3, #1792 ; 0x700
  7849. 80035d4: 687b ldr r3, [r7, #4]
  7850. 80035d6: 68db ldr r3, [r3, #12]
  7851. 80035d8: 4915 ldr r1, [pc, #84] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7852. 80035da: 4313 orrs r3, r2
  7853. 80035dc: 604b str r3, [r1, #4]
  7854. }
  7855. /*-------------------------- PCLK2 Configuration ---------------------------*/
  7856. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  7857. 80035de: 687b ldr r3, [r7, #4]
  7858. 80035e0: 681b ldr r3, [r3, #0]
  7859. 80035e2: f003 0308 and.w r3, r3, #8
  7860. 80035e6: 2b00 cmp r3, #0
  7861. 80035e8: d009 beq.n 80035fe <HAL_RCC_ClockConfig+0x12e>
  7862. {
  7863. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
  7864. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
  7865. 80035ea: 4b11 ldr r3, [pc, #68] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7866. 80035ec: 685b ldr r3, [r3, #4]
  7867. 80035ee: f423 5260 bic.w r2, r3, #14336 ; 0x3800
  7868. 80035f2: 687b ldr r3, [r7, #4]
  7869. 80035f4: 691b ldr r3, [r3, #16]
  7870. 80035f6: 00db lsls r3, r3, #3
  7871. 80035f8: 490d ldr r1, [pc, #52] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7872. 80035fa: 4313 orrs r3, r2
  7873. 80035fc: 604b str r3, [r1, #4]
  7874. }
  7875. /* Update the SystemCoreClock global variable */
  7876. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos];
  7877. 80035fe: f000 f81f bl 8003640 <HAL_RCC_GetSysClockFreq>
  7878. 8003602: 4601 mov r1, r0
  7879. 8003604: 4b0a ldr r3, [pc, #40] ; (8003630 <HAL_RCC_ClockConfig+0x160>)
  7880. 8003606: 685b ldr r3, [r3, #4]
  7881. 8003608: 091b lsrs r3, r3, #4
  7882. 800360a: f003 030f and.w r3, r3, #15
  7883. 800360e: 4a09 ldr r2, [pc, #36] ; (8003634 <HAL_RCC_ClockConfig+0x164>)
  7884. 8003610: 5cd3 ldrb r3, [r2, r3]
  7885. 8003612: fa21 f303 lsr.w r3, r1, r3
  7886. 8003616: 4a08 ldr r2, [pc, #32] ; (8003638 <HAL_RCC_ClockConfig+0x168>)
  7887. 8003618: 6013 str r3, [r2, #0]
  7888. /* Configure the source of time base considering new system clocks settings*/
  7889. HAL_InitTick(uwTickPrio);
  7890. 800361a: 4b08 ldr r3, [pc, #32] ; (800363c <HAL_RCC_ClockConfig+0x16c>)
  7891. 800361c: 681b ldr r3, [r3, #0]
  7892. 800361e: 4618 mov r0, r3
  7893. 8003620: f002 f814 bl 800564c <HAL_InitTick>
  7894. return HAL_OK;
  7895. 8003624: 2300 movs r3, #0
  7896. }
  7897. 8003626: 4618 mov r0, r3
  7898. 8003628: 3710 adds r7, #16
  7899. 800362a: 46bd mov sp, r7
  7900. 800362c: bd80 pop {r7, pc}
  7901. 800362e: bf00 nop
  7902. 8003630: 40021000 .word 0x40021000
  7903. 8003634: 080085e0 .word 0x080085e0
  7904. 8003638: 20000008 .word 0x20000008
  7905. 800363c: 20000000 .word 0x20000000
  7906. 08003640 <HAL_RCC_GetSysClockFreq>:
  7907. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  7908. *
  7909. * @retval SYSCLK frequency
  7910. */
  7911. uint32_t HAL_RCC_GetSysClockFreq(void)
  7912. {
  7913. 8003640: b490 push {r4, r7}
  7914. 8003642: b08e sub sp, #56 ; 0x38
  7915. 8003644: af00 add r7, sp, #0
  7916. #if defined(RCC_CFGR2_PREDIV1SRC)
  7917. const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13};
  7918. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  7919. #else
  7920. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  7921. 8003646: 4b2b ldr r3, [pc, #172] ; (80036f4 <HAL_RCC_GetSysClockFreq+0xb4>)
  7922. 8003648: f107 0414 add.w r4, r7, #20
  7923. 800364c: cb0f ldmia r3, {r0, r1, r2, r3}
  7924. 800364e: e884 000f stmia.w r4, {r0, r1, r2, r3}
  7925. #if defined(RCC_CFGR2_PREDIV1)
  7926. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  7927. 8003652: 4b29 ldr r3, [pc, #164] ; (80036f8 <HAL_RCC_GetSysClockFreq+0xb8>)
  7928. 8003654: 1d3c adds r4, r7, #4
  7929. 8003656: cb0f ldmia r3, {r0, r1, r2, r3}
  7930. 8003658: e884 000f stmia.w r4, {r0, r1, r2, r3}
  7931. #else
  7932. const uint8_t aPredivFactorTable[2] = {1, 2};
  7933. #endif /*RCC_CFGR2_PREDIV1*/
  7934. #endif
  7935. uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U;
  7936. 800365c: 2300 movs r3, #0
  7937. 800365e: 62fb str r3, [r7, #44] ; 0x2c
  7938. 8003660: 2300 movs r3, #0
  7939. 8003662: 62bb str r3, [r7, #40] ; 0x28
  7940. 8003664: 2300 movs r3, #0
  7941. 8003666: 637b str r3, [r7, #52] ; 0x34
  7942. 8003668: 2300 movs r3, #0
  7943. 800366a: 627b str r3, [r7, #36] ; 0x24
  7944. uint32_t sysclockfreq = 0U;
  7945. 800366c: 2300 movs r3, #0
  7946. 800366e: 633b str r3, [r7, #48] ; 0x30
  7947. #if defined(RCC_CFGR2_PREDIV1SRC)
  7948. uint32_t prediv2 = 0U, pll2mul = 0U;
  7949. #endif /*RCC_CFGR2_PREDIV1SRC*/
  7950. tmpreg = RCC->CFGR;
  7951. 8003670: 4b22 ldr r3, [pc, #136] ; (80036fc <HAL_RCC_GetSysClockFreq+0xbc>)
  7952. 8003672: 685b ldr r3, [r3, #4]
  7953. 8003674: 62fb str r3, [r7, #44] ; 0x2c
  7954. /* Get SYSCLK source -------------------------------------------------------*/
  7955. switch (tmpreg & RCC_CFGR_SWS)
  7956. 8003676: 6afb ldr r3, [r7, #44] ; 0x2c
  7957. 8003678: f003 030c and.w r3, r3, #12
  7958. 800367c: 2b04 cmp r3, #4
  7959. 800367e: d002 beq.n 8003686 <HAL_RCC_GetSysClockFreq+0x46>
  7960. 8003680: 2b08 cmp r3, #8
  7961. 8003682: d003 beq.n 800368c <HAL_RCC_GetSysClockFreq+0x4c>
  7962. 8003684: e02c b.n 80036e0 <HAL_RCC_GetSysClockFreq+0xa0>
  7963. {
  7964. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  7965. {
  7966. sysclockfreq = HSE_VALUE;
  7967. 8003686: 4b1e ldr r3, [pc, #120] ; (8003700 <HAL_RCC_GetSysClockFreq+0xc0>)
  7968. 8003688: 633b str r3, [r7, #48] ; 0x30
  7969. break;
  7970. 800368a: e02c b.n 80036e6 <HAL_RCC_GetSysClockFreq+0xa6>
  7971. }
  7972. case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
  7973. {
  7974. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos];
  7975. 800368c: 6afb ldr r3, [r7, #44] ; 0x2c
  7976. 800368e: 0c9b lsrs r3, r3, #18
  7977. 8003690: f003 030f and.w r3, r3, #15
  7978. 8003694: f107 0238 add.w r2, r7, #56 ; 0x38
  7979. 8003698: 4413 add r3, r2
  7980. 800369a: f813 3c24 ldrb.w r3, [r3, #-36]
  7981. 800369e: 627b str r3, [r7, #36] ; 0x24
  7982. if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2)
  7983. 80036a0: 6afb ldr r3, [r7, #44] ; 0x2c
  7984. 80036a2: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7985. 80036a6: 2b00 cmp r3, #0
  7986. 80036a8: d012 beq.n 80036d0 <HAL_RCC_GetSysClockFreq+0x90>
  7987. {
  7988. #if defined(RCC_CFGR2_PREDIV1)
  7989. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos];
  7990. 80036aa: 4b14 ldr r3, [pc, #80] ; (80036fc <HAL_RCC_GetSysClockFreq+0xbc>)
  7991. 80036ac: 6adb ldr r3, [r3, #44] ; 0x2c
  7992. 80036ae: f003 030f and.w r3, r3, #15
  7993. 80036b2: f107 0238 add.w r2, r7, #56 ; 0x38
  7994. 80036b6: 4413 add r3, r2
  7995. 80036b8: f813 3c34 ldrb.w r3, [r3, #-52]
  7996. 80036bc: 62bb str r3, [r7, #40] ; 0x28
  7997. {
  7998. pllclk = pllclk / 2;
  7999. }
  8000. #else
  8001. /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */
  8002. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  8003. 80036be: 6a7b ldr r3, [r7, #36] ; 0x24
  8004. 80036c0: 4a0f ldr r2, [pc, #60] ; (8003700 <HAL_RCC_GetSysClockFreq+0xc0>)
  8005. 80036c2: fb02 f203 mul.w r2, r2, r3
  8006. 80036c6: 6abb ldr r3, [r7, #40] ; 0x28
  8007. 80036c8: fbb2 f3f3 udiv r3, r2, r3
  8008. 80036cc: 637b str r3, [r7, #52] ; 0x34
  8009. 80036ce: e004 b.n 80036da <HAL_RCC_GetSysClockFreq+0x9a>
  8010. #endif /*RCC_CFGR2_PREDIV1SRC*/
  8011. }
  8012. else
  8013. {
  8014. /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */
  8015. pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul);
  8016. 80036d0: 6a7b ldr r3, [r7, #36] ; 0x24
  8017. 80036d2: 4a0c ldr r2, [pc, #48] ; (8003704 <HAL_RCC_GetSysClockFreq+0xc4>)
  8018. 80036d4: fb02 f303 mul.w r3, r2, r3
  8019. 80036d8: 637b str r3, [r7, #52] ; 0x34
  8020. }
  8021. sysclockfreq = pllclk;
  8022. 80036da: 6b7b ldr r3, [r7, #52] ; 0x34
  8023. 80036dc: 633b str r3, [r7, #48] ; 0x30
  8024. break;
  8025. 80036de: e002 b.n 80036e6 <HAL_RCC_GetSysClockFreq+0xa6>
  8026. }
  8027. case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
  8028. default: /* HSI used as system clock */
  8029. {
  8030. sysclockfreq = HSI_VALUE;
  8031. 80036e0: 4b07 ldr r3, [pc, #28] ; (8003700 <HAL_RCC_GetSysClockFreq+0xc0>)
  8032. 80036e2: 633b str r3, [r7, #48] ; 0x30
  8033. break;
  8034. 80036e4: bf00 nop
  8035. }
  8036. }
  8037. return sysclockfreq;
  8038. 80036e6: 6b3b ldr r3, [r7, #48] ; 0x30
  8039. }
  8040. 80036e8: 4618 mov r0, r3
  8041. 80036ea: 3738 adds r7, #56 ; 0x38
  8042. 80036ec: 46bd mov sp, r7
  8043. 80036ee: bc90 pop {r4, r7}
  8044. 80036f0: 4770 bx lr
  8045. 80036f2: bf00 nop
  8046. 80036f4: 08008534 .word 0x08008534
  8047. 80036f8: 08008544 .word 0x08008544
  8048. 80036fc: 40021000 .word 0x40021000
  8049. 8003700: 007a1200 .word 0x007a1200
  8050. 8003704: 003d0900 .word 0x003d0900
  8051. 08003708 <HAL_RCC_GetHCLKFreq>:
  8052. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
  8053. * and updated within this function
  8054. * @retval HCLK frequency
  8055. */
  8056. uint32_t HAL_RCC_GetHCLKFreq(void)
  8057. {
  8058. 8003708: b480 push {r7}
  8059. 800370a: af00 add r7, sp, #0
  8060. return SystemCoreClock;
  8061. 800370c: 4b02 ldr r3, [pc, #8] ; (8003718 <HAL_RCC_GetHCLKFreq+0x10>)
  8062. 800370e: 681b ldr r3, [r3, #0]
  8063. }
  8064. 8003710: 4618 mov r0, r3
  8065. 8003712: 46bd mov sp, r7
  8066. 8003714: bc80 pop {r7}
  8067. 8003716: 4770 bx lr
  8068. 8003718: 20000008 .word 0x20000008
  8069. 0800371c <HAL_RCC_GetPCLK1Freq>:
  8070. * @note Each time PCLK1 changes, this function must be called to update the
  8071. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  8072. * @retval PCLK1 frequency
  8073. */
  8074. uint32_t HAL_RCC_GetPCLK1Freq(void)
  8075. {
  8076. 800371c: b580 push {r7, lr}
  8077. 800371e: af00 add r7, sp, #0
  8078. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  8079. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  8080. 8003720: f7ff fff2 bl 8003708 <HAL_RCC_GetHCLKFreq>
  8081. 8003724: 4601 mov r1, r0
  8082. 8003726: 4b05 ldr r3, [pc, #20] ; (800373c <HAL_RCC_GetPCLK1Freq+0x20>)
  8083. 8003728: 685b ldr r3, [r3, #4]
  8084. 800372a: 0a1b lsrs r3, r3, #8
  8085. 800372c: f003 0307 and.w r3, r3, #7
  8086. 8003730: 4a03 ldr r2, [pc, #12] ; (8003740 <HAL_RCC_GetPCLK1Freq+0x24>)
  8087. 8003732: 5cd3 ldrb r3, [r2, r3]
  8088. 8003734: fa21 f303 lsr.w r3, r1, r3
  8089. }
  8090. 8003738: 4618 mov r0, r3
  8091. 800373a: bd80 pop {r7, pc}
  8092. 800373c: 40021000 .word 0x40021000
  8093. 8003740: 080085f0 .word 0x080085f0
  8094. 08003744 <HAL_RCC_GetPCLK2Freq>:
  8095. * @note Each time PCLK2 changes, this function must be called to update the
  8096. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  8097. * @retval PCLK2 frequency
  8098. */
  8099. uint32_t HAL_RCC_GetPCLK2Freq(void)
  8100. {
  8101. 8003744: b580 push {r7, lr}
  8102. 8003746: af00 add r7, sp, #0
  8103. /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
  8104. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  8105. 8003748: f7ff ffde bl 8003708 <HAL_RCC_GetHCLKFreq>
  8106. 800374c: 4601 mov r1, r0
  8107. 800374e: 4b05 ldr r3, [pc, #20] ; (8003764 <HAL_RCC_GetPCLK2Freq+0x20>)
  8108. 8003750: 685b ldr r3, [r3, #4]
  8109. 8003752: 0adb lsrs r3, r3, #11
  8110. 8003754: f003 0307 and.w r3, r3, #7
  8111. 8003758: 4a03 ldr r2, [pc, #12] ; (8003768 <HAL_RCC_GetPCLK2Freq+0x24>)
  8112. 800375a: 5cd3 ldrb r3, [r2, r3]
  8113. 800375c: fa21 f303 lsr.w r3, r1, r3
  8114. }
  8115. 8003760: 4618 mov r0, r3
  8116. 8003762: bd80 pop {r7, pc}
  8117. 8003764: 40021000 .word 0x40021000
  8118. 8003768: 080085f0 .word 0x080085f0
  8119. 0800376c <HAL_RCC_GetClockConfig>:
  8120. * contains the current clock configuration.
  8121. * @param pFLatency Pointer on the Flash Latency.
  8122. * @retval None
  8123. */
  8124. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  8125. {
  8126. 800376c: b480 push {r7}
  8127. 800376e: b083 sub sp, #12
  8128. 8003770: af00 add r7, sp, #0
  8129. 8003772: 6078 str r0, [r7, #4]
  8130. 8003774: 6039 str r1, [r7, #0]
  8131. /* Check the parameters */
  8132. assert_param(RCC_ClkInitStruct != NULL);
  8133. assert_param(pFLatency != NULL);
  8134. /* Set all possible values for the Clock type parameter --------------------*/
  8135. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
  8136. 8003776: 687b ldr r3, [r7, #4]
  8137. 8003778: 220f movs r2, #15
  8138. 800377a: 601a str r2, [r3, #0]
  8139. /* Get the SYSCLK configuration --------------------------------------------*/
  8140. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  8141. 800377c: 4b10 ldr r3, [pc, #64] ; (80037c0 <HAL_RCC_GetClockConfig+0x54>)
  8142. 800377e: 685b ldr r3, [r3, #4]
  8143. 8003780: f003 0203 and.w r2, r3, #3
  8144. 8003784: 687b ldr r3, [r7, #4]
  8145. 8003786: 605a str r2, [r3, #4]
  8146. /* Get the HCLK configuration ----------------------------------------------*/
  8147. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
  8148. 8003788: 4b0d ldr r3, [pc, #52] ; (80037c0 <HAL_RCC_GetClockConfig+0x54>)
  8149. 800378a: 685b ldr r3, [r3, #4]
  8150. 800378c: f003 02f0 and.w r2, r3, #240 ; 0xf0
  8151. 8003790: 687b ldr r3, [r7, #4]
  8152. 8003792: 609a str r2, [r3, #8]
  8153. /* Get the APB1 configuration ----------------------------------------------*/
  8154. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
  8155. 8003794: 4b0a ldr r3, [pc, #40] ; (80037c0 <HAL_RCC_GetClockConfig+0x54>)
  8156. 8003796: 685b ldr r3, [r3, #4]
  8157. 8003798: f403 62e0 and.w r2, r3, #1792 ; 0x700
  8158. 800379c: 687b ldr r3, [r7, #4]
  8159. 800379e: 60da str r2, [r3, #12]
  8160. /* Get the APB2 configuration ----------------------------------------------*/
  8161. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3);
  8162. 80037a0: 4b07 ldr r3, [pc, #28] ; (80037c0 <HAL_RCC_GetClockConfig+0x54>)
  8163. 80037a2: 685b ldr r3, [r3, #4]
  8164. 80037a4: 08db lsrs r3, r3, #3
  8165. 80037a6: f403 62e0 and.w r2, r3, #1792 ; 0x700
  8166. 80037aa: 687b ldr r3, [r7, #4]
  8167. 80037ac: 611a str r2, [r3, #16]
  8168. #if defined(FLASH_ACR_LATENCY)
  8169. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  8170. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  8171. #else
  8172. /* For VALUE lines devices, only LATENCY_0 can be set*/
  8173. *pFLatency = (uint32_t)FLASH_LATENCY_0;
  8174. 80037ae: 683b ldr r3, [r7, #0]
  8175. 80037b0: 2200 movs r2, #0
  8176. 80037b2: 601a str r2, [r3, #0]
  8177. #endif
  8178. }
  8179. 80037b4: bf00 nop
  8180. 80037b6: 370c adds r7, #12
  8181. 80037b8: 46bd mov sp, r7
  8182. 80037ba: bc80 pop {r7}
  8183. 80037bc: 4770 bx lr
  8184. 80037be: bf00 nop
  8185. 80037c0: 40021000 .word 0x40021000
  8186. 080037c4 <RCC_Delay>:
  8187. * @brief This function provides delay (in milliseconds) based on CPU cycles method.
  8188. * @param mdelay: specifies the delay time length, in milliseconds.
  8189. * @retval None
  8190. */
  8191. static void RCC_Delay(uint32_t mdelay)
  8192. {
  8193. 80037c4: b480 push {r7}
  8194. 80037c6: b085 sub sp, #20
  8195. 80037c8: af00 add r7, sp, #0
  8196. 80037ca: 6078 str r0, [r7, #4]
  8197. __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U);
  8198. 80037cc: 4b0a ldr r3, [pc, #40] ; (80037f8 <RCC_Delay+0x34>)
  8199. 80037ce: 681b ldr r3, [r3, #0]
  8200. 80037d0: 4a0a ldr r2, [pc, #40] ; (80037fc <RCC_Delay+0x38>)
  8201. 80037d2: fba2 2303 umull r2, r3, r2, r3
  8202. 80037d6: 0a5b lsrs r3, r3, #9
  8203. 80037d8: 687a ldr r2, [r7, #4]
  8204. 80037da: fb02 f303 mul.w r3, r2, r3
  8205. 80037de: 60fb str r3, [r7, #12]
  8206. do
  8207. {
  8208. __NOP();
  8209. 80037e0: bf00 nop
  8210. }
  8211. while (Delay --);
  8212. 80037e2: 68fb ldr r3, [r7, #12]
  8213. 80037e4: 1e5a subs r2, r3, #1
  8214. 80037e6: 60fa str r2, [r7, #12]
  8215. 80037e8: 2b00 cmp r3, #0
  8216. 80037ea: d1f9 bne.n 80037e0 <RCC_Delay+0x1c>
  8217. }
  8218. 80037ec: bf00 nop
  8219. 80037ee: 3714 adds r7, #20
  8220. 80037f0: 46bd mov sp, r7
  8221. 80037f2: bc80 pop {r7}
  8222. 80037f4: 4770 bx lr
  8223. 80037f6: bf00 nop
  8224. 80037f8: 20000008 .word 0x20000008
  8225. 80037fc: 10624dd3 .word 0x10624dd3
  8226. 08003800 <HAL_RCCEx_PeriphCLKConfig>:
  8227. * manually disable it.
  8228. *
  8229. * @retval HAL status
  8230. */
  8231. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  8232. {
  8233. 8003800: b580 push {r7, lr}
  8234. 8003802: b086 sub sp, #24
  8235. 8003804: af00 add r7, sp, #0
  8236. 8003806: 6078 str r0, [r7, #4]
  8237. uint32_t tickstart = 0U, temp_reg = 0U;
  8238. 8003808: 2300 movs r3, #0
  8239. 800380a: 613b str r3, [r7, #16]
  8240. 800380c: 2300 movs r3, #0
  8241. 800380e: 60fb str r3, [r7, #12]
  8242. /* Check the parameters */
  8243. assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection));
  8244. /*------------------------------- RTC/LCD Configuration ------------------------*/
  8245. if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC))
  8246. 8003810: 687b ldr r3, [r7, #4]
  8247. 8003812: 681b ldr r3, [r3, #0]
  8248. 8003814: f003 0301 and.w r3, r3, #1
  8249. 8003818: 2b00 cmp r3, #0
  8250. 800381a: d07d beq.n 8003918 <HAL_RCCEx_PeriphCLKConfig+0x118>
  8251. {
  8252. /* check for RTC Parameters used to output RTCCLK */
  8253. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  8254. FlagStatus pwrclkchanged = RESET;
  8255. 800381c: 2300 movs r3, #0
  8256. 800381e: 75fb strb r3, [r7, #23]
  8257. /* As soon as function is called to change RTC clock source, activation of the
  8258. power domain is done. */
  8259. /* Requires to enable write access to Backup Domain of necessary */
  8260. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  8261. 8003820: 4b47 ldr r3, [pc, #284] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8262. 8003822: 69db ldr r3, [r3, #28]
  8263. 8003824: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  8264. 8003828: 2b00 cmp r3, #0
  8265. 800382a: d10d bne.n 8003848 <HAL_RCCEx_PeriphCLKConfig+0x48>
  8266. {
  8267. __HAL_RCC_PWR_CLK_ENABLE();
  8268. 800382c: 4b44 ldr r3, [pc, #272] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8269. 800382e: 69db ldr r3, [r3, #28]
  8270. 8003830: 4a43 ldr r2, [pc, #268] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8271. 8003832: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  8272. 8003836: 61d3 str r3, [r2, #28]
  8273. 8003838: 4b41 ldr r3, [pc, #260] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8274. 800383a: 69db ldr r3, [r3, #28]
  8275. 800383c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  8276. 8003840: 60bb str r3, [r7, #8]
  8277. 8003842: 68bb ldr r3, [r7, #8]
  8278. pwrclkchanged = SET;
  8279. 8003844: 2301 movs r3, #1
  8280. 8003846: 75fb strb r3, [r7, #23]
  8281. }
  8282. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8283. 8003848: 4b3e ldr r3, [pc, #248] ; (8003944 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  8284. 800384a: 681b ldr r3, [r3, #0]
  8285. 800384c: f403 7380 and.w r3, r3, #256 ; 0x100
  8286. 8003850: 2b00 cmp r3, #0
  8287. 8003852: d118 bne.n 8003886 <HAL_RCCEx_PeriphCLKConfig+0x86>
  8288. {
  8289. /* Enable write access to Backup domain */
  8290. SET_BIT(PWR->CR, PWR_CR_DBP);
  8291. 8003854: 4b3b ldr r3, [pc, #236] ; (8003944 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  8292. 8003856: 681b ldr r3, [r3, #0]
  8293. 8003858: 4a3a ldr r2, [pc, #232] ; (8003944 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  8294. 800385a: f443 7380 orr.w r3, r3, #256 ; 0x100
  8295. 800385e: 6013 str r3, [r2, #0]
  8296. /* Wait for Backup domain Write protection disable */
  8297. tickstart = HAL_GetTick();
  8298. 8003860: f7fd fff4 bl 800184c <HAL_GetTick>
  8299. 8003864: 6138 str r0, [r7, #16]
  8300. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8301. 8003866: e008 b.n 800387a <HAL_RCCEx_PeriphCLKConfig+0x7a>
  8302. {
  8303. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  8304. 8003868: f7fd fff0 bl 800184c <HAL_GetTick>
  8305. 800386c: 4602 mov r2, r0
  8306. 800386e: 693b ldr r3, [r7, #16]
  8307. 8003870: 1ad3 subs r3, r2, r3
  8308. 8003872: 2b64 cmp r3, #100 ; 0x64
  8309. 8003874: d901 bls.n 800387a <HAL_RCCEx_PeriphCLKConfig+0x7a>
  8310. {
  8311. return HAL_TIMEOUT;
  8312. 8003876: 2303 movs r3, #3
  8313. 8003878: e05e b.n 8003938 <HAL_RCCEx_PeriphCLKConfig+0x138>
  8314. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8315. 800387a: 4b32 ldr r3, [pc, #200] ; (8003944 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  8316. 800387c: 681b ldr r3, [r3, #0]
  8317. 800387e: f403 7380 and.w r3, r3, #256 ; 0x100
  8318. 8003882: 2b00 cmp r3, #0
  8319. 8003884: d0f0 beq.n 8003868 <HAL_RCCEx_PeriphCLKConfig+0x68>
  8320. }
  8321. }
  8322. }
  8323. /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */
  8324. temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL);
  8325. 8003886: 4b2e ldr r3, [pc, #184] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8326. 8003888: 6a1b ldr r3, [r3, #32]
  8327. 800388a: f403 7340 and.w r3, r3, #768 ; 0x300
  8328. 800388e: 60fb str r3, [r7, #12]
  8329. if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
  8330. 8003890: 68fb ldr r3, [r7, #12]
  8331. 8003892: 2b00 cmp r3, #0
  8332. 8003894: d02e beq.n 80038f4 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  8333. 8003896: 687b ldr r3, [r7, #4]
  8334. 8003898: 685b ldr r3, [r3, #4]
  8335. 800389a: f403 7340 and.w r3, r3, #768 ; 0x300
  8336. 800389e: 68fa ldr r2, [r7, #12]
  8337. 80038a0: 429a cmp r2, r3
  8338. 80038a2: d027 beq.n 80038f4 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  8339. {
  8340. /* Store the content of BDCR register before the reset of Backup Domain */
  8341. temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  8342. 80038a4: 4b26 ldr r3, [pc, #152] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8343. 80038a6: 6a1b ldr r3, [r3, #32]
  8344. 80038a8: f423 7340 bic.w r3, r3, #768 ; 0x300
  8345. 80038ac: 60fb str r3, [r7, #12]
  8346. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  8347. __HAL_RCC_BACKUPRESET_FORCE();
  8348. 80038ae: 4b26 ldr r3, [pc, #152] ; (8003948 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  8349. 80038b0: 2201 movs r2, #1
  8350. 80038b2: 601a str r2, [r3, #0]
  8351. __HAL_RCC_BACKUPRESET_RELEASE();
  8352. 80038b4: 4b24 ldr r3, [pc, #144] ; (8003948 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  8353. 80038b6: 2200 movs r2, #0
  8354. 80038b8: 601a str r2, [r3, #0]
  8355. /* Restore the Content of BDCR register */
  8356. RCC->BDCR = temp_reg;
  8357. 80038ba: 4a21 ldr r2, [pc, #132] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8358. 80038bc: 68fb ldr r3, [r7, #12]
  8359. 80038be: 6213 str r3, [r2, #32]
  8360. /* Wait for LSERDY if LSE was enabled */
  8361. if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON))
  8362. 80038c0: 68fb ldr r3, [r7, #12]
  8363. 80038c2: f003 0301 and.w r3, r3, #1
  8364. 80038c6: 2b00 cmp r3, #0
  8365. 80038c8: d014 beq.n 80038f4 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  8366. {
  8367. /* Get Start Tick */
  8368. tickstart = HAL_GetTick();
  8369. 80038ca: f7fd ffbf bl 800184c <HAL_GetTick>
  8370. 80038ce: 6138 str r0, [r7, #16]
  8371. /* Wait till LSE is ready */
  8372. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  8373. 80038d0: e00a b.n 80038e8 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  8374. {
  8375. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  8376. 80038d2: f7fd ffbb bl 800184c <HAL_GetTick>
  8377. 80038d6: 4602 mov r2, r0
  8378. 80038d8: 693b ldr r3, [r7, #16]
  8379. 80038da: 1ad3 subs r3, r2, r3
  8380. 80038dc: f241 3288 movw r2, #5000 ; 0x1388
  8381. 80038e0: 4293 cmp r3, r2
  8382. 80038e2: d901 bls.n 80038e8 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  8383. {
  8384. return HAL_TIMEOUT;
  8385. 80038e4: 2303 movs r3, #3
  8386. 80038e6: e027 b.n 8003938 <HAL_RCCEx_PeriphCLKConfig+0x138>
  8387. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  8388. 80038e8: 4b15 ldr r3, [pc, #84] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8389. 80038ea: 6a1b ldr r3, [r3, #32]
  8390. 80038ec: f003 0302 and.w r3, r3, #2
  8391. 80038f0: 2b00 cmp r3, #0
  8392. 80038f2: d0ee beq.n 80038d2 <HAL_RCCEx_PeriphCLKConfig+0xd2>
  8393. }
  8394. }
  8395. }
  8396. }
  8397. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  8398. 80038f4: 4b12 ldr r3, [pc, #72] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8399. 80038f6: 6a1b ldr r3, [r3, #32]
  8400. 80038f8: f423 7240 bic.w r2, r3, #768 ; 0x300
  8401. 80038fc: 687b ldr r3, [r7, #4]
  8402. 80038fe: 685b ldr r3, [r3, #4]
  8403. 8003900: 490f ldr r1, [pc, #60] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8404. 8003902: 4313 orrs r3, r2
  8405. 8003904: 620b str r3, [r1, #32]
  8406. /* Require to disable power clock if necessary */
  8407. if (pwrclkchanged == SET)
  8408. 8003906: 7dfb ldrb r3, [r7, #23]
  8409. 8003908: 2b01 cmp r3, #1
  8410. 800390a: d105 bne.n 8003918 <HAL_RCCEx_PeriphCLKConfig+0x118>
  8411. {
  8412. __HAL_RCC_PWR_CLK_DISABLE();
  8413. 800390c: 4b0c ldr r3, [pc, #48] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8414. 800390e: 69db ldr r3, [r3, #28]
  8415. 8003910: 4a0b ldr r2, [pc, #44] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8416. 8003912: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  8417. 8003916: 61d3 str r3, [r2, #28]
  8418. }
  8419. }
  8420. /*------------------------------ ADC clock Configuration ------------------*/
  8421. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  8422. 8003918: 687b ldr r3, [r7, #4]
  8423. 800391a: 681b ldr r3, [r3, #0]
  8424. 800391c: f003 0302 and.w r3, r3, #2
  8425. 8003920: 2b00 cmp r3, #0
  8426. 8003922: d008 beq.n 8003936 <HAL_RCCEx_PeriphCLKConfig+0x136>
  8427. {
  8428. /* Check the parameters */
  8429. assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection));
  8430. /* Configure the ADC clock source */
  8431. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  8432. 8003924: 4b06 ldr r3, [pc, #24] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8433. 8003926: 685b ldr r3, [r3, #4]
  8434. 8003928: f423 4240 bic.w r2, r3, #49152 ; 0xc000
  8435. 800392c: 687b ldr r3, [r7, #4]
  8436. 800392e: 689b ldr r3, [r3, #8]
  8437. 8003930: 4903 ldr r1, [pc, #12] ; (8003940 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  8438. 8003932: 4313 orrs r3, r2
  8439. 8003934: 604b str r3, [r1, #4]
  8440. /* Configure the USB clock source */
  8441. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  8442. }
  8443. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */
  8444. return HAL_OK;
  8445. 8003936: 2300 movs r3, #0
  8446. }
  8447. 8003938: 4618 mov r0, r3
  8448. 800393a: 3718 adds r7, #24
  8449. 800393c: 46bd mov sp, r7
  8450. 800393e: bd80 pop {r7, pc}
  8451. 8003940: 40021000 .word 0x40021000
  8452. 8003944: 40007000 .word 0x40007000
  8453. 8003948: 42420440 .word 0x42420440
  8454. 0800394c <HAL_RCCEx_GetPeriphCLKFreq>:
  8455. * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock
  8456. @endif
  8457. * @retval Frequency in Hz (0: means that no available frequency for the peripheral)
  8458. */
  8459. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk)
  8460. {
  8461. 800394c: b580 push {r7, lr}
  8462. 800394e: b084 sub sp, #16
  8463. 8003950: af00 add r7, sp, #0
  8464. 8003952: 6078 str r0, [r7, #4]
  8465. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  8466. const uint8_t aPredivFactorTable[2] = {1, 2};
  8467. uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U;
  8468. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG */
  8469. uint32_t temp_reg = 0U, frequency = 0U;
  8470. 8003954: 2300 movs r3, #0
  8471. 8003956: 60bb str r3, [r7, #8]
  8472. 8003958: 2300 movs r3, #0
  8473. 800395a: 60fb str r3, [r7, #12]
  8474. /* Check the parameters */
  8475. assert_param(IS_RCC_PERIPHCLOCK(PeriphClk));
  8476. switch (PeriphClk)
  8477. 800395c: 687b ldr r3, [r7, #4]
  8478. 800395e: 2b01 cmp r3, #1
  8479. 8003960: d002 beq.n 8003968 <HAL_RCCEx_GetPeriphCLKFreq+0x1c>
  8480. 8003962: 2b02 cmp r3, #2
  8481. 8003964: d033 beq.n 80039ce <HAL_RCCEx_GetPeriphCLKFreq+0x82>
  8482. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  8483. break;
  8484. }
  8485. default:
  8486. {
  8487. break;
  8488. 8003966: e041 b.n 80039ec <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  8489. temp_reg = RCC->BDCR;
  8490. 8003968: 4b23 ldr r3, [pc, #140] ; (80039f8 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  8491. 800396a: 6a1b ldr r3, [r3, #32]
  8492. 800396c: 60bb str r3, [r7, #8]
  8493. if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSERDY)))
  8494. 800396e: 68bb ldr r3, [r7, #8]
  8495. 8003970: f403 7340 and.w r3, r3, #768 ; 0x300
  8496. 8003974: f5b3 7f80 cmp.w r3, #256 ; 0x100
  8497. 8003978: d108 bne.n 800398c <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  8498. 800397a: 68bb ldr r3, [r7, #8]
  8499. 800397c: f003 0302 and.w r3, r3, #2
  8500. 8003980: 2b00 cmp r3, #0
  8501. 8003982: d003 beq.n 800398c <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  8502. frequency = LSE_VALUE;
  8503. 8003984: f44f 4300 mov.w r3, #32768 ; 0x8000
  8504. 8003988: 60fb str r3, [r7, #12]
  8505. 800398a: e01f b.n 80039cc <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  8506. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY)))
  8507. 800398c: 68bb ldr r3, [r7, #8]
  8508. 800398e: f403 7340 and.w r3, r3, #768 ; 0x300
  8509. 8003992: f5b3 7f00 cmp.w r3, #512 ; 0x200
  8510. 8003996: d109 bne.n 80039ac <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  8511. 8003998: 4b17 ldr r3, [pc, #92] ; (80039f8 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  8512. 800399a: 6a5b ldr r3, [r3, #36] ; 0x24
  8513. 800399c: f003 0302 and.w r3, r3, #2
  8514. 80039a0: 2b00 cmp r3, #0
  8515. 80039a2: d003 beq.n 80039ac <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  8516. frequency = LSI_VALUE;
  8517. 80039a4: f649 4340 movw r3, #40000 ; 0x9c40
  8518. 80039a8: 60fb str r3, [r7, #12]
  8519. 80039aa: e00f b.n 80039cc <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  8520. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)))
  8521. 80039ac: 68bb ldr r3, [r7, #8]
  8522. 80039ae: f403 7340 and.w r3, r3, #768 ; 0x300
  8523. 80039b2: f5b3 7f40 cmp.w r3, #768 ; 0x300
  8524. 80039b6: d118 bne.n 80039ea <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  8525. 80039b8: 4b0f ldr r3, [pc, #60] ; (80039f8 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  8526. 80039ba: 681b ldr r3, [r3, #0]
  8527. 80039bc: f403 3300 and.w r3, r3, #131072 ; 0x20000
  8528. 80039c0: 2b00 cmp r3, #0
  8529. 80039c2: d012 beq.n 80039ea <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  8530. frequency = HSE_VALUE / 128U;
  8531. 80039c4: f24f 4324 movw r3, #62500 ; 0xf424
  8532. 80039c8: 60fb str r3, [r7, #12]
  8533. break;
  8534. 80039ca: e00e b.n 80039ea <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  8535. 80039cc: e00d b.n 80039ea <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  8536. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  8537. 80039ce: f7ff feb9 bl 8003744 <HAL_RCC_GetPCLK2Freq>
  8538. 80039d2: 4602 mov r2, r0
  8539. 80039d4: 4b08 ldr r3, [pc, #32] ; (80039f8 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  8540. 80039d6: 685b ldr r3, [r3, #4]
  8541. 80039d8: 0b9b lsrs r3, r3, #14
  8542. 80039da: f003 0303 and.w r3, r3, #3
  8543. 80039de: 3301 adds r3, #1
  8544. 80039e0: 005b lsls r3, r3, #1
  8545. 80039e2: fbb2 f3f3 udiv r3, r2, r3
  8546. 80039e6: 60fb str r3, [r7, #12]
  8547. break;
  8548. 80039e8: e000 b.n 80039ec <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  8549. break;
  8550. 80039ea: bf00 nop
  8551. }
  8552. }
  8553. return (frequency);
  8554. 80039ec: 68fb ldr r3, [r7, #12]
  8555. }
  8556. 80039ee: 4618 mov r0, r3
  8557. 80039f0: 3710 adds r7, #16
  8558. 80039f2: 46bd mov sp, r7
  8559. 80039f4: bd80 pop {r7, pc}
  8560. 80039f6: bf00 nop
  8561. 80039f8: 40021000 .word 0x40021000
  8562. 080039fc <HAL_TIM_Base_Init>:
  8563. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  8564. * @param htim TIM Base handle
  8565. * @retval HAL status
  8566. */
  8567. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  8568. {
  8569. 80039fc: b580 push {r7, lr}
  8570. 80039fe: b082 sub sp, #8
  8571. 8003a00: af00 add r7, sp, #0
  8572. 8003a02: 6078 str r0, [r7, #4]
  8573. /* Check the TIM handle allocation */
  8574. if (htim == NULL)
  8575. 8003a04: 687b ldr r3, [r7, #4]
  8576. 8003a06: 2b00 cmp r3, #0
  8577. 8003a08: d101 bne.n 8003a0e <HAL_TIM_Base_Init+0x12>
  8578. {
  8579. return HAL_ERROR;
  8580. 8003a0a: 2301 movs r3, #1
  8581. 8003a0c: e01d b.n 8003a4a <HAL_TIM_Base_Init+0x4e>
  8582. assert_param(IS_TIM_INSTANCE(htim->Instance));
  8583. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  8584. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  8585. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  8586. if (htim->State == HAL_TIM_STATE_RESET)
  8587. 8003a0e: 687b ldr r3, [r7, #4]
  8588. 8003a10: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  8589. 8003a14: b2db uxtb r3, r3
  8590. 8003a16: 2b00 cmp r3, #0
  8591. 8003a18: d106 bne.n 8003a28 <HAL_TIM_Base_Init+0x2c>
  8592. {
  8593. /* Allocate lock resource and initialize it */
  8594. htim->Lock = HAL_UNLOCKED;
  8595. 8003a1a: 687b ldr r3, [r7, #4]
  8596. 8003a1c: 2200 movs r2, #0
  8597. 8003a1e: f883 203c strb.w r2, [r3, #60] ; 0x3c
  8598. }
  8599. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  8600. htim->Base_MspInitCallback(htim);
  8601. #else
  8602. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  8603. HAL_TIM_Base_MspInit(htim);
  8604. 8003a22: 6878 ldr r0, [r7, #4]
  8605. 8003a24: f001 fcc4 bl 80053b0 <HAL_TIM_Base_MspInit>
  8606. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  8607. }
  8608. /* Set the TIM state */
  8609. htim->State = HAL_TIM_STATE_BUSY;
  8610. 8003a28: 687b ldr r3, [r7, #4]
  8611. 8003a2a: 2202 movs r2, #2
  8612. 8003a2c: f883 203d strb.w r2, [r3, #61] ; 0x3d
  8613. /* Set the Time Base configuration */
  8614. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  8615. 8003a30: 687b ldr r3, [r7, #4]
  8616. 8003a32: 681a ldr r2, [r3, #0]
  8617. 8003a34: 687b ldr r3, [r7, #4]
  8618. 8003a36: 3304 adds r3, #4
  8619. 8003a38: 4619 mov r1, r3
  8620. 8003a3a: 4610 mov r0, r2
  8621. 8003a3c: f000 f958 bl 8003cf0 <TIM_Base_SetConfig>
  8622. /* Initialize the TIM state*/
  8623. htim->State = HAL_TIM_STATE_READY;
  8624. 8003a40: 687b ldr r3, [r7, #4]
  8625. 8003a42: 2201 movs r2, #1
  8626. 8003a44: f883 203d strb.w r2, [r3, #61] ; 0x3d
  8627. return HAL_OK;
  8628. 8003a48: 2300 movs r3, #0
  8629. }
  8630. 8003a4a: 4618 mov r0, r3
  8631. 8003a4c: 3708 adds r7, #8
  8632. 8003a4e: 46bd mov sp, r7
  8633. 8003a50: bd80 pop {r7, pc}
  8634. 08003a52 <HAL_TIM_Base_Start_IT>:
  8635. * @brief Starts the TIM Base generation in interrupt mode.
  8636. * @param htim TIM Base handle
  8637. * @retval HAL status
  8638. */
  8639. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  8640. {
  8641. 8003a52: b480 push {r7}
  8642. 8003a54: b085 sub sp, #20
  8643. 8003a56: af00 add r7, sp, #0
  8644. 8003a58: 6078 str r0, [r7, #4]
  8645. /* Check the parameters */
  8646. assert_param(IS_TIM_INSTANCE(htim->Instance));
  8647. /* Enable the TIM Update interrupt */
  8648. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  8649. 8003a5a: 687b ldr r3, [r7, #4]
  8650. 8003a5c: 681b ldr r3, [r3, #0]
  8651. 8003a5e: 68da ldr r2, [r3, #12]
  8652. 8003a60: 687b ldr r3, [r7, #4]
  8653. 8003a62: 681b ldr r3, [r3, #0]
  8654. 8003a64: f042 0201 orr.w r2, r2, #1
  8655. 8003a68: 60da str r2, [r3, #12]
  8656. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  8657. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  8658. 8003a6a: 687b ldr r3, [r7, #4]
  8659. 8003a6c: 681b ldr r3, [r3, #0]
  8660. 8003a6e: 689b ldr r3, [r3, #8]
  8661. 8003a70: f003 0307 and.w r3, r3, #7
  8662. 8003a74: 60fb str r3, [r7, #12]
  8663. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  8664. 8003a76: 68fb ldr r3, [r7, #12]
  8665. 8003a78: 2b06 cmp r3, #6
  8666. 8003a7a: d007 beq.n 8003a8c <HAL_TIM_Base_Start_IT+0x3a>
  8667. {
  8668. __HAL_TIM_ENABLE(htim);
  8669. 8003a7c: 687b ldr r3, [r7, #4]
  8670. 8003a7e: 681b ldr r3, [r3, #0]
  8671. 8003a80: 681a ldr r2, [r3, #0]
  8672. 8003a82: 687b ldr r3, [r7, #4]
  8673. 8003a84: 681b ldr r3, [r3, #0]
  8674. 8003a86: f042 0201 orr.w r2, r2, #1
  8675. 8003a8a: 601a str r2, [r3, #0]
  8676. }
  8677. /* Return function status */
  8678. return HAL_OK;
  8679. 8003a8c: 2300 movs r3, #0
  8680. }
  8681. 8003a8e: 4618 mov r0, r3
  8682. 8003a90: 3714 adds r7, #20
  8683. 8003a92: 46bd mov sp, r7
  8684. 8003a94: bc80 pop {r7}
  8685. 8003a96: 4770 bx lr
  8686. 08003a98 <HAL_TIM_IRQHandler>:
  8687. * @brief This function handles TIM interrupts requests.
  8688. * @param htim TIM handle
  8689. * @retval None
  8690. */
  8691. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  8692. {
  8693. 8003a98: b580 push {r7, lr}
  8694. 8003a9a: b082 sub sp, #8
  8695. 8003a9c: af00 add r7, sp, #0
  8696. 8003a9e: 6078 str r0, [r7, #4]
  8697. /* Capture compare 1 event */
  8698. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  8699. 8003aa0: 687b ldr r3, [r7, #4]
  8700. 8003aa2: 681b ldr r3, [r3, #0]
  8701. 8003aa4: 691b ldr r3, [r3, #16]
  8702. 8003aa6: f003 0302 and.w r3, r3, #2
  8703. 8003aaa: 2b02 cmp r3, #2
  8704. 8003aac: d122 bne.n 8003af4 <HAL_TIM_IRQHandler+0x5c>
  8705. {
  8706. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
  8707. 8003aae: 687b ldr r3, [r7, #4]
  8708. 8003ab0: 681b ldr r3, [r3, #0]
  8709. 8003ab2: 68db ldr r3, [r3, #12]
  8710. 8003ab4: f003 0302 and.w r3, r3, #2
  8711. 8003ab8: 2b02 cmp r3, #2
  8712. 8003aba: d11b bne.n 8003af4 <HAL_TIM_IRQHandler+0x5c>
  8713. {
  8714. {
  8715. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  8716. 8003abc: 687b ldr r3, [r7, #4]
  8717. 8003abe: 681b ldr r3, [r3, #0]
  8718. 8003ac0: f06f 0202 mvn.w r2, #2
  8719. 8003ac4: 611a str r2, [r3, #16]
  8720. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  8721. 8003ac6: 687b ldr r3, [r7, #4]
  8722. 8003ac8: 2201 movs r2, #1
  8723. 8003aca: 771a strb r2, [r3, #28]
  8724. /* Input capture event */
  8725. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  8726. 8003acc: 687b ldr r3, [r7, #4]
  8727. 8003ace: 681b ldr r3, [r3, #0]
  8728. 8003ad0: 699b ldr r3, [r3, #24]
  8729. 8003ad2: f003 0303 and.w r3, r3, #3
  8730. 8003ad6: 2b00 cmp r3, #0
  8731. 8003ad8: d003 beq.n 8003ae2 <HAL_TIM_IRQHandler+0x4a>
  8732. {
  8733. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8734. htim->IC_CaptureCallback(htim);
  8735. #else
  8736. HAL_TIM_IC_CaptureCallback(htim);
  8737. 8003ada: 6878 ldr r0, [r7, #4]
  8738. 8003adc: f000 f8ed bl 8003cba <HAL_TIM_IC_CaptureCallback>
  8739. 8003ae0: e005 b.n 8003aee <HAL_TIM_IRQHandler+0x56>
  8740. {
  8741. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8742. htim->OC_DelayElapsedCallback(htim);
  8743. htim->PWM_PulseFinishedCallback(htim);
  8744. #else
  8745. HAL_TIM_OC_DelayElapsedCallback(htim);
  8746. 8003ae2: 6878 ldr r0, [r7, #4]
  8747. 8003ae4: f000 f8e0 bl 8003ca8 <HAL_TIM_OC_DelayElapsedCallback>
  8748. HAL_TIM_PWM_PulseFinishedCallback(htim);
  8749. 8003ae8: 6878 ldr r0, [r7, #4]
  8750. 8003aea: f000 f8ef bl 8003ccc <HAL_TIM_PWM_PulseFinishedCallback>
  8751. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  8752. }
  8753. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  8754. 8003aee: 687b ldr r3, [r7, #4]
  8755. 8003af0: 2200 movs r2, #0
  8756. 8003af2: 771a strb r2, [r3, #28]
  8757. }
  8758. }
  8759. }
  8760. /* Capture compare 2 event */
  8761. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  8762. 8003af4: 687b ldr r3, [r7, #4]
  8763. 8003af6: 681b ldr r3, [r3, #0]
  8764. 8003af8: 691b ldr r3, [r3, #16]
  8765. 8003afa: f003 0304 and.w r3, r3, #4
  8766. 8003afe: 2b04 cmp r3, #4
  8767. 8003b00: d122 bne.n 8003b48 <HAL_TIM_IRQHandler+0xb0>
  8768. {
  8769. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
  8770. 8003b02: 687b ldr r3, [r7, #4]
  8771. 8003b04: 681b ldr r3, [r3, #0]
  8772. 8003b06: 68db ldr r3, [r3, #12]
  8773. 8003b08: f003 0304 and.w r3, r3, #4
  8774. 8003b0c: 2b04 cmp r3, #4
  8775. 8003b0e: d11b bne.n 8003b48 <HAL_TIM_IRQHandler+0xb0>
  8776. {
  8777. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  8778. 8003b10: 687b ldr r3, [r7, #4]
  8779. 8003b12: 681b ldr r3, [r3, #0]
  8780. 8003b14: f06f 0204 mvn.w r2, #4
  8781. 8003b18: 611a str r2, [r3, #16]
  8782. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  8783. 8003b1a: 687b ldr r3, [r7, #4]
  8784. 8003b1c: 2202 movs r2, #2
  8785. 8003b1e: 771a strb r2, [r3, #28]
  8786. /* Input capture event */
  8787. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  8788. 8003b20: 687b ldr r3, [r7, #4]
  8789. 8003b22: 681b ldr r3, [r3, #0]
  8790. 8003b24: 699b ldr r3, [r3, #24]
  8791. 8003b26: f403 7340 and.w r3, r3, #768 ; 0x300
  8792. 8003b2a: 2b00 cmp r3, #0
  8793. 8003b2c: d003 beq.n 8003b36 <HAL_TIM_IRQHandler+0x9e>
  8794. {
  8795. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8796. htim->IC_CaptureCallback(htim);
  8797. #else
  8798. HAL_TIM_IC_CaptureCallback(htim);
  8799. 8003b2e: 6878 ldr r0, [r7, #4]
  8800. 8003b30: f000 f8c3 bl 8003cba <HAL_TIM_IC_CaptureCallback>
  8801. 8003b34: e005 b.n 8003b42 <HAL_TIM_IRQHandler+0xaa>
  8802. {
  8803. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8804. htim->OC_DelayElapsedCallback(htim);
  8805. htim->PWM_PulseFinishedCallback(htim);
  8806. #else
  8807. HAL_TIM_OC_DelayElapsedCallback(htim);
  8808. 8003b36: 6878 ldr r0, [r7, #4]
  8809. 8003b38: f000 f8b6 bl 8003ca8 <HAL_TIM_OC_DelayElapsedCallback>
  8810. HAL_TIM_PWM_PulseFinishedCallback(htim);
  8811. 8003b3c: 6878 ldr r0, [r7, #4]
  8812. 8003b3e: f000 f8c5 bl 8003ccc <HAL_TIM_PWM_PulseFinishedCallback>
  8813. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  8814. }
  8815. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  8816. 8003b42: 687b ldr r3, [r7, #4]
  8817. 8003b44: 2200 movs r2, #0
  8818. 8003b46: 771a strb r2, [r3, #28]
  8819. }
  8820. }
  8821. /* Capture compare 3 event */
  8822. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  8823. 8003b48: 687b ldr r3, [r7, #4]
  8824. 8003b4a: 681b ldr r3, [r3, #0]
  8825. 8003b4c: 691b ldr r3, [r3, #16]
  8826. 8003b4e: f003 0308 and.w r3, r3, #8
  8827. 8003b52: 2b08 cmp r3, #8
  8828. 8003b54: d122 bne.n 8003b9c <HAL_TIM_IRQHandler+0x104>
  8829. {
  8830. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
  8831. 8003b56: 687b ldr r3, [r7, #4]
  8832. 8003b58: 681b ldr r3, [r3, #0]
  8833. 8003b5a: 68db ldr r3, [r3, #12]
  8834. 8003b5c: f003 0308 and.w r3, r3, #8
  8835. 8003b60: 2b08 cmp r3, #8
  8836. 8003b62: d11b bne.n 8003b9c <HAL_TIM_IRQHandler+0x104>
  8837. {
  8838. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  8839. 8003b64: 687b ldr r3, [r7, #4]
  8840. 8003b66: 681b ldr r3, [r3, #0]
  8841. 8003b68: f06f 0208 mvn.w r2, #8
  8842. 8003b6c: 611a str r2, [r3, #16]
  8843. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  8844. 8003b6e: 687b ldr r3, [r7, #4]
  8845. 8003b70: 2204 movs r2, #4
  8846. 8003b72: 771a strb r2, [r3, #28]
  8847. /* Input capture event */
  8848. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  8849. 8003b74: 687b ldr r3, [r7, #4]
  8850. 8003b76: 681b ldr r3, [r3, #0]
  8851. 8003b78: 69db ldr r3, [r3, #28]
  8852. 8003b7a: f003 0303 and.w r3, r3, #3
  8853. 8003b7e: 2b00 cmp r3, #0
  8854. 8003b80: d003 beq.n 8003b8a <HAL_TIM_IRQHandler+0xf2>
  8855. {
  8856. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8857. htim->IC_CaptureCallback(htim);
  8858. #else
  8859. HAL_TIM_IC_CaptureCallback(htim);
  8860. 8003b82: 6878 ldr r0, [r7, #4]
  8861. 8003b84: f000 f899 bl 8003cba <HAL_TIM_IC_CaptureCallback>
  8862. 8003b88: e005 b.n 8003b96 <HAL_TIM_IRQHandler+0xfe>
  8863. {
  8864. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8865. htim->OC_DelayElapsedCallback(htim);
  8866. htim->PWM_PulseFinishedCallback(htim);
  8867. #else
  8868. HAL_TIM_OC_DelayElapsedCallback(htim);
  8869. 8003b8a: 6878 ldr r0, [r7, #4]
  8870. 8003b8c: f000 f88c bl 8003ca8 <HAL_TIM_OC_DelayElapsedCallback>
  8871. HAL_TIM_PWM_PulseFinishedCallback(htim);
  8872. 8003b90: 6878 ldr r0, [r7, #4]
  8873. 8003b92: f000 f89b bl 8003ccc <HAL_TIM_PWM_PulseFinishedCallback>
  8874. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  8875. }
  8876. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  8877. 8003b96: 687b ldr r3, [r7, #4]
  8878. 8003b98: 2200 movs r2, #0
  8879. 8003b9a: 771a strb r2, [r3, #28]
  8880. }
  8881. }
  8882. /* Capture compare 4 event */
  8883. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  8884. 8003b9c: 687b ldr r3, [r7, #4]
  8885. 8003b9e: 681b ldr r3, [r3, #0]
  8886. 8003ba0: 691b ldr r3, [r3, #16]
  8887. 8003ba2: f003 0310 and.w r3, r3, #16
  8888. 8003ba6: 2b10 cmp r3, #16
  8889. 8003ba8: d122 bne.n 8003bf0 <HAL_TIM_IRQHandler+0x158>
  8890. {
  8891. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
  8892. 8003baa: 687b ldr r3, [r7, #4]
  8893. 8003bac: 681b ldr r3, [r3, #0]
  8894. 8003bae: 68db ldr r3, [r3, #12]
  8895. 8003bb0: f003 0310 and.w r3, r3, #16
  8896. 8003bb4: 2b10 cmp r3, #16
  8897. 8003bb6: d11b bne.n 8003bf0 <HAL_TIM_IRQHandler+0x158>
  8898. {
  8899. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  8900. 8003bb8: 687b ldr r3, [r7, #4]
  8901. 8003bba: 681b ldr r3, [r3, #0]
  8902. 8003bbc: f06f 0210 mvn.w r2, #16
  8903. 8003bc0: 611a str r2, [r3, #16]
  8904. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  8905. 8003bc2: 687b ldr r3, [r7, #4]
  8906. 8003bc4: 2208 movs r2, #8
  8907. 8003bc6: 771a strb r2, [r3, #28]
  8908. /* Input capture event */
  8909. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  8910. 8003bc8: 687b ldr r3, [r7, #4]
  8911. 8003bca: 681b ldr r3, [r3, #0]
  8912. 8003bcc: 69db ldr r3, [r3, #28]
  8913. 8003bce: f403 7340 and.w r3, r3, #768 ; 0x300
  8914. 8003bd2: 2b00 cmp r3, #0
  8915. 8003bd4: d003 beq.n 8003bde <HAL_TIM_IRQHandler+0x146>
  8916. {
  8917. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8918. htim->IC_CaptureCallback(htim);
  8919. #else
  8920. HAL_TIM_IC_CaptureCallback(htim);
  8921. 8003bd6: 6878 ldr r0, [r7, #4]
  8922. 8003bd8: f000 f86f bl 8003cba <HAL_TIM_IC_CaptureCallback>
  8923. 8003bdc: e005 b.n 8003bea <HAL_TIM_IRQHandler+0x152>
  8924. {
  8925. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8926. htim->OC_DelayElapsedCallback(htim);
  8927. htim->PWM_PulseFinishedCallback(htim);
  8928. #else
  8929. HAL_TIM_OC_DelayElapsedCallback(htim);
  8930. 8003bde: 6878 ldr r0, [r7, #4]
  8931. 8003be0: f000 f862 bl 8003ca8 <HAL_TIM_OC_DelayElapsedCallback>
  8932. HAL_TIM_PWM_PulseFinishedCallback(htim);
  8933. 8003be4: 6878 ldr r0, [r7, #4]
  8934. 8003be6: f000 f871 bl 8003ccc <HAL_TIM_PWM_PulseFinishedCallback>
  8935. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  8936. }
  8937. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  8938. 8003bea: 687b ldr r3, [r7, #4]
  8939. 8003bec: 2200 movs r2, #0
  8940. 8003bee: 771a strb r2, [r3, #28]
  8941. }
  8942. }
  8943. /* TIM Update event */
  8944. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  8945. 8003bf0: 687b ldr r3, [r7, #4]
  8946. 8003bf2: 681b ldr r3, [r3, #0]
  8947. 8003bf4: 691b ldr r3, [r3, #16]
  8948. 8003bf6: f003 0301 and.w r3, r3, #1
  8949. 8003bfa: 2b01 cmp r3, #1
  8950. 8003bfc: d10e bne.n 8003c1c <HAL_TIM_IRQHandler+0x184>
  8951. {
  8952. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
  8953. 8003bfe: 687b ldr r3, [r7, #4]
  8954. 8003c00: 681b ldr r3, [r3, #0]
  8955. 8003c02: 68db ldr r3, [r3, #12]
  8956. 8003c04: f003 0301 and.w r3, r3, #1
  8957. 8003c08: 2b01 cmp r3, #1
  8958. 8003c0a: d107 bne.n 8003c1c <HAL_TIM_IRQHandler+0x184>
  8959. {
  8960. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  8961. 8003c0c: 687b ldr r3, [r7, #4]
  8962. 8003c0e: 681b ldr r3, [r3, #0]
  8963. 8003c10: f06f 0201 mvn.w r2, #1
  8964. 8003c14: 611a str r2, [r3, #16]
  8965. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8966. htim->PeriodElapsedCallback(htim);
  8967. #else
  8968. HAL_TIM_PeriodElapsedCallback(htim);
  8969. 8003c16: 6878 ldr r0, [r7, #4]
  8970. 8003c18: f001 fb06 bl 8005228 <HAL_TIM_PeriodElapsedCallback>
  8971. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  8972. }
  8973. }
  8974. /* TIM Break input event */
  8975. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET)
  8976. 8003c1c: 687b ldr r3, [r7, #4]
  8977. 8003c1e: 681b ldr r3, [r3, #0]
  8978. 8003c20: 691b ldr r3, [r3, #16]
  8979. 8003c22: f003 0380 and.w r3, r3, #128 ; 0x80
  8980. 8003c26: 2b80 cmp r3, #128 ; 0x80
  8981. 8003c28: d10e bne.n 8003c48 <HAL_TIM_IRQHandler+0x1b0>
  8982. {
  8983. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET)
  8984. 8003c2a: 687b ldr r3, [r7, #4]
  8985. 8003c2c: 681b ldr r3, [r3, #0]
  8986. 8003c2e: 68db ldr r3, [r3, #12]
  8987. 8003c30: f003 0380 and.w r3, r3, #128 ; 0x80
  8988. 8003c34: 2b80 cmp r3, #128 ; 0x80
  8989. 8003c36: d107 bne.n 8003c48 <HAL_TIM_IRQHandler+0x1b0>
  8990. {
  8991. __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
  8992. 8003c38: 687b ldr r3, [r7, #4]
  8993. 8003c3a: 681b ldr r3, [r3, #0]
  8994. 8003c3c: f06f 0280 mvn.w r2, #128 ; 0x80
  8995. 8003c40: 611a str r2, [r3, #16]
  8996. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  8997. htim->BreakCallback(htim);
  8998. #else
  8999. HAL_TIMEx_BreakCallback(htim);
  9000. 8003c42: 6878 ldr r0, [r7, #4]
  9001. 8003c44: f000 f921 bl 8003e8a <HAL_TIMEx_BreakCallback>
  9002. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9003. }
  9004. }
  9005. /* TIM Trigger detection event */
  9006. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  9007. 8003c48: 687b ldr r3, [r7, #4]
  9008. 8003c4a: 681b ldr r3, [r3, #0]
  9009. 8003c4c: 691b ldr r3, [r3, #16]
  9010. 8003c4e: f003 0340 and.w r3, r3, #64 ; 0x40
  9011. 8003c52: 2b40 cmp r3, #64 ; 0x40
  9012. 8003c54: d10e bne.n 8003c74 <HAL_TIM_IRQHandler+0x1dc>
  9013. {
  9014. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
  9015. 8003c56: 687b ldr r3, [r7, #4]
  9016. 8003c58: 681b ldr r3, [r3, #0]
  9017. 8003c5a: 68db ldr r3, [r3, #12]
  9018. 8003c5c: f003 0340 and.w r3, r3, #64 ; 0x40
  9019. 8003c60: 2b40 cmp r3, #64 ; 0x40
  9020. 8003c62: d107 bne.n 8003c74 <HAL_TIM_IRQHandler+0x1dc>
  9021. {
  9022. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  9023. 8003c64: 687b ldr r3, [r7, #4]
  9024. 8003c66: 681b ldr r3, [r3, #0]
  9025. 8003c68: f06f 0240 mvn.w r2, #64 ; 0x40
  9026. 8003c6c: 611a str r2, [r3, #16]
  9027. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9028. htim->TriggerCallback(htim);
  9029. #else
  9030. HAL_TIM_TriggerCallback(htim);
  9031. 8003c6e: 6878 ldr r0, [r7, #4]
  9032. 8003c70: f000 f835 bl 8003cde <HAL_TIM_TriggerCallback>
  9033. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9034. }
  9035. }
  9036. /* TIM commutation event */
  9037. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET)
  9038. 8003c74: 687b ldr r3, [r7, #4]
  9039. 8003c76: 681b ldr r3, [r3, #0]
  9040. 8003c78: 691b ldr r3, [r3, #16]
  9041. 8003c7a: f003 0320 and.w r3, r3, #32
  9042. 8003c7e: 2b20 cmp r3, #32
  9043. 8003c80: d10e bne.n 8003ca0 <HAL_TIM_IRQHandler+0x208>
  9044. {
  9045. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET)
  9046. 8003c82: 687b ldr r3, [r7, #4]
  9047. 8003c84: 681b ldr r3, [r3, #0]
  9048. 8003c86: 68db ldr r3, [r3, #12]
  9049. 8003c88: f003 0320 and.w r3, r3, #32
  9050. 8003c8c: 2b20 cmp r3, #32
  9051. 8003c8e: d107 bne.n 8003ca0 <HAL_TIM_IRQHandler+0x208>
  9052. {
  9053. __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
  9054. 8003c90: 687b ldr r3, [r7, #4]
  9055. 8003c92: 681b ldr r3, [r3, #0]
  9056. 8003c94: f06f 0220 mvn.w r2, #32
  9057. 8003c98: 611a str r2, [r3, #16]
  9058. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9059. htim->CommutationCallback(htim);
  9060. #else
  9061. HAL_TIMEx_CommutCallback(htim);
  9062. 8003c9a: 6878 ldr r0, [r7, #4]
  9063. 8003c9c: f000 f8ec bl 8003e78 <HAL_TIMEx_CommutCallback>
  9064. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9065. }
  9066. }
  9067. }
  9068. 8003ca0: bf00 nop
  9069. 8003ca2: 3708 adds r7, #8
  9070. 8003ca4: 46bd mov sp, r7
  9071. 8003ca6: bd80 pop {r7, pc}
  9072. 08003ca8 <HAL_TIM_OC_DelayElapsedCallback>:
  9073. * @brief Output Compare callback in non-blocking mode
  9074. * @param htim TIM OC handle
  9075. * @retval None
  9076. */
  9077. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  9078. {
  9079. 8003ca8: b480 push {r7}
  9080. 8003caa: b083 sub sp, #12
  9081. 8003cac: af00 add r7, sp, #0
  9082. 8003cae: 6078 str r0, [r7, #4]
  9083. UNUSED(htim);
  9084. /* NOTE : This function should not be modified, when the callback is needed,
  9085. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  9086. */
  9087. }
  9088. 8003cb0: bf00 nop
  9089. 8003cb2: 370c adds r7, #12
  9090. 8003cb4: 46bd mov sp, r7
  9091. 8003cb6: bc80 pop {r7}
  9092. 8003cb8: 4770 bx lr
  9093. 08003cba <HAL_TIM_IC_CaptureCallback>:
  9094. * @brief Input Capture callback in non-blocking mode
  9095. * @param htim TIM IC handle
  9096. * @retval None
  9097. */
  9098. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  9099. {
  9100. 8003cba: b480 push {r7}
  9101. 8003cbc: b083 sub sp, #12
  9102. 8003cbe: af00 add r7, sp, #0
  9103. 8003cc0: 6078 str r0, [r7, #4]
  9104. UNUSED(htim);
  9105. /* NOTE : This function should not be modified, when the callback is needed,
  9106. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  9107. */
  9108. }
  9109. 8003cc2: bf00 nop
  9110. 8003cc4: 370c adds r7, #12
  9111. 8003cc6: 46bd mov sp, r7
  9112. 8003cc8: bc80 pop {r7}
  9113. 8003cca: 4770 bx lr
  9114. 08003ccc <HAL_TIM_PWM_PulseFinishedCallback>:
  9115. * @brief PWM Pulse finished callback in non-blocking mode
  9116. * @param htim TIM handle
  9117. * @retval None
  9118. */
  9119. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  9120. {
  9121. 8003ccc: b480 push {r7}
  9122. 8003cce: b083 sub sp, #12
  9123. 8003cd0: af00 add r7, sp, #0
  9124. 8003cd2: 6078 str r0, [r7, #4]
  9125. UNUSED(htim);
  9126. /* NOTE : This function should not be modified, when the callback is needed,
  9127. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  9128. */
  9129. }
  9130. 8003cd4: bf00 nop
  9131. 8003cd6: 370c adds r7, #12
  9132. 8003cd8: 46bd mov sp, r7
  9133. 8003cda: bc80 pop {r7}
  9134. 8003cdc: 4770 bx lr
  9135. 08003cde <HAL_TIM_TriggerCallback>:
  9136. * @brief Hall Trigger detection callback in non-blocking mode
  9137. * @param htim TIM handle
  9138. * @retval None
  9139. */
  9140. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  9141. {
  9142. 8003cde: b480 push {r7}
  9143. 8003ce0: b083 sub sp, #12
  9144. 8003ce2: af00 add r7, sp, #0
  9145. 8003ce4: 6078 str r0, [r7, #4]
  9146. UNUSED(htim);
  9147. /* NOTE : This function should not be modified, when the callback is needed,
  9148. the HAL_TIM_TriggerCallback could be implemented in the user file
  9149. */
  9150. }
  9151. 8003ce6: bf00 nop
  9152. 8003ce8: 370c adds r7, #12
  9153. 8003cea: 46bd mov sp, r7
  9154. 8003cec: bc80 pop {r7}
  9155. 8003cee: 4770 bx lr
  9156. 08003cf0 <TIM_Base_SetConfig>:
  9157. * @param TIMx TIM peripheral
  9158. * @param Structure TIM Base configuration structure
  9159. * @retval None
  9160. */
  9161. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
  9162. {
  9163. 8003cf0: b480 push {r7}
  9164. 8003cf2: b085 sub sp, #20
  9165. 8003cf4: af00 add r7, sp, #0
  9166. 8003cf6: 6078 str r0, [r7, #4]
  9167. 8003cf8: 6039 str r1, [r7, #0]
  9168. uint32_t tmpcr1;
  9169. tmpcr1 = TIMx->CR1;
  9170. 8003cfa: 687b ldr r3, [r7, #4]
  9171. 8003cfc: 681b ldr r3, [r3, #0]
  9172. 8003cfe: 60fb str r3, [r7, #12]
  9173. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  9174. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  9175. 8003d00: 687b ldr r3, [r7, #4]
  9176. 8003d02: 4a35 ldr r2, [pc, #212] ; (8003dd8 <TIM_Base_SetConfig+0xe8>)
  9177. 8003d04: 4293 cmp r3, r2
  9178. 8003d06: d00b beq.n 8003d20 <TIM_Base_SetConfig+0x30>
  9179. 8003d08: 687b ldr r3, [r7, #4]
  9180. 8003d0a: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  9181. 8003d0e: d007 beq.n 8003d20 <TIM_Base_SetConfig+0x30>
  9182. 8003d10: 687b ldr r3, [r7, #4]
  9183. 8003d12: 4a32 ldr r2, [pc, #200] ; (8003ddc <TIM_Base_SetConfig+0xec>)
  9184. 8003d14: 4293 cmp r3, r2
  9185. 8003d16: d003 beq.n 8003d20 <TIM_Base_SetConfig+0x30>
  9186. 8003d18: 687b ldr r3, [r7, #4]
  9187. 8003d1a: 4a31 ldr r2, [pc, #196] ; (8003de0 <TIM_Base_SetConfig+0xf0>)
  9188. 8003d1c: 4293 cmp r3, r2
  9189. 8003d1e: d108 bne.n 8003d32 <TIM_Base_SetConfig+0x42>
  9190. {
  9191. /* Select the Counter Mode */
  9192. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  9193. 8003d20: 68fb ldr r3, [r7, #12]
  9194. 8003d22: f023 0370 bic.w r3, r3, #112 ; 0x70
  9195. 8003d26: 60fb str r3, [r7, #12]
  9196. tmpcr1 |= Structure->CounterMode;
  9197. 8003d28: 683b ldr r3, [r7, #0]
  9198. 8003d2a: 685b ldr r3, [r3, #4]
  9199. 8003d2c: 68fa ldr r2, [r7, #12]
  9200. 8003d2e: 4313 orrs r3, r2
  9201. 8003d30: 60fb str r3, [r7, #12]
  9202. }
  9203. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  9204. 8003d32: 687b ldr r3, [r7, #4]
  9205. 8003d34: 4a28 ldr r2, [pc, #160] ; (8003dd8 <TIM_Base_SetConfig+0xe8>)
  9206. 8003d36: 4293 cmp r3, r2
  9207. 8003d38: d017 beq.n 8003d6a <TIM_Base_SetConfig+0x7a>
  9208. 8003d3a: 687b ldr r3, [r7, #4]
  9209. 8003d3c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  9210. 8003d40: d013 beq.n 8003d6a <TIM_Base_SetConfig+0x7a>
  9211. 8003d42: 687b ldr r3, [r7, #4]
  9212. 8003d44: 4a25 ldr r2, [pc, #148] ; (8003ddc <TIM_Base_SetConfig+0xec>)
  9213. 8003d46: 4293 cmp r3, r2
  9214. 8003d48: d00f beq.n 8003d6a <TIM_Base_SetConfig+0x7a>
  9215. 8003d4a: 687b ldr r3, [r7, #4]
  9216. 8003d4c: 4a24 ldr r2, [pc, #144] ; (8003de0 <TIM_Base_SetConfig+0xf0>)
  9217. 8003d4e: 4293 cmp r3, r2
  9218. 8003d50: d00b beq.n 8003d6a <TIM_Base_SetConfig+0x7a>
  9219. 8003d52: 687b ldr r3, [r7, #4]
  9220. 8003d54: 4a23 ldr r2, [pc, #140] ; (8003de4 <TIM_Base_SetConfig+0xf4>)
  9221. 8003d56: 4293 cmp r3, r2
  9222. 8003d58: d007 beq.n 8003d6a <TIM_Base_SetConfig+0x7a>
  9223. 8003d5a: 687b ldr r3, [r7, #4]
  9224. 8003d5c: 4a22 ldr r2, [pc, #136] ; (8003de8 <TIM_Base_SetConfig+0xf8>)
  9225. 8003d5e: 4293 cmp r3, r2
  9226. 8003d60: d003 beq.n 8003d6a <TIM_Base_SetConfig+0x7a>
  9227. 8003d62: 687b ldr r3, [r7, #4]
  9228. 8003d64: 4a21 ldr r2, [pc, #132] ; (8003dec <TIM_Base_SetConfig+0xfc>)
  9229. 8003d66: 4293 cmp r3, r2
  9230. 8003d68: d108 bne.n 8003d7c <TIM_Base_SetConfig+0x8c>
  9231. {
  9232. /* Set the clock division */
  9233. tmpcr1 &= ~TIM_CR1_CKD;
  9234. 8003d6a: 68fb ldr r3, [r7, #12]
  9235. 8003d6c: f423 7340 bic.w r3, r3, #768 ; 0x300
  9236. 8003d70: 60fb str r3, [r7, #12]
  9237. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  9238. 8003d72: 683b ldr r3, [r7, #0]
  9239. 8003d74: 68db ldr r3, [r3, #12]
  9240. 8003d76: 68fa ldr r2, [r7, #12]
  9241. 8003d78: 4313 orrs r3, r2
  9242. 8003d7a: 60fb str r3, [r7, #12]
  9243. }
  9244. /* Set the auto-reload preload */
  9245. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  9246. 8003d7c: 68fb ldr r3, [r7, #12]
  9247. 8003d7e: f023 0280 bic.w r2, r3, #128 ; 0x80
  9248. 8003d82: 683b ldr r3, [r7, #0]
  9249. 8003d84: 695b ldr r3, [r3, #20]
  9250. 8003d86: 4313 orrs r3, r2
  9251. 8003d88: 60fb str r3, [r7, #12]
  9252. TIMx->CR1 = tmpcr1;
  9253. 8003d8a: 687b ldr r3, [r7, #4]
  9254. 8003d8c: 68fa ldr r2, [r7, #12]
  9255. 8003d8e: 601a str r2, [r3, #0]
  9256. /* Set the Autoreload value */
  9257. TIMx->ARR = (uint32_t)Structure->Period ;
  9258. 8003d90: 683b ldr r3, [r7, #0]
  9259. 8003d92: 689a ldr r2, [r3, #8]
  9260. 8003d94: 687b ldr r3, [r7, #4]
  9261. 8003d96: 62da str r2, [r3, #44] ; 0x2c
  9262. /* Set the Prescaler value */
  9263. TIMx->PSC = Structure->Prescaler;
  9264. 8003d98: 683b ldr r3, [r7, #0]
  9265. 8003d9a: 681a ldr r2, [r3, #0]
  9266. 8003d9c: 687b ldr r3, [r7, #4]
  9267. 8003d9e: 629a str r2, [r3, #40] ; 0x28
  9268. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  9269. 8003da0: 687b ldr r3, [r7, #4]
  9270. 8003da2: 4a0d ldr r2, [pc, #52] ; (8003dd8 <TIM_Base_SetConfig+0xe8>)
  9271. 8003da4: 4293 cmp r3, r2
  9272. 8003da6: d00b beq.n 8003dc0 <TIM_Base_SetConfig+0xd0>
  9273. 8003da8: 687b ldr r3, [r7, #4]
  9274. 8003daa: 4a0e ldr r2, [pc, #56] ; (8003de4 <TIM_Base_SetConfig+0xf4>)
  9275. 8003dac: 4293 cmp r3, r2
  9276. 8003dae: d007 beq.n 8003dc0 <TIM_Base_SetConfig+0xd0>
  9277. 8003db0: 687b ldr r3, [r7, #4]
  9278. 8003db2: 4a0d ldr r2, [pc, #52] ; (8003de8 <TIM_Base_SetConfig+0xf8>)
  9279. 8003db4: 4293 cmp r3, r2
  9280. 8003db6: d003 beq.n 8003dc0 <TIM_Base_SetConfig+0xd0>
  9281. 8003db8: 687b ldr r3, [r7, #4]
  9282. 8003dba: 4a0c ldr r2, [pc, #48] ; (8003dec <TIM_Base_SetConfig+0xfc>)
  9283. 8003dbc: 4293 cmp r3, r2
  9284. 8003dbe: d103 bne.n 8003dc8 <TIM_Base_SetConfig+0xd8>
  9285. {
  9286. /* Set the Repetition Counter value */
  9287. TIMx->RCR = Structure->RepetitionCounter;
  9288. 8003dc0: 683b ldr r3, [r7, #0]
  9289. 8003dc2: 691a ldr r2, [r3, #16]
  9290. 8003dc4: 687b ldr r3, [r7, #4]
  9291. 8003dc6: 631a str r2, [r3, #48] ; 0x30
  9292. }
  9293. /* Generate an update event to reload the Prescaler
  9294. and the repetition counter (only for advanced timer) value immediately */
  9295. TIMx->EGR = TIM_EGR_UG;
  9296. 8003dc8: 687b ldr r3, [r7, #4]
  9297. 8003dca: 2201 movs r2, #1
  9298. 8003dcc: 615a str r2, [r3, #20]
  9299. }
  9300. 8003dce: bf00 nop
  9301. 8003dd0: 3714 adds r7, #20
  9302. 8003dd2: 46bd mov sp, r7
  9303. 8003dd4: bc80 pop {r7}
  9304. 8003dd6: 4770 bx lr
  9305. 8003dd8: 40012c00 .word 0x40012c00
  9306. 8003ddc: 40000400 .word 0x40000400
  9307. 8003de0: 40000800 .word 0x40000800
  9308. 8003de4: 40014000 .word 0x40014000
  9309. 8003de8: 40014400 .word 0x40014400
  9310. 8003dec: 40014800 .word 0x40014800
  9311. 08003df0 <HAL_TIMEx_MasterConfigSynchronization>:
  9312. * mode.
  9313. * @retval HAL status
  9314. */
  9315. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  9316. TIM_MasterConfigTypeDef *sMasterConfig)
  9317. {
  9318. 8003df0: b480 push {r7}
  9319. 8003df2: b085 sub sp, #20
  9320. 8003df4: af00 add r7, sp, #0
  9321. 8003df6: 6078 str r0, [r7, #4]
  9322. 8003df8: 6039 str r1, [r7, #0]
  9323. assert_param(IS_TIM_SYNCHRO_INSTANCE(htim->Instance));
  9324. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  9325. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  9326. /* Check input state */
  9327. __HAL_LOCK(htim);
  9328. 8003dfa: 687b ldr r3, [r7, #4]
  9329. 8003dfc: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  9330. 8003e00: 2b01 cmp r3, #1
  9331. 8003e02: d101 bne.n 8003e08 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  9332. 8003e04: 2302 movs r3, #2
  9333. 8003e06: e032 b.n 8003e6e <HAL_TIMEx_MasterConfigSynchronization+0x7e>
  9334. 8003e08: 687b ldr r3, [r7, #4]
  9335. 8003e0a: 2201 movs r2, #1
  9336. 8003e0c: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9337. /* Change the handler state */
  9338. htim->State = HAL_TIM_STATE_BUSY;
  9339. 8003e10: 687b ldr r3, [r7, #4]
  9340. 8003e12: 2202 movs r2, #2
  9341. 8003e14: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9342. /* Get the TIMx CR2 register value */
  9343. tmpcr2 = htim->Instance->CR2;
  9344. 8003e18: 687b ldr r3, [r7, #4]
  9345. 8003e1a: 681b ldr r3, [r3, #0]
  9346. 8003e1c: 685b ldr r3, [r3, #4]
  9347. 8003e1e: 60fb str r3, [r7, #12]
  9348. /* Get the TIMx SMCR register value */
  9349. tmpsmcr = htim->Instance->SMCR;
  9350. 8003e20: 687b ldr r3, [r7, #4]
  9351. 8003e22: 681b ldr r3, [r3, #0]
  9352. 8003e24: 689b ldr r3, [r3, #8]
  9353. 8003e26: 60bb str r3, [r7, #8]
  9354. /* Reset the MMS Bits */
  9355. tmpcr2 &= ~TIM_CR2_MMS;
  9356. 8003e28: 68fb ldr r3, [r7, #12]
  9357. 8003e2a: f023 0370 bic.w r3, r3, #112 ; 0x70
  9358. 8003e2e: 60fb str r3, [r7, #12]
  9359. /* Select the TRGO source */
  9360. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  9361. 8003e30: 683b ldr r3, [r7, #0]
  9362. 8003e32: 681b ldr r3, [r3, #0]
  9363. 8003e34: 68fa ldr r2, [r7, #12]
  9364. 8003e36: 4313 orrs r3, r2
  9365. 8003e38: 60fb str r3, [r7, #12]
  9366. /* Reset the MSM Bit */
  9367. tmpsmcr &= ~TIM_SMCR_MSM;
  9368. 8003e3a: 68bb ldr r3, [r7, #8]
  9369. 8003e3c: f023 0380 bic.w r3, r3, #128 ; 0x80
  9370. 8003e40: 60bb str r3, [r7, #8]
  9371. /* Set master mode */
  9372. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  9373. 8003e42: 683b ldr r3, [r7, #0]
  9374. 8003e44: 685b ldr r3, [r3, #4]
  9375. 8003e46: 68ba ldr r2, [r7, #8]
  9376. 8003e48: 4313 orrs r3, r2
  9377. 8003e4a: 60bb str r3, [r7, #8]
  9378. /* Update TIMx CR2 */
  9379. htim->Instance->CR2 = tmpcr2;
  9380. 8003e4c: 687b ldr r3, [r7, #4]
  9381. 8003e4e: 681b ldr r3, [r3, #0]
  9382. 8003e50: 68fa ldr r2, [r7, #12]
  9383. 8003e52: 605a str r2, [r3, #4]
  9384. /* Update TIMx SMCR */
  9385. htim->Instance->SMCR = tmpsmcr;
  9386. 8003e54: 687b ldr r3, [r7, #4]
  9387. 8003e56: 681b ldr r3, [r3, #0]
  9388. 8003e58: 68ba ldr r2, [r7, #8]
  9389. 8003e5a: 609a str r2, [r3, #8]
  9390. /* Change the htim state */
  9391. htim->State = HAL_TIM_STATE_READY;
  9392. 8003e5c: 687b ldr r3, [r7, #4]
  9393. 8003e5e: 2201 movs r2, #1
  9394. 8003e60: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9395. __HAL_UNLOCK(htim);
  9396. 8003e64: 687b ldr r3, [r7, #4]
  9397. 8003e66: 2200 movs r2, #0
  9398. 8003e68: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9399. return HAL_OK;
  9400. 8003e6c: 2300 movs r3, #0
  9401. }
  9402. 8003e6e: 4618 mov r0, r3
  9403. 8003e70: 3714 adds r7, #20
  9404. 8003e72: 46bd mov sp, r7
  9405. 8003e74: bc80 pop {r7}
  9406. 8003e76: 4770 bx lr
  9407. 08003e78 <HAL_TIMEx_CommutCallback>:
  9408. * @brief Hall commutation changed callback in non-blocking mode
  9409. * @param htim TIM handle
  9410. * @retval None
  9411. */
  9412. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  9413. {
  9414. 8003e78: b480 push {r7}
  9415. 8003e7a: b083 sub sp, #12
  9416. 8003e7c: af00 add r7, sp, #0
  9417. 8003e7e: 6078 str r0, [r7, #4]
  9418. UNUSED(htim);
  9419. /* NOTE : This function should not be modified, when the callback is needed,
  9420. the HAL_TIMEx_CommutCallback could be implemented in the user file
  9421. */
  9422. }
  9423. 8003e80: bf00 nop
  9424. 8003e82: 370c adds r7, #12
  9425. 8003e84: 46bd mov sp, r7
  9426. 8003e86: bc80 pop {r7}
  9427. 8003e88: 4770 bx lr
  9428. 08003e8a <HAL_TIMEx_BreakCallback>:
  9429. * @brief Hall Break detection callback in non-blocking mode
  9430. * @param htim TIM handle
  9431. * @retval None
  9432. */
  9433. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  9434. {
  9435. 8003e8a: b480 push {r7}
  9436. 8003e8c: b083 sub sp, #12
  9437. 8003e8e: af00 add r7, sp, #0
  9438. 8003e90: 6078 str r0, [r7, #4]
  9439. UNUSED(htim);
  9440. /* NOTE : This function should not be modified, when the callback is needed,
  9441. the HAL_TIMEx_BreakCallback could be implemented in the user file
  9442. */
  9443. }
  9444. 8003e92: bf00 nop
  9445. 8003e94: 370c adds r7, #12
  9446. 8003e96: 46bd mov sp, r7
  9447. 8003e98: bc80 pop {r7}
  9448. 8003e9a: 4770 bx lr
  9449. 08003e9c <HAL_UART_Init>:
  9450. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  9451. * the configuration information for the specified UART module.
  9452. * @retval HAL status
  9453. */
  9454. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  9455. {
  9456. 8003e9c: b580 push {r7, lr}
  9457. 8003e9e: b082 sub sp, #8
  9458. 8003ea0: af00 add r7, sp, #0
  9459. 8003ea2: 6078 str r0, [r7, #4]
  9460. /* Check the UART handle allocation */
  9461. if (huart == NULL)
  9462. 8003ea4: 687b ldr r3, [r7, #4]
  9463. 8003ea6: 2b00 cmp r3, #0
  9464. 8003ea8: d101 bne.n 8003eae <HAL_UART_Init+0x12>
  9465. {
  9466. return HAL_ERROR;
  9467. 8003eaa: 2301 movs r3, #1
  9468. 8003eac: e03f b.n 8003f2e <HAL_UART_Init+0x92>
  9469. assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
  9470. #if defined(USART_CR1_OVER8)
  9471. assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
  9472. #endif /* USART_CR1_OVER8 */
  9473. if (huart->gState == HAL_UART_STATE_RESET)
  9474. 8003eae: 687b ldr r3, [r7, #4]
  9475. 8003eb0: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  9476. 8003eb4: b2db uxtb r3, r3
  9477. 8003eb6: 2b00 cmp r3, #0
  9478. 8003eb8: d106 bne.n 8003ec8 <HAL_UART_Init+0x2c>
  9479. {
  9480. /* Allocate lock resource and initialize it */
  9481. huart->Lock = HAL_UNLOCKED;
  9482. 8003eba: 687b ldr r3, [r7, #4]
  9483. 8003ebc: 2200 movs r2, #0
  9484. 8003ebe: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9485. /* Init the low level hardware */
  9486. huart->MspInitCallback(huart);
  9487. #else
  9488. /* Init the low level hardware : GPIO, CLOCK */
  9489. HAL_UART_MspInit(huart);
  9490. 8003ec2: 6878 ldr r0, [r7, #4]
  9491. 8003ec4: f001 fa92 bl 80053ec <HAL_UART_MspInit>
  9492. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  9493. }
  9494. huart->gState = HAL_UART_STATE_BUSY;
  9495. 8003ec8: 687b ldr r3, [r7, #4]
  9496. 8003eca: 2224 movs r2, #36 ; 0x24
  9497. 8003ecc: f883 2039 strb.w r2, [r3, #57] ; 0x39
  9498. /* Disable the peripheral */
  9499. __HAL_UART_DISABLE(huart);
  9500. 8003ed0: 687b ldr r3, [r7, #4]
  9501. 8003ed2: 681b ldr r3, [r3, #0]
  9502. 8003ed4: 68da ldr r2, [r3, #12]
  9503. 8003ed6: 687b ldr r3, [r7, #4]
  9504. 8003ed8: 681b ldr r3, [r3, #0]
  9505. 8003eda: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  9506. 8003ede: 60da str r2, [r3, #12]
  9507. /* Set the UART Communication parameters */
  9508. UART_SetConfig(huart);
  9509. 8003ee0: 6878 ldr r0, [r7, #4]
  9510. 8003ee2: f000 fd63 bl 80049ac <UART_SetConfig>
  9511. /* In asynchronous mode, the following bits must be kept cleared:
  9512. - LINEN and CLKEN bits in the USART_CR2 register,
  9513. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  9514. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  9515. 8003ee6: 687b ldr r3, [r7, #4]
  9516. 8003ee8: 681b ldr r3, [r3, #0]
  9517. 8003eea: 691a ldr r2, [r3, #16]
  9518. 8003eec: 687b ldr r3, [r7, #4]
  9519. 8003eee: 681b ldr r3, [r3, #0]
  9520. 8003ef0: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  9521. 8003ef4: 611a str r2, [r3, #16]
  9522. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  9523. 8003ef6: 687b ldr r3, [r7, #4]
  9524. 8003ef8: 681b ldr r3, [r3, #0]
  9525. 8003efa: 695a ldr r2, [r3, #20]
  9526. 8003efc: 687b ldr r3, [r7, #4]
  9527. 8003efe: 681b ldr r3, [r3, #0]
  9528. 8003f00: f022 022a bic.w r2, r2, #42 ; 0x2a
  9529. 8003f04: 615a str r2, [r3, #20]
  9530. /* Enable the peripheral */
  9531. __HAL_UART_ENABLE(huart);
  9532. 8003f06: 687b ldr r3, [r7, #4]
  9533. 8003f08: 681b ldr r3, [r3, #0]
  9534. 8003f0a: 68da ldr r2, [r3, #12]
  9535. 8003f0c: 687b ldr r3, [r7, #4]
  9536. 8003f0e: 681b ldr r3, [r3, #0]
  9537. 8003f10: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  9538. 8003f14: 60da str r2, [r3, #12]
  9539. /* Initialize the UART state */
  9540. huart->ErrorCode = HAL_UART_ERROR_NONE;
  9541. 8003f16: 687b ldr r3, [r7, #4]
  9542. 8003f18: 2200 movs r2, #0
  9543. 8003f1a: 63da str r2, [r3, #60] ; 0x3c
  9544. huart->gState = HAL_UART_STATE_READY;
  9545. 8003f1c: 687b ldr r3, [r7, #4]
  9546. 8003f1e: 2220 movs r2, #32
  9547. 8003f20: f883 2039 strb.w r2, [r3, #57] ; 0x39
  9548. huart->RxState = HAL_UART_STATE_READY;
  9549. 8003f24: 687b ldr r3, [r7, #4]
  9550. 8003f26: 2220 movs r2, #32
  9551. 8003f28: f883 203a strb.w r2, [r3, #58] ; 0x3a
  9552. return HAL_OK;
  9553. 8003f2c: 2300 movs r3, #0
  9554. }
  9555. 8003f2e: 4618 mov r0, r3
  9556. 8003f30: 3708 adds r7, #8
  9557. 8003f32: 46bd mov sp, r7
  9558. 8003f34: bd80 pop {r7, pc}
  9559. 08003f36 <HAL_UART_Transmit>:
  9560. * @param Size Amount of data elements (u8 or u16) to be sent
  9561. * @param Timeout Timeout duration
  9562. * @retval HAL status
  9563. */
  9564. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
  9565. {
  9566. 8003f36: b580 push {r7, lr}
  9567. 8003f38: b088 sub sp, #32
  9568. 8003f3a: af02 add r7, sp, #8
  9569. 8003f3c: 60f8 str r0, [r7, #12]
  9570. 8003f3e: 60b9 str r1, [r7, #8]
  9571. 8003f40: 603b str r3, [r7, #0]
  9572. 8003f42: 4613 mov r3, r2
  9573. 8003f44: 80fb strh r3, [r7, #6]
  9574. uint16_t *tmp;
  9575. uint32_t tickstart = 0U;
  9576. 8003f46: 2300 movs r3, #0
  9577. 8003f48: 617b str r3, [r7, #20]
  9578. /* Check that a Tx process is not already ongoing */
  9579. if (huart->gState == HAL_UART_STATE_READY)
  9580. 8003f4a: 68fb ldr r3, [r7, #12]
  9581. 8003f4c: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  9582. 8003f50: b2db uxtb r3, r3
  9583. 8003f52: 2b20 cmp r3, #32
  9584. 8003f54: f040 8083 bne.w 800405e <HAL_UART_Transmit+0x128>
  9585. {
  9586. if ((pData == NULL) || (Size == 0U))
  9587. 8003f58: 68bb ldr r3, [r7, #8]
  9588. 8003f5a: 2b00 cmp r3, #0
  9589. 8003f5c: d002 beq.n 8003f64 <HAL_UART_Transmit+0x2e>
  9590. 8003f5e: 88fb ldrh r3, [r7, #6]
  9591. 8003f60: 2b00 cmp r3, #0
  9592. 8003f62: d101 bne.n 8003f68 <HAL_UART_Transmit+0x32>
  9593. {
  9594. return HAL_ERROR;
  9595. 8003f64: 2301 movs r3, #1
  9596. 8003f66: e07b b.n 8004060 <HAL_UART_Transmit+0x12a>
  9597. }
  9598. /* Process Locked */
  9599. __HAL_LOCK(huart);
  9600. 8003f68: 68fb ldr r3, [r7, #12]
  9601. 8003f6a: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  9602. 8003f6e: 2b01 cmp r3, #1
  9603. 8003f70: d101 bne.n 8003f76 <HAL_UART_Transmit+0x40>
  9604. 8003f72: 2302 movs r3, #2
  9605. 8003f74: e074 b.n 8004060 <HAL_UART_Transmit+0x12a>
  9606. 8003f76: 68fb ldr r3, [r7, #12]
  9607. 8003f78: 2201 movs r2, #1
  9608. 8003f7a: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9609. huart->ErrorCode = HAL_UART_ERROR_NONE;
  9610. 8003f7e: 68fb ldr r3, [r7, #12]
  9611. 8003f80: 2200 movs r2, #0
  9612. 8003f82: 63da str r2, [r3, #60] ; 0x3c
  9613. huart->gState = HAL_UART_STATE_BUSY_TX;
  9614. 8003f84: 68fb ldr r3, [r7, #12]
  9615. 8003f86: 2221 movs r2, #33 ; 0x21
  9616. 8003f88: f883 2039 strb.w r2, [r3, #57] ; 0x39
  9617. /* Init tickstart for timeout managment */
  9618. tickstart = HAL_GetTick();
  9619. 8003f8c: f7fd fc5e bl 800184c <HAL_GetTick>
  9620. 8003f90: 6178 str r0, [r7, #20]
  9621. huart->TxXferSize = Size;
  9622. 8003f92: 68fb ldr r3, [r7, #12]
  9623. 8003f94: 88fa ldrh r2, [r7, #6]
  9624. 8003f96: 849a strh r2, [r3, #36] ; 0x24
  9625. huart->TxXferCount = Size;
  9626. 8003f98: 68fb ldr r3, [r7, #12]
  9627. 8003f9a: 88fa ldrh r2, [r7, #6]
  9628. 8003f9c: 84da strh r2, [r3, #38] ; 0x26
  9629. while (huart->TxXferCount > 0U)
  9630. 8003f9e: e042 b.n 8004026 <HAL_UART_Transmit+0xf0>
  9631. {
  9632. huart->TxXferCount--;
  9633. 8003fa0: 68fb ldr r3, [r7, #12]
  9634. 8003fa2: 8cdb ldrh r3, [r3, #38] ; 0x26
  9635. 8003fa4: b29b uxth r3, r3
  9636. 8003fa6: 3b01 subs r3, #1
  9637. 8003fa8: b29a uxth r2, r3
  9638. 8003faa: 68fb ldr r3, [r7, #12]
  9639. 8003fac: 84da strh r2, [r3, #38] ; 0x26
  9640. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  9641. 8003fae: 68fb ldr r3, [r7, #12]
  9642. 8003fb0: 689b ldr r3, [r3, #8]
  9643. 8003fb2: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  9644. 8003fb6: d122 bne.n 8003ffe <HAL_UART_Transmit+0xc8>
  9645. {
  9646. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  9647. 8003fb8: 683b ldr r3, [r7, #0]
  9648. 8003fba: 9300 str r3, [sp, #0]
  9649. 8003fbc: 697b ldr r3, [r7, #20]
  9650. 8003fbe: 2200 movs r2, #0
  9651. 8003fc0: 2180 movs r1, #128 ; 0x80
  9652. 8003fc2: 68f8 ldr r0, [r7, #12]
  9653. 8003fc4: f000 fb73 bl 80046ae <UART_WaitOnFlagUntilTimeout>
  9654. 8003fc8: 4603 mov r3, r0
  9655. 8003fca: 2b00 cmp r3, #0
  9656. 8003fcc: d001 beq.n 8003fd2 <HAL_UART_Transmit+0x9c>
  9657. {
  9658. return HAL_TIMEOUT;
  9659. 8003fce: 2303 movs r3, #3
  9660. 8003fd0: e046 b.n 8004060 <HAL_UART_Transmit+0x12a>
  9661. }
  9662. tmp = (uint16_t *) pData;
  9663. 8003fd2: 68bb ldr r3, [r7, #8]
  9664. 8003fd4: 613b str r3, [r7, #16]
  9665. huart->Instance->DR = (*tmp & (uint16_t)0x01FF);
  9666. 8003fd6: 693b ldr r3, [r7, #16]
  9667. 8003fd8: 881b ldrh r3, [r3, #0]
  9668. 8003fda: 461a mov r2, r3
  9669. 8003fdc: 68fb ldr r3, [r7, #12]
  9670. 8003fde: 681b ldr r3, [r3, #0]
  9671. 8003fe0: f3c2 0208 ubfx r2, r2, #0, #9
  9672. 8003fe4: 605a str r2, [r3, #4]
  9673. if (huart->Init.Parity == UART_PARITY_NONE)
  9674. 8003fe6: 68fb ldr r3, [r7, #12]
  9675. 8003fe8: 691b ldr r3, [r3, #16]
  9676. 8003fea: 2b00 cmp r3, #0
  9677. 8003fec: d103 bne.n 8003ff6 <HAL_UART_Transmit+0xc0>
  9678. {
  9679. pData += 2U;
  9680. 8003fee: 68bb ldr r3, [r7, #8]
  9681. 8003ff0: 3302 adds r3, #2
  9682. 8003ff2: 60bb str r3, [r7, #8]
  9683. 8003ff4: e017 b.n 8004026 <HAL_UART_Transmit+0xf0>
  9684. }
  9685. else
  9686. {
  9687. pData += 1U;
  9688. 8003ff6: 68bb ldr r3, [r7, #8]
  9689. 8003ff8: 3301 adds r3, #1
  9690. 8003ffa: 60bb str r3, [r7, #8]
  9691. 8003ffc: e013 b.n 8004026 <HAL_UART_Transmit+0xf0>
  9692. }
  9693. }
  9694. else
  9695. {
  9696. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  9697. 8003ffe: 683b ldr r3, [r7, #0]
  9698. 8004000: 9300 str r3, [sp, #0]
  9699. 8004002: 697b ldr r3, [r7, #20]
  9700. 8004004: 2200 movs r2, #0
  9701. 8004006: 2180 movs r1, #128 ; 0x80
  9702. 8004008: 68f8 ldr r0, [r7, #12]
  9703. 800400a: f000 fb50 bl 80046ae <UART_WaitOnFlagUntilTimeout>
  9704. 800400e: 4603 mov r3, r0
  9705. 8004010: 2b00 cmp r3, #0
  9706. 8004012: d001 beq.n 8004018 <HAL_UART_Transmit+0xe2>
  9707. {
  9708. return HAL_TIMEOUT;
  9709. 8004014: 2303 movs r3, #3
  9710. 8004016: e023 b.n 8004060 <HAL_UART_Transmit+0x12a>
  9711. }
  9712. huart->Instance->DR = (*pData++ & (uint8_t)0xFF);
  9713. 8004018: 68bb ldr r3, [r7, #8]
  9714. 800401a: 1c5a adds r2, r3, #1
  9715. 800401c: 60ba str r2, [r7, #8]
  9716. 800401e: 781a ldrb r2, [r3, #0]
  9717. 8004020: 68fb ldr r3, [r7, #12]
  9718. 8004022: 681b ldr r3, [r3, #0]
  9719. 8004024: 605a str r2, [r3, #4]
  9720. while (huart->TxXferCount > 0U)
  9721. 8004026: 68fb ldr r3, [r7, #12]
  9722. 8004028: 8cdb ldrh r3, [r3, #38] ; 0x26
  9723. 800402a: b29b uxth r3, r3
  9724. 800402c: 2b00 cmp r3, #0
  9725. 800402e: d1b7 bne.n 8003fa0 <HAL_UART_Transmit+0x6a>
  9726. }
  9727. }
  9728. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  9729. 8004030: 683b ldr r3, [r7, #0]
  9730. 8004032: 9300 str r3, [sp, #0]
  9731. 8004034: 697b ldr r3, [r7, #20]
  9732. 8004036: 2200 movs r2, #0
  9733. 8004038: 2140 movs r1, #64 ; 0x40
  9734. 800403a: 68f8 ldr r0, [r7, #12]
  9735. 800403c: f000 fb37 bl 80046ae <UART_WaitOnFlagUntilTimeout>
  9736. 8004040: 4603 mov r3, r0
  9737. 8004042: 2b00 cmp r3, #0
  9738. 8004044: d001 beq.n 800404a <HAL_UART_Transmit+0x114>
  9739. {
  9740. return HAL_TIMEOUT;
  9741. 8004046: 2303 movs r3, #3
  9742. 8004048: e00a b.n 8004060 <HAL_UART_Transmit+0x12a>
  9743. }
  9744. /* At end of Tx process, restore huart->gState to Ready */
  9745. huart->gState = HAL_UART_STATE_READY;
  9746. 800404a: 68fb ldr r3, [r7, #12]
  9747. 800404c: 2220 movs r2, #32
  9748. 800404e: f883 2039 strb.w r2, [r3, #57] ; 0x39
  9749. /* Process Unlocked */
  9750. __HAL_UNLOCK(huart);
  9751. 8004052: 68fb ldr r3, [r7, #12]
  9752. 8004054: 2200 movs r2, #0
  9753. 8004056: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9754. return HAL_OK;
  9755. 800405a: 2300 movs r3, #0
  9756. 800405c: e000 b.n 8004060 <HAL_UART_Transmit+0x12a>
  9757. }
  9758. else
  9759. {
  9760. return HAL_BUSY;
  9761. 800405e: 2302 movs r3, #2
  9762. }
  9763. }
  9764. 8004060: 4618 mov r0, r3
  9765. 8004062: 3718 adds r7, #24
  9766. 8004064: 46bd mov sp, r7
  9767. 8004066: bd80 pop {r7, pc}
  9768. 08004068 <HAL_UART_Receive_IT>:
  9769. * @param pData Pointer to data buffer (u8 or u16 data elements).
  9770. * @param Size Amount of data elements (u8 or u16) to be received.
  9771. * @retval HAL status
  9772. */
  9773. HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  9774. {
  9775. 8004068: b480 push {r7}
  9776. 800406a: b085 sub sp, #20
  9777. 800406c: af00 add r7, sp, #0
  9778. 800406e: 60f8 str r0, [r7, #12]
  9779. 8004070: 60b9 str r1, [r7, #8]
  9780. 8004072: 4613 mov r3, r2
  9781. 8004074: 80fb strh r3, [r7, #6]
  9782. /* Check that a Rx process is not already ongoing */
  9783. if (huart->RxState == HAL_UART_STATE_READY)
  9784. 8004076: 68fb ldr r3, [r7, #12]
  9785. 8004078: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  9786. 800407c: b2db uxtb r3, r3
  9787. 800407e: 2b20 cmp r3, #32
  9788. 8004080: d140 bne.n 8004104 <HAL_UART_Receive_IT+0x9c>
  9789. {
  9790. if ((pData == NULL) || (Size == 0U))
  9791. 8004082: 68bb ldr r3, [r7, #8]
  9792. 8004084: 2b00 cmp r3, #0
  9793. 8004086: d002 beq.n 800408e <HAL_UART_Receive_IT+0x26>
  9794. 8004088: 88fb ldrh r3, [r7, #6]
  9795. 800408a: 2b00 cmp r3, #0
  9796. 800408c: d101 bne.n 8004092 <HAL_UART_Receive_IT+0x2a>
  9797. {
  9798. return HAL_ERROR;
  9799. 800408e: 2301 movs r3, #1
  9800. 8004090: e039 b.n 8004106 <HAL_UART_Receive_IT+0x9e>
  9801. }
  9802. /* Process Locked */
  9803. __HAL_LOCK(huart);
  9804. 8004092: 68fb ldr r3, [r7, #12]
  9805. 8004094: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  9806. 8004098: 2b01 cmp r3, #1
  9807. 800409a: d101 bne.n 80040a0 <HAL_UART_Receive_IT+0x38>
  9808. 800409c: 2302 movs r3, #2
  9809. 800409e: e032 b.n 8004106 <HAL_UART_Receive_IT+0x9e>
  9810. 80040a0: 68fb ldr r3, [r7, #12]
  9811. 80040a2: 2201 movs r2, #1
  9812. 80040a4: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9813. huart->pRxBuffPtr = pData;
  9814. 80040a8: 68fb ldr r3, [r7, #12]
  9815. 80040aa: 68ba ldr r2, [r7, #8]
  9816. 80040ac: 629a str r2, [r3, #40] ; 0x28
  9817. huart->RxXferSize = Size;
  9818. 80040ae: 68fb ldr r3, [r7, #12]
  9819. 80040b0: 88fa ldrh r2, [r7, #6]
  9820. 80040b2: 859a strh r2, [r3, #44] ; 0x2c
  9821. huart->RxXferCount = Size;
  9822. 80040b4: 68fb ldr r3, [r7, #12]
  9823. 80040b6: 88fa ldrh r2, [r7, #6]
  9824. 80040b8: 85da strh r2, [r3, #46] ; 0x2e
  9825. huart->ErrorCode = HAL_UART_ERROR_NONE;
  9826. 80040ba: 68fb ldr r3, [r7, #12]
  9827. 80040bc: 2200 movs r2, #0
  9828. 80040be: 63da str r2, [r3, #60] ; 0x3c
  9829. huart->RxState = HAL_UART_STATE_BUSY_RX;
  9830. 80040c0: 68fb ldr r3, [r7, #12]
  9831. 80040c2: 2222 movs r2, #34 ; 0x22
  9832. 80040c4: f883 203a strb.w r2, [r3, #58] ; 0x3a
  9833. /* Process Unlocked */
  9834. __HAL_UNLOCK(huart);
  9835. 80040c8: 68fb ldr r3, [r7, #12]
  9836. 80040ca: 2200 movs r2, #0
  9837. 80040cc: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9838. /* Enable the UART Parity Error Interrupt */
  9839. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  9840. 80040d0: 68fb ldr r3, [r7, #12]
  9841. 80040d2: 681b ldr r3, [r3, #0]
  9842. 80040d4: 68da ldr r2, [r3, #12]
  9843. 80040d6: 68fb ldr r3, [r7, #12]
  9844. 80040d8: 681b ldr r3, [r3, #0]
  9845. 80040da: f442 7280 orr.w r2, r2, #256 ; 0x100
  9846. 80040de: 60da str r2, [r3, #12]
  9847. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  9848. __HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
  9849. 80040e0: 68fb ldr r3, [r7, #12]
  9850. 80040e2: 681b ldr r3, [r3, #0]
  9851. 80040e4: 695a ldr r2, [r3, #20]
  9852. 80040e6: 68fb ldr r3, [r7, #12]
  9853. 80040e8: 681b ldr r3, [r3, #0]
  9854. 80040ea: f042 0201 orr.w r2, r2, #1
  9855. 80040ee: 615a str r2, [r3, #20]
  9856. /* Enable the UART Data Register not empty Interrupt */
  9857. __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE);
  9858. 80040f0: 68fb ldr r3, [r7, #12]
  9859. 80040f2: 681b ldr r3, [r3, #0]
  9860. 80040f4: 68da ldr r2, [r3, #12]
  9861. 80040f6: 68fb ldr r3, [r7, #12]
  9862. 80040f8: 681b ldr r3, [r3, #0]
  9863. 80040fa: f042 0220 orr.w r2, r2, #32
  9864. 80040fe: 60da str r2, [r3, #12]
  9865. return HAL_OK;
  9866. 8004100: 2300 movs r3, #0
  9867. 8004102: e000 b.n 8004106 <HAL_UART_Receive_IT+0x9e>
  9868. }
  9869. else
  9870. {
  9871. return HAL_BUSY;
  9872. 8004104: 2302 movs r3, #2
  9873. }
  9874. }
  9875. 8004106: 4618 mov r0, r3
  9876. 8004108: 3714 adds r7, #20
  9877. 800410a: 46bd mov sp, r7
  9878. 800410c: bc80 pop {r7}
  9879. 800410e: 4770 bx lr
  9880. 08004110 <HAL_UART_Transmit_DMA>:
  9881. * @param pData Pointer to data buffer (u8 or u16 data elements).
  9882. * @param Size Amount of data elements (u8 or u16) to be sent
  9883. * @retval HAL status
  9884. */
  9885. HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  9886. {
  9887. 8004110: b580 push {r7, lr}
  9888. 8004112: b086 sub sp, #24
  9889. 8004114: af00 add r7, sp, #0
  9890. 8004116: 60f8 str r0, [r7, #12]
  9891. 8004118: 60b9 str r1, [r7, #8]
  9892. 800411a: 4613 mov r3, r2
  9893. 800411c: 80fb strh r3, [r7, #6]
  9894. uint32_t *tmp;
  9895. /* Check that a Tx process is not already ongoing */
  9896. if (huart->gState == HAL_UART_STATE_READY)
  9897. 800411e: 68fb ldr r3, [r7, #12]
  9898. 8004120: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  9899. 8004124: b2db uxtb r3, r3
  9900. 8004126: 2b20 cmp r3, #32
  9901. 8004128: d153 bne.n 80041d2 <HAL_UART_Transmit_DMA+0xc2>
  9902. {
  9903. if ((pData == NULL) || (Size == 0U))
  9904. 800412a: 68bb ldr r3, [r7, #8]
  9905. 800412c: 2b00 cmp r3, #0
  9906. 800412e: d002 beq.n 8004136 <HAL_UART_Transmit_DMA+0x26>
  9907. 8004130: 88fb ldrh r3, [r7, #6]
  9908. 8004132: 2b00 cmp r3, #0
  9909. 8004134: d101 bne.n 800413a <HAL_UART_Transmit_DMA+0x2a>
  9910. {
  9911. return HAL_ERROR;
  9912. 8004136: 2301 movs r3, #1
  9913. 8004138: e04c b.n 80041d4 <HAL_UART_Transmit_DMA+0xc4>
  9914. }
  9915. /* Process Locked */
  9916. __HAL_LOCK(huart);
  9917. 800413a: 68fb ldr r3, [r7, #12]
  9918. 800413c: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  9919. 8004140: 2b01 cmp r3, #1
  9920. 8004142: d101 bne.n 8004148 <HAL_UART_Transmit_DMA+0x38>
  9921. 8004144: 2302 movs r3, #2
  9922. 8004146: e045 b.n 80041d4 <HAL_UART_Transmit_DMA+0xc4>
  9923. 8004148: 68fb ldr r3, [r7, #12]
  9924. 800414a: 2201 movs r2, #1
  9925. 800414c: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9926. huart->pTxBuffPtr = pData;
  9927. 8004150: 68ba ldr r2, [r7, #8]
  9928. 8004152: 68fb ldr r3, [r7, #12]
  9929. 8004154: 621a str r2, [r3, #32]
  9930. huart->TxXferSize = Size;
  9931. 8004156: 68fb ldr r3, [r7, #12]
  9932. 8004158: 88fa ldrh r2, [r7, #6]
  9933. 800415a: 849a strh r2, [r3, #36] ; 0x24
  9934. huart->TxXferCount = Size;
  9935. 800415c: 68fb ldr r3, [r7, #12]
  9936. 800415e: 88fa ldrh r2, [r7, #6]
  9937. 8004160: 84da strh r2, [r3, #38] ; 0x26
  9938. huart->ErrorCode = HAL_UART_ERROR_NONE;
  9939. 8004162: 68fb ldr r3, [r7, #12]
  9940. 8004164: 2200 movs r2, #0
  9941. 8004166: 63da str r2, [r3, #60] ; 0x3c
  9942. huart->gState = HAL_UART_STATE_BUSY_TX;
  9943. 8004168: 68fb ldr r3, [r7, #12]
  9944. 800416a: 2221 movs r2, #33 ; 0x21
  9945. 800416c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  9946. /* Set the UART DMA transfer complete callback */
  9947. huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt;
  9948. 8004170: 68fb ldr r3, [r7, #12]
  9949. 8004172: 6b1b ldr r3, [r3, #48] ; 0x30
  9950. 8004174: 4a19 ldr r2, [pc, #100] ; (80041dc <HAL_UART_Transmit_DMA+0xcc>)
  9951. 8004176: 629a str r2, [r3, #40] ; 0x28
  9952. /* Set the UART DMA Half transfer complete callback */
  9953. huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt;
  9954. 8004178: 68fb ldr r3, [r7, #12]
  9955. 800417a: 6b1b ldr r3, [r3, #48] ; 0x30
  9956. 800417c: 4a18 ldr r2, [pc, #96] ; (80041e0 <HAL_UART_Transmit_DMA+0xd0>)
  9957. 800417e: 62da str r2, [r3, #44] ; 0x2c
  9958. /* Set the DMA error callback */
  9959. huart->hdmatx->XferErrorCallback = UART_DMAError;
  9960. 8004180: 68fb ldr r3, [r7, #12]
  9961. 8004182: 6b1b ldr r3, [r3, #48] ; 0x30
  9962. 8004184: 4a17 ldr r2, [pc, #92] ; (80041e4 <HAL_UART_Transmit_DMA+0xd4>)
  9963. 8004186: 631a str r2, [r3, #48] ; 0x30
  9964. /* Set the DMA abort callback */
  9965. huart->hdmatx->XferAbortCallback = NULL;
  9966. 8004188: 68fb ldr r3, [r7, #12]
  9967. 800418a: 6b1b ldr r3, [r3, #48] ; 0x30
  9968. 800418c: 2200 movs r2, #0
  9969. 800418e: 635a str r2, [r3, #52] ; 0x34
  9970. /* Enable the UART transmit DMA channel */
  9971. tmp = (uint32_t *)&pData;
  9972. 8004190: f107 0308 add.w r3, r7, #8
  9973. 8004194: 617b str r3, [r7, #20]
  9974. HAL_DMA_Start_IT(huart->hdmatx, *(uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size);
  9975. 8004196: 68fb ldr r3, [r7, #12]
  9976. 8004198: 6b18 ldr r0, [r3, #48] ; 0x30
  9977. 800419a: 697b ldr r3, [r7, #20]
  9978. 800419c: 6819 ldr r1, [r3, #0]
  9979. 800419e: 68fb ldr r3, [r7, #12]
  9980. 80041a0: 681b ldr r3, [r3, #0]
  9981. 80041a2: 3304 adds r3, #4
  9982. 80041a4: 461a mov r2, r3
  9983. 80041a6: 88fb ldrh r3, [r7, #6]
  9984. 80041a8: f7fe f996 bl 80024d8 <HAL_DMA_Start_IT>
  9985. /* Clear the TC flag in the SR register by writing 0 to it */
  9986. __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC);
  9987. 80041ac: 68fb ldr r3, [r7, #12]
  9988. 80041ae: 681b ldr r3, [r3, #0]
  9989. 80041b0: f06f 0240 mvn.w r2, #64 ; 0x40
  9990. 80041b4: 601a str r2, [r3, #0]
  9991. /* Process Unlocked */
  9992. __HAL_UNLOCK(huart);
  9993. 80041b6: 68fb ldr r3, [r7, #12]
  9994. 80041b8: 2200 movs r2, #0
  9995. 80041ba: f883 2038 strb.w r2, [r3, #56] ; 0x38
  9996. /* Enable the DMA transfer for transmit request by setting the DMAT bit
  9997. in the UART CR3 register */
  9998. SET_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  9999. 80041be: 68fb ldr r3, [r7, #12]
  10000. 80041c0: 681b ldr r3, [r3, #0]
  10001. 80041c2: 695a ldr r2, [r3, #20]
  10002. 80041c4: 68fb ldr r3, [r7, #12]
  10003. 80041c6: 681b ldr r3, [r3, #0]
  10004. 80041c8: f042 0280 orr.w r2, r2, #128 ; 0x80
  10005. 80041cc: 615a str r2, [r3, #20]
  10006. return HAL_OK;
  10007. 80041ce: 2300 movs r3, #0
  10008. 80041d0: e000 b.n 80041d4 <HAL_UART_Transmit_DMA+0xc4>
  10009. }
  10010. else
  10011. {
  10012. return HAL_BUSY;
  10013. 80041d2: 2302 movs r3, #2
  10014. }
  10015. }
  10016. 80041d4: 4618 mov r0, r3
  10017. 80041d6: 3718 adds r7, #24
  10018. 80041d8: 46bd mov sp, r7
  10019. 80041da: bd80 pop {r7, pc}
  10020. 80041dc: 08004529 .word 0x08004529
  10021. 80041e0: 0800457b .word 0x0800457b
  10022. 80041e4: 0800461b .word 0x0800461b
  10023. 080041e8 <HAL_UART_Receive_DMA>:
  10024. * @param Size Amount of data elements (u8 or u16) to be received.
  10025. * @note When the UART parity is enabled (PCE = 1) the received data contains the parity bit.
  10026. * @retval HAL status
  10027. */
  10028. HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  10029. {
  10030. 80041e8: b580 push {r7, lr}
  10031. 80041ea: b086 sub sp, #24
  10032. 80041ec: af00 add r7, sp, #0
  10033. 80041ee: 60f8 str r0, [r7, #12]
  10034. 80041f0: 60b9 str r1, [r7, #8]
  10035. 80041f2: 4613 mov r3, r2
  10036. 80041f4: 80fb strh r3, [r7, #6]
  10037. uint32_t *tmp;
  10038. /* Check that a Rx process is not already ongoing */
  10039. if (huart->RxState == HAL_UART_STATE_READY)
  10040. 80041f6: 68fb ldr r3, [r7, #12]
  10041. 80041f8: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  10042. 80041fc: b2db uxtb r3, r3
  10043. 80041fe: 2b20 cmp r3, #32
  10044. 8004200: d166 bne.n 80042d0 <HAL_UART_Receive_DMA+0xe8>
  10045. {
  10046. if ((pData == NULL) || (Size == 0U))
  10047. 8004202: 68bb ldr r3, [r7, #8]
  10048. 8004204: 2b00 cmp r3, #0
  10049. 8004206: d002 beq.n 800420e <HAL_UART_Receive_DMA+0x26>
  10050. 8004208: 88fb ldrh r3, [r7, #6]
  10051. 800420a: 2b00 cmp r3, #0
  10052. 800420c: d101 bne.n 8004212 <HAL_UART_Receive_DMA+0x2a>
  10053. {
  10054. return HAL_ERROR;
  10055. 800420e: 2301 movs r3, #1
  10056. 8004210: e05f b.n 80042d2 <HAL_UART_Receive_DMA+0xea>
  10057. }
  10058. /* Process Locked */
  10059. __HAL_LOCK(huart);
  10060. 8004212: 68fb ldr r3, [r7, #12]
  10061. 8004214: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10062. 8004218: 2b01 cmp r3, #1
  10063. 800421a: d101 bne.n 8004220 <HAL_UART_Receive_DMA+0x38>
  10064. 800421c: 2302 movs r3, #2
  10065. 800421e: e058 b.n 80042d2 <HAL_UART_Receive_DMA+0xea>
  10066. 8004220: 68fb ldr r3, [r7, #12]
  10067. 8004222: 2201 movs r2, #1
  10068. 8004224: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10069. huart->pRxBuffPtr = pData;
  10070. 8004228: 68ba ldr r2, [r7, #8]
  10071. 800422a: 68fb ldr r3, [r7, #12]
  10072. 800422c: 629a str r2, [r3, #40] ; 0x28
  10073. huart->RxXferSize = Size;
  10074. 800422e: 68fb ldr r3, [r7, #12]
  10075. 8004230: 88fa ldrh r2, [r7, #6]
  10076. 8004232: 859a strh r2, [r3, #44] ; 0x2c
  10077. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10078. 8004234: 68fb ldr r3, [r7, #12]
  10079. 8004236: 2200 movs r2, #0
  10080. 8004238: 63da str r2, [r3, #60] ; 0x3c
  10081. huart->RxState = HAL_UART_STATE_BUSY_RX;
  10082. 800423a: 68fb ldr r3, [r7, #12]
  10083. 800423c: 2222 movs r2, #34 ; 0x22
  10084. 800423e: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10085. /* Set the UART DMA transfer complete callback */
  10086. huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt;
  10087. 8004242: 68fb ldr r3, [r7, #12]
  10088. 8004244: 6b5b ldr r3, [r3, #52] ; 0x34
  10089. 8004246: 4a25 ldr r2, [pc, #148] ; (80042dc <HAL_UART_Receive_DMA+0xf4>)
  10090. 8004248: 629a str r2, [r3, #40] ; 0x28
  10091. /* Set the UART DMA Half transfer complete callback */
  10092. huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt;
  10093. 800424a: 68fb ldr r3, [r7, #12]
  10094. 800424c: 6b5b ldr r3, [r3, #52] ; 0x34
  10095. 800424e: 4a24 ldr r2, [pc, #144] ; (80042e0 <HAL_UART_Receive_DMA+0xf8>)
  10096. 8004250: 62da str r2, [r3, #44] ; 0x2c
  10097. /* Set the DMA error callback */
  10098. huart->hdmarx->XferErrorCallback = UART_DMAError;
  10099. 8004252: 68fb ldr r3, [r7, #12]
  10100. 8004254: 6b5b ldr r3, [r3, #52] ; 0x34
  10101. 8004256: 4a23 ldr r2, [pc, #140] ; (80042e4 <HAL_UART_Receive_DMA+0xfc>)
  10102. 8004258: 631a str r2, [r3, #48] ; 0x30
  10103. /* Set the DMA abort callback */
  10104. huart->hdmarx->XferAbortCallback = NULL;
  10105. 800425a: 68fb ldr r3, [r7, #12]
  10106. 800425c: 6b5b ldr r3, [r3, #52] ; 0x34
  10107. 800425e: 2200 movs r2, #0
  10108. 8004260: 635a str r2, [r3, #52] ; 0x34
  10109. /* Enable the DMA channel */
  10110. tmp = (uint32_t *)&pData;
  10111. 8004262: f107 0308 add.w r3, r7, #8
  10112. 8004266: 617b str r3, [r7, #20]
  10113. HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size);
  10114. 8004268: 68fb ldr r3, [r7, #12]
  10115. 800426a: 6b58 ldr r0, [r3, #52] ; 0x34
  10116. 800426c: 68fb ldr r3, [r7, #12]
  10117. 800426e: 681b ldr r3, [r3, #0]
  10118. 8004270: 3304 adds r3, #4
  10119. 8004272: 4619 mov r1, r3
  10120. 8004274: 697b ldr r3, [r7, #20]
  10121. 8004276: 681a ldr r2, [r3, #0]
  10122. 8004278: 88fb ldrh r3, [r7, #6]
  10123. 800427a: f7fe f92d bl 80024d8 <HAL_DMA_Start_IT>
  10124. /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */
  10125. __HAL_UART_CLEAR_OREFLAG(huart);
  10126. 800427e: 2300 movs r3, #0
  10127. 8004280: 613b str r3, [r7, #16]
  10128. 8004282: 68fb ldr r3, [r7, #12]
  10129. 8004284: 681b ldr r3, [r3, #0]
  10130. 8004286: 681b ldr r3, [r3, #0]
  10131. 8004288: 613b str r3, [r7, #16]
  10132. 800428a: 68fb ldr r3, [r7, #12]
  10133. 800428c: 681b ldr r3, [r3, #0]
  10134. 800428e: 685b ldr r3, [r3, #4]
  10135. 8004290: 613b str r3, [r7, #16]
  10136. 8004292: 693b ldr r3, [r7, #16]
  10137. /* Process Unlocked */
  10138. __HAL_UNLOCK(huart);
  10139. 8004294: 68fb ldr r3, [r7, #12]
  10140. 8004296: 2200 movs r2, #0
  10141. 8004298: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10142. /* Enable the UART Parity Error Interrupt */
  10143. SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  10144. 800429c: 68fb ldr r3, [r7, #12]
  10145. 800429e: 681b ldr r3, [r3, #0]
  10146. 80042a0: 68da ldr r2, [r3, #12]
  10147. 80042a2: 68fb ldr r3, [r7, #12]
  10148. 80042a4: 681b ldr r3, [r3, #0]
  10149. 80042a6: f442 7280 orr.w r2, r2, #256 ; 0x100
  10150. 80042aa: 60da str r2, [r3, #12]
  10151. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  10152. SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  10153. 80042ac: 68fb ldr r3, [r7, #12]
  10154. 80042ae: 681b ldr r3, [r3, #0]
  10155. 80042b0: 695a ldr r2, [r3, #20]
  10156. 80042b2: 68fb ldr r3, [r7, #12]
  10157. 80042b4: 681b ldr r3, [r3, #0]
  10158. 80042b6: f042 0201 orr.w r2, r2, #1
  10159. 80042ba: 615a str r2, [r3, #20]
  10160. /* Enable the DMA transfer for the receiver request by setting the DMAR bit
  10161. in the UART CR3 register */
  10162. SET_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  10163. 80042bc: 68fb ldr r3, [r7, #12]
  10164. 80042be: 681b ldr r3, [r3, #0]
  10165. 80042c0: 695a ldr r2, [r3, #20]
  10166. 80042c2: 68fb ldr r3, [r7, #12]
  10167. 80042c4: 681b ldr r3, [r3, #0]
  10168. 80042c6: f042 0240 orr.w r2, r2, #64 ; 0x40
  10169. 80042ca: 615a str r2, [r3, #20]
  10170. return HAL_OK;
  10171. 80042cc: 2300 movs r3, #0
  10172. 80042ce: e000 b.n 80042d2 <HAL_UART_Receive_DMA+0xea>
  10173. }
  10174. else
  10175. {
  10176. return HAL_BUSY;
  10177. 80042d0: 2302 movs r3, #2
  10178. }
  10179. }
  10180. 80042d2: 4618 mov r0, r3
  10181. 80042d4: 3718 adds r7, #24
  10182. 80042d6: 46bd mov sp, r7
  10183. 80042d8: bd80 pop {r7, pc}
  10184. 80042da: bf00 nop
  10185. 80042dc: 08004597 .word 0x08004597
  10186. 80042e0: 080045ff .word 0x080045ff
  10187. 80042e4: 0800461b .word 0x0800461b
  10188. 080042e8 <HAL_UART_IRQHandler>:
  10189. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10190. * the configuration information for the specified UART module.
  10191. * @retval None
  10192. */
  10193. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  10194. {
  10195. 80042e8: b580 push {r7, lr}
  10196. 80042ea: b088 sub sp, #32
  10197. 80042ec: af00 add r7, sp, #0
  10198. 80042ee: 6078 str r0, [r7, #4]
  10199. uint32_t isrflags = READ_REG(huart->Instance->SR);
  10200. 80042f0: 687b ldr r3, [r7, #4]
  10201. 80042f2: 681b ldr r3, [r3, #0]
  10202. 80042f4: 681b ldr r3, [r3, #0]
  10203. 80042f6: 61fb str r3, [r7, #28]
  10204. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  10205. 80042f8: 687b ldr r3, [r7, #4]
  10206. 80042fa: 681b ldr r3, [r3, #0]
  10207. 80042fc: 68db ldr r3, [r3, #12]
  10208. 80042fe: 61bb str r3, [r7, #24]
  10209. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  10210. 8004300: 687b ldr r3, [r7, #4]
  10211. 8004302: 681b ldr r3, [r3, #0]
  10212. 8004304: 695b ldr r3, [r3, #20]
  10213. 8004306: 617b str r3, [r7, #20]
  10214. uint32_t errorflags = 0x00U;
  10215. 8004308: 2300 movs r3, #0
  10216. 800430a: 613b str r3, [r7, #16]
  10217. uint32_t dmarequest = 0x00U;
  10218. 800430c: 2300 movs r3, #0
  10219. 800430e: 60fb str r3, [r7, #12]
  10220. /* If no error occurs */
  10221. errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE));
  10222. 8004310: 69fb ldr r3, [r7, #28]
  10223. 8004312: f003 030f and.w r3, r3, #15
  10224. 8004316: 613b str r3, [r7, #16]
  10225. if (errorflags == RESET)
  10226. 8004318: 693b ldr r3, [r7, #16]
  10227. 800431a: 2b00 cmp r3, #0
  10228. 800431c: d10d bne.n 800433a <HAL_UART_IRQHandler+0x52>
  10229. {
  10230. /* UART in mode Receiver -------------------------------------------------*/
  10231. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  10232. 800431e: 69fb ldr r3, [r7, #28]
  10233. 8004320: f003 0320 and.w r3, r3, #32
  10234. 8004324: 2b00 cmp r3, #0
  10235. 8004326: d008 beq.n 800433a <HAL_UART_IRQHandler+0x52>
  10236. 8004328: 69bb ldr r3, [r7, #24]
  10237. 800432a: f003 0320 and.w r3, r3, #32
  10238. 800432e: 2b00 cmp r3, #0
  10239. 8004330: d003 beq.n 800433a <HAL_UART_IRQHandler+0x52>
  10240. {
  10241. UART_Receive_IT(huart);
  10242. 8004332: 6878 ldr r0, [r7, #4]
  10243. 8004334: f000 fab8 bl 80048a8 <UART_Receive_IT>
  10244. return;
  10245. 8004338: e0cc b.n 80044d4 <HAL_UART_IRQHandler+0x1ec>
  10246. }
  10247. }
  10248. /* If some errors occur */
  10249. if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET)))
  10250. 800433a: 693b ldr r3, [r7, #16]
  10251. 800433c: 2b00 cmp r3, #0
  10252. 800433e: f000 80ab beq.w 8004498 <HAL_UART_IRQHandler+0x1b0>
  10253. 8004342: 697b ldr r3, [r7, #20]
  10254. 8004344: f003 0301 and.w r3, r3, #1
  10255. 8004348: 2b00 cmp r3, #0
  10256. 800434a: d105 bne.n 8004358 <HAL_UART_IRQHandler+0x70>
  10257. 800434c: 69bb ldr r3, [r7, #24]
  10258. 800434e: f403 7390 and.w r3, r3, #288 ; 0x120
  10259. 8004352: 2b00 cmp r3, #0
  10260. 8004354: f000 80a0 beq.w 8004498 <HAL_UART_IRQHandler+0x1b0>
  10261. {
  10262. /* UART parity error interrupt occurred ----------------------------------*/
  10263. if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET))
  10264. 8004358: 69fb ldr r3, [r7, #28]
  10265. 800435a: f003 0301 and.w r3, r3, #1
  10266. 800435e: 2b00 cmp r3, #0
  10267. 8004360: d00a beq.n 8004378 <HAL_UART_IRQHandler+0x90>
  10268. 8004362: 69bb ldr r3, [r7, #24]
  10269. 8004364: f403 7380 and.w r3, r3, #256 ; 0x100
  10270. 8004368: 2b00 cmp r3, #0
  10271. 800436a: d005 beq.n 8004378 <HAL_UART_IRQHandler+0x90>
  10272. {
  10273. huart->ErrorCode |= HAL_UART_ERROR_PE;
  10274. 800436c: 687b ldr r3, [r7, #4]
  10275. 800436e: 6bdb ldr r3, [r3, #60] ; 0x3c
  10276. 8004370: f043 0201 orr.w r2, r3, #1
  10277. 8004374: 687b ldr r3, [r7, #4]
  10278. 8004376: 63da str r2, [r3, #60] ; 0x3c
  10279. }
  10280. /* UART noise error interrupt occurred -----------------------------------*/
  10281. if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  10282. 8004378: 69fb ldr r3, [r7, #28]
  10283. 800437a: f003 0304 and.w r3, r3, #4
  10284. 800437e: 2b00 cmp r3, #0
  10285. 8004380: d00a beq.n 8004398 <HAL_UART_IRQHandler+0xb0>
  10286. 8004382: 697b ldr r3, [r7, #20]
  10287. 8004384: f003 0301 and.w r3, r3, #1
  10288. 8004388: 2b00 cmp r3, #0
  10289. 800438a: d005 beq.n 8004398 <HAL_UART_IRQHandler+0xb0>
  10290. {
  10291. huart->ErrorCode |= HAL_UART_ERROR_NE;
  10292. 800438c: 687b ldr r3, [r7, #4]
  10293. 800438e: 6bdb ldr r3, [r3, #60] ; 0x3c
  10294. 8004390: f043 0202 orr.w r2, r3, #2
  10295. 8004394: 687b ldr r3, [r7, #4]
  10296. 8004396: 63da str r2, [r3, #60] ; 0x3c
  10297. }
  10298. /* UART frame error interrupt occurred -----------------------------------*/
  10299. if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  10300. 8004398: 69fb ldr r3, [r7, #28]
  10301. 800439a: f003 0302 and.w r3, r3, #2
  10302. 800439e: 2b00 cmp r3, #0
  10303. 80043a0: d00a beq.n 80043b8 <HAL_UART_IRQHandler+0xd0>
  10304. 80043a2: 697b ldr r3, [r7, #20]
  10305. 80043a4: f003 0301 and.w r3, r3, #1
  10306. 80043a8: 2b00 cmp r3, #0
  10307. 80043aa: d005 beq.n 80043b8 <HAL_UART_IRQHandler+0xd0>
  10308. {
  10309. huart->ErrorCode |= HAL_UART_ERROR_FE;
  10310. 80043ac: 687b ldr r3, [r7, #4]
  10311. 80043ae: 6bdb ldr r3, [r3, #60] ; 0x3c
  10312. 80043b0: f043 0204 orr.w r2, r3, #4
  10313. 80043b4: 687b ldr r3, [r7, #4]
  10314. 80043b6: 63da str r2, [r3, #60] ; 0x3c
  10315. }
  10316. /* UART Over-Run interrupt occurred --------------------------------------*/
  10317. if (((isrflags & USART_SR_ORE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  10318. 80043b8: 69fb ldr r3, [r7, #28]
  10319. 80043ba: f003 0308 and.w r3, r3, #8
  10320. 80043be: 2b00 cmp r3, #0
  10321. 80043c0: d00a beq.n 80043d8 <HAL_UART_IRQHandler+0xf0>
  10322. 80043c2: 697b ldr r3, [r7, #20]
  10323. 80043c4: f003 0301 and.w r3, r3, #1
  10324. 80043c8: 2b00 cmp r3, #0
  10325. 80043ca: d005 beq.n 80043d8 <HAL_UART_IRQHandler+0xf0>
  10326. {
  10327. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  10328. 80043cc: 687b ldr r3, [r7, #4]
  10329. 80043ce: 6bdb ldr r3, [r3, #60] ; 0x3c
  10330. 80043d0: f043 0208 orr.w r2, r3, #8
  10331. 80043d4: 687b ldr r3, [r7, #4]
  10332. 80043d6: 63da str r2, [r3, #60] ; 0x3c
  10333. }
  10334. /* Call UART Error Call back function if need be --------------------------*/
  10335. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  10336. 80043d8: 687b ldr r3, [r7, #4]
  10337. 80043da: 6bdb ldr r3, [r3, #60] ; 0x3c
  10338. 80043dc: 2b00 cmp r3, #0
  10339. 80043de: d078 beq.n 80044d2 <HAL_UART_IRQHandler+0x1ea>
  10340. {
  10341. /* UART in mode Receiver -----------------------------------------------*/
  10342. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  10343. 80043e0: 69fb ldr r3, [r7, #28]
  10344. 80043e2: f003 0320 and.w r3, r3, #32
  10345. 80043e6: 2b00 cmp r3, #0
  10346. 80043e8: d007 beq.n 80043fa <HAL_UART_IRQHandler+0x112>
  10347. 80043ea: 69bb ldr r3, [r7, #24]
  10348. 80043ec: f003 0320 and.w r3, r3, #32
  10349. 80043f0: 2b00 cmp r3, #0
  10350. 80043f2: d002 beq.n 80043fa <HAL_UART_IRQHandler+0x112>
  10351. {
  10352. UART_Receive_IT(huart);
  10353. 80043f4: 6878 ldr r0, [r7, #4]
  10354. 80043f6: f000 fa57 bl 80048a8 <UART_Receive_IT>
  10355. }
  10356. /* If Overrun error occurs, or if any error occurs in DMA mode reception,
  10357. consider error as blocking */
  10358. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  10359. 80043fa: 687b ldr r3, [r7, #4]
  10360. 80043fc: 681b ldr r3, [r3, #0]
  10361. 80043fe: 695b ldr r3, [r3, #20]
  10362. 8004400: f003 0340 and.w r3, r3, #64 ; 0x40
  10363. 8004404: 2b00 cmp r3, #0
  10364. 8004406: bf14 ite ne
  10365. 8004408: 2301 movne r3, #1
  10366. 800440a: 2300 moveq r3, #0
  10367. 800440c: b2db uxtb r3, r3
  10368. 800440e: 60fb str r3, [r7, #12]
  10369. if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest)
  10370. 8004410: 687b ldr r3, [r7, #4]
  10371. 8004412: 6bdb ldr r3, [r3, #60] ; 0x3c
  10372. 8004414: f003 0308 and.w r3, r3, #8
  10373. 8004418: 2b00 cmp r3, #0
  10374. 800441a: d102 bne.n 8004422 <HAL_UART_IRQHandler+0x13a>
  10375. 800441c: 68fb ldr r3, [r7, #12]
  10376. 800441e: 2b00 cmp r3, #0
  10377. 8004420: d031 beq.n 8004486 <HAL_UART_IRQHandler+0x19e>
  10378. {
  10379. /* Blocking error : transfer is aborted
  10380. Set the UART state ready to be able to start again the process,
  10381. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  10382. UART_EndRxTransfer(huart);
  10383. 8004422: 6878 ldr r0, [r7, #4]
  10384. 8004424: f000 f9a2 bl 800476c <UART_EndRxTransfer>
  10385. /* Disable the UART DMA Rx request if enabled */
  10386. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  10387. 8004428: 687b ldr r3, [r7, #4]
  10388. 800442a: 681b ldr r3, [r3, #0]
  10389. 800442c: 695b ldr r3, [r3, #20]
  10390. 800442e: f003 0340 and.w r3, r3, #64 ; 0x40
  10391. 8004432: 2b00 cmp r3, #0
  10392. 8004434: d023 beq.n 800447e <HAL_UART_IRQHandler+0x196>
  10393. {
  10394. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  10395. 8004436: 687b ldr r3, [r7, #4]
  10396. 8004438: 681b ldr r3, [r3, #0]
  10397. 800443a: 695a ldr r2, [r3, #20]
  10398. 800443c: 687b ldr r3, [r7, #4]
  10399. 800443e: 681b ldr r3, [r3, #0]
  10400. 8004440: f022 0240 bic.w r2, r2, #64 ; 0x40
  10401. 8004444: 615a str r2, [r3, #20]
  10402. /* Abort the UART DMA Rx channel */
  10403. if (huart->hdmarx != NULL)
  10404. 8004446: 687b ldr r3, [r7, #4]
  10405. 8004448: 6b5b ldr r3, [r3, #52] ; 0x34
  10406. 800444a: 2b00 cmp r3, #0
  10407. 800444c: d013 beq.n 8004476 <HAL_UART_IRQHandler+0x18e>
  10408. {
  10409. /* Set the UART DMA Abort callback :
  10410. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  10411. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  10412. 800444e: 687b ldr r3, [r7, #4]
  10413. 8004450: 6b5b ldr r3, [r3, #52] ; 0x34
  10414. 8004452: 4a22 ldr r2, [pc, #136] ; (80044dc <HAL_UART_IRQHandler+0x1f4>)
  10415. 8004454: 635a str r2, [r3, #52] ; 0x34
  10416. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  10417. 8004456: 687b ldr r3, [r7, #4]
  10418. 8004458: 6b5b ldr r3, [r3, #52] ; 0x34
  10419. 800445a: 4618 mov r0, r3
  10420. 800445c: f7fe f89c bl 8002598 <HAL_DMA_Abort_IT>
  10421. 8004460: 4603 mov r3, r0
  10422. 8004462: 2b00 cmp r3, #0
  10423. 8004464: d016 beq.n 8004494 <HAL_UART_IRQHandler+0x1ac>
  10424. {
  10425. /* Call Directly XferAbortCallback function in case of error */
  10426. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  10427. 8004466: 687b ldr r3, [r7, #4]
  10428. 8004468: 6b5b ldr r3, [r3, #52] ; 0x34
  10429. 800446a: 6b5b ldr r3, [r3, #52] ; 0x34
  10430. 800446c: 687a ldr r2, [r7, #4]
  10431. 800446e: 6b52 ldr r2, [r2, #52] ; 0x34
  10432. 8004470: 4610 mov r0, r2
  10433. 8004472: 4798 blx r3
  10434. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  10435. 8004474: e00e b.n 8004494 <HAL_UART_IRQHandler+0x1ac>
  10436. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10437. /*Call registered error callback*/
  10438. huart->ErrorCallback(huart);
  10439. #else
  10440. /*Call legacy weak error callback*/
  10441. HAL_UART_ErrorCallback(huart);
  10442. 8004476: 6878 ldr r0, [r7, #4]
  10443. 8004478: f000 f84d bl 8004516 <HAL_UART_ErrorCallback>
  10444. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  10445. 800447c: e00a b.n 8004494 <HAL_UART_IRQHandler+0x1ac>
  10446. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10447. /*Call registered error callback*/
  10448. huart->ErrorCallback(huart);
  10449. #else
  10450. /*Call legacy weak error callback*/
  10451. HAL_UART_ErrorCallback(huart);
  10452. 800447e: 6878 ldr r0, [r7, #4]
  10453. 8004480: f000 f849 bl 8004516 <HAL_UART_ErrorCallback>
  10454. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  10455. 8004484: e006 b.n 8004494 <HAL_UART_IRQHandler+0x1ac>
  10456. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10457. /*Call registered error callback*/
  10458. huart->ErrorCallback(huart);
  10459. #else
  10460. /*Call legacy weak error callback*/
  10461. HAL_UART_ErrorCallback(huart);
  10462. 8004486: 6878 ldr r0, [r7, #4]
  10463. 8004488: f000 f845 bl 8004516 <HAL_UART_ErrorCallback>
  10464. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  10465. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10466. 800448c: 687b ldr r3, [r7, #4]
  10467. 800448e: 2200 movs r2, #0
  10468. 8004490: 63da str r2, [r3, #60] ; 0x3c
  10469. }
  10470. }
  10471. return;
  10472. 8004492: e01e b.n 80044d2 <HAL_UART_IRQHandler+0x1ea>
  10473. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  10474. 8004494: bf00 nop
  10475. return;
  10476. 8004496: e01c b.n 80044d2 <HAL_UART_IRQHandler+0x1ea>
  10477. } /* End if some error occurs */
  10478. /* UART in mode Transmitter ------------------------------------------------*/
  10479. if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET))
  10480. 8004498: 69fb ldr r3, [r7, #28]
  10481. 800449a: f003 0380 and.w r3, r3, #128 ; 0x80
  10482. 800449e: 2b00 cmp r3, #0
  10483. 80044a0: d008 beq.n 80044b4 <HAL_UART_IRQHandler+0x1cc>
  10484. 80044a2: 69bb ldr r3, [r7, #24]
  10485. 80044a4: f003 0380 and.w r3, r3, #128 ; 0x80
  10486. 80044a8: 2b00 cmp r3, #0
  10487. 80044aa: d003 beq.n 80044b4 <HAL_UART_IRQHandler+0x1cc>
  10488. {
  10489. UART_Transmit_IT(huart);
  10490. 80044ac: 6878 ldr r0, [r7, #4]
  10491. 80044ae: f000 f98e bl 80047ce <UART_Transmit_IT>
  10492. return;
  10493. 80044b2: e00f b.n 80044d4 <HAL_UART_IRQHandler+0x1ec>
  10494. }
  10495. /* UART in mode Transmitter end --------------------------------------------*/
  10496. if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET))
  10497. 80044b4: 69fb ldr r3, [r7, #28]
  10498. 80044b6: f003 0340 and.w r3, r3, #64 ; 0x40
  10499. 80044ba: 2b00 cmp r3, #0
  10500. 80044bc: d00a beq.n 80044d4 <HAL_UART_IRQHandler+0x1ec>
  10501. 80044be: 69bb ldr r3, [r7, #24]
  10502. 80044c0: f003 0340 and.w r3, r3, #64 ; 0x40
  10503. 80044c4: 2b00 cmp r3, #0
  10504. 80044c6: d005 beq.n 80044d4 <HAL_UART_IRQHandler+0x1ec>
  10505. {
  10506. UART_EndTransmit_IT(huart);
  10507. 80044c8: 6878 ldr r0, [r7, #4]
  10508. 80044ca: f000 f9d5 bl 8004878 <UART_EndTransmit_IT>
  10509. return;
  10510. 80044ce: bf00 nop
  10511. 80044d0: e000 b.n 80044d4 <HAL_UART_IRQHandler+0x1ec>
  10512. return;
  10513. 80044d2: bf00 nop
  10514. }
  10515. }
  10516. 80044d4: 3720 adds r7, #32
  10517. 80044d6: 46bd mov sp, r7
  10518. 80044d8: bd80 pop {r7, pc}
  10519. 80044da: bf00 nop
  10520. 80044dc: 080047a7 .word 0x080047a7
  10521. 080044e0 <HAL_UART_TxCpltCallback>:
  10522. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10523. * the configuration information for the specified UART module.
  10524. * @retval None
  10525. */
  10526. __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
  10527. {
  10528. 80044e0: b480 push {r7}
  10529. 80044e2: b083 sub sp, #12
  10530. 80044e4: af00 add r7, sp, #0
  10531. 80044e6: 6078 str r0, [r7, #4]
  10532. /* Prevent unused argument(s) compilation warning */
  10533. UNUSED(huart);
  10534. /* NOTE: This function should not be modified, when the callback is needed,
  10535. the HAL_UART_TxCpltCallback could be implemented in the user file
  10536. */
  10537. }
  10538. 80044e8: bf00 nop
  10539. 80044ea: 370c adds r7, #12
  10540. 80044ec: 46bd mov sp, r7
  10541. 80044ee: bc80 pop {r7}
  10542. 80044f0: 4770 bx lr
  10543. 080044f2 <HAL_UART_TxHalfCpltCallback>:
  10544. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10545. * the configuration information for the specified UART module.
  10546. * @retval None
  10547. */
  10548. __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart)
  10549. {
  10550. 80044f2: b480 push {r7}
  10551. 80044f4: b083 sub sp, #12
  10552. 80044f6: af00 add r7, sp, #0
  10553. 80044f8: 6078 str r0, [r7, #4]
  10554. /* Prevent unused argument(s) compilation warning */
  10555. UNUSED(huart);
  10556. /* NOTE: This function should not be modified, when the callback is needed,
  10557. the HAL_UART_TxHalfCpltCallback could be implemented in the user file
  10558. */
  10559. }
  10560. 80044fa: bf00 nop
  10561. 80044fc: 370c adds r7, #12
  10562. 80044fe: 46bd mov sp, r7
  10563. 8004500: bc80 pop {r7}
  10564. 8004502: 4770 bx lr
  10565. 08004504 <HAL_UART_RxHalfCpltCallback>:
  10566. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10567. * the configuration information for the specified UART module.
  10568. * @retval None
  10569. */
  10570. __weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart)
  10571. {
  10572. 8004504: b480 push {r7}
  10573. 8004506: b083 sub sp, #12
  10574. 8004508: af00 add r7, sp, #0
  10575. 800450a: 6078 str r0, [r7, #4]
  10576. /* Prevent unused argument(s) compilation warning */
  10577. UNUSED(huart);
  10578. /* NOTE: This function should not be modified, when the callback is needed,
  10579. the HAL_UART_RxHalfCpltCallback could be implemented in the user file
  10580. */
  10581. }
  10582. 800450c: bf00 nop
  10583. 800450e: 370c adds r7, #12
  10584. 8004510: 46bd mov sp, r7
  10585. 8004512: bc80 pop {r7}
  10586. 8004514: 4770 bx lr
  10587. 08004516 <HAL_UART_ErrorCallback>:
  10588. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10589. * the configuration information for the specified UART module.
  10590. * @retval None
  10591. */
  10592. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  10593. {
  10594. 8004516: b480 push {r7}
  10595. 8004518: b083 sub sp, #12
  10596. 800451a: af00 add r7, sp, #0
  10597. 800451c: 6078 str r0, [r7, #4]
  10598. /* Prevent unused argument(s) compilation warning */
  10599. UNUSED(huart);
  10600. /* NOTE: This function should not be modified, when the callback is needed,
  10601. the HAL_UART_ErrorCallback could be implemented in the user file
  10602. */
  10603. }
  10604. 800451e: bf00 nop
  10605. 8004520: 370c adds r7, #12
  10606. 8004522: 46bd mov sp, r7
  10607. 8004524: bc80 pop {r7}
  10608. 8004526: 4770 bx lr
  10609. 08004528 <UART_DMATransmitCplt>:
  10610. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  10611. * the configuration information for the specified DMA module.
  10612. * @retval None
  10613. */
  10614. static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma)
  10615. {
  10616. 8004528: b580 push {r7, lr}
  10617. 800452a: b084 sub sp, #16
  10618. 800452c: af00 add r7, sp, #0
  10619. 800452e: 6078 str r0, [r7, #4]
  10620. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  10621. 8004530: 687b ldr r3, [r7, #4]
  10622. 8004532: 6a5b ldr r3, [r3, #36] ; 0x24
  10623. 8004534: 60fb str r3, [r7, #12]
  10624. /* DMA Normal mode*/
  10625. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  10626. 8004536: 687b ldr r3, [r7, #4]
  10627. 8004538: 681b ldr r3, [r3, #0]
  10628. 800453a: 681b ldr r3, [r3, #0]
  10629. 800453c: f003 0320 and.w r3, r3, #32
  10630. 8004540: 2b00 cmp r3, #0
  10631. 8004542: d113 bne.n 800456c <UART_DMATransmitCplt+0x44>
  10632. {
  10633. huart->TxXferCount = 0x00U;
  10634. 8004544: 68fb ldr r3, [r7, #12]
  10635. 8004546: 2200 movs r2, #0
  10636. 8004548: 84da strh r2, [r3, #38] ; 0x26
  10637. /* Disable the DMA transfer for transmit request by setting the DMAT bit
  10638. in the UART CR3 register */
  10639. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  10640. 800454a: 68fb ldr r3, [r7, #12]
  10641. 800454c: 681b ldr r3, [r3, #0]
  10642. 800454e: 695a ldr r2, [r3, #20]
  10643. 8004550: 68fb ldr r3, [r7, #12]
  10644. 8004552: 681b ldr r3, [r3, #0]
  10645. 8004554: f022 0280 bic.w r2, r2, #128 ; 0x80
  10646. 8004558: 615a str r2, [r3, #20]
  10647. /* Enable the UART Transmit Complete Interrupt */
  10648. SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  10649. 800455a: 68fb ldr r3, [r7, #12]
  10650. 800455c: 681b ldr r3, [r3, #0]
  10651. 800455e: 68da ldr r2, [r3, #12]
  10652. 8004560: 68fb ldr r3, [r7, #12]
  10653. 8004562: 681b ldr r3, [r3, #0]
  10654. 8004564: f042 0240 orr.w r2, r2, #64 ; 0x40
  10655. 8004568: 60da str r2, [r3, #12]
  10656. #else
  10657. /*Call legacy weak Tx complete callback*/
  10658. HAL_UART_TxCpltCallback(huart);
  10659. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  10660. }
  10661. }
  10662. 800456a: e002 b.n 8004572 <UART_DMATransmitCplt+0x4a>
  10663. HAL_UART_TxCpltCallback(huart);
  10664. 800456c: 68f8 ldr r0, [r7, #12]
  10665. 800456e: f7ff ffb7 bl 80044e0 <HAL_UART_TxCpltCallback>
  10666. }
  10667. 8004572: bf00 nop
  10668. 8004574: 3710 adds r7, #16
  10669. 8004576: 46bd mov sp, r7
  10670. 8004578: bd80 pop {r7, pc}
  10671. 0800457a <UART_DMATxHalfCplt>:
  10672. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  10673. * the configuration information for the specified DMA module.
  10674. * @retval None
  10675. */
  10676. static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma)
  10677. {
  10678. 800457a: b580 push {r7, lr}
  10679. 800457c: b084 sub sp, #16
  10680. 800457e: af00 add r7, sp, #0
  10681. 8004580: 6078 str r0, [r7, #4]
  10682. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  10683. 8004582: 687b ldr r3, [r7, #4]
  10684. 8004584: 6a5b ldr r3, [r3, #36] ; 0x24
  10685. 8004586: 60fb str r3, [r7, #12]
  10686. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10687. /*Call registered Tx complete callback*/
  10688. huart->TxHalfCpltCallback(huart);
  10689. #else
  10690. /*Call legacy weak Tx complete callback*/
  10691. HAL_UART_TxHalfCpltCallback(huart);
  10692. 8004588: 68f8 ldr r0, [r7, #12]
  10693. 800458a: f7ff ffb2 bl 80044f2 <HAL_UART_TxHalfCpltCallback>
  10694. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  10695. }
  10696. 800458e: bf00 nop
  10697. 8004590: 3710 adds r7, #16
  10698. 8004592: 46bd mov sp, r7
  10699. 8004594: bd80 pop {r7, pc}
  10700. 08004596 <UART_DMAReceiveCplt>:
  10701. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  10702. * the configuration information for the specified DMA module.
  10703. * @retval None
  10704. */
  10705. static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma)
  10706. {
  10707. 8004596: b580 push {r7, lr}
  10708. 8004598: b084 sub sp, #16
  10709. 800459a: af00 add r7, sp, #0
  10710. 800459c: 6078 str r0, [r7, #4]
  10711. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  10712. 800459e: 687b ldr r3, [r7, #4]
  10713. 80045a0: 6a5b ldr r3, [r3, #36] ; 0x24
  10714. 80045a2: 60fb str r3, [r7, #12]
  10715. /* DMA Normal mode*/
  10716. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  10717. 80045a4: 687b ldr r3, [r7, #4]
  10718. 80045a6: 681b ldr r3, [r3, #0]
  10719. 80045a8: 681b ldr r3, [r3, #0]
  10720. 80045aa: f003 0320 and.w r3, r3, #32
  10721. 80045ae: 2b00 cmp r3, #0
  10722. 80045b0: d11e bne.n 80045f0 <UART_DMAReceiveCplt+0x5a>
  10723. {
  10724. huart->RxXferCount = 0U;
  10725. 80045b2: 68fb ldr r3, [r7, #12]
  10726. 80045b4: 2200 movs r2, #0
  10727. 80045b6: 85da strh r2, [r3, #46] ; 0x2e
  10728. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  10729. CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  10730. 80045b8: 68fb ldr r3, [r7, #12]
  10731. 80045ba: 681b ldr r3, [r3, #0]
  10732. 80045bc: 68da ldr r2, [r3, #12]
  10733. 80045be: 68fb ldr r3, [r7, #12]
  10734. 80045c0: 681b ldr r3, [r3, #0]
  10735. 80045c2: f422 7280 bic.w r2, r2, #256 ; 0x100
  10736. 80045c6: 60da str r2, [r3, #12]
  10737. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  10738. 80045c8: 68fb ldr r3, [r7, #12]
  10739. 80045ca: 681b ldr r3, [r3, #0]
  10740. 80045cc: 695a ldr r2, [r3, #20]
  10741. 80045ce: 68fb ldr r3, [r7, #12]
  10742. 80045d0: 681b ldr r3, [r3, #0]
  10743. 80045d2: f022 0201 bic.w r2, r2, #1
  10744. 80045d6: 615a str r2, [r3, #20]
  10745. /* Disable the DMA transfer for the receiver request by setting the DMAR bit
  10746. in the UART CR3 register */
  10747. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  10748. 80045d8: 68fb ldr r3, [r7, #12]
  10749. 80045da: 681b ldr r3, [r3, #0]
  10750. 80045dc: 695a ldr r2, [r3, #20]
  10751. 80045de: 68fb ldr r3, [r7, #12]
  10752. 80045e0: 681b ldr r3, [r3, #0]
  10753. 80045e2: f022 0240 bic.w r2, r2, #64 ; 0x40
  10754. 80045e6: 615a str r2, [r3, #20]
  10755. /* At end of Rx process, restore huart->RxState to Ready */
  10756. huart->RxState = HAL_UART_STATE_READY;
  10757. 80045e8: 68fb ldr r3, [r7, #12]
  10758. 80045ea: 2220 movs r2, #32
  10759. 80045ec: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10760. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10761. /*Call registered Rx complete callback*/
  10762. huart->RxCpltCallback(huart);
  10763. #else
  10764. /*Call legacy weak Rx complete callback*/
  10765. HAL_UART_RxCpltCallback(huart);
  10766. 80045f0: 68f8 ldr r0, [r7, #12]
  10767. 80045f2: f7fd f80d bl 8001610 <HAL_UART_RxCpltCallback>
  10768. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  10769. }
  10770. 80045f6: bf00 nop
  10771. 80045f8: 3710 adds r7, #16
  10772. 80045fa: 46bd mov sp, r7
  10773. 80045fc: bd80 pop {r7, pc}
  10774. 080045fe <UART_DMARxHalfCplt>:
  10775. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  10776. * the configuration information for the specified DMA module.
  10777. * @retval None
  10778. */
  10779. static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma)
  10780. {
  10781. 80045fe: b580 push {r7, lr}
  10782. 8004600: b084 sub sp, #16
  10783. 8004602: af00 add r7, sp, #0
  10784. 8004604: 6078 str r0, [r7, #4]
  10785. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  10786. 8004606: 687b ldr r3, [r7, #4]
  10787. 8004608: 6a5b ldr r3, [r3, #36] ; 0x24
  10788. 800460a: 60fb str r3, [r7, #12]
  10789. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10790. /*Call registered Rx Half complete callback*/
  10791. huart->RxHalfCpltCallback(huart);
  10792. #else
  10793. /*Call legacy weak Rx Half complete callback*/
  10794. HAL_UART_RxHalfCpltCallback(huart);
  10795. 800460c: 68f8 ldr r0, [r7, #12]
  10796. 800460e: f7ff ff79 bl 8004504 <HAL_UART_RxHalfCpltCallback>
  10797. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  10798. }
  10799. 8004612: bf00 nop
  10800. 8004614: 3710 adds r7, #16
  10801. 8004616: 46bd mov sp, r7
  10802. 8004618: bd80 pop {r7, pc}
  10803. 0800461a <UART_DMAError>:
  10804. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  10805. * the configuration information for the specified DMA module.
  10806. * @retval None
  10807. */
  10808. static void UART_DMAError(DMA_HandleTypeDef *hdma)
  10809. {
  10810. 800461a: b580 push {r7, lr}
  10811. 800461c: b084 sub sp, #16
  10812. 800461e: af00 add r7, sp, #0
  10813. 8004620: 6078 str r0, [r7, #4]
  10814. uint32_t dmarequest = 0x00U;
  10815. 8004622: 2300 movs r3, #0
  10816. 8004624: 60fb str r3, [r7, #12]
  10817. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  10818. 8004626: 687b ldr r3, [r7, #4]
  10819. 8004628: 6a5b ldr r3, [r3, #36] ; 0x24
  10820. 800462a: 60bb str r3, [r7, #8]
  10821. /* Stop UART DMA Tx request if ongoing */
  10822. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT);
  10823. 800462c: 68bb ldr r3, [r7, #8]
  10824. 800462e: 681b ldr r3, [r3, #0]
  10825. 8004630: 695b ldr r3, [r3, #20]
  10826. 8004632: f003 0380 and.w r3, r3, #128 ; 0x80
  10827. 8004636: 2b00 cmp r3, #0
  10828. 8004638: bf14 ite ne
  10829. 800463a: 2301 movne r3, #1
  10830. 800463c: 2300 moveq r3, #0
  10831. 800463e: b2db uxtb r3, r3
  10832. 8004640: 60fb str r3, [r7, #12]
  10833. if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest)
  10834. 8004642: 68bb ldr r3, [r7, #8]
  10835. 8004644: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10836. 8004648: b2db uxtb r3, r3
  10837. 800464a: 2b21 cmp r3, #33 ; 0x21
  10838. 800464c: d108 bne.n 8004660 <UART_DMAError+0x46>
  10839. 800464e: 68fb ldr r3, [r7, #12]
  10840. 8004650: 2b00 cmp r3, #0
  10841. 8004652: d005 beq.n 8004660 <UART_DMAError+0x46>
  10842. {
  10843. huart->TxXferCount = 0x00U;
  10844. 8004654: 68bb ldr r3, [r7, #8]
  10845. 8004656: 2200 movs r2, #0
  10846. 8004658: 84da strh r2, [r3, #38] ; 0x26
  10847. UART_EndTxTransfer(huart);
  10848. 800465a: 68b8 ldr r0, [r7, #8]
  10849. 800465c: f000 f871 bl 8004742 <UART_EndTxTransfer>
  10850. }
  10851. /* Stop UART DMA Rx request if ongoing */
  10852. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  10853. 8004660: 68bb ldr r3, [r7, #8]
  10854. 8004662: 681b ldr r3, [r3, #0]
  10855. 8004664: 695b ldr r3, [r3, #20]
  10856. 8004666: f003 0340 and.w r3, r3, #64 ; 0x40
  10857. 800466a: 2b00 cmp r3, #0
  10858. 800466c: bf14 ite ne
  10859. 800466e: 2301 movne r3, #1
  10860. 8004670: 2300 moveq r3, #0
  10861. 8004672: b2db uxtb r3, r3
  10862. 8004674: 60fb str r3, [r7, #12]
  10863. if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest)
  10864. 8004676: 68bb ldr r3, [r7, #8]
  10865. 8004678: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  10866. 800467c: b2db uxtb r3, r3
  10867. 800467e: 2b22 cmp r3, #34 ; 0x22
  10868. 8004680: d108 bne.n 8004694 <UART_DMAError+0x7a>
  10869. 8004682: 68fb ldr r3, [r7, #12]
  10870. 8004684: 2b00 cmp r3, #0
  10871. 8004686: d005 beq.n 8004694 <UART_DMAError+0x7a>
  10872. {
  10873. huart->RxXferCount = 0x00U;
  10874. 8004688: 68bb ldr r3, [r7, #8]
  10875. 800468a: 2200 movs r2, #0
  10876. 800468c: 85da strh r2, [r3, #46] ; 0x2e
  10877. UART_EndRxTransfer(huart);
  10878. 800468e: 68b8 ldr r0, [r7, #8]
  10879. 8004690: f000 f86c bl 800476c <UART_EndRxTransfer>
  10880. }
  10881. huart->ErrorCode |= HAL_UART_ERROR_DMA;
  10882. 8004694: 68bb ldr r3, [r7, #8]
  10883. 8004696: 6bdb ldr r3, [r3, #60] ; 0x3c
  10884. 8004698: f043 0210 orr.w r2, r3, #16
  10885. 800469c: 68bb ldr r3, [r7, #8]
  10886. 800469e: 63da str r2, [r3, #60] ; 0x3c
  10887. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  10888. /*Call registered error callback*/
  10889. huart->ErrorCallback(huart);
  10890. #else
  10891. /*Call legacy weak error callback*/
  10892. HAL_UART_ErrorCallback(huart);
  10893. 80046a0: 68b8 ldr r0, [r7, #8]
  10894. 80046a2: f7ff ff38 bl 8004516 <HAL_UART_ErrorCallback>
  10895. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  10896. }
  10897. 80046a6: bf00 nop
  10898. 80046a8: 3710 adds r7, #16
  10899. 80046aa: 46bd mov sp, r7
  10900. 80046ac: bd80 pop {r7, pc}
  10901. 080046ae <UART_WaitOnFlagUntilTimeout>:
  10902. * @param Tickstart Tick start value
  10903. * @param Timeout Timeout duration
  10904. * @retval HAL status
  10905. */
  10906. static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
  10907. {
  10908. 80046ae: b580 push {r7, lr}
  10909. 80046b0: b084 sub sp, #16
  10910. 80046b2: af00 add r7, sp, #0
  10911. 80046b4: 60f8 str r0, [r7, #12]
  10912. 80046b6: 60b9 str r1, [r7, #8]
  10913. 80046b8: 603b str r3, [r7, #0]
  10914. 80046ba: 4613 mov r3, r2
  10915. 80046bc: 71fb strb r3, [r7, #7]
  10916. /* Wait until flag is set */
  10917. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  10918. 80046be: e02c b.n 800471a <UART_WaitOnFlagUntilTimeout+0x6c>
  10919. {
  10920. /* Check for the Timeout */
  10921. if (Timeout != HAL_MAX_DELAY)
  10922. 80046c0: 69bb ldr r3, [r7, #24]
  10923. 80046c2: f1b3 3fff cmp.w r3, #4294967295
  10924. 80046c6: d028 beq.n 800471a <UART_WaitOnFlagUntilTimeout+0x6c>
  10925. {
  10926. if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout))
  10927. 80046c8: 69bb ldr r3, [r7, #24]
  10928. 80046ca: 2b00 cmp r3, #0
  10929. 80046cc: d007 beq.n 80046de <UART_WaitOnFlagUntilTimeout+0x30>
  10930. 80046ce: f7fd f8bd bl 800184c <HAL_GetTick>
  10931. 80046d2: 4602 mov r2, r0
  10932. 80046d4: 683b ldr r3, [r7, #0]
  10933. 80046d6: 1ad3 subs r3, r2, r3
  10934. 80046d8: 69ba ldr r2, [r7, #24]
  10935. 80046da: 429a cmp r2, r3
  10936. 80046dc: d21d bcs.n 800471a <UART_WaitOnFlagUntilTimeout+0x6c>
  10937. {
  10938. /* Disable TXE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts for the interrupt process */
  10939. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE));
  10940. 80046de: 68fb ldr r3, [r7, #12]
  10941. 80046e0: 681b ldr r3, [r3, #0]
  10942. 80046e2: 68da ldr r2, [r3, #12]
  10943. 80046e4: 68fb ldr r3, [r7, #12]
  10944. 80046e6: 681b ldr r3, [r3, #0]
  10945. 80046e8: f422 72d0 bic.w r2, r2, #416 ; 0x1a0
  10946. 80046ec: 60da str r2, [r3, #12]
  10947. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  10948. 80046ee: 68fb ldr r3, [r7, #12]
  10949. 80046f0: 681b ldr r3, [r3, #0]
  10950. 80046f2: 695a ldr r2, [r3, #20]
  10951. 80046f4: 68fb ldr r3, [r7, #12]
  10952. 80046f6: 681b ldr r3, [r3, #0]
  10953. 80046f8: f022 0201 bic.w r2, r2, #1
  10954. 80046fc: 615a str r2, [r3, #20]
  10955. huart->gState = HAL_UART_STATE_READY;
  10956. 80046fe: 68fb ldr r3, [r7, #12]
  10957. 8004700: 2220 movs r2, #32
  10958. 8004702: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10959. huart->RxState = HAL_UART_STATE_READY;
  10960. 8004706: 68fb ldr r3, [r7, #12]
  10961. 8004708: 2220 movs r2, #32
  10962. 800470a: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10963. /* Process Unlocked */
  10964. __HAL_UNLOCK(huart);
  10965. 800470e: 68fb ldr r3, [r7, #12]
  10966. 8004710: 2200 movs r2, #0
  10967. 8004712: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10968. return HAL_TIMEOUT;
  10969. 8004716: 2303 movs r3, #3
  10970. 8004718: e00f b.n 800473a <UART_WaitOnFlagUntilTimeout+0x8c>
  10971. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  10972. 800471a: 68fb ldr r3, [r7, #12]
  10973. 800471c: 681b ldr r3, [r3, #0]
  10974. 800471e: 681a ldr r2, [r3, #0]
  10975. 8004720: 68bb ldr r3, [r7, #8]
  10976. 8004722: 4013 ands r3, r2
  10977. 8004724: 68ba ldr r2, [r7, #8]
  10978. 8004726: 429a cmp r2, r3
  10979. 8004728: bf0c ite eq
  10980. 800472a: 2301 moveq r3, #1
  10981. 800472c: 2300 movne r3, #0
  10982. 800472e: b2db uxtb r3, r3
  10983. 8004730: 461a mov r2, r3
  10984. 8004732: 79fb ldrb r3, [r7, #7]
  10985. 8004734: 429a cmp r2, r3
  10986. 8004736: d0c3 beq.n 80046c0 <UART_WaitOnFlagUntilTimeout+0x12>
  10987. }
  10988. }
  10989. }
  10990. return HAL_OK;
  10991. 8004738: 2300 movs r3, #0
  10992. }
  10993. 800473a: 4618 mov r0, r3
  10994. 800473c: 3710 adds r7, #16
  10995. 800473e: 46bd mov sp, r7
  10996. 8004740: bd80 pop {r7, pc}
  10997. 08004742 <UART_EndTxTransfer>:
  10998. * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion).
  10999. * @param huart UART handle.
  11000. * @retval None
  11001. */
  11002. static void UART_EndTxTransfer(UART_HandleTypeDef *huart)
  11003. {
  11004. 8004742: b480 push {r7}
  11005. 8004744: b083 sub sp, #12
  11006. 8004746: af00 add r7, sp, #0
  11007. 8004748: 6078 str r0, [r7, #4]
  11008. /* Disable TXEIE and TCIE interrupts */
  11009. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE));
  11010. 800474a: 687b ldr r3, [r7, #4]
  11011. 800474c: 681b ldr r3, [r3, #0]
  11012. 800474e: 68da ldr r2, [r3, #12]
  11013. 8004750: 687b ldr r3, [r7, #4]
  11014. 8004752: 681b ldr r3, [r3, #0]
  11015. 8004754: f022 02c0 bic.w r2, r2, #192 ; 0xc0
  11016. 8004758: 60da str r2, [r3, #12]
  11017. /* At end of Tx process, restore huart->gState to Ready */
  11018. huart->gState = HAL_UART_STATE_READY;
  11019. 800475a: 687b ldr r3, [r7, #4]
  11020. 800475c: 2220 movs r2, #32
  11021. 800475e: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11022. }
  11023. 8004762: bf00 nop
  11024. 8004764: 370c adds r7, #12
  11025. 8004766: 46bd mov sp, r7
  11026. 8004768: bc80 pop {r7}
  11027. 800476a: 4770 bx lr
  11028. 0800476c <UART_EndRxTransfer>:
  11029. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  11030. * @param huart UART handle.
  11031. * @retval None
  11032. */
  11033. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  11034. {
  11035. 800476c: b480 push {r7}
  11036. 800476e: b083 sub sp, #12
  11037. 8004770: af00 add r7, sp, #0
  11038. 8004772: 6078 str r0, [r7, #4]
  11039. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  11040. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
  11041. 8004774: 687b ldr r3, [r7, #4]
  11042. 8004776: 681b ldr r3, [r3, #0]
  11043. 8004778: 68da ldr r2, [r3, #12]
  11044. 800477a: 687b ldr r3, [r7, #4]
  11045. 800477c: 681b ldr r3, [r3, #0]
  11046. 800477e: f422 7290 bic.w r2, r2, #288 ; 0x120
  11047. 8004782: 60da str r2, [r3, #12]
  11048. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  11049. 8004784: 687b ldr r3, [r7, #4]
  11050. 8004786: 681b ldr r3, [r3, #0]
  11051. 8004788: 695a ldr r2, [r3, #20]
  11052. 800478a: 687b ldr r3, [r7, #4]
  11053. 800478c: 681b ldr r3, [r3, #0]
  11054. 800478e: f022 0201 bic.w r2, r2, #1
  11055. 8004792: 615a str r2, [r3, #20]
  11056. /* At end of Rx process, restore huart->RxState to Ready */
  11057. huart->RxState = HAL_UART_STATE_READY;
  11058. 8004794: 687b ldr r3, [r7, #4]
  11059. 8004796: 2220 movs r2, #32
  11060. 8004798: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11061. }
  11062. 800479c: bf00 nop
  11063. 800479e: 370c adds r7, #12
  11064. 80047a0: 46bd mov sp, r7
  11065. 80047a2: bc80 pop {r7}
  11066. 80047a4: 4770 bx lr
  11067. 080047a6 <UART_DMAAbortOnError>:
  11068. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11069. * the configuration information for the specified DMA module.
  11070. * @retval None
  11071. */
  11072. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  11073. {
  11074. 80047a6: b580 push {r7, lr}
  11075. 80047a8: b084 sub sp, #16
  11076. 80047aa: af00 add r7, sp, #0
  11077. 80047ac: 6078 str r0, [r7, #4]
  11078. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11079. 80047ae: 687b ldr r3, [r7, #4]
  11080. 80047b0: 6a5b ldr r3, [r3, #36] ; 0x24
  11081. 80047b2: 60fb str r3, [r7, #12]
  11082. huart->RxXferCount = 0x00U;
  11083. 80047b4: 68fb ldr r3, [r7, #12]
  11084. 80047b6: 2200 movs r2, #0
  11085. 80047b8: 85da strh r2, [r3, #46] ; 0x2e
  11086. huart->TxXferCount = 0x00U;
  11087. 80047ba: 68fb ldr r3, [r7, #12]
  11088. 80047bc: 2200 movs r2, #0
  11089. 80047be: 84da strh r2, [r3, #38] ; 0x26
  11090. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11091. /*Call registered error callback*/
  11092. huart->ErrorCallback(huart);
  11093. #else
  11094. /*Call legacy weak error callback*/
  11095. HAL_UART_ErrorCallback(huart);
  11096. 80047c0: 68f8 ldr r0, [r7, #12]
  11097. 80047c2: f7ff fea8 bl 8004516 <HAL_UART_ErrorCallback>
  11098. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11099. }
  11100. 80047c6: bf00 nop
  11101. 80047c8: 3710 adds r7, #16
  11102. 80047ca: 46bd mov sp, r7
  11103. 80047cc: bd80 pop {r7, pc}
  11104. 080047ce <UART_Transmit_IT>:
  11105. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11106. * the configuration information for the specified UART module.
  11107. * @retval HAL status
  11108. */
  11109. static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart)
  11110. {
  11111. 80047ce: b480 push {r7}
  11112. 80047d0: b085 sub sp, #20
  11113. 80047d2: af00 add r7, sp, #0
  11114. 80047d4: 6078 str r0, [r7, #4]
  11115. uint16_t *tmp;
  11116. /* Check that a Tx process is ongoing */
  11117. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  11118. 80047d6: 687b ldr r3, [r7, #4]
  11119. 80047d8: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11120. 80047dc: b2db uxtb r3, r3
  11121. 80047de: 2b21 cmp r3, #33 ; 0x21
  11122. 80047e0: d144 bne.n 800486c <UART_Transmit_IT+0x9e>
  11123. {
  11124. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  11125. 80047e2: 687b ldr r3, [r7, #4]
  11126. 80047e4: 689b ldr r3, [r3, #8]
  11127. 80047e6: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  11128. 80047ea: d11a bne.n 8004822 <UART_Transmit_IT+0x54>
  11129. {
  11130. tmp = (uint16_t *) huart->pTxBuffPtr;
  11131. 80047ec: 687b ldr r3, [r7, #4]
  11132. 80047ee: 6a1b ldr r3, [r3, #32]
  11133. 80047f0: 60fb str r3, [r7, #12]
  11134. huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF);
  11135. 80047f2: 68fb ldr r3, [r7, #12]
  11136. 80047f4: 881b ldrh r3, [r3, #0]
  11137. 80047f6: 461a mov r2, r3
  11138. 80047f8: 687b ldr r3, [r7, #4]
  11139. 80047fa: 681b ldr r3, [r3, #0]
  11140. 80047fc: f3c2 0208 ubfx r2, r2, #0, #9
  11141. 8004800: 605a str r2, [r3, #4]
  11142. if (huart->Init.Parity == UART_PARITY_NONE)
  11143. 8004802: 687b ldr r3, [r7, #4]
  11144. 8004804: 691b ldr r3, [r3, #16]
  11145. 8004806: 2b00 cmp r3, #0
  11146. 8004808: d105 bne.n 8004816 <UART_Transmit_IT+0x48>
  11147. {
  11148. huart->pTxBuffPtr += 2U;
  11149. 800480a: 687b ldr r3, [r7, #4]
  11150. 800480c: 6a1b ldr r3, [r3, #32]
  11151. 800480e: 1c9a adds r2, r3, #2
  11152. 8004810: 687b ldr r3, [r7, #4]
  11153. 8004812: 621a str r2, [r3, #32]
  11154. 8004814: e00e b.n 8004834 <UART_Transmit_IT+0x66>
  11155. }
  11156. else
  11157. {
  11158. huart->pTxBuffPtr += 1U;
  11159. 8004816: 687b ldr r3, [r7, #4]
  11160. 8004818: 6a1b ldr r3, [r3, #32]
  11161. 800481a: 1c5a adds r2, r3, #1
  11162. 800481c: 687b ldr r3, [r7, #4]
  11163. 800481e: 621a str r2, [r3, #32]
  11164. 8004820: e008 b.n 8004834 <UART_Transmit_IT+0x66>
  11165. }
  11166. }
  11167. else
  11168. {
  11169. huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF);
  11170. 8004822: 687b ldr r3, [r7, #4]
  11171. 8004824: 6a1b ldr r3, [r3, #32]
  11172. 8004826: 1c59 adds r1, r3, #1
  11173. 8004828: 687a ldr r2, [r7, #4]
  11174. 800482a: 6211 str r1, [r2, #32]
  11175. 800482c: 781a ldrb r2, [r3, #0]
  11176. 800482e: 687b ldr r3, [r7, #4]
  11177. 8004830: 681b ldr r3, [r3, #0]
  11178. 8004832: 605a str r2, [r3, #4]
  11179. }
  11180. if (--huart->TxXferCount == 0U)
  11181. 8004834: 687b ldr r3, [r7, #4]
  11182. 8004836: 8cdb ldrh r3, [r3, #38] ; 0x26
  11183. 8004838: b29b uxth r3, r3
  11184. 800483a: 3b01 subs r3, #1
  11185. 800483c: b29b uxth r3, r3
  11186. 800483e: 687a ldr r2, [r7, #4]
  11187. 8004840: 4619 mov r1, r3
  11188. 8004842: 84d1 strh r1, [r2, #38] ; 0x26
  11189. 8004844: 2b00 cmp r3, #0
  11190. 8004846: d10f bne.n 8004868 <UART_Transmit_IT+0x9a>
  11191. {
  11192. /* Disable the UART Transmit Complete Interrupt */
  11193. __HAL_UART_DISABLE_IT(huart, UART_IT_TXE);
  11194. 8004848: 687b ldr r3, [r7, #4]
  11195. 800484a: 681b ldr r3, [r3, #0]
  11196. 800484c: 68da ldr r2, [r3, #12]
  11197. 800484e: 687b ldr r3, [r7, #4]
  11198. 8004850: 681b ldr r3, [r3, #0]
  11199. 8004852: f022 0280 bic.w r2, r2, #128 ; 0x80
  11200. 8004856: 60da str r2, [r3, #12]
  11201. /* Enable the UART Transmit Complete Interrupt */
  11202. __HAL_UART_ENABLE_IT(huart, UART_IT_TC);
  11203. 8004858: 687b ldr r3, [r7, #4]
  11204. 800485a: 681b ldr r3, [r3, #0]
  11205. 800485c: 68da ldr r2, [r3, #12]
  11206. 800485e: 687b ldr r3, [r7, #4]
  11207. 8004860: 681b ldr r3, [r3, #0]
  11208. 8004862: f042 0240 orr.w r2, r2, #64 ; 0x40
  11209. 8004866: 60da str r2, [r3, #12]
  11210. }
  11211. return HAL_OK;
  11212. 8004868: 2300 movs r3, #0
  11213. 800486a: e000 b.n 800486e <UART_Transmit_IT+0xa0>
  11214. }
  11215. else
  11216. {
  11217. return HAL_BUSY;
  11218. 800486c: 2302 movs r3, #2
  11219. }
  11220. }
  11221. 800486e: 4618 mov r0, r3
  11222. 8004870: 3714 adds r7, #20
  11223. 8004872: 46bd mov sp, r7
  11224. 8004874: bc80 pop {r7}
  11225. 8004876: 4770 bx lr
  11226. 08004878 <UART_EndTransmit_IT>:
  11227. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11228. * the configuration information for the specified UART module.
  11229. * @retval HAL status
  11230. */
  11231. static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  11232. {
  11233. 8004878: b580 push {r7, lr}
  11234. 800487a: b082 sub sp, #8
  11235. 800487c: af00 add r7, sp, #0
  11236. 800487e: 6078 str r0, [r7, #4]
  11237. /* Disable the UART Transmit Complete Interrupt */
  11238. __HAL_UART_DISABLE_IT(huart, UART_IT_TC);
  11239. 8004880: 687b ldr r3, [r7, #4]
  11240. 8004882: 681b ldr r3, [r3, #0]
  11241. 8004884: 68da ldr r2, [r3, #12]
  11242. 8004886: 687b ldr r3, [r7, #4]
  11243. 8004888: 681b ldr r3, [r3, #0]
  11244. 800488a: f022 0240 bic.w r2, r2, #64 ; 0x40
  11245. 800488e: 60da str r2, [r3, #12]
  11246. /* Tx process is ended, restore huart->gState to Ready */
  11247. huart->gState = HAL_UART_STATE_READY;
  11248. 8004890: 687b ldr r3, [r7, #4]
  11249. 8004892: 2220 movs r2, #32
  11250. 8004894: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11251. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11252. /*Call registered Tx complete callback*/
  11253. huart->TxCpltCallback(huart);
  11254. #else
  11255. /*Call legacy weak Tx complete callback*/
  11256. HAL_UART_TxCpltCallback(huart);
  11257. 8004898: 6878 ldr r0, [r7, #4]
  11258. 800489a: f7ff fe21 bl 80044e0 <HAL_UART_TxCpltCallback>
  11259. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11260. return HAL_OK;
  11261. 800489e: 2300 movs r3, #0
  11262. }
  11263. 80048a0: 4618 mov r0, r3
  11264. 80048a2: 3708 adds r7, #8
  11265. 80048a4: 46bd mov sp, r7
  11266. 80048a6: bd80 pop {r7, pc}
  11267. 080048a8 <UART_Receive_IT>:
  11268. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11269. * the configuration information for the specified UART module.
  11270. * @retval HAL status
  11271. */
  11272. static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart)
  11273. {
  11274. 80048a8: b580 push {r7, lr}
  11275. 80048aa: b084 sub sp, #16
  11276. 80048ac: af00 add r7, sp, #0
  11277. 80048ae: 6078 str r0, [r7, #4]
  11278. uint16_t *tmp;
  11279. /* Check that a Rx process is ongoing */
  11280. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  11281. 80048b0: 687b ldr r3, [r7, #4]
  11282. 80048b2: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  11283. 80048b6: b2db uxtb r3, r3
  11284. 80048b8: 2b22 cmp r3, #34 ; 0x22
  11285. 80048ba: d171 bne.n 80049a0 <UART_Receive_IT+0xf8>
  11286. {
  11287. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  11288. 80048bc: 687b ldr r3, [r7, #4]
  11289. 80048be: 689b ldr r3, [r3, #8]
  11290. 80048c0: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  11291. 80048c4: d123 bne.n 800490e <UART_Receive_IT+0x66>
  11292. {
  11293. tmp = (uint16_t *) huart->pRxBuffPtr;
  11294. 80048c6: 687b ldr r3, [r7, #4]
  11295. 80048c8: 6a9b ldr r3, [r3, #40] ; 0x28
  11296. 80048ca: 60fb str r3, [r7, #12]
  11297. if (huart->Init.Parity == UART_PARITY_NONE)
  11298. 80048cc: 687b ldr r3, [r7, #4]
  11299. 80048ce: 691b ldr r3, [r3, #16]
  11300. 80048d0: 2b00 cmp r3, #0
  11301. 80048d2: d10e bne.n 80048f2 <UART_Receive_IT+0x4a>
  11302. {
  11303. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF);
  11304. 80048d4: 687b ldr r3, [r7, #4]
  11305. 80048d6: 681b ldr r3, [r3, #0]
  11306. 80048d8: 685b ldr r3, [r3, #4]
  11307. 80048da: b29b uxth r3, r3
  11308. 80048dc: f3c3 0308 ubfx r3, r3, #0, #9
  11309. 80048e0: b29a uxth r2, r3
  11310. 80048e2: 68fb ldr r3, [r7, #12]
  11311. 80048e4: 801a strh r2, [r3, #0]
  11312. huart->pRxBuffPtr += 2U;
  11313. 80048e6: 687b ldr r3, [r7, #4]
  11314. 80048e8: 6a9b ldr r3, [r3, #40] ; 0x28
  11315. 80048ea: 1c9a adds r2, r3, #2
  11316. 80048ec: 687b ldr r3, [r7, #4]
  11317. 80048ee: 629a str r2, [r3, #40] ; 0x28
  11318. 80048f0: e029 b.n 8004946 <UART_Receive_IT+0x9e>
  11319. }
  11320. else
  11321. {
  11322. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x00FF);
  11323. 80048f2: 687b ldr r3, [r7, #4]
  11324. 80048f4: 681b ldr r3, [r3, #0]
  11325. 80048f6: 685b ldr r3, [r3, #4]
  11326. 80048f8: b29b uxth r3, r3
  11327. 80048fa: b2db uxtb r3, r3
  11328. 80048fc: b29a uxth r2, r3
  11329. 80048fe: 68fb ldr r3, [r7, #12]
  11330. 8004900: 801a strh r2, [r3, #0]
  11331. huart->pRxBuffPtr += 1U;
  11332. 8004902: 687b ldr r3, [r7, #4]
  11333. 8004904: 6a9b ldr r3, [r3, #40] ; 0x28
  11334. 8004906: 1c5a adds r2, r3, #1
  11335. 8004908: 687b ldr r3, [r7, #4]
  11336. 800490a: 629a str r2, [r3, #40] ; 0x28
  11337. 800490c: e01b b.n 8004946 <UART_Receive_IT+0x9e>
  11338. }
  11339. }
  11340. else
  11341. {
  11342. if (huart->Init.Parity == UART_PARITY_NONE)
  11343. 800490e: 687b ldr r3, [r7, #4]
  11344. 8004910: 691b ldr r3, [r3, #16]
  11345. 8004912: 2b00 cmp r3, #0
  11346. 8004914: d10a bne.n 800492c <UART_Receive_IT+0x84>
  11347. {
  11348. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF);
  11349. 8004916: 687b ldr r3, [r7, #4]
  11350. 8004918: 681b ldr r3, [r3, #0]
  11351. 800491a: 6858 ldr r0, [r3, #4]
  11352. 800491c: 687b ldr r3, [r7, #4]
  11353. 800491e: 6a9b ldr r3, [r3, #40] ; 0x28
  11354. 8004920: 1c59 adds r1, r3, #1
  11355. 8004922: 687a ldr r2, [r7, #4]
  11356. 8004924: 6291 str r1, [r2, #40] ; 0x28
  11357. 8004926: b2c2 uxtb r2, r0
  11358. 8004928: 701a strb r2, [r3, #0]
  11359. 800492a: e00c b.n 8004946 <UART_Receive_IT+0x9e>
  11360. }
  11361. else
  11362. {
  11363. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F);
  11364. 800492c: 687b ldr r3, [r7, #4]
  11365. 800492e: 681b ldr r3, [r3, #0]
  11366. 8004930: 685b ldr r3, [r3, #4]
  11367. 8004932: b2da uxtb r2, r3
  11368. 8004934: 687b ldr r3, [r7, #4]
  11369. 8004936: 6a9b ldr r3, [r3, #40] ; 0x28
  11370. 8004938: 1c58 adds r0, r3, #1
  11371. 800493a: 6879 ldr r1, [r7, #4]
  11372. 800493c: 6288 str r0, [r1, #40] ; 0x28
  11373. 800493e: f002 027f and.w r2, r2, #127 ; 0x7f
  11374. 8004942: b2d2 uxtb r2, r2
  11375. 8004944: 701a strb r2, [r3, #0]
  11376. }
  11377. }
  11378. if (--huart->RxXferCount == 0U)
  11379. 8004946: 687b ldr r3, [r7, #4]
  11380. 8004948: 8ddb ldrh r3, [r3, #46] ; 0x2e
  11381. 800494a: b29b uxth r3, r3
  11382. 800494c: 3b01 subs r3, #1
  11383. 800494e: b29b uxth r3, r3
  11384. 8004950: 687a ldr r2, [r7, #4]
  11385. 8004952: 4619 mov r1, r3
  11386. 8004954: 85d1 strh r1, [r2, #46] ; 0x2e
  11387. 8004956: 2b00 cmp r3, #0
  11388. 8004958: d120 bne.n 800499c <UART_Receive_IT+0xf4>
  11389. {
  11390. /* Disable the UART Data Register not empty Interrupt */
  11391. __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE);
  11392. 800495a: 687b ldr r3, [r7, #4]
  11393. 800495c: 681b ldr r3, [r3, #0]
  11394. 800495e: 68da ldr r2, [r3, #12]
  11395. 8004960: 687b ldr r3, [r7, #4]
  11396. 8004962: 681b ldr r3, [r3, #0]
  11397. 8004964: f022 0220 bic.w r2, r2, #32
  11398. 8004968: 60da str r2, [r3, #12]
  11399. /* Disable the UART Parity Error Interrupt */
  11400. __HAL_UART_DISABLE_IT(huart, UART_IT_PE);
  11401. 800496a: 687b ldr r3, [r7, #4]
  11402. 800496c: 681b ldr r3, [r3, #0]
  11403. 800496e: 68da ldr r2, [r3, #12]
  11404. 8004970: 687b ldr r3, [r7, #4]
  11405. 8004972: 681b ldr r3, [r3, #0]
  11406. 8004974: f422 7280 bic.w r2, r2, #256 ; 0x100
  11407. 8004978: 60da str r2, [r3, #12]
  11408. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  11409. __HAL_UART_DISABLE_IT(huart, UART_IT_ERR);
  11410. 800497a: 687b ldr r3, [r7, #4]
  11411. 800497c: 681b ldr r3, [r3, #0]
  11412. 800497e: 695a ldr r2, [r3, #20]
  11413. 8004980: 687b ldr r3, [r7, #4]
  11414. 8004982: 681b ldr r3, [r3, #0]
  11415. 8004984: f022 0201 bic.w r2, r2, #1
  11416. 8004988: 615a str r2, [r3, #20]
  11417. /* Rx process is completed, restore huart->RxState to Ready */
  11418. huart->RxState = HAL_UART_STATE_READY;
  11419. 800498a: 687b ldr r3, [r7, #4]
  11420. 800498c: 2220 movs r2, #32
  11421. 800498e: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11422. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11423. /*Call registered Rx complete callback*/
  11424. huart->RxCpltCallback(huart);
  11425. #else
  11426. /*Call legacy weak Rx complete callback*/
  11427. HAL_UART_RxCpltCallback(huart);
  11428. 8004992: 6878 ldr r0, [r7, #4]
  11429. 8004994: f7fc fe3c bl 8001610 <HAL_UART_RxCpltCallback>
  11430. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11431. return HAL_OK;
  11432. 8004998: 2300 movs r3, #0
  11433. 800499a: e002 b.n 80049a2 <UART_Receive_IT+0xfa>
  11434. }
  11435. return HAL_OK;
  11436. 800499c: 2300 movs r3, #0
  11437. 800499e: e000 b.n 80049a2 <UART_Receive_IT+0xfa>
  11438. }
  11439. else
  11440. {
  11441. return HAL_BUSY;
  11442. 80049a0: 2302 movs r3, #2
  11443. }
  11444. }
  11445. 80049a2: 4618 mov r0, r3
  11446. 80049a4: 3710 adds r7, #16
  11447. 80049a6: 46bd mov sp, r7
  11448. 80049a8: bd80 pop {r7, pc}
  11449. ...
  11450. 080049ac <UART_SetConfig>:
  11451. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11452. * the configuration information for the specified UART module.
  11453. * @retval None
  11454. */
  11455. static void UART_SetConfig(UART_HandleTypeDef *huart)
  11456. {
  11457. 80049ac: b580 push {r7, lr}
  11458. 80049ae: b084 sub sp, #16
  11459. 80049b0: af00 add r7, sp, #0
  11460. 80049b2: 6078 str r0, [r7, #4]
  11461. assert_param(IS_UART_MODE(huart->Init.Mode));
  11462. /*-------------------------- USART CR2 Configuration -----------------------*/
  11463. /* Configure the UART Stop Bits: Set STOP[13:12] bits
  11464. according to huart->Init.StopBits value */
  11465. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  11466. 80049b4: 687b ldr r3, [r7, #4]
  11467. 80049b6: 681b ldr r3, [r3, #0]
  11468. 80049b8: 691b ldr r3, [r3, #16]
  11469. 80049ba: f423 5140 bic.w r1, r3, #12288 ; 0x3000
  11470. 80049be: 687b ldr r3, [r7, #4]
  11471. 80049c0: 68da ldr r2, [r3, #12]
  11472. 80049c2: 687b ldr r3, [r7, #4]
  11473. 80049c4: 681b ldr r3, [r3, #0]
  11474. 80049c6: 430a orrs r2, r1
  11475. 80049c8: 611a str r2, [r3, #16]
  11476. Set PCE and PS bits according to huart->Init.Parity value
  11477. Set TE and RE bits according to huart->Init.Mode value
  11478. Set OVER8 bit according to huart->Init.OverSampling value */
  11479. #if defined(USART_CR1_OVER8)
  11480. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  11481. 80049ca: 687b ldr r3, [r7, #4]
  11482. 80049cc: 689a ldr r2, [r3, #8]
  11483. 80049ce: 687b ldr r3, [r7, #4]
  11484. 80049d0: 691b ldr r3, [r3, #16]
  11485. 80049d2: 431a orrs r2, r3
  11486. 80049d4: 687b ldr r3, [r7, #4]
  11487. 80049d6: 695b ldr r3, [r3, #20]
  11488. 80049d8: 431a orrs r2, r3
  11489. 80049da: 687b ldr r3, [r7, #4]
  11490. 80049dc: 69db ldr r3, [r3, #28]
  11491. 80049de: 4313 orrs r3, r2
  11492. 80049e0: 60fb str r3, [r7, #12]
  11493. MODIFY_REG(huart->Instance->CR1,
  11494. 80049e2: 687b ldr r3, [r7, #4]
  11495. 80049e4: 681b ldr r3, [r3, #0]
  11496. 80049e6: 68db ldr r3, [r3, #12]
  11497. 80049e8: f423 4316 bic.w r3, r3, #38400 ; 0x9600
  11498. 80049ec: f023 030c bic.w r3, r3, #12
  11499. 80049f0: 687a ldr r2, [r7, #4]
  11500. 80049f2: 6812 ldr r2, [r2, #0]
  11501. 80049f4: 68f9 ldr r1, [r7, #12]
  11502. 80049f6: 430b orrs r3, r1
  11503. 80049f8: 60d3 str r3, [r2, #12]
  11504. tmpreg);
  11505. #endif /* USART_CR1_OVER8 */
  11506. /*-------------------------- USART CR3 Configuration -----------------------*/
  11507. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  11508. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  11509. 80049fa: 687b ldr r3, [r7, #4]
  11510. 80049fc: 681b ldr r3, [r3, #0]
  11511. 80049fe: 695b ldr r3, [r3, #20]
  11512. 8004a00: f423 7140 bic.w r1, r3, #768 ; 0x300
  11513. 8004a04: 687b ldr r3, [r7, #4]
  11514. 8004a06: 699a ldr r2, [r3, #24]
  11515. 8004a08: 687b ldr r3, [r7, #4]
  11516. 8004a0a: 681b ldr r3, [r3, #0]
  11517. 8004a0c: 430a orrs r2, r1
  11518. 8004a0e: 615a str r2, [r3, #20]
  11519. #if defined(USART_CR1_OVER8)
  11520. /* Check the Over Sampling */
  11521. if(huart->Init.OverSampling == UART_OVERSAMPLING_8)
  11522. 8004a10: 687b ldr r3, [r7, #4]
  11523. 8004a12: 69db ldr r3, [r3, #28]
  11524. 8004a14: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
  11525. 8004a18: f040 80a5 bne.w 8004b66 <UART_SetConfig+0x1ba>
  11526. {
  11527. /*-------------------------- USART BRR Configuration ---------------------*/
  11528. if(huart->Instance == USART1)
  11529. 8004a1c: 687b ldr r3, [r7, #4]
  11530. 8004a1e: 681b ldr r3, [r3, #0]
  11531. 8004a20: 4aa4 ldr r2, [pc, #656] ; (8004cb4 <UART_SetConfig+0x308>)
  11532. 8004a22: 4293 cmp r3, r2
  11533. 8004a24: d14f bne.n 8004ac6 <UART_SetConfig+0x11a>
  11534. {
  11535. pclk = HAL_RCC_GetPCLK2Freq();
  11536. 8004a26: f7fe fe8d bl 8003744 <HAL_RCC_GetPCLK2Freq>
  11537. 8004a2a: 60b8 str r0, [r7, #8]
  11538. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  11539. 8004a2c: 68ba ldr r2, [r7, #8]
  11540. 8004a2e: 4613 mov r3, r2
  11541. 8004a30: 009b lsls r3, r3, #2
  11542. 8004a32: 4413 add r3, r2
  11543. 8004a34: 009a lsls r2, r3, #2
  11544. 8004a36: 441a add r2, r3
  11545. 8004a38: 687b ldr r3, [r7, #4]
  11546. 8004a3a: 685b ldr r3, [r3, #4]
  11547. 8004a3c: 005b lsls r3, r3, #1
  11548. 8004a3e: fbb2 f3f3 udiv r3, r2, r3
  11549. 8004a42: 4a9d ldr r2, [pc, #628] ; (8004cb8 <UART_SetConfig+0x30c>)
  11550. 8004a44: fba2 2303 umull r2, r3, r2, r3
  11551. 8004a48: 095b lsrs r3, r3, #5
  11552. 8004a4a: 0119 lsls r1, r3, #4
  11553. 8004a4c: 68ba ldr r2, [r7, #8]
  11554. 8004a4e: 4613 mov r3, r2
  11555. 8004a50: 009b lsls r3, r3, #2
  11556. 8004a52: 4413 add r3, r2
  11557. 8004a54: 009a lsls r2, r3, #2
  11558. 8004a56: 441a add r2, r3
  11559. 8004a58: 687b ldr r3, [r7, #4]
  11560. 8004a5a: 685b ldr r3, [r3, #4]
  11561. 8004a5c: 005b lsls r3, r3, #1
  11562. 8004a5e: fbb2 f2f3 udiv r2, r2, r3
  11563. 8004a62: 4b95 ldr r3, [pc, #596] ; (8004cb8 <UART_SetConfig+0x30c>)
  11564. 8004a64: fba3 0302 umull r0, r3, r3, r2
  11565. 8004a68: 095b lsrs r3, r3, #5
  11566. 8004a6a: 2064 movs r0, #100 ; 0x64
  11567. 8004a6c: fb00 f303 mul.w r3, r0, r3
  11568. 8004a70: 1ad3 subs r3, r2, r3
  11569. 8004a72: 00db lsls r3, r3, #3
  11570. 8004a74: 3332 adds r3, #50 ; 0x32
  11571. 8004a76: 4a90 ldr r2, [pc, #576] ; (8004cb8 <UART_SetConfig+0x30c>)
  11572. 8004a78: fba2 2303 umull r2, r3, r2, r3
  11573. 8004a7c: 095b lsrs r3, r3, #5
  11574. 8004a7e: 005b lsls r3, r3, #1
  11575. 8004a80: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  11576. 8004a84: 4419 add r1, r3
  11577. 8004a86: 68ba ldr r2, [r7, #8]
  11578. 8004a88: 4613 mov r3, r2
  11579. 8004a8a: 009b lsls r3, r3, #2
  11580. 8004a8c: 4413 add r3, r2
  11581. 8004a8e: 009a lsls r2, r3, #2
  11582. 8004a90: 441a add r2, r3
  11583. 8004a92: 687b ldr r3, [r7, #4]
  11584. 8004a94: 685b ldr r3, [r3, #4]
  11585. 8004a96: 005b lsls r3, r3, #1
  11586. 8004a98: fbb2 f2f3 udiv r2, r2, r3
  11587. 8004a9c: 4b86 ldr r3, [pc, #536] ; (8004cb8 <UART_SetConfig+0x30c>)
  11588. 8004a9e: fba3 0302 umull r0, r3, r3, r2
  11589. 8004aa2: 095b lsrs r3, r3, #5
  11590. 8004aa4: 2064 movs r0, #100 ; 0x64
  11591. 8004aa6: fb00 f303 mul.w r3, r0, r3
  11592. 8004aaa: 1ad3 subs r3, r2, r3
  11593. 8004aac: 00db lsls r3, r3, #3
  11594. 8004aae: 3332 adds r3, #50 ; 0x32
  11595. 8004ab0: 4a81 ldr r2, [pc, #516] ; (8004cb8 <UART_SetConfig+0x30c>)
  11596. 8004ab2: fba2 2303 umull r2, r3, r2, r3
  11597. 8004ab6: 095b lsrs r3, r3, #5
  11598. 8004ab8: f003 0207 and.w r2, r3, #7
  11599. 8004abc: 687b ldr r3, [r7, #4]
  11600. 8004abe: 681b ldr r3, [r3, #0]
  11601. 8004ac0: 440a add r2, r1
  11602. 8004ac2: 609a str r2, [r3, #8]
  11603. {
  11604. pclk = HAL_RCC_GetPCLK1Freq();
  11605. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  11606. }
  11607. #endif /* USART_CR1_OVER8 */
  11608. }
  11609. 8004ac4: e0f1 b.n 8004caa <UART_SetConfig+0x2fe>
  11610. pclk = HAL_RCC_GetPCLK1Freq();
  11611. 8004ac6: f7fe fe29 bl 800371c <HAL_RCC_GetPCLK1Freq>
  11612. 8004aca: 60b8 str r0, [r7, #8]
  11613. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  11614. 8004acc: 68ba ldr r2, [r7, #8]
  11615. 8004ace: 4613 mov r3, r2
  11616. 8004ad0: 009b lsls r3, r3, #2
  11617. 8004ad2: 4413 add r3, r2
  11618. 8004ad4: 009a lsls r2, r3, #2
  11619. 8004ad6: 441a add r2, r3
  11620. 8004ad8: 687b ldr r3, [r7, #4]
  11621. 8004ada: 685b ldr r3, [r3, #4]
  11622. 8004adc: 005b lsls r3, r3, #1
  11623. 8004ade: fbb2 f3f3 udiv r3, r2, r3
  11624. 8004ae2: 4a75 ldr r2, [pc, #468] ; (8004cb8 <UART_SetConfig+0x30c>)
  11625. 8004ae4: fba2 2303 umull r2, r3, r2, r3
  11626. 8004ae8: 095b lsrs r3, r3, #5
  11627. 8004aea: 0119 lsls r1, r3, #4
  11628. 8004aec: 68ba ldr r2, [r7, #8]
  11629. 8004aee: 4613 mov r3, r2
  11630. 8004af0: 009b lsls r3, r3, #2
  11631. 8004af2: 4413 add r3, r2
  11632. 8004af4: 009a lsls r2, r3, #2
  11633. 8004af6: 441a add r2, r3
  11634. 8004af8: 687b ldr r3, [r7, #4]
  11635. 8004afa: 685b ldr r3, [r3, #4]
  11636. 8004afc: 005b lsls r3, r3, #1
  11637. 8004afe: fbb2 f2f3 udiv r2, r2, r3
  11638. 8004b02: 4b6d ldr r3, [pc, #436] ; (8004cb8 <UART_SetConfig+0x30c>)
  11639. 8004b04: fba3 0302 umull r0, r3, r3, r2
  11640. 8004b08: 095b lsrs r3, r3, #5
  11641. 8004b0a: 2064 movs r0, #100 ; 0x64
  11642. 8004b0c: fb00 f303 mul.w r3, r0, r3
  11643. 8004b10: 1ad3 subs r3, r2, r3
  11644. 8004b12: 00db lsls r3, r3, #3
  11645. 8004b14: 3332 adds r3, #50 ; 0x32
  11646. 8004b16: 4a68 ldr r2, [pc, #416] ; (8004cb8 <UART_SetConfig+0x30c>)
  11647. 8004b18: fba2 2303 umull r2, r3, r2, r3
  11648. 8004b1c: 095b lsrs r3, r3, #5
  11649. 8004b1e: 005b lsls r3, r3, #1
  11650. 8004b20: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  11651. 8004b24: 4419 add r1, r3
  11652. 8004b26: 68ba ldr r2, [r7, #8]
  11653. 8004b28: 4613 mov r3, r2
  11654. 8004b2a: 009b lsls r3, r3, #2
  11655. 8004b2c: 4413 add r3, r2
  11656. 8004b2e: 009a lsls r2, r3, #2
  11657. 8004b30: 441a add r2, r3
  11658. 8004b32: 687b ldr r3, [r7, #4]
  11659. 8004b34: 685b ldr r3, [r3, #4]
  11660. 8004b36: 005b lsls r3, r3, #1
  11661. 8004b38: fbb2 f2f3 udiv r2, r2, r3
  11662. 8004b3c: 4b5e ldr r3, [pc, #376] ; (8004cb8 <UART_SetConfig+0x30c>)
  11663. 8004b3e: fba3 0302 umull r0, r3, r3, r2
  11664. 8004b42: 095b lsrs r3, r3, #5
  11665. 8004b44: 2064 movs r0, #100 ; 0x64
  11666. 8004b46: fb00 f303 mul.w r3, r0, r3
  11667. 8004b4a: 1ad3 subs r3, r2, r3
  11668. 8004b4c: 00db lsls r3, r3, #3
  11669. 8004b4e: 3332 adds r3, #50 ; 0x32
  11670. 8004b50: 4a59 ldr r2, [pc, #356] ; (8004cb8 <UART_SetConfig+0x30c>)
  11671. 8004b52: fba2 2303 umull r2, r3, r2, r3
  11672. 8004b56: 095b lsrs r3, r3, #5
  11673. 8004b58: f003 0207 and.w r2, r3, #7
  11674. 8004b5c: 687b ldr r3, [r7, #4]
  11675. 8004b5e: 681b ldr r3, [r3, #0]
  11676. 8004b60: 440a add r2, r1
  11677. 8004b62: 609a str r2, [r3, #8]
  11678. }
  11679. 8004b64: e0a1 b.n 8004caa <UART_SetConfig+0x2fe>
  11680. if(huart->Instance == USART1)
  11681. 8004b66: 687b ldr r3, [r7, #4]
  11682. 8004b68: 681b ldr r3, [r3, #0]
  11683. 8004b6a: 4a52 ldr r2, [pc, #328] ; (8004cb4 <UART_SetConfig+0x308>)
  11684. 8004b6c: 4293 cmp r3, r2
  11685. 8004b6e: d14e bne.n 8004c0e <UART_SetConfig+0x262>
  11686. pclk = HAL_RCC_GetPCLK2Freq();
  11687. 8004b70: f7fe fde8 bl 8003744 <HAL_RCC_GetPCLK2Freq>
  11688. 8004b74: 60b8 str r0, [r7, #8]
  11689. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  11690. 8004b76: 68ba ldr r2, [r7, #8]
  11691. 8004b78: 4613 mov r3, r2
  11692. 8004b7a: 009b lsls r3, r3, #2
  11693. 8004b7c: 4413 add r3, r2
  11694. 8004b7e: 009a lsls r2, r3, #2
  11695. 8004b80: 441a add r2, r3
  11696. 8004b82: 687b ldr r3, [r7, #4]
  11697. 8004b84: 685b ldr r3, [r3, #4]
  11698. 8004b86: 009b lsls r3, r3, #2
  11699. 8004b88: fbb2 f3f3 udiv r3, r2, r3
  11700. 8004b8c: 4a4a ldr r2, [pc, #296] ; (8004cb8 <UART_SetConfig+0x30c>)
  11701. 8004b8e: fba2 2303 umull r2, r3, r2, r3
  11702. 8004b92: 095b lsrs r3, r3, #5
  11703. 8004b94: 0119 lsls r1, r3, #4
  11704. 8004b96: 68ba ldr r2, [r7, #8]
  11705. 8004b98: 4613 mov r3, r2
  11706. 8004b9a: 009b lsls r3, r3, #2
  11707. 8004b9c: 4413 add r3, r2
  11708. 8004b9e: 009a lsls r2, r3, #2
  11709. 8004ba0: 441a add r2, r3
  11710. 8004ba2: 687b ldr r3, [r7, #4]
  11711. 8004ba4: 685b ldr r3, [r3, #4]
  11712. 8004ba6: 009b lsls r3, r3, #2
  11713. 8004ba8: fbb2 f2f3 udiv r2, r2, r3
  11714. 8004bac: 4b42 ldr r3, [pc, #264] ; (8004cb8 <UART_SetConfig+0x30c>)
  11715. 8004bae: fba3 0302 umull r0, r3, r3, r2
  11716. 8004bb2: 095b lsrs r3, r3, #5
  11717. 8004bb4: 2064 movs r0, #100 ; 0x64
  11718. 8004bb6: fb00 f303 mul.w r3, r0, r3
  11719. 8004bba: 1ad3 subs r3, r2, r3
  11720. 8004bbc: 011b lsls r3, r3, #4
  11721. 8004bbe: 3332 adds r3, #50 ; 0x32
  11722. 8004bc0: 4a3d ldr r2, [pc, #244] ; (8004cb8 <UART_SetConfig+0x30c>)
  11723. 8004bc2: fba2 2303 umull r2, r3, r2, r3
  11724. 8004bc6: 095b lsrs r3, r3, #5
  11725. 8004bc8: f003 03f0 and.w r3, r3, #240 ; 0xf0
  11726. 8004bcc: 4419 add r1, r3
  11727. 8004bce: 68ba ldr r2, [r7, #8]
  11728. 8004bd0: 4613 mov r3, r2
  11729. 8004bd2: 009b lsls r3, r3, #2
  11730. 8004bd4: 4413 add r3, r2
  11731. 8004bd6: 009a lsls r2, r3, #2
  11732. 8004bd8: 441a add r2, r3
  11733. 8004bda: 687b ldr r3, [r7, #4]
  11734. 8004bdc: 685b ldr r3, [r3, #4]
  11735. 8004bde: 009b lsls r3, r3, #2
  11736. 8004be0: fbb2 f2f3 udiv r2, r2, r3
  11737. 8004be4: 4b34 ldr r3, [pc, #208] ; (8004cb8 <UART_SetConfig+0x30c>)
  11738. 8004be6: fba3 0302 umull r0, r3, r3, r2
  11739. 8004bea: 095b lsrs r3, r3, #5
  11740. 8004bec: 2064 movs r0, #100 ; 0x64
  11741. 8004bee: fb00 f303 mul.w r3, r0, r3
  11742. 8004bf2: 1ad3 subs r3, r2, r3
  11743. 8004bf4: 011b lsls r3, r3, #4
  11744. 8004bf6: 3332 adds r3, #50 ; 0x32
  11745. 8004bf8: 4a2f ldr r2, [pc, #188] ; (8004cb8 <UART_SetConfig+0x30c>)
  11746. 8004bfa: fba2 2303 umull r2, r3, r2, r3
  11747. 8004bfe: 095b lsrs r3, r3, #5
  11748. 8004c00: f003 020f and.w r2, r3, #15
  11749. 8004c04: 687b ldr r3, [r7, #4]
  11750. 8004c06: 681b ldr r3, [r3, #0]
  11751. 8004c08: 440a add r2, r1
  11752. 8004c0a: 609a str r2, [r3, #8]
  11753. }
  11754. 8004c0c: e04d b.n 8004caa <UART_SetConfig+0x2fe>
  11755. pclk = HAL_RCC_GetPCLK1Freq();
  11756. 8004c0e: f7fe fd85 bl 800371c <HAL_RCC_GetPCLK1Freq>
  11757. 8004c12: 60b8 str r0, [r7, #8]
  11758. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  11759. 8004c14: 68ba ldr r2, [r7, #8]
  11760. 8004c16: 4613 mov r3, r2
  11761. 8004c18: 009b lsls r3, r3, #2
  11762. 8004c1a: 4413 add r3, r2
  11763. 8004c1c: 009a lsls r2, r3, #2
  11764. 8004c1e: 441a add r2, r3
  11765. 8004c20: 687b ldr r3, [r7, #4]
  11766. 8004c22: 685b ldr r3, [r3, #4]
  11767. 8004c24: 009b lsls r3, r3, #2
  11768. 8004c26: fbb2 f3f3 udiv r3, r2, r3
  11769. 8004c2a: 4a23 ldr r2, [pc, #140] ; (8004cb8 <UART_SetConfig+0x30c>)
  11770. 8004c2c: fba2 2303 umull r2, r3, r2, r3
  11771. 8004c30: 095b lsrs r3, r3, #5
  11772. 8004c32: 0119 lsls r1, r3, #4
  11773. 8004c34: 68ba ldr r2, [r7, #8]
  11774. 8004c36: 4613 mov r3, r2
  11775. 8004c38: 009b lsls r3, r3, #2
  11776. 8004c3a: 4413 add r3, r2
  11777. 8004c3c: 009a lsls r2, r3, #2
  11778. 8004c3e: 441a add r2, r3
  11779. 8004c40: 687b ldr r3, [r7, #4]
  11780. 8004c42: 685b ldr r3, [r3, #4]
  11781. 8004c44: 009b lsls r3, r3, #2
  11782. 8004c46: fbb2 f2f3 udiv r2, r2, r3
  11783. 8004c4a: 4b1b ldr r3, [pc, #108] ; (8004cb8 <UART_SetConfig+0x30c>)
  11784. 8004c4c: fba3 0302 umull r0, r3, r3, r2
  11785. 8004c50: 095b lsrs r3, r3, #5
  11786. 8004c52: 2064 movs r0, #100 ; 0x64
  11787. 8004c54: fb00 f303 mul.w r3, r0, r3
  11788. 8004c58: 1ad3 subs r3, r2, r3
  11789. 8004c5a: 011b lsls r3, r3, #4
  11790. 8004c5c: 3332 adds r3, #50 ; 0x32
  11791. 8004c5e: 4a16 ldr r2, [pc, #88] ; (8004cb8 <UART_SetConfig+0x30c>)
  11792. 8004c60: fba2 2303 umull r2, r3, r2, r3
  11793. 8004c64: 095b lsrs r3, r3, #5
  11794. 8004c66: f003 03f0 and.w r3, r3, #240 ; 0xf0
  11795. 8004c6a: 4419 add r1, r3
  11796. 8004c6c: 68ba ldr r2, [r7, #8]
  11797. 8004c6e: 4613 mov r3, r2
  11798. 8004c70: 009b lsls r3, r3, #2
  11799. 8004c72: 4413 add r3, r2
  11800. 8004c74: 009a lsls r2, r3, #2
  11801. 8004c76: 441a add r2, r3
  11802. 8004c78: 687b ldr r3, [r7, #4]
  11803. 8004c7a: 685b ldr r3, [r3, #4]
  11804. 8004c7c: 009b lsls r3, r3, #2
  11805. 8004c7e: fbb2 f2f3 udiv r2, r2, r3
  11806. 8004c82: 4b0d ldr r3, [pc, #52] ; (8004cb8 <UART_SetConfig+0x30c>)
  11807. 8004c84: fba3 0302 umull r0, r3, r3, r2
  11808. 8004c88: 095b lsrs r3, r3, #5
  11809. 8004c8a: 2064 movs r0, #100 ; 0x64
  11810. 8004c8c: fb00 f303 mul.w r3, r0, r3
  11811. 8004c90: 1ad3 subs r3, r2, r3
  11812. 8004c92: 011b lsls r3, r3, #4
  11813. 8004c94: 3332 adds r3, #50 ; 0x32
  11814. 8004c96: 4a08 ldr r2, [pc, #32] ; (8004cb8 <UART_SetConfig+0x30c>)
  11815. 8004c98: fba2 2303 umull r2, r3, r2, r3
  11816. 8004c9c: 095b lsrs r3, r3, #5
  11817. 8004c9e: f003 020f and.w r2, r3, #15
  11818. 8004ca2: 687b ldr r3, [r7, #4]
  11819. 8004ca4: 681b ldr r3, [r3, #0]
  11820. 8004ca6: 440a add r2, r1
  11821. 8004ca8: 609a str r2, [r3, #8]
  11822. }
  11823. 8004caa: bf00 nop
  11824. 8004cac: 3710 adds r7, #16
  11825. 8004cae: 46bd mov sp, r7
  11826. 8004cb0: bd80 pop {r7, pc}
  11827. 8004cb2: bf00 nop
  11828. 8004cb4: 40013800 .word 0x40013800
  11829. 8004cb8: 51eb851f .word 0x51eb851f
  11830. 08004cbc <_write>:
  11831. /* USER CODE END PFP */
  11832. /* Private user code ---------------------------------------------------------*/
  11833. /* USER CODE BEGIN 0 */
  11834. int _write (int file, uint8_t *ptr, uint16_t len)
  11835. {
  11836. 8004cbc: b580 push {r7, lr}
  11837. 8004cbe: b084 sub sp, #16
  11838. 8004cc0: af00 add r7, sp, #0
  11839. 8004cc2: 60f8 str r0, [r7, #12]
  11840. 8004cc4: 60b9 str r1, [r7, #8]
  11841. 8004cc6: 4613 mov r3, r2
  11842. 8004cc8: 80fb strh r3, [r7, #6]
  11843. #if 0 // PYJ.2020.06.03_BEGIN --
  11844. HAL_UART_Transmit(&hTest, ptr, len,10);
  11845. #else
  11846. HAL_UART_Transmit(&hTerminal, ptr, len,10);
  11847. 8004cca: 88fa ldrh r2, [r7, #6]
  11848. 8004ccc: 230a movs r3, #10
  11849. 8004cce: 68b9 ldr r1, [r7, #8]
  11850. 8004cd0: 4803 ldr r0, [pc, #12] ; (8004ce0 <_write+0x24>)
  11851. 8004cd2: f7ff f930 bl 8003f36 <HAL_UART_Transmit>
  11852. #endif // PYJ.2020.06.03_END --
  11853. return len;
  11854. 8004cd6: 88fb ldrh r3, [r7, #6]
  11855. }
  11856. 8004cd8: 4618 mov r0, r3
  11857. 8004cda: 3710 adds r7, #16
  11858. 8004cdc: 46bd mov sp, r7
  11859. 8004cde: bd80 pop {r7, pc}
  11860. 8004ce0: 200006a4 .word 0x200006a4
  11861. 08004ce4 <main>:
  11862. * @brief The application entry point.
  11863. * @retval int
  11864. */
  11865. uint8_t datatest[50] = {0,};
  11866. int main(void)
  11867. {
  11868. 8004ce4: b580 push {r7, lr}
  11869. 8004ce6: af00 add r7, sp, #0
  11870. /* USER CODE END 1 */
  11871. /* MCU Configuration--------------------------------------------------------*/
  11872. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  11873. HAL_Init();
  11874. 8004ce8: f7fc fd90 bl 800180c <HAL_Init>
  11875. /* USER CODE BEGIN Init */
  11876. /* USER CODE END Init */
  11877. /* Configure the system clock */
  11878. SystemClock_Config();
  11879. 8004cec: f000 f86c bl 8004dc8 <SystemClock_Config>
  11880. /* USER CODE BEGIN SysInit */
  11881. /* USER CODE END SysInit */
  11882. /* Initialize all configured peripherals */
  11883. MX_GPIO_Init();
  11884. 8004cf0: f000 fa06 bl 8005100 <MX_GPIO_Init>
  11885. MX_DMA_Init();
  11886. 8004cf4: f000 f9ee bl 80050d4 <MX_DMA_Init>
  11887. MX_ADC1_Init();
  11888. 8004cf8: f000 f906 bl 8004f08 <MX_ADC1_Init>
  11889. MX_TIM6_Init();
  11890. 8004cfc: f000 f960 bl 8004fc0 <MX_TIM6_Init>
  11891. MX_USART1_UART_Init();
  11892. 8004d00: f000 f994 bl 800502c <MX_USART1_UART_Init>
  11893. MX_USART3_UART_Init();
  11894. 8004d04: f000 f9bc bl 8005080 <MX_USART3_UART_Init>
  11895. /* Initialize interrupts */
  11896. MX_NVIC_Init();
  11897. 8004d08: f000 f8b2 bl 8004e70 <MX_NVIC_Init>
  11898. /* USER CODE BEGIN 2 */
  11899. HAL_TIM_Base_Start_IT(&htim6);
  11900. 8004d0c: 4824 ldr r0, [pc, #144] ; (8004da0 <main+0xbc>)
  11901. 8004d0e: f7fe fea0 bl 8003a52 <HAL_TIM_Base_Start_IT>
  11902. setbuf(stdout, NULL);
  11903. 8004d12: 4b24 ldr r3, [pc, #144] ; (8004da4 <main+0xc0>)
  11904. 8004d14: 681b ldr r3, [r3, #0]
  11905. 8004d16: 689b ldr r3, [r3, #8]
  11906. 8004d18: 2100 movs r1, #0
  11907. 8004d1a: 4618 mov r0, r3
  11908. 8004d1c: f001 fb4a bl 80063b4 <setbuf>
  11909. InitUartQueue(&MainQueue);
  11910. 8004d20: 4821 ldr r0, [pc, #132] ; (8004da8 <main+0xc4>)
  11911. 8004d22: f7fc fc4d bl 80015c0 <InitUartQueue>
  11912. ADC_Initialize();
  11913. 8004d26: f7fc fa8d bl 8001244 <ADC_Initialize>
  11914. #if 1 // PYJ.2020.05.06_BEGIN --
  11915. printf("****************************************\r\n");
  11916. 8004d2a: 4820 ldr r0, [pc, #128] ; (8004dac <main+0xc8>)
  11917. 8004d2c: f001 fb3a bl 80063a4 <puts>
  11918. printf("NESSLAB Project\r\n");
  11919. 8004d30: 481f ldr r0, [pc, #124] ; (8004db0 <main+0xcc>)
  11920. 8004d32: f001 fb37 bl 80063a4 <puts>
  11921. printf("Build at %s %s\r\n", __DATE__, __TIME__);
  11922. 8004d36: 4a1f ldr r2, [pc, #124] ; (8004db4 <main+0xd0>)
  11923. 8004d38: 491f ldr r1, [pc, #124] ; (8004db8 <main+0xd4>)
  11924. 8004d3a: 4820 ldr r0, [pc, #128] ; (8004dbc <main+0xd8>)
  11925. 8004d3c: f001 fabe bl 80062bc <iprintf>
  11926. printf("Copyright (c) 2020. BLUECELL\r\n");
  11927. 8004d40: 481f ldr r0, [pc, #124] ; (8004dc0 <main+0xdc>)
  11928. 8004d42: f001 fb2f bl 80063a4 <puts>
  11929. printf("****************************************\r\n");
  11930. 8004d46: 4819 ldr r0, [pc, #100] ; (8004dac <main+0xc8>)
  11931. 8004d48: f001 fb2c bl 80063a4 <puts>
  11932. #endif // PYJ.2020.05.06_END --
  11933. /* USER CODE END 2 */
  11934. /* Infinite loop */
  11935. /* USER CODE BEGIN WHILE */
  11936. datatest[2] = 101;
  11937. 8004d4c: 4b1d ldr r3, [pc, #116] ; (8004dc4 <main+0xe0>)
  11938. 8004d4e: 2265 movs r2, #101 ; 0x65
  11939. 8004d50: 709a strb r2, [r3, #2]
  11940. datatest[10] = 1;
  11941. 8004d52: 4b1c ldr r3, [pc, #112] ; (8004dc4 <main+0xe0>)
  11942. 8004d54: 2201 movs r2, #1
  11943. 8004d56: 729a strb r2, [r3, #10]
  11944. datatest[11] = 0;
  11945. 8004d58: 4b1a ldr r3, [pc, #104] ; (8004dc4 <main+0xe0>)
  11946. 8004d5a: 2200 movs r2, #0
  11947. 8004d5c: 72da strb r2, [r3, #11]
  11948. datatest[12] = 1;
  11949. 8004d5e: 4b19 ldr r3, [pc, #100] ; (8004dc4 <main+0xe0>)
  11950. 8004d60: 2201 movs r2, #1
  11951. 8004d62: 731a strb r2, [r3, #12]
  11952. datatest[13] = 0;
  11953. 8004d64: 4b17 ldr r3, [pc, #92] ; (8004dc4 <main+0xe0>)
  11954. 8004d66: 2200 movs r2, #0
  11955. 8004d68: 735a strb r2, [r3, #13]
  11956. datatest[14] = 1;
  11957. 8004d6a: 4b16 ldr r3, [pc, #88] ; (8004dc4 <main+0xe0>)
  11958. 8004d6c: 2201 movs r2, #1
  11959. 8004d6e: 739a strb r2, [r3, #14]
  11960. datatest[15] = 0;
  11961. 8004d70: 4b14 ldr r3, [pc, #80] ; (8004dc4 <main+0xe0>)
  11962. 8004d72: 2200 movs r2, #0
  11963. 8004d74: 73da strb r2, [r3, #15]
  11964. datatest[16] = 1;
  11965. 8004d76: 4b13 ldr r3, [pc, #76] ; (8004dc4 <main+0xe0>)
  11966. 8004d78: 2201 movs r2, #1
  11967. 8004d7a: 741a strb r2, [r3, #16]
  11968. datatest[17] = 0;
  11969. 8004d7c: 4b11 ldr r3, [pc, #68] ; (8004dc4 <main+0xe0>)
  11970. 8004d7e: 2200 movs r2, #0
  11971. 8004d80: 745a strb r2, [r3, #17]
  11972. {
  11973. #if 0 // PYJ.2020.08.31_BEGIN --
  11974. Boot_LED_Toggle(); /*LED Check*/
  11975. Uart_Check(); /*Usart Rx*/
  11976. #else
  11977. NessLab_Operate(datatest);
  11978. 8004d82: 4810 ldr r0, [pc, #64] ; (8004dc4 <main+0xe0>)
  11979. 8004d84: f7fc f8a0 bl 8000ec8 <NessLab_Operate>
  11980. datatest[4]++;
  11981. 8004d88: 4b0e ldr r3, [pc, #56] ; (8004dc4 <main+0xe0>)
  11982. 8004d8a: 791b ldrb r3, [r3, #4]
  11983. 8004d8c: 3301 adds r3, #1
  11984. 8004d8e: b2da uxtb r2, r3
  11985. 8004d90: 4b0c ldr r3, [pc, #48] ; (8004dc4 <main+0xe0>)
  11986. 8004d92: 711a strb r2, [r3, #4]
  11987. HAL_Delay(3000);
  11988. 8004d94: f640 30b8 movw r0, #3000 ; 0xbb8
  11989. 8004d98: f7fc fd62 bl 8001860 <HAL_Delay>
  11990. {
  11991. 8004d9c: e7f1 b.n 8004d82 <main+0x9e>
  11992. 8004d9e: bf00 nop
  11993. 8004da0: 20000864 .word 0x20000864
  11994. 8004da4: 2000000c .word 0x2000000c
  11995. 8004da8: 2000049c .word 0x2000049c
  11996. 8004dac: 08008554 .word 0x08008554
  11997. 8004db0: 08008580 .word 0x08008580
  11998. 8004db4: 08008594 .word 0x08008594
  11999. 8004db8: 080085a0 .word 0x080085a0
  12000. 8004dbc: 080085ac .word 0x080085ac
  12001. 8004dc0: 080085c0 .word 0x080085c0
  12002. 8004dc4: 200003bc .word 0x200003bc
  12003. 08004dc8 <SystemClock_Config>:
  12004. /**
  12005. * @brief System Clock Configuration
  12006. * @retval None
  12007. */
  12008. void SystemClock_Config(void)
  12009. {
  12010. 8004dc8: b580 push {r7, lr}
  12011. 8004dca: b092 sub sp, #72 ; 0x48
  12012. 8004dcc: af00 add r7, sp, #0
  12013. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  12014. 8004dce: f107 0320 add.w r3, r7, #32
  12015. 8004dd2: 2228 movs r2, #40 ; 0x28
  12016. 8004dd4: 2100 movs r1, #0
  12017. 8004dd6: 4618 mov r0, r3
  12018. 8004dd8: f000 fe18 bl 8005a0c <memset>
  12019. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  12020. 8004ddc: f107 030c add.w r3, r7, #12
  12021. 8004de0: 2200 movs r2, #0
  12022. 8004de2: 601a str r2, [r3, #0]
  12023. 8004de4: 605a str r2, [r3, #4]
  12024. 8004de6: 609a str r2, [r3, #8]
  12025. 8004de8: 60da str r2, [r3, #12]
  12026. 8004dea: 611a str r2, [r3, #16]
  12027. RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  12028. 8004dec: 463b mov r3, r7
  12029. 8004dee: 2200 movs r2, #0
  12030. 8004df0: 601a str r2, [r3, #0]
  12031. 8004df2: 605a str r2, [r3, #4]
  12032. 8004df4: 609a str r2, [r3, #8]
  12033. /** Initializes the CPU, AHB and APB busses clocks
  12034. */
  12035. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
  12036. 8004df6: 2302 movs r3, #2
  12037. 8004df8: 623b str r3, [r7, #32]
  12038. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  12039. 8004dfa: 2301 movs r3, #1
  12040. 8004dfc: 633b str r3, [r7, #48] ; 0x30
  12041. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  12042. 8004dfe: 2310 movs r3, #16
  12043. 8004e00: 637b str r3, [r7, #52] ; 0x34
  12044. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  12045. 8004e02: 2302 movs r3, #2
  12046. 8004e04: 63fb str r3, [r7, #60] ; 0x3c
  12047. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI_DIV2;
  12048. 8004e06: 2300 movs r3, #0
  12049. 8004e08: 643b str r3, [r7, #64] ; 0x40
  12050. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
  12051. 8004e0a: f44f 1380 mov.w r3, #1048576 ; 0x100000
  12052. 8004e0e: 647b str r3, [r7, #68] ; 0x44
  12053. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  12054. 8004e10: f107 0320 add.w r3, r7, #32
  12055. 8004e14: 4618 mov r0, r3
  12056. 8004e16: f7fe f8db bl 8002fd0 <HAL_RCC_OscConfig>
  12057. 8004e1a: 4603 mov r3, r0
  12058. 8004e1c: 2b00 cmp r3, #0
  12059. 8004e1e: d001 beq.n 8004e24 <SystemClock_Config+0x5c>
  12060. {
  12061. Error_Handler();
  12062. 8004e20: f000 fa26 bl 8005270 <Error_Handler>
  12063. }
  12064. /** Initializes the CPU, AHB and APB busses clocks
  12065. */
  12066. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  12067. 8004e24: 230f movs r3, #15
  12068. 8004e26: 60fb str r3, [r7, #12]
  12069. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  12070. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  12071. 8004e28: 2302 movs r3, #2
  12072. 8004e2a: 613b str r3, [r7, #16]
  12073. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  12074. 8004e2c: 2300 movs r3, #0
  12075. 8004e2e: 617b str r3, [r7, #20]
  12076. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  12077. 8004e30: 2300 movs r3, #0
  12078. 8004e32: 61bb str r3, [r7, #24]
  12079. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  12080. 8004e34: 2300 movs r3, #0
  12081. 8004e36: 61fb str r3, [r7, #28]
  12082. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
  12083. 8004e38: f107 030c add.w r3, r7, #12
  12084. 8004e3c: 2100 movs r1, #0
  12085. 8004e3e: 4618 mov r0, r3
  12086. 8004e40: f7fe fb46 bl 80034d0 <HAL_RCC_ClockConfig>
  12087. 8004e44: 4603 mov r3, r0
  12088. 8004e46: 2b00 cmp r3, #0
  12089. 8004e48: d001 beq.n 8004e4e <SystemClock_Config+0x86>
  12090. {
  12091. Error_Handler();
  12092. 8004e4a: f000 fa11 bl 8005270 <Error_Handler>
  12093. }
  12094. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  12095. 8004e4e: 2302 movs r3, #2
  12096. 8004e50: 603b str r3, [r7, #0]
  12097. PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV2;
  12098. 8004e52: 2300 movs r3, #0
  12099. 8004e54: 60bb str r3, [r7, #8]
  12100. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  12101. 8004e56: 463b mov r3, r7
  12102. 8004e58: 4618 mov r0, r3
  12103. 8004e5a: f7fe fcd1 bl 8003800 <HAL_RCCEx_PeriphCLKConfig>
  12104. 8004e5e: 4603 mov r3, r0
  12105. 8004e60: 2b00 cmp r3, #0
  12106. 8004e62: d001 beq.n 8004e68 <SystemClock_Config+0xa0>
  12107. {
  12108. Error_Handler();
  12109. 8004e64: f000 fa04 bl 8005270 <Error_Handler>
  12110. }
  12111. }
  12112. 8004e68: bf00 nop
  12113. 8004e6a: 3748 adds r7, #72 ; 0x48
  12114. 8004e6c: 46bd mov sp, r7
  12115. 8004e6e: bd80 pop {r7, pc}
  12116. 08004e70 <MX_NVIC_Init>:
  12117. /**
  12118. * @brief NVIC Configuration.
  12119. * @retval None
  12120. */
  12121. static void MX_NVIC_Init(void)
  12122. {
  12123. 8004e70: b580 push {r7, lr}
  12124. 8004e72: af00 add r7, sp, #0
  12125. /* ADC1_IRQn interrupt configuration */
  12126. HAL_NVIC_SetPriority(ADC1_IRQn, 0, 0);
  12127. 8004e74: 2200 movs r2, #0
  12128. 8004e76: 2100 movs r1, #0
  12129. 8004e78: 2012 movs r0, #18
  12130. 8004e7a: f7fd faa8 bl 80023ce <HAL_NVIC_SetPriority>
  12131. HAL_NVIC_EnableIRQ(ADC1_IRQn);
  12132. 8004e7e: 2012 movs r0, #18
  12133. 8004e80: f7fd fac1 bl 8002406 <HAL_NVIC_EnableIRQ>
  12134. /* USART1_IRQn interrupt configuration */
  12135. HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
  12136. 8004e84: 2200 movs r2, #0
  12137. 8004e86: 2100 movs r1, #0
  12138. 8004e88: 2025 movs r0, #37 ; 0x25
  12139. 8004e8a: f7fd faa0 bl 80023ce <HAL_NVIC_SetPriority>
  12140. HAL_NVIC_EnableIRQ(USART1_IRQn);
  12141. 8004e8e: 2025 movs r0, #37 ; 0x25
  12142. 8004e90: f7fd fab9 bl 8002406 <HAL_NVIC_EnableIRQ>
  12143. /* USART3_IRQn interrupt configuration */
  12144. HAL_NVIC_SetPriority(USART3_IRQn, 0, 0);
  12145. 8004e94: 2200 movs r2, #0
  12146. 8004e96: 2100 movs r1, #0
  12147. 8004e98: 2027 movs r0, #39 ; 0x27
  12148. 8004e9a: f7fd fa98 bl 80023ce <HAL_NVIC_SetPriority>
  12149. HAL_NVIC_EnableIRQ(USART3_IRQn);
  12150. 8004e9e: 2027 movs r0, #39 ; 0x27
  12151. 8004ea0: f7fd fab1 bl 8002406 <HAL_NVIC_EnableIRQ>
  12152. /* TIM6_DAC_IRQn interrupt configuration */
  12153. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 0, 0);
  12154. 8004ea4: 2200 movs r2, #0
  12155. 8004ea6: 2100 movs r1, #0
  12156. 8004ea8: 2036 movs r0, #54 ; 0x36
  12157. 8004eaa: f7fd fa90 bl 80023ce <HAL_NVIC_SetPriority>
  12158. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  12159. 8004eae: 2036 movs r0, #54 ; 0x36
  12160. 8004eb0: f7fd faa9 bl 8002406 <HAL_NVIC_EnableIRQ>
  12161. /* DMA1_Channel2_IRQn interrupt configuration */
  12162. HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0);
  12163. 8004eb4: 2200 movs r2, #0
  12164. 8004eb6: 2100 movs r1, #0
  12165. 8004eb8: 200c movs r0, #12
  12166. 8004eba: f7fd fa88 bl 80023ce <HAL_NVIC_SetPriority>
  12167. HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn);
  12168. 8004ebe: 200c movs r0, #12
  12169. 8004ec0: f7fd faa1 bl 8002406 <HAL_NVIC_EnableIRQ>
  12170. /* DMA1_Channel4_IRQn interrupt configuration */
  12171. HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0);
  12172. 8004ec4: 2200 movs r2, #0
  12173. 8004ec6: 2100 movs r1, #0
  12174. 8004ec8: 200e movs r0, #14
  12175. 8004eca: f7fd fa80 bl 80023ce <HAL_NVIC_SetPriority>
  12176. HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn);
  12177. 8004ece: 200e movs r0, #14
  12178. 8004ed0: f7fd fa99 bl 8002406 <HAL_NVIC_EnableIRQ>
  12179. /* DMA1_Channel3_IRQn interrupt configuration */
  12180. HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0);
  12181. 8004ed4: 2200 movs r2, #0
  12182. 8004ed6: 2100 movs r1, #0
  12183. 8004ed8: 200d movs r0, #13
  12184. 8004eda: f7fd fa78 bl 80023ce <HAL_NVIC_SetPriority>
  12185. HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn);
  12186. 8004ede: 200d movs r0, #13
  12187. 8004ee0: f7fd fa91 bl 8002406 <HAL_NVIC_EnableIRQ>
  12188. /* DMA1_Channel1_IRQn interrupt configuration */
  12189. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  12190. 8004ee4: 2200 movs r2, #0
  12191. 8004ee6: 2100 movs r1, #0
  12192. 8004ee8: 200b movs r0, #11
  12193. 8004eea: f7fd fa70 bl 80023ce <HAL_NVIC_SetPriority>
  12194. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  12195. 8004eee: 200b movs r0, #11
  12196. 8004ef0: f7fd fa89 bl 8002406 <HAL_NVIC_EnableIRQ>
  12197. /* DMA1_Channel5_IRQn interrupt configuration */
  12198. HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 0, 0);
  12199. 8004ef4: 2200 movs r2, #0
  12200. 8004ef6: 2100 movs r1, #0
  12201. 8004ef8: 200f movs r0, #15
  12202. 8004efa: f7fd fa68 bl 80023ce <HAL_NVIC_SetPriority>
  12203. HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn);
  12204. 8004efe: 200f movs r0, #15
  12205. 8004f00: f7fd fa81 bl 8002406 <HAL_NVIC_EnableIRQ>
  12206. }
  12207. 8004f04: bf00 nop
  12208. 8004f06: bd80 pop {r7, pc}
  12209. 08004f08 <MX_ADC1_Init>:
  12210. * @brief ADC1 Initialization Function
  12211. * @param None
  12212. * @retval None
  12213. */
  12214. static void MX_ADC1_Init(void)
  12215. {
  12216. 8004f08: b580 push {r7, lr}
  12217. 8004f0a: b084 sub sp, #16
  12218. 8004f0c: af00 add r7, sp, #0
  12219. /* USER CODE BEGIN ADC1_Init 0 */
  12220. /* USER CODE END ADC1_Init 0 */
  12221. ADC_ChannelConfTypeDef sConfig = {0};
  12222. 8004f0e: 1d3b adds r3, r7, #4
  12223. 8004f10: 2200 movs r2, #0
  12224. 8004f12: 601a str r2, [r3, #0]
  12225. 8004f14: 605a str r2, [r3, #4]
  12226. 8004f16: 609a str r2, [r3, #8]
  12227. /* USER CODE BEGIN ADC1_Init 1 */
  12228. /* USER CODE END ADC1_Init 1 */
  12229. /** Common config
  12230. */
  12231. hadc1.Instance = ADC1;
  12232. 8004f18: 4b27 ldr r3, [pc, #156] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12233. 8004f1a: 4a28 ldr r2, [pc, #160] ; (8004fbc <MX_ADC1_Init+0xb4>)
  12234. 8004f1c: 601a str r2, [r3, #0]
  12235. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  12236. 8004f1e: 4b26 ldr r3, [pc, #152] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12237. 8004f20: f44f 7280 mov.w r2, #256 ; 0x100
  12238. 8004f24: 609a str r2, [r3, #8]
  12239. hadc1.Init.ContinuousConvMode = ENABLE;
  12240. 8004f26: 4b24 ldr r3, [pc, #144] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12241. 8004f28: 2201 movs r2, #1
  12242. 8004f2a: 731a strb r2, [r3, #12]
  12243. hadc1.Init.DiscontinuousConvMode = DISABLE;
  12244. 8004f2c: 4b22 ldr r3, [pc, #136] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12245. 8004f2e: 2200 movs r2, #0
  12246. 8004f30: 751a strb r2, [r3, #20]
  12247. hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  12248. 8004f32: 4b21 ldr r3, [pc, #132] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12249. 8004f34: f44f 2260 mov.w r2, #917504 ; 0xe0000
  12250. 8004f38: 61da str r2, [r3, #28]
  12251. hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  12252. 8004f3a: 4b1f ldr r3, [pc, #124] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12253. 8004f3c: 2200 movs r2, #0
  12254. 8004f3e: 605a str r2, [r3, #4]
  12255. hadc1.Init.NbrOfConversion = 3;
  12256. 8004f40: 4b1d ldr r3, [pc, #116] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12257. 8004f42: 2203 movs r2, #3
  12258. 8004f44: 611a str r2, [r3, #16]
  12259. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  12260. 8004f46: 481c ldr r0, [pc, #112] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12261. 8004f48: f7fc fcac bl 80018a4 <HAL_ADC_Init>
  12262. 8004f4c: 4603 mov r3, r0
  12263. 8004f4e: 2b00 cmp r3, #0
  12264. 8004f50: d001 beq.n 8004f56 <MX_ADC1_Init+0x4e>
  12265. {
  12266. Error_Handler();
  12267. 8004f52: f000 f98d bl 8005270 <Error_Handler>
  12268. }
  12269. /** Configure Regular Channel
  12270. */
  12271. sConfig.Channel = ADC_CHANNEL_0;
  12272. 8004f56: 2300 movs r3, #0
  12273. 8004f58: 607b str r3, [r7, #4]
  12274. sConfig.Rank = ADC_REGULAR_RANK_1;
  12275. 8004f5a: 2301 movs r3, #1
  12276. 8004f5c: 60bb str r3, [r7, #8]
  12277. sConfig.SamplingTime = ADC_SAMPLETIME_239CYCLES_5;
  12278. 8004f5e: 2307 movs r3, #7
  12279. 8004f60: 60fb str r3, [r7, #12]
  12280. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12281. 8004f62: 1d3b adds r3, r7, #4
  12282. 8004f64: 4619 mov r1, r3
  12283. 8004f66: 4814 ldr r0, [pc, #80] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12284. 8004f68: f7fc feec bl 8001d44 <HAL_ADC_ConfigChannel>
  12285. 8004f6c: 4603 mov r3, r0
  12286. 8004f6e: 2b00 cmp r3, #0
  12287. 8004f70: d001 beq.n 8004f76 <MX_ADC1_Init+0x6e>
  12288. {
  12289. Error_Handler();
  12290. 8004f72: f000 f97d bl 8005270 <Error_Handler>
  12291. }
  12292. /** Configure Regular Channel
  12293. */
  12294. sConfig.Channel = ADC_CHANNEL_1;
  12295. 8004f76: 2301 movs r3, #1
  12296. 8004f78: 607b str r3, [r7, #4]
  12297. sConfig.Rank = ADC_REGULAR_RANK_2;
  12298. 8004f7a: 2302 movs r3, #2
  12299. 8004f7c: 60bb str r3, [r7, #8]
  12300. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12301. 8004f7e: 1d3b adds r3, r7, #4
  12302. 8004f80: 4619 mov r1, r3
  12303. 8004f82: 480d ldr r0, [pc, #52] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12304. 8004f84: f7fc fede bl 8001d44 <HAL_ADC_ConfigChannel>
  12305. 8004f88: 4603 mov r3, r0
  12306. 8004f8a: 2b00 cmp r3, #0
  12307. 8004f8c: d001 beq.n 8004f92 <MX_ADC1_Init+0x8a>
  12308. {
  12309. Error_Handler();
  12310. 8004f8e: f000 f96f bl 8005270 <Error_Handler>
  12311. }
  12312. /** Configure Regular Channel
  12313. */
  12314. sConfig.Channel = ADC_CHANNEL_3;
  12315. 8004f92: 2303 movs r3, #3
  12316. 8004f94: 607b str r3, [r7, #4]
  12317. sConfig.Rank = ADC_REGULAR_RANK_3;
  12318. 8004f96: 2303 movs r3, #3
  12319. 8004f98: 60bb str r3, [r7, #8]
  12320. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12321. 8004f9a: 1d3b adds r3, r7, #4
  12322. 8004f9c: 4619 mov r1, r3
  12323. 8004f9e: 4806 ldr r0, [pc, #24] ; (8004fb8 <MX_ADC1_Init+0xb0>)
  12324. 8004fa0: f7fc fed0 bl 8001d44 <HAL_ADC_ConfigChannel>
  12325. 8004fa4: 4603 mov r3, r0
  12326. 8004fa6: 2b00 cmp r3, #0
  12327. 8004fa8: d001 beq.n 8004fae <MX_ADC1_Init+0xa6>
  12328. {
  12329. Error_Handler();
  12330. 8004faa: f000 f961 bl 8005270 <Error_Handler>
  12331. }
  12332. /* USER CODE BEGIN ADC1_Init 2 */
  12333. /* USER CODE END ADC1_Init 2 */
  12334. }
  12335. 8004fae: bf00 nop
  12336. 8004fb0: 3710 adds r7, #16
  12337. 8004fb2: 46bd mov sp, r7
  12338. 8004fb4: bd80 pop {r7, pc}
  12339. 8004fb6: bf00 nop
  12340. 8004fb8: 2000076c .word 0x2000076c
  12341. 8004fbc: 40012400 .word 0x40012400
  12342. 08004fc0 <MX_TIM6_Init>:
  12343. * @brief TIM6 Initialization Function
  12344. * @param None
  12345. * @retval None
  12346. */
  12347. static void MX_TIM6_Init(void)
  12348. {
  12349. 8004fc0: b580 push {r7, lr}
  12350. 8004fc2: b082 sub sp, #8
  12351. 8004fc4: af00 add r7, sp, #0
  12352. /* USER CODE BEGIN TIM6_Init 0 */
  12353. /* USER CODE END TIM6_Init 0 */
  12354. TIM_MasterConfigTypeDef sMasterConfig = {0};
  12355. 8004fc6: 463b mov r3, r7
  12356. 8004fc8: 2200 movs r2, #0
  12357. 8004fca: 601a str r2, [r3, #0]
  12358. 8004fcc: 605a str r2, [r3, #4]
  12359. /* USER CODE BEGIN TIM6_Init 1 */
  12360. /* USER CODE END TIM6_Init 1 */
  12361. htim6.Instance = TIM6;
  12362. 8004fce: 4b15 ldr r3, [pc, #84] ; (8005024 <MX_TIM6_Init+0x64>)
  12363. 8004fd0: 4a15 ldr r2, [pc, #84] ; (8005028 <MX_TIM6_Init+0x68>)
  12364. 8004fd2: 601a str r2, [r3, #0]
  12365. htim6.Init.Prescaler = 2400-1;
  12366. 8004fd4: 4b13 ldr r3, [pc, #76] ; (8005024 <MX_TIM6_Init+0x64>)
  12367. 8004fd6: f640 125f movw r2, #2399 ; 0x95f
  12368. 8004fda: 605a str r2, [r3, #4]
  12369. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  12370. 8004fdc: 4b11 ldr r3, [pc, #68] ; (8005024 <MX_TIM6_Init+0x64>)
  12371. 8004fde: 2200 movs r2, #0
  12372. 8004fe0: 609a str r2, [r3, #8]
  12373. htim6.Init.Period = 10;
  12374. 8004fe2: 4b10 ldr r3, [pc, #64] ; (8005024 <MX_TIM6_Init+0x64>)
  12375. 8004fe4: 220a movs r2, #10
  12376. 8004fe6: 60da str r2, [r3, #12]
  12377. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  12378. 8004fe8: 4b0e ldr r3, [pc, #56] ; (8005024 <MX_TIM6_Init+0x64>)
  12379. 8004fea: 2200 movs r2, #0
  12380. 8004fec: 619a str r2, [r3, #24]
  12381. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  12382. 8004fee: 480d ldr r0, [pc, #52] ; (8005024 <MX_TIM6_Init+0x64>)
  12383. 8004ff0: f7fe fd04 bl 80039fc <HAL_TIM_Base_Init>
  12384. 8004ff4: 4603 mov r3, r0
  12385. 8004ff6: 2b00 cmp r3, #0
  12386. 8004ff8: d001 beq.n 8004ffe <MX_TIM6_Init+0x3e>
  12387. {
  12388. Error_Handler();
  12389. 8004ffa: f000 f939 bl 8005270 <Error_Handler>
  12390. }
  12391. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  12392. 8004ffe: 2300 movs r3, #0
  12393. 8005000: 603b str r3, [r7, #0]
  12394. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  12395. 8005002: 2300 movs r3, #0
  12396. 8005004: 607b str r3, [r7, #4]
  12397. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  12398. 8005006: 463b mov r3, r7
  12399. 8005008: 4619 mov r1, r3
  12400. 800500a: 4806 ldr r0, [pc, #24] ; (8005024 <MX_TIM6_Init+0x64>)
  12401. 800500c: f7fe fef0 bl 8003df0 <HAL_TIMEx_MasterConfigSynchronization>
  12402. 8005010: 4603 mov r3, r0
  12403. 8005012: 2b00 cmp r3, #0
  12404. 8005014: d001 beq.n 800501a <MX_TIM6_Init+0x5a>
  12405. {
  12406. Error_Handler();
  12407. 8005016: f000 f92b bl 8005270 <Error_Handler>
  12408. }
  12409. /* USER CODE BEGIN TIM6_Init 2 */
  12410. /* USER CODE END TIM6_Init 2 */
  12411. }
  12412. 800501a: bf00 nop
  12413. 800501c: 3708 adds r7, #8
  12414. 800501e: 46bd mov sp, r7
  12415. 8005020: bd80 pop {r7, pc}
  12416. 8005022: bf00 nop
  12417. 8005024: 20000864 .word 0x20000864
  12418. 8005028: 40001000 .word 0x40001000
  12419. 0800502c <MX_USART1_UART_Init>:
  12420. * @brief USART1 Initialization Function
  12421. * @param None
  12422. * @retval None
  12423. */
  12424. static void MX_USART1_UART_Init(void)
  12425. {
  12426. 800502c: b580 push {r7, lr}
  12427. 800502e: af00 add r7, sp, #0
  12428. /* USER CODE END USART1_Init 0 */
  12429. /* USER CODE BEGIN USART1_Init 1 */
  12430. /* USER CODE END USART1_Init 1 */
  12431. huart1.Instance = USART1;
  12432. 8005030: 4b11 ldr r3, [pc, #68] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12433. 8005032: 4a12 ldr r2, [pc, #72] ; (800507c <MX_USART1_UART_Init+0x50>)
  12434. 8005034: 601a str r2, [r3, #0]
  12435. huart1.Init.BaudRate = 115200;
  12436. 8005036: 4b10 ldr r3, [pc, #64] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12437. 8005038: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  12438. 800503c: 605a str r2, [r3, #4]
  12439. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  12440. 800503e: 4b0e ldr r3, [pc, #56] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12441. 8005040: 2200 movs r2, #0
  12442. 8005042: 609a str r2, [r3, #8]
  12443. huart1.Init.StopBits = UART_STOPBITS_1;
  12444. 8005044: 4b0c ldr r3, [pc, #48] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12445. 8005046: 2200 movs r2, #0
  12446. 8005048: 60da str r2, [r3, #12]
  12447. huart1.Init.Parity = UART_PARITY_NONE;
  12448. 800504a: 4b0b ldr r3, [pc, #44] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12449. 800504c: 2200 movs r2, #0
  12450. 800504e: 611a str r2, [r3, #16]
  12451. huart1.Init.Mode = UART_MODE_TX_RX;
  12452. 8005050: 4b09 ldr r3, [pc, #36] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12453. 8005052: 220c movs r2, #12
  12454. 8005054: 615a str r2, [r3, #20]
  12455. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  12456. 8005056: 4b08 ldr r3, [pc, #32] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12457. 8005058: 2200 movs r2, #0
  12458. 800505a: 619a str r2, [r3, #24]
  12459. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  12460. 800505c: 4b06 ldr r3, [pc, #24] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12461. 800505e: 2200 movs r2, #0
  12462. 8005060: 61da str r2, [r3, #28]
  12463. if (HAL_UART_Init(&huart1) != HAL_OK)
  12464. 8005062: 4805 ldr r0, [pc, #20] ; (8005078 <MX_USART1_UART_Init+0x4c>)
  12465. 8005064: f7fe ff1a bl 8003e9c <HAL_UART_Init>
  12466. 8005068: 4603 mov r3, r0
  12467. 800506a: 2b00 cmp r3, #0
  12468. 800506c: d001 beq.n 8005072 <MX_USART1_UART_Init+0x46>
  12469. {
  12470. Error_Handler();
  12471. 800506e: f000 f8ff bl 8005270 <Error_Handler>
  12472. }
  12473. /* USER CODE BEGIN USART1_Init 2 */
  12474. /* USER CODE END USART1_Init 2 */
  12475. }
  12476. 8005072: bf00 nop
  12477. 8005074: bd80 pop {r7, pc}
  12478. 8005076: bf00 nop
  12479. 8005078: 200007e0 .word 0x200007e0
  12480. 800507c: 40013800 .word 0x40013800
  12481. 08005080 <MX_USART3_UART_Init>:
  12482. * @brief USART3 Initialization Function
  12483. * @param None
  12484. * @retval None
  12485. */
  12486. static void MX_USART3_UART_Init(void)
  12487. {
  12488. 8005080: b580 push {r7, lr}
  12489. 8005082: af00 add r7, sp, #0
  12490. /* USER CODE END USART3_Init 0 */
  12491. /* USER CODE BEGIN USART3_Init 1 */
  12492. /* USER CODE END USART3_Init 1 */
  12493. huart3.Instance = USART3;
  12494. 8005084: 4b11 ldr r3, [pc, #68] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12495. 8005086: 4a12 ldr r2, [pc, #72] ; (80050d0 <MX_USART3_UART_Init+0x50>)
  12496. 8005088: 601a str r2, [r3, #0]
  12497. huart3.Init.BaudRate = 115200;
  12498. 800508a: 4b10 ldr r3, [pc, #64] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12499. 800508c: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  12500. 8005090: 605a str r2, [r3, #4]
  12501. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  12502. 8005092: 4b0e ldr r3, [pc, #56] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12503. 8005094: 2200 movs r2, #0
  12504. 8005096: 609a str r2, [r3, #8]
  12505. huart3.Init.StopBits = UART_STOPBITS_1;
  12506. 8005098: 4b0c ldr r3, [pc, #48] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12507. 800509a: 2200 movs r2, #0
  12508. 800509c: 60da str r2, [r3, #12]
  12509. huart3.Init.Parity = UART_PARITY_NONE;
  12510. 800509e: 4b0b ldr r3, [pc, #44] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12511. 80050a0: 2200 movs r2, #0
  12512. 80050a2: 611a str r2, [r3, #16]
  12513. huart3.Init.Mode = UART_MODE_TX_RX;
  12514. 80050a4: 4b09 ldr r3, [pc, #36] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12515. 80050a6: 220c movs r2, #12
  12516. 80050a8: 615a str r2, [r3, #20]
  12517. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  12518. 80050aa: 4b08 ldr r3, [pc, #32] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12519. 80050ac: 2200 movs r2, #0
  12520. 80050ae: 619a str r2, [r3, #24]
  12521. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  12522. 80050b0: 4b06 ldr r3, [pc, #24] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12523. 80050b2: 2200 movs r2, #0
  12524. 80050b4: 61da str r2, [r3, #28]
  12525. if (HAL_UART_Init(&huart3) != HAL_OK)
  12526. 80050b6: 4805 ldr r0, [pc, #20] ; (80050cc <MX_USART3_UART_Init+0x4c>)
  12527. 80050b8: f7fe fef0 bl 8003e9c <HAL_UART_Init>
  12528. 80050bc: 4603 mov r3, r0
  12529. 80050be: 2b00 cmp r3, #0
  12530. 80050c0: d001 beq.n 80050c6 <MX_USART3_UART_Init+0x46>
  12531. {
  12532. Error_Handler();
  12533. 80050c2: f000 f8d5 bl 8005270 <Error_Handler>
  12534. }
  12535. /* USER CODE BEGIN USART3_Init 2 */
  12536. /* USER CODE END USART3_Init 2 */
  12537. }
  12538. 80050c6: bf00 nop
  12539. 80050c8: bd80 pop {r7, pc}
  12540. 80050ca: bf00 nop
  12541. 80050cc: 200006a4 .word 0x200006a4
  12542. 80050d0: 40004800 .word 0x40004800
  12543. 080050d4 <MX_DMA_Init>:
  12544. /**
  12545. * Enable DMA controller clock
  12546. */
  12547. static void MX_DMA_Init(void)
  12548. {
  12549. 80050d4: b480 push {r7}
  12550. 80050d6: b083 sub sp, #12
  12551. 80050d8: af00 add r7, sp, #0
  12552. /* DMA controller clock enable */
  12553. __HAL_RCC_DMA1_CLK_ENABLE();
  12554. 80050da: 4b08 ldr r3, [pc, #32] ; (80050fc <MX_DMA_Init+0x28>)
  12555. 80050dc: 695b ldr r3, [r3, #20]
  12556. 80050de: 4a07 ldr r2, [pc, #28] ; (80050fc <MX_DMA_Init+0x28>)
  12557. 80050e0: f043 0301 orr.w r3, r3, #1
  12558. 80050e4: 6153 str r3, [r2, #20]
  12559. 80050e6: 4b05 ldr r3, [pc, #20] ; (80050fc <MX_DMA_Init+0x28>)
  12560. 80050e8: 695b ldr r3, [r3, #20]
  12561. 80050ea: f003 0301 and.w r3, r3, #1
  12562. 80050ee: 607b str r3, [r7, #4]
  12563. 80050f0: 687b ldr r3, [r7, #4]
  12564. }
  12565. 80050f2: bf00 nop
  12566. 80050f4: 370c adds r7, #12
  12567. 80050f6: 46bd mov sp, r7
  12568. 80050f8: bc80 pop {r7}
  12569. 80050fa: 4770 bx lr
  12570. 80050fc: 40021000 .word 0x40021000
  12571. 08005100 <MX_GPIO_Init>:
  12572. * @brief GPIO Initialization Function
  12573. * @param None
  12574. * @retval None
  12575. */
  12576. static void MX_GPIO_Init(void)
  12577. {
  12578. 8005100: b580 push {r7, lr}
  12579. 8005102: b088 sub sp, #32
  12580. 8005104: af00 add r7, sp, #0
  12581. GPIO_InitTypeDef GPIO_InitStruct = {0};
  12582. 8005106: f107 0310 add.w r3, r7, #16
  12583. 800510a: 2200 movs r2, #0
  12584. 800510c: 601a str r2, [r3, #0]
  12585. 800510e: 605a str r2, [r3, #4]
  12586. 8005110: 609a str r2, [r3, #8]
  12587. 8005112: 60da str r2, [r3, #12]
  12588. /* GPIO Ports Clock Enable */
  12589. __HAL_RCC_GPIOC_CLK_ENABLE();
  12590. 8005114: 4b40 ldr r3, [pc, #256] ; (8005218 <MX_GPIO_Init+0x118>)
  12591. 8005116: 699b ldr r3, [r3, #24]
  12592. 8005118: 4a3f ldr r2, [pc, #252] ; (8005218 <MX_GPIO_Init+0x118>)
  12593. 800511a: f043 0310 orr.w r3, r3, #16
  12594. 800511e: 6193 str r3, [r2, #24]
  12595. 8005120: 4b3d ldr r3, [pc, #244] ; (8005218 <MX_GPIO_Init+0x118>)
  12596. 8005122: 699b ldr r3, [r3, #24]
  12597. 8005124: f003 0310 and.w r3, r3, #16
  12598. 8005128: 60fb str r3, [r7, #12]
  12599. 800512a: 68fb ldr r3, [r7, #12]
  12600. __HAL_RCC_GPIOA_CLK_ENABLE();
  12601. 800512c: 4b3a ldr r3, [pc, #232] ; (8005218 <MX_GPIO_Init+0x118>)
  12602. 800512e: 699b ldr r3, [r3, #24]
  12603. 8005130: 4a39 ldr r2, [pc, #228] ; (8005218 <MX_GPIO_Init+0x118>)
  12604. 8005132: f043 0304 orr.w r3, r3, #4
  12605. 8005136: 6193 str r3, [r2, #24]
  12606. 8005138: 4b37 ldr r3, [pc, #220] ; (8005218 <MX_GPIO_Init+0x118>)
  12607. 800513a: 699b ldr r3, [r3, #24]
  12608. 800513c: f003 0304 and.w r3, r3, #4
  12609. 8005140: 60bb str r3, [r7, #8]
  12610. 8005142: 68bb ldr r3, [r7, #8]
  12611. __HAL_RCC_GPIOB_CLK_ENABLE();
  12612. 8005144: 4b34 ldr r3, [pc, #208] ; (8005218 <MX_GPIO_Init+0x118>)
  12613. 8005146: 699b ldr r3, [r3, #24]
  12614. 8005148: 4a33 ldr r2, [pc, #204] ; (8005218 <MX_GPIO_Init+0x118>)
  12615. 800514a: f043 0308 orr.w r3, r3, #8
  12616. 800514e: 6193 str r3, [r2, #24]
  12617. 8005150: 4b31 ldr r3, [pc, #196] ; (8005218 <MX_GPIO_Init+0x118>)
  12618. 8005152: 699b ldr r3, [r3, #24]
  12619. 8005154: f003 0308 and.w r3, r3, #8
  12620. 8005158: 607b str r3, [r7, #4]
  12621. 800515a: 687b ldr r3, [r7, #4]
  12622. /*Configure GPIO pin Output Level */
  12623. HAL_GPIO_WritePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin, GPIO_PIN_RESET);
  12624. 800515c: 2200 movs r2, #0
  12625. 800515e: f44f 4100 mov.w r1, #32768 ; 0x8000
  12626. 8005162: 482e ldr r0, [pc, #184] ; (800521c <MX_GPIO_Init+0x11c>)
  12627. 8005164: f7fd ff1c bl 8002fa0 <HAL_GPIO_WritePin>
  12628. /*Configure GPIO pin Output Level */
  12629. HAL_GPIO_WritePin(GPIOA, PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin, GPIO_PIN_RESET);
  12630. 8005168: 2200 movs r2, #0
  12631. 800516a: f44f 71e0 mov.w r1, #448 ; 0x1c0
  12632. 800516e: 482c ldr r0, [pc, #176] ; (8005220 <MX_GPIO_Init+0x120>)
  12633. 8005170: f7fd ff16 bl 8002fa0 <HAL_GPIO_WritePin>
  12634. /*Configure GPIO pin Output Level */
  12635. HAL_GPIO_WritePin(GPIOB, PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin, GPIO_PIN_RESET);
  12636. 8005174: 2200 movs r2, #0
  12637. 8005176: f244 0103 movw r1, #16387 ; 0x4003
  12638. 800517a: 482a ldr r0, [pc, #168] ; (8005224 <MX_GPIO_Init+0x124>)
  12639. 800517c: f7fd ff10 bl 8002fa0 <HAL_GPIO_WritePin>
  12640. /*Configure GPIO pin : BOOT_LED_Pin */
  12641. GPIO_InitStruct.Pin = BOOT_LED_Pin;
  12642. 8005180: f44f 4300 mov.w r3, #32768 ; 0x8000
  12643. 8005184: 613b str r3, [r7, #16]
  12644. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  12645. 8005186: 2301 movs r3, #1
  12646. 8005188: 617b str r3, [r7, #20]
  12647. GPIO_InitStruct.Pull = GPIO_NOPULL;
  12648. 800518a: 2300 movs r3, #0
  12649. 800518c: 61bb str r3, [r7, #24]
  12650. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  12651. 800518e: 2302 movs r3, #2
  12652. 8005190: 61fb str r3, [r7, #28]
  12653. HAL_GPIO_Init(BOOT_LED_GPIO_Port, &GPIO_InitStruct);
  12654. 8005192: f107 0310 add.w r3, r7, #16
  12655. 8005196: 4619 mov r1, r3
  12656. 8005198: 4820 ldr r0, [pc, #128] ; (800521c <MX_GPIO_Init+0x11c>)
  12657. 800519a: f7fd fda7 bl 8002cec <HAL_GPIO_Init>
  12658. /*Configure GPIO pins : DC_FAIL_ALARM_Pin OVER_INPUT_ALARM_Pin OVER_TEMP_ALARM_Pin */
  12659. GPIO_InitStruct.Pin = DC_FAIL_ALARM_Pin|OVER_INPUT_ALARM_Pin|OVER_TEMP_ALARM_Pin;
  12660. 800519e: f641 0304 movw r3, #6148 ; 0x1804
  12661. 80051a2: 613b str r3, [r7, #16]
  12662. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  12663. 80051a4: 2300 movs r3, #0
  12664. 80051a6: 617b str r3, [r7, #20]
  12665. GPIO_InitStruct.Pull = GPIO_NOPULL;
  12666. 80051a8: 2300 movs r3, #0
  12667. 80051aa: 61bb str r3, [r7, #24]
  12668. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  12669. 80051ac: f107 0310 add.w r3, r7, #16
  12670. 80051b0: 4619 mov r1, r3
  12671. 80051b2: 481b ldr r0, [pc, #108] ; (8005220 <MX_GPIO_Init+0x120>)
  12672. 80051b4: f7fd fd9a bl 8002cec <HAL_GPIO_Init>
  12673. /*Configure GPIO pins : PAU_RESERVED0_Pin PAU_RESERVED1_Pin AMP_EN_Pin */
  12674. GPIO_InitStruct.Pin = PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin;
  12675. 80051b8: f44f 73e0 mov.w r3, #448 ; 0x1c0
  12676. 80051bc: 613b str r3, [r7, #16]
  12677. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  12678. 80051be: 2301 movs r3, #1
  12679. 80051c0: 617b str r3, [r7, #20]
  12680. GPIO_InitStruct.Pull = GPIO_NOPULL;
  12681. 80051c2: 2300 movs r3, #0
  12682. 80051c4: 61bb str r3, [r7, #24]
  12683. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  12684. 80051c6: 2302 movs r3, #2
  12685. 80051c8: 61fb str r3, [r7, #28]
  12686. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  12687. 80051ca: f107 0310 add.w r3, r7, #16
  12688. 80051ce: 4619 mov r1, r3
  12689. 80051d0: 4813 ldr r0, [pc, #76] ; (8005220 <MX_GPIO_Init+0x120>)
  12690. 80051d2: f7fd fd8b bl 8002cec <HAL_GPIO_Init>
  12691. /*Configure GPIO pins : PAU_RESERVED3_Pin PAU_RESERVED2_Pin PAU_RESET_Pin */
  12692. GPIO_InitStruct.Pin = PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin;
  12693. 80051d6: f244 0303 movw r3, #16387 ; 0x4003
  12694. 80051da: 613b str r3, [r7, #16]
  12695. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  12696. 80051dc: 2301 movs r3, #1
  12697. 80051de: 617b str r3, [r7, #20]
  12698. GPIO_InitStruct.Pull = GPIO_NOPULL;
  12699. 80051e0: 2300 movs r3, #0
  12700. 80051e2: 61bb str r3, [r7, #24]
  12701. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  12702. 80051e4: 2302 movs r3, #2
  12703. 80051e6: 61fb str r3, [r7, #28]
  12704. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  12705. 80051e8: f107 0310 add.w r3, r7, #16
  12706. 80051ec: 4619 mov r1, r3
  12707. 80051ee: 480d ldr r0, [pc, #52] ; (8005224 <MX_GPIO_Init+0x124>)
  12708. 80051f0: f7fd fd7c bl 8002cec <HAL_GPIO_Init>
  12709. /*Configure GPIO pins : OVER_POWER_ALARM_Pin VSWR_ALARM_Pin PAU_EN_Pin ALC_ALARM_Pin */
  12710. GPIO_InitStruct.Pin = OVER_POWER_ALARM_Pin|VSWR_ALARM_Pin|PAU_EN_Pin|ALC_ALARM_Pin;
  12711. 80051f4: f24b 0308 movw r3, #45064 ; 0xb008
  12712. 80051f8: 613b str r3, [r7, #16]
  12713. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  12714. 80051fa: 2300 movs r3, #0
  12715. 80051fc: 617b str r3, [r7, #20]
  12716. GPIO_InitStruct.Pull = GPIO_NOPULL;
  12717. 80051fe: 2300 movs r3, #0
  12718. 8005200: 61bb str r3, [r7, #24]
  12719. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  12720. 8005202: f107 0310 add.w r3, r7, #16
  12721. 8005206: 4619 mov r1, r3
  12722. 8005208: 4806 ldr r0, [pc, #24] ; (8005224 <MX_GPIO_Init+0x124>)
  12723. 800520a: f7fd fd6f bl 8002cec <HAL_GPIO_Init>
  12724. }
  12725. 800520e: bf00 nop
  12726. 8005210: 3720 adds r7, #32
  12727. 8005212: 46bd mov sp, r7
  12728. 8005214: bd80 pop {r7, pc}
  12729. 8005216: bf00 nop
  12730. 8005218: 40021000 .word 0x40021000
  12731. 800521c: 40011000 .word 0x40011000
  12732. 8005220: 40010800 .word 0x40010800
  12733. 8005224: 40010c00 .word 0x40010c00
  12734. 08005228 <HAL_TIM_PeriodElapsedCallback>:
  12735. * a global variable "uwTick" used as application time base.
  12736. * @param htim : TIM handle
  12737. * @retval None
  12738. */
  12739. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  12740. {
  12741. 8005228: b580 push {r7, lr}
  12742. 800522a: b082 sub sp, #8
  12743. 800522c: af00 add r7, sp, #0
  12744. 800522e: 6078 str r0, [r7, #4]
  12745. /* USER CODE BEGIN Callback 0 */
  12746. /* USER CODE END Callback 0 */
  12747. if (htim->Instance == TIM2) {
  12748. 8005230: 687b ldr r3, [r7, #4]
  12749. 8005232: 681b ldr r3, [r3, #0]
  12750. 8005234: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  12751. 8005238: d101 bne.n 800523e <HAL_TIM_PeriodElapsedCallback+0x16>
  12752. HAL_IncTick();
  12753. 800523a: f7fc faf5 bl 8001828 <HAL_IncTick>
  12754. }
  12755. /* USER CODE BEGIN Callback 1 */
  12756. if(htim->Instance == TIM6){
  12757. 800523e: 687b ldr r3, [r7, #4]
  12758. 8005240: 681b ldr r3, [r3, #0]
  12759. 8005242: 4a08 ldr r2, [pc, #32] ; (8005264 <HAL_TIM_PeriodElapsedCallback+0x3c>)
  12760. 8005244: 4293 cmp r3, r2
  12761. 8005246: d109 bne.n 800525c <HAL_TIM_PeriodElapsedCallback+0x34>
  12762. UartRxTimerCnt++;
  12763. 8005248: 4b07 ldr r3, [pc, #28] ; (8005268 <HAL_TIM_PeriodElapsedCallback+0x40>)
  12764. 800524a: 681b ldr r3, [r3, #0]
  12765. 800524c: 3301 adds r3, #1
  12766. 800524e: 4a06 ldr r2, [pc, #24] ; (8005268 <HAL_TIM_PeriodElapsedCallback+0x40>)
  12767. 8005250: 6013 str r3, [r2, #0]
  12768. LED_TimerCnt++;
  12769. 8005252: 4b06 ldr r3, [pc, #24] ; (800526c <HAL_TIM_PeriodElapsedCallback+0x44>)
  12770. 8005254: 681b ldr r3, [r3, #0]
  12771. 8005256: 3301 adds r3, #1
  12772. 8005258: 4a04 ldr r2, [pc, #16] ; (800526c <HAL_TIM_PeriodElapsedCallback+0x44>)
  12773. 800525a: 6013 str r3, [r2, #0]
  12774. }
  12775. /* USER CODE END Callback 1 */
  12776. }
  12777. 800525c: bf00 nop
  12778. 800525e: 3708 adds r7, #8
  12779. 8005260: 46bd mov sp, r7
  12780. 8005262: bd80 pop {r7, pc}
  12781. 8005264: 40001000 .word 0x40001000
  12782. 8005268: 200003b8 .word 0x200003b8
  12783. 800526c: 200003b0 .word 0x200003b0
  12784. 08005270 <Error_Handler>:
  12785. /**
  12786. * @brief This function is executed in case of error occurrence.
  12787. * @retval None
  12788. */
  12789. void Error_Handler(void)
  12790. {
  12791. 8005270: b480 push {r7}
  12792. 8005272: af00 add r7, sp, #0
  12793. /* USER CODE BEGIN Error_Handler_Debug */
  12794. /* User can add his own implementation to report the HAL error return state */
  12795. /* USER CODE END Error_Handler_Debug */
  12796. }
  12797. 8005274: bf00 nop
  12798. 8005276: 46bd mov sp, r7
  12799. 8005278: bc80 pop {r7}
  12800. 800527a: 4770 bx lr
  12801. 0800527c <HAL_MspInit>:
  12802. /* USER CODE END 0 */
  12803. /**
  12804. * Initializes the Global MSP.
  12805. */
  12806. void HAL_MspInit(void)
  12807. {
  12808. 800527c: b480 push {r7}
  12809. 800527e: b085 sub sp, #20
  12810. 8005280: af00 add r7, sp, #0
  12811. /* USER CODE BEGIN MspInit 0 */
  12812. /* USER CODE END MspInit 0 */
  12813. __HAL_RCC_AFIO_CLK_ENABLE();
  12814. 8005282: 4b15 ldr r3, [pc, #84] ; (80052d8 <HAL_MspInit+0x5c>)
  12815. 8005284: 699b ldr r3, [r3, #24]
  12816. 8005286: 4a14 ldr r2, [pc, #80] ; (80052d8 <HAL_MspInit+0x5c>)
  12817. 8005288: f043 0301 orr.w r3, r3, #1
  12818. 800528c: 6193 str r3, [r2, #24]
  12819. 800528e: 4b12 ldr r3, [pc, #72] ; (80052d8 <HAL_MspInit+0x5c>)
  12820. 8005290: 699b ldr r3, [r3, #24]
  12821. 8005292: f003 0301 and.w r3, r3, #1
  12822. 8005296: 60bb str r3, [r7, #8]
  12823. 8005298: 68bb ldr r3, [r7, #8]
  12824. __HAL_RCC_PWR_CLK_ENABLE();
  12825. 800529a: 4b0f ldr r3, [pc, #60] ; (80052d8 <HAL_MspInit+0x5c>)
  12826. 800529c: 69db ldr r3, [r3, #28]
  12827. 800529e: 4a0e ldr r2, [pc, #56] ; (80052d8 <HAL_MspInit+0x5c>)
  12828. 80052a0: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  12829. 80052a4: 61d3 str r3, [r2, #28]
  12830. 80052a6: 4b0c ldr r3, [pc, #48] ; (80052d8 <HAL_MspInit+0x5c>)
  12831. 80052a8: 69db ldr r3, [r3, #28]
  12832. 80052aa: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  12833. 80052ae: 607b str r3, [r7, #4]
  12834. 80052b0: 687b ldr r3, [r7, #4]
  12835. /* System interrupt init*/
  12836. /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled
  12837. */
  12838. __HAL_AFIO_REMAP_SWJ_NOJTAG();
  12839. 80052b2: 4b0a ldr r3, [pc, #40] ; (80052dc <HAL_MspInit+0x60>)
  12840. 80052b4: 685b ldr r3, [r3, #4]
  12841. 80052b6: 60fb str r3, [r7, #12]
  12842. 80052b8: 68fb ldr r3, [r7, #12]
  12843. 80052ba: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000
  12844. 80052be: 60fb str r3, [r7, #12]
  12845. 80052c0: 68fb ldr r3, [r7, #12]
  12846. 80052c2: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000
  12847. 80052c6: 60fb str r3, [r7, #12]
  12848. 80052c8: 4a04 ldr r2, [pc, #16] ; (80052dc <HAL_MspInit+0x60>)
  12849. 80052ca: 68fb ldr r3, [r7, #12]
  12850. 80052cc: 6053 str r3, [r2, #4]
  12851. /* USER CODE BEGIN MspInit 1 */
  12852. /* USER CODE END MspInit 1 */
  12853. }
  12854. 80052ce: bf00 nop
  12855. 80052d0: 3714 adds r7, #20
  12856. 80052d2: 46bd mov sp, r7
  12857. 80052d4: bc80 pop {r7}
  12858. 80052d6: 4770 bx lr
  12859. 80052d8: 40021000 .word 0x40021000
  12860. 80052dc: 40010000 .word 0x40010000
  12861. 080052e0 <HAL_ADC_MspInit>:
  12862. * This function configures the hardware resources used in this example
  12863. * @param hadc: ADC handle pointer
  12864. * @retval None
  12865. */
  12866. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  12867. {
  12868. 80052e0: b580 push {r7, lr}
  12869. 80052e2: b088 sub sp, #32
  12870. 80052e4: af00 add r7, sp, #0
  12871. 80052e6: 6078 str r0, [r7, #4]
  12872. GPIO_InitTypeDef GPIO_InitStruct = {0};
  12873. 80052e8: f107 0310 add.w r3, r7, #16
  12874. 80052ec: 2200 movs r2, #0
  12875. 80052ee: 601a str r2, [r3, #0]
  12876. 80052f0: 605a str r2, [r3, #4]
  12877. 80052f2: 609a str r2, [r3, #8]
  12878. 80052f4: 60da str r2, [r3, #12]
  12879. if(hadc->Instance==ADC1)
  12880. 80052f6: 687b ldr r3, [r7, #4]
  12881. 80052f8: 681b ldr r3, [r3, #0]
  12882. 80052fa: 4a28 ldr r2, [pc, #160] ; (800539c <HAL_ADC_MspInit+0xbc>)
  12883. 80052fc: 4293 cmp r3, r2
  12884. 80052fe: d149 bne.n 8005394 <HAL_ADC_MspInit+0xb4>
  12885. {
  12886. /* USER CODE BEGIN ADC1_MspInit 0 */
  12887. /* USER CODE END ADC1_MspInit 0 */
  12888. /* Peripheral clock enable */
  12889. __HAL_RCC_ADC1_CLK_ENABLE();
  12890. 8005300: 4b27 ldr r3, [pc, #156] ; (80053a0 <HAL_ADC_MspInit+0xc0>)
  12891. 8005302: 699b ldr r3, [r3, #24]
  12892. 8005304: 4a26 ldr r2, [pc, #152] ; (80053a0 <HAL_ADC_MspInit+0xc0>)
  12893. 8005306: f443 7300 orr.w r3, r3, #512 ; 0x200
  12894. 800530a: 6193 str r3, [r2, #24]
  12895. 800530c: 4b24 ldr r3, [pc, #144] ; (80053a0 <HAL_ADC_MspInit+0xc0>)
  12896. 800530e: 699b ldr r3, [r3, #24]
  12897. 8005310: f403 7300 and.w r3, r3, #512 ; 0x200
  12898. 8005314: 60fb str r3, [r7, #12]
  12899. 8005316: 68fb ldr r3, [r7, #12]
  12900. __HAL_RCC_GPIOA_CLK_ENABLE();
  12901. 8005318: 4b21 ldr r3, [pc, #132] ; (80053a0 <HAL_ADC_MspInit+0xc0>)
  12902. 800531a: 699b ldr r3, [r3, #24]
  12903. 800531c: 4a20 ldr r2, [pc, #128] ; (80053a0 <HAL_ADC_MspInit+0xc0>)
  12904. 800531e: f043 0304 orr.w r3, r3, #4
  12905. 8005322: 6193 str r3, [r2, #24]
  12906. 8005324: 4b1e ldr r3, [pc, #120] ; (80053a0 <HAL_ADC_MspInit+0xc0>)
  12907. 8005326: 699b ldr r3, [r3, #24]
  12908. 8005328: f003 0304 and.w r3, r3, #4
  12909. 800532c: 60bb str r3, [r7, #8]
  12910. 800532e: 68bb ldr r3, [r7, #8]
  12911. /**ADC1 GPIO Configuration
  12912. PA0-WKUP ------> ADC1_IN0
  12913. PA1 ------> ADC1_IN1
  12914. PA3 ------> ADC1_IN3
  12915. */
  12916. GPIO_InitStruct.Pin = DL_TX_DET_Pin|DL_RX_DET_Pin|PAU_TEMP_Pin;
  12917. 8005330: 230b movs r3, #11
  12918. 8005332: 613b str r3, [r7, #16]
  12919. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  12920. 8005334: 2303 movs r3, #3
  12921. 8005336: 617b str r3, [r7, #20]
  12922. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  12923. 8005338: f107 0310 add.w r3, r7, #16
  12924. 800533c: 4619 mov r1, r3
  12925. 800533e: 4819 ldr r0, [pc, #100] ; (80053a4 <HAL_ADC_MspInit+0xc4>)
  12926. 8005340: f7fd fcd4 bl 8002cec <HAL_GPIO_Init>
  12927. /* ADC1 DMA Init */
  12928. /* ADC1 Init */
  12929. hdma_adc1.Instance = DMA1_Channel1;
  12930. 8005344: 4b18 ldr r3, [pc, #96] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12931. 8005346: 4a19 ldr r2, [pc, #100] ; (80053ac <HAL_ADC_MspInit+0xcc>)
  12932. 8005348: 601a str r2, [r3, #0]
  12933. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  12934. 800534a: 4b17 ldr r3, [pc, #92] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12935. 800534c: 2200 movs r2, #0
  12936. 800534e: 605a str r2, [r3, #4]
  12937. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  12938. 8005350: 4b15 ldr r3, [pc, #84] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12939. 8005352: 2200 movs r2, #0
  12940. 8005354: 609a str r2, [r3, #8]
  12941. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  12942. 8005356: 4b14 ldr r3, [pc, #80] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12943. 8005358: 2280 movs r2, #128 ; 0x80
  12944. 800535a: 60da str r2, [r3, #12]
  12945. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  12946. 800535c: 4b12 ldr r3, [pc, #72] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12947. 800535e: f44f 7280 mov.w r2, #256 ; 0x100
  12948. 8005362: 611a str r2, [r3, #16]
  12949. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  12950. 8005364: 4b10 ldr r3, [pc, #64] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12951. 8005366: f44f 6280 mov.w r2, #1024 ; 0x400
  12952. 800536a: 615a str r2, [r3, #20]
  12953. hdma_adc1.Init.Mode = DMA_CIRCULAR;
  12954. 800536c: 4b0e ldr r3, [pc, #56] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12955. 800536e: 2220 movs r2, #32
  12956. 8005370: 619a str r2, [r3, #24]
  12957. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  12958. 8005372: 4b0d ldr r3, [pc, #52] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12959. 8005374: 2200 movs r2, #0
  12960. 8005376: 61da str r2, [r3, #28]
  12961. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  12962. 8005378: 480b ldr r0, [pc, #44] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12963. 800537a: f7fd f853 bl 8002424 <HAL_DMA_Init>
  12964. 800537e: 4603 mov r3, r0
  12965. 8005380: 2b00 cmp r3, #0
  12966. 8005382: d001 beq.n 8005388 <HAL_ADC_MspInit+0xa8>
  12967. {
  12968. Error_Handler();
  12969. 8005384: f7ff ff74 bl 8005270 <Error_Handler>
  12970. }
  12971. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  12972. 8005388: 687b ldr r3, [r7, #4]
  12973. 800538a: 4a07 ldr r2, [pc, #28] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12974. 800538c: 621a str r2, [r3, #32]
  12975. 800538e: 4a06 ldr r2, [pc, #24] ; (80053a8 <HAL_ADC_MspInit+0xc8>)
  12976. 8005390: 687b ldr r3, [r7, #4]
  12977. 8005392: 6253 str r3, [r2, #36] ; 0x24
  12978. /* USER CODE BEGIN ADC1_MspInit 1 */
  12979. /* USER CODE END ADC1_MspInit 1 */
  12980. }
  12981. }
  12982. 8005394: bf00 nop
  12983. 8005396: 3720 adds r7, #32
  12984. 8005398: 46bd mov sp, r7
  12985. 800539a: bd80 pop {r7, pc}
  12986. 800539c: 40012400 .word 0x40012400
  12987. 80053a0: 40021000 .word 0x40021000
  12988. 80053a4: 40010800 .word 0x40010800
  12989. 80053a8: 20000820 .word 0x20000820
  12990. 80053ac: 40020008 .word 0x40020008
  12991. 080053b0 <HAL_TIM_Base_MspInit>:
  12992. * This function configures the hardware resources used in this example
  12993. * @param htim_base: TIM_Base handle pointer
  12994. * @retval None
  12995. */
  12996. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  12997. {
  12998. 80053b0: b480 push {r7}
  12999. 80053b2: b085 sub sp, #20
  13000. 80053b4: af00 add r7, sp, #0
  13001. 80053b6: 6078 str r0, [r7, #4]
  13002. if(htim_base->Instance==TIM6)
  13003. 80053b8: 687b ldr r3, [r7, #4]
  13004. 80053ba: 681b ldr r3, [r3, #0]
  13005. 80053bc: 4a09 ldr r2, [pc, #36] ; (80053e4 <HAL_TIM_Base_MspInit+0x34>)
  13006. 80053be: 4293 cmp r3, r2
  13007. 80053c0: d10b bne.n 80053da <HAL_TIM_Base_MspInit+0x2a>
  13008. {
  13009. /* USER CODE BEGIN TIM6_MspInit 0 */
  13010. /* USER CODE END TIM6_MspInit 0 */
  13011. /* Peripheral clock enable */
  13012. __HAL_RCC_TIM6_CLK_ENABLE();
  13013. 80053c2: 4b09 ldr r3, [pc, #36] ; (80053e8 <HAL_TIM_Base_MspInit+0x38>)
  13014. 80053c4: 69db ldr r3, [r3, #28]
  13015. 80053c6: 4a08 ldr r2, [pc, #32] ; (80053e8 <HAL_TIM_Base_MspInit+0x38>)
  13016. 80053c8: f043 0310 orr.w r3, r3, #16
  13017. 80053cc: 61d3 str r3, [r2, #28]
  13018. 80053ce: 4b06 ldr r3, [pc, #24] ; (80053e8 <HAL_TIM_Base_MspInit+0x38>)
  13019. 80053d0: 69db ldr r3, [r3, #28]
  13020. 80053d2: f003 0310 and.w r3, r3, #16
  13021. 80053d6: 60fb str r3, [r7, #12]
  13022. 80053d8: 68fb ldr r3, [r7, #12]
  13023. /* USER CODE BEGIN TIM6_MspInit 1 */
  13024. /* USER CODE END TIM6_MspInit 1 */
  13025. }
  13026. }
  13027. 80053da: bf00 nop
  13028. 80053dc: 3714 adds r7, #20
  13029. 80053de: 46bd mov sp, r7
  13030. 80053e0: bc80 pop {r7}
  13031. 80053e2: 4770 bx lr
  13032. 80053e4: 40001000 .word 0x40001000
  13033. 80053e8: 40021000 .word 0x40021000
  13034. 080053ec <HAL_UART_MspInit>:
  13035. * This function configures the hardware resources used in this example
  13036. * @param huart: UART handle pointer
  13037. * @retval None
  13038. */
  13039. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  13040. {
  13041. 80053ec: b580 push {r7, lr}
  13042. 80053ee: b08a sub sp, #40 ; 0x28
  13043. 80053f0: af00 add r7, sp, #0
  13044. 80053f2: 6078 str r0, [r7, #4]
  13045. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13046. 80053f4: f107 0318 add.w r3, r7, #24
  13047. 80053f8: 2200 movs r2, #0
  13048. 80053fa: 601a str r2, [r3, #0]
  13049. 80053fc: 605a str r2, [r3, #4]
  13050. 80053fe: 609a str r2, [r3, #8]
  13051. 8005400: 60da str r2, [r3, #12]
  13052. if(huart->Instance==USART1)
  13053. 8005402: 687b ldr r3, [r7, #4]
  13054. 8005404: 681b ldr r3, [r3, #0]
  13055. 8005406: 4a84 ldr r2, [pc, #528] ; (8005618 <HAL_UART_MspInit+0x22c>)
  13056. 8005408: 4293 cmp r3, r2
  13057. 800540a: d17e bne.n 800550a <HAL_UART_MspInit+0x11e>
  13058. {
  13059. /* USER CODE BEGIN USART1_MspInit 0 */
  13060. /* USER CODE END USART1_MspInit 0 */
  13061. /* Peripheral clock enable */
  13062. __HAL_RCC_USART1_CLK_ENABLE();
  13063. 800540c: 4b83 ldr r3, [pc, #524] ; (800561c <HAL_UART_MspInit+0x230>)
  13064. 800540e: 699b ldr r3, [r3, #24]
  13065. 8005410: 4a82 ldr r2, [pc, #520] ; (800561c <HAL_UART_MspInit+0x230>)
  13066. 8005412: f443 4380 orr.w r3, r3, #16384 ; 0x4000
  13067. 8005416: 6193 str r3, [r2, #24]
  13068. 8005418: 4b80 ldr r3, [pc, #512] ; (800561c <HAL_UART_MspInit+0x230>)
  13069. 800541a: 699b ldr r3, [r3, #24]
  13070. 800541c: f403 4380 and.w r3, r3, #16384 ; 0x4000
  13071. 8005420: 617b str r3, [r7, #20]
  13072. 8005422: 697b ldr r3, [r7, #20]
  13073. __HAL_RCC_GPIOA_CLK_ENABLE();
  13074. 8005424: 4b7d ldr r3, [pc, #500] ; (800561c <HAL_UART_MspInit+0x230>)
  13075. 8005426: 699b ldr r3, [r3, #24]
  13076. 8005428: 4a7c ldr r2, [pc, #496] ; (800561c <HAL_UART_MspInit+0x230>)
  13077. 800542a: f043 0304 orr.w r3, r3, #4
  13078. 800542e: 6193 str r3, [r2, #24]
  13079. 8005430: 4b7a ldr r3, [pc, #488] ; (800561c <HAL_UART_MspInit+0x230>)
  13080. 8005432: 699b ldr r3, [r3, #24]
  13081. 8005434: f003 0304 and.w r3, r3, #4
  13082. 8005438: 613b str r3, [r7, #16]
  13083. 800543a: 693b ldr r3, [r7, #16]
  13084. /**USART1 GPIO Configuration
  13085. PA9 ------> USART1_TX
  13086. PA10 ------> USART1_RX
  13087. */
  13088. GPIO_InitStruct.Pin = GPIO_PIN_9;
  13089. 800543c: f44f 7300 mov.w r3, #512 ; 0x200
  13090. 8005440: 61bb str r3, [r7, #24]
  13091. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  13092. 8005442: 2302 movs r3, #2
  13093. 8005444: 61fb str r3, [r7, #28]
  13094. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  13095. 8005446: 2303 movs r3, #3
  13096. 8005448: 627b str r3, [r7, #36] ; 0x24
  13097. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13098. 800544a: f107 0318 add.w r3, r7, #24
  13099. 800544e: 4619 mov r1, r3
  13100. 8005450: 4873 ldr r0, [pc, #460] ; (8005620 <HAL_UART_MspInit+0x234>)
  13101. 8005452: f7fd fc4b bl 8002cec <HAL_GPIO_Init>
  13102. GPIO_InitStruct.Pin = GPIO_PIN_10;
  13103. 8005456: f44f 6380 mov.w r3, #1024 ; 0x400
  13104. 800545a: 61bb str r3, [r7, #24]
  13105. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13106. 800545c: 2300 movs r3, #0
  13107. 800545e: 61fb str r3, [r7, #28]
  13108. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13109. 8005460: 2300 movs r3, #0
  13110. 8005462: 623b str r3, [r7, #32]
  13111. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13112. 8005464: f107 0318 add.w r3, r7, #24
  13113. 8005468: 4619 mov r1, r3
  13114. 800546a: 486d ldr r0, [pc, #436] ; (8005620 <HAL_UART_MspInit+0x234>)
  13115. 800546c: f7fd fc3e bl 8002cec <HAL_GPIO_Init>
  13116. /* USART1 DMA Init */
  13117. /* USART1_TX Init */
  13118. hdma_usart1_tx.Instance = DMA1_Channel4;
  13119. 8005470: 4b6c ldr r3, [pc, #432] ; (8005624 <HAL_UART_MspInit+0x238>)
  13120. 8005472: 4a6d ldr r2, [pc, #436] ; (8005628 <HAL_UART_MspInit+0x23c>)
  13121. 8005474: 601a str r2, [r3, #0]
  13122. hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  13123. 8005476: 4b6b ldr r3, [pc, #428] ; (8005624 <HAL_UART_MspInit+0x238>)
  13124. 8005478: 2210 movs r2, #16
  13125. 800547a: 605a str r2, [r3, #4]
  13126. hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  13127. 800547c: 4b69 ldr r3, [pc, #420] ; (8005624 <HAL_UART_MspInit+0x238>)
  13128. 800547e: 2200 movs r2, #0
  13129. 8005480: 609a str r2, [r3, #8]
  13130. hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE;
  13131. 8005482: 4b68 ldr r3, [pc, #416] ; (8005624 <HAL_UART_MspInit+0x238>)
  13132. 8005484: 2280 movs r2, #128 ; 0x80
  13133. 8005486: 60da str r2, [r3, #12]
  13134. hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13135. 8005488: 4b66 ldr r3, [pc, #408] ; (8005624 <HAL_UART_MspInit+0x238>)
  13136. 800548a: 2200 movs r2, #0
  13137. 800548c: 611a str r2, [r3, #16]
  13138. hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13139. 800548e: 4b65 ldr r3, [pc, #404] ; (8005624 <HAL_UART_MspInit+0x238>)
  13140. 8005490: 2200 movs r2, #0
  13141. 8005492: 615a str r2, [r3, #20]
  13142. hdma_usart1_tx.Init.Mode = DMA_NORMAL;
  13143. 8005494: 4b63 ldr r3, [pc, #396] ; (8005624 <HAL_UART_MspInit+0x238>)
  13144. 8005496: 2200 movs r2, #0
  13145. 8005498: 619a str r2, [r3, #24]
  13146. hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW;
  13147. 800549a: 4b62 ldr r3, [pc, #392] ; (8005624 <HAL_UART_MspInit+0x238>)
  13148. 800549c: 2200 movs r2, #0
  13149. 800549e: 61da str r2, [r3, #28]
  13150. if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK)
  13151. 80054a0: 4860 ldr r0, [pc, #384] ; (8005624 <HAL_UART_MspInit+0x238>)
  13152. 80054a2: f7fc ffbf bl 8002424 <HAL_DMA_Init>
  13153. 80054a6: 4603 mov r3, r0
  13154. 80054a8: 2b00 cmp r3, #0
  13155. 80054aa: d001 beq.n 80054b0 <HAL_UART_MspInit+0xc4>
  13156. {
  13157. Error_Handler();
  13158. 80054ac: f7ff fee0 bl 8005270 <Error_Handler>
  13159. }
  13160. __HAL_LINKDMA(huart,hdmatx,hdma_usart1_tx);
  13161. 80054b0: 687b ldr r3, [r7, #4]
  13162. 80054b2: 4a5c ldr r2, [pc, #368] ; (8005624 <HAL_UART_MspInit+0x238>)
  13163. 80054b4: 631a str r2, [r3, #48] ; 0x30
  13164. 80054b6: 4a5b ldr r2, [pc, #364] ; (8005624 <HAL_UART_MspInit+0x238>)
  13165. 80054b8: 687b ldr r3, [r7, #4]
  13166. 80054ba: 6253 str r3, [r2, #36] ; 0x24
  13167. /* USART1_RX Init */
  13168. hdma_usart1_rx.Instance = DMA1_Channel5;
  13169. 80054bc: 4b5b ldr r3, [pc, #364] ; (800562c <HAL_UART_MspInit+0x240>)
  13170. 80054be: 4a5c ldr r2, [pc, #368] ; (8005630 <HAL_UART_MspInit+0x244>)
  13171. 80054c0: 601a str r2, [r3, #0]
  13172. hdma_usart1_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  13173. 80054c2: 4b5a ldr r3, [pc, #360] ; (800562c <HAL_UART_MspInit+0x240>)
  13174. 80054c4: 2200 movs r2, #0
  13175. 80054c6: 605a str r2, [r3, #4]
  13176. hdma_usart1_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  13177. 80054c8: 4b58 ldr r3, [pc, #352] ; (800562c <HAL_UART_MspInit+0x240>)
  13178. 80054ca: 2200 movs r2, #0
  13179. 80054cc: 609a str r2, [r3, #8]
  13180. hdma_usart1_rx.Init.MemInc = DMA_MINC_ENABLE;
  13181. 80054ce: 4b57 ldr r3, [pc, #348] ; (800562c <HAL_UART_MspInit+0x240>)
  13182. 80054d0: 2280 movs r2, #128 ; 0x80
  13183. 80054d2: 60da str r2, [r3, #12]
  13184. hdma_usart1_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13185. 80054d4: 4b55 ldr r3, [pc, #340] ; (800562c <HAL_UART_MspInit+0x240>)
  13186. 80054d6: 2200 movs r2, #0
  13187. 80054d8: 611a str r2, [r3, #16]
  13188. hdma_usart1_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13189. 80054da: 4b54 ldr r3, [pc, #336] ; (800562c <HAL_UART_MspInit+0x240>)
  13190. 80054dc: 2200 movs r2, #0
  13191. 80054de: 615a str r2, [r3, #20]
  13192. hdma_usart1_rx.Init.Mode = DMA_NORMAL;
  13193. 80054e0: 4b52 ldr r3, [pc, #328] ; (800562c <HAL_UART_MspInit+0x240>)
  13194. 80054e2: 2200 movs r2, #0
  13195. 80054e4: 619a str r2, [r3, #24]
  13196. hdma_usart1_rx.Init.Priority = DMA_PRIORITY_LOW;
  13197. 80054e6: 4b51 ldr r3, [pc, #324] ; (800562c <HAL_UART_MspInit+0x240>)
  13198. 80054e8: 2200 movs r2, #0
  13199. 80054ea: 61da str r2, [r3, #28]
  13200. if (HAL_DMA_Init(&hdma_usart1_rx) != HAL_OK)
  13201. 80054ec: 484f ldr r0, [pc, #316] ; (800562c <HAL_UART_MspInit+0x240>)
  13202. 80054ee: f7fc ff99 bl 8002424 <HAL_DMA_Init>
  13203. 80054f2: 4603 mov r3, r0
  13204. 80054f4: 2b00 cmp r3, #0
  13205. 80054f6: d001 beq.n 80054fc <HAL_UART_MspInit+0x110>
  13206. {
  13207. Error_Handler();
  13208. 80054f8: f7ff feba bl 8005270 <Error_Handler>
  13209. }
  13210. __HAL_LINKDMA(huart,hdmarx,hdma_usart1_rx);
  13211. 80054fc: 687b ldr r3, [r7, #4]
  13212. 80054fe: 4a4b ldr r2, [pc, #300] ; (800562c <HAL_UART_MspInit+0x240>)
  13213. 8005500: 635a str r2, [r3, #52] ; 0x34
  13214. 8005502: 4a4a ldr r2, [pc, #296] ; (800562c <HAL_UART_MspInit+0x240>)
  13215. 8005504: 687b ldr r3, [r7, #4]
  13216. 8005506: 6253 str r3, [r2, #36] ; 0x24
  13217. /* USER CODE BEGIN USART3_MspInit 1 */
  13218. /* USER CODE END USART3_MspInit 1 */
  13219. }
  13220. }
  13221. 8005508: e082 b.n 8005610 <HAL_UART_MspInit+0x224>
  13222. else if(huart->Instance==USART3)
  13223. 800550a: 687b ldr r3, [r7, #4]
  13224. 800550c: 681b ldr r3, [r3, #0]
  13225. 800550e: 4a49 ldr r2, [pc, #292] ; (8005634 <HAL_UART_MspInit+0x248>)
  13226. 8005510: 4293 cmp r3, r2
  13227. 8005512: d17d bne.n 8005610 <HAL_UART_MspInit+0x224>
  13228. __HAL_RCC_USART3_CLK_ENABLE();
  13229. 8005514: 4b41 ldr r3, [pc, #260] ; (800561c <HAL_UART_MspInit+0x230>)
  13230. 8005516: 69db ldr r3, [r3, #28]
  13231. 8005518: 4a40 ldr r2, [pc, #256] ; (800561c <HAL_UART_MspInit+0x230>)
  13232. 800551a: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  13233. 800551e: 61d3 str r3, [r2, #28]
  13234. 8005520: 4b3e ldr r3, [pc, #248] ; (800561c <HAL_UART_MspInit+0x230>)
  13235. 8005522: 69db ldr r3, [r3, #28]
  13236. 8005524: f403 2380 and.w r3, r3, #262144 ; 0x40000
  13237. 8005528: 60fb str r3, [r7, #12]
  13238. 800552a: 68fb ldr r3, [r7, #12]
  13239. __HAL_RCC_GPIOB_CLK_ENABLE();
  13240. 800552c: 4b3b ldr r3, [pc, #236] ; (800561c <HAL_UART_MspInit+0x230>)
  13241. 800552e: 699b ldr r3, [r3, #24]
  13242. 8005530: 4a3a ldr r2, [pc, #232] ; (800561c <HAL_UART_MspInit+0x230>)
  13243. 8005532: f043 0308 orr.w r3, r3, #8
  13244. 8005536: 6193 str r3, [r2, #24]
  13245. 8005538: 4b38 ldr r3, [pc, #224] ; (800561c <HAL_UART_MspInit+0x230>)
  13246. 800553a: 699b ldr r3, [r3, #24]
  13247. 800553c: f003 0308 and.w r3, r3, #8
  13248. 8005540: 60bb str r3, [r7, #8]
  13249. 8005542: 68bb ldr r3, [r7, #8]
  13250. GPIO_InitStruct.Pin = GPIO_PIN_10;
  13251. 8005544: f44f 6380 mov.w r3, #1024 ; 0x400
  13252. 8005548: 61bb str r3, [r7, #24]
  13253. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  13254. 800554a: 2302 movs r3, #2
  13255. 800554c: 61fb str r3, [r7, #28]
  13256. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  13257. 800554e: 2303 movs r3, #3
  13258. 8005550: 627b str r3, [r7, #36] ; 0x24
  13259. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13260. 8005552: f107 0318 add.w r3, r7, #24
  13261. 8005556: 4619 mov r1, r3
  13262. 8005558: 4837 ldr r0, [pc, #220] ; (8005638 <HAL_UART_MspInit+0x24c>)
  13263. 800555a: f7fd fbc7 bl 8002cec <HAL_GPIO_Init>
  13264. GPIO_InitStruct.Pin = GPIO_PIN_11;
  13265. 800555e: f44f 6300 mov.w r3, #2048 ; 0x800
  13266. 8005562: 61bb str r3, [r7, #24]
  13267. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13268. 8005564: 2300 movs r3, #0
  13269. 8005566: 61fb str r3, [r7, #28]
  13270. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13271. 8005568: 2300 movs r3, #0
  13272. 800556a: 623b str r3, [r7, #32]
  13273. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13274. 800556c: f107 0318 add.w r3, r7, #24
  13275. 8005570: 4619 mov r1, r3
  13276. 8005572: 4831 ldr r0, [pc, #196] ; (8005638 <HAL_UART_MspInit+0x24c>)
  13277. 8005574: f7fd fbba bl 8002cec <HAL_GPIO_Init>
  13278. hdma_usart3_tx.Instance = DMA1_Channel2;
  13279. 8005578: 4b30 ldr r3, [pc, #192] ; (800563c <HAL_UART_MspInit+0x250>)
  13280. 800557a: 4a31 ldr r2, [pc, #196] ; (8005640 <HAL_UART_MspInit+0x254>)
  13281. 800557c: 601a str r2, [r3, #0]
  13282. hdma_usart3_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  13283. 800557e: 4b2f ldr r3, [pc, #188] ; (800563c <HAL_UART_MspInit+0x250>)
  13284. 8005580: 2210 movs r2, #16
  13285. 8005582: 605a str r2, [r3, #4]
  13286. hdma_usart3_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  13287. 8005584: 4b2d ldr r3, [pc, #180] ; (800563c <HAL_UART_MspInit+0x250>)
  13288. 8005586: 2200 movs r2, #0
  13289. 8005588: 609a str r2, [r3, #8]
  13290. hdma_usart3_tx.Init.MemInc = DMA_MINC_ENABLE;
  13291. 800558a: 4b2c ldr r3, [pc, #176] ; (800563c <HAL_UART_MspInit+0x250>)
  13292. 800558c: 2280 movs r2, #128 ; 0x80
  13293. 800558e: 60da str r2, [r3, #12]
  13294. hdma_usart3_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13295. 8005590: 4b2a ldr r3, [pc, #168] ; (800563c <HAL_UART_MspInit+0x250>)
  13296. 8005592: 2200 movs r2, #0
  13297. 8005594: 611a str r2, [r3, #16]
  13298. hdma_usart3_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13299. 8005596: 4b29 ldr r3, [pc, #164] ; (800563c <HAL_UART_MspInit+0x250>)
  13300. 8005598: 2200 movs r2, #0
  13301. 800559a: 615a str r2, [r3, #20]
  13302. hdma_usart3_tx.Init.Mode = DMA_NORMAL;
  13303. 800559c: 4b27 ldr r3, [pc, #156] ; (800563c <HAL_UART_MspInit+0x250>)
  13304. 800559e: 2200 movs r2, #0
  13305. 80055a0: 619a str r2, [r3, #24]
  13306. hdma_usart3_tx.Init.Priority = DMA_PRIORITY_LOW;
  13307. 80055a2: 4b26 ldr r3, [pc, #152] ; (800563c <HAL_UART_MspInit+0x250>)
  13308. 80055a4: 2200 movs r2, #0
  13309. 80055a6: 61da str r2, [r3, #28]
  13310. if (HAL_DMA_Init(&hdma_usart3_tx) != HAL_OK)
  13311. 80055a8: 4824 ldr r0, [pc, #144] ; (800563c <HAL_UART_MspInit+0x250>)
  13312. 80055aa: f7fc ff3b bl 8002424 <HAL_DMA_Init>
  13313. 80055ae: 4603 mov r3, r0
  13314. 80055b0: 2b00 cmp r3, #0
  13315. 80055b2: d001 beq.n 80055b8 <HAL_UART_MspInit+0x1cc>
  13316. Error_Handler();
  13317. 80055b4: f7ff fe5c bl 8005270 <Error_Handler>
  13318. __HAL_LINKDMA(huart,hdmatx,hdma_usart3_tx);
  13319. 80055b8: 687b ldr r3, [r7, #4]
  13320. 80055ba: 4a20 ldr r2, [pc, #128] ; (800563c <HAL_UART_MspInit+0x250>)
  13321. 80055bc: 631a str r2, [r3, #48] ; 0x30
  13322. 80055be: 4a1f ldr r2, [pc, #124] ; (800563c <HAL_UART_MspInit+0x250>)
  13323. 80055c0: 687b ldr r3, [r7, #4]
  13324. 80055c2: 6253 str r3, [r2, #36] ; 0x24
  13325. hdma_usart3_rx.Instance = DMA1_Channel3;
  13326. 80055c4: 4b1f ldr r3, [pc, #124] ; (8005644 <HAL_UART_MspInit+0x258>)
  13327. 80055c6: 4a20 ldr r2, [pc, #128] ; (8005648 <HAL_UART_MspInit+0x25c>)
  13328. 80055c8: 601a str r2, [r3, #0]
  13329. hdma_usart3_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  13330. 80055ca: 4b1e ldr r3, [pc, #120] ; (8005644 <HAL_UART_MspInit+0x258>)
  13331. 80055cc: 2200 movs r2, #0
  13332. 80055ce: 605a str r2, [r3, #4]
  13333. hdma_usart3_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  13334. 80055d0: 4b1c ldr r3, [pc, #112] ; (8005644 <HAL_UART_MspInit+0x258>)
  13335. 80055d2: 2200 movs r2, #0
  13336. 80055d4: 609a str r2, [r3, #8]
  13337. hdma_usart3_rx.Init.MemInc = DMA_MINC_ENABLE;
  13338. 80055d6: 4b1b ldr r3, [pc, #108] ; (8005644 <HAL_UART_MspInit+0x258>)
  13339. 80055d8: 2280 movs r2, #128 ; 0x80
  13340. 80055da: 60da str r2, [r3, #12]
  13341. hdma_usart3_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13342. 80055dc: 4b19 ldr r3, [pc, #100] ; (8005644 <HAL_UART_MspInit+0x258>)
  13343. 80055de: 2200 movs r2, #0
  13344. 80055e0: 611a str r2, [r3, #16]
  13345. hdma_usart3_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13346. 80055e2: 4b18 ldr r3, [pc, #96] ; (8005644 <HAL_UART_MspInit+0x258>)
  13347. 80055e4: 2200 movs r2, #0
  13348. 80055e6: 615a str r2, [r3, #20]
  13349. hdma_usart3_rx.Init.Mode = DMA_NORMAL;
  13350. 80055e8: 4b16 ldr r3, [pc, #88] ; (8005644 <HAL_UART_MspInit+0x258>)
  13351. 80055ea: 2200 movs r2, #0
  13352. 80055ec: 619a str r2, [r3, #24]
  13353. hdma_usart3_rx.Init.Priority = DMA_PRIORITY_LOW;
  13354. 80055ee: 4b15 ldr r3, [pc, #84] ; (8005644 <HAL_UART_MspInit+0x258>)
  13355. 80055f0: 2200 movs r2, #0
  13356. 80055f2: 61da str r2, [r3, #28]
  13357. if (HAL_DMA_Init(&hdma_usart3_rx) != HAL_OK)
  13358. 80055f4: 4813 ldr r0, [pc, #76] ; (8005644 <HAL_UART_MspInit+0x258>)
  13359. 80055f6: f7fc ff15 bl 8002424 <HAL_DMA_Init>
  13360. 80055fa: 4603 mov r3, r0
  13361. 80055fc: 2b00 cmp r3, #0
  13362. 80055fe: d001 beq.n 8005604 <HAL_UART_MspInit+0x218>
  13363. Error_Handler();
  13364. 8005600: f7ff fe36 bl 8005270 <Error_Handler>
  13365. __HAL_LINKDMA(huart,hdmarx,hdma_usart3_rx);
  13366. 8005604: 687b ldr r3, [r7, #4]
  13367. 8005606: 4a0f ldr r2, [pc, #60] ; (8005644 <HAL_UART_MspInit+0x258>)
  13368. 8005608: 635a str r2, [r3, #52] ; 0x34
  13369. 800560a: 4a0e ldr r2, [pc, #56] ; (8005644 <HAL_UART_MspInit+0x258>)
  13370. 800560c: 687b ldr r3, [r7, #4]
  13371. 800560e: 6253 str r3, [r2, #36] ; 0x24
  13372. }
  13373. 8005610: bf00 nop
  13374. 8005612: 3728 adds r7, #40 ; 0x28
  13375. 8005614: 46bd mov sp, r7
  13376. 8005616: bd80 pop {r7, pc}
  13377. 8005618: 40013800 .word 0x40013800
  13378. 800561c: 40021000 .word 0x40021000
  13379. 8005620: 40010800 .word 0x40010800
  13380. 8005624: 20000728 .word 0x20000728
  13381. 8005628: 40020044 .word 0x40020044
  13382. 800562c: 2000079c .word 0x2000079c
  13383. 8005630: 40020058 .word 0x40020058
  13384. 8005634: 40004800 .word 0x40004800
  13385. 8005638: 40010c00 .word 0x40010c00
  13386. 800563c: 200006e4 .word 0x200006e4
  13387. 8005640: 4002001c .word 0x4002001c
  13388. 8005644: 20000660 .word 0x20000660
  13389. 8005648: 40020030 .word 0x40020030
  13390. 0800564c <HAL_InitTick>:
  13391. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  13392. * @param TickPriority: Tick interrupt priority.
  13393. * @retval HAL status
  13394. */
  13395. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  13396. {
  13397. 800564c: b580 push {r7, lr}
  13398. 800564e: b08c sub sp, #48 ; 0x30
  13399. 8005650: af00 add r7, sp, #0
  13400. 8005652: 6078 str r0, [r7, #4]
  13401. RCC_ClkInitTypeDef clkconfig;
  13402. uint32_t uwTimclock = 0;
  13403. 8005654: 2300 movs r3, #0
  13404. 8005656: 62fb str r3, [r7, #44] ; 0x2c
  13405. uint32_t uwPrescalerValue = 0;
  13406. 8005658: 2300 movs r3, #0
  13407. 800565a: 62bb str r3, [r7, #40] ; 0x28
  13408. uint32_t pFLatency;
  13409. /*Configure the TIM2 IRQ priority */
  13410. HAL_NVIC_SetPriority(TIM2_IRQn, TickPriority ,0);
  13411. 800565c: 2200 movs r2, #0
  13412. 800565e: 6879 ldr r1, [r7, #4]
  13413. 8005660: 201c movs r0, #28
  13414. 8005662: f7fc feb4 bl 80023ce <HAL_NVIC_SetPriority>
  13415. /* Enable the TIM2 global Interrupt */
  13416. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  13417. 8005666: 201c movs r0, #28
  13418. 8005668: f7fc fecd bl 8002406 <HAL_NVIC_EnableIRQ>
  13419. /* Enable TIM2 clock */
  13420. __HAL_RCC_TIM2_CLK_ENABLE();
  13421. 800566c: 4b1f ldr r3, [pc, #124] ; (80056ec <HAL_InitTick+0xa0>)
  13422. 800566e: 69db ldr r3, [r3, #28]
  13423. 8005670: 4a1e ldr r2, [pc, #120] ; (80056ec <HAL_InitTick+0xa0>)
  13424. 8005672: f043 0301 orr.w r3, r3, #1
  13425. 8005676: 61d3 str r3, [r2, #28]
  13426. 8005678: 4b1c ldr r3, [pc, #112] ; (80056ec <HAL_InitTick+0xa0>)
  13427. 800567a: 69db ldr r3, [r3, #28]
  13428. 800567c: f003 0301 and.w r3, r3, #1
  13429. 8005680: 60fb str r3, [r7, #12]
  13430. 8005682: 68fb ldr r3, [r7, #12]
  13431. /* Get clock configuration */
  13432. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  13433. 8005684: f107 0210 add.w r2, r7, #16
  13434. 8005688: f107 0314 add.w r3, r7, #20
  13435. 800568c: 4611 mov r1, r2
  13436. 800568e: 4618 mov r0, r3
  13437. 8005690: f7fe f86c bl 800376c <HAL_RCC_GetClockConfig>
  13438. /* Compute TIM2 clock */
  13439. uwTimclock = HAL_RCC_GetPCLK1Freq();
  13440. 8005694: f7fe f842 bl 800371c <HAL_RCC_GetPCLK1Freq>
  13441. 8005698: 62f8 str r0, [r7, #44] ; 0x2c
  13442. /* Compute the prescaler value to have TIM2 counter clock equal to 1MHz */
  13443. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000) - 1);
  13444. 800569a: 6afb ldr r3, [r7, #44] ; 0x2c
  13445. 800569c: 4a14 ldr r2, [pc, #80] ; (80056f0 <HAL_InitTick+0xa4>)
  13446. 800569e: fba2 2303 umull r2, r3, r2, r3
  13447. 80056a2: 0c9b lsrs r3, r3, #18
  13448. 80056a4: 3b01 subs r3, #1
  13449. 80056a6: 62bb str r3, [r7, #40] ; 0x28
  13450. /* Initialize TIM2 */
  13451. htim2.Instance = TIM2;
  13452. 80056a8: 4b12 ldr r3, [pc, #72] ; (80056f4 <HAL_InitTick+0xa8>)
  13453. 80056aa: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
  13454. 80056ae: 601a str r2, [r3, #0]
  13455. + Period = [(TIM2CLK/1000) - 1]. to have a (1/1000) s time base.
  13456. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  13457. + ClockDivision = 0
  13458. + Counter direction = Up
  13459. */
  13460. htim2.Init.Period = (1000000 / 1000) - 1;
  13461. 80056b0: 4b10 ldr r3, [pc, #64] ; (80056f4 <HAL_InitTick+0xa8>)
  13462. 80056b2: f240 32e7 movw r2, #999 ; 0x3e7
  13463. 80056b6: 60da str r2, [r3, #12]
  13464. htim2.Init.Prescaler = uwPrescalerValue;
  13465. 80056b8: 4a0e ldr r2, [pc, #56] ; (80056f4 <HAL_InitTick+0xa8>)
  13466. 80056ba: 6abb ldr r3, [r7, #40] ; 0x28
  13467. 80056bc: 6053 str r3, [r2, #4]
  13468. htim2.Init.ClockDivision = 0;
  13469. 80056be: 4b0d ldr r3, [pc, #52] ; (80056f4 <HAL_InitTick+0xa8>)
  13470. 80056c0: 2200 movs r2, #0
  13471. 80056c2: 611a str r2, [r3, #16]
  13472. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  13473. 80056c4: 4b0b ldr r3, [pc, #44] ; (80056f4 <HAL_InitTick+0xa8>)
  13474. 80056c6: 2200 movs r2, #0
  13475. 80056c8: 609a str r2, [r3, #8]
  13476. if(HAL_TIM_Base_Init(&htim2) == HAL_OK)
  13477. 80056ca: 480a ldr r0, [pc, #40] ; (80056f4 <HAL_InitTick+0xa8>)
  13478. 80056cc: f7fe f996 bl 80039fc <HAL_TIM_Base_Init>
  13479. 80056d0: 4603 mov r3, r0
  13480. 80056d2: 2b00 cmp r3, #0
  13481. 80056d4: d104 bne.n 80056e0 <HAL_InitTick+0x94>
  13482. {
  13483. /* Start the TIM time Base generation in interrupt mode */
  13484. return HAL_TIM_Base_Start_IT(&htim2);
  13485. 80056d6: 4807 ldr r0, [pc, #28] ; (80056f4 <HAL_InitTick+0xa8>)
  13486. 80056d8: f7fe f9bb bl 8003a52 <HAL_TIM_Base_Start_IT>
  13487. 80056dc: 4603 mov r3, r0
  13488. 80056de: e000 b.n 80056e2 <HAL_InitTick+0x96>
  13489. }
  13490. /* Return function status */
  13491. return HAL_ERROR;
  13492. 80056e0: 2301 movs r3, #1
  13493. }
  13494. 80056e2: 4618 mov r0, r3
  13495. 80056e4: 3730 adds r7, #48 ; 0x30
  13496. 80056e6: 46bd mov sp, r7
  13497. 80056e8: bd80 pop {r7, pc}
  13498. 80056ea: bf00 nop
  13499. 80056ec: 40021000 .word 0x40021000
  13500. 80056f0: 431bde83 .word 0x431bde83
  13501. 80056f4: 200008a4 .word 0x200008a4
  13502. 080056f8 <NMI_Handler>:
  13503. /******************************************************************************/
  13504. /**
  13505. * @brief This function handles Non maskable interrupt.
  13506. */
  13507. void NMI_Handler(void)
  13508. {
  13509. 80056f8: b480 push {r7}
  13510. 80056fa: af00 add r7, sp, #0
  13511. /* USER CODE END NonMaskableInt_IRQn 0 */
  13512. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  13513. /* USER CODE END NonMaskableInt_IRQn 1 */
  13514. }
  13515. 80056fc: bf00 nop
  13516. 80056fe: 46bd mov sp, r7
  13517. 8005700: bc80 pop {r7}
  13518. 8005702: 4770 bx lr
  13519. 08005704 <HardFault_Handler>:
  13520. /**
  13521. * @brief This function handles Hard fault interrupt.
  13522. */
  13523. void HardFault_Handler(void)
  13524. {
  13525. 8005704: b480 push {r7}
  13526. 8005706: af00 add r7, sp, #0
  13527. /* USER CODE BEGIN HardFault_IRQn 0 */
  13528. /* USER CODE END HardFault_IRQn 0 */
  13529. while (1)
  13530. 8005708: e7fe b.n 8005708 <HardFault_Handler+0x4>
  13531. 0800570a <MemManage_Handler>:
  13532. /**
  13533. * @brief This function handles Memory management fault.
  13534. */
  13535. void MemManage_Handler(void)
  13536. {
  13537. 800570a: b480 push {r7}
  13538. 800570c: af00 add r7, sp, #0
  13539. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  13540. /* USER CODE END MemoryManagement_IRQn 0 */
  13541. while (1)
  13542. 800570e: e7fe b.n 800570e <MemManage_Handler+0x4>
  13543. 08005710 <BusFault_Handler>:
  13544. /**
  13545. * @brief This function handles Prefetch fault, memory access fault.
  13546. */
  13547. void BusFault_Handler(void)
  13548. {
  13549. 8005710: b480 push {r7}
  13550. 8005712: af00 add r7, sp, #0
  13551. /* USER CODE BEGIN BusFault_IRQn 0 */
  13552. /* USER CODE END BusFault_IRQn 0 */
  13553. while (1)
  13554. 8005714: e7fe b.n 8005714 <BusFault_Handler+0x4>
  13555. 08005716 <UsageFault_Handler>:
  13556. /**
  13557. * @brief This function handles Undefined instruction or illegal state.
  13558. */
  13559. void UsageFault_Handler(void)
  13560. {
  13561. 8005716: b480 push {r7}
  13562. 8005718: af00 add r7, sp, #0
  13563. /* USER CODE BEGIN UsageFault_IRQn 0 */
  13564. /* USER CODE END UsageFault_IRQn 0 */
  13565. while (1)
  13566. 800571a: e7fe b.n 800571a <UsageFault_Handler+0x4>
  13567. 0800571c <SVC_Handler>:
  13568. /**
  13569. * @brief This function handles System service call via SWI instruction.
  13570. */
  13571. void SVC_Handler(void)
  13572. {
  13573. 800571c: b480 push {r7}
  13574. 800571e: af00 add r7, sp, #0
  13575. /* USER CODE END SVCall_IRQn 0 */
  13576. /* USER CODE BEGIN SVCall_IRQn 1 */
  13577. /* USER CODE END SVCall_IRQn 1 */
  13578. }
  13579. 8005720: bf00 nop
  13580. 8005722: 46bd mov sp, r7
  13581. 8005724: bc80 pop {r7}
  13582. 8005726: 4770 bx lr
  13583. 08005728 <DebugMon_Handler>:
  13584. /**
  13585. * @brief This function handles Debug monitor.
  13586. */
  13587. void DebugMon_Handler(void)
  13588. {
  13589. 8005728: b480 push {r7}
  13590. 800572a: af00 add r7, sp, #0
  13591. /* USER CODE END DebugMonitor_IRQn 0 */
  13592. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  13593. /* USER CODE END DebugMonitor_IRQn 1 */
  13594. }
  13595. 800572c: bf00 nop
  13596. 800572e: 46bd mov sp, r7
  13597. 8005730: bc80 pop {r7}
  13598. 8005732: 4770 bx lr
  13599. 08005734 <PendSV_Handler>:
  13600. /**
  13601. * @brief This function handles Pendable request for system service.
  13602. */
  13603. void PendSV_Handler(void)
  13604. {
  13605. 8005734: b480 push {r7}
  13606. 8005736: af00 add r7, sp, #0
  13607. /* USER CODE END PendSV_IRQn 0 */
  13608. /* USER CODE BEGIN PendSV_IRQn 1 */
  13609. /* USER CODE END PendSV_IRQn 1 */
  13610. }
  13611. 8005738: bf00 nop
  13612. 800573a: 46bd mov sp, r7
  13613. 800573c: bc80 pop {r7}
  13614. 800573e: 4770 bx lr
  13615. 08005740 <DMA1_Channel1_IRQHandler>:
  13616. /**
  13617. * @brief This function handles DMA1 channel1 global interrupt.
  13618. */
  13619. void DMA1_Channel1_IRQHandler(void)
  13620. {
  13621. 8005740: b580 push {r7, lr}
  13622. 8005742: af00 add r7, sp, #0
  13623. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  13624. /* USER CODE END DMA1_Channel1_IRQn 0 */
  13625. HAL_DMA_IRQHandler(&hdma_adc1);
  13626. 8005744: 4802 ldr r0, [pc, #8] ; (8005750 <DMA1_Channel1_IRQHandler+0x10>)
  13627. 8005746: f7fc ff9d bl 8002684 <HAL_DMA_IRQHandler>
  13628. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  13629. /* USER CODE END DMA1_Channel1_IRQn 1 */
  13630. }
  13631. 800574a: bf00 nop
  13632. 800574c: bd80 pop {r7, pc}
  13633. 800574e: bf00 nop
  13634. 8005750: 20000820 .word 0x20000820
  13635. 08005754 <DMA1_Channel2_IRQHandler>:
  13636. /**
  13637. * @brief This function handles DMA1 channel2 global interrupt.
  13638. */
  13639. void DMA1_Channel2_IRQHandler(void)
  13640. {
  13641. 8005754: b580 push {r7, lr}
  13642. 8005756: af00 add r7, sp, #0
  13643. /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
  13644. /* USER CODE END DMA1_Channel2_IRQn 0 */
  13645. HAL_DMA_IRQHandler(&hdma_usart3_tx);
  13646. 8005758: 4802 ldr r0, [pc, #8] ; (8005764 <DMA1_Channel2_IRQHandler+0x10>)
  13647. 800575a: f7fc ff93 bl 8002684 <HAL_DMA_IRQHandler>
  13648. /* USER CODE BEGIN DMA1_Channel2_IRQn 1 */
  13649. /* USER CODE END DMA1_Channel2_IRQn 1 */
  13650. }
  13651. 800575e: bf00 nop
  13652. 8005760: bd80 pop {r7, pc}
  13653. 8005762: bf00 nop
  13654. 8005764: 200006e4 .word 0x200006e4
  13655. 08005768 <DMA1_Channel3_IRQHandler>:
  13656. /**
  13657. * @brief This function handles DMA1 channel3 global interrupt.
  13658. */
  13659. void DMA1_Channel3_IRQHandler(void)
  13660. {
  13661. 8005768: b580 push {r7, lr}
  13662. 800576a: af00 add r7, sp, #0
  13663. /* USER CODE BEGIN DMA1_Channel3_IRQn 0 */
  13664. /* USER CODE END DMA1_Channel3_IRQn 0 */
  13665. HAL_DMA_IRQHandler(&hdma_usart3_rx);
  13666. 800576c: 4802 ldr r0, [pc, #8] ; (8005778 <DMA1_Channel3_IRQHandler+0x10>)
  13667. 800576e: f7fc ff89 bl 8002684 <HAL_DMA_IRQHandler>
  13668. /* USER CODE BEGIN DMA1_Channel3_IRQn 1 */
  13669. /* USER CODE END DMA1_Channel3_IRQn 1 */
  13670. }
  13671. 8005772: bf00 nop
  13672. 8005774: bd80 pop {r7, pc}
  13673. 8005776: bf00 nop
  13674. 8005778: 20000660 .word 0x20000660
  13675. 0800577c <DMA1_Channel4_IRQHandler>:
  13676. /**
  13677. * @brief This function handles DMA1 channel4 global interrupt.
  13678. */
  13679. void DMA1_Channel4_IRQHandler(void)
  13680. {
  13681. 800577c: b580 push {r7, lr}
  13682. 800577e: af00 add r7, sp, #0
  13683. /* USER CODE BEGIN DMA1_Channel4_IRQn 0 */
  13684. /* USER CODE END DMA1_Channel4_IRQn 0 */
  13685. HAL_DMA_IRQHandler(&hdma_usart1_tx);
  13686. 8005780: 4802 ldr r0, [pc, #8] ; (800578c <DMA1_Channel4_IRQHandler+0x10>)
  13687. 8005782: f7fc ff7f bl 8002684 <HAL_DMA_IRQHandler>
  13688. /* USER CODE BEGIN DMA1_Channel4_IRQn 1 */
  13689. /* USER CODE END DMA1_Channel4_IRQn 1 */
  13690. }
  13691. 8005786: bf00 nop
  13692. 8005788: bd80 pop {r7, pc}
  13693. 800578a: bf00 nop
  13694. 800578c: 20000728 .word 0x20000728
  13695. 08005790 <DMA1_Channel5_IRQHandler>:
  13696. /**
  13697. * @brief This function handles DMA1 channel5 global interrupt.
  13698. */
  13699. void DMA1_Channel5_IRQHandler(void)
  13700. {
  13701. 8005790: b580 push {r7, lr}
  13702. 8005792: af00 add r7, sp, #0
  13703. /* USER CODE BEGIN DMA1_Channel5_IRQn 0 */
  13704. /* USER CODE END DMA1_Channel5_IRQn 0 */
  13705. HAL_DMA_IRQHandler(&hdma_usart1_rx);
  13706. 8005794: 4802 ldr r0, [pc, #8] ; (80057a0 <DMA1_Channel5_IRQHandler+0x10>)
  13707. 8005796: f7fc ff75 bl 8002684 <HAL_DMA_IRQHandler>
  13708. /* USER CODE BEGIN DMA1_Channel5_IRQn 1 */
  13709. /* USER CODE END DMA1_Channel5_IRQn 1 */
  13710. }
  13711. 800579a: bf00 nop
  13712. 800579c: bd80 pop {r7, pc}
  13713. 800579e: bf00 nop
  13714. 80057a0: 2000079c .word 0x2000079c
  13715. 080057a4 <ADC1_IRQHandler>:
  13716. /**
  13717. * @brief This function handles ADC1 global interrupt.
  13718. */
  13719. void ADC1_IRQHandler(void)
  13720. {
  13721. 80057a4: b580 push {r7, lr}
  13722. 80057a6: af00 add r7, sp, #0
  13723. /* USER CODE BEGIN ADC1_IRQn 0 */
  13724. /* USER CODE END ADC1_IRQn 0 */
  13725. HAL_ADC_IRQHandler(&hadc1);
  13726. 80057a8: 4802 ldr r0, [pc, #8] ; (80057b4 <ADC1_IRQHandler+0x10>)
  13727. 80057aa: f7fc f9ed bl 8001b88 <HAL_ADC_IRQHandler>
  13728. /* USER CODE BEGIN ADC1_IRQn 1 */
  13729. /* USER CODE END ADC1_IRQn 1 */
  13730. }
  13731. 80057ae: bf00 nop
  13732. 80057b0: bd80 pop {r7, pc}
  13733. 80057b2: bf00 nop
  13734. 80057b4: 2000076c .word 0x2000076c
  13735. 080057b8 <TIM2_IRQHandler>:
  13736. /**
  13737. * @brief This function handles TIM2 global interrupt.
  13738. */
  13739. void TIM2_IRQHandler(void)
  13740. {
  13741. 80057b8: b580 push {r7, lr}
  13742. 80057ba: af00 add r7, sp, #0
  13743. /* USER CODE BEGIN TIM2_IRQn 0 */
  13744. /* USER CODE END TIM2_IRQn 0 */
  13745. HAL_TIM_IRQHandler(&htim2);
  13746. 80057bc: 4802 ldr r0, [pc, #8] ; (80057c8 <TIM2_IRQHandler+0x10>)
  13747. 80057be: f7fe f96b bl 8003a98 <HAL_TIM_IRQHandler>
  13748. /* USER CODE BEGIN TIM2_IRQn 1 */
  13749. /* USER CODE END TIM2_IRQn 1 */
  13750. }
  13751. 80057c2: bf00 nop
  13752. 80057c4: bd80 pop {r7, pc}
  13753. 80057c6: bf00 nop
  13754. 80057c8: 200008a4 .word 0x200008a4
  13755. 080057cc <USART1_IRQHandler>:
  13756. /**
  13757. * @brief This function handles USART1 global interrupt.
  13758. */
  13759. void USART1_IRQHandler(void)
  13760. {
  13761. 80057cc: b580 push {r7, lr}
  13762. 80057ce: af00 add r7, sp, #0
  13763. /* USER CODE BEGIN USART1_IRQn 0 */
  13764. /* USER CODE END USART1_IRQn 0 */
  13765. HAL_UART_IRQHandler(&huart1);
  13766. 80057d0: 4802 ldr r0, [pc, #8] ; (80057dc <USART1_IRQHandler+0x10>)
  13767. 80057d2: f7fe fd89 bl 80042e8 <HAL_UART_IRQHandler>
  13768. /* USER CODE BEGIN USART1_IRQn 1 */
  13769. /* USER CODE END USART1_IRQn 1 */
  13770. }
  13771. 80057d6: bf00 nop
  13772. 80057d8: bd80 pop {r7, pc}
  13773. 80057da: bf00 nop
  13774. 80057dc: 200007e0 .word 0x200007e0
  13775. 080057e0 <USART3_IRQHandler>:
  13776. /**
  13777. * @brief This function handles USART3 global interrupt.
  13778. */
  13779. void USART3_IRQHandler(void)
  13780. {
  13781. 80057e0: b580 push {r7, lr}
  13782. 80057e2: af00 add r7, sp, #0
  13783. /* USER CODE BEGIN USART3_IRQn 0 */
  13784. /* USER CODE END USART3_IRQn 0 */
  13785. HAL_UART_IRQHandler(&huart3);
  13786. 80057e4: 4802 ldr r0, [pc, #8] ; (80057f0 <USART3_IRQHandler+0x10>)
  13787. 80057e6: f7fe fd7f bl 80042e8 <HAL_UART_IRQHandler>
  13788. /* USER CODE BEGIN USART3_IRQn 1 */
  13789. /* USER CODE END USART3_IRQn 1 */
  13790. }
  13791. 80057ea: bf00 nop
  13792. 80057ec: bd80 pop {r7, pc}
  13793. 80057ee: bf00 nop
  13794. 80057f0: 200006a4 .word 0x200006a4
  13795. 080057f4 <TIM6_DAC_IRQHandler>:
  13796. /**
  13797. * @brief This function handles TIM6 global interrupt and DAC underrun error interrupts.
  13798. */
  13799. void TIM6_DAC_IRQHandler(void)
  13800. {
  13801. 80057f4: b580 push {r7, lr}
  13802. 80057f6: af00 add r7, sp, #0
  13803. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  13804. /* USER CODE END TIM6_DAC_IRQn 0 */
  13805. HAL_TIM_IRQHandler(&htim6);
  13806. 80057f8: 4802 ldr r0, [pc, #8] ; (8005804 <TIM6_DAC_IRQHandler+0x10>)
  13807. 80057fa: f7fe f94d bl 8003a98 <HAL_TIM_IRQHandler>
  13808. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  13809. /* USER CODE END TIM6_DAC_IRQn 1 */
  13810. }
  13811. 80057fe: bf00 nop
  13812. 8005800: bd80 pop {r7, pc}
  13813. 8005802: bf00 nop
  13814. 8005804: 20000864 .word 0x20000864
  13815. 08005808 <_read>:
  13816. _kill(status, -1);
  13817. while (1) {} /* Make sure we hang here */
  13818. }
  13819. __attribute__((weak)) int _read(int file, char *ptr, int len)
  13820. {
  13821. 8005808: b580 push {r7, lr}
  13822. 800580a: b086 sub sp, #24
  13823. 800580c: af00 add r7, sp, #0
  13824. 800580e: 60f8 str r0, [r7, #12]
  13825. 8005810: 60b9 str r1, [r7, #8]
  13826. 8005812: 607a str r2, [r7, #4]
  13827. int DataIdx;
  13828. for (DataIdx = 0; DataIdx < len; DataIdx++)
  13829. 8005814: 2300 movs r3, #0
  13830. 8005816: 617b str r3, [r7, #20]
  13831. 8005818: e00a b.n 8005830 <_read+0x28>
  13832. {
  13833. *ptr++ = __io_getchar();
  13834. 800581a: f3af 8000 nop.w
  13835. 800581e: 4601 mov r1, r0
  13836. 8005820: 68bb ldr r3, [r7, #8]
  13837. 8005822: 1c5a adds r2, r3, #1
  13838. 8005824: 60ba str r2, [r7, #8]
  13839. 8005826: b2ca uxtb r2, r1
  13840. 8005828: 701a strb r2, [r3, #0]
  13841. for (DataIdx = 0; DataIdx < len; DataIdx++)
  13842. 800582a: 697b ldr r3, [r7, #20]
  13843. 800582c: 3301 adds r3, #1
  13844. 800582e: 617b str r3, [r7, #20]
  13845. 8005830: 697a ldr r2, [r7, #20]
  13846. 8005832: 687b ldr r3, [r7, #4]
  13847. 8005834: 429a cmp r2, r3
  13848. 8005836: dbf0 blt.n 800581a <_read+0x12>
  13849. }
  13850. return len;
  13851. 8005838: 687b ldr r3, [r7, #4]
  13852. }
  13853. 800583a: 4618 mov r0, r3
  13854. 800583c: 3718 adds r7, #24
  13855. 800583e: 46bd mov sp, r7
  13856. 8005840: bd80 pop {r7, pc}
  13857. 08005842 <_close>:
  13858. }
  13859. return len;
  13860. }
  13861. int _close(int file)
  13862. {
  13863. 8005842: b480 push {r7}
  13864. 8005844: b083 sub sp, #12
  13865. 8005846: af00 add r7, sp, #0
  13866. 8005848: 6078 str r0, [r7, #4]
  13867. return -1;
  13868. 800584a: f04f 33ff mov.w r3, #4294967295
  13869. }
  13870. 800584e: 4618 mov r0, r3
  13871. 8005850: 370c adds r7, #12
  13872. 8005852: 46bd mov sp, r7
  13873. 8005854: bc80 pop {r7}
  13874. 8005856: 4770 bx lr
  13875. 08005858 <_fstat>:
  13876. int _fstat(int file, struct stat *st)
  13877. {
  13878. 8005858: b480 push {r7}
  13879. 800585a: b083 sub sp, #12
  13880. 800585c: af00 add r7, sp, #0
  13881. 800585e: 6078 str r0, [r7, #4]
  13882. 8005860: 6039 str r1, [r7, #0]
  13883. st->st_mode = S_IFCHR;
  13884. 8005862: 683b ldr r3, [r7, #0]
  13885. 8005864: f44f 5200 mov.w r2, #8192 ; 0x2000
  13886. 8005868: 605a str r2, [r3, #4]
  13887. return 0;
  13888. 800586a: 2300 movs r3, #0
  13889. }
  13890. 800586c: 4618 mov r0, r3
  13891. 800586e: 370c adds r7, #12
  13892. 8005870: 46bd mov sp, r7
  13893. 8005872: bc80 pop {r7}
  13894. 8005874: 4770 bx lr
  13895. 08005876 <_isatty>:
  13896. int _isatty(int file)
  13897. {
  13898. 8005876: b480 push {r7}
  13899. 8005878: b083 sub sp, #12
  13900. 800587a: af00 add r7, sp, #0
  13901. 800587c: 6078 str r0, [r7, #4]
  13902. return 1;
  13903. 800587e: 2301 movs r3, #1
  13904. }
  13905. 8005880: 4618 mov r0, r3
  13906. 8005882: 370c adds r7, #12
  13907. 8005884: 46bd mov sp, r7
  13908. 8005886: bc80 pop {r7}
  13909. 8005888: 4770 bx lr
  13910. 0800588a <_lseek>:
  13911. int _lseek(int file, int ptr, int dir)
  13912. {
  13913. 800588a: b480 push {r7}
  13914. 800588c: b085 sub sp, #20
  13915. 800588e: af00 add r7, sp, #0
  13916. 8005890: 60f8 str r0, [r7, #12]
  13917. 8005892: 60b9 str r1, [r7, #8]
  13918. 8005894: 607a str r2, [r7, #4]
  13919. return 0;
  13920. 8005896: 2300 movs r3, #0
  13921. }
  13922. 8005898: 4618 mov r0, r3
  13923. 800589a: 3714 adds r7, #20
  13924. 800589c: 46bd mov sp, r7
  13925. 800589e: bc80 pop {r7}
  13926. 80058a0: 4770 bx lr
  13927. ...
  13928. 080058a4 <_sbrk>:
  13929. /**
  13930. _sbrk
  13931. Increase program data space. Malloc and related functions depend on this
  13932. **/
  13933. caddr_t _sbrk(int incr)
  13934. {
  13935. 80058a4: b580 push {r7, lr}
  13936. 80058a6: b084 sub sp, #16
  13937. 80058a8: af00 add r7, sp, #0
  13938. 80058aa: 6078 str r0, [r7, #4]
  13939. extern char end asm("end");
  13940. static char *heap_end;
  13941. char *prev_heap_end;
  13942. if (heap_end == 0)
  13943. 80058ac: 4b11 ldr r3, [pc, #68] ; (80058f4 <_sbrk+0x50>)
  13944. 80058ae: 681b ldr r3, [r3, #0]
  13945. 80058b0: 2b00 cmp r3, #0
  13946. 80058b2: d102 bne.n 80058ba <_sbrk+0x16>
  13947. heap_end = &end;
  13948. 80058b4: 4b0f ldr r3, [pc, #60] ; (80058f4 <_sbrk+0x50>)
  13949. 80058b6: 4a10 ldr r2, [pc, #64] ; (80058f8 <_sbrk+0x54>)
  13950. 80058b8: 601a str r2, [r3, #0]
  13951. prev_heap_end = heap_end;
  13952. 80058ba: 4b0e ldr r3, [pc, #56] ; (80058f4 <_sbrk+0x50>)
  13953. 80058bc: 681b ldr r3, [r3, #0]
  13954. 80058be: 60fb str r3, [r7, #12]
  13955. if (heap_end + incr > stack_ptr)
  13956. 80058c0: 4b0c ldr r3, [pc, #48] ; (80058f4 <_sbrk+0x50>)
  13957. 80058c2: 681a ldr r2, [r3, #0]
  13958. 80058c4: 687b ldr r3, [r7, #4]
  13959. 80058c6: 4413 add r3, r2
  13960. 80058c8: 466a mov r2, sp
  13961. 80058ca: 4293 cmp r3, r2
  13962. 80058cc: d907 bls.n 80058de <_sbrk+0x3a>
  13963. {
  13964. errno = ENOMEM;
  13965. 80058ce: f000 f873 bl 80059b8 <__errno>
  13966. 80058d2: 4602 mov r2, r0
  13967. 80058d4: 230c movs r3, #12
  13968. 80058d6: 6013 str r3, [r2, #0]
  13969. return (caddr_t) -1;
  13970. 80058d8: f04f 33ff mov.w r3, #4294967295
  13971. 80058dc: e006 b.n 80058ec <_sbrk+0x48>
  13972. }
  13973. heap_end += incr;
  13974. 80058de: 4b05 ldr r3, [pc, #20] ; (80058f4 <_sbrk+0x50>)
  13975. 80058e0: 681a ldr r2, [r3, #0]
  13976. 80058e2: 687b ldr r3, [r7, #4]
  13977. 80058e4: 4413 add r3, r2
  13978. 80058e6: 4a03 ldr r2, [pc, #12] ; (80058f4 <_sbrk+0x50>)
  13979. 80058e8: 6013 str r3, [r2, #0]
  13980. return (caddr_t) prev_heap_end;
  13981. 80058ea: 68fb ldr r3, [r7, #12]
  13982. }
  13983. 80058ec: 4618 mov r0, r3
  13984. 80058ee: 3710 adds r7, #16
  13985. 80058f0: 46bd mov sp, r7
  13986. 80058f2: bd80 pop {r7, pc}
  13987. 80058f4: 200003f0 .word 0x200003f0
  13988. 80058f8: 200008e8 .word 0x200008e8
  13989. 080058fc <SystemInit>:
  13990. * @note This function should be used only after reset.
  13991. * @param None
  13992. * @retval None
  13993. */
  13994. void SystemInit (void)
  13995. {
  13996. 80058fc: b480 push {r7}
  13997. 80058fe: af00 add r7, sp, #0
  13998. /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
  13999. /* Set HSION bit */
  14000. RCC->CR |= 0x00000001U;
  14001. 8005900: 4b17 ldr r3, [pc, #92] ; (8005960 <SystemInit+0x64>)
  14002. 8005902: 681b ldr r3, [r3, #0]
  14003. 8005904: 4a16 ldr r2, [pc, #88] ; (8005960 <SystemInit+0x64>)
  14004. 8005906: f043 0301 orr.w r3, r3, #1
  14005. 800590a: 6013 str r3, [r2, #0]
  14006. /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
  14007. #if !defined(STM32F105xC) && !defined(STM32F107xC)
  14008. RCC->CFGR &= 0xF8FF0000U;
  14009. 800590c: 4b14 ldr r3, [pc, #80] ; (8005960 <SystemInit+0x64>)
  14010. 800590e: 685a ldr r2, [r3, #4]
  14011. 8005910: 4913 ldr r1, [pc, #76] ; (8005960 <SystemInit+0x64>)
  14012. 8005912: 4b14 ldr r3, [pc, #80] ; (8005964 <SystemInit+0x68>)
  14013. 8005914: 4013 ands r3, r2
  14014. 8005916: 604b str r3, [r1, #4]
  14015. #else
  14016. RCC->CFGR &= 0xF0FF0000U;
  14017. #endif /* STM32F105xC */
  14018. /* Reset HSEON, CSSON and PLLON bits */
  14019. RCC->CR &= 0xFEF6FFFFU;
  14020. 8005918: 4b11 ldr r3, [pc, #68] ; (8005960 <SystemInit+0x64>)
  14021. 800591a: 681b ldr r3, [r3, #0]
  14022. 800591c: 4a10 ldr r2, [pc, #64] ; (8005960 <SystemInit+0x64>)
  14023. 800591e: f023 7384 bic.w r3, r3, #17301504 ; 0x1080000
  14024. 8005922: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  14025. 8005926: 6013 str r3, [r2, #0]
  14026. /* Reset HSEBYP bit */
  14027. RCC->CR &= 0xFFFBFFFFU;
  14028. 8005928: 4b0d ldr r3, [pc, #52] ; (8005960 <SystemInit+0x64>)
  14029. 800592a: 681b ldr r3, [r3, #0]
  14030. 800592c: 4a0c ldr r2, [pc, #48] ; (8005960 <SystemInit+0x64>)
  14031. 800592e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  14032. 8005932: 6013 str r3, [r2, #0]
  14033. /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */
  14034. RCC->CFGR &= 0xFF80FFFFU;
  14035. 8005934: 4b0a ldr r3, [pc, #40] ; (8005960 <SystemInit+0x64>)
  14036. 8005936: 685b ldr r3, [r3, #4]
  14037. 8005938: 4a09 ldr r2, [pc, #36] ; (8005960 <SystemInit+0x64>)
  14038. 800593a: f423 03fe bic.w r3, r3, #8323072 ; 0x7f0000
  14039. 800593e: 6053 str r3, [r2, #4]
  14040. /* Reset CFGR2 register */
  14041. RCC->CFGR2 = 0x00000000U;
  14042. #elif defined(STM32F100xB) || defined(STM32F100xE)
  14043. /* Disable all interrupts and clear pending bits */
  14044. RCC->CIR = 0x009F0000U;
  14045. 8005940: 4b07 ldr r3, [pc, #28] ; (8005960 <SystemInit+0x64>)
  14046. 8005942: f44f 021f mov.w r2, #10420224 ; 0x9f0000
  14047. 8005946: 609a str r2, [r3, #8]
  14048. /* Reset CFGR2 register */
  14049. RCC->CFGR2 = 0x00000000U;
  14050. 8005948: 4b05 ldr r3, [pc, #20] ; (8005960 <SystemInit+0x64>)
  14051. 800594a: 2200 movs r2, #0
  14052. 800594c: 62da str r2, [r3, #44] ; 0x2c
  14053. #endif
  14054. #ifdef VECT_TAB_SRAM
  14055. SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  14056. #else
  14057. SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
  14058. 800594e: 4b06 ldr r3, [pc, #24] ; (8005968 <SystemInit+0x6c>)
  14059. 8005950: f04f 6200 mov.w r2, #134217728 ; 0x8000000
  14060. 8005954: 609a str r2, [r3, #8]
  14061. #endif
  14062. }
  14063. 8005956: bf00 nop
  14064. 8005958: 46bd mov sp, r7
  14065. 800595a: bc80 pop {r7}
  14066. 800595c: 4770 bx lr
  14067. 800595e: bf00 nop
  14068. 8005960: 40021000 .word 0x40021000
  14069. 8005964: f8ff0000 .word 0xf8ff0000
  14070. 8005968: e000ed00 .word 0xe000ed00
  14071. 0800596c <Reset_Handler>:
  14072. .weak Reset_Handler
  14073. .type Reset_Handler, %function
  14074. Reset_Handler:
  14075. /* Copy the data segment initializers from flash to SRAM */
  14076. movs r1, #0
  14077. 800596c: 2100 movs r1, #0
  14078. b LoopCopyDataInit
  14079. 800596e: e003 b.n 8005978 <LoopCopyDataInit>
  14080. 08005970 <CopyDataInit>:
  14081. CopyDataInit:
  14082. ldr r3, =_sidata
  14083. 8005970: 4b0b ldr r3, [pc, #44] ; (80059a0 <LoopFillZerobss+0x14>)
  14084. ldr r3, [r3, r1]
  14085. 8005972: 585b ldr r3, [r3, r1]
  14086. str r3, [r0, r1]
  14087. 8005974: 5043 str r3, [r0, r1]
  14088. adds r1, r1, #4
  14089. 8005976: 3104 adds r1, #4
  14090. 08005978 <LoopCopyDataInit>:
  14091. LoopCopyDataInit:
  14092. ldr r0, =_sdata
  14093. 8005978: 480a ldr r0, [pc, #40] ; (80059a4 <LoopFillZerobss+0x18>)
  14094. ldr r3, =_edata
  14095. 800597a: 4b0b ldr r3, [pc, #44] ; (80059a8 <LoopFillZerobss+0x1c>)
  14096. adds r2, r0, r1
  14097. 800597c: 1842 adds r2, r0, r1
  14098. cmp r2, r3
  14099. 800597e: 429a cmp r2, r3
  14100. bcc CopyDataInit
  14101. 8005980: d3f6 bcc.n 8005970 <CopyDataInit>
  14102. ldr r2, =_sbss
  14103. 8005982: 4a0a ldr r2, [pc, #40] ; (80059ac <LoopFillZerobss+0x20>)
  14104. b LoopFillZerobss
  14105. 8005984: e002 b.n 800598c <LoopFillZerobss>
  14106. 08005986 <FillZerobss>:
  14107. /* Zero fill the bss segment. */
  14108. FillZerobss:
  14109. movs r3, #0
  14110. 8005986: 2300 movs r3, #0
  14111. str r3, [r2], #4
  14112. 8005988: f842 3b04 str.w r3, [r2], #4
  14113. 0800598c <LoopFillZerobss>:
  14114. LoopFillZerobss:
  14115. ldr r3, = _ebss
  14116. 800598c: 4b08 ldr r3, [pc, #32] ; (80059b0 <LoopFillZerobss+0x24>)
  14117. cmp r2, r3
  14118. 800598e: 429a cmp r2, r3
  14119. bcc FillZerobss
  14120. 8005990: d3f9 bcc.n 8005986 <FillZerobss>
  14121. /* Call the clock system intitialization function.*/
  14122. bl SystemInit
  14123. 8005992: f7ff ffb3 bl 80058fc <SystemInit>
  14124. /* Call static constructors */
  14125. bl __libc_init_array
  14126. 8005996: f000 f815 bl 80059c4 <__libc_init_array>
  14127. /* Call the application's entry point.*/
  14128. bl main
  14129. 800599a: f7ff f9a3 bl 8004ce4 <main>
  14130. bx lr
  14131. 800599e: 4770 bx lr
  14132. ldr r3, =_sidata
  14133. 80059a0: 080088c0 .word 0x080088c0
  14134. ldr r0, =_sdata
  14135. 80059a4: 20000000 .word 0x20000000
  14136. ldr r3, =_edata
  14137. 80059a8: 200001dc .word 0x200001dc
  14138. ldr r2, =_sbss
  14139. 80059ac: 200001e0 .word 0x200001e0
  14140. ldr r3, = _ebss
  14141. 80059b0: 200008e8 .word 0x200008e8
  14142. 080059b4 <CEC_IRQHandler>:
  14143. * @retval : None
  14144. */
  14145. .section .text.Default_Handler,"ax",%progbits
  14146. Default_Handler:
  14147. Infinite_Loop:
  14148. b Infinite_Loop
  14149. 80059b4: e7fe b.n 80059b4 <CEC_IRQHandler>
  14150. ...
  14151. 080059b8 <__errno>:
  14152. 80059b8: 4b01 ldr r3, [pc, #4] ; (80059c0 <__errno+0x8>)
  14153. 80059ba: 6818 ldr r0, [r3, #0]
  14154. 80059bc: 4770 bx lr
  14155. 80059be: bf00 nop
  14156. 80059c0: 2000000c .word 0x2000000c
  14157. 080059c4 <__libc_init_array>:
  14158. 80059c4: b570 push {r4, r5, r6, lr}
  14159. 80059c6: 2500 movs r5, #0
  14160. 80059c8: 4e0c ldr r6, [pc, #48] ; (80059fc <__libc_init_array+0x38>)
  14161. 80059ca: 4c0d ldr r4, [pc, #52] ; (8005a00 <__libc_init_array+0x3c>)
  14162. 80059cc: 1ba4 subs r4, r4, r6
  14163. 80059ce: 10a4 asrs r4, r4, #2
  14164. 80059d0: 42a5 cmp r5, r4
  14165. 80059d2: d109 bne.n 80059e8 <__libc_init_array+0x24>
  14166. 80059d4: f002 fc62 bl 800829c <_init>
  14167. 80059d8: 2500 movs r5, #0
  14168. 80059da: 4e0a ldr r6, [pc, #40] ; (8005a04 <__libc_init_array+0x40>)
  14169. 80059dc: 4c0a ldr r4, [pc, #40] ; (8005a08 <__libc_init_array+0x44>)
  14170. 80059de: 1ba4 subs r4, r4, r6
  14171. 80059e0: 10a4 asrs r4, r4, #2
  14172. 80059e2: 42a5 cmp r5, r4
  14173. 80059e4: d105 bne.n 80059f2 <__libc_init_array+0x2e>
  14174. 80059e6: bd70 pop {r4, r5, r6, pc}
  14175. 80059e8: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  14176. 80059ec: 4798 blx r3
  14177. 80059ee: 3501 adds r5, #1
  14178. 80059f0: e7ee b.n 80059d0 <__libc_init_array+0xc>
  14179. 80059f2: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  14180. 80059f6: 4798 blx r3
  14181. 80059f8: 3501 adds r5, #1
  14182. 80059fa: e7f2 b.n 80059e2 <__libc_init_array+0x1e>
  14183. 80059fc: 080088b8 .word 0x080088b8
  14184. 8005a00: 080088b8 .word 0x080088b8
  14185. 8005a04: 080088b8 .word 0x080088b8
  14186. 8005a08: 080088bc .word 0x080088bc
  14187. 08005a0c <memset>:
  14188. 8005a0c: 4603 mov r3, r0
  14189. 8005a0e: 4402 add r2, r0
  14190. 8005a10: 4293 cmp r3, r2
  14191. 8005a12: d100 bne.n 8005a16 <memset+0xa>
  14192. 8005a14: 4770 bx lr
  14193. 8005a16: f803 1b01 strb.w r1, [r3], #1
  14194. 8005a1a: e7f9 b.n 8005a10 <memset+0x4>
  14195. 08005a1c <__cvt>:
  14196. 8005a1c: 2b00 cmp r3, #0
  14197. 8005a1e: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  14198. 8005a22: 461e mov r6, r3
  14199. 8005a24: bfbb ittet lt
  14200. 8005a26: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
  14201. 8005a2a: 461e movlt r6, r3
  14202. 8005a2c: 2300 movge r3, #0
  14203. 8005a2e: 232d movlt r3, #45 ; 0x2d
  14204. 8005a30: b088 sub sp, #32
  14205. 8005a32: 9f14 ldr r7, [sp, #80] ; 0x50
  14206. 8005a34: e9dd 1a12 ldrd r1, sl, [sp, #72] ; 0x48
  14207. 8005a38: f027 0720 bic.w r7, r7, #32
  14208. 8005a3c: 2f46 cmp r7, #70 ; 0x46
  14209. 8005a3e: 4614 mov r4, r2
  14210. 8005a40: 9d10 ldr r5, [sp, #64] ; 0x40
  14211. 8005a42: 700b strb r3, [r1, #0]
  14212. 8005a44: d004 beq.n 8005a50 <__cvt+0x34>
  14213. 8005a46: 2f45 cmp r7, #69 ; 0x45
  14214. 8005a48: d100 bne.n 8005a4c <__cvt+0x30>
  14215. 8005a4a: 3501 adds r5, #1
  14216. 8005a4c: 2302 movs r3, #2
  14217. 8005a4e: e000 b.n 8005a52 <__cvt+0x36>
  14218. 8005a50: 2303 movs r3, #3
  14219. 8005a52: aa07 add r2, sp, #28
  14220. 8005a54: 9204 str r2, [sp, #16]
  14221. 8005a56: aa06 add r2, sp, #24
  14222. 8005a58: e9cd a202 strd sl, r2, [sp, #8]
  14223. 8005a5c: e9cd 3500 strd r3, r5, [sp]
  14224. 8005a60: 4622 mov r2, r4
  14225. 8005a62: 4633 mov r3, r6
  14226. 8005a64: f000 feac bl 80067c0 <_dtoa_r>
  14227. 8005a68: 2f47 cmp r7, #71 ; 0x47
  14228. 8005a6a: 4680 mov r8, r0
  14229. 8005a6c: d102 bne.n 8005a74 <__cvt+0x58>
  14230. 8005a6e: 9b11 ldr r3, [sp, #68] ; 0x44
  14231. 8005a70: 07db lsls r3, r3, #31
  14232. 8005a72: d526 bpl.n 8005ac2 <__cvt+0xa6>
  14233. 8005a74: 2f46 cmp r7, #70 ; 0x46
  14234. 8005a76: eb08 0905 add.w r9, r8, r5
  14235. 8005a7a: d111 bne.n 8005aa0 <__cvt+0x84>
  14236. 8005a7c: f898 3000 ldrb.w r3, [r8]
  14237. 8005a80: 2b30 cmp r3, #48 ; 0x30
  14238. 8005a82: d10a bne.n 8005a9a <__cvt+0x7e>
  14239. 8005a84: 2200 movs r2, #0
  14240. 8005a86: 2300 movs r3, #0
  14241. 8005a88: 4620 mov r0, r4
  14242. 8005a8a: 4631 mov r1, r6
  14243. 8005a8c: f7fa ffec bl 8000a68 <__aeabi_dcmpeq>
  14244. 8005a90: b918 cbnz r0, 8005a9a <__cvt+0x7e>
  14245. 8005a92: f1c5 0501 rsb r5, r5, #1
  14246. 8005a96: f8ca 5000 str.w r5, [sl]
  14247. 8005a9a: f8da 3000 ldr.w r3, [sl]
  14248. 8005a9e: 4499 add r9, r3
  14249. 8005aa0: 2200 movs r2, #0
  14250. 8005aa2: 2300 movs r3, #0
  14251. 8005aa4: 4620 mov r0, r4
  14252. 8005aa6: 4631 mov r1, r6
  14253. 8005aa8: f7fa ffde bl 8000a68 <__aeabi_dcmpeq>
  14254. 8005aac: b938 cbnz r0, 8005abe <__cvt+0xa2>
  14255. 8005aae: 2230 movs r2, #48 ; 0x30
  14256. 8005ab0: 9b07 ldr r3, [sp, #28]
  14257. 8005ab2: 454b cmp r3, r9
  14258. 8005ab4: d205 bcs.n 8005ac2 <__cvt+0xa6>
  14259. 8005ab6: 1c59 adds r1, r3, #1
  14260. 8005ab8: 9107 str r1, [sp, #28]
  14261. 8005aba: 701a strb r2, [r3, #0]
  14262. 8005abc: e7f8 b.n 8005ab0 <__cvt+0x94>
  14263. 8005abe: f8cd 901c str.w r9, [sp, #28]
  14264. 8005ac2: 4640 mov r0, r8
  14265. 8005ac4: 9b07 ldr r3, [sp, #28]
  14266. 8005ac6: 9a15 ldr r2, [sp, #84] ; 0x54
  14267. 8005ac8: eba3 0308 sub.w r3, r3, r8
  14268. 8005acc: 6013 str r3, [r2, #0]
  14269. 8005ace: b008 add sp, #32
  14270. 8005ad0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  14271. 08005ad4 <__exponent>:
  14272. 8005ad4: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  14273. 8005ad6: 2900 cmp r1, #0
  14274. 8005ad8: bfb4 ite lt
  14275. 8005ada: 232d movlt r3, #45 ; 0x2d
  14276. 8005adc: 232b movge r3, #43 ; 0x2b
  14277. 8005ade: 4604 mov r4, r0
  14278. 8005ae0: bfb8 it lt
  14279. 8005ae2: 4249 neglt r1, r1
  14280. 8005ae4: 2909 cmp r1, #9
  14281. 8005ae6: f804 2b02 strb.w r2, [r4], #2
  14282. 8005aea: 7043 strb r3, [r0, #1]
  14283. 8005aec: dd21 ble.n 8005b32 <__exponent+0x5e>
  14284. 8005aee: f10d 0307 add.w r3, sp, #7
  14285. 8005af2: 461f mov r7, r3
  14286. 8005af4: 260a movs r6, #10
  14287. 8005af6: fb91 f5f6 sdiv r5, r1, r6
  14288. 8005afa: fb06 1115 mls r1, r6, r5, r1
  14289. 8005afe: 2d09 cmp r5, #9
  14290. 8005b00: f101 0130 add.w r1, r1, #48 ; 0x30
  14291. 8005b04: f803 1c01 strb.w r1, [r3, #-1]
  14292. 8005b08: f103 32ff add.w r2, r3, #4294967295
  14293. 8005b0c: 4629 mov r1, r5
  14294. 8005b0e: dc09 bgt.n 8005b24 <__exponent+0x50>
  14295. 8005b10: 3130 adds r1, #48 ; 0x30
  14296. 8005b12: 3b02 subs r3, #2
  14297. 8005b14: f802 1c01 strb.w r1, [r2, #-1]
  14298. 8005b18: 42bb cmp r3, r7
  14299. 8005b1a: 4622 mov r2, r4
  14300. 8005b1c: d304 bcc.n 8005b28 <__exponent+0x54>
  14301. 8005b1e: 1a10 subs r0, r2, r0
  14302. 8005b20: b003 add sp, #12
  14303. 8005b22: bdf0 pop {r4, r5, r6, r7, pc}
  14304. 8005b24: 4613 mov r3, r2
  14305. 8005b26: e7e6 b.n 8005af6 <__exponent+0x22>
  14306. 8005b28: f813 2b01 ldrb.w r2, [r3], #1
  14307. 8005b2c: f804 2b01 strb.w r2, [r4], #1
  14308. 8005b30: e7f2 b.n 8005b18 <__exponent+0x44>
  14309. 8005b32: 2330 movs r3, #48 ; 0x30
  14310. 8005b34: 4419 add r1, r3
  14311. 8005b36: 7083 strb r3, [r0, #2]
  14312. 8005b38: 1d02 adds r2, r0, #4
  14313. 8005b3a: 70c1 strb r1, [r0, #3]
  14314. 8005b3c: e7ef b.n 8005b1e <__exponent+0x4a>
  14315. ...
  14316. 08005b40 <_printf_float>:
  14317. 8005b40: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  14318. 8005b44: b091 sub sp, #68 ; 0x44
  14319. 8005b46: 460c mov r4, r1
  14320. 8005b48: 9f1a ldr r7, [sp, #104] ; 0x68
  14321. 8005b4a: 4693 mov fp, r2
  14322. 8005b4c: 461e mov r6, r3
  14323. 8005b4e: 4605 mov r5, r0
  14324. 8005b50: f001 fd64 bl 800761c <_localeconv_r>
  14325. 8005b54: 6803 ldr r3, [r0, #0]
  14326. 8005b56: 4618 mov r0, r3
  14327. 8005b58: 9309 str r3, [sp, #36] ; 0x24
  14328. 8005b5a: f7fa fb59 bl 8000210 <strlen>
  14329. 8005b5e: 2300 movs r3, #0
  14330. 8005b60: 930e str r3, [sp, #56] ; 0x38
  14331. 8005b62: 683b ldr r3, [r7, #0]
  14332. 8005b64: 900a str r0, [sp, #40] ; 0x28
  14333. 8005b66: 3307 adds r3, #7
  14334. 8005b68: f023 0307 bic.w r3, r3, #7
  14335. 8005b6c: f103 0208 add.w r2, r3, #8
  14336. 8005b70: f894 8018 ldrb.w r8, [r4, #24]
  14337. 8005b74: f8d4 a000 ldr.w sl, [r4]
  14338. 8005b78: 603a str r2, [r7, #0]
  14339. 8005b7a: e9d3 2300 ldrd r2, r3, [r3]
  14340. 8005b7e: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
  14341. 8005b82: e9d4 7912 ldrd r7, r9, [r4, #72] ; 0x48
  14342. 8005b86: f029 4300 bic.w r3, r9, #2147483648 ; 0x80000000
  14343. 8005b8a: 930b str r3, [sp, #44] ; 0x2c
  14344. 8005b8c: f04f 32ff mov.w r2, #4294967295
  14345. 8005b90: 4ba6 ldr r3, [pc, #664] ; (8005e2c <_printf_float+0x2ec>)
  14346. 8005b92: 4638 mov r0, r7
  14347. 8005b94: 990b ldr r1, [sp, #44] ; 0x2c
  14348. 8005b96: f7fa ff99 bl 8000acc <__aeabi_dcmpun>
  14349. 8005b9a: bb68 cbnz r0, 8005bf8 <_printf_float+0xb8>
  14350. 8005b9c: f04f 32ff mov.w r2, #4294967295
  14351. 8005ba0: 4ba2 ldr r3, [pc, #648] ; (8005e2c <_printf_float+0x2ec>)
  14352. 8005ba2: 4638 mov r0, r7
  14353. 8005ba4: 990b ldr r1, [sp, #44] ; 0x2c
  14354. 8005ba6: f7fa ff73 bl 8000a90 <__aeabi_dcmple>
  14355. 8005baa: bb28 cbnz r0, 8005bf8 <_printf_float+0xb8>
  14356. 8005bac: 2200 movs r2, #0
  14357. 8005bae: 2300 movs r3, #0
  14358. 8005bb0: 4638 mov r0, r7
  14359. 8005bb2: 4649 mov r1, r9
  14360. 8005bb4: f7fa ff62 bl 8000a7c <__aeabi_dcmplt>
  14361. 8005bb8: b110 cbz r0, 8005bc0 <_printf_float+0x80>
  14362. 8005bba: 232d movs r3, #45 ; 0x2d
  14363. 8005bbc: f884 3043 strb.w r3, [r4, #67] ; 0x43
  14364. 8005bc0: 4f9b ldr r7, [pc, #620] ; (8005e30 <_printf_float+0x2f0>)
  14365. 8005bc2: 4b9c ldr r3, [pc, #624] ; (8005e34 <_printf_float+0x2f4>)
  14366. 8005bc4: f1b8 0f47 cmp.w r8, #71 ; 0x47
  14367. 8005bc8: bf98 it ls
  14368. 8005bca: 461f movls r7, r3
  14369. 8005bcc: 2303 movs r3, #3
  14370. 8005bce: f04f 0900 mov.w r9, #0
  14371. 8005bd2: 6123 str r3, [r4, #16]
  14372. 8005bd4: f02a 0304 bic.w r3, sl, #4
  14373. 8005bd8: 6023 str r3, [r4, #0]
  14374. 8005bda: 9600 str r6, [sp, #0]
  14375. 8005bdc: 465b mov r3, fp
  14376. 8005bde: aa0f add r2, sp, #60 ; 0x3c
  14377. 8005be0: 4621 mov r1, r4
  14378. 8005be2: 4628 mov r0, r5
  14379. 8005be4: f000 f9e2 bl 8005fac <_printf_common>
  14380. 8005be8: 3001 adds r0, #1
  14381. 8005bea: f040 8090 bne.w 8005d0e <_printf_float+0x1ce>
  14382. 8005bee: f04f 30ff mov.w r0, #4294967295
  14383. 8005bf2: b011 add sp, #68 ; 0x44
  14384. 8005bf4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  14385. 8005bf8: 463a mov r2, r7
  14386. 8005bfa: 464b mov r3, r9
  14387. 8005bfc: 4638 mov r0, r7
  14388. 8005bfe: 4649 mov r1, r9
  14389. 8005c00: f7fa ff64 bl 8000acc <__aeabi_dcmpun>
  14390. 8005c04: b110 cbz r0, 8005c0c <_printf_float+0xcc>
  14391. 8005c06: 4f8c ldr r7, [pc, #560] ; (8005e38 <_printf_float+0x2f8>)
  14392. 8005c08: 4b8c ldr r3, [pc, #560] ; (8005e3c <_printf_float+0x2fc>)
  14393. 8005c0a: e7db b.n 8005bc4 <_printf_float+0x84>
  14394. 8005c0c: 6863 ldr r3, [r4, #4]
  14395. 8005c0e: f44a 6280 orr.w r2, sl, #1024 ; 0x400
  14396. 8005c12: 1c59 adds r1, r3, #1
  14397. 8005c14: a80d add r0, sp, #52 ; 0x34
  14398. 8005c16: a90e add r1, sp, #56 ; 0x38
  14399. 8005c18: d140 bne.n 8005c9c <_printf_float+0x15c>
  14400. 8005c1a: 2306 movs r3, #6
  14401. 8005c1c: 6063 str r3, [r4, #4]
  14402. 8005c1e: f04f 0c00 mov.w ip, #0
  14403. 8005c22: f10d 0333 add.w r3, sp, #51 ; 0x33
  14404. 8005c26: e9cd 2301 strd r2, r3, [sp, #4]
  14405. 8005c2a: 6863 ldr r3, [r4, #4]
  14406. 8005c2c: 6022 str r2, [r4, #0]
  14407. 8005c2e: e9cd 0803 strd r0, r8, [sp, #12]
  14408. 8005c32: 9300 str r3, [sp, #0]
  14409. 8005c34: 463a mov r2, r7
  14410. 8005c36: 464b mov r3, r9
  14411. 8005c38: e9cd 1c05 strd r1, ip, [sp, #20]
  14412. 8005c3c: 4628 mov r0, r5
  14413. 8005c3e: f7ff feed bl 8005a1c <__cvt>
  14414. 8005c42: f008 03df and.w r3, r8, #223 ; 0xdf
  14415. 8005c46: 2b47 cmp r3, #71 ; 0x47
  14416. 8005c48: 4607 mov r7, r0
  14417. 8005c4a: d109 bne.n 8005c60 <_printf_float+0x120>
  14418. 8005c4c: 9b0d ldr r3, [sp, #52] ; 0x34
  14419. 8005c4e: 1cd8 adds r0, r3, #3
  14420. 8005c50: db02 blt.n 8005c58 <_printf_float+0x118>
  14421. 8005c52: 6862 ldr r2, [r4, #4]
  14422. 8005c54: 4293 cmp r3, r2
  14423. 8005c56: dd47 ble.n 8005ce8 <_printf_float+0x1a8>
  14424. 8005c58: f1a8 0802 sub.w r8, r8, #2
  14425. 8005c5c: fa5f f888 uxtb.w r8, r8
  14426. 8005c60: f1b8 0f65 cmp.w r8, #101 ; 0x65
  14427. 8005c64: 990d ldr r1, [sp, #52] ; 0x34
  14428. 8005c66: d824 bhi.n 8005cb2 <_printf_float+0x172>
  14429. 8005c68: 3901 subs r1, #1
  14430. 8005c6a: 4642 mov r2, r8
  14431. 8005c6c: f104 0050 add.w r0, r4, #80 ; 0x50
  14432. 8005c70: 910d str r1, [sp, #52] ; 0x34
  14433. 8005c72: f7ff ff2f bl 8005ad4 <__exponent>
  14434. 8005c76: 9a0e ldr r2, [sp, #56] ; 0x38
  14435. 8005c78: 4681 mov r9, r0
  14436. 8005c7a: 1813 adds r3, r2, r0
  14437. 8005c7c: 2a01 cmp r2, #1
  14438. 8005c7e: 6123 str r3, [r4, #16]
  14439. 8005c80: dc02 bgt.n 8005c88 <_printf_float+0x148>
  14440. 8005c82: 6822 ldr r2, [r4, #0]
  14441. 8005c84: 07d1 lsls r1, r2, #31
  14442. 8005c86: d501 bpl.n 8005c8c <_printf_float+0x14c>
  14443. 8005c88: 3301 adds r3, #1
  14444. 8005c8a: 6123 str r3, [r4, #16]
  14445. 8005c8c: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
  14446. 8005c90: 2b00 cmp r3, #0
  14447. 8005c92: d0a2 beq.n 8005bda <_printf_float+0x9a>
  14448. 8005c94: 232d movs r3, #45 ; 0x2d
  14449. 8005c96: f884 3043 strb.w r3, [r4, #67] ; 0x43
  14450. 8005c9a: e79e b.n 8005bda <_printf_float+0x9a>
  14451. 8005c9c: f1b8 0f67 cmp.w r8, #103 ; 0x67
  14452. 8005ca0: f000 816e beq.w 8005f80 <_printf_float+0x440>
  14453. 8005ca4: f1b8 0f47 cmp.w r8, #71 ; 0x47
  14454. 8005ca8: d1b9 bne.n 8005c1e <_printf_float+0xde>
  14455. 8005caa: 2b00 cmp r3, #0
  14456. 8005cac: d1b7 bne.n 8005c1e <_printf_float+0xde>
  14457. 8005cae: 2301 movs r3, #1
  14458. 8005cb0: e7b4 b.n 8005c1c <_printf_float+0xdc>
  14459. 8005cb2: f1b8 0f66 cmp.w r8, #102 ; 0x66
  14460. 8005cb6: d119 bne.n 8005cec <_printf_float+0x1ac>
  14461. 8005cb8: 2900 cmp r1, #0
  14462. 8005cba: 6863 ldr r3, [r4, #4]
  14463. 8005cbc: dd0c ble.n 8005cd8 <_printf_float+0x198>
  14464. 8005cbe: 6121 str r1, [r4, #16]
  14465. 8005cc0: b913 cbnz r3, 8005cc8 <_printf_float+0x188>
  14466. 8005cc2: 6822 ldr r2, [r4, #0]
  14467. 8005cc4: 07d2 lsls r2, r2, #31
  14468. 8005cc6: d502 bpl.n 8005cce <_printf_float+0x18e>
  14469. 8005cc8: 3301 adds r3, #1
  14470. 8005cca: 440b add r3, r1
  14471. 8005ccc: 6123 str r3, [r4, #16]
  14472. 8005cce: 9b0d ldr r3, [sp, #52] ; 0x34
  14473. 8005cd0: f04f 0900 mov.w r9, #0
  14474. 8005cd4: 65a3 str r3, [r4, #88] ; 0x58
  14475. 8005cd6: e7d9 b.n 8005c8c <_printf_float+0x14c>
  14476. 8005cd8: b913 cbnz r3, 8005ce0 <_printf_float+0x1a0>
  14477. 8005cda: 6822 ldr r2, [r4, #0]
  14478. 8005cdc: 07d0 lsls r0, r2, #31
  14479. 8005cde: d501 bpl.n 8005ce4 <_printf_float+0x1a4>
  14480. 8005ce0: 3302 adds r3, #2
  14481. 8005ce2: e7f3 b.n 8005ccc <_printf_float+0x18c>
  14482. 8005ce4: 2301 movs r3, #1
  14483. 8005ce6: e7f1 b.n 8005ccc <_printf_float+0x18c>
  14484. 8005ce8: f04f 0867 mov.w r8, #103 ; 0x67
  14485. 8005cec: e9dd 320d ldrd r3, r2, [sp, #52] ; 0x34
  14486. 8005cf0: 4293 cmp r3, r2
  14487. 8005cf2: db05 blt.n 8005d00 <_printf_float+0x1c0>
  14488. 8005cf4: 6822 ldr r2, [r4, #0]
  14489. 8005cf6: 6123 str r3, [r4, #16]
  14490. 8005cf8: 07d1 lsls r1, r2, #31
  14491. 8005cfa: d5e8 bpl.n 8005cce <_printf_float+0x18e>
  14492. 8005cfc: 3301 adds r3, #1
  14493. 8005cfe: e7e5 b.n 8005ccc <_printf_float+0x18c>
  14494. 8005d00: 2b00 cmp r3, #0
  14495. 8005d02: bfcc ite gt
  14496. 8005d04: 2301 movgt r3, #1
  14497. 8005d06: f1c3 0302 rsble r3, r3, #2
  14498. 8005d0a: 4413 add r3, r2
  14499. 8005d0c: e7de b.n 8005ccc <_printf_float+0x18c>
  14500. 8005d0e: 6823 ldr r3, [r4, #0]
  14501. 8005d10: 055a lsls r2, r3, #21
  14502. 8005d12: d407 bmi.n 8005d24 <_printf_float+0x1e4>
  14503. 8005d14: 6923 ldr r3, [r4, #16]
  14504. 8005d16: 463a mov r2, r7
  14505. 8005d18: 4659 mov r1, fp
  14506. 8005d1a: 4628 mov r0, r5
  14507. 8005d1c: 47b0 blx r6
  14508. 8005d1e: 3001 adds r0, #1
  14509. 8005d20: d129 bne.n 8005d76 <_printf_float+0x236>
  14510. 8005d22: e764 b.n 8005bee <_printf_float+0xae>
  14511. 8005d24: f1b8 0f65 cmp.w r8, #101 ; 0x65
  14512. 8005d28: f240 80d7 bls.w 8005eda <_printf_float+0x39a>
  14513. 8005d2c: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  14514. 8005d30: 2200 movs r2, #0
  14515. 8005d32: 2300 movs r3, #0
  14516. 8005d34: f7fa fe98 bl 8000a68 <__aeabi_dcmpeq>
  14517. 8005d38: b388 cbz r0, 8005d9e <_printf_float+0x25e>
  14518. 8005d3a: 2301 movs r3, #1
  14519. 8005d3c: 4a40 ldr r2, [pc, #256] ; (8005e40 <_printf_float+0x300>)
  14520. 8005d3e: 4659 mov r1, fp
  14521. 8005d40: 4628 mov r0, r5
  14522. 8005d42: 47b0 blx r6
  14523. 8005d44: 3001 adds r0, #1
  14524. 8005d46: f43f af52 beq.w 8005bee <_printf_float+0xae>
  14525. 8005d4a: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  14526. 8005d4e: 429a cmp r2, r3
  14527. 8005d50: db02 blt.n 8005d58 <_printf_float+0x218>
  14528. 8005d52: 6823 ldr r3, [r4, #0]
  14529. 8005d54: 07d8 lsls r0, r3, #31
  14530. 8005d56: d50e bpl.n 8005d76 <_printf_float+0x236>
  14531. 8005d58: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  14532. 8005d5c: 4659 mov r1, fp
  14533. 8005d5e: 4628 mov r0, r5
  14534. 8005d60: 47b0 blx r6
  14535. 8005d62: 3001 adds r0, #1
  14536. 8005d64: f43f af43 beq.w 8005bee <_printf_float+0xae>
  14537. 8005d68: 2700 movs r7, #0
  14538. 8005d6a: f104 081a add.w r8, r4, #26
  14539. 8005d6e: 9b0e ldr r3, [sp, #56] ; 0x38
  14540. 8005d70: 3b01 subs r3, #1
  14541. 8005d72: 42bb cmp r3, r7
  14542. 8005d74: dc09 bgt.n 8005d8a <_printf_float+0x24a>
  14543. 8005d76: 6823 ldr r3, [r4, #0]
  14544. 8005d78: 079f lsls r7, r3, #30
  14545. 8005d7a: f100 80fd bmi.w 8005f78 <_printf_float+0x438>
  14546. 8005d7e: 68e0 ldr r0, [r4, #12]
  14547. 8005d80: 9b0f ldr r3, [sp, #60] ; 0x3c
  14548. 8005d82: 4298 cmp r0, r3
  14549. 8005d84: bfb8 it lt
  14550. 8005d86: 4618 movlt r0, r3
  14551. 8005d88: e733 b.n 8005bf2 <_printf_float+0xb2>
  14552. 8005d8a: 2301 movs r3, #1
  14553. 8005d8c: 4642 mov r2, r8
  14554. 8005d8e: 4659 mov r1, fp
  14555. 8005d90: 4628 mov r0, r5
  14556. 8005d92: 47b0 blx r6
  14557. 8005d94: 3001 adds r0, #1
  14558. 8005d96: f43f af2a beq.w 8005bee <_printf_float+0xae>
  14559. 8005d9a: 3701 adds r7, #1
  14560. 8005d9c: e7e7 b.n 8005d6e <_printf_float+0x22e>
  14561. 8005d9e: 9b0d ldr r3, [sp, #52] ; 0x34
  14562. 8005da0: 2b00 cmp r3, #0
  14563. 8005da2: dc2b bgt.n 8005dfc <_printf_float+0x2bc>
  14564. 8005da4: 2301 movs r3, #1
  14565. 8005da6: 4a26 ldr r2, [pc, #152] ; (8005e40 <_printf_float+0x300>)
  14566. 8005da8: 4659 mov r1, fp
  14567. 8005daa: 4628 mov r0, r5
  14568. 8005dac: 47b0 blx r6
  14569. 8005dae: 3001 adds r0, #1
  14570. 8005db0: f43f af1d beq.w 8005bee <_printf_float+0xae>
  14571. 8005db4: 9b0d ldr r3, [sp, #52] ; 0x34
  14572. 8005db6: b923 cbnz r3, 8005dc2 <_printf_float+0x282>
  14573. 8005db8: 9b0e ldr r3, [sp, #56] ; 0x38
  14574. 8005dba: b913 cbnz r3, 8005dc2 <_printf_float+0x282>
  14575. 8005dbc: 6823 ldr r3, [r4, #0]
  14576. 8005dbe: 07d9 lsls r1, r3, #31
  14577. 8005dc0: d5d9 bpl.n 8005d76 <_printf_float+0x236>
  14578. 8005dc2: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  14579. 8005dc6: 4659 mov r1, fp
  14580. 8005dc8: 4628 mov r0, r5
  14581. 8005dca: 47b0 blx r6
  14582. 8005dcc: 3001 adds r0, #1
  14583. 8005dce: f43f af0e beq.w 8005bee <_printf_float+0xae>
  14584. 8005dd2: f04f 0800 mov.w r8, #0
  14585. 8005dd6: f104 091a add.w r9, r4, #26
  14586. 8005dda: 9b0d ldr r3, [sp, #52] ; 0x34
  14587. 8005ddc: 425b negs r3, r3
  14588. 8005dde: 4543 cmp r3, r8
  14589. 8005de0: dc01 bgt.n 8005de6 <_printf_float+0x2a6>
  14590. 8005de2: 9b0e ldr r3, [sp, #56] ; 0x38
  14591. 8005de4: e797 b.n 8005d16 <_printf_float+0x1d6>
  14592. 8005de6: 2301 movs r3, #1
  14593. 8005de8: 464a mov r2, r9
  14594. 8005dea: 4659 mov r1, fp
  14595. 8005dec: 4628 mov r0, r5
  14596. 8005dee: 47b0 blx r6
  14597. 8005df0: 3001 adds r0, #1
  14598. 8005df2: f43f aefc beq.w 8005bee <_printf_float+0xae>
  14599. 8005df6: f108 0801 add.w r8, r8, #1
  14600. 8005dfa: e7ee b.n 8005dda <_printf_float+0x29a>
  14601. 8005dfc: 9a0e ldr r2, [sp, #56] ; 0x38
  14602. 8005dfe: 6da3 ldr r3, [r4, #88] ; 0x58
  14603. 8005e00: 429a cmp r2, r3
  14604. 8005e02: bfa8 it ge
  14605. 8005e04: 461a movge r2, r3
  14606. 8005e06: 2a00 cmp r2, #0
  14607. 8005e08: 4690 mov r8, r2
  14608. 8005e0a: dd07 ble.n 8005e1c <_printf_float+0x2dc>
  14609. 8005e0c: 4613 mov r3, r2
  14610. 8005e0e: 4659 mov r1, fp
  14611. 8005e10: 463a mov r2, r7
  14612. 8005e12: 4628 mov r0, r5
  14613. 8005e14: 47b0 blx r6
  14614. 8005e16: 3001 adds r0, #1
  14615. 8005e18: f43f aee9 beq.w 8005bee <_printf_float+0xae>
  14616. 8005e1c: f104 031a add.w r3, r4, #26
  14617. 8005e20: f04f 0a00 mov.w sl, #0
  14618. 8005e24: ea28 78e8 bic.w r8, r8, r8, asr #31
  14619. 8005e28: 930b str r3, [sp, #44] ; 0x2c
  14620. 8005e2a: e015 b.n 8005e58 <_printf_float+0x318>
  14621. 8005e2c: 7fefffff .word 0x7fefffff
  14622. 8005e30: 08008600 .word 0x08008600
  14623. 8005e34: 080085fc .word 0x080085fc
  14624. 8005e38: 08008608 .word 0x08008608
  14625. 8005e3c: 08008604 .word 0x08008604
  14626. 8005e40: 0800860c .word 0x0800860c
  14627. 8005e44: 2301 movs r3, #1
  14628. 8005e46: 9a0b ldr r2, [sp, #44] ; 0x2c
  14629. 8005e48: 4659 mov r1, fp
  14630. 8005e4a: 4628 mov r0, r5
  14631. 8005e4c: 47b0 blx r6
  14632. 8005e4e: 3001 adds r0, #1
  14633. 8005e50: f43f aecd beq.w 8005bee <_printf_float+0xae>
  14634. 8005e54: f10a 0a01 add.w sl, sl, #1
  14635. 8005e58: f8d4 9058 ldr.w r9, [r4, #88] ; 0x58
  14636. 8005e5c: eba9 0308 sub.w r3, r9, r8
  14637. 8005e60: 4553 cmp r3, sl
  14638. 8005e62: dcef bgt.n 8005e44 <_printf_float+0x304>
  14639. 8005e64: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  14640. 8005e68: 429a cmp r2, r3
  14641. 8005e6a: 444f add r7, r9
  14642. 8005e6c: db14 blt.n 8005e98 <_printf_float+0x358>
  14643. 8005e6e: 6823 ldr r3, [r4, #0]
  14644. 8005e70: 07da lsls r2, r3, #31
  14645. 8005e72: d411 bmi.n 8005e98 <_printf_float+0x358>
  14646. 8005e74: 9b0e ldr r3, [sp, #56] ; 0x38
  14647. 8005e76: 990d ldr r1, [sp, #52] ; 0x34
  14648. 8005e78: eba3 0209 sub.w r2, r3, r9
  14649. 8005e7c: eba3 0901 sub.w r9, r3, r1
  14650. 8005e80: 4591 cmp r9, r2
  14651. 8005e82: bfa8 it ge
  14652. 8005e84: 4691 movge r9, r2
  14653. 8005e86: f1b9 0f00 cmp.w r9, #0
  14654. 8005e8a: dc0d bgt.n 8005ea8 <_printf_float+0x368>
  14655. 8005e8c: 2700 movs r7, #0
  14656. 8005e8e: ea29 79e9 bic.w r9, r9, r9, asr #31
  14657. 8005e92: f104 081a add.w r8, r4, #26
  14658. 8005e96: e018 b.n 8005eca <_printf_float+0x38a>
  14659. 8005e98: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  14660. 8005e9c: 4659 mov r1, fp
  14661. 8005e9e: 4628 mov r0, r5
  14662. 8005ea0: 47b0 blx r6
  14663. 8005ea2: 3001 adds r0, #1
  14664. 8005ea4: d1e6 bne.n 8005e74 <_printf_float+0x334>
  14665. 8005ea6: e6a2 b.n 8005bee <_printf_float+0xae>
  14666. 8005ea8: 464b mov r3, r9
  14667. 8005eaa: 463a mov r2, r7
  14668. 8005eac: 4659 mov r1, fp
  14669. 8005eae: 4628 mov r0, r5
  14670. 8005eb0: 47b0 blx r6
  14671. 8005eb2: 3001 adds r0, #1
  14672. 8005eb4: d1ea bne.n 8005e8c <_printf_float+0x34c>
  14673. 8005eb6: e69a b.n 8005bee <_printf_float+0xae>
  14674. 8005eb8: 2301 movs r3, #1
  14675. 8005eba: 4642 mov r2, r8
  14676. 8005ebc: 4659 mov r1, fp
  14677. 8005ebe: 4628 mov r0, r5
  14678. 8005ec0: 47b0 blx r6
  14679. 8005ec2: 3001 adds r0, #1
  14680. 8005ec4: f43f ae93 beq.w 8005bee <_printf_float+0xae>
  14681. 8005ec8: 3701 adds r7, #1
  14682. 8005eca: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  14683. 8005ece: 1a9b subs r3, r3, r2
  14684. 8005ed0: eba3 0309 sub.w r3, r3, r9
  14685. 8005ed4: 42bb cmp r3, r7
  14686. 8005ed6: dcef bgt.n 8005eb8 <_printf_float+0x378>
  14687. 8005ed8: e74d b.n 8005d76 <_printf_float+0x236>
  14688. 8005eda: 9a0e ldr r2, [sp, #56] ; 0x38
  14689. 8005edc: 2a01 cmp r2, #1
  14690. 8005ede: dc01 bgt.n 8005ee4 <_printf_float+0x3a4>
  14691. 8005ee0: 07db lsls r3, r3, #31
  14692. 8005ee2: d538 bpl.n 8005f56 <_printf_float+0x416>
  14693. 8005ee4: 2301 movs r3, #1
  14694. 8005ee6: 463a mov r2, r7
  14695. 8005ee8: 4659 mov r1, fp
  14696. 8005eea: 4628 mov r0, r5
  14697. 8005eec: 47b0 blx r6
  14698. 8005eee: 3001 adds r0, #1
  14699. 8005ef0: f43f ae7d beq.w 8005bee <_printf_float+0xae>
  14700. 8005ef4: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  14701. 8005ef8: 4659 mov r1, fp
  14702. 8005efa: 4628 mov r0, r5
  14703. 8005efc: 47b0 blx r6
  14704. 8005efe: 3001 adds r0, #1
  14705. 8005f00: f107 0701 add.w r7, r7, #1
  14706. 8005f04: f43f ae73 beq.w 8005bee <_printf_float+0xae>
  14707. 8005f08: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  14708. 8005f0c: 9b0e ldr r3, [sp, #56] ; 0x38
  14709. 8005f0e: 2200 movs r2, #0
  14710. 8005f10: f103 38ff add.w r8, r3, #4294967295
  14711. 8005f14: 2300 movs r3, #0
  14712. 8005f16: f7fa fda7 bl 8000a68 <__aeabi_dcmpeq>
  14713. 8005f1a: b9c0 cbnz r0, 8005f4e <_printf_float+0x40e>
  14714. 8005f1c: 4643 mov r3, r8
  14715. 8005f1e: 463a mov r2, r7
  14716. 8005f20: 4659 mov r1, fp
  14717. 8005f22: 4628 mov r0, r5
  14718. 8005f24: 47b0 blx r6
  14719. 8005f26: 3001 adds r0, #1
  14720. 8005f28: d10d bne.n 8005f46 <_printf_float+0x406>
  14721. 8005f2a: e660 b.n 8005bee <_printf_float+0xae>
  14722. 8005f2c: 2301 movs r3, #1
  14723. 8005f2e: 4642 mov r2, r8
  14724. 8005f30: 4659 mov r1, fp
  14725. 8005f32: 4628 mov r0, r5
  14726. 8005f34: 47b0 blx r6
  14727. 8005f36: 3001 adds r0, #1
  14728. 8005f38: f43f ae59 beq.w 8005bee <_printf_float+0xae>
  14729. 8005f3c: 3701 adds r7, #1
  14730. 8005f3e: 9b0e ldr r3, [sp, #56] ; 0x38
  14731. 8005f40: 3b01 subs r3, #1
  14732. 8005f42: 42bb cmp r3, r7
  14733. 8005f44: dcf2 bgt.n 8005f2c <_printf_float+0x3ec>
  14734. 8005f46: 464b mov r3, r9
  14735. 8005f48: f104 0250 add.w r2, r4, #80 ; 0x50
  14736. 8005f4c: e6e4 b.n 8005d18 <_printf_float+0x1d8>
  14737. 8005f4e: 2700 movs r7, #0
  14738. 8005f50: f104 081a add.w r8, r4, #26
  14739. 8005f54: e7f3 b.n 8005f3e <_printf_float+0x3fe>
  14740. 8005f56: 2301 movs r3, #1
  14741. 8005f58: e7e1 b.n 8005f1e <_printf_float+0x3de>
  14742. 8005f5a: 2301 movs r3, #1
  14743. 8005f5c: 4642 mov r2, r8
  14744. 8005f5e: 4659 mov r1, fp
  14745. 8005f60: 4628 mov r0, r5
  14746. 8005f62: 47b0 blx r6
  14747. 8005f64: 3001 adds r0, #1
  14748. 8005f66: f43f ae42 beq.w 8005bee <_printf_float+0xae>
  14749. 8005f6a: 3701 adds r7, #1
  14750. 8005f6c: 68e3 ldr r3, [r4, #12]
  14751. 8005f6e: 9a0f ldr r2, [sp, #60] ; 0x3c
  14752. 8005f70: 1a9b subs r3, r3, r2
  14753. 8005f72: 42bb cmp r3, r7
  14754. 8005f74: dcf1 bgt.n 8005f5a <_printf_float+0x41a>
  14755. 8005f76: e702 b.n 8005d7e <_printf_float+0x23e>
  14756. 8005f78: 2700 movs r7, #0
  14757. 8005f7a: f104 0819 add.w r8, r4, #25
  14758. 8005f7e: e7f5 b.n 8005f6c <_printf_float+0x42c>
  14759. 8005f80: 2b00 cmp r3, #0
  14760. 8005f82: f43f ae94 beq.w 8005cae <_printf_float+0x16e>
  14761. 8005f86: f04f 0c00 mov.w ip, #0
  14762. 8005f8a: e9cd 1c05 strd r1, ip, [sp, #20]
  14763. 8005f8e: f10d 0133 add.w r1, sp, #51 ; 0x33
  14764. 8005f92: 6022 str r2, [r4, #0]
  14765. 8005f94: e9cd 0803 strd r0, r8, [sp, #12]
  14766. 8005f98: e9cd 2101 strd r2, r1, [sp, #4]
  14767. 8005f9c: 9300 str r3, [sp, #0]
  14768. 8005f9e: 463a mov r2, r7
  14769. 8005fa0: 464b mov r3, r9
  14770. 8005fa2: 4628 mov r0, r5
  14771. 8005fa4: f7ff fd3a bl 8005a1c <__cvt>
  14772. 8005fa8: 4607 mov r7, r0
  14773. 8005faa: e64f b.n 8005c4c <_printf_float+0x10c>
  14774. 08005fac <_printf_common>:
  14775. 8005fac: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  14776. 8005fb0: 4691 mov r9, r2
  14777. 8005fb2: 461f mov r7, r3
  14778. 8005fb4: 688a ldr r2, [r1, #8]
  14779. 8005fb6: 690b ldr r3, [r1, #16]
  14780. 8005fb8: 4606 mov r6, r0
  14781. 8005fba: 4293 cmp r3, r2
  14782. 8005fbc: bfb8 it lt
  14783. 8005fbe: 4613 movlt r3, r2
  14784. 8005fc0: f8c9 3000 str.w r3, [r9]
  14785. 8005fc4: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  14786. 8005fc8: 460c mov r4, r1
  14787. 8005fca: f8dd 8020 ldr.w r8, [sp, #32]
  14788. 8005fce: b112 cbz r2, 8005fd6 <_printf_common+0x2a>
  14789. 8005fd0: 3301 adds r3, #1
  14790. 8005fd2: f8c9 3000 str.w r3, [r9]
  14791. 8005fd6: 6823 ldr r3, [r4, #0]
  14792. 8005fd8: 0699 lsls r1, r3, #26
  14793. 8005fda: bf42 ittt mi
  14794. 8005fdc: f8d9 3000 ldrmi.w r3, [r9]
  14795. 8005fe0: 3302 addmi r3, #2
  14796. 8005fe2: f8c9 3000 strmi.w r3, [r9]
  14797. 8005fe6: 6825 ldr r5, [r4, #0]
  14798. 8005fe8: f015 0506 ands.w r5, r5, #6
  14799. 8005fec: d107 bne.n 8005ffe <_printf_common+0x52>
  14800. 8005fee: f104 0a19 add.w sl, r4, #25
  14801. 8005ff2: 68e3 ldr r3, [r4, #12]
  14802. 8005ff4: f8d9 2000 ldr.w r2, [r9]
  14803. 8005ff8: 1a9b subs r3, r3, r2
  14804. 8005ffa: 42ab cmp r3, r5
  14805. 8005ffc: dc29 bgt.n 8006052 <_printf_common+0xa6>
  14806. 8005ffe: f894 3043 ldrb.w r3, [r4, #67] ; 0x43
  14807. 8006002: 6822 ldr r2, [r4, #0]
  14808. 8006004: 3300 adds r3, #0
  14809. 8006006: bf18 it ne
  14810. 8006008: 2301 movne r3, #1
  14811. 800600a: 0692 lsls r2, r2, #26
  14812. 800600c: d42e bmi.n 800606c <_printf_common+0xc0>
  14813. 800600e: f104 0243 add.w r2, r4, #67 ; 0x43
  14814. 8006012: 4639 mov r1, r7
  14815. 8006014: 4630 mov r0, r6
  14816. 8006016: 47c0 blx r8
  14817. 8006018: 3001 adds r0, #1
  14818. 800601a: d021 beq.n 8006060 <_printf_common+0xb4>
  14819. 800601c: 6823 ldr r3, [r4, #0]
  14820. 800601e: 68e5 ldr r5, [r4, #12]
  14821. 8006020: f003 0306 and.w r3, r3, #6
  14822. 8006024: 2b04 cmp r3, #4
  14823. 8006026: bf18 it ne
  14824. 8006028: 2500 movne r5, #0
  14825. 800602a: f8d9 2000 ldr.w r2, [r9]
  14826. 800602e: f04f 0900 mov.w r9, #0
  14827. 8006032: bf08 it eq
  14828. 8006034: 1aad subeq r5, r5, r2
  14829. 8006036: 68a3 ldr r3, [r4, #8]
  14830. 8006038: 6922 ldr r2, [r4, #16]
  14831. 800603a: bf08 it eq
  14832. 800603c: ea25 75e5 biceq.w r5, r5, r5, asr #31
  14833. 8006040: 4293 cmp r3, r2
  14834. 8006042: bfc4 itt gt
  14835. 8006044: 1a9b subgt r3, r3, r2
  14836. 8006046: 18ed addgt r5, r5, r3
  14837. 8006048: 341a adds r4, #26
  14838. 800604a: 454d cmp r5, r9
  14839. 800604c: d11a bne.n 8006084 <_printf_common+0xd8>
  14840. 800604e: 2000 movs r0, #0
  14841. 8006050: e008 b.n 8006064 <_printf_common+0xb8>
  14842. 8006052: 2301 movs r3, #1
  14843. 8006054: 4652 mov r2, sl
  14844. 8006056: 4639 mov r1, r7
  14845. 8006058: 4630 mov r0, r6
  14846. 800605a: 47c0 blx r8
  14847. 800605c: 3001 adds r0, #1
  14848. 800605e: d103 bne.n 8006068 <_printf_common+0xbc>
  14849. 8006060: f04f 30ff mov.w r0, #4294967295
  14850. 8006064: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  14851. 8006068: 3501 adds r5, #1
  14852. 800606a: e7c2 b.n 8005ff2 <_printf_common+0x46>
  14853. 800606c: 2030 movs r0, #48 ; 0x30
  14854. 800606e: 18e1 adds r1, r4, r3
  14855. 8006070: f881 0043 strb.w r0, [r1, #67] ; 0x43
  14856. 8006074: 1c5a adds r2, r3, #1
  14857. 8006076: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  14858. 800607a: 4422 add r2, r4
  14859. 800607c: 3302 adds r3, #2
  14860. 800607e: f882 1043 strb.w r1, [r2, #67] ; 0x43
  14861. 8006082: e7c4 b.n 800600e <_printf_common+0x62>
  14862. 8006084: 2301 movs r3, #1
  14863. 8006086: 4622 mov r2, r4
  14864. 8006088: 4639 mov r1, r7
  14865. 800608a: 4630 mov r0, r6
  14866. 800608c: 47c0 blx r8
  14867. 800608e: 3001 adds r0, #1
  14868. 8006090: d0e6 beq.n 8006060 <_printf_common+0xb4>
  14869. 8006092: f109 0901 add.w r9, r9, #1
  14870. 8006096: e7d8 b.n 800604a <_printf_common+0x9e>
  14871. 08006098 <_printf_i>:
  14872. 8006098: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  14873. 800609c: f101 0c43 add.w ip, r1, #67 ; 0x43
  14874. 80060a0: 460c mov r4, r1
  14875. 80060a2: 7e09 ldrb r1, [r1, #24]
  14876. 80060a4: b085 sub sp, #20
  14877. 80060a6: 296e cmp r1, #110 ; 0x6e
  14878. 80060a8: 4617 mov r7, r2
  14879. 80060aa: 4606 mov r6, r0
  14880. 80060ac: 4698 mov r8, r3
  14881. 80060ae: 9a0c ldr r2, [sp, #48] ; 0x30
  14882. 80060b0: f000 80b3 beq.w 800621a <_printf_i+0x182>
  14883. 80060b4: d822 bhi.n 80060fc <_printf_i+0x64>
  14884. 80060b6: 2963 cmp r1, #99 ; 0x63
  14885. 80060b8: d036 beq.n 8006128 <_printf_i+0x90>
  14886. 80060ba: d80a bhi.n 80060d2 <_printf_i+0x3a>
  14887. 80060bc: 2900 cmp r1, #0
  14888. 80060be: f000 80b9 beq.w 8006234 <_printf_i+0x19c>
  14889. 80060c2: 2958 cmp r1, #88 ; 0x58
  14890. 80060c4: f000 8083 beq.w 80061ce <_printf_i+0x136>
  14891. 80060c8: f104 0542 add.w r5, r4, #66 ; 0x42
  14892. 80060cc: f884 1042 strb.w r1, [r4, #66] ; 0x42
  14893. 80060d0: e032 b.n 8006138 <_printf_i+0xa0>
  14894. 80060d2: 2964 cmp r1, #100 ; 0x64
  14895. 80060d4: d001 beq.n 80060da <_printf_i+0x42>
  14896. 80060d6: 2969 cmp r1, #105 ; 0x69
  14897. 80060d8: d1f6 bne.n 80060c8 <_printf_i+0x30>
  14898. 80060da: 6820 ldr r0, [r4, #0]
  14899. 80060dc: 6813 ldr r3, [r2, #0]
  14900. 80060de: 0605 lsls r5, r0, #24
  14901. 80060e0: f103 0104 add.w r1, r3, #4
  14902. 80060e4: d52a bpl.n 800613c <_printf_i+0xa4>
  14903. 80060e6: 681b ldr r3, [r3, #0]
  14904. 80060e8: 6011 str r1, [r2, #0]
  14905. 80060ea: 2b00 cmp r3, #0
  14906. 80060ec: da03 bge.n 80060f6 <_printf_i+0x5e>
  14907. 80060ee: 222d movs r2, #45 ; 0x2d
  14908. 80060f0: 425b negs r3, r3
  14909. 80060f2: f884 2043 strb.w r2, [r4, #67] ; 0x43
  14910. 80060f6: 486f ldr r0, [pc, #444] ; (80062b4 <_printf_i+0x21c>)
  14911. 80060f8: 220a movs r2, #10
  14912. 80060fa: e039 b.n 8006170 <_printf_i+0xd8>
  14913. 80060fc: 2973 cmp r1, #115 ; 0x73
  14914. 80060fe: f000 809d beq.w 800623c <_printf_i+0x1a4>
  14915. 8006102: d808 bhi.n 8006116 <_printf_i+0x7e>
  14916. 8006104: 296f cmp r1, #111 ; 0x6f
  14917. 8006106: d020 beq.n 800614a <_printf_i+0xb2>
  14918. 8006108: 2970 cmp r1, #112 ; 0x70
  14919. 800610a: d1dd bne.n 80060c8 <_printf_i+0x30>
  14920. 800610c: 6823 ldr r3, [r4, #0]
  14921. 800610e: f043 0320 orr.w r3, r3, #32
  14922. 8006112: 6023 str r3, [r4, #0]
  14923. 8006114: e003 b.n 800611e <_printf_i+0x86>
  14924. 8006116: 2975 cmp r1, #117 ; 0x75
  14925. 8006118: d017 beq.n 800614a <_printf_i+0xb2>
  14926. 800611a: 2978 cmp r1, #120 ; 0x78
  14927. 800611c: d1d4 bne.n 80060c8 <_printf_i+0x30>
  14928. 800611e: 2378 movs r3, #120 ; 0x78
  14929. 8006120: 4865 ldr r0, [pc, #404] ; (80062b8 <_printf_i+0x220>)
  14930. 8006122: f884 3045 strb.w r3, [r4, #69] ; 0x45
  14931. 8006126: e055 b.n 80061d4 <_printf_i+0x13c>
  14932. 8006128: 6813 ldr r3, [r2, #0]
  14933. 800612a: f104 0542 add.w r5, r4, #66 ; 0x42
  14934. 800612e: 1d19 adds r1, r3, #4
  14935. 8006130: 681b ldr r3, [r3, #0]
  14936. 8006132: 6011 str r1, [r2, #0]
  14937. 8006134: f884 3042 strb.w r3, [r4, #66] ; 0x42
  14938. 8006138: 2301 movs r3, #1
  14939. 800613a: e08c b.n 8006256 <_printf_i+0x1be>
  14940. 800613c: 681b ldr r3, [r3, #0]
  14941. 800613e: f010 0f40 tst.w r0, #64 ; 0x40
  14942. 8006142: 6011 str r1, [r2, #0]
  14943. 8006144: bf18 it ne
  14944. 8006146: b21b sxthne r3, r3
  14945. 8006148: e7cf b.n 80060ea <_printf_i+0x52>
  14946. 800614a: 6813 ldr r3, [r2, #0]
  14947. 800614c: 6825 ldr r5, [r4, #0]
  14948. 800614e: 1d18 adds r0, r3, #4
  14949. 8006150: 6010 str r0, [r2, #0]
  14950. 8006152: 0628 lsls r0, r5, #24
  14951. 8006154: d501 bpl.n 800615a <_printf_i+0xc2>
  14952. 8006156: 681b ldr r3, [r3, #0]
  14953. 8006158: e002 b.n 8006160 <_printf_i+0xc8>
  14954. 800615a: 0668 lsls r0, r5, #25
  14955. 800615c: d5fb bpl.n 8006156 <_printf_i+0xbe>
  14956. 800615e: 881b ldrh r3, [r3, #0]
  14957. 8006160: 296f cmp r1, #111 ; 0x6f
  14958. 8006162: bf14 ite ne
  14959. 8006164: 220a movne r2, #10
  14960. 8006166: 2208 moveq r2, #8
  14961. 8006168: 4852 ldr r0, [pc, #328] ; (80062b4 <_printf_i+0x21c>)
  14962. 800616a: 2100 movs r1, #0
  14963. 800616c: f884 1043 strb.w r1, [r4, #67] ; 0x43
  14964. 8006170: 6865 ldr r5, [r4, #4]
  14965. 8006172: 2d00 cmp r5, #0
  14966. 8006174: 60a5 str r5, [r4, #8]
  14967. 8006176: f2c0 8095 blt.w 80062a4 <_printf_i+0x20c>
  14968. 800617a: 6821 ldr r1, [r4, #0]
  14969. 800617c: f021 0104 bic.w r1, r1, #4
  14970. 8006180: 6021 str r1, [r4, #0]
  14971. 8006182: 2b00 cmp r3, #0
  14972. 8006184: d13d bne.n 8006202 <_printf_i+0x16a>
  14973. 8006186: 2d00 cmp r5, #0
  14974. 8006188: f040 808e bne.w 80062a8 <_printf_i+0x210>
  14975. 800618c: 4665 mov r5, ip
  14976. 800618e: 2a08 cmp r2, #8
  14977. 8006190: d10b bne.n 80061aa <_printf_i+0x112>
  14978. 8006192: 6823 ldr r3, [r4, #0]
  14979. 8006194: 07db lsls r3, r3, #31
  14980. 8006196: d508 bpl.n 80061aa <_printf_i+0x112>
  14981. 8006198: 6923 ldr r3, [r4, #16]
  14982. 800619a: 6862 ldr r2, [r4, #4]
  14983. 800619c: 429a cmp r2, r3
  14984. 800619e: bfde ittt le
  14985. 80061a0: 2330 movle r3, #48 ; 0x30
  14986. 80061a2: f805 3c01 strble.w r3, [r5, #-1]
  14987. 80061a6: f105 35ff addle.w r5, r5, #4294967295
  14988. 80061aa: ebac 0305 sub.w r3, ip, r5
  14989. 80061ae: 6123 str r3, [r4, #16]
  14990. 80061b0: f8cd 8000 str.w r8, [sp]
  14991. 80061b4: 463b mov r3, r7
  14992. 80061b6: aa03 add r2, sp, #12
  14993. 80061b8: 4621 mov r1, r4
  14994. 80061ba: 4630 mov r0, r6
  14995. 80061bc: f7ff fef6 bl 8005fac <_printf_common>
  14996. 80061c0: 3001 adds r0, #1
  14997. 80061c2: d14d bne.n 8006260 <_printf_i+0x1c8>
  14998. 80061c4: f04f 30ff mov.w r0, #4294967295
  14999. 80061c8: b005 add sp, #20
  15000. 80061ca: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  15001. 80061ce: 4839 ldr r0, [pc, #228] ; (80062b4 <_printf_i+0x21c>)
  15002. 80061d0: f884 1045 strb.w r1, [r4, #69] ; 0x45
  15003. 80061d4: 6813 ldr r3, [r2, #0]
  15004. 80061d6: 6821 ldr r1, [r4, #0]
  15005. 80061d8: 1d1d adds r5, r3, #4
  15006. 80061da: 681b ldr r3, [r3, #0]
  15007. 80061dc: 6015 str r5, [r2, #0]
  15008. 80061de: 060a lsls r2, r1, #24
  15009. 80061e0: d50b bpl.n 80061fa <_printf_i+0x162>
  15010. 80061e2: 07ca lsls r2, r1, #31
  15011. 80061e4: bf44 itt mi
  15012. 80061e6: f041 0120 orrmi.w r1, r1, #32
  15013. 80061ea: 6021 strmi r1, [r4, #0]
  15014. 80061ec: b91b cbnz r3, 80061f6 <_printf_i+0x15e>
  15015. 80061ee: 6822 ldr r2, [r4, #0]
  15016. 80061f0: f022 0220 bic.w r2, r2, #32
  15017. 80061f4: 6022 str r2, [r4, #0]
  15018. 80061f6: 2210 movs r2, #16
  15019. 80061f8: e7b7 b.n 800616a <_printf_i+0xd2>
  15020. 80061fa: 064d lsls r5, r1, #25
  15021. 80061fc: bf48 it mi
  15022. 80061fe: b29b uxthmi r3, r3
  15023. 8006200: e7ef b.n 80061e2 <_printf_i+0x14a>
  15024. 8006202: 4665 mov r5, ip
  15025. 8006204: fbb3 f1f2 udiv r1, r3, r2
  15026. 8006208: fb02 3311 mls r3, r2, r1, r3
  15027. 800620c: 5cc3 ldrb r3, [r0, r3]
  15028. 800620e: f805 3d01 strb.w r3, [r5, #-1]!
  15029. 8006212: 460b mov r3, r1
  15030. 8006214: 2900 cmp r1, #0
  15031. 8006216: d1f5 bne.n 8006204 <_printf_i+0x16c>
  15032. 8006218: e7b9 b.n 800618e <_printf_i+0xf6>
  15033. 800621a: 6813 ldr r3, [r2, #0]
  15034. 800621c: 6825 ldr r5, [r4, #0]
  15035. 800621e: 1d18 adds r0, r3, #4
  15036. 8006220: 6961 ldr r1, [r4, #20]
  15037. 8006222: 6010 str r0, [r2, #0]
  15038. 8006224: 0628 lsls r0, r5, #24
  15039. 8006226: 681b ldr r3, [r3, #0]
  15040. 8006228: d501 bpl.n 800622e <_printf_i+0x196>
  15041. 800622a: 6019 str r1, [r3, #0]
  15042. 800622c: e002 b.n 8006234 <_printf_i+0x19c>
  15043. 800622e: 066a lsls r2, r5, #25
  15044. 8006230: d5fb bpl.n 800622a <_printf_i+0x192>
  15045. 8006232: 8019 strh r1, [r3, #0]
  15046. 8006234: 2300 movs r3, #0
  15047. 8006236: 4665 mov r5, ip
  15048. 8006238: 6123 str r3, [r4, #16]
  15049. 800623a: e7b9 b.n 80061b0 <_printf_i+0x118>
  15050. 800623c: 6813 ldr r3, [r2, #0]
  15051. 800623e: 1d19 adds r1, r3, #4
  15052. 8006240: 6011 str r1, [r2, #0]
  15053. 8006242: 681d ldr r5, [r3, #0]
  15054. 8006244: 6862 ldr r2, [r4, #4]
  15055. 8006246: 2100 movs r1, #0
  15056. 8006248: 4628 mov r0, r5
  15057. 800624a: f001 fa61 bl 8007710 <memchr>
  15058. 800624e: b108 cbz r0, 8006254 <_printf_i+0x1bc>
  15059. 8006250: 1b40 subs r0, r0, r5
  15060. 8006252: 6060 str r0, [r4, #4]
  15061. 8006254: 6863 ldr r3, [r4, #4]
  15062. 8006256: 6123 str r3, [r4, #16]
  15063. 8006258: 2300 movs r3, #0
  15064. 800625a: f884 3043 strb.w r3, [r4, #67] ; 0x43
  15065. 800625e: e7a7 b.n 80061b0 <_printf_i+0x118>
  15066. 8006260: 6923 ldr r3, [r4, #16]
  15067. 8006262: 462a mov r2, r5
  15068. 8006264: 4639 mov r1, r7
  15069. 8006266: 4630 mov r0, r6
  15070. 8006268: 47c0 blx r8
  15071. 800626a: 3001 adds r0, #1
  15072. 800626c: d0aa beq.n 80061c4 <_printf_i+0x12c>
  15073. 800626e: 6823 ldr r3, [r4, #0]
  15074. 8006270: 079b lsls r3, r3, #30
  15075. 8006272: d413 bmi.n 800629c <_printf_i+0x204>
  15076. 8006274: 68e0 ldr r0, [r4, #12]
  15077. 8006276: 9b03 ldr r3, [sp, #12]
  15078. 8006278: 4298 cmp r0, r3
  15079. 800627a: bfb8 it lt
  15080. 800627c: 4618 movlt r0, r3
  15081. 800627e: e7a3 b.n 80061c8 <_printf_i+0x130>
  15082. 8006280: 2301 movs r3, #1
  15083. 8006282: 464a mov r2, r9
  15084. 8006284: 4639 mov r1, r7
  15085. 8006286: 4630 mov r0, r6
  15086. 8006288: 47c0 blx r8
  15087. 800628a: 3001 adds r0, #1
  15088. 800628c: d09a beq.n 80061c4 <_printf_i+0x12c>
  15089. 800628e: 3501 adds r5, #1
  15090. 8006290: 68e3 ldr r3, [r4, #12]
  15091. 8006292: 9a03 ldr r2, [sp, #12]
  15092. 8006294: 1a9b subs r3, r3, r2
  15093. 8006296: 42ab cmp r3, r5
  15094. 8006298: dcf2 bgt.n 8006280 <_printf_i+0x1e8>
  15095. 800629a: e7eb b.n 8006274 <_printf_i+0x1dc>
  15096. 800629c: 2500 movs r5, #0
  15097. 800629e: f104 0919 add.w r9, r4, #25
  15098. 80062a2: e7f5 b.n 8006290 <_printf_i+0x1f8>
  15099. 80062a4: 2b00 cmp r3, #0
  15100. 80062a6: d1ac bne.n 8006202 <_printf_i+0x16a>
  15101. 80062a8: 7803 ldrb r3, [r0, #0]
  15102. 80062aa: f104 0542 add.w r5, r4, #66 ; 0x42
  15103. 80062ae: f884 3042 strb.w r3, [r4, #66] ; 0x42
  15104. 80062b2: e76c b.n 800618e <_printf_i+0xf6>
  15105. 80062b4: 0800860e .word 0x0800860e
  15106. 80062b8: 0800861f .word 0x0800861f
  15107. 080062bc <iprintf>:
  15108. 80062bc: b40f push {r0, r1, r2, r3}
  15109. 80062be: 4b0a ldr r3, [pc, #40] ; (80062e8 <iprintf+0x2c>)
  15110. 80062c0: b513 push {r0, r1, r4, lr}
  15111. 80062c2: 681c ldr r4, [r3, #0]
  15112. 80062c4: b124 cbz r4, 80062d0 <iprintf+0x14>
  15113. 80062c6: 69a3 ldr r3, [r4, #24]
  15114. 80062c8: b913 cbnz r3, 80062d0 <iprintf+0x14>
  15115. 80062ca: 4620 mov r0, r4
  15116. 80062cc: f001 f91c bl 8007508 <__sinit>
  15117. 80062d0: ab05 add r3, sp, #20
  15118. 80062d2: 9a04 ldr r2, [sp, #16]
  15119. 80062d4: 68a1 ldr r1, [r4, #8]
  15120. 80062d6: 4620 mov r0, r4
  15121. 80062d8: 9301 str r3, [sp, #4]
  15122. 80062da: f001 fdeb bl 8007eb4 <_vfiprintf_r>
  15123. 80062de: b002 add sp, #8
  15124. 80062e0: e8bd 4010 ldmia.w sp!, {r4, lr}
  15125. 80062e4: b004 add sp, #16
  15126. 80062e6: 4770 bx lr
  15127. 80062e8: 2000000c .word 0x2000000c
  15128. 080062ec <_puts_r>:
  15129. 80062ec: b570 push {r4, r5, r6, lr}
  15130. 80062ee: 460e mov r6, r1
  15131. 80062f0: 4605 mov r5, r0
  15132. 80062f2: b118 cbz r0, 80062fc <_puts_r+0x10>
  15133. 80062f4: 6983 ldr r3, [r0, #24]
  15134. 80062f6: b90b cbnz r3, 80062fc <_puts_r+0x10>
  15135. 80062f8: f001 f906 bl 8007508 <__sinit>
  15136. 80062fc: 69ab ldr r3, [r5, #24]
  15137. 80062fe: 68ac ldr r4, [r5, #8]
  15138. 8006300: b913 cbnz r3, 8006308 <_puts_r+0x1c>
  15139. 8006302: 4628 mov r0, r5
  15140. 8006304: f001 f900 bl 8007508 <__sinit>
  15141. 8006308: 4b23 ldr r3, [pc, #140] ; (8006398 <_puts_r+0xac>)
  15142. 800630a: 429c cmp r4, r3
  15143. 800630c: d117 bne.n 800633e <_puts_r+0x52>
  15144. 800630e: 686c ldr r4, [r5, #4]
  15145. 8006310: 89a3 ldrh r3, [r4, #12]
  15146. 8006312: 071b lsls r3, r3, #28
  15147. 8006314: d51d bpl.n 8006352 <_puts_r+0x66>
  15148. 8006316: 6923 ldr r3, [r4, #16]
  15149. 8006318: b1db cbz r3, 8006352 <_puts_r+0x66>
  15150. 800631a: 3e01 subs r6, #1
  15151. 800631c: 68a3 ldr r3, [r4, #8]
  15152. 800631e: f816 1f01 ldrb.w r1, [r6, #1]!
  15153. 8006322: 3b01 subs r3, #1
  15154. 8006324: 60a3 str r3, [r4, #8]
  15155. 8006326: b9e9 cbnz r1, 8006364 <_puts_r+0x78>
  15156. 8006328: 2b00 cmp r3, #0
  15157. 800632a: da2e bge.n 800638a <_puts_r+0x9e>
  15158. 800632c: 4622 mov r2, r4
  15159. 800632e: 210a movs r1, #10
  15160. 8006330: 4628 mov r0, r5
  15161. 8006332: f000 f8f5 bl 8006520 <__swbuf_r>
  15162. 8006336: 3001 adds r0, #1
  15163. 8006338: d011 beq.n 800635e <_puts_r+0x72>
  15164. 800633a: 200a movs r0, #10
  15165. 800633c: e011 b.n 8006362 <_puts_r+0x76>
  15166. 800633e: 4b17 ldr r3, [pc, #92] ; (800639c <_puts_r+0xb0>)
  15167. 8006340: 429c cmp r4, r3
  15168. 8006342: d101 bne.n 8006348 <_puts_r+0x5c>
  15169. 8006344: 68ac ldr r4, [r5, #8]
  15170. 8006346: e7e3 b.n 8006310 <_puts_r+0x24>
  15171. 8006348: 4b15 ldr r3, [pc, #84] ; (80063a0 <_puts_r+0xb4>)
  15172. 800634a: 429c cmp r4, r3
  15173. 800634c: bf08 it eq
  15174. 800634e: 68ec ldreq r4, [r5, #12]
  15175. 8006350: e7de b.n 8006310 <_puts_r+0x24>
  15176. 8006352: 4621 mov r1, r4
  15177. 8006354: 4628 mov r0, r5
  15178. 8006356: f000 f935 bl 80065c4 <__swsetup_r>
  15179. 800635a: 2800 cmp r0, #0
  15180. 800635c: d0dd beq.n 800631a <_puts_r+0x2e>
  15181. 800635e: f04f 30ff mov.w r0, #4294967295
  15182. 8006362: bd70 pop {r4, r5, r6, pc}
  15183. 8006364: 2b00 cmp r3, #0
  15184. 8006366: da04 bge.n 8006372 <_puts_r+0x86>
  15185. 8006368: 69a2 ldr r2, [r4, #24]
  15186. 800636a: 429a cmp r2, r3
  15187. 800636c: dc06 bgt.n 800637c <_puts_r+0x90>
  15188. 800636e: 290a cmp r1, #10
  15189. 8006370: d004 beq.n 800637c <_puts_r+0x90>
  15190. 8006372: 6823 ldr r3, [r4, #0]
  15191. 8006374: 1c5a adds r2, r3, #1
  15192. 8006376: 6022 str r2, [r4, #0]
  15193. 8006378: 7019 strb r1, [r3, #0]
  15194. 800637a: e7cf b.n 800631c <_puts_r+0x30>
  15195. 800637c: 4622 mov r2, r4
  15196. 800637e: 4628 mov r0, r5
  15197. 8006380: f000 f8ce bl 8006520 <__swbuf_r>
  15198. 8006384: 3001 adds r0, #1
  15199. 8006386: d1c9 bne.n 800631c <_puts_r+0x30>
  15200. 8006388: e7e9 b.n 800635e <_puts_r+0x72>
  15201. 800638a: 200a movs r0, #10
  15202. 800638c: 6823 ldr r3, [r4, #0]
  15203. 800638e: 1c5a adds r2, r3, #1
  15204. 8006390: 6022 str r2, [r4, #0]
  15205. 8006392: 7018 strb r0, [r3, #0]
  15206. 8006394: e7e5 b.n 8006362 <_puts_r+0x76>
  15207. 8006396: bf00 nop
  15208. 8006398: 08008660 .word 0x08008660
  15209. 800639c: 08008680 .word 0x08008680
  15210. 80063a0: 08008640 .word 0x08008640
  15211. 080063a4 <puts>:
  15212. 80063a4: 4b02 ldr r3, [pc, #8] ; (80063b0 <puts+0xc>)
  15213. 80063a6: 4601 mov r1, r0
  15214. 80063a8: 6818 ldr r0, [r3, #0]
  15215. 80063aa: f7ff bf9f b.w 80062ec <_puts_r>
  15216. 80063ae: bf00 nop
  15217. 80063b0: 2000000c .word 0x2000000c
  15218. 080063b4 <setbuf>:
  15219. 80063b4: 2900 cmp r1, #0
  15220. 80063b6: f44f 6380 mov.w r3, #1024 ; 0x400
  15221. 80063ba: bf0c ite eq
  15222. 80063bc: 2202 moveq r2, #2
  15223. 80063be: 2200 movne r2, #0
  15224. 80063c0: f000 b800 b.w 80063c4 <setvbuf>
  15225. 080063c4 <setvbuf>:
  15226. 80063c4: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  15227. 80063c8: 461d mov r5, r3
  15228. 80063ca: 4b51 ldr r3, [pc, #324] ; (8006510 <setvbuf+0x14c>)
  15229. 80063cc: 4604 mov r4, r0
  15230. 80063ce: 681e ldr r6, [r3, #0]
  15231. 80063d0: 460f mov r7, r1
  15232. 80063d2: 4690 mov r8, r2
  15233. 80063d4: b126 cbz r6, 80063e0 <setvbuf+0x1c>
  15234. 80063d6: 69b3 ldr r3, [r6, #24]
  15235. 80063d8: b913 cbnz r3, 80063e0 <setvbuf+0x1c>
  15236. 80063da: 4630 mov r0, r6
  15237. 80063dc: f001 f894 bl 8007508 <__sinit>
  15238. 80063e0: 4b4c ldr r3, [pc, #304] ; (8006514 <setvbuf+0x150>)
  15239. 80063e2: 429c cmp r4, r3
  15240. 80063e4: d152 bne.n 800648c <setvbuf+0xc8>
  15241. 80063e6: 6874 ldr r4, [r6, #4]
  15242. 80063e8: f1b8 0f02 cmp.w r8, #2
  15243. 80063ec: d006 beq.n 80063fc <setvbuf+0x38>
  15244. 80063ee: f1b8 0f01 cmp.w r8, #1
  15245. 80063f2: f200 8089 bhi.w 8006508 <setvbuf+0x144>
  15246. 80063f6: 2d00 cmp r5, #0
  15247. 80063f8: f2c0 8086 blt.w 8006508 <setvbuf+0x144>
  15248. 80063fc: 4621 mov r1, r4
  15249. 80063fe: 4630 mov r0, r6
  15250. 8006400: f001 f818 bl 8007434 <_fflush_r>
  15251. 8006404: 6b61 ldr r1, [r4, #52] ; 0x34
  15252. 8006406: b141 cbz r1, 800641a <setvbuf+0x56>
  15253. 8006408: f104 0344 add.w r3, r4, #68 ; 0x44
  15254. 800640c: 4299 cmp r1, r3
  15255. 800640e: d002 beq.n 8006416 <setvbuf+0x52>
  15256. 8006410: 4630 mov r0, r6
  15257. 8006412: f001 fc81 bl 8007d18 <_free_r>
  15258. 8006416: 2300 movs r3, #0
  15259. 8006418: 6363 str r3, [r4, #52] ; 0x34
  15260. 800641a: 2300 movs r3, #0
  15261. 800641c: 61a3 str r3, [r4, #24]
  15262. 800641e: 6063 str r3, [r4, #4]
  15263. 8006420: 89a3 ldrh r3, [r4, #12]
  15264. 8006422: 061b lsls r3, r3, #24
  15265. 8006424: d503 bpl.n 800642e <setvbuf+0x6a>
  15266. 8006426: 6921 ldr r1, [r4, #16]
  15267. 8006428: 4630 mov r0, r6
  15268. 800642a: f001 fc75 bl 8007d18 <_free_r>
  15269. 800642e: 89a3 ldrh r3, [r4, #12]
  15270. 8006430: f1b8 0f02 cmp.w r8, #2
  15271. 8006434: f423 634a bic.w r3, r3, #3232 ; 0xca0
  15272. 8006438: f023 0303 bic.w r3, r3, #3
  15273. 800643c: 81a3 strh r3, [r4, #12]
  15274. 800643e: d05d beq.n 80064fc <setvbuf+0x138>
  15275. 8006440: ab01 add r3, sp, #4
  15276. 8006442: 466a mov r2, sp
  15277. 8006444: 4621 mov r1, r4
  15278. 8006446: 4630 mov r0, r6
  15279. 8006448: f001 f8f6 bl 8007638 <__swhatbuf_r>
  15280. 800644c: 89a3 ldrh r3, [r4, #12]
  15281. 800644e: 4318 orrs r0, r3
  15282. 8006450: 81a0 strh r0, [r4, #12]
  15283. 8006452: bb2d cbnz r5, 80064a0 <setvbuf+0xdc>
  15284. 8006454: 9d00 ldr r5, [sp, #0]
  15285. 8006456: 4628 mov r0, r5
  15286. 8006458: f001 f952 bl 8007700 <malloc>
  15287. 800645c: 4607 mov r7, r0
  15288. 800645e: 2800 cmp r0, #0
  15289. 8006460: d14e bne.n 8006500 <setvbuf+0x13c>
  15290. 8006462: f8dd 9000 ldr.w r9, [sp]
  15291. 8006466: 45a9 cmp r9, r5
  15292. 8006468: d13c bne.n 80064e4 <setvbuf+0x120>
  15293. 800646a: f04f 30ff mov.w r0, #4294967295
  15294. 800646e: 89a3 ldrh r3, [r4, #12]
  15295. 8006470: f043 0302 orr.w r3, r3, #2
  15296. 8006474: 81a3 strh r3, [r4, #12]
  15297. 8006476: 2300 movs r3, #0
  15298. 8006478: 60a3 str r3, [r4, #8]
  15299. 800647a: f104 0347 add.w r3, r4, #71 ; 0x47
  15300. 800647e: 6023 str r3, [r4, #0]
  15301. 8006480: 6123 str r3, [r4, #16]
  15302. 8006482: 2301 movs r3, #1
  15303. 8006484: 6163 str r3, [r4, #20]
  15304. 8006486: b003 add sp, #12
  15305. 8006488: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  15306. 800648c: 4b22 ldr r3, [pc, #136] ; (8006518 <setvbuf+0x154>)
  15307. 800648e: 429c cmp r4, r3
  15308. 8006490: d101 bne.n 8006496 <setvbuf+0xd2>
  15309. 8006492: 68b4 ldr r4, [r6, #8]
  15310. 8006494: e7a8 b.n 80063e8 <setvbuf+0x24>
  15311. 8006496: 4b21 ldr r3, [pc, #132] ; (800651c <setvbuf+0x158>)
  15312. 8006498: 429c cmp r4, r3
  15313. 800649a: bf08 it eq
  15314. 800649c: 68f4 ldreq r4, [r6, #12]
  15315. 800649e: e7a3 b.n 80063e8 <setvbuf+0x24>
  15316. 80064a0: 2f00 cmp r7, #0
  15317. 80064a2: d0d8 beq.n 8006456 <setvbuf+0x92>
  15318. 80064a4: 69b3 ldr r3, [r6, #24]
  15319. 80064a6: b913 cbnz r3, 80064ae <setvbuf+0xea>
  15320. 80064a8: 4630 mov r0, r6
  15321. 80064aa: f001 f82d bl 8007508 <__sinit>
  15322. 80064ae: f1b8 0f01 cmp.w r8, #1
  15323. 80064b2: bf08 it eq
  15324. 80064b4: 89a3 ldrheq r3, [r4, #12]
  15325. 80064b6: 6027 str r7, [r4, #0]
  15326. 80064b8: bf04 itt eq
  15327. 80064ba: f043 0301 orreq.w r3, r3, #1
  15328. 80064be: 81a3 strheq r3, [r4, #12]
  15329. 80064c0: 89a3 ldrh r3, [r4, #12]
  15330. 80064c2: e9c4 7504 strd r7, r5, [r4, #16]
  15331. 80064c6: f013 0008 ands.w r0, r3, #8
  15332. 80064ca: d01b beq.n 8006504 <setvbuf+0x140>
  15333. 80064cc: f013 0001 ands.w r0, r3, #1
  15334. 80064d0: f04f 0300 mov.w r3, #0
  15335. 80064d4: bf1f itttt ne
  15336. 80064d6: 426d negne r5, r5
  15337. 80064d8: 60a3 strne r3, [r4, #8]
  15338. 80064da: 61a5 strne r5, [r4, #24]
  15339. 80064dc: 4618 movne r0, r3
  15340. 80064de: bf08 it eq
  15341. 80064e0: 60a5 streq r5, [r4, #8]
  15342. 80064e2: e7d0 b.n 8006486 <setvbuf+0xc2>
  15343. 80064e4: 4648 mov r0, r9
  15344. 80064e6: f001 f90b bl 8007700 <malloc>
  15345. 80064ea: 4607 mov r7, r0
  15346. 80064ec: 2800 cmp r0, #0
  15347. 80064ee: d0bc beq.n 800646a <setvbuf+0xa6>
  15348. 80064f0: 89a3 ldrh r3, [r4, #12]
  15349. 80064f2: 464d mov r5, r9
  15350. 80064f4: f043 0380 orr.w r3, r3, #128 ; 0x80
  15351. 80064f8: 81a3 strh r3, [r4, #12]
  15352. 80064fa: e7d3 b.n 80064a4 <setvbuf+0xe0>
  15353. 80064fc: 2000 movs r0, #0
  15354. 80064fe: e7b6 b.n 800646e <setvbuf+0xaa>
  15355. 8006500: 46a9 mov r9, r5
  15356. 8006502: e7f5 b.n 80064f0 <setvbuf+0x12c>
  15357. 8006504: 60a0 str r0, [r4, #8]
  15358. 8006506: e7be b.n 8006486 <setvbuf+0xc2>
  15359. 8006508: f04f 30ff mov.w r0, #4294967295
  15360. 800650c: e7bb b.n 8006486 <setvbuf+0xc2>
  15361. 800650e: bf00 nop
  15362. 8006510: 2000000c .word 0x2000000c
  15363. 8006514: 08008660 .word 0x08008660
  15364. 8006518: 08008680 .word 0x08008680
  15365. 800651c: 08008640 .word 0x08008640
  15366. 08006520 <__swbuf_r>:
  15367. 8006520: b5f8 push {r3, r4, r5, r6, r7, lr}
  15368. 8006522: 460e mov r6, r1
  15369. 8006524: 4614 mov r4, r2
  15370. 8006526: 4605 mov r5, r0
  15371. 8006528: b118 cbz r0, 8006532 <__swbuf_r+0x12>
  15372. 800652a: 6983 ldr r3, [r0, #24]
  15373. 800652c: b90b cbnz r3, 8006532 <__swbuf_r+0x12>
  15374. 800652e: f000 ffeb bl 8007508 <__sinit>
  15375. 8006532: 4b21 ldr r3, [pc, #132] ; (80065b8 <__swbuf_r+0x98>)
  15376. 8006534: 429c cmp r4, r3
  15377. 8006536: d12a bne.n 800658e <__swbuf_r+0x6e>
  15378. 8006538: 686c ldr r4, [r5, #4]
  15379. 800653a: 69a3 ldr r3, [r4, #24]
  15380. 800653c: 60a3 str r3, [r4, #8]
  15381. 800653e: 89a3 ldrh r3, [r4, #12]
  15382. 8006540: 071a lsls r2, r3, #28
  15383. 8006542: d52e bpl.n 80065a2 <__swbuf_r+0x82>
  15384. 8006544: 6923 ldr r3, [r4, #16]
  15385. 8006546: b363 cbz r3, 80065a2 <__swbuf_r+0x82>
  15386. 8006548: 6923 ldr r3, [r4, #16]
  15387. 800654a: 6820 ldr r0, [r4, #0]
  15388. 800654c: b2f6 uxtb r6, r6
  15389. 800654e: 1ac0 subs r0, r0, r3
  15390. 8006550: 6963 ldr r3, [r4, #20]
  15391. 8006552: 4637 mov r7, r6
  15392. 8006554: 4283 cmp r3, r0
  15393. 8006556: dc04 bgt.n 8006562 <__swbuf_r+0x42>
  15394. 8006558: 4621 mov r1, r4
  15395. 800655a: 4628 mov r0, r5
  15396. 800655c: f000 ff6a bl 8007434 <_fflush_r>
  15397. 8006560: bb28 cbnz r0, 80065ae <__swbuf_r+0x8e>
  15398. 8006562: 68a3 ldr r3, [r4, #8]
  15399. 8006564: 3001 adds r0, #1
  15400. 8006566: 3b01 subs r3, #1
  15401. 8006568: 60a3 str r3, [r4, #8]
  15402. 800656a: 6823 ldr r3, [r4, #0]
  15403. 800656c: 1c5a adds r2, r3, #1
  15404. 800656e: 6022 str r2, [r4, #0]
  15405. 8006570: 701e strb r6, [r3, #0]
  15406. 8006572: 6963 ldr r3, [r4, #20]
  15407. 8006574: 4283 cmp r3, r0
  15408. 8006576: d004 beq.n 8006582 <__swbuf_r+0x62>
  15409. 8006578: 89a3 ldrh r3, [r4, #12]
  15410. 800657a: 07db lsls r3, r3, #31
  15411. 800657c: d519 bpl.n 80065b2 <__swbuf_r+0x92>
  15412. 800657e: 2e0a cmp r6, #10
  15413. 8006580: d117 bne.n 80065b2 <__swbuf_r+0x92>
  15414. 8006582: 4621 mov r1, r4
  15415. 8006584: 4628 mov r0, r5
  15416. 8006586: f000 ff55 bl 8007434 <_fflush_r>
  15417. 800658a: b190 cbz r0, 80065b2 <__swbuf_r+0x92>
  15418. 800658c: e00f b.n 80065ae <__swbuf_r+0x8e>
  15419. 800658e: 4b0b ldr r3, [pc, #44] ; (80065bc <__swbuf_r+0x9c>)
  15420. 8006590: 429c cmp r4, r3
  15421. 8006592: d101 bne.n 8006598 <__swbuf_r+0x78>
  15422. 8006594: 68ac ldr r4, [r5, #8]
  15423. 8006596: e7d0 b.n 800653a <__swbuf_r+0x1a>
  15424. 8006598: 4b09 ldr r3, [pc, #36] ; (80065c0 <__swbuf_r+0xa0>)
  15425. 800659a: 429c cmp r4, r3
  15426. 800659c: bf08 it eq
  15427. 800659e: 68ec ldreq r4, [r5, #12]
  15428. 80065a0: e7cb b.n 800653a <__swbuf_r+0x1a>
  15429. 80065a2: 4621 mov r1, r4
  15430. 80065a4: 4628 mov r0, r5
  15431. 80065a6: f000 f80d bl 80065c4 <__swsetup_r>
  15432. 80065aa: 2800 cmp r0, #0
  15433. 80065ac: d0cc beq.n 8006548 <__swbuf_r+0x28>
  15434. 80065ae: f04f 37ff mov.w r7, #4294967295
  15435. 80065b2: 4638 mov r0, r7
  15436. 80065b4: bdf8 pop {r3, r4, r5, r6, r7, pc}
  15437. 80065b6: bf00 nop
  15438. 80065b8: 08008660 .word 0x08008660
  15439. 80065bc: 08008680 .word 0x08008680
  15440. 80065c0: 08008640 .word 0x08008640
  15441. 080065c4 <__swsetup_r>:
  15442. 80065c4: 4b32 ldr r3, [pc, #200] ; (8006690 <__swsetup_r+0xcc>)
  15443. 80065c6: b570 push {r4, r5, r6, lr}
  15444. 80065c8: 681d ldr r5, [r3, #0]
  15445. 80065ca: 4606 mov r6, r0
  15446. 80065cc: 460c mov r4, r1
  15447. 80065ce: b125 cbz r5, 80065da <__swsetup_r+0x16>
  15448. 80065d0: 69ab ldr r3, [r5, #24]
  15449. 80065d2: b913 cbnz r3, 80065da <__swsetup_r+0x16>
  15450. 80065d4: 4628 mov r0, r5
  15451. 80065d6: f000 ff97 bl 8007508 <__sinit>
  15452. 80065da: 4b2e ldr r3, [pc, #184] ; (8006694 <__swsetup_r+0xd0>)
  15453. 80065dc: 429c cmp r4, r3
  15454. 80065de: d10f bne.n 8006600 <__swsetup_r+0x3c>
  15455. 80065e0: 686c ldr r4, [r5, #4]
  15456. 80065e2: f9b4 300c ldrsh.w r3, [r4, #12]
  15457. 80065e6: b29a uxth r2, r3
  15458. 80065e8: 0715 lsls r5, r2, #28
  15459. 80065ea: d42c bmi.n 8006646 <__swsetup_r+0x82>
  15460. 80065ec: 06d0 lsls r0, r2, #27
  15461. 80065ee: d411 bmi.n 8006614 <__swsetup_r+0x50>
  15462. 80065f0: 2209 movs r2, #9
  15463. 80065f2: 6032 str r2, [r6, #0]
  15464. 80065f4: f043 0340 orr.w r3, r3, #64 ; 0x40
  15465. 80065f8: 81a3 strh r3, [r4, #12]
  15466. 80065fa: f04f 30ff mov.w r0, #4294967295
  15467. 80065fe: e03e b.n 800667e <__swsetup_r+0xba>
  15468. 8006600: 4b25 ldr r3, [pc, #148] ; (8006698 <__swsetup_r+0xd4>)
  15469. 8006602: 429c cmp r4, r3
  15470. 8006604: d101 bne.n 800660a <__swsetup_r+0x46>
  15471. 8006606: 68ac ldr r4, [r5, #8]
  15472. 8006608: e7eb b.n 80065e2 <__swsetup_r+0x1e>
  15473. 800660a: 4b24 ldr r3, [pc, #144] ; (800669c <__swsetup_r+0xd8>)
  15474. 800660c: 429c cmp r4, r3
  15475. 800660e: bf08 it eq
  15476. 8006610: 68ec ldreq r4, [r5, #12]
  15477. 8006612: e7e6 b.n 80065e2 <__swsetup_r+0x1e>
  15478. 8006614: 0751 lsls r1, r2, #29
  15479. 8006616: d512 bpl.n 800663e <__swsetup_r+0x7a>
  15480. 8006618: 6b61 ldr r1, [r4, #52] ; 0x34
  15481. 800661a: b141 cbz r1, 800662e <__swsetup_r+0x6a>
  15482. 800661c: f104 0344 add.w r3, r4, #68 ; 0x44
  15483. 8006620: 4299 cmp r1, r3
  15484. 8006622: d002 beq.n 800662a <__swsetup_r+0x66>
  15485. 8006624: 4630 mov r0, r6
  15486. 8006626: f001 fb77 bl 8007d18 <_free_r>
  15487. 800662a: 2300 movs r3, #0
  15488. 800662c: 6363 str r3, [r4, #52] ; 0x34
  15489. 800662e: 89a3 ldrh r3, [r4, #12]
  15490. 8006630: f023 0324 bic.w r3, r3, #36 ; 0x24
  15491. 8006634: 81a3 strh r3, [r4, #12]
  15492. 8006636: 2300 movs r3, #0
  15493. 8006638: 6063 str r3, [r4, #4]
  15494. 800663a: 6923 ldr r3, [r4, #16]
  15495. 800663c: 6023 str r3, [r4, #0]
  15496. 800663e: 89a3 ldrh r3, [r4, #12]
  15497. 8006640: f043 0308 orr.w r3, r3, #8
  15498. 8006644: 81a3 strh r3, [r4, #12]
  15499. 8006646: 6923 ldr r3, [r4, #16]
  15500. 8006648: b94b cbnz r3, 800665e <__swsetup_r+0x9a>
  15501. 800664a: 89a3 ldrh r3, [r4, #12]
  15502. 800664c: f403 7320 and.w r3, r3, #640 ; 0x280
  15503. 8006650: f5b3 7f00 cmp.w r3, #512 ; 0x200
  15504. 8006654: d003 beq.n 800665e <__swsetup_r+0x9a>
  15505. 8006656: 4621 mov r1, r4
  15506. 8006658: 4630 mov r0, r6
  15507. 800665a: f001 f811 bl 8007680 <__smakebuf_r>
  15508. 800665e: 89a2 ldrh r2, [r4, #12]
  15509. 8006660: f012 0301 ands.w r3, r2, #1
  15510. 8006664: d00c beq.n 8006680 <__swsetup_r+0xbc>
  15511. 8006666: 2300 movs r3, #0
  15512. 8006668: 60a3 str r3, [r4, #8]
  15513. 800666a: 6963 ldr r3, [r4, #20]
  15514. 800666c: 425b negs r3, r3
  15515. 800666e: 61a3 str r3, [r4, #24]
  15516. 8006670: 6923 ldr r3, [r4, #16]
  15517. 8006672: b953 cbnz r3, 800668a <__swsetup_r+0xc6>
  15518. 8006674: f9b4 300c ldrsh.w r3, [r4, #12]
  15519. 8006678: f013 0080 ands.w r0, r3, #128 ; 0x80
  15520. 800667c: d1ba bne.n 80065f4 <__swsetup_r+0x30>
  15521. 800667e: bd70 pop {r4, r5, r6, pc}
  15522. 8006680: 0792 lsls r2, r2, #30
  15523. 8006682: bf58 it pl
  15524. 8006684: 6963 ldrpl r3, [r4, #20]
  15525. 8006686: 60a3 str r3, [r4, #8]
  15526. 8006688: e7f2 b.n 8006670 <__swsetup_r+0xac>
  15527. 800668a: 2000 movs r0, #0
  15528. 800668c: e7f7 b.n 800667e <__swsetup_r+0xba>
  15529. 800668e: bf00 nop
  15530. 8006690: 2000000c .word 0x2000000c
  15531. 8006694: 08008660 .word 0x08008660
  15532. 8006698: 08008680 .word 0x08008680
  15533. 800669c: 08008640 .word 0x08008640
  15534. 080066a0 <quorem>:
  15535. 80066a0: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  15536. 80066a4: 6903 ldr r3, [r0, #16]
  15537. 80066a6: 690c ldr r4, [r1, #16]
  15538. 80066a8: 4680 mov r8, r0
  15539. 80066aa: 42a3 cmp r3, r4
  15540. 80066ac: f2c0 8084 blt.w 80067b8 <quorem+0x118>
  15541. 80066b0: 3c01 subs r4, #1
  15542. 80066b2: f101 0714 add.w r7, r1, #20
  15543. 80066b6: f100 0614 add.w r6, r0, #20
  15544. 80066ba: f857 5024 ldr.w r5, [r7, r4, lsl #2]
  15545. 80066be: f856 0024 ldr.w r0, [r6, r4, lsl #2]
  15546. 80066c2: 3501 adds r5, #1
  15547. 80066c4: fbb0 f5f5 udiv r5, r0, r5
  15548. 80066c8: ea4f 0c84 mov.w ip, r4, lsl #2
  15549. 80066cc: eb06 030c add.w r3, r6, ip
  15550. 80066d0: eb07 090c add.w r9, r7, ip
  15551. 80066d4: 9301 str r3, [sp, #4]
  15552. 80066d6: b39d cbz r5, 8006740 <quorem+0xa0>
  15553. 80066d8: f04f 0a00 mov.w sl, #0
  15554. 80066dc: 4638 mov r0, r7
  15555. 80066de: 46b6 mov lr, r6
  15556. 80066e0: 46d3 mov fp, sl
  15557. 80066e2: f850 2b04 ldr.w r2, [r0], #4
  15558. 80066e6: b293 uxth r3, r2
  15559. 80066e8: fb05 a303 mla r3, r5, r3, sl
  15560. 80066ec: 0c12 lsrs r2, r2, #16
  15561. 80066ee: ea4f 4a13 mov.w sl, r3, lsr #16
  15562. 80066f2: fb05 a202 mla r2, r5, r2, sl
  15563. 80066f6: b29b uxth r3, r3
  15564. 80066f8: ebab 0303 sub.w r3, fp, r3
  15565. 80066fc: f8de b000 ldr.w fp, [lr]
  15566. 8006700: ea4f 4a12 mov.w sl, r2, lsr #16
  15567. 8006704: fa1f fb8b uxth.w fp, fp
  15568. 8006708: 445b add r3, fp
  15569. 800670a: fa1f fb82 uxth.w fp, r2
  15570. 800670e: f8de 2000 ldr.w r2, [lr]
  15571. 8006712: 4581 cmp r9, r0
  15572. 8006714: ebcb 4212 rsb r2, fp, r2, lsr #16
  15573. 8006718: eb02 4223 add.w r2, r2, r3, asr #16
  15574. 800671c: b29b uxth r3, r3
  15575. 800671e: ea43 4302 orr.w r3, r3, r2, lsl #16
  15576. 8006722: ea4f 4b22 mov.w fp, r2, asr #16
  15577. 8006726: f84e 3b04 str.w r3, [lr], #4
  15578. 800672a: d2da bcs.n 80066e2 <quorem+0x42>
  15579. 800672c: f856 300c ldr.w r3, [r6, ip]
  15580. 8006730: b933 cbnz r3, 8006740 <quorem+0xa0>
  15581. 8006732: 9b01 ldr r3, [sp, #4]
  15582. 8006734: 3b04 subs r3, #4
  15583. 8006736: 429e cmp r6, r3
  15584. 8006738: 461a mov r2, r3
  15585. 800673a: d331 bcc.n 80067a0 <quorem+0x100>
  15586. 800673c: f8c8 4010 str.w r4, [r8, #16]
  15587. 8006740: 4640 mov r0, r8
  15588. 8006742: f001 fa13 bl 8007b6c <__mcmp>
  15589. 8006746: 2800 cmp r0, #0
  15590. 8006748: db26 blt.n 8006798 <quorem+0xf8>
  15591. 800674a: 4630 mov r0, r6
  15592. 800674c: f04f 0c00 mov.w ip, #0
  15593. 8006750: 3501 adds r5, #1
  15594. 8006752: f857 1b04 ldr.w r1, [r7], #4
  15595. 8006756: f8d0 e000 ldr.w lr, [r0]
  15596. 800675a: b28b uxth r3, r1
  15597. 800675c: ebac 0303 sub.w r3, ip, r3
  15598. 8006760: fa1f f28e uxth.w r2, lr
  15599. 8006764: 4413 add r3, r2
  15600. 8006766: 0c0a lsrs r2, r1, #16
  15601. 8006768: ebc2 421e rsb r2, r2, lr, lsr #16
  15602. 800676c: eb02 4223 add.w r2, r2, r3, asr #16
  15603. 8006770: b29b uxth r3, r3
  15604. 8006772: ea43 4302 orr.w r3, r3, r2, lsl #16
  15605. 8006776: 45b9 cmp r9, r7
  15606. 8006778: ea4f 4c22 mov.w ip, r2, asr #16
  15607. 800677c: f840 3b04 str.w r3, [r0], #4
  15608. 8006780: d2e7 bcs.n 8006752 <quorem+0xb2>
  15609. 8006782: f856 2024 ldr.w r2, [r6, r4, lsl #2]
  15610. 8006786: eb06 0384 add.w r3, r6, r4, lsl #2
  15611. 800678a: b92a cbnz r2, 8006798 <quorem+0xf8>
  15612. 800678c: 3b04 subs r3, #4
  15613. 800678e: 429e cmp r6, r3
  15614. 8006790: 461a mov r2, r3
  15615. 8006792: d30b bcc.n 80067ac <quorem+0x10c>
  15616. 8006794: f8c8 4010 str.w r4, [r8, #16]
  15617. 8006798: 4628 mov r0, r5
  15618. 800679a: b003 add sp, #12
  15619. 800679c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  15620. 80067a0: 6812 ldr r2, [r2, #0]
  15621. 80067a2: 3b04 subs r3, #4
  15622. 80067a4: 2a00 cmp r2, #0
  15623. 80067a6: d1c9 bne.n 800673c <quorem+0x9c>
  15624. 80067a8: 3c01 subs r4, #1
  15625. 80067aa: e7c4 b.n 8006736 <quorem+0x96>
  15626. 80067ac: 6812 ldr r2, [r2, #0]
  15627. 80067ae: 3b04 subs r3, #4
  15628. 80067b0: 2a00 cmp r2, #0
  15629. 80067b2: d1ef bne.n 8006794 <quorem+0xf4>
  15630. 80067b4: 3c01 subs r4, #1
  15631. 80067b6: e7ea b.n 800678e <quorem+0xee>
  15632. 80067b8: 2000 movs r0, #0
  15633. 80067ba: e7ee b.n 800679a <quorem+0xfa>
  15634. 80067bc: 0000 movs r0, r0
  15635. ...
  15636. 080067c0 <_dtoa_r>:
  15637. 80067c0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  15638. 80067c4: 4616 mov r6, r2
  15639. 80067c6: 461f mov r7, r3
  15640. 80067c8: 6a45 ldr r5, [r0, #36] ; 0x24
  15641. 80067ca: b095 sub sp, #84 ; 0x54
  15642. 80067cc: 4604 mov r4, r0
  15643. 80067ce: f8dd 8084 ldr.w r8, [sp, #132] ; 0x84
  15644. 80067d2: e9cd 6702 strd r6, r7, [sp, #8]
  15645. 80067d6: b93d cbnz r5, 80067e8 <_dtoa_r+0x28>
  15646. 80067d8: 2010 movs r0, #16
  15647. 80067da: f000 ff91 bl 8007700 <malloc>
  15648. 80067de: 6260 str r0, [r4, #36] ; 0x24
  15649. 80067e0: e9c0 5501 strd r5, r5, [r0, #4]
  15650. 80067e4: 6005 str r5, [r0, #0]
  15651. 80067e6: 60c5 str r5, [r0, #12]
  15652. 80067e8: 6a63 ldr r3, [r4, #36] ; 0x24
  15653. 80067ea: 6819 ldr r1, [r3, #0]
  15654. 80067ec: b151 cbz r1, 8006804 <_dtoa_r+0x44>
  15655. 80067ee: 685a ldr r2, [r3, #4]
  15656. 80067f0: 2301 movs r3, #1
  15657. 80067f2: 4093 lsls r3, r2
  15658. 80067f4: 604a str r2, [r1, #4]
  15659. 80067f6: 608b str r3, [r1, #8]
  15660. 80067f8: 4620 mov r0, r4
  15661. 80067fa: f000 ffd6 bl 80077aa <_Bfree>
  15662. 80067fe: 2200 movs r2, #0
  15663. 8006800: 6a63 ldr r3, [r4, #36] ; 0x24
  15664. 8006802: 601a str r2, [r3, #0]
  15665. 8006804: 1e3b subs r3, r7, #0
  15666. 8006806: bfaf iteee ge
  15667. 8006808: 2300 movge r3, #0
  15668. 800680a: 2201 movlt r2, #1
  15669. 800680c: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
  15670. 8006810: 9303 strlt r3, [sp, #12]
  15671. 8006812: bfac ite ge
  15672. 8006814: f8c8 3000 strge.w r3, [r8]
  15673. 8006818: f8c8 2000 strlt.w r2, [r8]
  15674. 800681c: 4bae ldr r3, [pc, #696] ; (8006ad8 <_dtoa_r+0x318>)
  15675. 800681e: f8dd 800c ldr.w r8, [sp, #12]
  15676. 8006822: ea33 0308 bics.w r3, r3, r8
  15677. 8006826: d11b bne.n 8006860 <_dtoa_r+0xa0>
  15678. 8006828: f242 730f movw r3, #9999 ; 0x270f
  15679. 800682c: 9a20 ldr r2, [sp, #128] ; 0x80
  15680. 800682e: 6013 str r3, [r2, #0]
  15681. 8006830: 9b02 ldr r3, [sp, #8]
  15682. 8006832: b923 cbnz r3, 800683e <_dtoa_r+0x7e>
  15683. 8006834: f3c8 0013 ubfx r0, r8, #0, #20
  15684. 8006838: 2800 cmp r0, #0
  15685. 800683a: f000 8545 beq.w 80072c8 <_dtoa_r+0xb08>
  15686. 800683e: 9b22 ldr r3, [sp, #136] ; 0x88
  15687. 8006840: b953 cbnz r3, 8006858 <_dtoa_r+0x98>
  15688. 8006842: 4ba6 ldr r3, [pc, #664] ; (8006adc <_dtoa_r+0x31c>)
  15689. 8006844: e021 b.n 800688a <_dtoa_r+0xca>
  15690. 8006846: 4ba6 ldr r3, [pc, #664] ; (8006ae0 <_dtoa_r+0x320>)
  15691. 8006848: 9306 str r3, [sp, #24]
  15692. 800684a: 3308 adds r3, #8
  15693. 800684c: 9a22 ldr r2, [sp, #136] ; 0x88
  15694. 800684e: 6013 str r3, [r2, #0]
  15695. 8006850: 9806 ldr r0, [sp, #24]
  15696. 8006852: b015 add sp, #84 ; 0x54
  15697. 8006854: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  15698. 8006858: 4ba0 ldr r3, [pc, #640] ; (8006adc <_dtoa_r+0x31c>)
  15699. 800685a: 9306 str r3, [sp, #24]
  15700. 800685c: 3303 adds r3, #3
  15701. 800685e: e7f5 b.n 800684c <_dtoa_r+0x8c>
  15702. 8006860: e9dd 6702 ldrd r6, r7, [sp, #8]
  15703. 8006864: 2200 movs r2, #0
  15704. 8006866: 2300 movs r3, #0
  15705. 8006868: 4630 mov r0, r6
  15706. 800686a: 4639 mov r1, r7
  15707. 800686c: f7fa f8fc bl 8000a68 <__aeabi_dcmpeq>
  15708. 8006870: 4682 mov sl, r0
  15709. 8006872: b160 cbz r0, 800688e <_dtoa_r+0xce>
  15710. 8006874: 2301 movs r3, #1
  15711. 8006876: 9a20 ldr r2, [sp, #128] ; 0x80
  15712. 8006878: 6013 str r3, [r2, #0]
  15713. 800687a: 9b22 ldr r3, [sp, #136] ; 0x88
  15714. 800687c: 2b00 cmp r3, #0
  15715. 800687e: f000 8520 beq.w 80072c2 <_dtoa_r+0xb02>
  15716. 8006882: 4b98 ldr r3, [pc, #608] ; (8006ae4 <_dtoa_r+0x324>)
  15717. 8006884: 9a22 ldr r2, [sp, #136] ; 0x88
  15718. 8006886: 6013 str r3, [r2, #0]
  15719. 8006888: 3b01 subs r3, #1
  15720. 800688a: 9306 str r3, [sp, #24]
  15721. 800688c: e7e0 b.n 8006850 <_dtoa_r+0x90>
  15722. 800688e: ab12 add r3, sp, #72 ; 0x48
  15723. 8006890: 9301 str r3, [sp, #4]
  15724. 8006892: ab13 add r3, sp, #76 ; 0x4c
  15725. 8006894: 9300 str r3, [sp, #0]
  15726. 8006896: 4632 mov r2, r6
  15727. 8006898: 463b mov r3, r7
  15728. 800689a: 4620 mov r0, r4
  15729. 800689c: f001 f9de bl 8007c5c <__d2b>
  15730. 80068a0: f3c8 550a ubfx r5, r8, #20, #11
  15731. 80068a4: 4683 mov fp, r0
  15732. 80068a6: 2d00 cmp r5, #0
  15733. 80068a8: d07d beq.n 80069a6 <_dtoa_r+0x1e6>
  15734. 80068aa: 46b0 mov r8, r6
  15735. 80068ac: f3c7 0313 ubfx r3, r7, #0, #20
  15736. 80068b0: f043 597f orr.w r9, r3, #1069547520 ; 0x3fc00000
  15737. 80068b4: f449 1940 orr.w r9, r9, #3145728 ; 0x300000
  15738. 80068b8: f2a5 35ff subw r5, r5, #1023 ; 0x3ff
  15739. 80068bc: f8cd a040 str.w sl, [sp, #64] ; 0x40
  15740. 80068c0: 2200 movs r2, #0
  15741. 80068c2: 4b89 ldr r3, [pc, #548] ; (8006ae8 <_dtoa_r+0x328>)
  15742. 80068c4: 4640 mov r0, r8
  15743. 80068c6: 4649 mov r1, r9
  15744. 80068c8: f7f9 fcae bl 8000228 <__aeabi_dsub>
  15745. 80068cc: a37c add r3, pc, #496 ; (adr r3, 8006ac0 <_dtoa_r+0x300>)
  15746. 80068ce: e9d3 2300 ldrd r2, r3, [r3]
  15747. 80068d2: f7f9 fe61 bl 8000598 <__aeabi_dmul>
  15748. 80068d6: a37c add r3, pc, #496 ; (adr r3, 8006ac8 <_dtoa_r+0x308>)
  15749. 80068d8: e9d3 2300 ldrd r2, r3, [r3]
  15750. 80068dc: f7f9 fca6 bl 800022c <__adddf3>
  15751. 80068e0: 4606 mov r6, r0
  15752. 80068e2: 4628 mov r0, r5
  15753. 80068e4: 460f mov r7, r1
  15754. 80068e6: f7f9 fded bl 80004c4 <__aeabi_i2d>
  15755. 80068ea: a379 add r3, pc, #484 ; (adr r3, 8006ad0 <_dtoa_r+0x310>)
  15756. 80068ec: e9d3 2300 ldrd r2, r3, [r3]
  15757. 80068f0: f7f9 fe52 bl 8000598 <__aeabi_dmul>
  15758. 80068f4: 4602 mov r2, r0
  15759. 80068f6: 460b mov r3, r1
  15760. 80068f8: 4630 mov r0, r6
  15761. 80068fa: 4639 mov r1, r7
  15762. 80068fc: f7f9 fc96 bl 800022c <__adddf3>
  15763. 8006900: 4606 mov r6, r0
  15764. 8006902: 460f mov r7, r1
  15765. 8006904: f7fa f8f8 bl 8000af8 <__aeabi_d2iz>
  15766. 8006908: 2200 movs r2, #0
  15767. 800690a: 4682 mov sl, r0
  15768. 800690c: 2300 movs r3, #0
  15769. 800690e: 4630 mov r0, r6
  15770. 8006910: 4639 mov r1, r7
  15771. 8006912: f7fa f8b3 bl 8000a7c <__aeabi_dcmplt>
  15772. 8006916: b148 cbz r0, 800692c <_dtoa_r+0x16c>
  15773. 8006918: 4650 mov r0, sl
  15774. 800691a: f7f9 fdd3 bl 80004c4 <__aeabi_i2d>
  15775. 800691e: 4632 mov r2, r6
  15776. 8006920: 463b mov r3, r7
  15777. 8006922: f7fa f8a1 bl 8000a68 <__aeabi_dcmpeq>
  15778. 8006926: b908 cbnz r0, 800692c <_dtoa_r+0x16c>
  15779. 8006928: f10a 3aff add.w sl, sl, #4294967295
  15780. 800692c: f1ba 0f16 cmp.w sl, #22
  15781. 8006930: d85a bhi.n 80069e8 <_dtoa_r+0x228>
  15782. 8006932: e9dd 2302 ldrd r2, r3, [sp, #8]
  15783. 8006936: 496d ldr r1, [pc, #436] ; (8006aec <_dtoa_r+0x32c>)
  15784. 8006938: eb01 01ca add.w r1, r1, sl, lsl #3
  15785. 800693c: e9d1 0100 ldrd r0, r1, [r1]
  15786. 8006940: f7fa f8ba bl 8000ab8 <__aeabi_dcmpgt>
  15787. 8006944: 2800 cmp r0, #0
  15788. 8006946: d051 beq.n 80069ec <_dtoa_r+0x22c>
  15789. 8006948: 2300 movs r3, #0
  15790. 800694a: f10a 3aff add.w sl, sl, #4294967295
  15791. 800694e: 930d str r3, [sp, #52] ; 0x34
  15792. 8006950: 9b12 ldr r3, [sp, #72] ; 0x48
  15793. 8006952: 1b5d subs r5, r3, r5
  15794. 8006954: 1e6b subs r3, r5, #1
  15795. 8006956: 9307 str r3, [sp, #28]
  15796. 8006958: bf43 ittte mi
  15797. 800695a: 2300 movmi r3, #0
  15798. 800695c: f1c5 0901 rsbmi r9, r5, #1
  15799. 8006960: 9307 strmi r3, [sp, #28]
  15800. 8006962: f04f 0900 movpl.w r9, #0
  15801. 8006966: f1ba 0f00 cmp.w sl, #0
  15802. 800696a: db41 blt.n 80069f0 <_dtoa_r+0x230>
  15803. 800696c: 9b07 ldr r3, [sp, #28]
  15804. 800696e: f8cd a030 str.w sl, [sp, #48] ; 0x30
  15805. 8006972: 4453 add r3, sl
  15806. 8006974: 9307 str r3, [sp, #28]
  15807. 8006976: 2300 movs r3, #0
  15808. 8006978: 9308 str r3, [sp, #32]
  15809. 800697a: 9b1e ldr r3, [sp, #120] ; 0x78
  15810. 800697c: 2b09 cmp r3, #9
  15811. 800697e: f200 808f bhi.w 8006aa0 <_dtoa_r+0x2e0>
  15812. 8006982: 2b05 cmp r3, #5
  15813. 8006984: bfc4 itt gt
  15814. 8006986: 3b04 subgt r3, #4
  15815. 8006988: 931e strgt r3, [sp, #120] ; 0x78
  15816. 800698a: 9b1e ldr r3, [sp, #120] ; 0x78
  15817. 800698c: bfc8 it gt
  15818. 800698e: 2500 movgt r5, #0
  15819. 8006990: f1a3 0302 sub.w r3, r3, #2
  15820. 8006994: bfd8 it le
  15821. 8006996: 2501 movle r5, #1
  15822. 8006998: 2b03 cmp r3, #3
  15823. 800699a: f200 808d bhi.w 8006ab8 <_dtoa_r+0x2f8>
  15824. 800699e: e8df f003 tbb [pc, r3]
  15825. 80069a2: 7d7b .short 0x7d7b
  15826. 80069a4: 6f2f .short 0x6f2f
  15827. 80069a6: e9dd 5312 ldrd r5, r3, [sp, #72] ; 0x48
  15828. 80069aa: 441d add r5, r3
  15829. 80069ac: f205 4032 addw r0, r5, #1074 ; 0x432
  15830. 80069b0: 2820 cmp r0, #32
  15831. 80069b2: dd13 ble.n 80069dc <_dtoa_r+0x21c>
  15832. 80069b4: f1c0 0040 rsb r0, r0, #64 ; 0x40
  15833. 80069b8: 9b02 ldr r3, [sp, #8]
  15834. 80069ba: fa08 f800 lsl.w r8, r8, r0
  15835. 80069be: f205 4012 addw r0, r5, #1042 ; 0x412
  15836. 80069c2: fa23 f000 lsr.w r0, r3, r0
  15837. 80069c6: ea48 0000 orr.w r0, r8, r0
  15838. 80069ca: f7f9 fd6b bl 80004a4 <__aeabi_ui2d>
  15839. 80069ce: 2301 movs r3, #1
  15840. 80069d0: 4680 mov r8, r0
  15841. 80069d2: f1a1 79f8 sub.w r9, r1, #32505856 ; 0x1f00000
  15842. 80069d6: 3d01 subs r5, #1
  15843. 80069d8: 9310 str r3, [sp, #64] ; 0x40
  15844. 80069da: e771 b.n 80068c0 <_dtoa_r+0x100>
  15845. 80069dc: 9b02 ldr r3, [sp, #8]
  15846. 80069de: f1c0 0020 rsb r0, r0, #32
  15847. 80069e2: fa03 f000 lsl.w r0, r3, r0
  15848. 80069e6: e7f0 b.n 80069ca <_dtoa_r+0x20a>
  15849. 80069e8: 2301 movs r3, #1
  15850. 80069ea: e7b0 b.n 800694e <_dtoa_r+0x18e>
  15851. 80069ec: 900d str r0, [sp, #52] ; 0x34
  15852. 80069ee: e7af b.n 8006950 <_dtoa_r+0x190>
  15853. 80069f0: f1ca 0300 rsb r3, sl, #0
  15854. 80069f4: 9308 str r3, [sp, #32]
  15855. 80069f6: 2300 movs r3, #0
  15856. 80069f8: eba9 090a sub.w r9, r9, sl
  15857. 80069fc: 930c str r3, [sp, #48] ; 0x30
  15858. 80069fe: e7bc b.n 800697a <_dtoa_r+0x1ba>
  15859. 8006a00: 2301 movs r3, #1
  15860. 8006a02: 9309 str r3, [sp, #36] ; 0x24
  15861. 8006a04: 9b1f ldr r3, [sp, #124] ; 0x7c
  15862. 8006a06: 2b00 cmp r3, #0
  15863. 8006a08: dd74 ble.n 8006af4 <_dtoa_r+0x334>
  15864. 8006a0a: 4698 mov r8, r3
  15865. 8006a0c: 9304 str r3, [sp, #16]
  15866. 8006a0e: 2200 movs r2, #0
  15867. 8006a10: 6a66 ldr r6, [r4, #36] ; 0x24
  15868. 8006a12: 6072 str r2, [r6, #4]
  15869. 8006a14: 2204 movs r2, #4
  15870. 8006a16: f102 0014 add.w r0, r2, #20
  15871. 8006a1a: 4298 cmp r0, r3
  15872. 8006a1c: 6871 ldr r1, [r6, #4]
  15873. 8006a1e: d96e bls.n 8006afe <_dtoa_r+0x33e>
  15874. 8006a20: 4620 mov r0, r4
  15875. 8006a22: f000 fe8e bl 8007742 <_Balloc>
  15876. 8006a26: 6a63 ldr r3, [r4, #36] ; 0x24
  15877. 8006a28: 6030 str r0, [r6, #0]
  15878. 8006a2a: 681b ldr r3, [r3, #0]
  15879. 8006a2c: f1b8 0f0e cmp.w r8, #14
  15880. 8006a30: 9306 str r3, [sp, #24]
  15881. 8006a32: f200 80ed bhi.w 8006c10 <_dtoa_r+0x450>
  15882. 8006a36: 2d00 cmp r5, #0
  15883. 8006a38: f000 80ea beq.w 8006c10 <_dtoa_r+0x450>
  15884. 8006a3c: e9dd 2302 ldrd r2, r3, [sp, #8]
  15885. 8006a40: f1ba 0f00 cmp.w sl, #0
  15886. 8006a44: e9cd 230e strd r2, r3, [sp, #56] ; 0x38
  15887. 8006a48: dd77 ble.n 8006b3a <_dtoa_r+0x37a>
  15888. 8006a4a: 4a28 ldr r2, [pc, #160] ; (8006aec <_dtoa_r+0x32c>)
  15889. 8006a4c: f00a 030f and.w r3, sl, #15
  15890. 8006a50: ea4f 162a mov.w r6, sl, asr #4
  15891. 8006a54: eb02 03c3 add.w r3, r2, r3, lsl #3
  15892. 8006a58: 06f0 lsls r0, r6, #27
  15893. 8006a5a: e9d3 2300 ldrd r2, r3, [r3]
  15894. 8006a5e: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  15895. 8006a62: d568 bpl.n 8006b36 <_dtoa_r+0x376>
  15896. 8006a64: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  15897. 8006a68: 4b21 ldr r3, [pc, #132] ; (8006af0 <_dtoa_r+0x330>)
  15898. 8006a6a: 2503 movs r5, #3
  15899. 8006a6c: e9d3 2308 ldrd r2, r3, [r3, #32]
  15900. 8006a70: f7f9 febc bl 80007ec <__aeabi_ddiv>
  15901. 8006a74: e9cd 0102 strd r0, r1, [sp, #8]
  15902. 8006a78: f006 060f and.w r6, r6, #15
  15903. 8006a7c: 4f1c ldr r7, [pc, #112] ; (8006af0 <_dtoa_r+0x330>)
  15904. 8006a7e: e04f b.n 8006b20 <_dtoa_r+0x360>
  15905. 8006a80: 2301 movs r3, #1
  15906. 8006a82: 9309 str r3, [sp, #36] ; 0x24
  15907. 8006a84: 9b1f ldr r3, [sp, #124] ; 0x7c
  15908. 8006a86: 4453 add r3, sl
  15909. 8006a88: f103 0801 add.w r8, r3, #1
  15910. 8006a8c: 9304 str r3, [sp, #16]
  15911. 8006a8e: 4643 mov r3, r8
  15912. 8006a90: 2b01 cmp r3, #1
  15913. 8006a92: bfb8 it lt
  15914. 8006a94: 2301 movlt r3, #1
  15915. 8006a96: e7ba b.n 8006a0e <_dtoa_r+0x24e>
  15916. 8006a98: 2300 movs r3, #0
  15917. 8006a9a: e7b2 b.n 8006a02 <_dtoa_r+0x242>
  15918. 8006a9c: 2300 movs r3, #0
  15919. 8006a9e: e7f0 b.n 8006a82 <_dtoa_r+0x2c2>
  15920. 8006aa0: 2501 movs r5, #1
  15921. 8006aa2: 2300 movs r3, #0
  15922. 8006aa4: 9509 str r5, [sp, #36] ; 0x24
  15923. 8006aa6: 931e str r3, [sp, #120] ; 0x78
  15924. 8006aa8: f04f 33ff mov.w r3, #4294967295
  15925. 8006aac: 2200 movs r2, #0
  15926. 8006aae: 9304 str r3, [sp, #16]
  15927. 8006ab0: 4698 mov r8, r3
  15928. 8006ab2: 2312 movs r3, #18
  15929. 8006ab4: 921f str r2, [sp, #124] ; 0x7c
  15930. 8006ab6: e7aa b.n 8006a0e <_dtoa_r+0x24e>
  15931. 8006ab8: 2301 movs r3, #1
  15932. 8006aba: 9309 str r3, [sp, #36] ; 0x24
  15933. 8006abc: e7f4 b.n 8006aa8 <_dtoa_r+0x2e8>
  15934. 8006abe: bf00 nop
  15935. 8006ac0: 636f4361 .word 0x636f4361
  15936. 8006ac4: 3fd287a7 .word 0x3fd287a7
  15937. 8006ac8: 8b60c8b3 .word 0x8b60c8b3
  15938. 8006acc: 3fc68a28 .word 0x3fc68a28
  15939. 8006ad0: 509f79fb .word 0x509f79fb
  15940. 8006ad4: 3fd34413 .word 0x3fd34413
  15941. 8006ad8: 7ff00000 .word 0x7ff00000
  15942. 8006adc: 08008639 .word 0x08008639
  15943. 8006ae0: 08008630 .word 0x08008630
  15944. 8006ae4: 0800860d .word 0x0800860d
  15945. 8006ae8: 3ff80000 .word 0x3ff80000
  15946. 8006aec: 080086c8 .word 0x080086c8
  15947. 8006af0: 080086a0 .word 0x080086a0
  15948. 8006af4: 2301 movs r3, #1
  15949. 8006af6: 9304 str r3, [sp, #16]
  15950. 8006af8: 4698 mov r8, r3
  15951. 8006afa: 461a mov r2, r3
  15952. 8006afc: e7da b.n 8006ab4 <_dtoa_r+0x2f4>
  15953. 8006afe: 3101 adds r1, #1
  15954. 8006b00: 6071 str r1, [r6, #4]
  15955. 8006b02: 0052 lsls r2, r2, #1
  15956. 8006b04: e787 b.n 8006a16 <_dtoa_r+0x256>
  15957. 8006b06: 07f1 lsls r1, r6, #31
  15958. 8006b08: d508 bpl.n 8006b1c <_dtoa_r+0x35c>
  15959. 8006b0a: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  15960. 8006b0e: e9d7 2300 ldrd r2, r3, [r7]
  15961. 8006b12: f7f9 fd41 bl 8000598 <__aeabi_dmul>
  15962. 8006b16: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  15963. 8006b1a: 3501 adds r5, #1
  15964. 8006b1c: 1076 asrs r6, r6, #1
  15965. 8006b1e: 3708 adds r7, #8
  15966. 8006b20: 2e00 cmp r6, #0
  15967. 8006b22: d1f0 bne.n 8006b06 <_dtoa_r+0x346>
  15968. 8006b24: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  15969. 8006b28: e9dd 0102 ldrd r0, r1, [sp, #8]
  15970. 8006b2c: f7f9 fe5e bl 80007ec <__aeabi_ddiv>
  15971. 8006b30: e9cd 0102 strd r0, r1, [sp, #8]
  15972. 8006b34: e01b b.n 8006b6e <_dtoa_r+0x3ae>
  15973. 8006b36: 2502 movs r5, #2
  15974. 8006b38: e7a0 b.n 8006a7c <_dtoa_r+0x2bc>
  15975. 8006b3a: f000 80a4 beq.w 8006c86 <_dtoa_r+0x4c6>
  15976. 8006b3e: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  15977. 8006b42: f1ca 0600 rsb r6, sl, #0
  15978. 8006b46: 4ba0 ldr r3, [pc, #640] ; (8006dc8 <_dtoa_r+0x608>)
  15979. 8006b48: f006 020f and.w r2, r6, #15
  15980. 8006b4c: eb03 03c2 add.w r3, r3, r2, lsl #3
  15981. 8006b50: e9d3 2300 ldrd r2, r3, [r3]
  15982. 8006b54: f7f9 fd20 bl 8000598 <__aeabi_dmul>
  15983. 8006b58: 2502 movs r5, #2
  15984. 8006b5a: 2300 movs r3, #0
  15985. 8006b5c: e9cd 0102 strd r0, r1, [sp, #8]
  15986. 8006b60: 4f9a ldr r7, [pc, #616] ; (8006dcc <_dtoa_r+0x60c>)
  15987. 8006b62: 1136 asrs r6, r6, #4
  15988. 8006b64: 2e00 cmp r6, #0
  15989. 8006b66: f040 8083 bne.w 8006c70 <_dtoa_r+0x4b0>
  15990. 8006b6a: 2b00 cmp r3, #0
  15991. 8006b6c: d1e0 bne.n 8006b30 <_dtoa_r+0x370>
  15992. 8006b6e: 9b0d ldr r3, [sp, #52] ; 0x34
  15993. 8006b70: 2b00 cmp r3, #0
  15994. 8006b72: f000 808a beq.w 8006c8a <_dtoa_r+0x4ca>
  15995. 8006b76: e9dd 2302 ldrd r2, r3, [sp, #8]
  15996. 8006b7a: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  15997. 8006b7e: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  15998. 8006b82: 2200 movs r2, #0
  15999. 8006b84: 4b92 ldr r3, [pc, #584] ; (8006dd0 <_dtoa_r+0x610>)
  16000. 8006b86: f7f9 ff79 bl 8000a7c <__aeabi_dcmplt>
  16001. 8006b8a: 2800 cmp r0, #0
  16002. 8006b8c: d07d beq.n 8006c8a <_dtoa_r+0x4ca>
  16003. 8006b8e: f1b8 0f00 cmp.w r8, #0
  16004. 8006b92: d07a beq.n 8006c8a <_dtoa_r+0x4ca>
  16005. 8006b94: 9b04 ldr r3, [sp, #16]
  16006. 8006b96: 2b00 cmp r3, #0
  16007. 8006b98: dd36 ble.n 8006c08 <_dtoa_r+0x448>
  16008. 8006b9a: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16009. 8006b9e: 2200 movs r2, #0
  16010. 8006ba0: 4b8c ldr r3, [pc, #560] ; (8006dd4 <_dtoa_r+0x614>)
  16011. 8006ba2: f7f9 fcf9 bl 8000598 <__aeabi_dmul>
  16012. 8006ba6: e9cd 0102 strd r0, r1, [sp, #8]
  16013. 8006baa: 9e04 ldr r6, [sp, #16]
  16014. 8006bac: f10a 37ff add.w r7, sl, #4294967295
  16015. 8006bb0: 3501 adds r5, #1
  16016. 8006bb2: 4628 mov r0, r5
  16017. 8006bb4: f7f9 fc86 bl 80004c4 <__aeabi_i2d>
  16018. 8006bb8: e9dd 2302 ldrd r2, r3, [sp, #8]
  16019. 8006bbc: f7f9 fcec bl 8000598 <__aeabi_dmul>
  16020. 8006bc0: 2200 movs r2, #0
  16021. 8006bc2: 4b85 ldr r3, [pc, #532] ; (8006dd8 <_dtoa_r+0x618>)
  16022. 8006bc4: f7f9 fb32 bl 800022c <__adddf3>
  16023. 8006bc8: f1a1 7550 sub.w r5, r1, #54525952 ; 0x3400000
  16024. 8006bcc: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16025. 8006bd0: 950b str r5, [sp, #44] ; 0x2c
  16026. 8006bd2: 2e00 cmp r6, #0
  16027. 8006bd4: d15c bne.n 8006c90 <_dtoa_r+0x4d0>
  16028. 8006bd6: e9dd 0102 ldrd r0, r1, [sp, #8]
  16029. 8006bda: 2200 movs r2, #0
  16030. 8006bdc: 4b7f ldr r3, [pc, #508] ; (8006ddc <_dtoa_r+0x61c>)
  16031. 8006bde: f7f9 fb23 bl 8000228 <__aeabi_dsub>
  16032. 8006be2: 9a0a ldr r2, [sp, #40] ; 0x28
  16033. 8006be4: 462b mov r3, r5
  16034. 8006be6: e9cd 0102 strd r0, r1, [sp, #8]
  16035. 8006bea: f7f9 ff65 bl 8000ab8 <__aeabi_dcmpgt>
  16036. 8006bee: 2800 cmp r0, #0
  16037. 8006bf0: f040 8281 bne.w 80070f6 <_dtoa_r+0x936>
  16038. 8006bf4: e9dd 0102 ldrd r0, r1, [sp, #8]
  16039. 8006bf8: 9a0a ldr r2, [sp, #40] ; 0x28
  16040. 8006bfa: f105 4300 add.w r3, r5, #2147483648 ; 0x80000000
  16041. 8006bfe: f7f9 ff3d bl 8000a7c <__aeabi_dcmplt>
  16042. 8006c02: 2800 cmp r0, #0
  16043. 8006c04: f040 8275 bne.w 80070f2 <_dtoa_r+0x932>
  16044. 8006c08: e9dd 230e ldrd r2, r3, [sp, #56] ; 0x38
  16045. 8006c0c: e9cd 2302 strd r2, r3, [sp, #8]
  16046. 8006c10: 9b13 ldr r3, [sp, #76] ; 0x4c
  16047. 8006c12: 2b00 cmp r3, #0
  16048. 8006c14: f2c0 814b blt.w 8006eae <_dtoa_r+0x6ee>
  16049. 8006c18: f1ba 0f0e cmp.w sl, #14
  16050. 8006c1c: f300 8147 bgt.w 8006eae <_dtoa_r+0x6ee>
  16051. 8006c20: 4b69 ldr r3, [pc, #420] ; (8006dc8 <_dtoa_r+0x608>)
  16052. 8006c22: eb03 03ca add.w r3, r3, sl, lsl #3
  16053. 8006c26: e9d3 2300 ldrd r2, r3, [r3]
  16054. 8006c2a: e9cd 2304 strd r2, r3, [sp, #16]
  16055. 8006c2e: 9b1f ldr r3, [sp, #124] ; 0x7c
  16056. 8006c30: 2b00 cmp r3, #0
  16057. 8006c32: f280 80d7 bge.w 8006de4 <_dtoa_r+0x624>
  16058. 8006c36: f1b8 0f00 cmp.w r8, #0
  16059. 8006c3a: f300 80d3 bgt.w 8006de4 <_dtoa_r+0x624>
  16060. 8006c3e: f040 8257 bne.w 80070f0 <_dtoa_r+0x930>
  16061. 8006c42: e9dd 0104 ldrd r0, r1, [sp, #16]
  16062. 8006c46: 2200 movs r2, #0
  16063. 8006c48: 4b64 ldr r3, [pc, #400] ; (8006ddc <_dtoa_r+0x61c>)
  16064. 8006c4a: f7f9 fca5 bl 8000598 <__aeabi_dmul>
  16065. 8006c4e: e9dd 2302 ldrd r2, r3, [sp, #8]
  16066. 8006c52: f7f9 ff27 bl 8000aa4 <__aeabi_dcmpge>
  16067. 8006c56: 4646 mov r6, r8
  16068. 8006c58: 4647 mov r7, r8
  16069. 8006c5a: 2800 cmp r0, #0
  16070. 8006c5c: f040 822d bne.w 80070ba <_dtoa_r+0x8fa>
  16071. 8006c60: 9b06 ldr r3, [sp, #24]
  16072. 8006c62: 9a06 ldr r2, [sp, #24]
  16073. 8006c64: 1c5d adds r5, r3, #1
  16074. 8006c66: 2331 movs r3, #49 ; 0x31
  16075. 8006c68: f10a 0a01 add.w sl, sl, #1
  16076. 8006c6c: 7013 strb r3, [r2, #0]
  16077. 8006c6e: e228 b.n 80070c2 <_dtoa_r+0x902>
  16078. 8006c70: 07f2 lsls r2, r6, #31
  16079. 8006c72: d505 bpl.n 8006c80 <_dtoa_r+0x4c0>
  16080. 8006c74: e9d7 2300 ldrd r2, r3, [r7]
  16081. 8006c78: f7f9 fc8e bl 8000598 <__aeabi_dmul>
  16082. 8006c7c: 2301 movs r3, #1
  16083. 8006c7e: 3501 adds r5, #1
  16084. 8006c80: 1076 asrs r6, r6, #1
  16085. 8006c82: 3708 adds r7, #8
  16086. 8006c84: e76e b.n 8006b64 <_dtoa_r+0x3a4>
  16087. 8006c86: 2502 movs r5, #2
  16088. 8006c88: e771 b.n 8006b6e <_dtoa_r+0x3ae>
  16089. 8006c8a: 4657 mov r7, sl
  16090. 8006c8c: 4646 mov r6, r8
  16091. 8006c8e: e790 b.n 8006bb2 <_dtoa_r+0x3f2>
  16092. 8006c90: 4b4d ldr r3, [pc, #308] ; (8006dc8 <_dtoa_r+0x608>)
  16093. 8006c92: eb03 03c6 add.w r3, r3, r6, lsl #3
  16094. 8006c96: e953 0102 ldrd r0, r1, [r3, #-8]
  16095. 8006c9a: 9b09 ldr r3, [sp, #36] ; 0x24
  16096. 8006c9c: 2b00 cmp r3, #0
  16097. 8006c9e: d048 beq.n 8006d32 <_dtoa_r+0x572>
  16098. 8006ca0: 4602 mov r2, r0
  16099. 8006ca2: 460b mov r3, r1
  16100. 8006ca4: 2000 movs r0, #0
  16101. 8006ca6: 494e ldr r1, [pc, #312] ; (8006de0 <_dtoa_r+0x620>)
  16102. 8006ca8: f7f9 fda0 bl 80007ec <__aeabi_ddiv>
  16103. 8006cac: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16104. 8006cb0: f7f9 faba bl 8000228 <__aeabi_dsub>
  16105. 8006cb4: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16106. 8006cb8: 9d06 ldr r5, [sp, #24]
  16107. 8006cba: e9dd 0102 ldrd r0, r1, [sp, #8]
  16108. 8006cbe: f7f9 ff1b bl 8000af8 <__aeabi_d2iz>
  16109. 8006cc2: 9011 str r0, [sp, #68] ; 0x44
  16110. 8006cc4: f7f9 fbfe bl 80004c4 <__aeabi_i2d>
  16111. 8006cc8: 4602 mov r2, r0
  16112. 8006cca: 460b mov r3, r1
  16113. 8006ccc: e9dd 0102 ldrd r0, r1, [sp, #8]
  16114. 8006cd0: f7f9 faaa bl 8000228 <__aeabi_dsub>
  16115. 8006cd4: 9b11 ldr r3, [sp, #68] ; 0x44
  16116. 8006cd6: e9cd 0102 strd r0, r1, [sp, #8]
  16117. 8006cda: 3330 adds r3, #48 ; 0x30
  16118. 8006cdc: f805 3b01 strb.w r3, [r5], #1
  16119. 8006ce0: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16120. 8006ce4: f7f9 feca bl 8000a7c <__aeabi_dcmplt>
  16121. 8006ce8: 2800 cmp r0, #0
  16122. 8006cea: d163 bne.n 8006db4 <_dtoa_r+0x5f4>
  16123. 8006cec: e9dd 2302 ldrd r2, r3, [sp, #8]
  16124. 8006cf0: 2000 movs r0, #0
  16125. 8006cf2: 4937 ldr r1, [pc, #220] ; (8006dd0 <_dtoa_r+0x610>)
  16126. 8006cf4: f7f9 fa98 bl 8000228 <__aeabi_dsub>
  16127. 8006cf8: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16128. 8006cfc: f7f9 febe bl 8000a7c <__aeabi_dcmplt>
  16129. 8006d00: 2800 cmp r0, #0
  16130. 8006d02: f040 80b5 bne.w 8006e70 <_dtoa_r+0x6b0>
  16131. 8006d06: 9b06 ldr r3, [sp, #24]
  16132. 8006d08: 1aeb subs r3, r5, r3
  16133. 8006d0a: 429e cmp r6, r3
  16134. 8006d0c: f77f af7c ble.w 8006c08 <_dtoa_r+0x448>
  16135. 8006d10: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16136. 8006d14: 2200 movs r2, #0
  16137. 8006d16: 4b2f ldr r3, [pc, #188] ; (8006dd4 <_dtoa_r+0x614>)
  16138. 8006d18: f7f9 fc3e bl 8000598 <__aeabi_dmul>
  16139. 8006d1c: 2200 movs r2, #0
  16140. 8006d1e: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16141. 8006d22: e9dd 0102 ldrd r0, r1, [sp, #8]
  16142. 8006d26: 4b2b ldr r3, [pc, #172] ; (8006dd4 <_dtoa_r+0x614>)
  16143. 8006d28: f7f9 fc36 bl 8000598 <__aeabi_dmul>
  16144. 8006d2c: e9cd 0102 strd r0, r1, [sp, #8]
  16145. 8006d30: e7c3 b.n 8006cba <_dtoa_r+0x4fa>
  16146. 8006d32: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16147. 8006d36: f7f9 fc2f bl 8000598 <__aeabi_dmul>
  16148. 8006d3a: 9b06 ldr r3, [sp, #24]
  16149. 8006d3c: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16150. 8006d40: 199d adds r5, r3, r6
  16151. 8006d42: 461e mov r6, r3
  16152. 8006d44: e9dd 0102 ldrd r0, r1, [sp, #8]
  16153. 8006d48: f7f9 fed6 bl 8000af8 <__aeabi_d2iz>
  16154. 8006d4c: 9011 str r0, [sp, #68] ; 0x44
  16155. 8006d4e: f7f9 fbb9 bl 80004c4 <__aeabi_i2d>
  16156. 8006d52: 4602 mov r2, r0
  16157. 8006d54: 460b mov r3, r1
  16158. 8006d56: e9dd 0102 ldrd r0, r1, [sp, #8]
  16159. 8006d5a: f7f9 fa65 bl 8000228 <__aeabi_dsub>
  16160. 8006d5e: 9b11 ldr r3, [sp, #68] ; 0x44
  16161. 8006d60: e9cd 0102 strd r0, r1, [sp, #8]
  16162. 8006d64: 3330 adds r3, #48 ; 0x30
  16163. 8006d66: f806 3b01 strb.w r3, [r6], #1
  16164. 8006d6a: 42ae cmp r6, r5
  16165. 8006d6c: f04f 0200 mov.w r2, #0
  16166. 8006d70: d124 bne.n 8006dbc <_dtoa_r+0x5fc>
  16167. 8006d72: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16168. 8006d76: 4b1a ldr r3, [pc, #104] ; (8006de0 <_dtoa_r+0x620>)
  16169. 8006d78: f7f9 fa58 bl 800022c <__adddf3>
  16170. 8006d7c: 4602 mov r2, r0
  16171. 8006d7e: 460b mov r3, r1
  16172. 8006d80: e9dd 0102 ldrd r0, r1, [sp, #8]
  16173. 8006d84: f7f9 fe98 bl 8000ab8 <__aeabi_dcmpgt>
  16174. 8006d88: 2800 cmp r0, #0
  16175. 8006d8a: d171 bne.n 8006e70 <_dtoa_r+0x6b0>
  16176. 8006d8c: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16177. 8006d90: 2000 movs r0, #0
  16178. 8006d92: 4913 ldr r1, [pc, #76] ; (8006de0 <_dtoa_r+0x620>)
  16179. 8006d94: f7f9 fa48 bl 8000228 <__aeabi_dsub>
  16180. 8006d98: 4602 mov r2, r0
  16181. 8006d9a: 460b mov r3, r1
  16182. 8006d9c: e9dd 0102 ldrd r0, r1, [sp, #8]
  16183. 8006da0: f7f9 fe6c bl 8000a7c <__aeabi_dcmplt>
  16184. 8006da4: 2800 cmp r0, #0
  16185. 8006da6: f43f af2f beq.w 8006c08 <_dtoa_r+0x448>
  16186. 8006daa: f815 3c01 ldrb.w r3, [r5, #-1]
  16187. 8006dae: 1e6a subs r2, r5, #1
  16188. 8006db0: 2b30 cmp r3, #48 ; 0x30
  16189. 8006db2: d001 beq.n 8006db8 <_dtoa_r+0x5f8>
  16190. 8006db4: 46ba mov sl, r7
  16191. 8006db6: e04a b.n 8006e4e <_dtoa_r+0x68e>
  16192. 8006db8: 4615 mov r5, r2
  16193. 8006dba: e7f6 b.n 8006daa <_dtoa_r+0x5ea>
  16194. 8006dbc: 4b05 ldr r3, [pc, #20] ; (8006dd4 <_dtoa_r+0x614>)
  16195. 8006dbe: f7f9 fbeb bl 8000598 <__aeabi_dmul>
  16196. 8006dc2: e9cd 0102 strd r0, r1, [sp, #8]
  16197. 8006dc6: e7bd b.n 8006d44 <_dtoa_r+0x584>
  16198. 8006dc8: 080086c8 .word 0x080086c8
  16199. 8006dcc: 080086a0 .word 0x080086a0
  16200. 8006dd0: 3ff00000 .word 0x3ff00000
  16201. 8006dd4: 40240000 .word 0x40240000
  16202. 8006dd8: 401c0000 .word 0x401c0000
  16203. 8006ddc: 40140000 .word 0x40140000
  16204. 8006de0: 3fe00000 .word 0x3fe00000
  16205. 8006de4: 9d06 ldr r5, [sp, #24]
  16206. 8006de6: e9dd 6702 ldrd r6, r7, [sp, #8]
  16207. 8006dea: e9dd 2304 ldrd r2, r3, [sp, #16]
  16208. 8006dee: 4630 mov r0, r6
  16209. 8006df0: 4639 mov r1, r7
  16210. 8006df2: f7f9 fcfb bl 80007ec <__aeabi_ddiv>
  16211. 8006df6: f7f9 fe7f bl 8000af8 <__aeabi_d2iz>
  16212. 8006dfa: 4681 mov r9, r0
  16213. 8006dfc: f7f9 fb62 bl 80004c4 <__aeabi_i2d>
  16214. 8006e00: e9dd 2304 ldrd r2, r3, [sp, #16]
  16215. 8006e04: f7f9 fbc8 bl 8000598 <__aeabi_dmul>
  16216. 8006e08: 4602 mov r2, r0
  16217. 8006e0a: 460b mov r3, r1
  16218. 8006e0c: 4630 mov r0, r6
  16219. 8006e0e: 4639 mov r1, r7
  16220. 8006e10: f7f9 fa0a bl 8000228 <__aeabi_dsub>
  16221. 8006e14: f109 0630 add.w r6, r9, #48 ; 0x30
  16222. 8006e18: f805 6b01 strb.w r6, [r5], #1
  16223. 8006e1c: 9e06 ldr r6, [sp, #24]
  16224. 8006e1e: 4602 mov r2, r0
  16225. 8006e20: 1bae subs r6, r5, r6
  16226. 8006e22: 45b0 cmp r8, r6
  16227. 8006e24: 460b mov r3, r1
  16228. 8006e26: d135 bne.n 8006e94 <_dtoa_r+0x6d4>
  16229. 8006e28: f7f9 fa00 bl 800022c <__adddf3>
  16230. 8006e2c: e9dd 2304 ldrd r2, r3, [sp, #16]
  16231. 8006e30: 4606 mov r6, r0
  16232. 8006e32: 460f mov r7, r1
  16233. 8006e34: f7f9 fe40 bl 8000ab8 <__aeabi_dcmpgt>
  16234. 8006e38: b9c8 cbnz r0, 8006e6e <_dtoa_r+0x6ae>
  16235. 8006e3a: e9dd 2304 ldrd r2, r3, [sp, #16]
  16236. 8006e3e: 4630 mov r0, r6
  16237. 8006e40: 4639 mov r1, r7
  16238. 8006e42: f7f9 fe11 bl 8000a68 <__aeabi_dcmpeq>
  16239. 8006e46: b110 cbz r0, 8006e4e <_dtoa_r+0x68e>
  16240. 8006e48: f019 0f01 tst.w r9, #1
  16241. 8006e4c: d10f bne.n 8006e6e <_dtoa_r+0x6ae>
  16242. 8006e4e: 4659 mov r1, fp
  16243. 8006e50: 4620 mov r0, r4
  16244. 8006e52: f000 fcaa bl 80077aa <_Bfree>
  16245. 8006e56: 2300 movs r3, #0
  16246. 8006e58: 9a20 ldr r2, [sp, #128] ; 0x80
  16247. 8006e5a: 702b strb r3, [r5, #0]
  16248. 8006e5c: f10a 0301 add.w r3, sl, #1
  16249. 8006e60: 6013 str r3, [r2, #0]
  16250. 8006e62: 9b22 ldr r3, [sp, #136] ; 0x88
  16251. 8006e64: 2b00 cmp r3, #0
  16252. 8006e66: f43f acf3 beq.w 8006850 <_dtoa_r+0x90>
  16253. 8006e6a: 601d str r5, [r3, #0]
  16254. 8006e6c: e4f0 b.n 8006850 <_dtoa_r+0x90>
  16255. 8006e6e: 4657 mov r7, sl
  16256. 8006e70: f815 2c01 ldrb.w r2, [r5, #-1]
  16257. 8006e74: 1e6b subs r3, r5, #1
  16258. 8006e76: 2a39 cmp r2, #57 ; 0x39
  16259. 8006e78: d106 bne.n 8006e88 <_dtoa_r+0x6c8>
  16260. 8006e7a: 9a06 ldr r2, [sp, #24]
  16261. 8006e7c: 429a cmp r2, r3
  16262. 8006e7e: d107 bne.n 8006e90 <_dtoa_r+0x6d0>
  16263. 8006e80: 2330 movs r3, #48 ; 0x30
  16264. 8006e82: 7013 strb r3, [r2, #0]
  16265. 8006e84: 4613 mov r3, r2
  16266. 8006e86: 3701 adds r7, #1
  16267. 8006e88: 781a ldrb r2, [r3, #0]
  16268. 8006e8a: 3201 adds r2, #1
  16269. 8006e8c: 701a strb r2, [r3, #0]
  16270. 8006e8e: e791 b.n 8006db4 <_dtoa_r+0x5f4>
  16271. 8006e90: 461d mov r5, r3
  16272. 8006e92: e7ed b.n 8006e70 <_dtoa_r+0x6b0>
  16273. 8006e94: 2200 movs r2, #0
  16274. 8006e96: 4b99 ldr r3, [pc, #612] ; (80070fc <_dtoa_r+0x93c>)
  16275. 8006e98: f7f9 fb7e bl 8000598 <__aeabi_dmul>
  16276. 8006e9c: 2200 movs r2, #0
  16277. 8006e9e: 2300 movs r3, #0
  16278. 8006ea0: 4606 mov r6, r0
  16279. 8006ea2: 460f mov r7, r1
  16280. 8006ea4: f7f9 fde0 bl 8000a68 <__aeabi_dcmpeq>
  16281. 8006ea8: 2800 cmp r0, #0
  16282. 8006eaa: d09e beq.n 8006dea <_dtoa_r+0x62a>
  16283. 8006eac: e7cf b.n 8006e4e <_dtoa_r+0x68e>
  16284. 8006eae: 9a09 ldr r2, [sp, #36] ; 0x24
  16285. 8006eb0: 2a00 cmp r2, #0
  16286. 8006eb2: f000 8088 beq.w 8006fc6 <_dtoa_r+0x806>
  16287. 8006eb6: 9a1e ldr r2, [sp, #120] ; 0x78
  16288. 8006eb8: 2a01 cmp r2, #1
  16289. 8006eba: dc6d bgt.n 8006f98 <_dtoa_r+0x7d8>
  16290. 8006ebc: 9a10 ldr r2, [sp, #64] ; 0x40
  16291. 8006ebe: 2a00 cmp r2, #0
  16292. 8006ec0: d066 beq.n 8006f90 <_dtoa_r+0x7d0>
  16293. 8006ec2: f203 4333 addw r3, r3, #1075 ; 0x433
  16294. 8006ec6: 464d mov r5, r9
  16295. 8006ec8: 9e08 ldr r6, [sp, #32]
  16296. 8006eca: 9a07 ldr r2, [sp, #28]
  16297. 8006ecc: 2101 movs r1, #1
  16298. 8006ece: 441a add r2, r3
  16299. 8006ed0: 4620 mov r0, r4
  16300. 8006ed2: 4499 add r9, r3
  16301. 8006ed4: 9207 str r2, [sp, #28]
  16302. 8006ed6: f000 fd08 bl 80078ea <__i2b>
  16303. 8006eda: 4607 mov r7, r0
  16304. 8006edc: 2d00 cmp r5, #0
  16305. 8006ede: dd0b ble.n 8006ef8 <_dtoa_r+0x738>
  16306. 8006ee0: 9b07 ldr r3, [sp, #28]
  16307. 8006ee2: 2b00 cmp r3, #0
  16308. 8006ee4: dd08 ble.n 8006ef8 <_dtoa_r+0x738>
  16309. 8006ee6: 42ab cmp r3, r5
  16310. 8006ee8: bfa8 it ge
  16311. 8006eea: 462b movge r3, r5
  16312. 8006eec: 9a07 ldr r2, [sp, #28]
  16313. 8006eee: eba9 0903 sub.w r9, r9, r3
  16314. 8006ef2: 1aed subs r5, r5, r3
  16315. 8006ef4: 1ad3 subs r3, r2, r3
  16316. 8006ef6: 9307 str r3, [sp, #28]
  16317. 8006ef8: 9b08 ldr r3, [sp, #32]
  16318. 8006efa: b1eb cbz r3, 8006f38 <_dtoa_r+0x778>
  16319. 8006efc: 9b09 ldr r3, [sp, #36] ; 0x24
  16320. 8006efe: 2b00 cmp r3, #0
  16321. 8006f00: d065 beq.n 8006fce <_dtoa_r+0x80e>
  16322. 8006f02: b18e cbz r6, 8006f28 <_dtoa_r+0x768>
  16323. 8006f04: 4639 mov r1, r7
  16324. 8006f06: 4632 mov r2, r6
  16325. 8006f08: 4620 mov r0, r4
  16326. 8006f0a: f000 fd8d bl 8007a28 <__pow5mult>
  16327. 8006f0e: 465a mov r2, fp
  16328. 8006f10: 4601 mov r1, r0
  16329. 8006f12: 4607 mov r7, r0
  16330. 8006f14: 4620 mov r0, r4
  16331. 8006f16: f000 fcf1 bl 80078fc <__multiply>
  16332. 8006f1a: 4659 mov r1, fp
  16333. 8006f1c: 900a str r0, [sp, #40] ; 0x28
  16334. 8006f1e: 4620 mov r0, r4
  16335. 8006f20: f000 fc43 bl 80077aa <_Bfree>
  16336. 8006f24: 9b0a ldr r3, [sp, #40] ; 0x28
  16337. 8006f26: 469b mov fp, r3
  16338. 8006f28: 9b08 ldr r3, [sp, #32]
  16339. 8006f2a: 1b9a subs r2, r3, r6
  16340. 8006f2c: d004 beq.n 8006f38 <_dtoa_r+0x778>
  16341. 8006f2e: 4659 mov r1, fp
  16342. 8006f30: 4620 mov r0, r4
  16343. 8006f32: f000 fd79 bl 8007a28 <__pow5mult>
  16344. 8006f36: 4683 mov fp, r0
  16345. 8006f38: 2101 movs r1, #1
  16346. 8006f3a: 4620 mov r0, r4
  16347. 8006f3c: f000 fcd5 bl 80078ea <__i2b>
  16348. 8006f40: 9b0c ldr r3, [sp, #48] ; 0x30
  16349. 8006f42: 4606 mov r6, r0
  16350. 8006f44: 2b00 cmp r3, #0
  16351. 8006f46: f000 81c6 beq.w 80072d6 <_dtoa_r+0xb16>
  16352. 8006f4a: 461a mov r2, r3
  16353. 8006f4c: 4601 mov r1, r0
  16354. 8006f4e: 4620 mov r0, r4
  16355. 8006f50: f000 fd6a bl 8007a28 <__pow5mult>
  16356. 8006f54: 9b1e ldr r3, [sp, #120] ; 0x78
  16357. 8006f56: 4606 mov r6, r0
  16358. 8006f58: 2b01 cmp r3, #1
  16359. 8006f5a: dc3e bgt.n 8006fda <_dtoa_r+0x81a>
  16360. 8006f5c: 9b02 ldr r3, [sp, #8]
  16361. 8006f5e: 2b00 cmp r3, #0
  16362. 8006f60: d137 bne.n 8006fd2 <_dtoa_r+0x812>
  16363. 8006f62: 9b03 ldr r3, [sp, #12]
  16364. 8006f64: f3c3 0313 ubfx r3, r3, #0, #20
  16365. 8006f68: 2b00 cmp r3, #0
  16366. 8006f6a: d134 bne.n 8006fd6 <_dtoa_r+0x816>
  16367. 8006f6c: 9b03 ldr r3, [sp, #12]
  16368. 8006f6e: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  16369. 8006f72: 0d1b lsrs r3, r3, #20
  16370. 8006f74: 051b lsls r3, r3, #20
  16371. 8006f76: b12b cbz r3, 8006f84 <_dtoa_r+0x7c4>
  16372. 8006f78: 9b07 ldr r3, [sp, #28]
  16373. 8006f7a: f109 0901 add.w r9, r9, #1
  16374. 8006f7e: 3301 adds r3, #1
  16375. 8006f80: 9307 str r3, [sp, #28]
  16376. 8006f82: 2301 movs r3, #1
  16377. 8006f84: 9308 str r3, [sp, #32]
  16378. 8006f86: 9b0c ldr r3, [sp, #48] ; 0x30
  16379. 8006f88: 2b00 cmp r3, #0
  16380. 8006f8a: d128 bne.n 8006fde <_dtoa_r+0x81e>
  16381. 8006f8c: 2001 movs r0, #1
  16382. 8006f8e: e02e b.n 8006fee <_dtoa_r+0x82e>
  16383. 8006f90: 9b12 ldr r3, [sp, #72] ; 0x48
  16384. 8006f92: f1c3 0336 rsb r3, r3, #54 ; 0x36
  16385. 8006f96: e796 b.n 8006ec6 <_dtoa_r+0x706>
  16386. 8006f98: 9b08 ldr r3, [sp, #32]
  16387. 8006f9a: f108 36ff add.w r6, r8, #4294967295
  16388. 8006f9e: 42b3 cmp r3, r6
  16389. 8006fa0: bfb7 itett lt
  16390. 8006fa2: 9b08 ldrlt r3, [sp, #32]
  16391. 8006fa4: 1b9e subge r6, r3, r6
  16392. 8006fa6: 1af2 sublt r2, r6, r3
  16393. 8006fa8: 9b0c ldrlt r3, [sp, #48] ; 0x30
  16394. 8006faa: bfbf itttt lt
  16395. 8006fac: 9608 strlt r6, [sp, #32]
  16396. 8006fae: 189b addlt r3, r3, r2
  16397. 8006fb0: 930c strlt r3, [sp, #48] ; 0x30
  16398. 8006fb2: 2600 movlt r6, #0
  16399. 8006fb4: f1b8 0f00 cmp.w r8, #0
  16400. 8006fb8: bfb9 ittee lt
  16401. 8006fba: eba9 0508 sublt.w r5, r9, r8
  16402. 8006fbe: 2300 movlt r3, #0
  16403. 8006fc0: 464d movge r5, r9
  16404. 8006fc2: 4643 movge r3, r8
  16405. 8006fc4: e781 b.n 8006eca <_dtoa_r+0x70a>
  16406. 8006fc6: 9e08 ldr r6, [sp, #32]
  16407. 8006fc8: 464d mov r5, r9
  16408. 8006fca: 9f09 ldr r7, [sp, #36] ; 0x24
  16409. 8006fcc: e786 b.n 8006edc <_dtoa_r+0x71c>
  16410. 8006fce: 9a08 ldr r2, [sp, #32]
  16411. 8006fd0: e7ad b.n 8006f2e <_dtoa_r+0x76e>
  16412. 8006fd2: 2300 movs r3, #0
  16413. 8006fd4: e7d6 b.n 8006f84 <_dtoa_r+0x7c4>
  16414. 8006fd6: 9b02 ldr r3, [sp, #8]
  16415. 8006fd8: e7d4 b.n 8006f84 <_dtoa_r+0x7c4>
  16416. 8006fda: 2300 movs r3, #0
  16417. 8006fdc: 9308 str r3, [sp, #32]
  16418. 8006fde: 6933 ldr r3, [r6, #16]
  16419. 8006fe0: eb06 0383 add.w r3, r6, r3, lsl #2
  16420. 8006fe4: 6918 ldr r0, [r3, #16]
  16421. 8006fe6: f000 fc32 bl 800784e <__hi0bits>
  16422. 8006fea: f1c0 0020 rsb r0, r0, #32
  16423. 8006fee: 9b07 ldr r3, [sp, #28]
  16424. 8006ff0: 4418 add r0, r3
  16425. 8006ff2: f010 001f ands.w r0, r0, #31
  16426. 8006ff6: d047 beq.n 8007088 <_dtoa_r+0x8c8>
  16427. 8006ff8: f1c0 0320 rsb r3, r0, #32
  16428. 8006ffc: 2b04 cmp r3, #4
  16429. 8006ffe: dd3b ble.n 8007078 <_dtoa_r+0x8b8>
  16430. 8007000: 9b07 ldr r3, [sp, #28]
  16431. 8007002: f1c0 001c rsb r0, r0, #28
  16432. 8007006: 4481 add r9, r0
  16433. 8007008: 4405 add r5, r0
  16434. 800700a: 4403 add r3, r0
  16435. 800700c: 9307 str r3, [sp, #28]
  16436. 800700e: f1b9 0f00 cmp.w r9, #0
  16437. 8007012: dd05 ble.n 8007020 <_dtoa_r+0x860>
  16438. 8007014: 4659 mov r1, fp
  16439. 8007016: 464a mov r2, r9
  16440. 8007018: 4620 mov r0, r4
  16441. 800701a: f000 fd53 bl 8007ac4 <__lshift>
  16442. 800701e: 4683 mov fp, r0
  16443. 8007020: 9b07 ldr r3, [sp, #28]
  16444. 8007022: 2b00 cmp r3, #0
  16445. 8007024: dd05 ble.n 8007032 <_dtoa_r+0x872>
  16446. 8007026: 4631 mov r1, r6
  16447. 8007028: 461a mov r2, r3
  16448. 800702a: 4620 mov r0, r4
  16449. 800702c: f000 fd4a bl 8007ac4 <__lshift>
  16450. 8007030: 4606 mov r6, r0
  16451. 8007032: 9b0d ldr r3, [sp, #52] ; 0x34
  16452. 8007034: b353 cbz r3, 800708c <_dtoa_r+0x8cc>
  16453. 8007036: 4631 mov r1, r6
  16454. 8007038: 4658 mov r0, fp
  16455. 800703a: f000 fd97 bl 8007b6c <__mcmp>
  16456. 800703e: 2800 cmp r0, #0
  16457. 8007040: da24 bge.n 800708c <_dtoa_r+0x8cc>
  16458. 8007042: 2300 movs r3, #0
  16459. 8007044: 4659 mov r1, fp
  16460. 8007046: 220a movs r2, #10
  16461. 8007048: 4620 mov r0, r4
  16462. 800704a: f000 fbc5 bl 80077d8 <__multadd>
  16463. 800704e: 9b09 ldr r3, [sp, #36] ; 0x24
  16464. 8007050: f10a 3aff add.w sl, sl, #4294967295
  16465. 8007054: 4683 mov fp, r0
  16466. 8007056: 2b00 cmp r3, #0
  16467. 8007058: f000 8144 beq.w 80072e4 <_dtoa_r+0xb24>
  16468. 800705c: 2300 movs r3, #0
  16469. 800705e: 4639 mov r1, r7
  16470. 8007060: 220a movs r2, #10
  16471. 8007062: 4620 mov r0, r4
  16472. 8007064: f000 fbb8 bl 80077d8 <__multadd>
  16473. 8007068: 9b04 ldr r3, [sp, #16]
  16474. 800706a: 4607 mov r7, r0
  16475. 800706c: 2b00 cmp r3, #0
  16476. 800706e: dc4d bgt.n 800710c <_dtoa_r+0x94c>
  16477. 8007070: 9b1e ldr r3, [sp, #120] ; 0x78
  16478. 8007072: 2b02 cmp r3, #2
  16479. 8007074: dd4a ble.n 800710c <_dtoa_r+0x94c>
  16480. 8007076: e011 b.n 800709c <_dtoa_r+0x8dc>
  16481. 8007078: d0c9 beq.n 800700e <_dtoa_r+0x84e>
  16482. 800707a: 9a07 ldr r2, [sp, #28]
  16483. 800707c: 331c adds r3, #28
  16484. 800707e: 441a add r2, r3
  16485. 8007080: 4499 add r9, r3
  16486. 8007082: 441d add r5, r3
  16487. 8007084: 4613 mov r3, r2
  16488. 8007086: e7c1 b.n 800700c <_dtoa_r+0x84c>
  16489. 8007088: 4603 mov r3, r0
  16490. 800708a: e7f6 b.n 800707a <_dtoa_r+0x8ba>
  16491. 800708c: f1b8 0f00 cmp.w r8, #0
  16492. 8007090: dc36 bgt.n 8007100 <_dtoa_r+0x940>
  16493. 8007092: 9b1e ldr r3, [sp, #120] ; 0x78
  16494. 8007094: 2b02 cmp r3, #2
  16495. 8007096: dd33 ble.n 8007100 <_dtoa_r+0x940>
  16496. 8007098: f8cd 8010 str.w r8, [sp, #16]
  16497. 800709c: 9b04 ldr r3, [sp, #16]
  16498. 800709e: b963 cbnz r3, 80070ba <_dtoa_r+0x8fa>
  16499. 80070a0: 4631 mov r1, r6
  16500. 80070a2: 2205 movs r2, #5
  16501. 80070a4: 4620 mov r0, r4
  16502. 80070a6: f000 fb97 bl 80077d8 <__multadd>
  16503. 80070aa: 4601 mov r1, r0
  16504. 80070ac: 4606 mov r6, r0
  16505. 80070ae: 4658 mov r0, fp
  16506. 80070b0: f000 fd5c bl 8007b6c <__mcmp>
  16507. 80070b4: 2800 cmp r0, #0
  16508. 80070b6: f73f add3 bgt.w 8006c60 <_dtoa_r+0x4a0>
  16509. 80070ba: 9b1f ldr r3, [sp, #124] ; 0x7c
  16510. 80070bc: 9d06 ldr r5, [sp, #24]
  16511. 80070be: ea6f 0a03 mvn.w sl, r3
  16512. 80070c2: f04f 0900 mov.w r9, #0
  16513. 80070c6: 4631 mov r1, r6
  16514. 80070c8: 4620 mov r0, r4
  16515. 80070ca: f000 fb6e bl 80077aa <_Bfree>
  16516. 80070ce: 2f00 cmp r7, #0
  16517. 80070d0: f43f aebd beq.w 8006e4e <_dtoa_r+0x68e>
  16518. 80070d4: f1b9 0f00 cmp.w r9, #0
  16519. 80070d8: d005 beq.n 80070e6 <_dtoa_r+0x926>
  16520. 80070da: 45b9 cmp r9, r7
  16521. 80070dc: d003 beq.n 80070e6 <_dtoa_r+0x926>
  16522. 80070de: 4649 mov r1, r9
  16523. 80070e0: 4620 mov r0, r4
  16524. 80070e2: f000 fb62 bl 80077aa <_Bfree>
  16525. 80070e6: 4639 mov r1, r7
  16526. 80070e8: 4620 mov r0, r4
  16527. 80070ea: f000 fb5e bl 80077aa <_Bfree>
  16528. 80070ee: e6ae b.n 8006e4e <_dtoa_r+0x68e>
  16529. 80070f0: 2600 movs r6, #0
  16530. 80070f2: 4637 mov r7, r6
  16531. 80070f4: e7e1 b.n 80070ba <_dtoa_r+0x8fa>
  16532. 80070f6: 46ba mov sl, r7
  16533. 80070f8: 4637 mov r7, r6
  16534. 80070fa: e5b1 b.n 8006c60 <_dtoa_r+0x4a0>
  16535. 80070fc: 40240000 .word 0x40240000
  16536. 8007100: 9b09 ldr r3, [sp, #36] ; 0x24
  16537. 8007102: f8cd 8010 str.w r8, [sp, #16]
  16538. 8007106: 2b00 cmp r3, #0
  16539. 8007108: f000 80f3 beq.w 80072f2 <_dtoa_r+0xb32>
  16540. 800710c: 2d00 cmp r5, #0
  16541. 800710e: dd05 ble.n 800711c <_dtoa_r+0x95c>
  16542. 8007110: 4639 mov r1, r7
  16543. 8007112: 462a mov r2, r5
  16544. 8007114: 4620 mov r0, r4
  16545. 8007116: f000 fcd5 bl 8007ac4 <__lshift>
  16546. 800711a: 4607 mov r7, r0
  16547. 800711c: 9b08 ldr r3, [sp, #32]
  16548. 800711e: 2b00 cmp r3, #0
  16549. 8007120: d04c beq.n 80071bc <_dtoa_r+0x9fc>
  16550. 8007122: 6879 ldr r1, [r7, #4]
  16551. 8007124: 4620 mov r0, r4
  16552. 8007126: f000 fb0c bl 8007742 <_Balloc>
  16553. 800712a: 4605 mov r5, r0
  16554. 800712c: 693a ldr r2, [r7, #16]
  16555. 800712e: f107 010c add.w r1, r7, #12
  16556. 8007132: 3202 adds r2, #2
  16557. 8007134: 0092 lsls r2, r2, #2
  16558. 8007136: 300c adds r0, #12
  16559. 8007138: f000 faf8 bl 800772c <memcpy>
  16560. 800713c: 2201 movs r2, #1
  16561. 800713e: 4629 mov r1, r5
  16562. 8007140: 4620 mov r0, r4
  16563. 8007142: f000 fcbf bl 8007ac4 <__lshift>
  16564. 8007146: 46b9 mov r9, r7
  16565. 8007148: 4607 mov r7, r0
  16566. 800714a: 9b06 ldr r3, [sp, #24]
  16567. 800714c: 9307 str r3, [sp, #28]
  16568. 800714e: 9b02 ldr r3, [sp, #8]
  16569. 8007150: f003 0301 and.w r3, r3, #1
  16570. 8007154: 9308 str r3, [sp, #32]
  16571. 8007156: 4631 mov r1, r6
  16572. 8007158: 4658 mov r0, fp
  16573. 800715a: f7ff faa1 bl 80066a0 <quorem>
  16574. 800715e: 4649 mov r1, r9
  16575. 8007160: 4605 mov r5, r0
  16576. 8007162: f100 0830 add.w r8, r0, #48 ; 0x30
  16577. 8007166: 4658 mov r0, fp
  16578. 8007168: f000 fd00 bl 8007b6c <__mcmp>
  16579. 800716c: 463a mov r2, r7
  16580. 800716e: 9002 str r0, [sp, #8]
  16581. 8007170: 4631 mov r1, r6
  16582. 8007172: 4620 mov r0, r4
  16583. 8007174: f000 fd14 bl 8007ba0 <__mdiff>
  16584. 8007178: 68c3 ldr r3, [r0, #12]
  16585. 800717a: 4602 mov r2, r0
  16586. 800717c: bb03 cbnz r3, 80071c0 <_dtoa_r+0xa00>
  16587. 800717e: 4601 mov r1, r0
  16588. 8007180: 9009 str r0, [sp, #36] ; 0x24
  16589. 8007182: 4658 mov r0, fp
  16590. 8007184: f000 fcf2 bl 8007b6c <__mcmp>
  16591. 8007188: 4603 mov r3, r0
  16592. 800718a: 9a09 ldr r2, [sp, #36] ; 0x24
  16593. 800718c: 4611 mov r1, r2
  16594. 800718e: 4620 mov r0, r4
  16595. 8007190: 9309 str r3, [sp, #36] ; 0x24
  16596. 8007192: f000 fb0a bl 80077aa <_Bfree>
  16597. 8007196: 9b09 ldr r3, [sp, #36] ; 0x24
  16598. 8007198: b9a3 cbnz r3, 80071c4 <_dtoa_r+0xa04>
  16599. 800719a: 9a1e ldr r2, [sp, #120] ; 0x78
  16600. 800719c: b992 cbnz r2, 80071c4 <_dtoa_r+0xa04>
  16601. 800719e: 9a08 ldr r2, [sp, #32]
  16602. 80071a0: b982 cbnz r2, 80071c4 <_dtoa_r+0xa04>
  16603. 80071a2: f1b8 0f39 cmp.w r8, #57 ; 0x39
  16604. 80071a6: d029 beq.n 80071fc <_dtoa_r+0xa3c>
  16605. 80071a8: 9b02 ldr r3, [sp, #8]
  16606. 80071aa: 2b00 cmp r3, #0
  16607. 80071ac: dd01 ble.n 80071b2 <_dtoa_r+0x9f2>
  16608. 80071ae: f105 0831 add.w r8, r5, #49 ; 0x31
  16609. 80071b2: 9b07 ldr r3, [sp, #28]
  16610. 80071b4: 1c5d adds r5, r3, #1
  16611. 80071b6: f883 8000 strb.w r8, [r3]
  16612. 80071ba: e784 b.n 80070c6 <_dtoa_r+0x906>
  16613. 80071bc: 4638 mov r0, r7
  16614. 80071be: e7c2 b.n 8007146 <_dtoa_r+0x986>
  16615. 80071c0: 2301 movs r3, #1
  16616. 80071c2: e7e3 b.n 800718c <_dtoa_r+0x9cc>
  16617. 80071c4: 9a02 ldr r2, [sp, #8]
  16618. 80071c6: 2a00 cmp r2, #0
  16619. 80071c8: db04 blt.n 80071d4 <_dtoa_r+0xa14>
  16620. 80071ca: d123 bne.n 8007214 <_dtoa_r+0xa54>
  16621. 80071cc: 9a1e ldr r2, [sp, #120] ; 0x78
  16622. 80071ce: bb0a cbnz r2, 8007214 <_dtoa_r+0xa54>
  16623. 80071d0: 9a08 ldr r2, [sp, #32]
  16624. 80071d2: b9fa cbnz r2, 8007214 <_dtoa_r+0xa54>
  16625. 80071d4: 2b00 cmp r3, #0
  16626. 80071d6: ddec ble.n 80071b2 <_dtoa_r+0x9f2>
  16627. 80071d8: 4659 mov r1, fp
  16628. 80071da: 2201 movs r2, #1
  16629. 80071dc: 4620 mov r0, r4
  16630. 80071de: f000 fc71 bl 8007ac4 <__lshift>
  16631. 80071e2: 4631 mov r1, r6
  16632. 80071e4: 4683 mov fp, r0
  16633. 80071e6: f000 fcc1 bl 8007b6c <__mcmp>
  16634. 80071ea: 2800 cmp r0, #0
  16635. 80071ec: dc03 bgt.n 80071f6 <_dtoa_r+0xa36>
  16636. 80071ee: d1e0 bne.n 80071b2 <_dtoa_r+0x9f2>
  16637. 80071f0: f018 0f01 tst.w r8, #1
  16638. 80071f4: d0dd beq.n 80071b2 <_dtoa_r+0x9f2>
  16639. 80071f6: f1b8 0f39 cmp.w r8, #57 ; 0x39
  16640. 80071fa: d1d8 bne.n 80071ae <_dtoa_r+0x9ee>
  16641. 80071fc: 9b07 ldr r3, [sp, #28]
  16642. 80071fe: 9a07 ldr r2, [sp, #28]
  16643. 8007200: 1c5d adds r5, r3, #1
  16644. 8007202: 2339 movs r3, #57 ; 0x39
  16645. 8007204: 7013 strb r3, [r2, #0]
  16646. 8007206: f815 3c01 ldrb.w r3, [r5, #-1]
  16647. 800720a: 1e6a subs r2, r5, #1
  16648. 800720c: 2b39 cmp r3, #57 ; 0x39
  16649. 800720e: d04d beq.n 80072ac <_dtoa_r+0xaec>
  16650. 8007210: 3301 adds r3, #1
  16651. 8007212: e052 b.n 80072ba <_dtoa_r+0xafa>
  16652. 8007214: 9a07 ldr r2, [sp, #28]
  16653. 8007216: 2b00 cmp r3, #0
  16654. 8007218: f102 0501 add.w r5, r2, #1
  16655. 800721c: dd06 ble.n 800722c <_dtoa_r+0xa6c>
  16656. 800721e: f1b8 0f39 cmp.w r8, #57 ; 0x39
  16657. 8007222: d0eb beq.n 80071fc <_dtoa_r+0xa3c>
  16658. 8007224: f108 0801 add.w r8, r8, #1
  16659. 8007228: 9b07 ldr r3, [sp, #28]
  16660. 800722a: e7c4 b.n 80071b6 <_dtoa_r+0x9f6>
  16661. 800722c: 9b06 ldr r3, [sp, #24]
  16662. 800722e: 9a04 ldr r2, [sp, #16]
  16663. 8007230: 1aeb subs r3, r5, r3
  16664. 8007232: 4293 cmp r3, r2
  16665. 8007234: f805 8c01 strb.w r8, [r5, #-1]
  16666. 8007238: d021 beq.n 800727e <_dtoa_r+0xabe>
  16667. 800723a: 4659 mov r1, fp
  16668. 800723c: 2300 movs r3, #0
  16669. 800723e: 220a movs r2, #10
  16670. 8007240: 4620 mov r0, r4
  16671. 8007242: f000 fac9 bl 80077d8 <__multadd>
  16672. 8007246: 45b9 cmp r9, r7
  16673. 8007248: 4683 mov fp, r0
  16674. 800724a: f04f 0300 mov.w r3, #0
  16675. 800724e: f04f 020a mov.w r2, #10
  16676. 8007252: 4649 mov r1, r9
  16677. 8007254: 4620 mov r0, r4
  16678. 8007256: d105 bne.n 8007264 <_dtoa_r+0xaa4>
  16679. 8007258: f000 fabe bl 80077d8 <__multadd>
  16680. 800725c: 4681 mov r9, r0
  16681. 800725e: 4607 mov r7, r0
  16682. 8007260: 9507 str r5, [sp, #28]
  16683. 8007262: e778 b.n 8007156 <_dtoa_r+0x996>
  16684. 8007264: f000 fab8 bl 80077d8 <__multadd>
  16685. 8007268: 4639 mov r1, r7
  16686. 800726a: 4681 mov r9, r0
  16687. 800726c: 2300 movs r3, #0
  16688. 800726e: 220a movs r2, #10
  16689. 8007270: 4620 mov r0, r4
  16690. 8007272: f000 fab1 bl 80077d8 <__multadd>
  16691. 8007276: 4607 mov r7, r0
  16692. 8007278: e7f2 b.n 8007260 <_dtoa_r+0xaa0>
  16693. 800727a: f04f 0900 mov.w r9, #0
  16694. 800727e: 4659 mov r1, fp
  16695. 8007280: 2201 movs r2, #1
  16696. 8007282: 4620 mov r0, r4
  16697. 8007284: f000 fc1e bl 8007ac4 <__lshift>
  16698. 8007288: 4631 mov r1, r6
  16699. 800728a: 4683 mov fp, r0
  16700. 800728c: f000 fc6e bl 8007b6c <__mcmp>
  16701. 8007290: 2800 cmp r0, #0
  16702. 8007292: dcb8 bgt.n 8007206 <_dtoa_r+0xa46>
  16703. 8007294: d102 bne.n 800729c <_dtoa_r+0xadc>
  16704. 8007296: f018 0f01 tst.w r8, #1
  16705. 800729a: d1b4 bne.n 8007206 <_dtoa_r+0xa46>
  16706. 800729c: f815 3c01 ldrb.w r3, [r5, #-1]
  16707. 80072a0: 1e6a subs r2, r5, #1
  16708. 80072a2: 2b30 cmp r3, #48 ; 0x30
  16709. 80072a4: f47f af0f bne.w 80070c6 <_dtoa_r+0x906>
  16710. 80072a8: 4615 mov r5, r2
  16711. 80072aa: e7f7 b.n 800729c <_dtoa_r+0xadc>
  16712. 80072ac: 9b06 ldr r3, [sp, #24]
  16713. 80072ae: 4293 cmp r3, r2
  16714. 80072b0: d105 bne.n 80072be <_dtoa_r+0xafe>
  16715. 80072b2: 2331 movs r3, #49 ; 0x31
  16716. 80072b4: 9a06 ldr r2, [sp, #24]
  16717. 80072b6: f10a 0a01 add.w sl, sl, #1
  16718. 80072ba: 7013 strb r3, [r2, #0]
  16719. 80072bc: e703 b.n 80070c6 <_dtoa_r+0x906>
  16720. 80072be: 4615 mov r5, r2
  16721. 80072c0: e7a1 b.n 8007206 <_dtoa_r+0xa46>
  16722. 80072c2: 4b17 ldr r3, [pc, #92] ; (8007320 <_dtoa_r+0xb60>)
  16723. 80072c4: f7ff bae1 b.w 800688a <_dtoa_r+0xca>
  16724. 80072c8: 9b22 ldr r3, [sp, #136] ; 0x88
  16725. 80072ca: 2b00 cmp r3, #0
  16726. 80072cc: f47f aabb bne.w 8006846 <_dtoa_r+0x86>
  16727. 80072d0: 4b14 ldr r3, [pc, #80] ; (8007324 <_dtoa_r+0xb64>)
  16728. 80072d2: f7ff bada b.w 800688a <_dtoa_r+0xca>
  16729. 80072d6: 9b1e ldr r3, [sp, #120] ; 0x78
  16730. 80072d8: 2b01 cmp r3, #1
  16731. 80072da: f77f ae3f ble.w 8006f5c <_dtoa_r+0x79c>
  16732. 80072de: 9b0c ldr r3, [sp, #48] ; 0x30
  16733. 80072e0: 9308 str r3, [sp, #32]
  16734. 80072e2: e653 b.n 8006f8c <_dtoa_r+0x7cc>
  16735. 80072e4: 9b04 ldr r3, [sp, #16]
  16736. 80072e6: 2b00 cmp r3, #0
  16737. 80072e8: dc03 bgt.n 80072f2 <_dtoa_r+0xb32>
  16738. 80072ea: 9b1e ldr r3, [sp, #120] ; 0x78
  16739. 80072ec: 2b02 cmp r3, #2
  16740. 80072ee: f73f aed5 bgt.w 800709c <_dtoa_r+0x8dc>
  16741. 80072f2: 9d06 ldr r5, [sp, #24]
  16742. 80072f4: 4631 mov r1, r6
  16743. 80072f6: 4658 mov r0, fp
  16744. 80072f8: f7ff f9d2 bl 80066a0 <quorem>
  16745. 80072fc: 9b06 ldr r3, [sp, #24]
  16746. 80072fe: f100 0830 add.w r8, r0, #48 ; 0x30
  16747. 8007302: f805 8b01 strb.w r8, [r5], #1
  16748. 8007306: 9a04 ldr r2, [sp, #16]
  16749. 8007308: 1aeb subs r3, r5, r3
  16750. 800730a: 429a cmp r2, r3
  16751. 800730c: ddb5 ble.n 800727a <_dtoa_r+0xaba>
  16752. 800730e: 4659 mov r1, fp
  16753. 8007310: 2300 movs r3, #0
  16754. 8007312: 220a movs r2, #10
  16755. 8007314: 4620 mov r0, r4
  16756. 8007316: f000 fa5f bl 80077d8 <__multadd>
  16757. 800731a: 4683 mov fp, r0
  16758. 800731c: e7ea b.n 80072f4 <_dtoa_r+0xb34>
  16759. 800731e: bf00 nop
  16760. 8007320: 0800860c .word 0x0800860c
  16761. 8007324: 08008630 .word 0x08008630
  16762. 08007328 <__sflush_r>:
  16763. 8007328: 898a ldrh r2, [r1, #12]
  16764. 800732a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  16765. 800732e: 4605 mov r5, r0
  16766. 8007330: 0710 lsls r0, r2, #28
  16767. 8007332: 460c mov r4, r1
  16768. 8007334: d458 bmi.n 80073e8 <__sflush_r+0xc0>
  16769. 8007336: 684b ldr r3, [r1, #4]
  16770. 8007338: 2b00 cmp r3, #0
  16771. 800733a: dc05 bgt.n 8007348 <__sflush_r+0x20>
  16772. 800733c: 6c0b ldr r3, [r1, #64] ; 0x40
  16773. 800733e: 2b00 cmp r3, #0
  16774. 8007340: dc02 bgt.n 8007348 <__sflush_r+0x20>
  16775. 8007342: 2000 movs r0, #0
  16776. 8007344: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  16777. 8007348: 6ae6 ldr r6, [r4, #44] ; 0x2c
  16778. 800734a: 2e00 cmp r6, #0
  16779. 800734c: d0f9 beq.n 8007342 <__sflush_r+0x1a>
  16780. 800734e: 2300 movs r3, #0
  16781. 8007350: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  16782. 8007354: 682f ldr r7, [r5, #0]
  16783. 8007356: 6a21 ldr r1, [r4, #32]
  16784. 8007358: 602b str r3, [r5, #0]
  16785. 800735a: d032 beq.n 80073c2 <__sflush_r+0x9a>
  16786. 800735c: 6d60 ldr r0, [r4, #84] ; 0x54
  16787. 800735e: 89a3 ldrh r3, [r4, #12]
  16788. 8007360: 075a lsls r2, r3, #29
  16789. 8007362: d505 bpl.n 8007370 <__sflush_r+0x48>
  16790. 8007364: 6863 ldr r3, [r4, #4]
  16791. 8007366: 1ac0 subs r0, r0, r3
  16792. 8007368: 6b63 ldr r3, [r4, #52] ; 0x34
  16793. 800736a: b10b cbz r3, 8007370 <__sflush_r+0x48>
  16794. 800736c: 6c23 ldr r3, [r4, #64] ; 0x40
  16795. 800736e: 1ac0 subs r0, r0, r3
  16796. 8007370: 2300 movs r3, #0
  16797. 8007372: 4602 mov r2, r0
  16798. 8007374: 6ae6 ldr r6, [r4, #44] ; 0x2c
  16799. 8007376: 6a21 ldr r1, [r4, #32]
  16800. 8007378: 4628 mov r0, r5
  16801. 800737a: 47b0 blx r6
  16802. 800737c: 1c43 adds r3, r0, #1
  16803. 800737e: 89a3 ldrh r3, [r4, #12]
  16804. 8007380: d106 bne.n 8007390 <__sflush_r+0x68>
  16805. 8007382: 6829 ldr r1, [r5, #0]
  16806. 8007384: 291d cmp r1, #29
  16807. 8007386: d848 bhi.n 800741a <__sflush_r+0xf2>
  16808. 8007388: 4a29 ldr r2, [pc, #164] ; (8007430 <__sflush_r+0x108>)
  16809. 800738a: 40ca lsrs r2, r1
  16810. 800738c: 07d6 lsls r6, r2, #31
  16811. 800738e: d544 bpl.n 800741a <__sflush_r+0xf2>
  16812. 8007390: 2200 movs r2, #0
  16813. 8007392: 6062 str r2, [r4, #4]
  16814. 8007394: 6922 ldr r2, [r4, #16]
  16815. 8007396: 04d9 lsls r1, r3, #19
  16816. 8007398: 6022 str r2, [r4, #0]
  16817. 800739a: d504 bpl.n 80073a6 <__sflush_r+0x7e>
  16818. 800739c: 1c42 adds r2, r0, #1
  16819. 800739e: d101 bne.n 80073a4 <__sflush_r+0x7c>
  16820. 80073a0: 682b ldr r3, [r5, #0]
  16821. 80073a2: b903 cbnz r3, 80073a6 <__sflush_r+0x7e>
  16822. 80073a4: 6560 str r0, [r4, #84] ; 0x54
  16823. 80073a6: 6b61 ldr r1, [r4, #52] ; 0x34
  16824. 80073a8: 602f str r7, [r5, #0]
  16825. 80073aa: 2900 cmp r1, #0
  16826. 80073ac: d0c9 beq.n 8007342 <__sflush_r+0x1a>
  16827. 80073ae: f104 0344 add.w r3, r4, #68 ; 0x44
  16828. 80073b2: 4299 cmp r1, r3
  16829. 80073b4: d002 beq.n 80073bc <__sflush_r+0x94>
  16830. 80073b6: 4628 mov r0, r5
  16831. 80073b8: f000 fcae bl 8007d18 <_free_r>
  16832. 80073bc: 2000 movs r0, #0
  16833. 80073be: 6360 str r0, [r4, #52] ; 0x34
  16834. 80073c0: e7c0 b.n 8007344 <__sflush_r+0x1c>
  16835. 80073c2: 2301 movs r3, #1
  16836. 80073c4: 4628 mov r0, r5
  16837. 80073c6: 47b0 blx r6
  16838. 80073c8: 1c41 adds r1, r0, #1
  16839. 80073ca: d1c8 bne.n 800735e <__sflush_r+0x36>
  16840. 80073cc: 682b ldr r3, [r5, #0]
  16841. 80073ce: 2b00 cmp r3, #0
  16842. 80073d0: d0c5 beq.n 800735e <__sflush_r+0x36>
  16843. 80073d2: 2b1d cmp r3, #29
  16844. 80073d4: d001 beq.n 80073da <__sflush_r+0xb2>
  16845. 80073d6: 2b16 cmp r3, #22
  16846. 80073d8: d101 bne.n 80073de <__sflush_r+0xb6>
  16847. 80073da: 602f str r7, [r5, #0]
  16848. 80073dc: e7b1 b.n 8007342 <__sflush_r+0x1a>
  16849. 80073de: 89a3 ldrh r3, [r4, #12]
  16850. 80073e0: f043 0340 orr.w r3, r3, #64 ; 0x40
  16851. 80073e4: 81a3 strh r3, [r4, #12]
  16852. 80073e6: e7ad b.n 8007344 <__sflush_r+0x1c>
  16853. 80073e8: 690f ldr r7, [r1, #16]
  16854. 80073ea: 2f00 cmp r7, #0
  16855. 80073ec: d0a9 beq.n 8007342 <__sflush_r+0x1a>
  16856. 80073ee: 0793 lsls r3, r2, #30
  16857. 80073f0: bf18 it ne
  16858. 80073f2: 2300 movne r3, #0
  16859. 80073f4: 680e ldr r6, [r1, #0]
  16860. 80073f6: bf08 it eq
  16861. 80073f8: 694b ldreq r3, [r1, #20]
  16862. 80073fa: eba6 0807 sub.w r8, r6, r7
  16863. 80073fe: 600f str r7, [r1, #0]
  16864. 8007400: 608b str r3, [r1, #8]
  16865. 8007402: f1b8 0f00 cmp.w r8, #0
  16866. 8007406: dd9c ble.n 8007342 <__sflush_r+0x1a>
  16867. 8007408: 4643 mov r3, r8
  16868. 800740a: 463a mov r2, r7
  16869. 800740c: 6a21 ldr r1, [r4, #32]
  16870. 800740e: 4628 mov r0, r5
  16871. 8007410: 6aa6 ldr r6, [r4, #40] ; 0x28
  16872. 8007412: 47b0 blx r6
  16873. 8007414: 2800 cmp r0, #0
  16874. 8007416: dc06 bgt.n 8007426 <__sflush_r+0xfe>
  16875. 8007418: 89a3 ldrh r3, [r4, #12]
  16876. 800741a: f043 0340 orr.w r3, r3, #64 ; 0x40
  16877. 800741e: 81a3 strh r3, [r4, #12]
  16878. 8007420: f04f 30ff mov.w r0, #4294967295
  16879. 8007424: e78e b.n 8007344 <__sflush_r+0x1c>
  16880. 8007426: 4407 add r7, r0
  16881. 8007428: eba8 0800 sub.w r8, r8, r0
  16882. 800742c: e7e9 b.n 8007402 <__sflush_r+0xda>
  16883. 800742e: bf00 nop
  16884. 8007430: 20400001 .word 0x20400001
  16885. 08007434 <_fflush_r>:
  16886. 8007434: b538 push {r3, r4, r5, lr}
  16887. 8007436: 690b ldr r3, [r1, #16]
  16888. 8007438: 4605 mov r5, r0
  16889. 800743a: 460c mov r4, r1
  16890. 800743c: b1db cbz r3, 8007476 <_fflush_r+0x42>
  16891. 800743e: b118 cbz r0, 8007448 <_fflush_r+0x14>
  16892. 8007440: 6983 ldr r3, [r0, #24]
  16893. 8007442: b90b cbnz r3, 8007448 <_fflush_r+0x14>
  16894. 8007444: f000 f860 bl 8007508 <__sinit>
  16895. 8007448: 4b0c ldr r3, [pc, #48] ; (800747c <_fflush_r+0x48>)
  16896. 800744a: 429c cmp r4, r3
  16897. 800744c: d109 bne.n 8007462 <_fflush_r+0x2e>
  16898. 800744e: 686c ldr r4, [r5, #4]
  16899. 8007450: f9b4 300c ldrsh.w r3, [r4, #12]
  16900. 8007454: b17b cbz r3, 8007476 <_fflush_r+0x42>
  16901. 8007456: 4621 mov r1, r4
  16902. 8007458: 4628 mov r0, r5
  16903. 800745a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  16904. 800745e: f7ff bf63 b.w 8007328 <__sflush_r>
  16905. 8007462: 4b07 ldr r3, [pc, #28] ; (8007480 <_fflush_r+0x4c>)
  16906. 8007464: 429c cmp r4, r3
  16907. 8007466: d101 bne.n 800746c <_fflush_r+0x38>
  16908. 8007468: 68ac ldr r4, [r5, #8]
  16909. 800746a: e7f1 b.n 8007450 <_fflush_r+0x1c>
  16910. 800746c: 4b05 ldr r3, [pc, #20] ; (8007484 <_fflush_r+0x50>)
  16911. 800746e: 429c cmp r4, r3
  16912. 8007470: bf08 it eq
  16913. 8007472: 68ec ldreq r4, [r5, #12]
  16914. 8007474: e7ec b.n 8007450 <_fflush_r+0x1c>
  16915. 8007476: 2000 movs r0, #0
  16916. 8007478: bd38 pop {r3, r4, r5, pc}
  16917. 800747a: bf00 nop
  16918. 800747c: 08008660 .word 0x08008660
  16919. 8007480: 08008680 .word 0x08008680
  16920. 8007484: 08008640 .word 0x08008640
  16921. 08007488 <std>:
  16922. 8007488: 2300 movs r3, #0
  16923. 800748a: b510 push {r4, lr}
  16924. 800748c: 4604 mov r4, r0
  16925. 800748e: e9c0 3300 strd r3, r3, [r0]
  16926. 8007492: 6083 str r3, [r0, #8]
  16927. 8007494: 8181 strh r1, [r0, #12]
  16928. 8007496: 6643 str r3, [r0, #100] ; 0x64
  16929. 8007498: 81c2 strh r2, [r0, #14]
  16930. 800749a: e9c0 3304 strd r3, r3, [r0, #16]
  16931. 800749e: 6183 str r3, [r0, #24]
  16932. 80074a0: 4619 mov r1, r3
  16933. 80074a2: 2208 movs r2, #8
  16934. 80074a4: 305c adds r0, #92 ; 0x5c
  16935. 80074a6: f7fe fab1 bl 8005a0c <memset>
  16936. 80074aa: 4b05 ldr r3, [pc, #20] ; (80074c0 <std+0x38>)
  16937. 80074ac: 6224 str r4, [r4, #32]
  16938. 80074ae: 6263 str r3, [r4, #36] ; 0x24
  16939. 80074b0: 4b04 ldr r3, [pc, #16] ; (80074c4 <std+0x3c>)
  16940. 80074b2: 62a3 str r3, [r4, #40] ; 0x28
  16941. 80074b4: 4b04 ldr r3, [pc, #16] ; (80074c8 <std+0x40>)
  16942. 80074b6: 62e3 str r3, [r4, #44] ; 0x2c
  16943. 80074b8: 4b04 ldr r3, [pc, #16] ; (80074cc <std+0x44>)
  16944. 80074ba: 6323 str r3, [r4, #48] ; 0x30
  16945. 80074bc: bd10 pop {r4, pc}
  16946. 80074be: bf00 nop
  16947. 80074c0: 08008101 .word 0x08008101
  16948. 80074c4: 08008123 .word 0x08008123
  16949. 80074c8: 0800815b .word 0x0800815b
  16950. 80074cc: 0800817f .word 0x0800817f
  16951. 080074d0 <_cleanup_r>:
  16952. 80074d0: 4901 ldr r1, [pc, #4] ; (80074d8 <_cleanup_r+0x8>)
  16953. 80074d2: f000 b885 b.w 80075e0 <_fwalk_reent>
  16954. 80074d6: bf00 nop
  16955. 80074d8: 08007435 .word 0x08007435
  16956. 080074dc <__sfmoreglue>:
  16957. 80074dc: b570 push {r4, r5, r6, lr}
  16958. 80074de: 2568 movs r5, #104 ; 0x68
  16959. 80074e0: 1e4a subs r2, r1, #1
  16960. 80074e2: 4355 muls r5, r2
  16961. 80074e4: 460e mov r6, r1
  16962. 80074e6: f105 0174 add.w r1, r5, #116 ; 0x74
  16963. 80074ea: f000 fc61 bl 8007db0 <_malloc_r>
  16964. 80074ee: 4604 mov r4, r0
  16965. 80074f0: b140 cbz r0, 8007504 <__sfmoreglue+0x28>
  16966. 80074f2: 2100 movs r1, #0
  16967. 80074f4: e9c0 1600 strd r1, r6, [r0]
  16968. 80074f8: 300c adds r0, #12
  16969. 80074fa: 60a0 str r0, [r4, #8]
  16970. 80074fc: f105 0268 add.w r2, r5, #104 ; 0x68
  16971. 8007500: f7fe fa84 bl 8005a0c <memset>
  16972. 8007504: 4620 mov r0, r4
  16973. 8007506: bd70 pop {r4, r5, r6, pc}
  16974. 08007508 <__sinit>:
  16975. 8007508: 6983 ldr r3, [r0, #24]
  16976. 800750a: b510 push {r4, lr}
  16977. 800750c: 4604 mov r4, r0
  16978. 800750e: bb33 cbnz r3, 800755e <__sinit+0x56>
  16979. 8007510: e9c0 3312 strd r3, r3, [r0, #72] ; 0x48
  16980. 8007514: 6503 str r3, [r0, #80] ; 0x50
  16981. 8007516: 4b12 ldr r3, [pc, #72] ; (8007560 <__sinit+0x58>)
  16982. 8007518: 4a12 ldr r2, [pc, #72] ; (8007564 <__sinit+0x5c>)
  16983. 800751a: 681b ldr r3, [r3, #0]
  16984. 800751c: 6282 str r2, [r0, #40] ; 0x28
  16985. 800751e: 4298 cmp r0, r3
  16986. 8007520: bf04 itt eq
  16987. 8007522: 2301 moveq r3, #1
  16988. 8007524: 6183 streq r3, [r0, #24]
  16989. 8007526: f000 f81f bl 8007568 <__sfp>
  16990. 800752a: 6060 str r0, [r4, #4]
  16991. 800752c: 4620 mov r0, r4
  16992. 800752e: f000 f81b bl 8007568 <__sfp>
  16993. 8007532: 60a0 str r0, [r4, #8]
  16994. 8007534: 4620 mov r0, r4
  16995. 8007536: f000 f817 bl 8007568 <__sfp>
  16996. 800753a: 2200 movs r2, #0
  16997. 800753c: 60e0 str r0, [r4, #12]
  16998. 800753e: 2104 movs r1, #4
  16999. 8007540: 6860 ldr r0, [r4, #4]
  17000. 8007542: f7ff ffa1 bl 8007488 <std>
  17001. 8007546: 2201 movs r2, #1
  17002. 8007548: 2109 movs r1, #9
  17003. 800754a: 68a0 ldr r0, [r4, #8]
  17004. 800754c: f7ff ff9c bl 8007488 <std>
  17005. 8007550: 2202 movs r2, #2
  17006. 8007552: 2112 movs r1, #18
  17007. 8007554: 68e0 ldr r0, [r4, #12]
  17008. 8007556: f7ff ff97 bl 8007488 <std>
  17009. 800755a: 2301 movs r3, #1
  17010. 800755c: 61a3 str r3, [r4, #24]
  17011. 800755e: bd10 pop {r4, pc}
  17012. 8007560: 080085f8 .word 0x080085f8
  17013. 8007564: 080074d1 .word 0x080074d1
  17014. 08007568 <__sfp>:
  17015. 8007568: b5f8 push {r3, r4, r5, r6, r7, lr}
  17016. 800756a: 4b1b ldr r3, [pc, #108] ; (80075d8 <__sfp+0x70>)
  17017. 800756c: 4607 mov r7, r0
  17018. 800756e: 681e ldr r6, [r3, #0]
  17019. 8007570: 69b3 ldr r3, [r6, #24]
  17020. 8007572: b913 cbnz r3, 800757a <__sfp+0x12>
  17021. 8007574: 4630 mov r0, r6
  17022. 8007576: f7ff ffc7 bl 8007508 <__sinit>
  17023. 800757a: 3648 adds r6, #72 ; 0x48
  17024. 800757c: e9d6 3401 ldrd r3, r4, [r6, #4]
  17025. 8007580: 3b01 subs r3, #1
  17026. 8007582: d503 bpl.n 800758c <__sfp+0x24>
  17027. 8007584: 6833 ldr r3, [r6, #0]
  17028. 8007586: b133 cbz r3, 8007596 <__sfp+0x2e>
  17029. 8007588: 6836 ldr r6, [r6, #0]
  17030. 800758a: e7f7 b.n 800757c <__sfp+0x14>
  17031. 800758c: f9b4 500c ldrsh.w r5, [r4, #12]
  17032. 8007590: b16d cbz r5, 80075ae <__sfp+0x46>
  17033. 8007592: 3468 adds r4, #104 ; 0x68
  17034. 8007594: e7f4 b.n 8007580 <__sfp+0x18>
  17035. 8007596: 2104 movs r1, #4
  17036. 8007598: 4638 mov r0, r7
  17037. 800759a: f7ff ff9f bl 80074dc <__sfmoreglue>
  17038. 800759e: 6030 str r0, [r6, #0]
  17039. 80075a0: 2800 cmp r0, #0
  17040. 80075a2: d1f1 bne.n 8007588 <__sfp+0x20>
  17041. 80075a4: 230c movs r3, #12
  17042. 80075a6: 4604 mov r4, r0
  17043. 80075a8: 603b str r3, [r7, #0]
  17044. 80075aa: 4620 mov r0, r4
  17045. 80075ac: bdf8 pop {r3, r4, r5, r6, r7, pc}
  17046. 80075ae: 4b0b ldr r3, [pc, #44] ; (80075dc <__sfp+0x74>)
  17047. 80075b0: 6665 str r5, [r4, #100] ; 0x64
  17048. 80075b2: e9c4 5500 strd r5, r5, [r4]
  17049. 80075b6: 60a5 str r5, [r4, #8]
  17050. 80075b8: e9c4 3503 strd r3, r5, [r4, #12]
  17051. 80075bc: e9c4 5505 strd r5, r5, [r4, #20]
  17052. 80075c0: 2208 movs r2, #8
  17053. 80075c2: 4629 mov r1, r5
  17054. 80075c4: f104 005c add.w r0, r4, #92 ; 0x5c
  17055. 80075c8: f7fe fa20 bl 8005a0c <memset>
  17056. 80075cc: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
  17057. 80075d0: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
  17058. 80075d4: e7e9 b.n 80075aa <__sfp+0x42>
  17059. 80075d6: bf00 nop
  17060. 80075d8: 080085f8 .word 0x080085f8
  17061. 80075dc: ffff0001 .word 0xffff0001
  17062. 080075e0 <_fwalk_reent>:
  17063. 80075e0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  17064. 80075e4: 4680 mov r8, r0
  17065. 80075e6: 4689 mov r9, r1
  17066. 80075e8: 2600 movs r6, #0
  17067. 80075ea: f100 0448 add.w r4, r0, #72 ; 0x48
  17068. 80075ee: b914 cbnz r4, 80075f6 <_fwalk_reent+0x16>
  17069. 80075f0: 4630 mov r0, r6
  17070. 80075f2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  17071. 80075f6: e9d4 7501 ldrd r7, r5, [r4, #4]
  17072. 80075fa: 3f01 subs r7, #1
  17073. 80075fc: d501 bpl.n 8007602 <_fwalk_reent+0x22>
  17074. 80075fe: 6824 ldr r4, [r4, #0]
  17075. 8007600: e7f5 b.n 80075ee <_fwalk_reent+0xe>
  17076. 8007602: 89ab ldrh r3, [r5, #12]
  17077. 8007604: 2b01 cmp r3, #1
  17078. 8007606: d907 bls.n 8007618 <_fwalk_reent+0x38>
  17079. 8007608: f9b5 300e ldrsh.w r3, [r5, #14]
  17080. 800760c: 3301 adds r3, #1
  17081. 800760e: d003 beq.n 8007618 <_fwalk_reent+0x38>
  17082. 8007610: 4629 mov r1, r5
  17083. 8007612: 4640 mov r0, r8
  17084. 8007614: 47c8 blx r9
  17085. 8007616: 4306 orrs r6, r0
  17086. 8007618: 3568 adds r5, #104 ; 0x68
  17087. 800761a: e7ee b.n 80075fa <_fwalk_reent+0x1a>
  17088. 0800761c <_localeconv_r>:
  17089. 800761c: 4b04 ldr r3, [pc, #16] ; (8007630 <_localeconv_r+0x14>)
  17090. 800761e: 681b ldr r3, [r3, #0]
  17091. 8007620: 6a18 ldr r0, [r3, #32]
  17092. 8007622: 4b04 ldr r3, [pc, #16] ; (8007634 <_localeconv_r+0x18>)
  17093. 8007624: 2800 cmp r0, #0
  17094. 8007626: bf08 it eq
  17095. 8007628: 4618 moveq r0, r3
  17096. 800762a: 30f0 adds r0, #240 ; 0xf0
  17097. 800762c: 4770 bx lr
  17098. 800762e: bf00 nop
  17099. 8007630: 2000000c .word 0x2000000c
  17100. 8007634: 20000070 .word 0x20000070
  17101. 08007638 <__swhatbuf_r>:
  17102. 8007638: b570 push {r4, r5, r6, lr}
  17103. 800763a: 460e mov r6, r1
  17104. 800763c: f9b1 100e ldrsh.w r1, [r1, #14]
  17105. 8007640: b096 sub sp, #88 ; 0x58
  17106. 8007642: 2900 cmp r1, #0
  17107. 8007644: 4614 mov r4, r2
  17108. 8007646: 461d mov r5, r3
  17109. 8007648: da07 bge.n 800765a <__swhatbuf_r+0x22>
  17110. 800764a: 2300 movs r3, #0
  17111. 800764c: 602b str r3, [r5, #0]
  17112. 800764e: 89b3 ldrh r3, [r6, #12]
  17113. 8007650: 061a lsls r2, r3, #24
  17114. 8007652: d410 bmi.n 8007676 <__swhatbuf_r+0x3e>
  17115. 8007654: f44f 6380 mov.w r3, #1024 ; 0x400
  17116. 8007658: e00e b.n 8007678 <__swhatbuf_r+0x40>
  17117. 800765a: 466a mov r2, sp
  17118. 800765c: f000 fdb6 bl 80081cc <_fstat_r>
  17119. 8007660: 2800 cmp r0, #0
  17120. 8007662: dbf2 blt.n 800764a <__swhatbuf_r+0x12>
  17121. 8007664: 9a01 ldr r2, [sp, #4]
  17122. 8007666: f402 4270 and.w r2, r2, #61440 ; 0xf000
  17123. 800766a: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  17124. 800766e: 425a negs r2, r3
  17125. 8007670: 415a adcs r2, r3
  17126. 8007672: 602a str r2, [r5, #0]
  17127. 8007674: e7ee b.n 8007654 <__swhatbuf_r+0x1c>
  17128. 8007676: 2340 movs r3, #64 ; 0x40
  17129. 8007678: 2000 movs r0, #0
  17130. 800767a: 6023 str r3, [r4, #0]
  17131. 800767c: b016 add sp, #88 ; 0x58
  17132. 800767e: bd70 pop {r4, r5, r6, pc}
  17133. 08007680 <__smakebuf_r>:
  17134. 8007680: 898b ldrh r3, [r1, #12]
  17135. 8007682: b573 push {r0, r1, r4, r5, r6, lr}
  17136. 8007684: 079d lsls r5, r3, #30
  17137. 8007686: 4606 mov r6, r0
  17138. 8007688: 460c mov r4, r1
  17139. 800768a: d507 bpl.n 800769c <__smakebuf_r+0x1c>
  17140. 800768c: f104 0347 add.w r3, r4, #71 ; 0x47
  17141. 8007690: 6023 str r3, [r4, #0]
  17142. 8007692: 6123 str r3, [r4, #16]
  17143. 8007694: 2301 movs r3, #1
  17144. 8007696: 6163 str r3, [r4, #20]
  17145. 8007698: b002 add sp, #8
  17146. 800769a: bd70 pop {r4, r5, r6, pc}
  17147. 800769c: ab01 add r3, sp, #4
  17148. 800769e: 466a mov r2, sp
  17149. 80076a0: f7ff ffca bl 8007638 <__swhatbuf_r>
  17150. 80076a4: 9900 ldr r1, [sp, #0]
  17151. 80076a6: 4605 mov r5, r0
  17152. 80076a8: 4630 mov r0, r6
  17153. 80076aa: f000 fb81 bl 8007db0 <_malloc_r>
  17154. 80076ae: b948 cbnz r0, 80076c4 <__smakebuf_r+0x44>
  17155. 80076b0: f9b4 300c ldrsh.w r3, [r4, #12]
  17156. 80076b4: 059a lsls r2, r3, #22
  17157. 80076b6: d4ef bmi.n 8007698 <__smakebuf_r+0x18>
  17158. 80076b8: f023 0303 bic.w r3, r3, #3
  17159. 80076bc: f043 0302 orr.w r3, r3, #2
  17160. 80076c0: 81a3 strh r3, [r4, #12]
  17161. 80076c2: e7e3 b.n 800768c <__smakebuf_r+0xc>
  17162. 80076c4: 4b0d ldr r3, [pc, #52] ; (80076fc <__smakebuf_r+0x7c>)
  17163. 80076c6: 62b3 str r3, [r6, #40] ; 0x28
  17164. 80076c8: 89a3 ldrh r3, [r4, #12]
  17165. 80076ca: 6020 str r0, [r4, #0]
  17166. 80076cc: f043 0380 orr.w r3, r3, #128 ; 0x80
  17167. 80076d0: 81a3 strh r3, [r4, #12]
  17168. 80076d2: 9b00 ldr r3, [sp, #0]
  17169. 80076d4: 6120 str r0, [r4, #16]
  17170. 80076d6: 6163 str r3, [r4, #20]
  17171. 80076d8: 9b01 ldr r3, [sp, #4]
  17172. 80076da: b15b cbz r3, 80076f4 <__smakebuf_r+0x74>
  17173. 80076dc: f9b4 100e ldrsh.w r1, [r4, #14]
  17174. 80076e0: 4630 mov r0, r6
  17175. 80076e2: f000 fd85 bl 80081f0 <_isatty_r>
  17176. 80076e6: b128 cbz r0, 80076f4 <__smakebuf_r+0x74>
  17177. 80076e8: 89a3 ldrh r3, [r4, #12]
  17178. 80076ea: f023 0303 bic.w r3, r3, #3
  17179. 80076ee: f043 0301 orr.w r3, r3, #1
  17180. 80076f2: 81a3 strh r3, [r4, #12]
  17181. 80076f4: 89a3 ldrh r3, [r4, #12]
  17182. 80076f6: 431d orrs r5, r3
  17183. 80076f8: 81a5 strh r5, [r4, #12]
  17184. 80076fa: e7cd b.n 8007698 <__smakebuf_r+0x18>
  17185. 80076fc: 080074d1 .word 0x080074d1
  17186. 08007700 <malloc>:
  17187. 8007700: 4b02 ldr r3, [pc, #8] ; (800770c <malloc+0xc>)
  17188. 8007702: 4601 mov r1, r0
  17189. 8007704: 6818 ldr r0, [r3, #0]
  17190. 8007706: f000 bb53 b.w 8007db0 <_malloc_r>
  17191. 800770a: bf00 nop
  17192. 800770c: 2000000c .word 0x2000000c
  17193. 08007710 <memchr>:
  17194. 8007710: b510 push {r4, lr}
  17195. 8007712: b2c9 uxtb r1, r1
  17196. 8007714: 4402 add r2, r0
  17197. 8007716: 4290 cmp r0, r2
  17198. 8007718: 4603 mov r3, r0
  17199. 800771a: d101 bne.n 8007720 <memchr+0x10>
  17200. 800771c: 2300 movs r3, #0
  17201. 800771e: e003 b.n 8007728 <memchr+0x18>
  17202. 8007720: 781c ldrb r4, [r3, #0]
  17203. 8007722: 3001 adds r0, #1
  17204. 8007724: 428c cmp r4, r1
  17205. 8007726: d1f6 bne.n 8007716 <memchr+0x6>
  17206. 8007728: 4618 mov r0, r3
  17207. 800772a: bd10 pop {r4, pc}
  17208. 0800772c <memcpy>:
  17209. 800772c: b510 push {r4, lr}
  17210. 800772e: 1e43 subs r3, r0, #1
  17211. 8007730: 440a add r2, r1
  17212. 8007732: 4291 cmp r1, r2
  17213. 8007734: d100 bne.n 8007738 <memcpy+0xc>
  17214. 8007736: bd10 pop {r4, pc}
  17215. 8007738: f811 4b01 ldrb.w r4, [r1], #1
  17216. 800773c: f803 4f01 strb.w r4, [r3, #1]!
  17217. 8007740: e7f7 b.n 8007732 <memcpy+0x6>
  17218. 08007742 <_Balloc>:
  17219. 8007742: b570 push {r4, r5, r6, lr}
  17220. 8007744: 6a45 ldr r5, [r0, #36] ; 0x24
  17221. 8007746: 4604 mov r4, r0
  17222. 8007748: 460e mov r6, r1
  17223. 800774a: b93d cbnz r5, 800775c <_Balloc+0x1a>
  17224. 800774c: 2010 movs r0, #16
  17225. 800774e: f7ff ffd7 bl 8007700 <malloc>
  17226. 8007752: 6260 str r0, [r4, #36] ; 0x24
  17227. 8007754: e9c0 5501 strd r5, r5, [r0, #4]
  17228. 8007758: 6005 str r5, [r0, #0]
  17229. 800775a: 60c5 str r5, [r0, #12]
  17230. 800775c: 6a65 ldr r5, [r4, #36] ; 0x24
  17231. 800775e: 68eb ldr r3, [r5, #12]
  17232. 8007760: b183 cbz r3, 8007784 <_Balloc+0x42>
  17233. 8007762: 6a63 ldr r3, [r4, #36] ; 0x24
  17234. 8007764: 68db ldr r3, [r3, #12]
  17235. 8007766: f853 0026 ldr.w r0, [r3, r6, lsl #2]
  17236. 800776a: b9b8 cbnz r0, 800779c <_Balloc+0x5a>
  17237. 800776c: 2101 movs r1, #1
  17238. 800776e: fa01 f506 lsl.w r5, r1, r6
  17239. 8007772: 1d6a adds r2, r5, #5
  17240. 8007774: 0092 lsls r2, r2, #2
  17241. 8007776: 4620 mov r0, r4
  17242. 8007778: f000 fabf bl 8007cfa <_calloc_r>
  17243. 800777c: b160 cbz r0, 8007798 <_Balloc+0x56>
  17244. 800777e: e9c0 6501 strd r6, r5, [r0, #4]
  17245. 8007782: e00e b.n 80077a2 <_Balloc+0x60>
  17246. 8007784: 2221 movs r2, #33 ; 0x21
  17247. 8007786: 2104 movs r1, #4
  17248. 8007788: 4620 mov r0, r4
  17249. 800778a: f000 fab6 bl 8007cfa <_calloc_r>
  17250. 800778e: 6a63 ldr r3, [r4, #36] ; 0x24
  17251. 8007790: 60e8 str r0, [r5, #12]
  17252. 8007792: 68db ldr r3, [r3, #12]
  17253. 8007794: 2b00 cmp r3, #0
  17254. 8007796: d1e4 bne.n 8007762 <_Balloc+0x20>
  17255. 8007798: 2000 movs r0, #0
  17256. 800779a: bd70 pop {r4, r5, r6, pc}
  17257. 800779c: 6802 ldr r2, [r0, #0]
  17258. 800779e: f843 2026 str.w r2, [r3, r6, lsl #2]
  17259. 80077a2: 2300 movs r3, #0
  17260. 80077a4: e9c0 3303 strd r3, r3, [r0, #12]
  17261. 80077a8: e7f7 b.n 800779a <_Balloc+0x58>
  17262. 080077aa <_Bfree>:
  17263. 80077aa: b570 push {r4, r5, r6, lr}
  17264. 80077ac: 6a44 ldr r4, [r0, #36] ; 0x24
  17265. 80077ae: 4606 mov r6, r0
  17266. 80077b0: 460d mov r5, r1
  17267. 80077b2: b93c cbnz r4, 80077c4 <_Bfree+0x1a>
  17268. 80077b4: 2010 movs r0, #16
  17269. 80077b6: f7ff ffa3 bl 8007700 <malloc>
  17270. 80077ba: 6270 str r0, [r6, #36] ; 0x24
  17271. 80077bc: e9c0 4401 strd r4, r4, [r0, #4]
  17272. 80077c0: 6004 str r4, [r0, #0]
  17273. 80077c2: 60c4 str r4, [r0, #12]
  17274. 80077c4: b13d cbz r5, 80077d6 <_Bfree+0x2c>
  17275. 80077c6: 6a73 ldr r3, [r6, #36] ; 0x24
  17276. 80077c8: 686a ldr r2, [r5, #4]
  17277. 80077ca: 68db ldr r3, [r3, #12]
  17278. 80077cc: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  17279. 80077d0: 6029 str r1, [r5, #0]
  17280. 80077d2: f843 5022 str.w r5, [r3, r2, lsl #2]
  17281. 80077d6: bd70 pop {r4, r5, r6, pc}
  17282. 080077d8 <__multadd>:
  17283. 80077d8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  17284. 80077dc: 461f mov r7, r3
  17285. 80077de: 4606 mov r6, r0
  17286. 80077e0: 460c mov r4, r1
  17287. 80077e2: 2300 movs r3, #0
  17288. 80077e4: 690d ldr r5, [r1, #16]
  17289. 80077e6: f101 0c14 add.w ip, r1, #20
  17290. 80077ea: f8dc 0000 ldr.w r0, [ip]
  17291. 80077ee: 3301 adds r3, #1
  17292. 80077f0: b281 uxth r1, r0
  17293. 80077f2: fb02 7101 mla r1, r2, r1, r7
  17294. 80077f6: 0c00 lsrs r0, r0, #16
  17295. 80077f8: 0c0f lsrs r7, r1, #16
  17296. 80077fa: fb02 7000 mla r0, r2, r0, r7
  17297. 80077fe: b289 uxth r1, r1
  17298. 8007800: eb01 4100 add.w r1, r1, r0, lsl #16
  17299. 8007804: 429d cmp r5, r3
  17300. 8007806: ea4f 4710 mov.w r7, r0, lsr #16
  17301. 800780a: f84c 1b04 str.w r1, [ip], #4
  17302. 800780e: dcec bgt.n 80077ea <__multadd+0x12>
  17303. 8007810: b1d7 cbz r7, 8007848 <__multadd+0x70>
  17304. 8007812: 68a3 ldr r3, [r4, #8]
  17305. 8007814: 42ab cmp r3, r5
  17306. 8007816: dc12 bgt.n 800783e <__multadd+0x66>
  17307. 8007818: 6861 ldr r1, [r4, #4]
  17308. 800781a: 4630 mov r0, r6
  17309. 800781c: 3101 adds r1, #1
  17310. 800781e: f7ff ff90 bl 8007742 <_Balloc>
  17311. 8007822: 4680 mov r8, r0
  17312. 8007824: 6922 ldr r2, [r4, #16]
  17313. 8007826: f104 010c add.w r1, r4, #12
  17314. 800782a: 3202 adds r2, #2
  17315. 800782c: 0092 lsls r2, r2, #2
  17316. 800782e: 300c adds r0, #12
  17317. 8007830: f7ff ff7c bl 800772c <memcpy>
  17318. 8007834: 4621 mov r1, r4
  17319. 8007836: 4630 mov r0, r6
  17320. 8007838: f7ff ffb7 bl 80077aa <_Bfree>
  17321. 800783c: 4644 mov r4, r8
  17322. 800783e: eb04 0385 add.w r3, r4, r5, lsl #2
  17323. 8007842: 3501 adds r5, #1
  17324. 8007844: 615f str r7, [r3, #20]
  17325. 8007846: 6125 str r5, [r4, #16]
  17326. 8007848: 4620 mov r0, r4
  17327. 800784a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  17328. 0800784e <__hi0bits>:
  17329. 800784e: 0c02 lsrs r2, r0, #16
  17330. 8007850: 0412 lsls r2, r2, #16
  17331. 8007852: 4603 mov r3, r0
  17332. 8007854: b9b2 cbnz r2, 8007884 <__hi0bits+0x36>
  17333. 8007856: 0403 lsls r3, r0, #16
  17334. 8007858: 2010 movs r0, #16
  17335. 800785a: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
  17336. 800785e: bf04 itt eq
  17337. 8007860: 021b lsleq r3, r3, #8
  17338. 8007862: 3008 addeq r0, #8
  17339. 8007864: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
  17340. 8007868: bf04 itt eq
  17341. 800786a: 011b lsleq r3, r3, #4
  17342. 800786c: 3004 addeq r0, #4
  17343. 800786e: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
  17344. 8007872: bf04 itt eq
  17345. 8007874: 009b lsleq r3, r3, #2
  17346. 8007876: 3002 addeq r0, #2
  17347. 8007878: 2b00 cmp r3, #0
  17348. 800787a: db06 blt.n 800788a <__hi0bits+0x3c>
  17349. 800787c: 005b lsls r3, r3, #1
  17350. 800787e: d503 bpl.n 8007888 <__hi0bits+0x3a>
  17351. 8007880: 3001 adds r0, #1
  17352. 8007882: 4770 bx lr
  17353. 8007884: 2000 movs r0, #0
  17354. 8007886: e7e8 b.n 800785a <__hi0bits+0xc>
  17355. 8007888: 2020 movs r0, #32
  17356. 800788a: 4770 bx lr
  17357. 0800788c <__lo0bits>:
  17358. 800788c: 6803 ldr r3, [r0, #0]
  17359. 800788e: 4601 mov r1, r0
  17360. 8007890: f013 0207 ands.w r2, r3, #7
  17361. 8007894: d00b beq.n 80078ae <__lo0bits+0x22>
  17362. 8007896: 07da lsls r2, r3, #31
  17363. 8007898: d423 bmi.n 80078e2 <__lo0bits+0x56>
  17364. 800789a: 0798 lsls r0, r3, #30
  17365. 800789c: bf49 itett mi
  17366. 800789e: 085b lsrmi r3, r3, #1
  17367. 80078a0: 089b lsrpl r3, r3, #2
  17368. 80078a2: 2001 movmi r0, #1
  17369. 80078a4: 600b strmi r3, [r1, #0]
  17370. 80078a6: bf5c itt pl
  17371. 80078a8: 600b strpl r3, [r1, #0]
  17372. 80078aa: 2002 movpl r0, #2
  17373. 80078ac: 4770 bx lr
  17374. 80078ae: b298 uxth r0, r3
  17375. 80078b0: b9a8 cbnz r0, 80078de <__lo0bits+0x52>
  17376. 80078b2: 2010 movs r0, #16
  17377. 80078b4: 0c1b lsrs r3, r3, #16
  17378. 80078b6: f013 0fff tst.w r3, #255 ; 0xff
  17379. 80078ba: bf04 itt eq
  17380. 80078bc: 0a1b lsreq r3, r3, #8
  17381. 80078be: 3008 addeq r0, #8
  17382. 80078c0: 071a lsls r2, r3, #28
  17383. 80078c2: bf04 itt eq
  17384. 80078c4: 091b lsreq r3, r3, #4
  17385. 80078c6: 3004 addeq r0, #4
  17386. 80078c8: 079a lsls r2, r3, #30
  17387. 80078ca: bf04 itt eq
  17388. 80078cc: 089b lsreq r3, r3, #2
  17389. 80078ce: 3002 addeq r0, #2
  17390. 80078d0: 07da lsls r2, r3, #31
  17391. 80078d2: d402 bmi.n 80078da <__lo0bits+0x4e>
  17392. 80078d4: 085b lsrs r3, r3, #1
  17393. 80078d6: d006 beq.n 80078e6 <__lo0bits+0x5a>
  17394. 80078d8: 3001 adds r0, #1
  17395. 80078da: 600b str r3, [r1, #0]
  17396. 80078dc: 4770 bx lr
  17397. 80078de: 4610 mov r0, r2
  17398. 80078e0: e7e9 b.n 80078b6 <__lo0bits+0x2a>
  17399. 80078e2: 2000 movs r0, #0
  17400. 80078e4: 4770 bx lr
  17401. 80078e6: 2020 movs r0, #32
  17402. 80078e8: 4770 bx lr
  17403. 080078ea <__i2b>:
  17404. 80078ea: b510 push {r4, lr}
  17405. 80078ec: 460c mov r4, r1
  17406. 80078ee: 2101 movs r1, #1
  17407. 80078f0: f7ff ff27 bl 8007742 <_Balloc>
  17408. 80078f4: 2201 movs r2, #1
  17409. 80078f6: 6144 str r4, [r0, #20]
  17410. 80078f8: 6102 str r2, [r0, #16]
  17411. 80078fa: bd10 pop {r4, pc}
  17412. 080078fc <__multiply>:
  17413. 80078fc: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  17414. 8007900: 4614 mov r4, r2
  17415. 8007902: 690a ldr r2, [r1, #16]
  17416. 8007904: 6923 ldr r3, [r4, #16]
  17417. 8007906: 4688 mov r8, r1
  17418. 8007908: 429a cmp r2, r3
  17419. 800790a: bfbe ittt lt
  17420. 800790c: 460b movlt r3, r1
  17421. 800790e: 46a0 movlt r8, r4
  17422. 8007910: 461c movlt r4, r3
  17423. 8007912: f8d8 7010 ldr.w r7, [r8, #16]
  17424. 8007916: f8d4 9010 ldr.w r9, [r4, #16]
  17425. 800791a: f8d8 3008 ldr.w r3, [r8, #8]
  17426. 800791e: f8d8 1004 ldr.w r1, [r8, #4]
  17427. 8007922: eb07 0609 add.w r6, r7, r9
  17428. 8007926: 42b3 cmp r3, r6
  17429. 8007928: bfb8 it lt
  17430. 800792a: 3101 addlt r1, #1
  17431. 800792c: f7ff ff09 bl 8007742 <_Balloc>
  17432. 8007930: f100 0514 add.w r5, r0, #20
  17433. 8007934: 462b mov r3, r5
  17434. 8007936: 2200 movs r2, #0
  17435. 8007938: eb05 0e86 add.w lr, r5, r6, lsl #2
  17436. 800793c: 4573 cmp r3, lr
  17437. 800793e: d316 bcc.n 800796e <__multiply+0x72>
  17438. 8007940: f104 0214 add.w r2, r4, #20
  17439. 8007944: f108 0114 add.w r1, r8, #20
  17440. 8007948: eb02 0389 add.w r3, r2, r9, lsl #2
  17441. 800794c: eb01 0787 add.w r7, r1, r7, lsl #2
  17442. 8007950: 9300 str r3, [sp, #0]
  17443. 8007952: 9b00 ldr r3, [sp, #0]
  17444. 8007954: 9201 str r2, [sp, #4]
  17445. 8007956: 4293 cmp r3, r2
  17446. 8007958: d80c bhi.n 8007974 <__multiply+0x78>
  17447. 800795a: 2e00 cmp r6, #0
  17448. 800795c: dd03 ble.n 8007966 <__multiply+0x6a>
  17449. 800795e: f85e 3d04 ldr.w r3, [lr, #-4]!
  17450. 8007962: 2b00 cmp r3, #0
  17451. 8007964: d05d beq.n 8007a22 <__multiply+0x126>
  17452. 8007966: 6106 str r6, [r0, #16]
  17453. 8007968: b003 add sp, #12
  17454. 800796a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  17455. 800796e: f843 2b04 str.w r2, [r3], #4
  17456. 8007972: e7e3 b.n 800793c <__multiply+0x40>
  17457. 8007974: f8b2 b000 ldrh.w fp, [r2]
  17458. 8007978: f1bb 0f00 cmp.w fp, #0
  17459. 800797c: d023 beq.n 80079c6 <__multiply+0xca>
  17460. 800797e: 4689 mov r9, r1
  17461. 8007980: 46ac mov ip, r5
  17462. 8007982: f04f 0800 mov.w r8, #0
  17463. 8007986: f859 4b04 ldr.w r4, [r9], #4
  17464. 800798a: f8dc a000 ldr.w sl, [ip]
  17465. 800798e: b2a3 uxth r3, r4
  17466. 8007990: fa1f fa8a uxth.w sl, sl
  17467. 8007994: fb0b a303 mla r3, fp, r3, sl
  17468. 8007998: ea4f 4a14 mov.w sl, r4, lsr #16
  17469. 800799c: f8dc 4000 ldr.w r4, [ip]
  17470. 80079a0: 4443 add r3, r8
  17471. 80079a2: ea4f 4814 mov.w r8, r4, lsr #16
  17472. 80079a6: fb0b 840a mla r4, fp, sl, r8
  17473. 80079aa: 46e2 mov sl, ip
  17474. 80079ac: eb04 4413 add.w r4, r4, r3, lsr #16
  17475. 80079b0: b29b uxth r3, r3
  17476. 80079b2: ea43 4304 orr.w r3, r3, r4, lsl #16
  17477. 80079b6: 454f cmp r7, r9
  17478. 80079b8: ea4f 4814 mov.w r8, r4, lsr #16
  17479. 80079bc: f84a 3b04 str.w r3, [sl], #4
  17480. 80079c0: d82b bhi.n 8007a1a <__multiply+0x11e>
  17481. 80079c2: f8cc 8004 str.w r8, [ip, #4]
  17482. 80079c6: 9b01 ldr r3, [sp, #4]
  17483. 80079c8: 3204 adds r2, #4
  17484. 80079ca: f8b3 a002 ldrh.w sl, [r3, #2]
  17485. 80079ce: f1ba 0f00 cmp.w sl, #0
  17486. 80079d2: d020 beq.n 8007a16 <__multiply+0x11a>
  17487. 80079d4: 4689 mov r9, r1
  17488. 80079d6: 46a8 mov r8, r5
  17489. 80079d8: f04f 0b00 mov.w fp, #0
  17490. 80079dc: 682b ldr r3, [r5, #0]
  17491. 80079de: f8b9 c000 ldrh.w ip, [r9]
  17492. 80079e2: f8b8 4002 ldrh.w r4, [r8, #2]
  17493. 80079e6: b29b uxth r3, r3
  17494. 80079e8: fb0a 440c mla r4, sl, ip, r4
  17495. 80079ec: 46c4 mov ip, r8
  17496. 80079ee: 445c add r4, fp
  17497. 80079f0: ea43 4304 orr.w r3, r3, r4, lsl #16
  17498. 80079f4: f84c 3b04 str.w r3, [ip], #4
  17499. 80079f8: f859 3b04 ldr.w r3, [r9], #4
  17500. 80079fc: f8b8 b004 ldrh.w fp, [r8, #4]
  17501. 8007a00: 0c1b lsrs r3, r3, #16
  17502. 8007a02: fb0a b303 mla r3, sl, r3, fp
  17503. 8007a06: 454f cmp r7, r9
  17504. 8007a08: eb03 4314 add.w r3, r3, r4, lsr #16
  17505. 8007a0c: ea4f 4b13 mov.w fp, r3, lsr #16
  17506. 8007a10: d805 bhi.n 8007a1e <__multiply+0x122>
  17507. 8007a12: f8c8 3004 str.w r3, [r8, #4]
  17508. 8007a16: 3504 adds r5, #4
  17509. 8007a18: e79b b.n 8007952 <__multiply+0x56>
  17510. 8007a1a: 46d4 mov ip, sl
  17511. 8007a1c: e7b3 b.n 8007986 <__multiply+0x8a>
  17512. 8007a1e: 46e0 mov r8, ip
  17513. 8007a20: e7dd b.n 80079de <__multiply+0xe2>
  17514. 8007a22: 3e01 subs r6, #1
  17515. 8007a24: e799 b.n 800795a <__multiply+0x5e>
  17516. ...
  17517. 08007a28 <__pow5mult>:
  17518. 8007a28: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  17519. 8007a2c: 4615 mov r5, r2
  17520. 8007a2e: f012 0203 ands.w r2, r2, #3
  17521. 8007a32: 4606 mov r6, r0
  17522. 8007a34: 460f mov r7, r1
  17523. 8007a36: d007 beq.n 8007a48 <__pow5mult+0x20>
  17524. 8007a38: 4c21 ldr r4, [pc, #132] ; (8007ac0 <__pow5mult+0x98>)
  17525. 8007a3a: 3a01 subs r2, #1
  17526. 8007a3c: 2300 movs r3, #0
  17527. 8007a3e: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  17528. 8007a42: f7ff fec9 bl 80077d8 <__multadd>
  17529. 8007a46: 4607 mov r7, r0
  17530. 8007a48: 10ad asrs r5, r5, #2
  17531. 8007a4a: d035 beq.n 8007ab8 <__pow5mult+0x90>
  17532. 8007a4c: 6a74 ldr r4, [r6, #36] ; 0x24
  17533. 8007a4e: b93c cbnz r4, 8007a60 <__pow5mult+0x38>
  17534. 8007a50: 2010 movs r0, #16
  17535. 8007a52: f7ff fe55 bl 8007700 <malloc>
  17536. 8007a56: 6270 str r0, [r6, #36] ; 0x24
  17537. 8007a58: e9c0 4401 strd r4, r4, [r0, #4]
  17538. 8007a5c: 6004 str r4, [r0, #0]
  17539. 8007a5e: 60c4 str r4, [r0, #12]
  17540. 8007a60: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
  17541. 8007a64: f8d8 4008 ldr.w r4, [r8, #8]
  17542. 8007a68: b94c cbnz r4, 8007a7e <__pow5mult+0x56>
  17543. 8007a6a: f240 2171 movw r1, #625 ; 0x271
  17544. 8007a6e: 4630 mov r0, r6
  17545. 8007a70: f7ff ff3b bl 80078ea <__i2b>
  17546. 8007a74: 2300 movs r3, #0
  17547. 8007a76: 4604 mov r4, r0
  17548. 8007a78: f8c8 0008 str.w r0, [r8, #8]
  17549. 8007a7c: 6003 str r3, [r0, #0]
  17550. 8007a7e: f04f 0800 mov.w r8, #0
  17551. 8007a82: 07eb lsls r3, r5, #31
  17552. 8007a84: d50a bpl.n 8007a9c <__pow5mult+0x74>
  17553. 8007a86: 4639 mov r1, r7
  17554. 8007a88: 4622 mov r2, r4
  17555. 8007a8a: 4630 mov r0, r6
  17556. 8007a8c: f7ff ff36 bl 80078fc <__multiply>
  17557. 8007a90: 4681 mov r9, r0
  17558. 8007a92: 4639 mov r1, r7
  17559. 8007a94: 4630 mov r0, r6
  17560. 8007a96: f7ff fe88 bl 80077aa <_Bfree>
  17561. 8007a9a: 464f mov r7, r9
  17562. 8007a9c: 106d asrs r5, r5, #1
  17563. 8007a9e: d00b beq.n 8007ab8 <__pow5mult+0x90>
  17564. 8007aa0: 6820 ldr r0, [r4, #0]
  17565. 8007aa2: b938 cbnz r0, 8007ab4 <__pow5mult+0x8c>
  17566. 8007aa4: 4622 mov r2, r4
  17567. 8007aa6: 4621 mov r1, r4
  17568. 8007aa8: 4630 mov r0, r6
  17569. 8007aaa: f7ff ff27 bl 80078fc <__multiply>
  17570. 8007aae: 6020 str r0, [r4, #0]
  17571. 8007ab0: f8c0 8000 str.w r8, [r0]
  17572. 8007ab4: 4604 mov r4, r0
  17573. 8007ab6: e7e4 b.n 8007a82 <__pow5mult+0x5a>
  17574. 8007ab8: 4638 mov r0, r7
  17575. 8007aba: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  17576. 8007abe: bf00 nop
  17577. 8007ac0: 08008790 .word 0x08008790
  17578. 08007ac4 <__lshift>:
  17579. 8007ac4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  17580. 8007ac8: 460c mov r4, r1
  17581. 8007aca: 4607 mov r7, r0
  17582. 8007acc: 4616 mov r6, r2
  17583. 8007ace: 6923 ldr r3, [r4, #16]
  17584. 8007ad0: ea4f 1a62 mov.w sl, r2, asr #5
  17585. 8007ad4: eb0a 0903 add.w r9, sl, r3
  17586. 8007ad8: 6849 ldr r1, [r1, #4]
  17587. 8007ada: 68a3 ldr r3, [r4, #8]
  17588. 8007adc: f109 0501 add.w r5, r9, #1
  17589. 8007ae0: 42ab cmp r3, r5
  17590. 8007ae2: db32 blt.n 8007b4a <__lshift+0x86>
  17591. 8007ae4: 4638 mov r0, r7
  17592. 8007ae6: f7ff fe2c bl 8007742 <_Balloc>
  17593. 8007aea: 2300 movs r3, #0
  17594. 8007aec: 4680 mov r8, r0
  17595. 8007aee: 461a mov r2, r3
  17596. 8007af0: f100 0114 add.w r1, r0, #20
  17597. 8007af4: 4553 cmp r3, sl
  17598. 8007af6: db2b blt.n 8007b50 <__lshift+0x8c>
  17599. 8007af8: 6920 ldr r0, [r4, #16]
  17600. 8007afa: ea2a 7aea bic.w sl, sl, sl, asr #31
  17601. 8007afe: f104 0314 add.w r3, r4, #20
  17602. 8007b02: f016 021f ands.w r2, r6, #31
  17603. 8007b06: eb01 018a add.w r1, r1, sl, lsl #2
  17604. 8007b0a: eb03 0c80 add.w ip, r3, r0, lsl #2
  17605. 8007b0e: d025 beq.n 8007b5c <__lshift+0x98>
  17606. 8007b10: 2000 movs r0, #0
  17607. 8007b12: f1c2 0e20 rsb lr, r2, #32
  17608. 8007b16: 468a mov sl, r1
  17609. 8007b18: 681e ldr r6, [r3, #0]
  17610. 8007b1a: 4096 lsls r6, r2
  17611. 8007b1c: 4330 orrs r0, r6
  17612. 8007b1e: f84a 0b04 str.w r0, [sl], #4
  17613. 8007b22: f853 0b04 ldr.w r0, [r3], #4
  17614. 8007b26: 459c cmp ip, r3
  17615. 8007b28: fa20 f00e lsr.w r0, r0, lr
  17616. 8007b2c: d814 bhi.n 8007b58 <__lshift+0x94>
  17617. 8007b2e: 6048 str r0, [r1, #4]
  17618. 8007b30: b108 cbz r0, 8007b36 <__lshift+0x72>
  17619. 8007b32: f109 0502 add.w r5, r9, #2
  17620. 8007b36: 3d01 subs r5, #1
  17621. 8007b38: 4638 mov r0, r7
  17622. 8007b3a: f8c8 5010 str.w r5, [r8, #16]
  17623. 8007b3e: 4621 mov r1, r4
  17624. 8007b40: f7ff fe33 bl 80077aa <_Bfree>
  17625. 8007b44: 4640 mov r0, r8
  17626. 8007b46: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  17627. 8007b4a: 3101 adds r1, #1
  17628. 8007b4c: 005b lsls r3, r3, #1
  17629. 8007b4e: e7c7 b.n 8007ae0 <__lshift+0x1c>
  17630. 8007b50: f841 2023 str.w r2, [r1, r3, lsl #2]
  17631. 8007b54: 3301 adds r3, #1
  17632. 8007b56: e7cd b.n 8007af4 <__lshift+0x30>
  17633. 8007b58: 4651 mov r1, sl
  17634. 8007b5a: e7dc b.n 8007b16 <__lshift+0x52>
  17635. 8007b5c: 3904 subs r1, #4
  17636. 8007b5e: f853 2b04 ldr.w r2, [r3], #4
  17637. 8007b62: 459c cmp ip, r3
  17638. 8007b64: f841 2f04 str.w r2, [r1, #4]!
  17639. 8007b68: d8f9 bhi.n 8007b5e <__lshift+0x9a>
  17640. 8007b6a: e7e4 b.n 8007b36 <__lshift+0x72>
  17641. 08007b6c <__mcmp>:
  17642. 8007b6c: 6903 ldr r3, [r0, #16]
  17643. 8007b6e: 690a ldr r2, [r1, #16]
  17644. 8007b70: b530 push {r4, r5, lr}
  17645. 8007b72: 1a9b subs r3, r3, r2
  17646. 8007b74: d10c bne.n 8007b90 <__mcmp+0x24>
  17647. 8007b76: 0092 lsls r2, r2, #2
  17648. 8007b78: 3014 adds r0, #20
  17649. 8007b7a: 3114 adds r1, #20
  17650. 8007b7c: 1884 adds r4, r0, r2
  17651. 8007b7e: 4411 add r1, r2
  17652. 8007b80: f854 5d04 ldr.w r5, [r4, #-4]!
  17653. 8007b84: f851 2d04 ldr.w r2, [r1, #-4]!
  17654. 8007b88: 4295 cmp r5, r2
  17655. 8007b8a: d003 beq.n 8007b94 <__mcmp+0x28>
  17656. 8007b8c: d305 bcc.n 8007b9a <__mcmp+0x2e>
  17657. 8007b8e: 2301 movs r3, #1
  17658. 8007b90: 4618 mov r0, r3
  17659. 8007b92: bd30 pop {r4, r5, pc}
  17660. 8007b94: 42a0 cmp r0, r4
  17661. 8007b96: d3f3 bcc.n 8007b80 <__mcmp+0x14>
  17662. 8007b98: e7fa b.n 8007b90 <__mcmp+0x24>
  17663. 8007b9a: f04f 33ff mov.w r3, #4294967295
  17664. 8007b9e: e7f7 b.n 8007b90 <__mcmp+0x24>
  17665. 08007ba0 <__mdiff>:
  17666. 8007ba0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  17667. 8007ba4: 460d mov r5, r1
  17668. 8007ba6: 4607 mov r7, r0
  17669. 8007ba8: 4611 mov r1, r2
  17670. 8007baa: 4628 mov r0, r5
  17671. 8007bac: 4614 mov r4, r2
  17672. 8007bae: f7ff ffdd bl 8007b6c <__mcmp>
  17673. 8007bb2: 1e06 subs r6, r0, #0
  17674. 8007bb4: d108 bne.n 8007bc8 <__mdiff+0x28>
  17675. 8007bb6: 4631 mov r1, r6
  17676. 8007bb8: 4638 mov r0, r7
  17677. 8007bba: f7ff fdc2 bl 8007742 <_Balloc>
  17678. 8007bbe: 2301 movs r3, #1
  17679. 8007bc0: e9c0 3604 strd r3, r6, [r0, #16]
  17680. 8007bc4: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  17681. 8007bc8: bfa4 itt ge
  17682. 8007bca: 4623 movge r3, r4
  17683. 8007bcc: 462c movge r4, r5
  17684. 8007bce: 4638 mov r0, r7
  17685. 8007bd0: 6861 ldr r1, [r4, #4]
  17686. 8007bd2: bfa6 itte ge
  17687. 8007bd4: 461d movge r5, r3
  17688. 8007bd6: 2600 movge r6, #0
  17689. 8007bd8: 2601 movlt r6, #1
  17690. 8007bda: f7ff fdb2 bl 8007742 <_Balloc>
  17691. 8007bde: f04f 0e00 mov.w lr, #0
  17692. 8007be2: 60c6 str r6, [r0, #12]
  17693. 8007be4: 692b ldr r3, [r5, #16]
  17694. 8007be6: 6926 ldr r6, [r4, #16]
  17695. 8007be8: f104 0214 add.w r2, r4, #20
  17696. 8007bec: f105 0914 add.w r9, r5, #20
  17697. 8007bf0: eb02 0786 add.w r7, r2, r6, lsl #2
  17698. 8007bf4: eb09 0883 add.w r8, r9, r3, lsl #2
  17699. 8007bf8: f100 0114 add.w r1, r0, #20
  17700. 8007bfc: f852 ab04 ldr.w sl, [r2], #4
  17701. 8007c00: f859 5b04 ldr.w r5, [r9], #4
  17702. 8007c04: fa1f f38a uxth.w r3, sl
  17703. 8007c08: 4473 add r3, lr
  17704. 8007c0a: b2ac uxth r4, r5
  17705. 8007c0c: 1b1b subs r3, r3, r4
  17706. 8007c0e: 0c2c lsrs r4, r5, #16
  17707. 8007c10: ebc4 441a rsb r4, r4, sl, lsr #16
  17708. 8007c14: eb04 4423 add.w r4, r4, r3, asr #16
  17709. 8007c18: b29b uxth r3, r3
  17710. 8007c1a: ea4f 4e24 mov.w lr, r4, asr #16
  17711. 8007c1e: 45c8 cmp r8, r9
  17712. 8007c20: ea43 4404 orr.w r4, r3, r4, lsl #16
  17713. 8007c24: 4694 mov ip, r2
  17714. 8007c26: f841 4b04 str.w r4, [r1], #4
  17715. 8007c2a: d8e7 bhi.n 8007bfc <__mdiff+0x5c>
  17716. 8007c2c: 45bc cmp ip, r7
  17717. 8007c2e: d304 bcc.n 8007c3a <__mdiff+0x9a>
  17718. 8007c30: f851 3d04 ldr.w r3, [r1, #-4]!
  17719. 8007c34: b183 cbz r3, 8007c58 <__mdiff+0xb8>
  17720. 8007c36: 6106 str r6, [r0, #16]
  17721. 8007c38: e7c4 b.n 8007bc4 <__mdiff+0x24>
  17722. 8007c3a: f85c 4b04 ldr.w r4, [ip], #4
  17723. 8007c3e: b2a2 uxth r2, r4
  17724. 8007c40: 4472 add r2, lr
  17725. 8007c42: 1413 asrs r3, r2, #16
  17726. 8007c44: eb03 4314 add.w r3, r3, r4, lsr #16
  17727. 8007c48: b292 uxth r2, r2
  17728. 8007c4a: ea42 4203 orr.w r2, r2, r3, lsl #16
  17729. 8007c4e: ea4f 4e23 mov.w lr, r3, asr #16
  17730. 8007c52: f841 2b04 str.w r2, [r1], #4
  17731. 8007c56: e7e9 b.n 8007c2c <__mdiff+0x8c>
  17732. 8007c58: 3e01 subs r6, #1
  17733. 8007c5a: e7e9 b.n 8007c30 <__mdiff+0x90>
  17734. 08007c5c <__d2b>:
  17735. 8007c5c: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  17736. 8007c60: 461c mov r4, r3
  17737. 8007c62: e9dd 6508 ldrd r6, r5, [sp, #32]
  17738. 8007c66: 2101 movs r1, #1
  17739. 8007c68: 4690 mov r8, r2
  17740. 8007c6a: f7ff fd6a bl 8007742 <_Balloc>
  17741. 8007c6e: f3c4 0213 ubfx r2, r4, #0, #20
  17742. 8007c72: f3c4 540a ubfx r4, r4, #20, #11
  17743. 8007c76: 4607 mov r7, r0
  17744. 8007c78: bb34 cbnz r4, 8007cc8 <__d2b+0x6c>
  17745. 8007c7a: 9201 str r2, [sp, #4]
  17746. 8007c7c: f1b8 0200 subs.w r2, r8, #0
  17747. 8007c80: d027 beq.n 8007cd2 <__d2b+0x76>
  17748. 8007c82: a802 add r0, sp, #8
  17749. 8007c84: f840 2d08 str.w r2, [r0, #-8]!
  17750. 8007c88: f7ff fe00 bl 800788c <__lo0bits>
  17751. 8007c8c: 9900 ldr r1, [sp, #0]
  17752. 8007c8e: b1f0 cbz r0, 8007cce <__d2b+0x72>
  17753. 8007c90: 9a01 ldr r2, [sp, #4]
  17754. 8007c92: f1c0 0320 rsb r3, r0, #32
  17755. 8007c96: fa02 f303 lsl.w r3, r2, r3
  17756. 8007c9a: 430b orrs r3, r1
  17757. 8007c9c: 40c2 lsrs r2, r0
  17758. 8007c9e: 617b str r3, [r7, #20]
  17759. 8007ca0: 9201 str r2, [sp, #4]
  17760. 8007ca2: 9b01 ldr r3, [sp, #4]
  17761. 8007ca4: 2b00 cmp r3, #0
  17762. 8007ca6: bf14 ite ne
  17763. 8007ca8: 2102 movne r1, #2
  17764. 8007caa: 2101 moveq r1, #1
  17765. 8007cac: 61bb str r3, [r7, #24]
  17766. 8007cae: 6139 str r1, [r7, #16]
  17767. 8007cb0: b1c4 cbz r4, 8007ce4 <__d2b+0x88>
  17768. 8007cb2: f2a4 4433 subw r4, r4, #1075 ; 0x433
  17769. 8007cb6: 4404 add r4, r0
  17770. 8007cb8: 6034 str r4, [r6, #0]
  17771. 8007cba: f1c0 0035 rsb r0, r0, #53 ; 0x35
  17772. 8007cbe: 6028 str r0, [r5, #0]
  17773. 8007cc0: 4638 mov r0, r7
  17774. 8007cc2: b002 add sp, #8
  17775. 8007cc4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  17776. 8007cc8: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  17777. 8007ccc: e7d5 b.n 8007c7a <__d2b+0x1e>
  17778. 8007cce: 6179 str r1, [r7, #20]
  17779. 8007cd0: e7e7 b.n 8007ca2 <__d2b+0x46>
  17780. 8007cd2: a801 add r0, sp, #4
  17781. 8007cd4: f7ff fdda bl 800788c <__lo0bits>
  17782. 8007cd8: 2101 movs r1, #1
  17783. 8007cda: 9b01 ldr r3, [sp, #4]
  17784. 8007cdc: 6139 str r1, [r7, #16]
  17785. 8007cde: 617b str r3, [r7, #20]
  17786. 8007ce0: 3020 adds r0, #32
  17787. 8007ce2: e7e5 b.n 8007cb0 <__d2b+0x54>
  17788. 8007ce4: f2a0 4032 subw r0, r0, #1074 ; 0x432
  17789. 8007ce8: eb07 0381 add.w r3, r7, r1, lsl #2
  17790. 8007cec: 6030 str r0, [r6, #0]
  17791. 8007cee: 6918 ldr r0, [r3, #16]
  17792. 8007cf0: f7ff fdad bl 800784e <__hi0bits>
  17793. 8007cf4: ebc0 1041 rsb r0, r0, r1, lsl #5
  17794. 8007cf8: e7e1 b.n 8007cbe <__d2b+0x62>
  17795. 08007cfa <_calloc_r>:
  17796. 8007cfa: b538 push {r3, r4, r5, lr}
  17797. 8007cfc: fb02 f401 mul.w r4, r2, r1
  17798. 8007d00: 4621 mov r1, r4
  17799. 8007d02: f000 f855 bl 8007db0 <_malloc_r>
  17800. 8007d06: 4605 mov r5, r0
  17801. 8007d08: b118 cbz r0, 8007d12 <_calloc_r+0x18>
  17802. 8007d0a: 4622 mov r2, r4
  17803. 8007d0c: 2100 movs r1, #0
  17804. 8007d0e: f7fd fe7d bl 8005a0c <memset>
  17805. 8007d12: 4628 mov r0, r5
  17806. 8007d14: bd38 pop {r3, r4, r5, pc}
  17807. ...
  17808. 08007d18 <_free_r>:
  17809. 8007d18: b538 push {r3, r4, r5, lr}
  17810. 8007d1a: 4605 mov r5, r0
  17811. 8007d1c: 2900 cmp r1, #0
  17812. 8007d1e: d043 beq.n 8007da8 <_free_r+0x90>
  17813. 8007d20: f851 3c04 ldr.w r3, [r1, #-4]
  17814. 8007d24: 1f0c subs r4, r1, #4
  17815. 8007d26: 2b00 cmp r3, #0
  17816. 8007d28: bfb8 it lt
  17817. 8007d2a: 18e4 addlt r4, r4, r3
  17818. 8007d2c: f000 fa94 bl 8008258 <__malloc_lock>
  17819. 8007d30: 4a1e ldr r2, [pc, #120] ; (8007dac <_free_r+0x94>)
  17820. 8007d32: 6813 ldr r3, [r2, #0]
  17821. 8007d34: 4610 mov r0, r2
  17822. 8007d36: b933 cbnz r3, 8007d46 <_free_r+0x2e>
  17823. 8007d38: 6063 str r3, [r4, #4]
  17824. 8007d3a: 6014 str r4, [r2, #0]
  17825. 8007d3c: 4628 mov r0, r5
  17826. 8007d3e: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  17827. 8007d42: f000 ba8a b.w 800825a <__malloc_unlock>
  17828. 8007d46: 42a3 cmp r3, r4
  17829. 8007d48: d90b bls.n 8007d62 <_free_r+0x4a>
  17830. 8007d4a: 6821 ldr r1, [r4, #0]
  17831. 8007d4c: 1862 adds r2, r4, r1
  17832. 8007d4e: 4293 cmp r3, r2
  17833. 8007d50: bf01 itttt eq
  17834. 8007d52: 681a ldreq r2, [r3, #0]
  17835. 8007d54: 685b ldreq r3, [r3, #4]
  17836. 8007d56: 1852 addeq r2, r2, r1
  17837. 8007d58: 6022 streq r2, [r4, #0]
  17838. 8007d5a: 6063 str r3, [r4, #4]
  17839. 8007d5c: 6004 str r4, [r0, #0]
  17840. 8007d5e: e7ed b.n 8007d3c <_free_r+0x24>
  17841. 8007d60: 4613 mov r3, r2
  17842. 8007d62: 685a ldr r2, [r3, #4]
  17843. 8007d64: b10a cbz r2, 8007d6a <_free_r+0x52>
  17844. 8007d66: 42a2 cmp r2, r4
  17845. 8007d68: d9fa bls.n 8007d60 <_free_r+0x48>
  17846. 8007d6a: 6819 ldr r1, [r3, #0]
  17847. 8007d6c: 1858 adds r0, r3, r1
  17848. 8007d6e: 42a0 cmp r0, r4
  17849. 8007d70: d10b bne.n 8007d8a <_free_r+0x72>
  17850. 8007d72: 6820 ldr r0, [r4, #0]
  17851. 8007d74: 4401 add r1, r0
  17852. 8007d76: 1858 adds r0, r3, r1
  17853. 8007d78: 4282 cmp r2, r0
  17854. 8007d7a: 6019 str r1, [r3, #0]
  17855. 8007d7c: d1de bne.n 8007d3c <_free_r+0x24>
  17856. 8007d7e: 6810 ldr r0, [r2, #0]
  17857. 8007d80: 6852 ldr r2, [r2, #4]
  17858. 8007d82: 4401 add r1, r0
  17859. 8007d84: 6019 str r1, [r3, #0]
  17860. 8007d86: 605a str r2, [r3, #4]
  17861. 8007d88: e7d8 b.n 8007d3c <_free_r+0x24>
  17862. 8007d8a: d902 bls.n 8007d92 <_free_r+0x7a>
  17863. 8007d8c: 230c movs r3, #12
  17864. 8007d8e: 602b str r3, [r5, #0]
  17865. 8007d90: e7d4 b.n 8007d3c <_free_r+0x24>
  17866. 8007d92: 6820 ldr r0, [r4, #0]
  17867. 8007d94: 1821 adds r1, r4, r0
  17868. 8007d96: 428a cmp r2, r1
  17869. 8007d98: bf01 itttt eq
  17870. 8007d9a: 6811 ldreq r1, [r2, #0]
  17871. 8007d9c: 6852 ldreq r2, [r2, #4]
  17872. 8007d9e: 1809 addeq r1, r1, r0
  17873. 8007da0: 6021 streq r1, [r4, #0]
  17874. 8007da2: 6062 str r2, [r4, #4]
  17875. 8007da4: 605c str r4, [r3, #4]
  17876. 8007da6: e7c9 b.n 8007d3c <_free_r+0x24>
  17877. 8007da8: bd38 pop {r3, r4, r5, pc}
  17878. 8007daa: bf00 nop
  17879. 8007dac: 200003f4 .word 0x200003f4
  17880. 08007db0 <_malloc_r>:
  17881. 8007db0: b570 push {r4, r5, r6, lr}
  17882. 8007db2: 1ccd adds r5, r1, #3
  17883. 8007db4: f025 0503 bic.w r5, r5, #3
  17884. 8007db8: 3508 adds r5, #8
  17885. 8007dba: 2d0c cmp r5, #12
  17886. 8007dbc: bf38 it cc
  17887. 8007dbe: 250c movcc r5, #12
  17888. 8007dc0: 2d00 cmp r5, #0
  17889. 8007dc2: 4606 mov r6, r0
  17890. 8007dc4: db01 blt.n 8007dca <_malloc_r+0x1a>
  17891. 8007dc6: 42a9 cmp r1, r5
  17892. 8007dc8: d903 bls.n 8007dd2 <_malloc_r+0x22>
  17893. 8007dca: 230c movs r3, #12
  17894. 8007dcc: 6033 str r3, [r6, #0]
  17895. 8007dce: 2000 movs r0, #0
  17896. 8007dd0: bd70 pop {r4, r5, r6, pc}
  17897. 8007dd2: f000 fa41 bl 8008258 <__malloc_lock>
  17898. 8007dd6: 4a21 ldr r2, [pc, #132] ; (8007e5c <_malloc_r+0xac>)
  17899. 8007dd8: 6814 ldr r4, [r2, #0]
  17900. 8007dda: 4621 mov r1, r4
  17901. 8007ddc: b991 cbnz r1, 8007e04 <_malloc_r+0x54>
  17902. 8007dde: 4c20 ldr r4, [pc, #128] ; (8007e60 <_malloc_r+0xb0>)
  17903. 8007de0: 6823 ldr r3, [r4, #0]
  17904. 8007de2: b91b cbnz r3, 8007dec <_malloc_r+0x3c>
  17905. 8007de4: 4630 mov r0, r6
  17906. 8007de6: f000 f97b bl 80080e0 <_sbrk_r>
  17907. 8007dea: 6020 str r0, [r4, #0]
  17908. 8007dec: 4629 mov r1, r5
  17909. 8007dee: 4630 mov r0, r6
  17910. 8007df0: f000 f976 bl 80080e0 <_sbrk_r>
  17911. 8007df4: 1c43 adds r3, r0, #1
  17912. 8007df6: d124 bne.n 8007e42 <_malloc_r+0x92>
  17913. 8007df8: 230c movs r3, #12
  17914. 8007dfa: 4630 mov r0, r6
  17915. 8007dfc: 6033 str r3, [r6, #0]
  17916. 8007dfe: f000 fa2c bl 800825a <__malloc_unlock>
  17917. 8007e02: e7e4 b.n 8007dce <_malloc_r+0x1e>
  17918. 8007e04: 680b ldr r3, [r1, #0]
  17919. 8007e06: 1b5b subs r3, r3, r5
  17920. 8007e08: d418 bmi.n 8007e3c <_malloc_r+0x8c>
  17921. 8007e0a: 2b0b cmp r3, #11
  17922. 8007e0c: d90f bls.n 8007e2e <_malloc_r+0x7e>
  17923. 8007e0e: 600b str r3, [r1, #0]
  17924. 8007e10: 18cc adds r4, r1, r3
  17925. 8007e12: 50cd str r5, [r1, r3]
  17926. 8007e14: 4630 mov r0, r6
  17927. 8007e16: f000 fa20 bl 800825a <__malloc_unlock>
  17928. 8007e1a: f104 000b add.w r0, r4, #11
  17929. 8007e1e: 1d23 adds r3, r4, #4
  17930. 8007e20: f020 0007 bic.w r0, r0, #7
  17931. 8007e24: 1ac3 subs r3, r0, r3
  17932. 8007e26: d0d3 beq.n 8007dd0 <_malloc_r+0x20>
  17933. 8007e28: 425a negs r2, r3
  17934. 8007e2a: 50e2 str r2, [r4, r3]
  17935. 8007e2c: e7d0 b.n 8007dd0 <_malloc_r+0x20>
  17936. 8007e2e: 684b ldr r3, [r1, #4]
  17937. 8007e30: 428c cmp r4, r1
  17938. 8007e32: bf16 itet ne
  17939. 8007e34: 6063 strne r3, [r4, #4]
  17940. 8007e36: 6013 streq r3, [r2, #0]
  17941. 8007e38: 460c movne r4, r1
  17942. 8007e3a: e7eb b.n 8007e14 <_malloc_r+0x64>
  17943. 8007e3c: 460c mov r4, r1
  17944. 8007e3e: 6849 ldr r1, [r1, #4]
  17945. 8007e40: e7cc b.n 8007ddc <_malloc_r+0x2c>
  17946. 8007e42: 1cc4 adds r4, r0, #3
  17947. 8007e44: f024 0403 bic.w r4, r4, #3
  17948. 8007e48: 42a0 cmp r0, r4
  17949. 8007e4a: d005 beq.n 8007e58 <_malloc_r+0xa8>
  17950. 8007e4c: 1a21 subs r1, r4, r0
  17951. 8007e4e: 4630 mov r0, r6
  17952. 8007e50: f000 f946 bl 80080e0 <_sbrk_r>
  17953. 8007e54: 3001 adds r0, #1
  17954. 8007e56: d0cf beq.n 8007df8 <_malloc_r+0x48>
  17955. 8007e58: 6025 str r5, [r4, #0]
  17956. 8007e5a: e7db b.n 8007e14 <_malloc_r+0x64>
  17957. 8007e5c: 200003f4 .word 0x200003f4
  17958. 8007e60: 200003f8 .word 0x200003f8
  17959. 08007e64 <__sfputc_r>:
  17960. 8007e64: 6893 ldr r3, [r2, #8]
  17961. 8007e66: b410 push {r4}
  17962. 8007e68: 3b01 subs r3, #1
  17963. 8007e6a: 2b00 cmp r3, #0
  17964. 8007e6c: 6093 str r3, [r2, #8]
  17965. 8007e6e: da07 bge.n 8007e80 <__sfputc_r+0x1c>
  17966. 8007e70: 6994 ldr r4, [r2, #24]
  17967. 8007e72: 42a3 cmp r3, r4
  17968. 8007e74: db01 blt.n 8007e7a <__sfputc_r+0x16>
  17969. 8007e76: 290a cmp r1, #10
  17970. 8007e78: d102 bne.n 8007e80 <__sfputc_r+0x1c>
  17971. 8007e7a: bc10 pop {r4}
  17972. 8007e7c: f7fe bb50 b.w 8006520 <__swbuf_r>
  17973. 8007e80: 6813 ldr r3, [r2, #0]
  17974. 8007e82: 1c58 adds r0, r3, #1
  17975. 8007e84: 6010 str r0, [r2, #0]
  17976. 8007e86: 7019 strb r1, [r3, #0]
  17977. 8007e88: 4608 mov r0, r1
  17978. 8007e8a: bc10 pop {r4}
  17979. 8007e8c: 4770 bx lr
  17980. 08007e8e <__sfputs_r>:
  17981. 8007e8e: b5f8 push {r3, r4, r5, r6, r7, lr}
  17982. 8007e90: 4606 mov r6, r0
  17983. 8007e92: 460f mov r7, r1
  17984. 8007e94: 4614 mov r4, r2
  17985. 8007e96: 18d5 adds r5, r2, r3
  17986. 8007e98: 42ac cmp r4, r5
  17987. 8007e9a: d101 bne.n 8007ea0 <__sfputs_r+0x12>
  17988. 8007e9c: 2000 movs r0, #0
  17989. 8007e9e: e007 b.n 8007eb0 <__sfputs_r+0x22>
  17990. 8007ea0: 463a mov r2, r7
  17991. 8007ea2: f814 1b01 ldrb.w r1, [r4], #1
  17992. 8007ea6: 4630 mov r0, r6
  17993. 8007ea8: f7ff ffdc bl 8007e64 <__sfputc_r>
  17994. 8007eac: 1c43 adds r3, r0, #1
  17995. 8007eae: d1f3 bne.n 8007e98 <__sfputs_r+0xa>
  17996. 8007eb0: bdf8 pop {r3, r4, r5, r6, r7, pc}
  17997. ...
  17998. 08007eb4 <_vfiprintf_r>:
  17999. 8007eb4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  18000. 8007eb8: 460c mov r4, r1
  18001. 8007eba: b09d sub sp, #116 ; 0x74
  18002. 8007ebc: 4617 mov r7, r2
  18003. 8007ebe: 461d mov r5, r3
  18004. 8007ec0: 4606 mov r6, r0
  18005. 8007ec2: b118 cbz r0, 8007ecc <_vfiprintf_r+0x18>
  18006. 8007ec4: 6983 ldr r3, [r0, #24]
  18007. 8007ec6: b90b cbnz r3, 8007ecc <_vfiprintf_r+0x18>
  18008. 8007ec8: f7ff fb1e bl 8007508 <__sinit>
  18009. 8007ecc: 4b7c ldr r3, [pc, #496] ; (80080c0 <_vfiprintf_r+0x20c>)
  18010. 8007ece: 429c cmp r4, r3
  18011. 8007ed0: d158 bne.n 8007f84 <_vfiprintf_r+0xd0>
  18012. 8007ed2: 6874 ldr r4, [r6, #4]
  18013. 8007ed4: 89a3 ldrh r3, [r4, #12]
  18014. 8007ed6: 0718 lsls r0, r3, #28
  18015. 8007ed8: d55e bpl.n 8007f98 <_vfiprintf_r+0xe4>
  18016. 8007eda: 6923 ldr r3, [r4, #16]
  18017. 8007edc: 2b00 cmp r3, #0
  18018. 8007ede: d05b beq.n 8007f98 <_vfiprintf_r+0xe4>
  18019. 8007ee0: 2300 movs r3, #0
  18020. 8007ee2: 9309 str r3, [sp, #36] ; 0x24
  18021. 8007ee4: 2320 movs r3, #32
  18022. 8007ee6: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  18023. 8007eea: 2330 movs r3, #48 ; 0x30
  18024. 8007eec: f04f 0b01 mov.w fp, #1
  18025. 8007ef0: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  18026. 8007ef4: 9503 str r5, [sp, #12]
  18027. 8007ef6: 46b8 mov r8, r7
  18028. 8007ef8: 4645 mov r5, r8
  18029. 8007efa: f815 3b01 ldrb.w r3, [r5], #1
  18030. 8007efe: b10b cbz r3, 8007f04 <_vfiprintf_r+0x50>
  18031. 8007f00: 2b25 cmp r3, #37 ; 0x25
  18032. 8007f02: d154 bne.n 8007fae <_vfiprintf_r+0xfa>
  18033. 8007f04: ebb8 0a07 subs.w sl, r8, r7
  18034. 8007f08: d00b beq.n 8007f22 <_vfiprintf_r+0x6e>
  18035. 8007f0a: 4653 mov r3, sl
  18036. 8007f0c: 463a mov r2, r7
  18037. 8007f0e: 4621 mov r1, r4
  18038. 8007f10: 4630 mov r0, r6
  18039. 8007f12: f7ff ffbc bl 8007e8e <__sfputs_r>
  18040. 8007f16: 3001 adds r0, #1
  18041. 8007f18: f000 80c2 beq.w 80080a0 <_vfiprintf_r+0x1ec>
  18042. 8007f1c: 9b09 ldr r3, [sp, #36] ; 0x24
  18043. 8007f1e: 4453 add r3, sl
  18044. 8007f20: 9309 str r3, [sp, #36] ; 0x24
  18045. 8007f22: f898 3000 ldrb.w r3, [r8]
  18046. 8007f26: 2b00 cmp r3, #0
  18047. 8007f28: f000 80ba beq.w 80080a0 <_vfiprintf_r+0x1ec>
  18048. 8007f2c: 2300 movs r3, #0
  18049. 8007f2e: f04f 32ff mov.w r2, #4294967295
  18050. 8007f32: e9cd 2305 strd r2, r3, [sp, #20]
  18051. 8007f36: 9304 str r3, [sp, #16]
  18052. 8007f38: 9307 str r3, [sp, #28]
  18053. 8007f3a: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  18054. 8007f3e: 931a str r3, [sp, #104] ; 0x68
  18055. 8007f40: 46a8 mov r8, r5
  18056. 8007f42: 2205 movs r2, #5
  18057. 8007f44: f818 1b01 ldrb.w r1, [r8], #1
  18058. 8007f48: 485e ldr r0, [pc, #376] ; (80080c4 <_vfiprintf_r+0x210>)
  18059. 8007f4a: f7ff fbe1 bl 8007710 <memchr>
  18060. 8007f4e: 9b04 ldr r3, [sp, #16]
  18061. 8007f50: bb78 cbnz r0, 8007fb2 <_vfiprintf_r+0xfe>
  18062. 8007f52: 06d9 lsls r1, r3, #27
  18063. 8007f54: bf44 itt mi
  18064. 8007f56: 2220 movmi r2, #32
  18065. 8007f58: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  18066. 8007f5c: 071a lsls r2, r3, #28
  18067. 8007f5e: bf44 itt mi
  18068. 8007f60: 222b movmi r2, #43 ; 0x2b
  18069. 8007f62: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  18070. 8007f66: 782a ldrb r2, [r5, #0]
  18071. 8007f68: 2a2a cmp r2, #42 ; 0x2a
  18072. 8007f6a: d02a beq.n 8007fc2 <_vfiprintf_r+0x10e>
  18073. 8007f6c: 46a8 mov r8, r5
  18074. 8007f6e: 2000 movs r0, #0
  18075. 8007f70: 250a movs r5, #10
  18076. 8007f72: 9a07 ldr r2, [sp, #28]
  18077. 8007f74: 4641 mov r1, r8
  18078. 8007f76: f811 3b01 ldrb.w r3, [r1], #1
  18079. 8007f7a: 3b30 subs r3, #48 ; 0x30
  18080. 8007f7c: 2b09 cmp r3, #9
  18081. 8007f7e: d969 bls.n 8008054 <_vfiprintf_r+0x1a0>
  18082. 8007f80: b360 cbz r0, 8007fdc <_vfiprintf_r+0x128>
  18083. 8007f82: e024 b.n 8007fce <_vfiprintf_r+0x11a>
  18084. 8007f84: 4b50 ldr r3, [pc, #320] ; (80080c8 <_vfiprintf_r+0x214>)
  18085. 8007f86: 429c cmp r4, r3
  18086. 8007f88: d101 bne.n 8007f8e <_vfiprintf_r+0xda>
  18087. 8007f8a: 68b4 ldr r4, [r6, #8]
  18088. 8007f8c: e7a2 b.n 8007ed4 <_vfiprintf_r+0x20>
  18089. 8007f8e: 4b4f ldr r3, [pc, #316] ; (80080cc <_vfiprintf_r+0x218>)
  18090. 8007f90: 429c cmp r4, r3
  18091. 8007f92: bf08 it eq
  18092. 8007f94: 68f4 ldreq r4, [r6, #12]
  18093. 8007f96: e79d b.n 8007ed4 <_vfiprintf_r+0x20>
  18094. 8007f98: 4621 mov r1, r4
  18095. 8007f9a: 4630 mov r0, r6
  18096. 8007f9c: f7fe fb12 bl 80065c4 <__swsetup_r>
  18097. 8007fa0: 2800 cmp r0, #0
  18098. 8007fa2: d09d beq.n 8007ee0 <_vfiprintf_r+0x2c>
  18099. 8007fa4: f04f 30ff mov.w r0, #4294967295
  18100. 8007fa8: b01d add sp, #116 ; 0x74
  18101. 8007faa: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18102. 8007fae: 46a8 mov r8, r5
  18103. 8007fb0: e7a2 b.n 8007ef8 <_vfiprintf_r+0x44>
  18104. 8007fb2: 4a44 ldr r2, [pc, #272] ; (80080c4 <_vfiprintf_r+0x210>)
  18105. 8007fb4: 4645 mov r5, r8
  18106. 8007fb6: 1a80 subs r0, r0, r2
  18107. 8007fb8: fa0b f000 lsl.w r0, fp, r0
  18108. 8007fbc: 4318 orrs r0, r3
  18109. 8007fbe: 9004 str r0, [sp, #16]
  18110. 8007fc0: e7be b.n 8007f40 <_vfiprintf_r+0x8c>
  18111. 8007fc2: 9a03 ldr r2, [sp, #12]
  18112. 8007fc4: 1d11 adds r1, r2, #4
  18113. 8007fc6: 6812 ldr r2, [r2, #0]
  18114. 8007fc8: 9103 str r1, [sp, #12]
  18115. 8007fca: 2a00 cmp r2, #0
  18116. 8007fcc: db01 blt.n 8007fd2 <_vfiprintf_r+0x11e>
  18117. 8007fce: 9207 str r2, [sp, #28]
  18118. 8007fd0: e004 b.n 8007fdc <_vfiprintf_r+0x128>
  18119. 8007fd2: 4252 negs r2, r2
  18120. 8007fd4: f043 0302 orr.w r3, r3, #2
  18121. 8007fd8: 9207 str r2, [sp, #28]
  18122. 8007fda: 9304 str r3, [sp, #16]
  18123. 8007fdc: f898 3000 ldrb.w r3, [r8]
  18124. 8007fe0: 2b2e cmp r3, #46 ; 0x2e
  18125. 8007fe2: d10e bne.n 8008002 <_vfiprintf_r+0x14e>
  18126. 8007fe4: f898 3001 ldrb.w r3, [r8, #1]
  18127. 8007fe8: 2b2a cmp r3, #42 ; 0x2a
  18128. 8007fea: d138 bne.n 800805e <_vfiprintf_r+0x1aa>
  18129. 8007fec: 9b03 ldr r3, [sp, #12]
  18130. 8007fee: f108 0802 add.w r8, r8, #2
  18131. 8007ff2: 1d1a adds r2, r3, #4
  18132. 8007ff4: 681b ldr r3, [r3, #0]
  18133. 8007ff6: 9203 str r2, [sp, #12]
  18134. 8007ff8: 2b00 cmp r3, #0
  18135. 8007ffa: bfb8 it lt
  18136. 8007ffc: f04f 33ff movlt.w r3, #4294967295
  18137. 8008000: 9305 str r3, [sp, #20]
  18138. 8008002: 4d33 ldr r5, [pc, #204] ; (80080d0 <_vfiprintf_r+0x21c>)
  18139. 8008004: 2203 movs r2, #3
  18140. 8008006: f898 1000 ldrb.w r1, [r8]
  18141. 800800a: 4628 mov r0, r5
  18142. 800800c: f7ff fb80 bl 8007710 <memchr>
  18143. 8008010: b140 cbz r0, 8008024 <_vfiprintf_r+0x170>
  18144. 8008012: 2340 movs r3, #64 ; 0x40
  18145. 8008014: 1b40 subs r0, r0, r5
  18146. 8008016: fa03 f000 lsl.w r0, r3, r0
  18147. 800801a: 9b04 ldr r3, [sp, #16]
  18148. 800801c: f108 0801 add.w r8, r8, #1
  18149. 8008020: 4303 orrs r3, r0
  18150. 8008022: 9304 str r3, [sp, #16]
  18151. 8008024: f898 1000 ldrb.w r1, [r8]
  18152. 8008028: 2206 movs r2, #6
  18153. 800802a: 482a ldr r0, [pc, #168] ; (80080d4 <_vfiprintf_r+0x220>)
  18154. 800802c: f108 0701 add.w r7, r8, #1
  18155. 8008030: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  18156. 8008034: f7ff fb6c bl 8007710 <memchr>
  18157. 8008038: 2800 cmp r0, #0
  18158. 800803a: d037 beq.n 80080ac <_vfiprintf_r+0x1f8>
  18159. 800803c: 4b26 ldr r3, [pc, #152] ; (80080d8 <_vfiprintf_r+0x224>)
  18160. 800803e: bb1b cbnz r3, 8008088 <_vfiprintf_r+0x1d4>
  18161. 8008040: 9b03 ldr r3, [sp, #12]
  18162. 8008042: 3307 adds r3, #7
  18163. 8008044: f023 0307 bic.w r3, r3, #7
  18164. 8008048: 3308 adds r3, #8
  18165. 800804a: 9303 str r3, [sp, #12]
  18166. 800804c: 9b09 ldr r3, [sp, #36] ; 0x24
  18167. 800804e: 444b add r3, r9
  18168. 8008050: 9309 str r3, [sp, #36] ; 0x24
  18169. 8008052: e750 b.n 8007ef6 <_vfiprintf_r+0x42>
  18170. 8008054: fb05 3202 mla r2, r5, r2, r3
  18171. 8008058: 2001 movs r0, #1
  18172. 800805a: 4688 mov r8, r1
  18173. 800805c: e78a b.n 8007f74 <_vfiprintf_r+0xc0>
  18174. 800805e: 2300 movs r3, #0
  18175. 8008060: 250a movs r5, #10
  18176. 8008062: 4619 mov r1, r3
  18177. 8008064: f108 0801 add.w r8, r8, #1
  18178. 8008068: 9305 str r3, [sp, #20]
  18179. 800806a: 4640 mov r0, r8
  18180. 800806c: f810 2b01 ldrb.w r2, [r0], #1
  18181. 8008070: 3a30 subs r2, #48 ; 0x30
  18182. 8008072: 2a09 cmp r2, #9
  18183. 8008074: d903 bls.n 800807e <_vfiprintf_r+0x1ca>
  18184. 8008076: 2b00 cmp r3, #0
  18185. 8008078: d0c3 beq.n 8008002 <_vfiprintf_r+0x14e>
  18186. 800807a: 9105 str r1, [sp, #20]
  18187. 800807c: e7c1 b.n 8008002 <_vfiprintf_r+0x14e>
  18188. 800807e: fb05 2101 mla r1, r5, r1, r2
  18189. 8008082: 2301 movs r3, #1
  18190. 8008084: 4680 mov r8, r0
  18191. 8008086: e7f0 b.n 800806a <_vfiprintf_r+0x1b6>
  18192. 8008088: ab03 add r3, sp, #12
  18193. 800808a: 9300 str r3, [sp, #0]
  18194. 800808c: 4622 mov r2, r4
  18195. 800808e: 4b13 ldr r3, [pc, #76] ; (80080dc <_vfiprintf_r+0x228>)
  18196. 8008090: a904 add r1, sp, #16
  18197. 8008092: 4630 mov r0, r6
  18198. 8008094: f7fd fd54 bl 8005b40 <_printf_float>
  18199. 8008098: f1b0 3fff cmp.w r0, #4294967295
  18200. 800809c: 4681 mov r9, r0
  18201. 800809e: d1d5 bne.n 800804c <_vfiprintf_r+0x198>
  18202. 80080a0: 89a3 ldrh r3, [r4, #12]
  18203. 80080a2: 065b lsls r3, r3, #25
  18204. 80080a4: f53f af7e bmi.w 8007fa4 <_vfiprintf_r+0xf0>
  18205. 80080a8: 9809 ldr r0, [sp, #36] ; 0x24
  18206. 80080aa: e77d b.n 8007fa8 <_vfiprintf_r+0xf4>
  18207. 80080ac: ab03 add r3, sp, #12
  18208. 80080ae: 9300 str r3, [sp, #0]
  18209. 80080b0: 4622 mov r2, r4
  18210. 80080b2: 4b0a ldr r3, [pc, #40] ; (80080dc <_vfiprintf_r+0x228>)
  18211. 80080b4: a904 add r1, sp, #16
  18212. 80080b6: 4630 mov r0, r6
  18213. 80080b8: f7fd ffee bl 8006098 <_printf_i>
  18214. 80080bc: e7ec b.n 8008098 <_vfiprintf_r+0x1e4>
  18215. 80080be: bf00 nop
  18216. 80080c0: 08008660 .word 0x08008660
  18217. 80080c4: 0800879c .word 0x0800879c
  18218. 80080c8: 08008680 .word 0x08008680
  18219. 80080cc: 08008640 .word 0x08008640
  18220. 80080d0: 080087a2 .word 0x080087a2
  18221. 80080d4: 080087a6 .word 0x080087a6
  18222. 80080d8: 08005b41 .word 0x08005b41
  18223. 80080dc: 08007e8f .word 0x08007e8f
  18224. 080080e0 <_sbrk_r>:
  18225. 80080e0: b538 push {r3, r4, r5, lr}
  18226. 80080e2: 2300 movs r3, #0
  18227. 80080e4: 4c05 ldr r4, [pc, #20] ; (80080fc <_sbrk_r+0x1c>)
  18228. 80080e6: 4605 mov r5, r0
  18229. 80080e8: 4608 mov r0, r1
  18230. 80080ea: 6023 str r3, [r4, #0]
  18231. 80080ec: f7fd fbda bl 80058a4 <_sbrk>
  18232. 80080f0: 1c43 adds r3, r0, #1
  18233. 80080f2: d102 bne.n 80080fa <_sbrk_r+0x1a>
  18234. 80080f4: 6823 ldr r3, [r4, #0]
  18235. 80080f6: b103 cbz r3, 80080fa <_sbrk_r+0x1a>
  18236. 80080f8: 602b str r3, [r5, #0]
  18237. 80080fa: bd38 pop {r3, r4, r5, pc}
  18238. 80080fc: 200008e4 .word 0x200008e4
  18239. 08008100 <__sread>:
  18240. 8008100: b510 push {r4, lr}
  18241. 8008102: 460c mov r4, r1
  18242. 8008104: f9b1 100e ldrsh.w r1, [r1, #14]
  18243. 8008108: f000 f8a8 bl 800825c <_read_r>
  18244. 800810c: 2800 cmp r0, #0
  18245. 800810e: bfab itete ge
  18246. 8008110: 6d63 ldrge r3, [r4, #84] ; 0x54
  18247. 8008112: 89a3 ldrhlt r3, [r4, #12]
  18248. 8008114: 181b addge r3, r3, r0
  18249. 8008116: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  18250. 800811a: bfac ite ge
  18251. 800811c: 6563 strge r3, [r4, #84] ; 0x54
  18252. 800811e: 81a3 strhlt r3, [r4, #12]
  18253. 8008120: bd10 pop {r4, pc}
  18254. 08008122 <__swrite>:
  18255. 8008122: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  18256. 8008126: 461f mov r7, r3
  18257. 8008128: 898b ldrh r3, [r1, #12]
  18258. 800812a: 4605 mov r5, r0
  18259. 800812c: 05db lsls r3, r3, #23
  18260. 800812e: 460c mov r4, r1
  18261. 8008130: 4616 mov r6, r2
  18262. 8008132: d505 bpl.n 8008140 <__swrite+0x1e>
  18263. 8008134: 2302 movs r3, #2
  18264. 8008136: 2200 movs r2, #0
  18265. 8008138: f9b1 100e ldrsh.w r1, [r1, #14]
  18266. 800813c: f000 f868 bl 8008210 <_lseek_r>
  18267. 8008140: 89a3 ldrh r3, [r4, #12]
  18268. 8008142: 4632 mov r2, r6
  18269. 8008144: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  18270. 8008148: 81a3 strh r3, [r4, #12]
  18271. 800814a: f9b4 100e ldrsh.w r1, [r4, #14]
  18272. 800814e: 463b mov r3, r7
  18273. 8008150: 4628 mov r0, r5
  18274. 8008152: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  18275. 8008156: f000 b817 b.w 8008188 <_write_r>
  18276. 0800815a <__sseek>:
  18277. 800815a: b510 push {r4, lr}
  18278. 800815c: 460c mov r4, r1
  18279. 800815e: f9b1 100e ldrsh.w r1, [r1, #14]
  18280. 8008162: f000 f855 bl 8008210 <_lseek_r>
  18281. 8008166: 1c43 adds r3, r0, #1
  18282. 8008168: 89a3 ldrh r3, [r4, #12]
  18283. 800816a: bf15 itete ne
  18284. 800816c: 6560 strne r0, [r4, #84] ; 0x54
  18285. 800816e: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  18286. 8008172: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  18287. 8008176: 81a3 strheq r3, [r4, #12]
  18288. 8008178: bf18 it ne
  18289. 800817a: 81a3 strhne r3, [r4, #12]
  18290. 800817c: bd10 pop {r4, pc}
  18291. 0800817e <__sclose>:
  18292. 800817e: f9b1 100e ldrsh.w r1, [r1, #14]
  18293. 8008182: f000 b813 b.w 80081ac <_close_r>
  18294. ...
  18295. 08008188 <_write_r>:
  18296. 8008188: b538 push {r3, r4, r5, lr}
  18297. 800818a: 4605 mov r5, r0
  18298. 800818c: 4608 mov r0, r1
  18299. 800818e: 4611 mov r1, r2
  18300. 8008190: 2200 movs r2, #0
  18301. 8008192: 4c05 ldr r4, [pc, #20] ; (80081a8 <_write_r+0x20>)
  18302. 8008194: 6022 str r2, [r4, #0]
  18303. 8008196: 461a mov r2, r3
  18304. 8008198: f7fc fd90 bl 8004cbc <_write>
  18305. 800819c: 1c43 adds r3, r0, #1
  18306. 800819e: d102 bne.n 80081a6 <_write_r+0x1e>
  18307. 80081a0: 6823 ldr r3, [r4, #0]
  18308. 80081a2: b103 cbz r3, 80081a6 <_write_r+0x1e>
  18309. 80081a4: 602b str r3, [r5, #0]
  18310. 80081a6: bd38 pop {r3, r4, r5, pc}
  18311. 80081a8: 200008e4 .word 0x200008e4
  18312. 080081ac <_close_r>:
  18313. 80081ac: b538 push {r3, r4, r5, lr}
  18314. 80081ae: 2300 movs r3, #0
  18315. 80081b0: 4c05 ldr r4, [pc, #20] ; (80081c8 <_close_r+0x1c>)
  18316. 80081b2: 4605 mov r5, r0
  18317. 80081b4: 4608 mov r0, r1
  18318. 80081b6: 6023 str r3, [r4, #0]
  18319. 80081b8: f7fd fb43 bl 8005842 <_close>
  18320. 80081bc: 1c43 adds r3, r0, #1
  18321. 80081be: d102 bne.n 80081c6 <_close_r+0x1a>
  18322. 80081c0: 6823 ldr r3, [r4, #0]
  18323. 80081c2: b103 cbz r3, 80081c6 <_close_r+0x1a>
  18324. 80081c4: 602b str r3, [r5, #0]
  18325. 80081c6: bd38 pop {r3, r4, r5, pc}
  18326. 80081c8: 200008e4 .word 0x200008e4
  18327. 080081cc <_fstat_r>:
  18328. 80081cc: b538 push {r3, r4, r5, lr}
  18329. 80081ce: 2300 movs r3, #0
  18330. 80081d0: 4c06 ldr r4, [pc, #24] ; (80081ec <_fstat_r+0x20>)
  18331. 80081d2: 4605 mov r5, r0
  18332. 80081d4: 4608 mov r0, r1
  18333. 80081d6: 4611 mov r1, r2
  18334. 80081d8: 6023 str r3, [r4, #0]
  18335. 80081da: f7fd fb3d bl 8005858 <_fstat>
  18336. 80081de: 1c43 adds r3, r0, #1
  18337. 80081e0: d102 bne.n 80081e8 <_fstat_r+0x1c>
  18338. 80081e2: 6823 ldr r3, [r4, #0]
  18339. 80081e4: b103 cbz r3, 80081e8 <_fstat_r+0x1c>
  18340. 80081e6: 602b str r3, [r5, #0]
  18341. 80081e8: bd38 pop {r3, r4, r5, pc}
  18342. 80081ea: bf00 nop
  18343. 80081ec: 200008e4 .word 0x200008e4
  18344. 080081f0 <_isatty_r>:
  18345. 80081f0: b538 push {r3, r4, r5, lr}
  18346. 80081f2: 2300 movs r3, #0
  18347. 80081f4: 4c05 ldr r4, [pc, #20] ; (800820c <_isatty_r+0x1c>)
  18348. 80081f6: 4605 mov r5, r0
  18349. 80081f8: 4608 mov r0, r1
  18350. 80081fa: 6023 str r3, [r4, #0]
  18351. 80081fc: f7fd fb3b bl 8005876 <_isatty>
  18352. 8008200: 1c43 adds r3, r0, #1
  18353. 8008202: d102 bne.n 800820a <_isatty_r+0x1a>
  18354. 8008204: 6823 ldr r3, [r4, #0]
  18355. 8008206: b103 cbz r3, 800820a <_isatty_r+0x1a>
  18356. 8008208: 602b str r3, [r5, #0]
  18357. 800820a: bd38 pop {r3, r4, r5, pc}
  18358. 800820c: 200008e4 .word 0x200008e4
  18359. 08008210 <_lseek_r>:
  18360. 8008210: b538 push {r3, r4, r5, lr}
  18361. 8008212: 4605 mov r5, r0
  18362. 8008214: 4608 mov r0, r1
  18363. 8008216: 4611 mov r1, r2
  18364. 8008218: 2200 movs r2, #0
  18365. 800821a: 4c05 ldr r4, [pc, #20] ; (8008230 <_lseek_r+0x20>)
  18366. 800821c: 6022 str r2, [r4, #0]
  18367. 800821e: 461a mov r2, r3
  18368. 8008220: f7fd fb33 bl 800588a <_lseek>
  18369. 8008224: 1c43 adds r3, r0, #1
  18370. 8008226: d102 bne.n 800822e <_lseek_r+0x1e>
  18371. 8008228: 6823 ldr r3, [r4, #0]
  18372. 800822a: b103 cbz r3, 800822e <_lseek_r+0x1e>
  18373. 800822c: 602b str r3, [r5, #0]
  18374. 800822e: bd38 pop {r3, r4, r5, pc}
  18375. 8008230: 200008e4 .word 0x200008e4
  18376. 08008234 <__ascii_mbtowc>:
  18377. 8008234: b082 sub sp, #8
  18378. 8008236: b901 cbnz r1, 800823a <__ascii_mbtowc+0x6>
  18379. 8008238: a901 add r1, sp, #4
  18380. 800823a: b142 cbz r2, 800824e <__ascii_mbtowc+0x1a>
  18381. 800823c: b14b cbz r3, 8008252 <__ascii_mbtowc+0x1e>
  18382. 800823e: 7813 ldrb r3, [r2, #0]
  18383. 8008240: 600b str r3, [r1, #0]
  18384. 8008242: 7812 ldrb r2, [r2, #0]
  18385. 8008244: 1c10 adds r0, r2, #0
  18386. 8008246: bf18 it ne
  18387. 8008248: 2001 movne r0, #1
  18388. 800824a: b002 add sp, #8
  18389. 800824c: 4770 bx lr
  18390. 800824e: 4610 mov r0, r2
  18391. 8008250: e7fb b.n 800824a <__ascii_mbtowc+0x16>
  18392. 8008252: f06f 0001 mvn.w r0, #1
  18393. 8008256: e7f8 b.n 800824a <__ascii_mbtowc+0x16>
  18394. 08008258 <__malloc_lock>:
  18395. 8008258: 4770 bx lr
  18396. 0800825a <__malloc_unlock>:
  18397. 800825a: 4770 bx lr
  18398. 0800825c <_read_r>:
  18399. 800825c: b538 push {r3, r4, r5, lr}
  18400. 800825e: 4605 mov r5, r0
  18401. 8008260: 4608 mov r0, r1
  18402. 8008262: 4611 mov r1, r2
  18403. 8008264: 2200 movs r2, #0
  18404. 8008266: 4c05 ldr r4, [pc, #20] ; (800827c <_read_r+0x20>)
  18405. 8008268: 6022 str r2, [r4, #0]
  18406. 800826a: 461a mov r2, r3
  18407. 800826c: f7fd facc bl 8005808 <_read>
  18408. 8008270: 1c43 adds r3, r0, #1
  18409. 8008272: d102 bne.n 800827a <_read_r+0x1e>
  18410. 8008274: 6823 ldr r3, [r4, #0]
  18411. 8008276: b103 cbz r3, 800827a <_read_r+0x1e>
  18412. 8008278: 602b str r3, [r5, #0]
  18413. 800827a: bd38 pop {r3, r4, r5, pc}
  18414. 800827c: 200008e4 .word 0x200008e4
  18415. 08008280 <__ascii_wctomb>:
  18416. 8008280: b149 cbz r1, 8008296 <__ascii_wctomb+0x16>
  18417. 8008282: 2aff cmp r2, #255 ; 0xff
  18418. 8008284: bf8b itete hi
  18419. 8008286: 238a movhi r3, #138 ; 0x8a
  18420. 8008288: 700a strbls r2, [r1, #0]
  18421. 800828a: 6003 strhi r3, [r0, #0]
  18422. 800828c: 2001 movls r0, #1
  18423. 800828e: bf88 it hi
  18424. 8008290: f04f 30ff movhi.w r0, #4294967295
  18425. 8008294: 4770 bx lr
  18426. 8008296: 4608 mov r0, r1
  18427. 8008298: 4770 bx lr
  18428. ...
  18429. 0800829c <_init>:
  18430. 800829c: b5f8 push {r3, r4, r5, r6, r7, lr}
  18431. 800829e: bf00 nop
  18432. 80082a0: bcf8 pop {r3, r4, r5, r6, r7}
  18433. 80082a2: bc08 pop {r3}
  18434. 80082a4: 469e mov lr, r3
  18435. 80082a6: 4770 bx lr
  18436. 080082a8 <_fini>:
  18437. 80082a8: b5f8 push {r3, r4, r5, r6, r7, lr}
  18438. 80082aa: bf00 nop
  18439. 80082ac: bcf8 pop {r3, r4, r5, r6, r7}
  18440. 80082ae: bc08 pop {r3}
  18441. 80082b0: 469e mov lr, r3
  18442. 80082b2: 4770 bx lr