Nesslab_200M_System.list 759 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208
  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 0000861c 080001d0 080001d0 000101d0 2**3
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000680 080087f0 080087f0 000187f0 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 08008e70 08008e70 000201dc 2**0
  11. CONTENTS
  12. 4 .ARM 00000000 08008e70 08008e70 000201dc 2**0
  13. CONTENTS
  14. 5 .preinit_array 00000000 08008e70 08008e70 000201dc 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 08008e70 08008e70 00018e70 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 08008e74 08008e74 00018e74 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 000001dc 20000000 08008e78 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 000009b8 200001e0 08009054 000201e0 2**3
  23. ALLOC
  24. 10 ._user_heap_stack 00000600 20000b98 08009054 00020b98 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000029 00000000 00000000 000201dc 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 000147b9 00000000 00000000 00020205 2**0
  29. CONTENTS, READONLY, DEBUGGING
  30. 13 .debug_abbrev 0000363e 00000000 00000000 000349be 2**0
  31. CONTENTS, READONLY, DEBUGGING
  32. 14 .debug_aranges 00001160 00000000 00000000 00038000 2**3
  33. CONTENTS, READONLY, DEBUGGING
  34. 15 .debug_ranges 00000fb8 00000000 00000000 00039160 2**3
  35. CONTENTS, READONLY, DEBUGGING
  36. 16 .debug_macro 00010efd 00000000 00000000 0003a118 2**0
  37. CONTENTS, READONLY, DEBUGGING
  38. 17 .debug_line 0000f58d 00000000 00000000 0004b015 2**0
  39. CONTENTS, READONLY, DEBUGGING
  40. 18 .debug_str 000587b4 00000000 00000000 0005a5a2 2**0
  41. CONTENTS, READONLY, DEBUGGING
  42. 19 .comment 0000007b 00000000 00000000 000b2d56 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00005490 00000000 00000000 000b2dd4 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: 080087d4 .word 0x080087d4
  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: 080087d4 .word 0x080087d4
  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_d2uiz>:
  846. 8000b48: 004a lsls r2, r1, #1
  847. 8000b4a: d211 bcs.n 8000b70 <__aeabi_d2uiz+0x28>
  848. 8000b4c: f512 1200 adds.w r2, r2, #2097152 ; 0x200000
  849. 8000b50: d211 bcs.n 8000b76 <__aeabi_d2uiz+0x2e>
  850. 8000b52: d50d bpl.n 8000b70 <__aeabi_d2uiz+0x28>
  851. 8000b54: f46f 7378 mvn.w r3, #992 ; 0x3e0
  852. 8000b58: ebb3 5262 subs.w r2, r3, r2, asr #21
  853. 8000b5c: d40e bmi.n 8000b7c <__aeabi_d2uiz+0x34>
  854. 8000b5e: ea4f 23c1 mov.w r3, r1, lsl #11
  855. 8000b62: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  856. 8000b66: ea43 5350 orr.w r3, r3, r0, lsr #21
  857. 8000b6a: fa23 f002 lsr.w r0, r3, r2
  858. 8000b6e: 4770 bx lr
  859. 8000b70: f04f 0000 mov.w r0, #0
  860. 8000b74: 4770 bx lr
  861. 8000b76: ea50 3001 orrs.w r0, r0, r1, lsl #12
  862. 8000b7a: d102 bne.n 8000b82 <__aeabi_d2uiz+0x3a>
  863. 8000b7c: f04f 30ff mov.w r0, #4294967295
  864. 8000b80: 4770 bx lr
  865. 8000b82: f04f 0000 mov.w r0, #0
  866. 8000b86: 4770 bx lr
  867. 08000b88 <__aeabi_d2f>:
  868. 8000b88: ea4f 0241 mov.w r2, r1, lsl #1
  869. 8000b8c: f1b2 43e0 subs.w r3, r2, #1879048192 ; 0x70000000
  870. 8000b90: bf24 itt cs
  871. 8000b92: f5b3 1c00 subscs.w ip, r3, #2097152 ; 0x200000
  872. 8000b96: f1dc 5cfe rsbscs ip, ip, #532676608 ; 0x1fc00000
  873. 8000b9a: d90d bls.n 8000bb8 <__aeabi_d2f+0x30>
  874. 8000b9c: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000
  875. 8000ba0: ea4f 02c0 mov.w r2, r0, lsl #3
  876. 8000ba4: ea4c 7050 orr.w r0, ip, r0, lsr #29
  877. 8000ba8: f1b2 4f00 cmp.w r2, #2147483648 ; 0x80000000
  878. 8000bac: eb40 0083 adc.w r0, r0, r3, lsl #2
  879. 8000bb0: bf08 it eq
  880. 8000bb2: f020 0001 biceq.w r0, r0, #1
  881. 8000bb6: 4770 bx lr
  882. 8000bb8: f011 4f80 tst.w r1, #1073741824 ; 0x40000000
  883. 8000bbc: d121 bne.n 8000c02 <__aeabi_d2f+0x7a>
  884. 8000bbe: f113 7238 adds.w r2, r3, #48234496 ; 0x2e00000
  885. 8000bc2: bfbc itt lt
  886. 8000bc4: f001 4000 andlt.w r0, r1, #2147483648 ; 0x80000000
  887. 8000bc8: 4770 bxlt lr
  888. 8000bca: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  889. 8000bce: ea4f 5252 mov.w r2, r2, lsr #21
  890. 8000bd2: f1c2 0218 rsb r2, r2, #24
  891. 8000bd6: f1c2 0c20 rsb ip, r2, #32
  892. 8000bda: fa10 f30c lsls.w r3, r0, ip
  893. 8000bde: fa20 f002 lsr.w r0, r0, r2
  894. 8000be2: bf18 it ne
  895. 8000be4: f040 0001 orrne.w r0, r0, #1
  896. 8000be8: ea4f 23c1 mov.w r3, r1, lsl #11
  897. 8000bec: ea4f 23d3 mov.w r3, r3, lsr #11
  898. 8000bf0: fa03 fc0c lsl.w ip, r3, ip
  899. 8000bf4: ea40 000c orr.w r0, r0, ip
  900. 8000bf8: fa23 f302 lsr.w r3, r3, r2
  901. 8000bfc: ea4f 0343 mov.w r3, r3, lsl #1
  902. 8000c00: e7cc b.n 8000b9c <__aeabi_d2f+0x14>
  903. 8000c02: ea7f 5362 mvns.w r3, r2, asr #21
  904. 8000c06: d107 bne.n 8000c18 <__aeabi_d2f+0x90>
  905. 8000c08: ea50 3301 orrs.w r3, r0, r1, lsl #12
  906. 8000c0c: bf1e ittt ne
  907. 8000c0e: f04f 40fe movne.w r0, #2130706432 ; 0x7f000000
  908. 8000c12: f440 0040 orrne.w r0, r0, #12582912 ; 0xc00000
  909. 8000c16: 4770 bxne lr
  910. 8000c18: f001 4000 and.w r0, r1, #2147483648 ; 0x80000000
  911. 8000c1c: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000
  912. 8000c20: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  913. 8000c24: 4770 bx lr
  914. 8000c26: bf00 nop
  915. 08000c28 <Round_Function>:
  916. void NessLab_Init(){
  917. FLASH_Read_Func(FLASH_USER_USE_START_ADDR + 2,&DB_Define[0],104);
  918. HAL_GPIO_WritePin(PAU_RESET_GPIO_Port,PAU_RESET_Pin, GPIO_PIN_SET);
  919. }
  920. double Round_Function(double value){
  921. 8000c28: b590 push {r4, r7, lr}
  922. 8000c2a: b085 sub sp, #20
  923. 8000c2c: af00 add r7, sp, #0
  924. 8000c2e: e9c7 0100 strd r0, r1, [r7]
  925. double val = value * 100;
  926. 8000c32: f04f 0200 mov.w r2, #0
  927. 8000c36: 4b2a ldr r3, [pc, #168] ; (8000ce0 <Round_Function+0xb8>)
  928. 8000c38: e9d7 0100 ldrd r0, r1, [r7]
  929. 8000c3c: f7ff fcac bl 8000598 <__aeabi_dmul>
  930. 8000c40: 4603 mov r3, r0
  931. 8000c42: 460c mov r4, r1
  932. 8000c44: e9c7 3402 strd r3, r4, [r7, #8]
  933. val = (int)(val + 0.5);
  934. 8000c48: f04f 0200 mov.w r2, #0
  935. 8000c4c: 4b25 ldr r3, [pc, #148] ; (8000ce4 <Round_Function+0xbc>)
  936. 8000c4e: e9d7 0102 ldrd r0, r1, [r7, #8]
  937. 8000c52: f7ff faeb bl 800022c <__adddf3>
  938. 8000c56: 4603 mov r3, r0
  939. 8000c58: 460c mov r4, r1
  940. 8000c5a: 4618 mov r0, r3
  941. 8000c5c: 4621 mov r1, r4
  942. 8000c5e: f7ff ff4b bl 8000af8 <__aeabi_d2iz>
  943. 8000c62: 4603 mov r3, r0
  944. 8000c64: 4618 mov r0, r3
  945. 8000c66: f7ff fc2d bl 80004c4 <__aeabi_i2d>
  946. 8000c6a: 4603 mov r3, r0
  947. 8000c6c: 460c mov r4, r1
  948. 8000c6e: e9c7 3402 strd r3, r4, [r7, #8]
  949. val *= 0.1;
  950. 8000c72: a319 add r3, pc, #100 ; (adr r3, 8000cd8 <Round_Function+0xb0>)
  951. 8000c74: e9d3 2300 ldrd r2, r3, [r3]
  952. 8000c78: e9d7 0102 ldrd r0, r1, [r7, #8]
  953. 8000c7c: f7ff fc8c bl 8000598 <__aeabi_dmul>
  954. 8000c80: 4603 mov r3, r0
  955. 8000c82: 460c mov r4, r1
  956. 8000c84: e9c7 3402 strd r3, r4, [r7, #8]
  957. val = (int)(val + 0.5);
  958. 8000c88: f04f 0200 mov.w r2, #0
  959. 8000c8c: 4b15 ldr r3, [pc, #84] ; (8000ce4 <Round_Function+0xbc>)
  960. 8000c8e: e9d7 0102 ldrd r0, r1, [r7, #8]
  961. 8000c92: f7ff facb bl 800022c <__adddf3>
  962. 8000c96: 4603 mov r3, r0
  963. 8000c98: 460c mov r4, r1
  964. 8000c9a: 4618 mov r0, r3
  965. 8000c9c: 4621 mov r1, r4
  966. 8000c9e: f7ff ff2b bl 8000af8 <__aeabi_d2iz>
  967. 8000ca2: 4603 mov r3, r0
  968. 8000ca4: 4618 mov r0, r3
  969. 8000ca6: f7ff fc0d bl 80004c4 <__aeabi_i2d>
  970. 8000caa: 4603 mov r3, r0
  971. 8000cac: 460c mov r4, r1
  972. 8000cae: e9c7 3402 strd r3, r4, [r7, #8]
  973. val *= 0.1;
  974. 8000cb2: a309 add r3, pc, #36 ; (adr r3, 8000cd8 <Round_Function+0xb0>)
  975. 8000cb4: e9d3 2300 ldrd r2, r3, [r3]
  976. 8000cb8: e9d7 0102 ldrd r0, r1, [r7, #8]
  977. 8000cbc: f7ff fc6c bl 8000598 <__aeabi_dmul>
  978. 8000cc0: 4603 mov r3, r0
  979. 8000cc2: 460c mov r4, r1
  980. 8000cc4: e9c7 3402 strd r3, r4, [r7, #8]
  981. return val;
  982. 8000cc8: e9d7 3402 ldrd r3, r4, [r7, #8]
  983. }
  984. 8000ccc: 4618 mov r0, r3
  985. 8000cce: 4621 mov r1, r4
  986. 8000cd0: 3714 adds r7, #20
  987. 8000cd2: 46bd mov sp, r7
  988. 8000cd4: bd90 pop {r4, r7, pc}
  989. 8000cd6: bf00 nop
  990. 8000cd8: 9999999a .word 0x9999999a
  991. 8000cdc: 3fb99999 .word 0x3fb99999
  992. 8000ce0: 40590000 .word 0x40590000
  993. 8000ce4: 3fe00000 .word 0x3fe00000
  994. 08000ce8 <Absolute_value_Convert>:
  995. uint16_t Absolute_value_Convert(int16_t val){
  996. 8000ce8: b480 push {r7}
  997. 8000cea: b083 sub sp, #12
  998. 8000cec: af00 add r7, sp, #0
  999. 8000cee: 4603 mov r3, r0
  1000. 8000cf0: 80fb strh r3, [r7, #6]
  1001. if(val < 0)
  1002. 8000cf2: f9b7 3006 ldrsh.w r3, [r7, #6]
  1003. 8000cf6: 2b00 cmp r3, #0
  1004. 8000cf8: da03 bge.n 8000d02 <Absolute_value_Convert+0x1a>
  1005. val *= -1;
  1006. 8000cfa: 88fb ldrh r3, [r7, #6]
  1007. 8000cfc: 425b negs r3, r3
  1008. 8000cfe: b29b uxth r3, r3
  1009. 8000d00: 80fb strh r3, [r7, #6]
  1010. return val;
  1011. 8000d02: 88fb ldrh r3, [r7, #6]
  1012. }
  1013. 8000d04: 4618 mov r0, r3
  1014. 8000d06: 370c adds r7, #12
  1015. 8000d08: 46bd mov sp, r7
  1016. 8000d0a: bc80 pop {r7}
  1017. 8000d0c: 4770 bx lr
  1018. ...
  1019. 08000d10 <NessLab_Adc_Convert_db>:
  1020. uint8_t NessLab_Adc_Convert_db() // ?占쏙옙湲고븿?占쏙옙
  1021. {
  1022. 8000d10: b590 push {r4, r7, lr}
  1023. 8000d12: b08b sub sp, #44 ; 0x2c
  1024. 8000d14: af00 add r7, sp, #0
  1025. double CurrAdc = (float)((Currstatus.DownLink_Forward_Det_H << 8 | Currstatus.DownLink_Forward_Det_L)*0.001);
  1026. 8000d16: 4b4a ldr r3, [pc, #296] ; (8000e40 <NessLab_Adc_Convert_db+0x130>)
  1027. 8000d18: 79db ldrb r3, [r3, #7]
  1028. 8000d1a: 021b lsls r3, r3, #8
  1029. 8000d1c: 4a48 ldr r2, [pc, #288] ; (8000e40 <NessLab_Adc_Convert_db+0x130>)
  1030. 8000d1e: 7a12 ldrb r2, [r2, #8]
  1031. 8000d20: 4313 orrs r3, r2
  1032. 8000d22: 4618 mov r0, r3
  1033. 8000d24: f7ff fbce bl 80004c4 <__aeabi_i2d>
  1034. 8000d28: a343 add r3, pc, #268 ; (adr r3, 8000e38 <NessLab_Adc_Convert_db+0x128>)
  1035. 8000d2a: e9d3 2300 ldrd r2, r3, [r3]
  1036. 8000d2e: f7ff fc33 bl 8000598 <__aeabi_dmul>
  1037. 8000d32: 4603 mov r3, r0
  1038. 8000d34: 460c mov r4, r1
  1039. 8000d36: 4618 mov r0, r3
  1040. 8000d38: 4621 mov r1, r4
  1041. 8000d3a: f7ff ff25 bl 8000b88 <__aeabi_d2f>
  1042. 8000d3e: 4603 mov r3, r0
  1043. 8000d40: 4618 mov r0, r3
  1044. 8000d42: f7ff fbd1 bl 80004e8 <__aeabi_f2d>
  1045. 8000d46: 4603 mov r3, r0
  1046. 8000d48: 460c mov r4, r1
  1047. 8000d4a: e9c7 3406 strd r3, r4, [r7, #24]
  1048. double TableVal = 0;
  1049. 8000d4e: f04f 0300 mov.w r3, #0
  1050. 8000d52: f04f 0400 mov.w r4, #0
  1051. 8000d56: e9c7 3404 strd r3, r4, [r7, #16]
  1052. float ret = 0;
  1053. 8000d5a: f04f 0300 mov.w r3, #0
  1054. 8000d5e: 60fb str r3, [r7, #12]
  1055. int16_t calc_val = 0,Prev_calc_val = 3300 ;
  1056. 8000d60: 2300 movs r3, #0
  1057. 8000d62: 817b strh r3, [r7, #10]
  1058. 8000d64: f640 43e4 movw r3, #3300 ; 0xce4
  1059. 8000d68: 84fb strh r3, [r7, #38] ; 0x26
  1060. uint8_t Curr_DB = 0 ;
  1061. 8000d6a: 2300 movs r3, #0
  1062. 8000d6c: f887 3025 strb.w r3, [r7, #37] ; 0x25
  1063. uint16_t CurrAdc_Temp = 0,TableVal_Temp = 0;
  1064. 8000d70: 2300 movs r3, #0
  1065. 8000d72: 813b strh r3, [r7, #8]
  1066. 8000d74: 2300 movs r3, #0
  1067. 8000d76: 80fb strh r3, [r7, #6]
  1068. ret = Round_Function(CurrAdc);
  1069. 8000d78: e9d7 0106 ldrd r0, r1, [r7, #24]
  1070. 8000d7c: f7ff ff54 bl 8000c28 <Round_Function>
  1071. 8000d80: 4603 mov r3, r0
  1072. 8000d82: 460c mov r4, r1
  1073. 8000d84: 4618 mov r0, r3
  1074. 8000d86: 4621 mov r1, r4
  1075. 8000d88: f7ff fefe bl 8000b88 <__aeabi_d2f>
  1076. 8000d8c: 4603 mov r3, r0
  1077. 8000d8e: 60fb str r3, [r7, #12]
  1078. // CurrAdc *= 1000;
  1079. CurrAdc_Temp = CurrAdc * 1000;
  1080. 8000d90: f04f 0200 mov.w r2, #0
  1081. 8000d94: 4b2b ldr r3, [pc, #172] ; (8000e44 <NessLab_Adc_Convert_db+0x134>)
  1082. 8000d96: e9d7 0106 ldrd r0, r1, [r7, #24]
  1083. 8000d9a: f7ff fbfd bl 8000598 <__aeabi_dmul>
  1084. 8000d9e: 4603 mov r3, r0
  1085. 8000da0: 460c mov r4, r1
  1086. 8000da2: 4618 mov r0, r3
  1087. 8000da4: 4621 mov r1, r4
  1088. 8000da6: f7ff fecf bl 8000b48 <__aeabi_d2uiz>
  1089. 8000daa: 4603 mov r3, r0
  1090. 8000dac: 813b strh r3, [r7, #8]
  1091. for(int i = 0; i <= 50; i++){
  1092. 8000dae: 2300 movs r3, #0
  1093. 8000db0: 623b str r3, [r7, #32]
  1094. 8000db2: e032 b.n 8000e1a <NessLab_Adc_Convert_db+0x10a>
  1095. TableVal_Temp = ((DB_Define[i * 2] << 8 | DB_Define[(i * 2)+ 1]));
  1096. 8000db4: 6a3b ldr r3, [r7, #32]
  1097. 8000db6: 005b lsls r3, r3, #1
  1098. 8000db8: 4a23 ldr r2, [pc, #140] ; (8000e48 <NessLab_Adc_Convert_db+0x138>)
  1099. 8000dba: 5cd3 ldrb r3, [r2, r3]
  1100. 8000dbc: 021b lsls r3, r3, #8
  1101. 8000dbe: b21a sxth r2, r3
  1102. 8000dc0: 6a3b ldr r3, [r7, #32]
  1103. 8000dc2: 005b lsls r3, r3, #1
  1104. 8000dc4: 3301 adds r3, #1
  1105. 8000dc6: 4920 ldr r1, [pc, #128] ; (8000e48 <NessLab_Adc_Convert_db+0x138>)
  1106. 8000dc8: 5ccb ldrb r3, [r1, r3]
  1107. 8000dca: b21b sxth r3, r3
  1108. 8000dcc: 4313 orrs r3, r2
  1109. 8000dce: b21b sxth r3, r3
  1110. 8000dd0: 80fb strh r3, [r7, #6]
  1111. if(TableVal_Temp == 0)
  1112. 8000dd2: 88fb ldrh r3, [r7, #6]
  1113. 8000dd4: 2b00 cmp r3, #0
  1114. 8000dd6: d01c beq.n 8000e12 <NessLab_Adc_Convert_db+0x102>
  1115. continue;
  1116. calc_val = CurrAdc_Temp - TableVal_Temp;
  1117. 8000dd8: 893a ldrh r2, [r7, #8]
  1118. 8000dda: 88fb ldrh r3, [r7, #6]
  1119. 8000ddc: 1ad3 subs r3, r2, r3
  1120. 8000dde: b29b uxth r3, r3
  1121. 8000de0: 817b strh r3, [r7, #10]
  1122. calc_val = Absolute_value_Convert(calc_val);
  1123. 8000de2: f9b7 300a ldrsh.w r3, [r7, #10]
  1124. 8000de6: 4618 mov r0, r3
  1125. 8000de8: f7ff ff7e bl 8000ce8 <Absolute_value_Convert>
  1126. 8000dec: 4603 mov r3, r0
  1127. 8000dee: 817b strh r3, [r7, #10]
  1128. // printf("%d - %d calc_val : %d \r\n",CurrAdc_Temp,TableVal_Temp,calc_val);
  1129. if(Prev_calc_val > calc_val && TableVal_Temp != 0){
  1130. 8000df0: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26
  1131. 8000df4: f9b7 300a ldrsh.w r3, [r7, #10]
  1132. 8000df8: 429a cmp r2, r3
  1133. 8000dfa: dd0b ble.n 8000e14 <NessLab_Adc_Convert_db+0x104>
  1134. 8000dfc: 88fb ldrh r3, [r7, #6]
  1135. 8000dfe: 2b00 cmp r3, #0
  1136. 8000e00: d008 beq.n 8000e14 <NessLab_Adc_Convert_db+0x104>
  1137. Prev_calc_val = calc_val;
  1138. 8000e02: 897b ldrh r3, [r7, #10]
  1139. 8000e04: 84fb strh r3, [r7, #38] ; 0x26
  1140. Curr_DB = i + 2;
  1141. 8000e06: 6a3b ldr r3, [r7, #32]
  1142. 8000e08: b2db uxtb r3, r3
  1143. 8000e0a: 3302 adds r3, #2
  1144. 8000e0c: f887 3025 strb.w r3, [r7, #37] ; 0x25
  1145. 8000e10: e000 b.n 8000e14 <NessLab_Adc_Convert_db+0x104>
  1146. continue;
  1147. 8000e12: bf00 nop
  1148. for(int i = 0; i <= 50; i++){
  1149. 8000e14: 6a3b ldr r3, [r7, #32]
  1150. 8000e16: 3301 adds r3, #1
  1151. 8000e18: 623b str r3, [r7, #32]
  1152. 8000e1a: 6a3b ldr r3, [r7, #32]
  1153. 8000e1c: 2b32 cmp r3, #50 ; 0x32
  1154. 8000e1e: ddc9 ble.n 8000db4 <NessLab_Adc_Convert_db+0xa4>
  1155. // printf("%d %d \r\n",Prev_calc_val , calc_val);
  1156. }
  1157. }
  1158. // DB_Define[]
  1159. printf("Curr Db : %d \r\n",Curr_DB);
  1160. 8000e20: f897 3025 ldrb.w r3, [r7, #37] ; 0x25
  1161. 8000e24: 4619 mov r1, r3
  1162. 8000e26: 4809 ldr r0, [pc, #36] ; (8000e4c <NessLab_Adc_Convert_db+0x13c>)
  1163. 8000e28: f005 fce4 bl 80067f4 <iprintf>
  1164. return Curr_DB;
  1165. 8000e2c: f897 3025 ldrb.w r3, [r7, #37] ; 0x25
  1166. }
  1167. 8000e30: 4618 mov r0, r3
  1168. 8000e32: 372c adds r7, #44 ; 0x2c
  1169. 8000e34: 46bd mov sp, r7
  1170. 8000e36: bd90 pop {r4, r7, pc}
  1171. 8000e38: d2f1a9fc .word 0xd2f1a9fc
  1172. 8000e3c: 3f50624d .word 0x3f50624d
  1173. 8000e40: 200006ac .word 0x200006ac
  1174. 8000e44: 408f4000 .word 0x408f4000
  1175. 8000e48: 20000648 .word 0x20000648
  1176. 8000e4c: 080087f0 .word 0x080087f0
  1177. 08000e50 <NessLab_Operate>:
  1178. void NessLab_Operate(uint8_t* data){
  1179. 8000e50: b580 push {r7, lr}
  1180. 8000e52: b086 sub sp, #24
  1181. 8000e54: af00 add r7, sp, #0
  1182. 8000e56: 6078 str r0, [r7, #4]
  1183. uint8_t datatype = data[NessLab_MsgID0];
  1184. 8000e58: 687b ldr r3, [r7, #4]
  1185. 8000e5a: 789b ldrb r3, [r3, #2]
  1186. 8000e5c: 73fb strb r3, [r7, #15]
  1187. uint8_t UartLength = 0;
  1188. 8000e5e: 2300 movs r3, #0
  1189. 8000e60: 75fb strb r3, [r7, #23]
  1190. static uint16_t MSG_SNCnt = 0;
  1191. switch(datatype){
  1192. 8000e62: 7bfb ldrb r3, [r7, #15]
  1193. 8000e64: 2bcb cmp r3, #203 ; 0xcb
  1194. 8000e66: d049 beq.n 8000efc <NessLab_Operate+0xac>
  1195. 8000e68: 2bcb cmp r3, #203 ; 0xcb
  1196. 8000e6a: dc04 bgt.n 8000e76 <NessLab_Operate+0x26>
  1197. 8000e6c: 2b65 cmp r3, #101 ; 0x65
  1198. 8000e6e: d008 beq.n 8000e82 <NessLab_Operate+0x32>
  1199. 8000e70: 2bc9 cmp r3, #201 ; 0xc9
  1200. 8000e72: d030 beq.n 8000ed6 <NessLab_Operate+0x86>
  1201. 8000e74: e08f b.n 8000f96 <NessLab_Operate+0x146>
  1202. 8000e76: 2bcd cmp r3, #205 ; 0xcd
  1203. 8000e78: d07f beq.n 8000f7a <NessLab_Operate+0x12a>
  1204. 8000e7a: 2bce cmp r3, #206 ; 0xce
  1205. 8000e7c: f000 8084 beq.w 8000f88 <NessLab_Operate+0x138>
  1206. 8000e80: e089 b.n 8000f96 <NessLab_Operate+0x146>
  1207. case NessLab_STATUS_REQ:
  1208. ADC_Check();
  1209. 8000e82: f000 fb5f bl 8001544 <ADC_Check>
  1210. UartLength = NessLab_MAX_INDEX + 1;
  1211. 8000e86: 2316 movs r3, #22
  1212. 8000e88: 75fb strb r3, [r7, #23]
  1213. MSG_SNCnt = data[NessLab_Req_MsgSN0] << 8 | data[NessLab_Req_MsgSN1];
  1214. 8000e8a: 687b ldr r3, [r7, #4]
  1215. 8000e8c: 3303 adds r3, #3
  1216. 8000e8e: 781b ldrb r3, [r3, #0]
  1217. 8000e90: 021b lsls r3, r3, #8
  1218. 8000e92: b21a sxth r2, r3
  1219. 8000e94: 687b ldr r3, [r7, #4]
  1220. 8000e96: 3304 adds r3, #4
  1221. 8000e98: 781b ldrb r3, [r3, #0]
  1222. 8000e9a: b21b sxth r3, r3
  1223. 8000e9c: 4313 orrs r3, r2
  1224. 8000e9e: b21b sxth r3, r3
  1225. 8000ea0: b29a uxth r2, r3
  1226. 8000ea2: 4b41 ldr r3, [pc, #260] ; (8000fa8 <NessLab_Operate+0x158>)
  1227. 8000ea4: 801a strh r2, [r3, #0]
  1228. MSG_SNCnt++;
  1229. 8000ea6: 4b40 ldr r3, [pc, #256] ; (8000fa8 <NessLab_Operate+0x158>)
  1230. 8000ea8: 881b ldrh r3, [r3, #0]
  1231. 8000eaa: 3301 adds r3, #1
  1232. 8000eac: b29a uxth r2, r3
  1233. 8000eae: 4b3e ldr r3, [pc, #248] ; (8000fa8 <NessLab_Operate+0x158>)
  1234. 8000eb0: 801a strh r2, [r3, #0]
  1235. // if(data[NessLab_Req_Data_Cnt1] > 0)
  1236. // NessLab_TxData[NessLab_VSWR_ALARM] = 1;
  1237. // else
  1238. // NessLab_TxData[NessLab_VSWR_ALARM] = 0;
  1239. NessLab_TxData[NessLab_MsgSN0] = (uint8_t)((MSG_SNCnt & 0xFF00) >>8);//data[NessLab_Req_MsgSN0];
  1240. 8000eb2: 4b3d ldr r3, [pc, #244] ; (8000fa8 <NessLab_Operate+0x158>)
  1241. 8000eb4: 881b ldrh r3, [r3, #0]
  1242. 8000eb6: 0a1b lsrs r3, r3, #8
  1243. 8000eb8: b29b uxth r3, r3
  1244. 8000eba: b2da uxtb r2, r3
  1245. 8000ebc: 4b3b ldr r3, [pc, #236] ; (8000fac <NessLab_Operate+0x15c>)
  1246. 8000ebe: 70da strb r2, [r3, #3]
  1247. NessLab_TxData[NessLab_MsgSN1] = (uint8_t)((MSG_SNCnt & 0x00FF));//data[NessLab_Req_MsgSN1] ;
  1248. 8000ec0: 4b39 ldr r3, [pc, #228] ; (8000fa8 <NessLab_Operate+0x158>)
  1249. 8000ec2: 881b ldrh r3, [r3, #0]
  1250. 8000ec4: b2da uxtb r2, r3
  1251. 8000ec6: 4b39 ldr r3, [pc, #228] ; (8000fac <NessLab_Operate+0x15c>)
  1252. 8000ec8: 711a strb r2, [r3, #4]
  1253. NessLab_Frame_Set(NessLab_TxData,12,NessLab_STATUS_RES);
  1254. 8000eca: 2266 movs r2, #102 ; 0x66
  1255. 8000ecc: 210c movs r1, #12
  1256. 8000ece: 4837 ldr r0, [pc, #220] ; (8000fac <NessLab_Operate+0x15c>)
  1257. 8000ed0: f000 f882 bl 8000fd8 <NessLab_Frame_Set>
  1258. // NessLab_TxData[14] = 1;
  1259. // NessLab_TxData[15] = 0;
  1260. // NessLab_TxData[16] = 1;
  1261. // NessLab_TxData[17] = 0;
  1262. break;
  1263. 8000ed4: e05f b.n 8000f96 <NessLab_Operate+0x146>
  1264. case NessLab_Table_REQ:
  1265. UartLength = NESSLAB_TABLE_LENGTH;
  1266. 8000ed6: 236e movs r3, #110 ; 0x6e
  1267. 8000ed8: 75fb strb r3, [r7, #23]
  1268. FLASH_Read_Func(FLASH_USER_USE_START_ADDR,&NessLab_TxData[NessLab_Req_Data_Cnt0],data[NessLab_DataLength]);
  1269. 8000eda: 687b ldr r3, [r7, #4]
  1270. 8000edc: 3306 adds r3, #6
  1271. 8000ede: 781b ldrb r3, [r3, #0]
  1272. 8000ee0: 461a mov r2, r3
  1273. 8000ee2: 4933 ldr r1, [pc, #204] ; (8000fb0 <NessLab_Operate+0x160>)
  1274. 8000ee4: 4833 ldr r0, [pc, #204] ; (8000fb4 <NessLab_Operate+0x164>)
  1275. 8000ee6: f000 fceb bl 80018c0 <FLASH_Read_Func>
  1276. NessLab_Table_Frame_Set(NessLab_TxData,102,NessLab_Table_RES);
  1277. 8000eea: 22ca movs r2, #202 ; 0xca
  1278. 8000eec: 2166 movs r1, #102 ; 0x66
  1279. 8000eee: 482f ldr r0, [pc, #188] ; (8000fac <NessLab_Operate+0x15c>)
  1280. 8000ef0: f000 f97e bl 80011f0 <NessLab_Table_Frame_Set>
  1281. printf("NessLab_Table_REQ \r\n");
  1282. 8000ef4: 4830 ldr r0, [pc, #192] ; (8000fb8 <NessLab_Operate+0x168>)
  1283. 8000ef6: f005 fcf1 bl 80068dc <puts>
  1284. break;
  1285. 8000efa: e04c b.n 8000f96 <NessLab_Operate+0x146>
  1286. case NessLab_TableSet_REQ:
  1287. DataErase_Func(FLASH_USER_USE_START_ADDR,200);
  1288. 8000efc: 21c8 movs r1, #200 ; 0xc8
  1289. 8000efe: 482d ldr r0, [pc, #180] ; (8000fb4 <NessLab_Operate+0x164>)
  1290. 8000f00: f000 fc04 bl 800170c <DataErase_Func>
  1291. printf("Ram Data Display \r\n");
  1292. 8000f04: 482d ldr r0, [pc, #180] ; (8000fbc <NessLab_Operate+0x16c>)
  1293. 8000f06: f005 fce9 bl 80068dc <puts>
  1294. for(int i = 0; i < data[NessLab_DataLength]; i++){
  1295. 8000f0a: 2300 movs r3, #0
  1296. 8000f0c: 613b str r3, [r7, #16]
  1297. 8000f0e: e015 b.n 8000f3c <NessLab_Operate+0xec>
  1298. Flash_DataArray[i] = data[NessLab_Data_ADC1_H + i];
  1299. 8000f10: 693b ldr r3, [r7, #16]
  1300. 8000f12: 3307 adds r3, #7
  1301. 8000f14: 461a mov r2, r3
  1302. 8000f16: 687b ldr r3, [r7, #4]
  1303. 8000f18: 4413 add r3, r2
  1304. 8000f1a: 7819 ldrb r1, [r3, #0]
  1305. 8000f1c: 4a28 ldr r2, [pc, #160] ; (8000fc0 <NessLab_Operate+0x170>)
  1306. 8000f1e: 693b ldr r3, [r7, #16]
  1307. 8000f20: 4413 add r3, r2
  1308. 8000f22: 460a mov r2, r1
  1309. 8000f24: 701a strb r2, [r3, #0]
  1310. printf("%x ",Flash_DataArray[i]);
  1311. 8000f26: 4a26 ldr r2, [pc, #152] ; (8000fc0 <NessLab_Operate+0x170>)
  1312. 8000f28: 693b ldr r3, [r7, #16]
  1313. 8000f2a: 4413 add r3, r2
  1314. 8000f2c: 781b ldrb r3, [r3, #0]
  1315. 8000f2e: 4619 mov r1, r3
  1316. 8000f30: 4824 ldr r0, [pc, #144] ; (8000fc4 <NessLab_Operate+0x174>)
  1317. 8000f32: f005 fc5f bl 80067f4 <iprintf>
  1318. for(int i = 0; i < data[NessLab_DataLength]; i++){
  1319. 8000f36: 693b ldr r3, [r7, #16]
  1320. 8000f38: 3301 adds r3, #1
  1321. 8000f3a: 613b str r3, [r7, #16]
  1322. 8000f3c: 687b ldr r3, [r7, #4]
  1323. 8000f3e: 3306 adds r3, #6
  1324. 8000f40: 781b ldrb r3, [r3, #0]
  1325. 8000f42: 461a mov r2, r3
  1326. 8000f44: 693b ldr r3, [r7, #16]
  1327. 8000f46: 4293 cmp r3, r2
  1328. 8000f48: dbe2 blt.n 8000f10 <NessLab_Operate+0xc0>
  1329. }
  1330. FLASH_Write_Func(FLASH_USER_USE_START_ADDR,&Flash_DataArray[0],data[NessLab_DataLength]);
  1331. 8000f4a: 687b ldr r3, [r7, #4]
  1332. 8000f4c: 3306 adds r3, #6
  1333. 8000f4e: 781b ldrb r3, [r3, #0]
  1334. 8000f50: 461a mov r2, r3
  1335. 8000f52: 491b ldr r1, [pc, #108] ; (8000fc0 <NessLab_Operate+0x170>)
  1336. 8000f54: 4817 ldr r0, [pc, #92] ; (8000fb4 <NessLab_Operate+0x164>)
  1337. 8000f56: f000 fc2b bl 80017b0 <FLASH_Write_Func>
  1338. UartLength = NESSLAB_TABLE_LENGTH;
  1339. 8000f5a: 236e movs r3, #110 ; 0x6e
  1340. 8000f5c: 75fb strb r3, [r7, #23]
  1341. NessLab_Table_Frame_Set(NessLab_TxData,104,NessLab_TableSet_RES);
  1342. 8000f5e: 22cc movs r2, #204 ; 0xcc
  1343. 8000f60: 2168 movs r1, #104 ; 0x68
  1344. 8000f62: 4812 ldr r0, [pc, #72] ; (8000fac <NessLab_Operate+0x15c>)
  1345. 8000f64: f000 f944 bl 80011f0 <NessLab_Table_Frame_Set>
  1346. FLASH_Read_Func(FLASH_USER_USE_START_ADDR + 2,&DB_Define[0],104);
  1347. 8000f68: 2268 movs r2, #104 ; 0x68
  1348. 8000f6a: 4917 ldr r1, [pc, #92] ; (8000fc8 <NessLab_Operate+0x178>)
  1349. 8000f6c: 4817 ldr r0, [pc, #92] ; (8000fcc <NessLab_Operate+0x17c>)
  1350. 8000f6e: f000 fca7 bl 80018c0 <FLASH_Read_Func>
  1351. // NessLab_Init();
  1352. printf("\r\nNessLab_TableSet_REQ \r\n");
  1353. 8000f72: 4817 ldr r0, [pc, #92] ; (8000fd0 <NessLab_Operate+0x180>)
  1354. 8000f74: f005 fcb2 bl 80068dc <puts>
  1355. break;
  1356. 8000f78: e00d b.n 8000f96 <NessLab_Operate+0x146>
  1357. case NessLab_PAU_Enable_Req:
  1358. HAL_GPIO_WritePin(AMP_EN_GPIO_Port,AMP_EN_Pin, GPIO_PIN_SET);
  1359. 8000f7a: 2201 movs r2, #1
  1360. 8000f7c: f44f 7180 mov.w r1, #256 ; 0x100
  1361. 8000f80: 4814 ldr r0, [pc, #80] ; (8000fd4 <NessLab_Operate+0x184>)
  1362. 8000f82: f002 fa34 bl 80033ee <HAL_GPIO_WritePin>
  1363. break;
  1364. 8000f86: e006 b.n 8000f96 <NessLab_Operate+0x146>
  1365. case NessLab_PAU_Disable_Req:
  1366. HAL_GPIO_WritePin(AMP_EN_GPIO_Port,AMP_EN_Pin, GPIO_PIN_RESET);
  1367. 8000f88: 2200 movs r2, #0
  1368. 8000f8a: f44f 7180 mov.w r1, #256 ; 0x100
  1369. 8000f8e: 4811 ldr r0, [pc, #68] ; (8000fd4 <NessLab_Operate+0x184>)
  1370. 8000f90: f002 fa2d bl 80033ee <HAL_GPIO_WritePin>
  1371. break;
  1372. 8000f94: bf00 nop
  1373. }
  1374. Uart1_Data_Send(&NessLab_TxData[NessLab_Header0], UartLength);
  1375. 8000f96: 7dfb ldrb r3, [r7, #23]
  1376. 8000f98: 4619 mov r1, r3
  1377. 8000f9a: 4804 ldr r0, [pc, #16] ; (8000fac <NessLab_Operate+0x15c>)
  1378. 8000f9c: f000 fe16 bl 8001bcc <Uart1_Data_Send>
  1379. }
  1380. 8000fa0: bf00 nop
  1381. 8000fa2: 3718 adds r7, #24
  1382. 8000fa4: 46bd mov sp, r7
  1383. 8000fa6: bd80 pop {r7, pc}
  1384. 8000fa8: 2000038c .word 0x2000038c
  1385. 8000fac: 200001fc .word 0x200001fc
  1386. 8000fb0: 20000203 .word 0x20000203
  1387. 8000fb4: 0800ff38 .word 0x0800ff38
  1388. 8000fb8: 08008800 .word 0x08008800
  1389. 8000fbc: 08008814 .word 0x08008814
  1390. 8000fc0: 200002c4 .word 0x200002c4
  1391. 8000fc4: 08008828 .word 0x08008828
  1392. 8000fc8: 20000648 .word 0x20000648
  1393. 8000fcc: 0800ff3a .word 0x0800ff3a
  1394. 8000fd0: 0800882c .word 0x0800882c
  1395. 8000fd4: 40010800 .word 0x40010800
  1396. 08000fd8 <NessLab_Frame_Set>:
  1397. 7e 7e 66 00 02 00 0c 04 20 00 00 00 00 00 00 00 00 00 68 7e 7e 0a
  1398. */
  1399. void NessLab_Frame_Set(uint8_t* data,uint8_t size){
  1400. 8000fd8: b590 push {r4, r7, lr}
  1401. 8000fda: b083 sub sp, #12
  1402. 8000fdc: af00 add r7, sp, #0
  1403. 8000fde: 6078 str r0, [r7, #4]
  1404. 8000fe0: 460b mov r3, r1
  1405. 8000fe2: 70fb strb r3, [r7, #3]
  1406. data[NessLab_Header0] = 0x7E;
  1407. 8000fe4: 687b ldr r3, [r7, #4]
  1408. 8000fe6: 227e movs r2, #126 ; 0x7e
  1409. 8000fe8: 701a strb r2, [r3, #0]
  1410. data[NessLab_Header1] = 0x7E;
  1411. 8000fea: 687b ldr r3, [r7, #4]
  1412. 8000fec: 3301 adds r3, #1
  1413. 8000fee: 227e movs r2, #126 ; 0x7e
  1414. 8000ff0: 701a strb r2, [r3, #0]
  1415. data[NessLab_MsgID0] = NessLab_STATUS_RES;// ID
  1416. 8000ff2: 687b ldr r3, [r7, #4]
  1417. 8000ff4: 3302 adds r3, #2
  1418. 8000ff6: 2266 movs r2, #102 ; 0x66
  1419. 8000ff8: 701a strb r2, [r3, #0]
  1420. // data[NessLab_MsgSN0] = 0; // SEQ NUMBER
  1421. // data[NessLab_MsgSN1] = 0; // SEQ NUMBER
  1422. data[NessLab_Reserve0] = 0; // NessLab_Reserve0
  1423. 8000ffa: 687b ldr r3, [r7, #4]
  1424. 8000ffc: 3305 adds r3, #5
  1425. 8000ffe: 2200 movs r2, #0
  1426. 8001000: 701a strb r2, [r3, #0]
  1427. data[NessLab_DataLength] = size; // Nesslab Size
  1428. 8001002: 687b ldr r3, [r7, #4]
  1429. 8001004: 3306 adds r3, #6
  1430. 8001006: 78fa ldrb r2, [r7, #3]
  1431. 8001008: 701a strb r2, [r3, #0]
  1432. data[NessLab_Data_ADC1_H] = Currstatus.DownLink_Forward_Det_H;//(uint8_t)((ADC1value[0] & 0xFF00) >> 8);
  1433. 800100a: 687b ldr r3, [r7, #4]
  1434. 800100c: 3307 adds r3, #7
  1435. 800100e: 4a49 ldr r2, [pc, #292] ; (8001134 <NessLab_Frame_Set+0x15c>)
  1436. 8001010: 79d2 ldrb r2, [r2, #7]
  1437. 8001012: 701a strb r2, [r3, #0]
  1438. data[NessLab_Data_ADC1_L] = Currstatus.DownLink_Forward_Det_L;//(uint8_t)(ADC1value[0] & 0x00FF);
  1439. 8001014: 687b ldr r3, [r7, #4]
  1440. 8001016: 3308 adds r3, #8
  1441. 8001018: 4a46 ldr r2, [pc, #280] ; (8001134 <NessLab_Frame_Set+0x15c>)
  1442. 800101a: 7a12 ldrb r2, [r2, #8]
  1443. 800101c: 701a strb r2, [r3, #0]
  1444. data[NessLab_Data_ADC1_Table_Value] = NessLab_Adc_Convert_db();
  1445. 800101e: 687b ldr r3, [r7, #4]
  1446. 8001020: f103 0409 add.w r4, r3, #9
  1447. 8001024: f7ff fe74 bl 8000d10 <NessLab_Adc_Convert_db>
  1448. 8001028: 4603 mov r3, r0
  1449. 800102a: 7023 strb r3, [r4, #0]
  1450. if(DC_FAIL_ALARM_CNT > 3000)
  1451. 800102c: 4b42 ldr r3, [pc, #264] ; (8001138 <NessLab_Frame_Set+0x160>)
  1452. 800102e: 681b ldr r3, [r3, #0]
  1453. 8001030: f640 32b8 movw r2, #3000 ; 0xbb8
  1454. 8001034: 4293 cmp r3, r2
  1455. 8001036: d904 bls.n 8001042 <NessLab_Frame_Set+0x6a>
  1456. data[NessLab_DC_FAIL_ALARM] = 1;
  1457. 8001038: 687b ldr r3, [r7, #4]
  1458. 800103a: 330a adds r3, #10
  1459. 800103c: 2201 movs r2, #1
  1460. 800103e: 701a strb r2, [r3, #0]
  1461. 8001040: e003 b.n 800104a <NessLab_Frame_Set+0x72>
  1462. else
  1463. data[NessLab_DC_FAIL_ALARM] = 0;
  1464. 8001042: 687b ldr r3, [r7, #4]
  1465. 8001044: 330a adds r3, #10
  1466. 8001046: 2200 movs r2, #0
  1467. 8001048: 701a strb r2, [r3, #0]
  1468. if(OVER_INPUT_ALARM_CNT > 3000)
  1469. 800104a: 4b3c ldr r3, [pc, #240] ; (800113c <NessLab_Frame_Set+0x164>)
  1470. 800104c: 681b ldr r3, [r3, #0]
  1471. 800104e: f640 32b8 movw r2, #3000 ; 0xbb8
  1472. 8001052: 4293 cmp r3, r2
  1473. 8001054: d904 bls.n 8001060 <NessLab_Frame_Set+0x88>
  1474. data[NessLab_Over_Input_Alarm] = 1;
  1475. 8001056: 687b ldr r3, [r7, #4]
  1476. 8001058: 330e adds r3, #14
  1477. 800105a: 2201 movs r2, #1
  1478. 800105c: 701a strb r2, [r3, #0]
  1479. 800105e: e003 b.n 8001068 <NessLab_Frame_Set+0x90>
  1480. else
  1481. data[NessLab_Over_Input_Alarm] = 0;
  1482. 8001060: 687b ldr r3, [r7, #4]
  1483. 8001062: 330e adds r3, #14
  1484. 8001064: 2200 movs r2, #0
  1485. 8001066: 701a strb r2, [r3, #0]
  1486. if(OVER_TEMP_ALARM_CNT > 3000)
  1487. 8001068: 4b35 ldr r3, [pc, #212] ; (8001140 <NessLab_Frame_Set+0x168>)
  1488. 800106a: 681b ldr r3, [r3, #0]
  1489. 800106c: f640 32b8 movw r2, #3000 ; 0xbb8
  1490. 8001070: 4293 cmp r3, r2
  1491. 8001072: d904 bls.n 800107e <NessLab_Frame_Set+0xa6>
  1492. data[NessLab_Over_Temp_Alarm] = 1;
  1493. 8001074: 687b ldr r3, [r7, #4]
  1494. 8001076: 330f adds r3, #15
  1495. 8001078: 2201 movs r2, #1
  1496. 800107a: 701a strb r2, [r3, #0]
  1497. 800107c: e003 b.n 8001086 <NessLab_Frame_Set+0xae>
  1498. else
  1499. data[NessLab_Over_Temp_Alarm] = 0;
  1500. 800107e: 687b ldr r3, [r7, #4]
  1501. 8001080: 330f adds r3, #15
  1502. 8001082: 2200 movs r2, #0
  1503. 8001084: 701a strb r2, [r3, #0]
  1504. if(ALC_ALARM_CNT > 3000)
  1505. 8001086: 4b2f ldr r3, [pc, #188] ; (8001144 <NessLab_Frame_Set+0x16c>)
  1506. 8001088: 681b ldr r3, [r3, #0]
  1507. 800108a: f640 32b8 movw r2, #3000 ; 0xbb8
  1508. 800108e: 4293 cmp r3, r2
  1509. 8001090: d904 bls.n 800109c <NessLab_Frame_Set+0xc4>
  1510. data[NessLab_ALC_ALARM] = 1;
  1511. 8001092: 687b ldr r3, [r7, #4]
  1512. 8001094: 3311 adds r3, #17
  1513. 8001096: 2201 movs r2, #1
  1514. 8001098: 701a strb r2, [r3, #0]
  1515. 800109a: e003 b.n 80010a4 <NessLab_Frame_Set+0xcc>
  1516. else
  1517. data[NessLab_ALC_ALARM] = 0;
  1518. 800109c: 687b ldr r3, [r7, #4]
  1519. 800109e: 3311 adds r3, #17
  1520. 80010a0: 2200 movs r2, #0
  1521. 80010a2: 701a strb r2, [r3, #0]
  1522. if(OVER_POWER_ALARM_CNT > 3000)
  1523. 80010a4: 4b28 ldr r3, [pc, #160] ; (8001148 <NessLab_Frame_Set+0x170>)
  1524. 80010a6: 681b ldr r3, [r3, #0]
  1525. 80010a8: f640 32b8 movw r2, #3000 ; 0xbb8
  1526. 80010ac: 4293 cmp r3, r2
  1527. 80010ae: d904 bls.n 80010ba <NessLab_Frame_Set+0xe2>
  1528. data[NessLab_Over_Power_Alarm] = 1;
  1529. 80010b0: 687b ldr r3, [r7, #4]
  1530. 80010b2: 330c adds r3, #12
  1531. 80010b4: 2201 movs r2, #1
  1532. 80010b6: 701a strb r2, [r3, #0]
  1533. 80010b8: e003 b.n 80010c2 <NessLab_Frame_Set+0xea>
  1534. else
  1535. data[NessLab_Over_Power_Alarm] = 0;
  1536. 80010ba: 687b ldr r3, [r7, #4]
  1537. 80010bc: 330c adds r3, #12
  1538. 80010be: 2200 movs r2, #0
  1539. 80010c0: 701a strb r2, [r3, #0]
  1540. if(VSWR_ALARM_CNT > 3000)
  1541. 80010c2: 4b22 ldr r3, [pc, #136] ; (800114c <NessLab_Frame_Set+0x174>)
  1542. 80010c4: 681b ldr r3, [r3, #0]
  1543. 80010c6: f640 32b8 movw r2, #3000 ; 0xbb8
  1544. 80010ca: 4293 cmp r3, r2
  1545. 80010cc: d904 bls.n 80010d8 <NessLab_Frame_Set+0x100>
  1546. data[NessLab_VSWR_ALARM] = 1;
  1547. 80010ce: 687b ldr r3, [r7, #4]
  1548. 80010d0: 330d adds r3, #13
  1549. 80010d2: 2201 movs r2, #1
  1550. 80010d4: 701a strb r2, [r3, #0]
  1551. 80010d6: e003 b.n 80010e0 <NessLab_Frame_Set+0x108>
  1552. else
  1553. data[NessLab_VSWR_ALARM] = 0;
  1554. 80010d8: 687b ldr r3, [r7, #4]
  1555. 80010da: 330d adds r3, #13
  1556. 80010dc: 2200 movs r2, #0
  1557. 80010de: 701a strb r2, [r3, #0]
  1558. data[NessLab_DownLink_Status] = 0;
  1559. 80010e0: 687b ldr r3, [r7, #4]
  1560. 80010e2: 330b adds r3, #11
  1561. 80010e4: 2200 movs r2, #0
  1562. 80010e6: 701a strb r2, [r3, #0]
  1563. data[NessLab_Temp_Monitor] = Currstatus.Temp_Monitor;
  1564. 80010e8: 687b ldr r3, [r7, #4]
  1565. 80010ea: 3310 adds r3, #16
  1566. 80010ec: 4a11 ldr r2, [pc, #68] ; (8001134 <NessLab_Frame_Set+0x15c>)
  1567. 80010ee: 7c52 ldrb r2, [r2, #17]
  1568. 80010f0: 701a strb r2, [r3, #0]
  1569. data[NessLab_ChecksumVal] = NessLab_Checksum(&data[NessLab_MsgID0], NessLab_MAX_INDEX - 5);
  1570. 80010f2: 687b ldr r3, [r7, #4]
  1571. 80010f4: 1c9a adds r2, r3, #2
  1572. 80010f6: 687b ldr r3, [r7, #4]
  1573. 80010f8: f103 0412 add.w r4, r3, #18
  1574. 80010fc: 2110 movs r1, #16
  1575. 80010fe: 4610 mov r0, r2
  1576. 8001100: f000 faa8 bl 8001654 <NessLab_Checksum>
  1577. 8001104: 4603 mov r3, r0
  1578. 8001106: 7023 strb r3, [r4, #0]
  1579. /* Exception Header Tail Checksum */
  1580. data[NessLab_Tail0] = 0x7E;
  1581. 8001108: 687b ldr r3, [r7, #4]
  1582. 800110a: 3313 adds r3, #19
  1583. 800110c: 227e movs r2, #126 ; 0x7e
  1584. 800110e: 701a strb r2, [r3, #0]
  1585. data[NessLab_Tail1] = 0x7E;
  1586. 8001110: 687b ldr r3, [r7, #4]
  1587. 8001112: 3314 adds r3, #20
  1588. 8001114: 227e movs r2, #126 ; 0x7e
  1589. 8001116: 701a strb r2, [r3, #0]
  1590. data[NessLab_Tail1 + 1] = 0x0A;
  1591. 8001118: 687b ldr r3, [r7, #4]
  1592. 800111a: 3315 adds r3, #21
  1593. 800111c: 220a movs r2, #10
  1594. 800111e: 701a strb r2, [r3, #0]
  1595. NessLab_Protocol_LastCheck(&data[NessLab_MsgID0],16);
  1596. 8001120: 687b ldr r3, [r7, #4]
  1597. 8001122: 3302 adds r3, #2
  1598. 8001124: 2110 movs r1, #16
  1599. 8001126: 4618 mov r0, r3
  1600. 8001128: f000 f812 bl 8001150 <NessLab_Protocol_LastCheck>
  1601. }
  1602. 800112c: bf00 nop
  1603. 800112e: 370c adds r7, #12
  1604. 8001130: 46bd mov sp, r7
  1605. 8001132: bd90 pop {r4, r7, pc}
  1606. 8001134: 200006ac .word 0x200006ac
  1607. 8001138: 2000061c .word 0x2000061c
  1608. 800113c: 20000620 .word 0x20000620
  1609. 8001140: 20000624 .word 0x20000624
  1610. 8001144: 20000628 .word 0x20000628
  1611. 8001148: 2000062c .word 0x2000062c
  1612. 800114c: 20000630 .word 0x20000630
  1613. 08001150 <NessLab_Protocol_LastCheck>:
  1614. void NessLab_Protocol_LastCheck(uint8_t* data,uint8_t size){
  1615. 8001150: b480 push {r7}
  1616. 8001152: b085 sub sp, #20
  1617. 8001154: af00 add r7, sp, #0
  1618. 8001156: 6078 str r0, [r7, #4]
  1619. 8001158: 460b mov r3, r1
  1620. 800115a: 70fb strb r3, [r7, #3]
  1621. int cnt = NessLab_MsgID0;
  1622. 800115c: 2302 movs r3, #2
  1623. 800115e: 60fb str r3, [r7, #12]
  1624. for(int i = cnt; i < 17; i++){
  1625. 8001160: 68fb ldr r3, [r7, #12]
  1626. 8001162: 60bb str r3, [r7, #8]
  1627. 8001164: e03b b.n 80011de <NessLab_Protocol_LastCheck+0x8e>
  1628. if(data[i] == 0x7e){
  1629. 8001166: 68bb ldr r3, [r7, #8]
  1630. 8001168: 687a ldr r2, [r7, #4]
  1631. 800116a: 4413 add r3, r2
  1632. 800116c: 781b ldrb r3, [r3, #0]
  1633. 800116e: 2b7e cmp r3, #126 ; 0x7e
  1634. 8001170: d110 bne.n 8001194 <NessLab_Protocol_LastCheck+0x44>
  1635. data[cnt++] = 0x7d;
  1636. 8001172: 68fb ldr r3, [r7, #12]
  1637. 8001174: 1c5a adds r2, r3, #1
  1638. 8001176: 60fa str r2, [r7, #12]
  1639. 8001178: 461a mov r2, r3
  1640. 800117a: 687b ldr r3, [r7, #4]
  1641. 800117c: 4413 add r3, r2
  1642. 800117e: 227d movs r2, #125 ; 0x7d
  1643. 8001180: 701a strb r2, [r3, #0]
  1644. data[cnt++] = 0x5e;
  1645. 8001182: 68fb ldr r3, [r7, #12]
  1646. 8001184: 1c5a adds r2, r3, #1
  1647. 8001186: 60fa str r2, [r7, #12]
  1648. 8001188: 461a mov r2, r3
  1649. 800118a: 687b ldr r3, [r7, #4]
  1650. 800118c: 4413 add r3, r2
  1651. 800118e: 225e movs r2, #94 ; 0x5e
  1652. 8001190: 701a strb r2, [r3, #0]
  1653. 8001192: e021 b.n 80011d8 <NessLab_Protocol_LastCheck+0x88>
  1654. }
  1655. else if(data[i] == 0x7d){
  1656. 8001194: 68bb ldr r3, [r7, #8]
  1657. 8001196: 687a ldr r2, [r7, #4]
  1658. 8001198: 4413 add r3, r2
  1659. 800119a: 781b ldrb r3, [r3, #0]
  1660. 800119c: 2b7d cmp r3, #125 ; 0x7d
  1661. 800119e: d110 bne.n 80011c2 <NessLab_Protocol_LastCheck+0x72>
  1662. data[cnt++] = 0x7d;
  1663. 80011a0: 68fb ldr r3, [r7, #12]
  1664. 80011a2: 1c5a adds r2, r3, #1
  1665. 80011a4: 60fa str r2, [r7, #12]
  1666. 80011a6: 461a mov r2, r3
  1667. 80011a8: 687b ldr r3, [r7, #4]
  1668. 80011aa: 4413 add r3, r2
  1669. 80011ac: 227d movs r2, #125 ; 0x7d
  1670. 80011ae: 701a strb r2, [r3, #0]
  1671. data[cnt++] = 0x5d;
  1672. 80011b0: 68fb ldr r3, [r7, #12]
  1673. 80011b2: 1c5a adds r2, r3, #1
  1674. 80011b4: 60fa str r2, [r7, #12]
  1675. 80011b6: 461a mov r2, r3
  1676. 80011b8: 687b ldr r3, [r7, #4]
  1677. 80011ba: 4413 add r3, r2
  1678. 80011bc: 225d movs r2, #93 ; 0x5d
  1679. 80011be: 701a strb r2, [r3, #0]
  1680. 80011c0: e00a b.n 80011d8 <NessLab_Protocol_LastCheck+0x88>
  1681. }else{
  1682. data[i++] = data[i];
  1683. 80011c2: 68bb ldr r3, [r7, #8]
  1684. 80011c4: 687a ldr r2, [r7, #4]
  1685. 80011c6: 441a add r2, r3
  1686. 80011c8: 68bb ldr r3, [r7, #8]
  1687. 80011ca: 1c59 adds r1, r3, #1
  1688. 80011cc: 60b9 str r1, [r7, #8]
  1689. 80011ce: 4619 mov r1, r3
  1690. 80011d0: 687b ldr r3, [r7, #4]
  1691. 80011d2: 440b add r3, r1
  1692. 80011d4: 7812 ldrb r2, [r2, #0]
  1693. 80011d6: 701a strb r2, [r3, #0]
  1694. for(int i = cnt; i < 17; i++){
  1695. 80011d8: 68bb ldr r3, [r7, #8]
  1696. 80011da: 3301 adds r3, #1
  1697. 80011dc: 60bb str r3, [r7, #8]
  1698. 80011de: 68bb ldr r3, [r7, #8]
  1699. 80011e0: 2b10 cmp r3, #16
  1700. 80011e2: ddc0 ble.n 8001166 <NessLab_Protocol_LastCheck+0x16>
  1701. }
  1702. }
  1703. }
  1704. 80011e4: bf00 nop
  1705. 80011e6: 3714 adds r7, #20
  1706. 80011e8: 46bd mov sp, r7
  1707. 80011ea: bc80 pop {r7}
  1708. 80011ec: 4770 bx lr
  1709. ...
  1710. 080011f0 <NessLab_Table_Frame_Set>:
  1711. void NessLab_Table_Frame_Set(uint8_t* data,uint8_t size,uint8_t mode){
  1712. 80011f0: b590 push {r4, r7, lr}
  1713. 80011f2: b087 sub sp, #28
  1714. 80011f4: af00 add r7, sp, #0
  1715. 80011f6: 6078 str r0, [r7, #4]
  1716. 80011f8: 460b mov r3, r1
  1717. 80011fa: 70fb strb r3, [r7, #3]
  1718. 80011fc: 4613 mov r3, r2
  1719. 80011fe: 70bb strb r3, [r7, #2]
  1720. uint32_t i = 0;
  1721. 8001200: 2300 movs r3, #0
  1722. 8001202: 617b str r3, [r7, #20]
  1723. uint32_t CurrApiAddress = 0;
  1724. 8001204: 2300 movs r3, #0
  1725. 8001206: 60fb str r3, [r7, #12]
  1726. CurrApiAddress = FLASH_USER_USE_START_ADDR;
  1727. 8001208: 4b33 ldr r3, [pc, #204] ; (80012d8 <NessLab_Table_Frame_Set+0xe8>)
  1728. 800120a: 60fb str r3, [r7, #12]
  1729. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  1730. 800120c: 68fb ldr r3, [r7, #12]
  1731. 800120e: 60bb str r3, [r7, #8]
  1732. uint8_t* pdata;
  1733. data[i++] = 0x7E;
  1734. 8001210: 697b ldr r3, [r7, #20]
  1735. 8001212: 1c5a adds r2, r3, #1
  1736. 8001214: 617a str r2, [r7, #20]
  1737. 8001216: 687a ldr r2, [r7, #4]
  1738. 8001218: 4413 add r3, r2
  1739. 800121a: 227e movs r2, #126 ; 0x7e
  1740. 800121c: 701a strb r2, [r3, #0]
  1741. data[i++] = 0x7E;
  1742. 800121e: 697b ldr r3, [r7, #20]
  1743. 8001220: 1c5a adds r2, r3, #1
  1744. 8001222: 617a str r2, [r7, #20]
  1745. 8001224: 687a ldr r2, [r7, #4]
  1746. 8001226: 4413 add r3, r2
  1747. 8001228: 227e movs r2, #126 ; 0x7e
  1748. 800122a: 701a strb r2, [r3, #0]
  1749. data[i++] = mode;// ID
  1750. 800122c: 697b ldr r3, [r7, #20]
  1751. 800122e: 1c5a adds r2, r3, #1
  1752. 8001230: 617a str r2, [r7, #20]
  1753. 8001232: 687a ldr r2, [r7, #4]
  1754. 8001234: 4413 add r3, r2
  1755. 8001236: 78ba ldrb r2, [r7, #2]
  1756. 8001238: 701a strb r2, [r3, #0]
  1757. data[i++] = 0; // SEQ NUMBER
  1758. 800123a: 697b ldr r3, [r7, #20]
  1759. 800123c: 1c5a adds r2, r3, #1
  1760. 800123e: 617a str r2, [r7, #20]
  1761. 8001240: 687a ldr r2, [r7, #4]
  1762. 8001242: 4413 add r3, r2
  1763. 8001244: 2200 movs r2, #0
  1764. 8001246: 701a strb r2, [r3, #0]
  1765. data[i++] = 0; // SEQ NUMBER
  1766. 8001248: 697b ldr r3, [r7, #20]
  1767. 800124a: 1c5a adds r2, r3, #1
  1768. 800124c: 617a str r2, [r7, #20]
  1769. 800124e: 687a ldr r2, [r7, #4]
  1770. 8001250: 4413 add r3, r2
  1771. 8001252: 2200 movs r2, #0
  1772. 8001254: 701a strb r2, [r3, #0]
  1773. data[i++] = 0; // NessLab_Reserve0
  1774. 8001256: 697b ldr r3, [r7, #20]
  1775. 8001258: 1c5a adds r2, r3, #1
  1776. 800125a: 617a str r2, [r7, #20]
  1777. 800125c: 687a ldr r2, [r7, #4]
  1778. 800125e: 4413 add r3, r2
  1779. 8001260: 2200 movs r2, #0
  1780. 8001262: 701a strb r2, [r3, #0]
  1781. data[i++] = size; // Nesslab Size
  1782. 8001264: 697b ldr r3, [r7, #20]
  1783. 8001266: 1c5a adds r2, r3, #1
  1784. 8001268: 617a str r2, [r7, #20]
  1785. 800126a: 687a ldr r2, [r7, #4]
  1786. 800126c: 4413 add r3, r2
  1787. 800126e: 78fa ldrb r2, [r7, #3]
  1788. 8001270: 701a strb r2, [r3, #0]
  1789. // NessLab_TalbleFlash_Read(&data[NessLab_DataLength + 1],100);
  1790. for(int a = 0; a < size; a++){
  1791. 8001272: 2300 movs r3, #0
  1792. 8001274: 613b str r3, [r7, #16]
  1793. 8001276: e00c b.n 8001292 <NessLab_Table_Frame_Set+0xa2>
  1794. data[i++] = Currdata[a];
  1795. 8001278: 693b ldr r3, [r7, #16]
  1796. 800127a: 68ba ldr r2, [r7, #8]
  1797. 800127c: 441a add r2, r3
  1798. 800127e: 697b ldr r3, [r7, #20]
  1799. 8001280: 1c59 adds r1, r3, #1
  1800. 8001282: 6179 str r1, [r7, #20]
  1801. 8001284: 6879 ldr r1, [r7, #4]
  1802. 8001286: 440b add r3, r1
  1803. 8001288: 7812 ldrb r2, [r2, #0]
  1804. 800128a: 701a strb r2, [r3, #0]
  1805. for(int a = 0; a < size; a++){
  1806. 800128c: 693b ldr r3, [r7, #16]
  1807. 800128e: 3301 adds r3, #1
  1808. 8001290: 613b str r3, [r7, #16]
  1809. 8001292: 78fb ldrb r3, [r7, #3]
  1810. 8001294: 693a ldr r2, [r7, #16]
  1811. 8001296: 429a cmp r2, r3
  1812. 8001298: dbee blt.n 8001278 <NessLab_Table_Frame_Set+0x88>
  1813. // printf("%02x ",Currdata[i]);
  1814. }
  1815. data[i++] = NessLab_Checksum(&data[NessLab_MsgID0], 100 + 5);
  1816. 800129a: 687b ldr r3, [r7, #4]
  1817. 800129c: 1c98 adds r0, r3, #2
  1818. 800129e: 697b ldr r3, [r7, #20]
  1819. 80012a0: 1c5a adds r2, r3, #1
  1820. 80012a2: 617a str r2, [r7, #20]
  1821. 80012a4: 687a ldr r2, [r7, #4]
  1822. 80012a6: 18d4 adds r4, r2, r3
  1823. 80012a8: 2169 movs r1, #105 ; 0x69
  1824. 80012aa: f000 f9d3 bl 8001654 <NessLab_Checksum>
  1825. 80012ae: 4603 mov r3, r0
  1826. 80012b0: 7023 strb r3, [r4, #0]
  1827. /* Exception Header Tail Checksum */
  1828. data[i++] = 0x7E;
  1829. 80012b2: 697b ldr r3, [r7, #20]
  1830. 80012b4: 1c5a adds r2, r3, #1
  1831. 80012b6: 617a str r2, [r7, #20]
  1832. 80012b8: 687a ldr r2, [r7, #4]
  1833. 80012ba: 4413 add r3, r2
  1834. 80012bc: 227e movs r2, #126 ; 0x7e
  1835. 80012be: 701a strb r2, [r3, #0]
  1836. data[i++] = 0x7E;
  1837. 80012c0: 697b ldr r3, [r7, #20]
  1838. 80012c2: 1c5a adds r2, r3, #1
  1839. 80012c4: 617a str r2, [r7, #20]
  1840. 80012c6: 687a ldr r2, [r7, #4]
  1841. 80012c8: 4413 add r3, r2
  1842. 80012ca: 227e movs r2, #126 ; 0x7e
  1843. 80012cc: 701a strb r2, [r3, #0]
  1844. }
  1845. 80012ce: bf00 nop
  1846. 80012d0: 371c adds r7, #28
  1847. 80012d2: 46bd mov sp, r7
  1848. 80012d4: bd90 pop {r4, r7, pc}
  1849. 80012d6: bf00 nop
  1850. 80012d8: 0800ff38 .word 0x0800ff38
  1851. 80012dc: 00000000 .word 0x00000000
  1852. 080012e0 <ADC_Value_Get>:
  1853. * ADC 0 :DL TX
  1854. * ADC 1 :DL RX
  1855. * ADC 2 :TEMP
  1856. * */
  1857. void ADC_Value_Get(){
  1858. 80012e0: b590 push {r4, r7, lr}
  1859. 80012e2: b083 sub sp, #12
  1860. 80012e4: af00 add r7, sp, #0
  1861. uint16_t CalcRet = 0 ;
  1862. 80012e6: 2300 movs r3, #0
  1863. 80012e8: 80fb strh r3, [r7, #6]
  1864. uint16_t Tx_Det_Volt = ((ADC1value[0] * (3.3 / 4095))* 1000);
  1865. 80012ea: 4b37 ldr r3, [pc, #220] ; (80013c8 <ADC_Value_Get+0xe8>)
  1866. 80012ec: 881b ldrh r3, [r3, #0]
  1867. 80012ee: b29b uxth r3, r3
  1868. 80012f0: 4618 mov r0, r3
  1869. 80012f2: f7ff f8e7 bl 80004c4 <__aeabi_i2d>
  1870. 80012f6: a332 add r3, pc, #200 ; (adr r3, 80013c0 <ADC_Value_Get+0xe0>)
  1871. 80012f8: e9d3 2300 ldrd r2, r3, [r3]
  1872. 80012fc: f7ff f94c bl 8000598 <__aeabi_dmul>
  1873. 8001300: 4603 mov r3, r0
  1874. 8001302: 460c mov r4, r1
  1875. 8001304: 4618 mov r0, r3
  1876. 8001306: 4621 mov r1, r4
  1877. 8001308: f04f 0200 mov.w r2, #0
  1878. 800130c: 4b2f ldr r3, [pc, #188] ; (80013cc <ADC_Value_Get+0xec>)
  1879. 800130e: f7ff f943 bl 8000598 <__aeabi_dmul>
  1880. 8001312: 4603 mov r3, r0
  1881. 8001314: 460c mov r4, r1
  1882. 8001316: 4618 mov r0, r3
  1883. 8001318: 4621 mov r1, r4
  1884. 800131a: f7ff fc15 bl 8000b48 <__aeabi_d2uiz>
  1885. 800131e: 4603 mov r3, r0
  1886. 8001320: 80bb strh r3, [r7, #4]
  1887. uint16_t Rx_Det_Volt = ((ADC1value[1] * (3.3 / 4095))* 1000);
  1888. 8001322: 4b29 ldr r3, [pc, #164] ; (80013c8 <ADC_Value_Get+0xe8>)
  1889. 8001324: 885b ldrh r3, [r3, #2]
  1890. 8001326: b29b uxth r3, r3
  1891. 8001328: 4618 mov r0, r3
  1892. 800132a: f7ff f8cb bl 80004c4 <__aeabi_i2d>
  1893. 800132e: a324 add r3, pc, #144 ; (adr r3, 80013c0 <ADC_Value_Get+0xe0>)
  1894. 8001330: e9d3 2300 ldrd r2, r3, [r3]
  1895. 8001334: f7ff f930 bl 8000598 <__aeabi_dmul>
  1896. 8001338: 4603 mov r3, r0
  1897. 800133a: 460c mov r4, r1
  1898. 800133c: 4618 mov r0, r3
  1899. 800133e: 4621 mov r1, r4
  1900. 8001340: f04f 0200 mov.w r2, #0
  1901. 8001344: 4b21 ldr r3, [pc, #132] ; (80013cc <ADC_Value_Get+0xec>)
  1902. 8001346: f7ff f927 bl 8000598 <__aeabi_dmul>
  1903. 800134a: 4603 mov r3, r0
  1904. 800134c: 460c mov r4, r1
  1905. 800134e: 4618 mov r0, r3
  1906. 8001350: 4621 mov r1, r4
  1907. 8001352: f7ff fbf9 bl 8000b48 <__aeabi_d2uiz>
  1908. 8001356: 4603 mov r3, r0
  1909. 8001358: 807b strh r3, [r7, #2]
  1910. int8_t Real_Temperature = ADC_Convert_Temperature((ADC1value[2] * (3.3 / 4095)));
  1911. 800135a: 4b1b ldr r3, [pc, #108] ; (80013c8 <ADC_Value_Get+0xe8>)
  1912. 800135c: 889b ldrh r3, [r3, #4]
  1913. 800135e: b29b uxth r3, r3
  1914. 8001360: 4618 mov r0, r3
  1915. 8001362: f7ff f8af bl 80004c4 <__aeabi_i2d>
  1916. 8001366: a316 add r3, pc, #88 ; (adr r3, 80013c0 <ADC_Value_Get+0xe0>)
  1917. 8001368: e9d3 2300 ldrd r2, r3, [r3]
  1918. 800136c: f7ff f914 bl 8000598 <__aeabi_dmul>
  1919. 8001370: 4603 mov r3, r0
  1920. 8001372: 460c mov r4, r1
  1921. 8001374: 4618 mov r0, r3
  1922. 8001376: 4621 mov r1, r4
  1923. 8001378: f000 f842 bl 8001400 <ADC_Convert_Temperature>
  1924. 800137c: 4603 mov r3, r0
  1925. 800137e: 707b strb r3, [r7, #1]
  1926. /*DL TX Calc*/
  1927. Currstatus.DownLink_Forward_Det_H = ((Tx_Det_Volt & 0xFF00) >> 8);
  1928. 8001380: 88bb ldrh r3, [r7, #4]
  1929. 8001382: 0a1b lsrs r3, r3, #8
  1930. 8001384: b29b uxth r3, r3
  1931. 8001386: b2da uxtb r2, r3
  1932. 8001388: 4b11 ldr r3, [pc, #68] ; (80013d0 <ADC_Value_Get+0xf0>)
  1933. 800138a: 71da strb r2, [r3, #7]
  1934. Currstatus.DownLink_Forward_Det_L = (Tx_Det_Volt & 0x00FF);
  1935. 800138c: 88bb ldrh r3, [r7, #4]
  1936. 800138e: b2da uxtb r2, r3
  1937. 8001390: 4b0f ldr r3, [pc, #60] ; (80013d0 <ADC_Value_Get+0xf0>)
  1938. 8001392: 721a strb r2, [r3, #8]
  1939. printf("Tx_Det_Volt : %d \r\n",Tx_Det_Volt);
  1940. 8001394: 88bb ldrh r3, [r7, #4]
  1941. 8001396: 4619 mov r1, r3
  1942. 8001398: 480e ldr r0, [pc, #56] ; (80013d4 <ADC_Value_Get+0xf4>)
  1943. 800139a: f005 fa2b bl 80067f4 <iprintf>
  1944. /*DL RX Calc*/
  1945. Currstatus.DownLink_Reverse_Det_H = ((Rx_Det_Volt & 0xFF00) >> 8);
  1946. 800139e: 887b ldrh r3, [r7, #2]
  1947. 80013a0: 0a1b lsrs r3, r3, #8
  1948. 80013a2: b29b uxth r3, r3
  1949. 80013a4: b2da uxtb r2, r3
  1950. 80013a6: 4b0a ldr r3, [pc, #40] ; (80013d0 <ADC_Value_Get+0xf0>)
  1951. 80013a8: 725a strb r2, [r3, #9]
  1952. Currstatus.DownLink_Reverse_Det_L = (Rx_Det_Volt & 0x00FF);
  1953. 80013aa: 887b ldrh r3, [r7, #2]
  1954. 80013ac: b2da uxtb r2, r3
  1955. 80013ae: 4b08 ldr r3, [pc, #32] ; (80013d0 <ADC_Value_Get+0xf0>)
  1956. 80013b0: 729a strb r2, [r3, #10]
  1957. /*Temp Calc*/
  1958. Currstatus.Temp_Monitor = Real_Temperature;
  1959. 80013b2: 787a ldrb r2, [r7, #1]
  1960. 80013b4: 4b06 ldr r3, [pc, #24] ; (80013d0 <ADC_Value_Get+0xf0>)
  1961. 80013b6: 745a strb r2, [r3, #17]
  1962. }
  1963. 80013b8: bf00 nop
  1964. 80013ba: 370c adds r7, #12
  1965. 80013bc: 46bd mov sp, r7
  1966. 80013be: bd90 pop {r4, r7, pc}
  1967. 80013c0: e734d9b4 .word 0xe734d9b4
  1968. 80013c4: 3f4a680c .word 0x3f4a680c
  1969. 80013c8: 200006c4 .word 0x200006c4
  1970. 80013cc: 408f4000 .word 0x408f4000
  1971. 80013d0: 200006ac .word 0x200006ac
  1972. 80013d4: 0800889c .word 0x0800889c
  1973. 080013d8 <ADC_Initialize>:
  1974. void ADC_Initialize(){
  1975. 80013d8: b580 push {r7, lr}
  1976. 80013da: af00 add r7, sp, #0
  1977. while(!(HAL_ADCEx_Calibration_Start(&hadc1)==HAL_OK));
  1978. 80013dc: bf00 nop
  1979. 80013de: 4806 ldr r0, [pc, #24] ; (80013f8 <ADC_Initialize+0x20>)
  1980. 80013e0: f001 f8aa bl 8002538 <HAL_ADCEx_Calibration_Start>
  1981. 80013e4: 4603 mov r3, r0
  1982. 80013e6: 2b00 cmp r3, #0
  1983. 80013e8: d1f9 bne.n 80013de <ADC_Initialize+0x6>
  1984. HAL_ADC_Start_DMA(&hadc1, (uint16_t*)ADC1value,(uint32_t) 3);
  1985. 80013ea: 2203 movs r2, #3
  1986. 80013ec: 4903 ldr r1, [pc, #12] ; (80013fc <ADC_Initialize+0x24>)
  1987. 80013ee: 4802 ldr r0, [pc, #8] ; (80013f8 <ADC_Initialize+0x20>)
  1988. 80013f0: f000 fd40 bl 8001e74 <HAL_ADC_Start_DMA>
  1989. }
  1990. 80013f4: bf00 nop
  1991. 80013f6: bd80 pop {r7, pc}
  1992. 80013f8: 20000a1c .word 0x20000a1c
  1993. 80013fc: 200006c4 .word 0x200006c4
  1994. 08001400 <ADC_Convert_Temperature>:
  1995. uint8_t ADC_Convert_Temperature(double val){
  1996. 8001400: b590 push {r4, r7, lr}
  1997. 8001402: b087 sub sp, #28
  1998. 8001404: af00 add r7, sp, #0
  1999. 8001406: e9c7 0100 strd r0, r1, [r7]
  2000. int16_t ref_0temp = 500;
  2001. 800140a: f44f 73fa mov.w r3, #500 ; 0x1f4
  2002. 800140e: 817b strh r3, [r7, #10]
  2003. int16_t ret = val * 1000;
  2004. 8001410: f04f 0200 mov.w r2, #0
  2005. 8001414: 4b27 ldr r3, [pc, #156] ; (80014b4 <ADC_Convert_Temperature+0xb4>)
  2006. 8001416: e9d7 0100 ldrd r0, r1, [r7]
  2007. 800141a: f7ff f8bd bl 8000598 <__aeabi_dmul>
  2008. 800141e: 4603 mov r3, r0
  2009. 8001420: 460c mov r4, r1
  2010. 8001422: 4618 mov r0, r3
  2011. 8001424: 4621 mov r1, r4
  2012. 8001426: f7ff fb67 bl 8000af8 <__aeabi_d2iz>
  2013. 800142a: 4603 mov r3, r0
  2014. 800142c: 813b strh r3, [r7, #8]
  2015. int8_t cnt = 0;
  2016. 800142e: 2300 movs r3, #0
  2017. 8001430: 75fb strb r3, [r7, #23]
  2018. printf("ret : %d \r\n", ret);
  2019. 8001432: f9b7 3008 ldrsh.w r3, [r7, #8]
  2020. 8001436: 4619 mov r1, r3
  2021. 8001438: 481f ldr r0, [pc, #124] ; (80014b8 <ADC_Convert_Temperature+0xb8>)
  2022. 800143a: f005 f9db bl 80067f4 <iprintf>
  2023. if( ret - ref_0temp > 0){
  2024. 800143e: f9b7 2008 ldrsh.w r2, [r7, #8]
  2025. 8001442: f9b7 300a ldrsh.w r3, [r7, #10]
  2026. 8001446: 1ad3 subs r3, r2, r3
  2027. 8001448: 2b00 cmp r3, #0
  2028. 800144a: dd14 ble.n 8001476 <ADC_Convert_Temperature+0x76>
  2029. for(int i = 0; i < ret - ref_0temp; i += 10){
  2030. 800144c: 2300 movs r3, #0
  2031. 800144e: 613b str r3, [r7, #16]
  2032. 8001450: e008 b.n 8001464 <ADC_Convert_Temperature+0x64>
  2033. cnt++;
  2034. 8001452: f997 3017 ldrsb.w r3, [r7, #23]
  2035. 8001456: b2db uxtb r3, r3
  2036. 8001458: 3301 adds r3, #1
  2037. 800145a: b2db uxtb r3, r3
  2038. 800145c: 75fb strb r3, [r7, #23]
  2039. for(int i = 0; i < ret - ref_0temp; i += 10){
  2040. 800145e: 693b ldr r3, [r7, #16]
  2041. 8001460: 330a adds r3, #10
  2042. 8001462: 613b str r3, [r7, #16]
  2043. 8001464: f9b7 2008 ldrsh.w r2, [r7, #8]
  2044. 8001468: f9b7 300a ldrsh.w r3, [r7, #10]
  2045. 800146c: 1ad3 subs r3, r2, r3
  2046. 800146e: 693a ldr r2, [r7, #16]
  2047. 8001470: 429a cmp r2, r3
  2048. 8001472: dbee blt.n 8001452 <ADC_Convert_Temperature+0x52>
  2049. 8001474: e013 b.n 800149e <ADC_Convert_Temperature+0x9e>
  2050. }
  2051. }else{
  2052. for(int i = 0; i > ret - ref_0temp; i -= 10){
  2053. 8001476: 2300 movs r3, #0
  2054. 8001478: 60fb str r3, [r7, #12]
  2055. 800147a: e008 b.n 800148e <ADC_Convert_Temperature+0x8e>
  2056. cnt--;
  2057. 800147c: f997 3017 ldrsb.w r3, [r7, #23]
  2058. 8001480: b2db uxtb r3, r3
  2059. 8001482: 3b01 subs r3, #1
  2060. 8001484: b2db uxtb r3, r3
  2061. 8001486: 75fb strb r3, [r7, #23]
  2062. for(int i = 0; i > ret - ref_0temp; i -= 10){
  2063. 8001488: 68fb ldr r3, [r7, #12]
  2064. 800148a: 3b0a subs r3, #10
  2065. 800148c: 60fb str r3, [r7, #12]
  2066. 800148e: f9b7 2008 ldrsh.w r2, [r7, #8]
  2067. 8001492: f9b7 300a ldrsh.w r3, [r7, #10]
  2068. 8001496: 1ad3 subs r3, r2, r3
  2069. 8001498: 68fa ldr r2, [r7, #12]
  2070. 800149a: 429a cmp r2, r3
  2071. 800149c: dcee bgt.n 800147c <ADC_Convert_Temperature+0x7c>
  2072. }
  2073. }
  2074. printf("Temp : %d\r\n",cnt);
  2075. 800149e: f997 3017 ldrsb.w r3, [r7, #23]
  2076. 80014a2: 4619 mov r1, r3
  2077. 80014a4: 4805 ldr r0, [pc, #20] ; (80014bc <ADC_Convert_Temperature+0xbc>)
  2078. 80014a6: f005 f9a5 bl 80067f4 <iprintf>
  2079. return cnt;
  2080. 80014aa: 7dfb ldrb r3, [r7, #23]
  2081. }
  2082. 80014ac: 4618 mov r0, r3
  2083. 80014ae: 371c adds r7, #28
  2084. 80014b0: 46bd mov sp, r7
  2085. 80014b2: bd90 pop {r4, r7, pc}
  2086. 80014b4: 408f4000 .word 0x408f4000
  2087. 80014b8: 080088b0 .word 0x080088b0
  2088. 80014bc: 080088bc .word 0x080088bc
  2089. 080014c0 <DascendigFunc>:
  2090. }
  2091. return ret;
  2092. }
  2093. void DascendigFunc(int32_t* src,uint32_t size ){
  2094. 80014c0: b480 push {r7}
  2095. 80014c2: b087 sub sp, #28
  2096. 80014c4: af00 add r7, sp, #0
  2097. 80014c6: 6078 str r0, [r7, #4]
  2098. 80014c8: 6039 str r1, [r7, #0]
  2099. int32_t temp;
  2100. for(int i = 0 ; i < size - 1 ; i ++) {
  2101. 80014ca: 2300 movs r3, #0
  2102. 80014cc: 617b str r3, [r7, #20]
  2103. 80014ce: e02f b.n 8001530 <DascendigFunc+0x70>
  2104. for(int j = i+1 ; j < size ; j ++) {
  2105. 80014d0: 697b ldr r3, [r7, #20]
  2106. 80014d2: 3301 adds r3, #1
  2107. 80014d4: 613b str r3, [r7, #16]
  2108. 80014d6: e024 b.n 8001522 <DascendigFunc+0x62>
  2109. if(src[i] < src[j]) {
  2110. 80014d8: 697b ldr r3, [r7, #20]
  2111. 80014da: 009b lsls r3, r3, #2
  2112. 80014dc: 687a ldr r2, [r7, #4]
  2113. 80014de: 4413 add r3, r2
  2114. 80014e0: 681a ldr r2, [r3, #0]
  2115. 80014e2: 693b ldr r3, [r7, #16]
  2116. 80014e4: 009b lsls r3, r3, #2
  2117. 80014e6: 6879 ldr r1, [r7, #4]
  2118. 80014e8: 440b add r3, r1
  2119. 80014ea: 681b ldr r3, [r3, #0]
  2120. 80014ec: 429a cmp r2, r3
  2121. 80014ee: da15 bge.n 800151c <DascendigFunc+0x5c>
  2122. temp = src[j];
  2123. 80014f0: 693b ldr r3, [r7, #16]
  2124. 80014f2: 009b lsls r3, r3, #2
  2125. 80014f4: 687a ldr r2, [r7, #4]
  2126. 80014f6: 4413 add r3, r2
  2127. 80014f8: 681b ldr r3, [r3, #0]
  2128. 80014fa: 60fb str r3, [r7, #12]
  2129. src[j] = src[i];
  2130. 80014fc: 697b ldr r3, [r7, #20]
  2131. 80014fe: 009b lsls r3, r3, #2
  2132. 8001500: 687a ldr r2, [r7, #4]
  2133. 8001502: 441a add r2, r3
  2134. 8001504: 693b ldr r3, [r7, #16]
  2135. 8001506: 009b lsls r3, r3, #2
  2136. 8001508: 6879 ldr r1, [r7, #4]
  2137. 800150a: 440b add r3, r1
  2138. 800150c: 6812 ldr r2, [r2, #0]
  2139. 800150e: 601a str r2, [r3, #0]
  2140. src[i] = temp;
  2141. 8001510: 697b ldr r3, [r7, #20]
  2142. 8001512: 009b lsls r3, r3, #2
  2143. 8001514: 687a ldr r2, [r7, #4]
  2144. 8001516: 4413 add r3, r2
  2145. 8001518: 68fa ldr r2, [r7, #12]
  2146. 800151a: 601a str r2, [r3, #0]
  2147. for(int j = i+1 ; j < size ; j ++) {
  2148. 800151c: 693b ldr r3, [r7, #16]
  2149. 800151e: 3301 adds r3, #1
  2150. 8001520: 613b str r3, [r7, #16]
  2151. 8001522: 693b ldr r3, [r7, #16]
  2152. 8001524: 683a ldr r2, [r7, #0]
  2153. 8001526: 429a cmp r2, r3
  2154. 8001528: d8d6 bhi.n 80014d8 <DascendigFunc+0x18>
  2155. for(int i = 0 ; i < size - 1 ; i ++) {
  2156. 800152a: 697b ldr r3, [r7, #20]
  2157. 800152c: 3301 adds r3, #1
  2158. 800152e: 617b str r3, [r7, #20]
  2159. 8001530: 683b ldr r3, [r7, #0]
  2160. 8001532: 1e5a subs r2, r3, #1
  2161. 8001534: 697b ldr r3, [r7, #20]
  2162. 8001536: 429a cmp r2, r3
  2163. 8001538: d8ca bhi.n 80014d0 <DascendigFunc+0x10>
  2164. // printf("temp");
  2165. }
  2166. }
  2167. }
  2168. }
  2169. 800153a: bf00 nop
  2170. 800153c: 371c adds r7, #28
  2171. 800153e: 46bd mov sp, r7
  2172. 8001540: bc80 pop {r7}
  2173. 8001542: 4770 bx lr
  2174. 08001544 <ADC_Check>:
  2175. #define Percent100 5
  2176. void ADC_Check(){
  2177. 8001544: b580 push {r7, lr}
  2178. 8001546: b082 sub sp, #8
  2179. 8001548: af00 add r7, sp, #0
  2180. float tempval = 0;
  2181. 800154a: f04f 0300 mov.w r3, #0
  2182. 800154e: 603b str r3, [r7, #0]
  2183. for(int i = 0; i < 3 ; i++)
  2184. 8001550: 2300 movs r3, #0
  2185. 8001552: 607b str r3, [r7, #4]
  2186. 8001554: e00c b.n 8001570 <ADC_Check+0x2c>
  2187. printf("ADC1value[%d] : %d \r\n",i,ADC1value[i]);
  2188. 8001556: 4a0b ldr r2, [pc, #44] ; (8001584 <ADC_Check+0x40>)
  2189. 8001558: 687b ldr r3, [r7, #4]
  2190. 800155a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  2191. 800155e: b29b uxth r3, r3
  2192. 8001560: 461a mov r2, r3
  2193. 8001562: 6879 ldr r1, [r7, #4]
  2194. 8001564: 4808 ldr r0, [pc, #32] ; (8001588 <ADC_Check+0x44>)
  2195. 8001566: f005 f945 bl 80067f4 <iprintf>
  2196. for(int i = 0; i < 3 ; i++)
  2197. 800156a: 687b ldr r3, [r7, #4]
  2198. 800156c: 3301 adds r3, #1
  2199. 800156e: 607b str r3, [r7, #4]
  2200. 8001570: 687b ldr r3, [r7, #4]
  2201. 8001572: 2b02 cmp r3, #2
  2202. 8001574: ddef ble.n 8001556 <ADC_Check+0x12>
  2203. Currstatus.DownLink_Forward_Det_H
  2204. = (((uint16_t)tempval & 0xFF00) >> 8);
  2205. Currstatus.DownLink_Forward_Det_L
  2206. = (((uint16_t)tempval & 0x00FF) );
  2207. #endif // PYJ.2020.09.09_END --
  2208. ADC_Value_Get();
  2209. 8001576: f7ff feb3 bl 80012e0 <ADC_Value_Get>
  2210. // Currstatus.Temp_Monitor = ADC_Convert_Temperature((ADC1value[2]/1000));
  2211. // printf("Currstatus.DownLink_Forward_Det : %d \r\n",Currstatus.DownLink_Forward_Det_H << 8 | Currstatus.DownLink_Forward_Det_L);
  2212. }
  2213. 800157a: bf00 nop
  2214. 800157c: 3708 adds r7, #8
  2215. 800157e: 46bd mov sp, r7
  2216. 8001580: bd80 pop {r7, pc}
  2217. 8001582: bf00 nop
  2218. 8001584: 200006c4 .word 0x200006c4
  2219. 8001588: 080088c8 .word 0x080088c8
  2220. 0800158c <HAL_ADC_ConvCpltCallback>:
  2221. }
  2222. }
  2223. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
  2224. {
  2225. 800158c: b580 push {r7, lr}
  2226. 800158e: b084 sub sp, #16
  2227. 8001590: af00 add r7, sp, #0
  2228. 8001592: 6078 str r0, [r7, #4]
  2229. if(hadc->Instance == hadc1.Instance && TDD_125ms_Cnt < 125)
  2230. 8001594: 687b ldr r3, [r7, #4]
  2231. 8001596: 681a ldr r2, [r3, #0]
  2232. 8001598: 4b27 ldr r3, [pc, #156] ; (8001638 <HAL_ADC_ConvCpltCallback+0xac>)
  2233. 800159a: 681b ldr r3, [r3, #0]
  2234. 800159c: 429a cmp r2, r3
  2235. 800159e: d147 bne.n 8001630 <HAL_ADC_ConvCpltCallback+0xa4>
  2236. 80015a0: 4b26 ldr r3, [pc, #152] ; (800163c <HAL_ADC_ConvCpltCallback+0xb0>)
  2237. 80015a2: 681b ldr r3, [r3, #0]
  2238. 80015a4: 2b7c cmp r3, #124 ; 0x7c
  2239. 80015a6: d843 bhi.n 8001630 <HAL_ADC_ConvCpltCallback+0xa4>
  2240. {
  2241. ADC1_Arrage[adc1cnt] = ADC1value[0];
  2242. 80015a8: 4b25 ldr r3, [pc, #148] ; (8001640 <HAL_ADC_ConvCpltCallback+0xb4>)
  2243. 80015aa: 881b ldrh r3, [r3, #0]
  2244. 80015ac: 461a mov r2, r3
  2245. 80015ae: 4b25 ldr r3, [pc, #148] ; (8001644 <HAL_ADC_ConvCpltCallback+0xb8>)
  2246. 80015b0: 881b ldrh r3, [r3, #0]
  2247. 80015b2: b299 uxth r1, r3
  2248. 80015b4: 4b24 ldr r3, [pc, #144] ; (8001648 <HAL_ADC_ConvCpltCallback+0xbc>)
  2249. 80015b6: f823 1012 strh.w r1, [r3, r2, lsl #1]
  2250. // for(int i = 0; i < 2; i++){
  2251. // printf("ADC1value[%d] : %d , %f\r\n",i,ADC1value[i],(float)((ADC1value[i]) *3.3 /4095));
  2252. // }
  2253. adc1cnt++;
  2254. 80015ba: 4b21 ldr r3, [pc, #132] ; (8001640 <HAL_ADC_ConvCpltCallback+0xb4>)
  2255. 80015bc: 881b ldrh r3, [r3, #0]
  2256. 80015be: 3301 adds r3, #1
  2257. 80015c0: b29a uxth r2, r3
  2258. 80015c2: 4b1f ldr r3, [pc, #124] ; (8001640 <HAL_ADC_ConvCpltCallback+0xb4>)
  2259. 80015c4: 801a strh r2, [r3, #0]
  2260. if(adc1cnt == ADC_AVERAGECNT){
  2261. 80015c6: 4b1e ldr r3, [pc, #120] ; (8001640 <HAL_ADC_ConvCpltCallback+0xb4>)
  2262. 80015c8: 881b ldrh r3, [r3, #0]
  2263. 80015ca: 2b64 cmp r3, #100 ; 0x64
  2264. 80015cc: d130 bne.n 8001630 <HAL_ADC_ConvCpltCallback+0xa4>
  2265. // DascendigFunc(&ADC1_Arrage[0],ADC_AVERAGECNT);
  2266. adc1cnt = 0;
  2267. 80015ce: 4b1c ldr r3, [pc, #112] ; (8001640 <HAL_ADC_ConvCpltCallback+0xb4>)
  2268. 80015d0: 2200 movs r2, #0
  2269. 80015d2: 801a strh r2, [r3, #0]
  2270. TotalCnt++;
  2271. 80015d4: 4b1d ldr r3, [pc, #116] ; (800164c <HAL_ADC_ConvCpltCallback+0xc0>)
  2272. 80015d6: 681b ldr r3, [r3, #0]
  2273. 80015d8: 3301 adds r3, #1
  2274. 80015da: 4a1c ldr r2, [pc, #112] ; (800164c <HAL_ADC_ConvCpltCallback+0xc0>)
  2275. 80015dc: 6013 str r3, [r2, #0]
  2276. if(TotalCnt > 2)
  2277. 80015de: 4b1b ldr r3, [pc, #108] ; (800164c <HAL_ADC_ConvCpltCallback+0xc0>)
  2278. 80015e0: 681b ldr r3, [r3, #0]
  2279. 80015e2: 2b02 cmp r3, #2
  2280. 80015e4: d902 bls.n 80015ec <HAL_ADC_ConvCpltCallback+0x60>
  2281. TotalCnt = 2;
  2282. 80015e6: 4b19 ldr r3, [pc, #100] ; (800164c <HAL_ADC_ConvCpltCallback+0xc0>)
  2283. 80015e8: 2202 movs r2, #2
  2284. 80015ea: 601a str r2, [r3, #0]
  2285. for(int i = 0; i < 100; i++){/*ADC Data Dascending Complete*/
  2286. 80015ec: 2300 movs r3, #0
  2287. 80015ee: 60fb str r3, [r7, #12]
  2288. 80015f0: e017 b.n 8001622 <HAL_ADC_ConvCpltCallback+0x96>
  2289. if(ADC1_Arrage_Ret[i] <= ADC1_Arrage[i])
  2290. 80015f2: 4a17 ldr r2, [pc, #92] ; (8001650 <HAL_ADC_ConvCpltCallback+0xc4>)
  2291. 80015f4: 68fb ldr r3, [r7, #12]
  2292. 80015f6: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  2293. 80015fa: 4913 ldr r1, [pc, #76] ; (8001648 <HAL_ADC_ConvCpltCallback+0xbc>)
  2294. 80015fc: 68fa ldr r2, [r7, #12]
  2295. 80015fe: f831 2012 ldrh.w r2, [r1, r2, lsl #1]
  2296. 8001602: b292 uxth r2, r2
  2297. 8001604: 4293 cmp r3, r2
  2298. 8001606: d809 bhi.n 800161c <HAL_ADC_ConvCpltCallback+0x90>
  2299. ADC1_Arrage_Ret[i] = ADC1_Arrage[i];
  2300. 8001608: 4a0f ldr r2, [pc, #60] ; (8001648 <HAL_ADC_ConvCpltCallback+0xbc>)
  2301. 800160a: 68fb ldr r3, [r7, #12]
  2302. 800160c: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  2303. 8001610: b29b uxth r3, r3
  2304. 8001612: 4619 mov r1, r3
  2305. 8001614: 4a0e ldr r2, [pc, #56] ; (8001650 <HAL_ADC_ConvCpltCallback+0xc4>)
  2306. 8001616: 68fb ldr r3, [r7, #12]
  2307. 8001618: f842 1023 str.w r1, [r2, r3, lsl #2]
  2308. for(int i = 0; i < 100; i++){/*ADC Data Dascending Complete*/
  2309. 800161c: 68fb ldr r3, [r7, #12]
  2310. 800161e: 3301 adds r3, #1
  2311. 8001620: 60fb str r3, [r7, #12]
  2312. 8001622: 68fb ldr r3, [r7, #12]
  2313. 8001624: 2b63 cmp r3, #99 ; 0x63
  2314. 8001626: dde4 ble.n 80015f2 <HAL_ADC_ConvCpltCallback+0x66>
  2315. }
  2316. DascendigFunc(&ADC1_Arrage_Ret[0],ADC_AVERAGECNT);
  2317. 8001628: 2164 movs r1, #100 ; 0x64
  2318. 800162a: 4809 ldr r0, [pc, #36] ; (8001650 <HAL_ADC_ConvCpltCallback+0xc4>)
  2319. 800162c: f7ff ff48 bl 80014c0 <DascendigFunc>
  2320. // ADC1valuearray[i][adc1cnt] = ADC1value[i];
  2321. // }
  2322. // adc1cnt++;
  2323. // }
  2324. }
  2325. }
  2326. 8001630: bf00 nop
  2327. 8001632: 3710 adds r7, #16
  2328. 8001634: 46bd mov sp, r7
  2329. 8001636: bd80 pop {r7, pc}
  2330. 8001638: 20000a1c .word 0x20000a1c
  2331. 800163c: 20000634 .word 0x20000634
  2332. 8001640: 200005e8 .word 0x200005e8
  2333. 8001644: 200006c4 .word 0x200006c4
  2334. 8001648: 20000390 .word 0x20000390
  2335. 800164c: 200005ec .word 0x200005ec
  2336. 8001650: 20000458 .word 0x20000458
  2337. 08001654 <NessLab_Checksum>:
  2338. crcret ^ ~0U;
  2339. return (crcret == checksum ? CHECKSUM_ERROR : NO_ERROR);
  2340. }
  2341. uint8_t NessLab_Checksum(uint8_t *data,uint8_t size){
  2342. 8001654: b480 push {r7}
  2343. 8001656: b085 sub sp, #20
  2344. 8001658: af00 add r7, sp, #0
  2345. 800165a: 6078 str r0, [r7, #4]
  2346. 800165c: 460b mov r3, r1
  2347. 800165e: 70fb strb r3, [r7, #3]
  2348. uint16_t ret = 0;
  2349. 8001660: 2300 movs r3, #0
  2350. 8001662: 81fb strh r3, [r7, #14]
  2351. // printf("Crc Process : ");
  2352. for(int i = 0; i < size; i++){
  2353. 8001664: 2300 movs r3, #0
  2354. 8001666: 60bb str r3, [r7, #8]
  2355. 8001668: e00c b.n 8001684 <NessLab_Checksum+0x30>
  2356. ret = ((ret + data[i]) & 0xFF);
  2357. 800166a: 68bb ldr r3, [r7, #8]
  2358. 800166c: 687a ldr r2, [r7, #4]
  2359. 800166e: 4413 add r3, r2
  2360. 8001670: 781b ldrb r3, [r3, #0]
  2361. 8001672: b29a uxth r2, r3
  2362. 8001674: 89fb ldrh r3, [r7, #14]
  2363. 8001676: 4413 add r3, r2
  2364. 8001678: b29b uxth r3, r3
  2365. 800167a: b2db uxtb r3, r3
  2366. 800167c: 81fb strh r3, [r7, #14]
  2367. for(int i = 0; i < size; i++){
  2368. 800167e: 68bb ldr r3, [r7, #8]
  2369. 8001680: 3301 adds r3, #1
  2370. 8001682: 60bb str r3, [r7, #8]
  2371. 8001684: 78fb ldrb r3, [r7, #3]
  2372. 8001686: 68ba ldr r2, [r7, #8]
  2373. 8001688: 429a cmp r2, r3
  2374. 800168a: dbee blt.n 800166a <NessLab_Checksum+0x16>
  2375. // printf(" %x + %x \r\n",ret,data[i]);
  2376. }
  2377. // printf("Result : ");
  2378. ret = (~ret) + 1;
  2379. 800168c: 89fb ldrh r3, [r7, #14]
  2380. 800168e: 425b negs r3, r3
  2381. 8001690: 81fb strh r3, [r7, #14]
  2382. // printf("ret [i] : %x \r\n",ret);
  2383. return (uint8_t)(ret & 0x00FF);
  2384. 8001692: 89fb ldrh r3, [r7, #14]
  2385. 8001694: b2db uxtb r3, r3
  2386. }
  2387. 8001696: 4618 mov r0, r3
  2388. 8001698: 3714 adds r7, #20
  2389. 800169a: 46bd mov sp, r7
  2390. 800169c: bc80 pop {r7}
  2391. 800169e: 4770 bx lr
  2392. 080016a0 <NessLab_CheckSum_Check>:
  2393. bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum){
  2394. 80016a0: b580 push {r7, lr}
  2395. 80016a2: b084 sub sp, #16
  2396. 80016a4: af00 add r7, sp, #0
  2397. 80016a6: 6078 str r0, [r7, #4]
  2398. 80016a8: 460b mov r3, r1
  2399. 80016aa: 70fb strb r3, [r7, #3]
  2400. 80016ac: 4613 mov r3, r2
  2401. 80016ae: 70bb strb r3, [r7, #2]
  2402. uint8_t dataret = 0;
  2403. 80016b0: 2300 movs r3, #0
  2404. 80016b2: 73fb strb r3, [r7, #15]
  2405. bool ret = false;
  2406. 80016b4: 2300 movs r3, #0
  2407. 80016b6: 73bb strb r3, [r7, #14]
  2408. // printf("size : %d \r\n",size);
  2409. for(int i = 0; i < size; i++){
  2410. 80016b8: 2300 movs r3, #0
  2411. 80016ba: 60bb str r3, [r7, #8]
  2412. 80016bc: e009 b.n 80016d2 <NessLab_CheckSum_Check+0x32>
  2413. dataret += data[i];
  2414. 80016be: 68bb ldr r3, [r7, #8]
  2415. 80016c0: 687a ldr r2, [r7, #4]
  2416. 80016c2: 4413 add r3, r2
  2417. 80016c4: 781a ldrb r2, [r3, #0]
  2418. 80016c6: 7bfb ldrb r3, [r7, #15]
  2419. 80016c8: 4413 add r3, r2
  2420. 80016ca: 73fb strb r3, [r7, #15]
  2421. for(int i = 0; i < size; i++){
  2422. 80016cc: 68bb ldr r3, [r7, #8]
  2423. 80016ce: 3301 adds r3, #1
  2424. 80016d0: 60bb str r3, [r7, #8]
  2425. 80016d2: 78fb ldrb r3, [r7, #3]
  2426. 80016d4: 68ba ldr r2, [r7, #8]
  2427. 80016d6: 429a cmp r2, r3
  2428. 80016d8: dbf1 blt.n 80016be <NessLab_CheckSum_Check+0x1e>
  2429. // printf("data [i] : %x \r\n",data[i]);
  2430. }
  2431. dataret = (~dataret) + 1;
  2432. 80016da: 7bfb ldrb r3, [r7, #15]
  2433. 80016dc: 425b negs r3, r3
  2434. 80016de: 73fb strb r3, [r7, #15]
  2435. printf("\r\ndataret : %x /// checksum : %x \r\n",dataret,checksum);
  2436. 80016e0: 7bfb ldrb r3, [r7, #15]
  2437. 80016e2: 78ba ldrb r2, [r7, #2]
  2438. 80016e4: 4619 mov r1, r3
  2439. 80016e6: 4808 ldr r0, [pc, #32] ; (8001708 <NessLab_CheckSum_Check+0x68>)
  2440. 80016e8: f005 f884 bl 80067f4 <iprintf>
  2441. if(dataret != checksum){
  2442. 80016ec: 7bfa ldrb r2, [r7, #15]
  2443. 80016ee: 78bb ldrb r3, [r7, #2]
  2444. 80016f0: 429a cmp r2, r3
  2445. 80016f2: d002 beq.n 80016fa <NessLab_CheckSum_Check+0x5a>
  2446. ret = false;
  2447. 80016f4: 2300 movs r3, #0
  2448. 80016f6: 73bb strb r3, [r7, #14]
  2449. 80016f8: e001 b.n 80016fe <NessLab_CheckSum_Check+0x5e>
  2450. }else{
  2451. ret = true;
  2452. 80016fa: 2301 movs r3, #1
  2453. 80016fc: 73bb strb r3, [r7, #14]
  2454. }
  2455. return ret;
  2456. 80016fe: 7bbb ldrb r3, [r7, #14]
  2457. }
  2458. 8001700: 4618 mov r0, r3
  2459. 8001702: 3710 adds r7, #16
  2460. 8001704: 46bd mov sp, r7
  2461. 8001706: bd80 pop {r7, pc}
  2462. 8001708: 080088e0 .word 0x080088e0
  2463. 0800170c <DataErase_Func>:
  2464. __set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
  2465. jump_to_app();
  2466. }
  2467. bool EraseInit = false;
  2468. void DataErase_Func(uint32_t User_Address,uint32_t size){
  2469. 800170c: b580 push {r7, lr}
  2470. 800170e: b082 sub sp, #8
  2471. 8001710: af00 add r7, sp, #0
  2472. 8001712: 6078 str r0, [r7, #4]
  2473. 8001714: 6039 str r1, [r7, #0]
  2474. static FLASH_EraseInitTypeDef EraseInitStruct;
  2475. static uint32_t PAGEError = 0;
  2476. HAL_FLASH_Unlock();
  2477. 8001716: f001 fb69 bl 8002dec <HAL_FLASH_Unlock>
  2478. EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
  2479. 800171a: 4b1b ldr r3, [pc, #108] ; (8001788 <DataErase_Func+0x7c>)
  2480. 800171c: 2200 movs r2, #0
  2481. 800171e: 601a str r2, [r3, #0]
  2482. EraseInitStruct.PageAddress = FLASH_USER_USE_START_ADDR;
  2483. 8001720: 4b19 ldr r3, [pc, #100] ; (8001788 <DataErase_Func+0x7c>)
  2484. 8001722: 4a1a ldr r2, [pc, #104] ; (800178c <DataErase_Func+0x80>)
  2485. 8001724: 609a str r2, [r3, #8]
  2486. EraseInitStruct.NbPages = ((FLASH_USER_END_ADDR - FLASH_USER_USE_START_ADDR) / FLASH_PAGE_SIZE) + 1;
  2487. 8001726: 4b18 ldr r3, [pc, #96] ; (8001788 <DataErase_Func+0x7c>)
  2488. 8001728: 2201 movs r2, #1
  2489. 800172a: 60da str r2, [r3, #12]
  2490. UserAddress = User_Address;
  2491. 800172c: 4a18 ldr r2, [pc, #96] ; (8001790 <DataErase_Func+0x84>)
  2492. 800172e: 687b ldr r3, [r7, #4]
  2493. 8001730: 6013 str r3, [r2, #0]
  2494. printf("NbPages : %x \r\n",EraseInitStruct.NbPages );
  2495. 8001732: 4b15 ldr r3, [pc, #84] ; (8001788 <DataErase_Func+0x7c>)
  2496. 8001734: 68db ldr r3, [r3, #12]
  2497. 8001736: 4619 mov r1, r3
  2498. 8001738: 4816 ldr r0, [pc, #88] ; (8001794 <DataErase_Func+0x88>)
  2499. 800173a: f005 f85b bl 80067f4 <iprintf>
  2500. printf("EraseInitStruct.PageAddress : %x \r\n",EraseInitStruct.PageAddress);
  2501. 800173e: 4b12 ldr r3, [pc, #72] ; (8001788 <DataErase_Func+0x7c>)
  2502. 8001740: 689b ldr r3, [r3, #8]
  2503. 8001742: 4619 mov r1, r3
  2504. 8001744: 4814 ldr r0, [pc, #80] ; (8001798 <DataErase_Func+0x8c>)
  2505. 8001746: f005 f855 bl 80067f4 <iprintf>
  2506. printf("Erase Start\r\n");
  2507. 800174a: 4814 ldr r0, [pc, #80] ; (800179c <DataErase_Func+0x90>)
  2508. 800174c: f005 f8c6 bl 80068dc <puts>
  2509. if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
  2510. 8001750: 4913 ldr r1, [pc, #76] ; (80017a0 <DataErase_Func+0x94>)
  2511. 8001752: 480d ldr r0, [pc, #52] ; (8001788 <DataErase_Func+0x7c>)
  2512. 8001754: f001 fc32 bl 8002fbc <HAL_FLASHEx_Erase>
  2513. 8001758: 4603 mov r3, r0
  2514. 800175a: 2b00 cmp r3, #0
  2515. 800175c: d007 beq.n 800176e <DataErase_Func+0x62>
  2516. */
  2517. /* Infinite loop */
  2518. while (1)
  2519. {
  2520. /* Make LED2 blink (100ms on, 2s off) to indicate error in Erase operation */
  2521. printf("HAL_FLASHEx_Erase Error\r\n");
  2522. 800175e: 4811 ldr r0, [pc, #68] ; (80017a4 <DataErase_Func+0x98>)
  2523. 8001760: f005 f8bc bl 80068dc <puts>
  2524. HAL_Delay(2000);
  2525. 8001764: f44f 60fa mov.w r0, #2000 ; 0x7d0
  2526. 8001768: f000 fa8a bl 8001c80 <HAL_Delay>
  2527. printf("HAL_FLASHEx_Erase Error\r\n");
  2528. 800176c: e7f7 b.n 800175e <DataErase_Func+0x52>
  2529. }
  2530. }
  2531. EraseInit = true;
  2532. 800176e: 4b0e ldr r3, [pc, #56] ; (80017a8 <DataErase_Func+0x9c>)
  2533. 8001770: 2201 movs r2, #1
  2534. 8001772: 701a strb r2, [r3, #0]
  2535. printf("Erase End\r\n");
  2536. 8001774: 480d ldr r0, [pc, #52] ; (80017ac <DataErase_Func+0xa0>)
  2537. 8001776: f005 f8b1 bl 80068dc <puts>
  2538. HAL_FLASH_Lock();
  2539. 800177a: f001 fb5d bl 8002e38 <HAL_FLASH_Lock>
  2540. }
  2541. 800177e: bf00 nop
  2542. 8001780: 3708 adds r7, #8
  2543. 8001782: 46bd mov sp, r7
  2544. 8001784: bd80 pop {r7, pc}
  2545. 8001786: bf00 nop
  2546. 8001788: 200005f8 .word 0x200005f8
  2547. 800178c: 0800ff38 .word 0x0800ff38
  2548. 8001790: 200005f0 .word 0x200005f0
  2549. 8001794: 08008920 .word 0x08008920
  2550. 8001798: 08008930 .word 0x08008930
  2551. 800179c: 08008954 .word 0x08008954
  2552. 80017a0: 20000608 .word 0x20000608
  2553. 80017a4: 08008964 .word 0x08008964
  2554. 80017a8: 200005f4 .word 0x200005f4
  2555. 80017ac: 08008980 .word 0x08008980
  2556. 080017b0 <FLASH_Write_Func>:
  2557. uint8_t FLASH_Write_Func(uint32_t User_Address,uint8_t* data,uint32_t size){
  2558. 80017b0: b590 push {r4, r7, lr}
  2559. 80017b2: b08b sub sp, #44 ; 0x2c
  2560. 80017b4: af00 add r7, sp, #0
  2561. 80017b6: 60f8 str r0, [r7, #12]
  2562. 80017b8: 60b9 str r1, [r7, #8]
  2563. 80017ba: 607a str r2, [r7, #4]
  2564. //static FLASH_EraseInitTypeDef EraseInitStruct;
  2565. //static uint32_t PAGEError = 0;
  2566. static uint32_t DownloadIndex;
  2567. static __IO uint32_t data32 = 0 , MemoryProgramStatus = 0;
  2568. int dataindex = 0;
  2569. 80017bc: 2300 movs r3, #0
  2570. 80017be: 623b str r3, [r7, #32]
  2571. uint32_t writedata = 0;
  2572. 80017c0: 2300 movs r3, #0
  2573. 80017c2: 61fb str r3, [r7, #28]
  2574. uint32_t CurrApiAddress = 0;
  2575. 80017c4: 2300 movs r3, #0
  2576. 80017c6: 61bb str r3, [r7, #24]
  2577. uint8_t ret = 0;
  2578. 80017c8: 2300 movs r3, #0
  2579. 80017ca: 75fb strb r3, [r7, #23]
  2580. CurrApiAddress = User_Address;
  2581. 80017cc: 68fb ldr r3, [r7, #12]
  2582. 80017ce: 61bb str r3, [r7, #24]
  2583. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  2584. 80017d0: 69bb ldr r3, [r7, #24]
  2585. 80017d2: 613b str r3, [r7, #16]
  2586. printf("HAL_FLASH_Program Start\r\n");
  2587. 80017d4: 4833 ldr r0, [pc, #204] ; (80018a4 <FLASH_Write_Func+0xf4>)
  2588. 80017d6: f005 f881 bl 80068dc <puts>
  2589. DownloadIndex += size;
  2590. 80017da: 4b33 ldr r3, [pc, #204] ; (80018a8 <FLASH_Write_Func+0xf8>)
  2591. 80017dc: 681a ldr r2, [r3, #0]
  2592. 80017de: 687b ldr r3, [r7, #4]
  2593. 80017e0: 4413 add r3, r2
  2594. 80017e2: 4a31 ldr r2, [pc, #196] ; (80018a8 <FLASH_Write_Func+0xf8>)
  2595. 80017e4: 6013 str r3, [r2, #0]
  2596. printf("User_Address : %x \r\n",UserAddress);
  2597. 80017e6: 4b31 ldr r3, [pc, #196] ; (80018ac <FLASH_Write_Func+0xfc>)
  2598. 80017e8: 681b ldr r3, [r3, #0]
  2599. 80017ea: 4619 mov r1, r3
  2600. 80017ec: 4830 ldr r0, [pc, #192] ; (80018b0 <FLASH_Write_Func+0x100>)
  2601. 80017ee: f005 f801 bl 80067f4 <iprintf>
  2602. HAL_FLASH_Unlock();
  2603. 80017f2: f001 fafb bl 8002dec <HAL_FLASH_Unlock>
  2604. for(int downindex = 0; downindex < size; downindex+=4)
  2605. 80017f6: 2300 movs r3, #0
  2606. 80017f8: 627b str r3, [r7, #36] ; 0x24
  2607. 80017fa: e041 b.n 8001880 <FLASH_Write_Func+0xd0>
  2608. {
  2609. writedata = data[downindex + 0] ;
  2610. 80017fc: 6a7b ldr r3, [r7, #36] ; 0x24
  2611. 80017fe: 68ba ldr r2, [r7, #8]
  2612. 8001800: 4413 add r3, r2
  2613. 8001802: 781b ldrb r3, [r3, #0]
  2614. 8001804: 61fb str r3, [r7, #28]
  2615. writedata += data[downindex + 1] << 8 ;
  2616. 8001806: 6a7b ldr r3, [r7, #36] ; 0x24
  2617. 8001808: 3301 adds r3, #1
  2618. 800180a: 68ba ldr r2, [r7, #8]
  2619. 800180c: 4413 add r3, r2
  2620. 800180e: 781b ldrb r3, [r3, #0]
  2621. 8001810: 021b lsls r3, r3, #8
  2622. 8001812: 461a mov r2, r3
  2623. 8001814: 69fb ldr r3, [r7, #28]
  2624. 8001816: 4413 add r3, r2
  2625. 8001818: 61fb str r3, [r7, #28]
  2626. writedata += data[downindex + 2] << 16;
  2627. 800181a: 6a7b ldr r3, [r7, #36] ; 0x24
  2628. 800181c: 3302 adds r3, #2
  2629. 800181e: 68ba ldr r2, [r7, #8]
  2630. 8001820: 4413 add r3, r2
  2631. 8001822: 781b ldrb r3, [r3, #0]
  2632. 8001824: 041b lsls r3, r3, #16
  2633. 8001826: 461a mov r2, r3
  2634. 8001828: 69fb ldr r3, [r7, #28]
  2635. 800182a: 4413 add r3, r2
  2636. 800182c: 61fb str r3, [r7, #28]
  2637. writedata += data[downindex + 3] << 24;
  2638. 800182e: 6a7b ldr r3, [r7, #36] ; 0x24
  2639. 8001830: 3303 adds r3, #3
  2640. 8001832: 68ba ldr r2, [r7, #8]
  2641. 8001834: 4413 add r3, r2
  2642. 8001836: 781b ldrb r3, [r3, #0]
  2643. 8001838: 061b lsls r3, r3, #24
  2644. 800183a: 461a mov r2, r3
  2645. 800183c: 69fb ldr r3, [r7, #28]
  2646. 800183e: 4413 add r3, r2
  2647. 8001840: 61fb str r3, [r7, #28]
  2648. if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, UserAddress,writedata) == HAL_OK)
  2649. 8001842: 4b1a ldr r3, [pc, #104] ; (80018ac <FLASH_Write_Func+0xfc>)
  2650. 8001844: 6819 ldr r1, [r3, #0]
  2651. 8001846: 69fb ldr r3, [r7, #28]
  2652. 8001848: f04f 0400 mov.w r4, #0
  2653. 800184c: 461a mov r2, r3
  2654. 800184e: 4623 mov r3, r4
  2655. 8001850: 2002 movs r0, #2
  2656. 8001852: f001 fa5b bl 8002d0c <HAL_FLASH_Program>
  2657. 8001856: 4603 mov r3, r0
  2658. 8001858: 2b00 cmp r3, #0
  2659. 800185a: d105 bne.n 8001868 <FLASH_Write_Func+0xb8>
  2660. {
  2661. UserAddress += 4;
  2662. 800185c: 4b13 ldr r3, [pc, #76] ; (80018ac <FLASH_Write_Func+0xfc>)
  2663. 800185e: 681b ldr r3, [r3, #0]
  2664. 8001860: 3304 adds r3, #4
  2665. 8001862: 4a12 ldr r2, [pc, #72] ; (80018ac <FLASH_Write_Func+0xfc>)
  2666. 8001864: 6013 str r3, [r2, #0]
  2667. 8001866: e008 b.n 800187a <FLASH_Write_Func+0xca>
  2668. }
  2669. else
  2670. {
  2671. printf("HAL_FLASH_Program Error\r\n");
  2672. 8001868: 4812 ldr r0, [pc, #72] ; (80018b4 <FLASH_Write_Func+0x104>)
  2673. 800186a: f005 f837 bl 80068dc <puts>
  2674. printf("Flash Failed %x \r\n",UserAddress);
  2675. 800186e: 4b0f ldr r3, [pc, #60] ; (80018ac <FLASH_Write_Func+0xfc>)
  2676. 8001870: 681b ldr r3, [r3, #0]
  2677. 8001872: 4619 mov r1, r3
  2678. 8001874: 4810 ldr r0, [pc, #64] ; (80018b8 <FLASH_Write_Func+0x108>)
  2679. 8001876: f004 ffbd bl 80067f4 <iprintf>
  2680. for(int downindex = 0; downindex < size; downindex+=4)
  2681. 800187a: 6a7b ldr r3, [r7, #36] ; 0x24
  2682. 800187c: 3304 adds r3, #4
  2683. 800187e: 627b str r3, [r7, #36] ; 0x24
  2684. 8001880: 6a7b ldr r3, [r7, #36] ; 0x24
  2685. 8001882: 687a ldr r2, [r7, #4]
  2686. 8001884: 429a cmp r2, r3
  2687. 8001886: d8b9 bhi.n 80017fc <FLASH_Write_Func+0x4c>
  2688. }
  2689. }
  2690. printf("HAL_FLASH_Program END %x \r\n",UserAddress);
  2691. 8001888: 4b08 ldr r3, [pc, #32] ; (80018ac <FLASH_Write_Func+0xfc>)
  2692. 800188a: 681b ldr r3, [r3, #0]
  2693. 800188c: 4619 mov r1, r3
  2694. 800188e: 480b ldr r0, [pc, #44] ; (80018bc <FLASH_Write_Func+0x10c>)
  2695. 8001890: f004 ffb0 bl 80067f4 <iprintf>
  2696. /* Lock the Flash to disable the flash control register access (recommended
  2697. to protect the FLASH memory against possible unwanted operation) *********/
  2698. HAL_FLASH_Lock();
  2699. 8001894: f001 fad0 bl 8002e38 <HAL_FLASH_Lock>
  2700. return 0;
  2701. 8001898: 2300 movs r3, #0
  2702. /* Check if the programmed data is OK
  2703. MemoryProgramStatus = 0: data programmed correctly
  2704. MemoryProgramStatus != 0: number of words not programmed correctly ******/
  2705. }
  2706. 800189a: 4618 mov r0, r3
  2707. 800189c: 372c adds r7, #44 ; 0x2c
  2708. 800189e: 46bd mov sp, r7
  2709. 80018a0: bd90 pop {r4, r7, pc}
  2710. 80018a2: bf00 nop
  2711. 80018a4: 0800898c .word 0x0800898c
  2712. 80018a8: 2000060c .word 0x2000060c
  2713. 80018ac: 200005f0 .word 0x200005f0
  2714. 80018b0: 080089a8 .word 0x080089a8
  2715. 80018b4: 080089c0 .word 0x080089c0
  2716. 80018b8: 080089dc .word 0x080089dc
  2717. 80018bc: 080089f0 .word 0x080089f0
  2718. 080018c0 <FLASH_Read_Func>:
  2719. void FLASH_Read_Func(uint32_t User_Address,uint8_t* dst,uint32_t size){
  2720. 80018c0: b580 push {r7, lr}
  2721. 80018c2: b088 sub sp, #32
  2722. 80018c4: af00 add r7, sp, #0
  2723. 80018c6: 60f8 str r0, [r7, #12]
  2724. 80018c8: 60b9 str r1, [r7, #8]
  2725. 80018ca: 607a str r2, [r7, #4]
  2726. uint32_t CurrApiAddress = 0;
  2727. 80018cc: 2300 movs r3, #0
  2728. 80018ce: 61bb str r3, [r7, #24]
  2729. uint32_t i = 0;
  2730. 80018d0: 2300 movs r3, #0
  2731. 80018d2: 617b str r3, [r7, #20]
  2732. //uint8_t ret = 0;
  2733. CurrApiAddress = User_Address;
  2734. 80018d4: 68fb ldr r3, [r7, #12]
  2735. 80018d6: 61bb str r3, [r7, #24]
  2736. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  2737. 80018d8: 69bb ldr r3, [r7, #24]
  2738. 80018da: 613b str r3, [r7, #16]
  2739. printf("Flash Read size : %d \r\n",size);
  2740. 80018dc: 6879 ldr r1, [r7, #4]
  2741. 80018de: 4810 ldr r0, [pc, #64] ; (8001920 <FLASH_Read_Func+0x60>)
  2742. 80018e0: f004 ff88 bl 80067f4 <iprintf>
  2743. for(int i = 0; i < size; i++){
  2744. 80018e4: 2300 movs r3, #0
  2745. 80018e6: 61fb str r3, [r7, #28]
  2746. 80018e8: e012 b.n 8001910 <FLASH_Read_Func+0x50>
  2747. dst[i] = Currdata[i];
  2748. 80018ea: 69fb ldr r3, [r7, #28]
  2749. 80018ec: 693a ldr r2, [r7, #16]
  2750. 80018ee: 441a add r2, r3
  2751. 80018f0: 69fb ldr r3, [r7, #28]
  2752. 80018f2: 68b9 ldr r1, [r7, #8]
  2753. 80018f4: 440b add r3, r1
  2754. 80018f6: 7812 ldrb r2, [r2, #0]
  2755. 80018f8: 701a strb r2, [r3, #0]
  2756. printf("%02x ",dst[i]);
  2757. 80018fa: 69fb ldr r3, [r7, #28]
  2758. 80018fc: 68ba ldr r2, [r7, #8]
  2759. 80018fe: 4413 add r3, r2
  2760. 8001900: 781b ldrb r3, [r3, #0]
  2761. 8001902: 4619 mov r1, r3
  2762. 8001904: 4807 ldr r0, [pc, #28] ; (8001924 <FLASH_Read_Func+0x64>)
  2763. 8001906: f004 ff75 bl 80067f4 <iprintf>
  2764. for(int i = 0; i < size; i++){
  2765. 800190a: 69fb ldr r3, [r7, #28]
  2766. 800190c: 3301 adds r3, #1
  2767. 800190e: 61fb str r3, [r7, #28]
  2768. 8001910: 69fb ldr r3, [r7, #28]
  2769. 8001912: 687a ldr r2, [r7, #4]
  2770. 8001914: 429a cmp r2, r3
  2771. 8001916: d8e8 bhi.n 80018ea <FLASH_Read_Func+0x2a>
  2772. }
  2773. }
  2774. 8001918: bf00 nop
  2775. 800191a: 3720 adds r7, #32
  2776. 800191c: 46bd mov sp, r7
  2777. 800191e: bd80 pop {r7, pc}
  2778. 8001920: 08008a10 .word 0x08008a10
  2779. 8001924: 08008a28 .word 0x08008a28
  2780. 08001928 <LedTimerCnt_Get>:
  2781. #include "main.h"
  2782. #include "led.h"
  2783. volatile uint32_t LED_TimerCnt = 0;
  2784. uint32_t LedTimerCnt_Get(){
  2785. 8001928: b480 push {r7}
  2786. 800192a: af00 add r7, sp, #0
  2787. return LED_TimerCnt;
  2788. 800192c: 4b02 ldr r3, [pc, #8] ; (8001938 <LedTimerCnt_Get+0x10>)
  2789. 800192e: 681b ldr r3, [r3, #0]
  2790. }
  2791. 8001930: 4618 mov r0, r3
  2792. 8001932: 46bd mov sp, r7
  2793. 8001934: bc80 pop {r7}
  2794. 8001936: 4770 bx lr
  2795. 8001938: 20000610 .word 0x20000610
  2796. 0800193c <LedTimerCnt_Set>:
  2797. void LedTimerCnt_Set(uint32_t val){
  2798. 800193c: b480 push {r7}
  2799. 800193e: b083 sub sp, #12
  2800. 8001940: af00 add r7, sp, #0
  2801. 8001942: 6078 str r0, [r7, #4]
  2802. LED_TimerCnt = val;
  2803. 8001944: 4a03 ldr r2, [pc, #12] ; (8001954 <LedTimerCnt_Set+0x18>)
  2804. 8001946: 687b ldr r3, [r7, #4]
  2805. 8001948: 6013 str r3, [r2, #0]
  2806. }
  2807. 800194a: bf00 nop
  2808. 800194c: 370c adds r7, #12
  2809. 800194e: 46bd mov sp, r7
  2810. 8001950: bc80 pop {r7}
  2811. 8001952: 4770 bx lr
  2812. 8001954: 20000610 .word 0x20000610
  2813. 08001958 <Boot_LED_Toggle>:
  2814. void Boot_LED_Toggle(){ /*LED Check*/
  2815. 8001958: b580 push {r7, lr}
  2816. 800195a: b082 sub sp, #8
  2817. 800195c: af00 add r7, sp, #0
  2818. uint32_t Led_Cnt = LedTimerCnt_Get();
  2819. 800195e: f7ff ffe3 bl 8001928 <LedTimerCnt_Get>
  2820. 8001962: 6078 str r0, [r7, #4]
  2821. if(Led_Cnt >= LED_TOGGLE_CNT_REF){
  2822. 8001964: 687b ldr r3, [r7, #4]
  2823. 8001966: f5b3 7ffa cmp.w r3, #500 ; 0x1f4
  2824. 800196a: d307 bcc.n 800197c <Boot_LED_Toggle+0x24>
  2825. HAL_GPIO_TogglePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin);
  2826. 800196c: f44f 4100 mov.w r1, #32768 ; 0x8000
  2827. 8001970: 4804 ldr r0, [pc, #16] ; (8001984 <Boot_LED_Toggle+0x2c>)
  2828. 8001972: f001 fd54 bl 800341e <HAL_GPIO_TogglePin>
  2829. LedTimerCnt_Set(0);
  2830. 8001976: 2000 movs r0, #0
  2831. 8001978: f7ff ffe0 bl 800193c <LedTimerCnt_Set>
  2832. }
  2833. }
  2834. 800197c: bf00 nop
  2835. 800197e: 3708 adds r7, #8
  2836. 8001980: 46bd mov sp, r7
  2837. 8001982: bd80 pop {r7, pc}
  2838. 8001984: 40011000 .word 0x40011000
  2839. 08001988 <InitUartQueue>:
  2840. extern bool Bluecell_Operate(uint8_t* data);
  2841. extern void MBIC_Operate(uint8_t * data);
  2842. extern bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum);
  2843. void InitUartQueue(pUARTQUEUE pQueue)
  2844. {
  2845. 8001988: b580 push {r7, lr}
  2846. 800198a: b082 sub sp, #8
  2847. 800198c: af00 add r7, sp, #0
  2848. 800198e: 6078 str r0, [r7, #4]
  2849. pQueue->data = pQueue->head = pQueue->tail = 0;
  2850. 8001990: 687b ldr r3, [r7, #4]
  2851. 8001992: 2200 movs r2, #0
  2852. 8001994: 605a str r2, [r3, #4]
  2853. 8001996: 687b ldr r3, [r7, #4]
  2854. 8001998: 685a ldr r2, [r3, #4]
  2855. 800199a: 687b ldr r3, [r7, #4]
  2856. 800199c: 601a str r2, [r3, #0]
  2857. 800199e: 687b ldr r3, [r7, #4]
  2858. 80019a0: 681a ldr r2, [r3, #0]
  2859. 80019a2: 687b ldr r3, [r7, #4]
  2860. 80019a4: 609a str r2, [r3, #8]
  2861. uart_hal_tx.output_p = uart_hal_tx.input_p = 0;
  2862. 80019a6: 2100 movs r1, #0
  2863. 80019a8: 4b08 ldr r3, [pc, #32] ; (80019cc <InitUartQueue+0x44>)
  2864. 80019aa: 460a mov r2, r1
  2865. 80019ac: f8a3 2080 strh.w r2, [r3, #128] ; 0x80
  2866. 80019b0: 4b06 ldr r3, [pc, #24] ; (80019cc <InitUartQueue+0x44>)
  2867. 80019b2: 460a mov r2, r1
  2868. 80019b4: f8a3 2082 strh.w r2, [r3, #130] ; 0x82
  2869. // HAL_UART_Receive_IT(&huart2,rxBuf,5);
  2870. if (HAL_UART_Receive_DMA(&hMain, MainQueue.Buffer, 1) != HAL_OK)
  2871. 80019b8: 2201 movs r2, #1
  2872. 80019ba: 4905 ldr r1, [pc, #20] ; (80019d0 <InitUartQueue+0x48>)
  2873. 80019bc: 4805 ldr r0, [pc, #20] ; (80019d4 <InitUartQueue+0x4c>)
  2874. 80019be: f002 fe53 bl 8004668 <HAL_UART_Receive_DMA>
  2875. // {
  2876. //// _Error_Handler(__FILE__, __LINE__);
  2877. // }
  2878. //HAL_UART_Receive_DMA(&hTerminal, TerminalQueue.Buffer, 1);
  2879. //HAL_UART_Receive_IT(hTerminal, pQueue->Buffer + pQueue->head, 1);
  2880. }
  2881. 80019c2: bf00 nop
  2882. 80019c4: 3708 adds r7, #8
  2883. 80019c6: 46bd mov sp, r7
  2884. 80019c8: bd80 pop {r7, pc}
  2885. 80019ca: bf00 nop
  2886. 80019cc: 20000864 .word 0x20000864
  2887. 80019d0: 20000758 .word 0x20000758
  2888. 80019d4: 20000a90 .word 0x20000a90
  2889. 080019d8 <HAL_UART_RxCpltCallback>:
  2890. void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
  2891. {
  2892. 80019d8: b580 push {r7, lr}
  2893. 80019da: b084 sub sp, #16
  2894. 80019dc: af00 add r7, sp, #0
  2895. 80019de: 6078 str r0, [r7, #4]
  2896. // UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);
  2897. pUARTQUEUE pQueue;
  2898. // printf("Function : %s : \r\n",__func__);
  2899. //printf("%02x ",uart_buf[i]);
  2900. UartRxTimerCnt = 0;
  2901. 80019e0: 4b15 ldr r3, [pc, #84] ; (8001a38 <HAL_UART_RxCpltCallback+0x60>)
  2902. 80019e2: 2200 movs r2, #0
  2903. 80019e4: 601a str r2, [r3, #0]
  2904. pQueue = &MainQueue;
  2905. 80019e6: 4b15 ldr r3, [pc, #84] ; (8001a3c <HAL_UART_RxCpltCallback+0x64>)
  2906. 80019e8: 60fb str r3, [r7, #12]
  2907. pQueue->head++;
  2908. 80019ea: 68fb ldr r3, [r7, #12]
  2909. 80019ec: 681b ldr r3, [r3, #0]
  2910. 80019ee: 1c5a adds r2, r3, #1
  2911. 80019f0: 68fb ldr r3, [r7, #12]
  2912. 80019f2: 601a str r2, [r3, #0]
  2913. if (pQueue->head >= QUEUE_BUFFER_LENGTH) pQueue->head = 0;
  2914. 80019f4: 68fb ldr r3, [r7, #12]
  2915. 80019f6: 681b ldr r3, [r3, #0]
  2916. 80019f8: 2b7f cmp r3, #127 ; 0x7f
  2917. 80019fa: dd02 ble.n 8001a02 <HAL_UART_RxCpltCallback+0x2a>
  2918. 80019fc: 68fb ldr r3, [r7, #12]
  2919. 80019fe: 2200 movs r2, #0
  2920. 8001a00: 601a str r2, [r3, #0]
  2921. pQueue->data++;
  2922. 8001a02: 68fb ldr r3, [r7, #12]
  2923. 8001a04: 689b ldr r3, [r3, #8]
  2924. 8001a06: 1c5a adds r2, r3, #1
  2925. 8001a08: 68fb ldr r3, [r7, #12]
  2926. 8001a0a: 609a str r2, [r3, #8]
  2927. if (pQueue->data >= QUEUE_BUFFER_LENGTH)
  2928. 8001a0c: 68fb ldr r3, [r7, #12]
  2929. 8001a0e: 689b ldr r3, [r3, #8]
  2930. 8001a10: 2b7f cmp r3, #127 ; 0x7f
  2931. 8001a12: dd02 ble.n 8001a1a <HAL_UART_RxCpltCallback+0x42>
  2932. GetDataFromUartQueue(huart);
  2933. 8001a14: 6878 ldr r0, [r7, #4]
  2934. 8001a16: f000 f815 bl 8001a44 <GetDataFromUartQueue>
  2935. HAL_UART_Receive_IT(&hMain, pQueue->Buffer + pQueue->head, 1);
  2936. 8001a1a: 68fb ldr r3, [r7, #12]
  2937. 8001a1c: 330c adds r3, #12
  2938. 8001a1e: 68fa ldr r2, [r7, #12]
  2939. 8001a20: 6812 ldr r2, [r2, #0]
  2940. 8001a22: 4413 add r3, r2
  2941. 8001a24: 2201 movs r2, #1
  2942. 8001a26: 4619 mov r1, r3
  2943. 8001a28: 4805 ldr r0, [pc, #20] ; (8001a40 <HAL_UART_RxCpltCallback+0x68>)
  2944. 8001a2a: f002 fd5d bl 80044e8 <HAL_UART_Receive_IT>
  2945. // HAL_UART_Receive_DMA(&hTest, pQueue->Buffer + pQueue->head, 1);
  2946. // Set_UartRcv(true);
  2947. }
  2948. 8001a2e: bf00 nop
  2949. 8001a30: 3710 adds r7, #16
  2950. 8001a32: 46bd mov sp, r7
  2951. 8001a34: bd80 pop {r7, pc}
  2952. 8001a36: bf00 nop
  2953. 8001a38: 20000618 .word 0x20000618
  2954. 8001a3c: 2000074c .word 0x2000074c
  2955. 8001a40: 20000a90 .word 0x20000a90
  2956. 08001a44 <GetDataFromUartQueue>:
  2957. // HAL_UART_Receive_DMA(&hTerminal, pQueue->Buffer + pQueue->head, 10);
  2958. }
  2959. void GetDataFromUartQueue(UART_HandleTypeDef *huart)
  2960. {
  2961. 8001a44: b580 push {r7, lr}
  2962. 8001a46: b086 sub sp, #24
  2963. 8001a48: af00 add r7, sp, #0
  2964. 8001a4a: 6078 str r0, [r7, #4]
  2965. volatile static int cnt;
  2966. bool ret = 0;
  2967. 8001a4c: 2300 movs r3, #0
  2968. 8001a4e: 75fb strb r3, [r7, #23]
  2969. /* bool chksumret = 0;
  2970. uint16_t Length = 0;
  2971. uint16_t CrcChk = 0;
  2972. UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);*/
  2973. // UART_HandleTypeDef *dst = &hTerminal;
  2974. pUARTQUEUE pQueue = &MainQueue;
  2975. 8001a50: 4b47 ldr r3, [pc, #284] ; (8001b70 <GetDataFromUartQueue+0x12c>)
  2976. 8001a52: 60fb str r3, [r7, #12]
  2977. // if (HAL_UART_Transmit(dst, pQueue->Buffer + pQueue->tail, 1, 3000) != HAL_OK)
  2978. // {
  2979. // _Error_Handler(__FILE__, __LINE__);
  2980. // }
  2981. uart_buf[cnt++] = *(pQueue->Buffer + pQueue->tail);
  2982. 8001a54: 68fb ldr r3, [r7, #12]
  2983. 8001a56: 330c adds r3, #12
  2984. 8001a58: 68fa ldr r2, [r7, #12]
  2985. 8001a5a: 6852 ldr r2, [r2, #4]
  2986. 8001a5c: 441a add r2, r3
  2987. 8001a5e: 4b45 ldr r3, [pc, #276] ; (8001b74 <GetDataFromUartQueue+0x130>)
  2988. 8001a60: 681b ldr r3, [r3, #0]
  2989. 8001a62: 1c59 adds r1, r3, #1
  2990. 8001a64: 4843 ldr r0, [pc, #268] ; (8001b74 <GetDataFromUartQueue+0x130>)
  2991. 8001a66: 6001 str r1, [r0, #0]
  2992. 8001a68: 7811 ldrb r1, [r2, #0]
  2993. 8001a6a: 4a43 ldr r2, [pc, #268] ; (8001b78 <GetDataFromUartQueue+0x134>)
  2994. 8001a6c: 54d1 strb r1, [r2, r3]
  2995. //#ifdef DEBUG_PRINT
  2996. // printf("%02x ",*(pQueue->Buffer + pQueue->tail)) ;
  2997. //#endif /* DEBUG_PRINT */
  2998. pQueue->tail++;
  2999. 8001a6e: 68fb ldr r3, [r7, #12]
  3000. 8001a70: 685b ldr r3, [r3, #4]
  3001. 8001a72: 1c5a adds r2, r3, #1
  3002. 8001a74: 68fb ldr r3, [r7, #12]
  3003. 8001a76: 605a str r2, [r3, #4]
  3004. if (pQueue->tail >= QUEUE_BUFFER_LENGTH) pQueue->tail = 0;
  3005. 8001a78: 68fb ldr r3, [r7, #12]
  3006. 8001a7a: 685b ldr r3, [r3, #4]
  3007. 8001a7c: 2b7f cmp r3, #127 ; 0x7f
  3008. 8001a7e: dd02 ble.n 8001a86 <GetDataFromUartQueue+0x42>
  3009. 8001a80: 68fb ldr r3, [r7, #12]
  3010. 8001a82: 2200 movs r2, #0
  3011. 8001a84: 605a str r2, [r3, #4]
  3012. pQueue->data--;
  3013. 8001a86: 68fb ldr r3, [r7, #12]
  3014. 8001a88: 689b ldr r3, [r3, #8]
  3015. 8001a8a: 1e5a subs r2, r3, #1
  3016. 8001a8c: 68fb ldr r3, [r7, #12]
  3017. 8001a8e: 609a str r2, [r3, #8]
  3018. if(pQueue->data == 0){
  3019. 8001a90: 68fb ldr r3, [r7, #12]
  3020. 8001a92: 689b ldr r3, [r3, #8]
  3021. 8001a94: 2b00 cmp r3, #0
  3022. 8001a96: d167 bne.n 8001b68 <GetDataFromUartQueue+0x124>
  3023. // printf("data cnt zero !!! \r\n");
  3024. //RF_Ctrl_Main(&uart_buf[Header]);
  3025. // HAL_UART_Transmit(dst, &temp_buf[BLUECELL_HEADER00], 11, 3000);
  3026. #if 1// PYJ.2019.07.15_BEGIN --
  3027. printf("\r\n[RX]");
  3028. 8001a98: 4838 ldr r0, [pc, #224] ; (8001b7c <GetDataFromUartQueue+0x138>)
  3029. 8001a9a: f004 feab bl 80067f4 <iprintf>
  3030. for(int i = 0; i < cnt; i++){
  3031. 8001a9e: 2300 movs r3, #0
  3032. 8001aa0: 613b str r3, [r7, #16]
  3033. 8001aa2: e00b b.n 8001abc <GetDataFromUartQueue+0x78>
  3034. printf("%02x ",uart_buf[i]);
  3035. 8001aa4: 4a34 ldr r2, [pc, #208] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3036. 8001aa6: 693b ldr r3, [r7, #16]
  3037. 8001aa8: 4413 add r3, r2
  3038. 8001aaa: 781b ldrb r3, [r3, #0]
  3039. 8001aac: b2db uxtb r3, r3
  3040. 8001aae: 4619 mov r1, r3
  3041. 8001ab0: 4833 ldr r0, [pc, #204] ; (8001b80 <GetDataFromUartQueue+0x13c>)
  3042. 8001ab2: f004 fe9f bl 80067f4 <iprintf>
  3043. for(int i = 0; i < cnt; i++){
  3044. 8001ab6: 693b ldr r3, [r7, #16]
  3045. 8001ab8: 3301 adds r3, #1
  3046. 8001aba: 613b str r3, [r7, #16]
  3047. 8001abc: 4b2d ldr r3, [pc, #180] ; (8001b74 <GetDataFromUartQueue+0x130>)
  3048. 8001abe: 681b ldr r3, [r3, #0]
  3049. 8001ac0: 693a ldr r2, [r7, #16]
  3050. 8001ac2: 429a cmp r2, r3
  3051. 8001ac4: dbee blt.n 8001aa4 <GetDataFromUartQueue+0x60>
  3052. }
  3053. printf("\r\n");
  3054. 8001ac6: 482f ldr r0, [pc, #188] ; (8001b84 <GetDataFromUartQueue+0x140>)
  3055. 8001ac8: f004 ff08 bl 80068dc <puts>
  3056. // 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]);
  3057. // printf(ANSI_COLOR_GREEN"\r\n CNT : %d \r\n"ANSI_COLOR_RESET,cnt);
  3058. #endif // PYJ.2019.07.15_END --
  3059. if(uart_buf[NessLab_Req_MsgID0] == NessLab_Table_REQ)
  3060. 8001acc: 4b2a ldr r3, [pc, #168] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3061. 8001ace: 789b ldrb r3, [r3, #2]
  3062. 8001ad0: b2db uxtb r3, r3
  3063. 8001ad2: 2bc9 cmp r3, #201 ; 0xc9
  3064. 8001ad4: d10c bne.n 8001af0 <GetDataFromUartQueue+0xac>
  3065. ret = NessLab_CheckSum_Check(&uart_buf[NessLab_Req_MsgID0],uart_buf[NessLab_Req_DataLength] ,uart_buf[NessLab_Req_ChecksumVal]);
  3066. 8001ad6: 4b28 ldr r3, [pc, #160] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3067. 8001ad8: 799b ldrb r3, [r3, #6]
  3068. 8001ada: b2d9 uxtb r1, r3
  3069. 8001adc: 4b26 ldr r3, [pc, #152] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3070. 8001ade: 7a5b ldrb r3, [r3, #9]
  3071. 8001ae0: b2db uxtb r3, r3
  3072. 8001ae2: 461a mov r2, r3
  3073. 8001ae4: 4828 ldr r0, [pc, #160] ; (8001b88 <GetDataFromUartQueue+0x144>)
  3074. 8001ae6: f7ff fddb bl 80016a0 <NessLab_CheckSum_Check>
  3075. 8001aea: 4603 mov r3, r0
  3076. 8001aec: 75fb strb r3, [r7, #23]
  3077. 8001aee: e011 b.n 8001b14 <GetDataFromUartQueue+0xd0>
  3078. else
  3079. 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]);
  3080. 8001af0: 4b21 ldr r3, [pc, #132] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3081. 8001af2: 799b ldrb r3, [r3, #6]
  3082. 8001af4: b2db uxtb r3, r3
  3083. 8001af6: 3305 adds r3, #5
  3084. 8001af8: b2d9 uxtb r1, r3
  3085. 8001afa: 4b1f ldr r3, [pc, #124] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3086. 8001afc: 799b ldrb r3, [r3, #6]
  3087. 8001afe: b2db uxtb r3, r3
  3088. 8001b00: 3307 adds r3, #7
  3089. 8001b02: 4a1d ldr r2, [pc, #116] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3090. 8001b04: 5cd3 ldrb r3, [r2, r3]
  3091. 8001b06: b2db uxtb r3, r3
  3092. 8001b08: 461a mov r2, r3
  3093. 8001b0a: 481f ldr r0, [pc, #124] ; (8001b88 <GetDataFromUartQueue+0x144>)
  3094. 8001b0c: f7ff fdc8 bl 80016a0 <NessLab_CheckSum_Check>
  3095. 8001b10: 4603 mov r3, r0
  3096. 8001b12: 75fb strb r3, [r7, #23]
  3097. if(ret == true){
  3098. 8001b14: 7dfb ldrb r3, [r7, #23]
  3099. 8001b16: 2b00 cmp r3, #0
  3100. 8001b18: d006 beq.n 8001b28 <GetDataFromUartQueue+0xe4>
  3101. NessLab_Operate(&uart_buf[0]);
  3102. 8001b1a: 4817 ldr r0, [pc, #92] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3103. 8001b1c: f7ff f998 bl 8000e50 <NessLab_Operate>
  3104. printf("Checksum OK \r\n");
  3105. 8001b20: 481a ldr r0, [pc, #104] ; (8001b8c <GetDataFromUartQueue+0x148>)
  3106. 8001b22: f004 fedb bl 80068dc <puts>
  3107. 8001b26: e01c b.n 8001b62 <GetDataFromUartQueue+0x11e>
  3108. }else{
  3109. printf("Checksum Error \r\n");
  3110. 8001b28: 4819 ldr r0, [pc, #100] ; (8001b90 <GetDataFromUartQueue+0x14c>)
  3111. 8001b2a: f004 fed7 bl 80068dc <puts>
  3112. printf("uart_buf[NessLab_Req_DataLength] : %x \r\n",uart_buf[NessLab_Req_DataLength]);
  3113. 8001b2e: 4b12 ldr r3, [pc, #72] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3114. 8001b30: 799b ldrb r3, [r3, #6]
  3115. 8001b32: b2db uxtb r3, r3
  3116. 8001b34: 4619 mov r1, r3
  3117. 8001b36: 4817 ldr r0, [pc, #92] ; (8001b94 <GetDataFromUartQueue+0x150>)
  3118. 8001b38: f004 fe5c bl 80067f4 <iprintf>
  3119. printf("NessLab_Req_DataLength : %d \r\n",NessLab_Req_DataLength);
  3120. 8001b3c: 2106 movs r1, #6
  3121. 8001b3e: 4816 ldr r0, [pc, #88] ; (8001b98 <GetDataFromUartQueue+0x154>)
  3122. 8001b40: f004 fe58 bl 80067f4 <iprintf>
  3123. 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]);
  3124. 8001b44: 4b0c ldr r3, [pc, #48] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3125. 8001b46: 799b ldrb r3, [r3, #6]
  3126. 8001b48: b2db uxtb r3, r3
  3127. 8001b4a: 1dd9 adds r1, r3, #7
  3128. 8001b4c: 4b0a ldr r3, [pc, #40] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3129. 8001b4e: 799b ldrb r3, [r3, #6]
  3130. 8001b50: b2db uxtb r3, r3
  3131. 8001b52: 3307 adds r3, #7
  3132. 8001b54: 4a08 ldr r2, [pc, #32] ; (8001b78 <GetDataFromUartQueue+0x134>)
  3133. 8001b56: 5cd3 ldrb r3, [r2, r3]
  3134. 8001b58: b2db uxtb r3, r3
  3135. 8001b5a: 461a mov r2, r3
  3136. 8001b5c: 480f ldr r0, [pc, #60] ; (8001b9c <GetDataFromUartQueue+0x158>)
  3137. 8001b5e: f004 fe49 bl 80067f4 <iprintf>
  3138. }
  3139. cnt = 0;
  3140. 8001b62: 4b04 ldr r3, [pc, #16] ; (8001b74 <GetDataFromUartQueue+0x130>)
  3141. 8001b64: 2200 movs r2, #0
  3142. 8001b66: 601a str r2, [r3, #0]
  3143. }
  3144. }
  3145. 8001b68: bf00 nop
  3146. 8001b6a: 3718 adds r7, #24
  3147. 8001b6c: 46bd mov sp, r7
  3148. 8001b6e: bd80 pop {r7, pc}
  3149. 8001b70: 2000074c .word 0x2000074c
  3150. 8001b74: 20000614 .word 0x20000614
  3151. 8001b78: 200006cc .word 0x200006cc
  3152. 8001b7c: 08008a40 .word 0x08008a40
  3153. 8001b80: 08008a48 .word 0x08008a48
  3154. 8001b84: 08008a50 .word 0x08008a50
  3155. 8001b88: 200006ce .word 0x200006ce
  3156. 8001b8c: 08008a54 .word 0x08008a54
  3157. 8001b90: 08008a64 .word 0x08008a64
  3158. 8001b94: 08008a78 .word 0x08008a78
  3159. 8001b98: 08008aa4 .word 0x08008aa4
  3160. 8001b9c: 08008ac4 .word 0x08008ac4
  3161. 08001ba0 <Uart_Check>:
  3162. void Uart_Check(void){
  3163. 8001ba0: b580 push {r7, lr}
  3164. 8001ba2: af00 add r7, sp, #0
  3165. while (MainQueue.data > 0 && UartRxTimerCnt > 50) GetDataFromUartQueue(&hMain);
  3166. 8001ba4: e002 b.n 8001bac <Uart_Check+0xc>
  3167. 8001ba6: 4806 ldr r0, [pc, #24] ; (8001bc0 <Uart_Check+0x20>)
  3168. 8001ba8: f7ff ff4c bl 8001a44 <GetDataFromUartQueue>
  3169. 8001bac: 4b05 ldr r3, [pc, #20] ; (8001bc4 <Uart_Check+0x24>)
  3170. 8001bae: 689b ldr r3, [r3, #8]
  3171. 8001bb0: 2b00 cmp r3, #0
  3172. 8001bb2: dd03 ble.n 8001bbc <Uart_Check+0x1c>
  3173. 8001bb4: 4b04 ldr r3, [pc, #16] ; (8001bc8 <Uart_Check+0x28>)
  3174. 8001bb6: 681b ldr r3, [r3, #0]
  3175. 8001bb8: 2b32 cmp r3, #50 ; 0x32
  3176. 8001bba: d8f4 bhi.n 8001ba6 <Uart_Check+0x6>
  3177. }
  3178. 8001bbc: bf00 nop
  3179. 8001bbe: bd80 pop {r7, pc}
  3180. 8001bc0: 20000a90 .word 0x20000a90
  3181. 8001bc4: 2000074c .word 0x2000074c
  3182. 8001bc8: 20000618 .word 0x20000618
  3183. 08001bcc <Uart1_Data_Send>:
  3184. void Uart1_Data_Send(uint8_t* data,uint16_t size){
  3185. 8001bcc: b580 push {r7, lr}
  3186. 8001bce: b084 sub sp, #16
  3187. 8001bd0: af00 add r7, sp, #0
  3188. 8001bd2: 6078 str r0, [r7, #4]
  3189. 8001bd4: 460b mov r3, r1
  3190. 8001bd6: 807b strh r3, [r7, #2]
  3191. HAL_UART_Transmit_DMA(&hMain, &data[0],size);
  3192. 8001bd8: 887b ldrh r3, [r7, #2]
  3193. 8001bda: 461a mov r2, r3
  3194. 8001bdc: 6879 ldr r1, [r7, #4]
  3195. 8001bde: 480f ldr r0, [pc, #60] ; (8001c1c <Uart1_Data_Send+0x50>)
  3196. 8001be0: f002 fcd6 bl 8004590 <HAL_UART_Transmit_DMA>
  3197. //HAL_UART_Transmit_IT(&hTerminal, &data[0],size);
  3198. // printf("data[278] : %x \r\n",data[278]);
  3199. //// HAL_Delay(1);
  3200. #if 1 // PYJ.2020.07.19_BEGIN --
  3201. printf("\r\n [TX] : ");
  3202. 8001be4: 480e ldr r0, [pc, #56] ; (8001c20 <Uart1_Data_Send+0x54>)
  3203. 8001be6: f004 fe05 bl 80067f4 <iprintf>
  3204. for(int i = 0; i< size; i++)
  3205. 8001bea: 2300 movs r3, #0
  3206. 8001bec: 60fb str r3, [r7, #12]
  3207. 8001bee: e00a b.n 8001c06 <Uart1_Data_Send+0x3a>
  3208. printf("%02x ",data[i]);
  3209. 8001bf0: 68fb ldr r3, [r7, #12]
  3210. 8001bf2: 687a ldr r2, [r7, #4]
  3211. 8001bf4: 4413 add r3, r2
  3212. 8001bf6: 781b ldrb r3, [r3, #0]
  3213. 8001bf8: 4619 mov r1, r3
  3214. 8001bfa: 480a ldr r0, [pc, #40] ; (8001c24 <Uart1_Data_Send+0x58>)
  3215. 8001bfc: f004 fdfa bl 80067f4 <iprintf>
  3216. for(int i = 0; i< size; i++)
  3217. 8001c00: 68fb ldr r3, [r7, #12]
  3218. 8001c02: 3301 adds r3, #1
  3219. 8001c04: 60fb str r3, [r7, #12]
  3220. 8001c06: 887b ldrh r3, [r7, #2]
  3221. 8001c08: 68fa ldr r2, [r7, #12]
  3222. 8001c0a: 429a cmp r2, r3
  3223. 8001c0c: dbf0 blt.n 8001bf0 <Uart1_Data_Send+0x24>
  3224. // printf("};\r\n\tCOUNT : %d \r\n",size);
  3225. printf("\r\n");
  3226. 8001c0e: 4806 ldr r0, [pc, #24] ; (8001c28 <Uart1_Data_Send+0x5c>)
  3227. 8001c10: f004 fe64 bl 80068dc <puts>
  3228. // data[i] = 0;
  3229. // }
  3230. // printf("};\r\n\tCOUNT : %d \r\n",size);
  3231. // printf("\r\n");
  3232. }
  3233. 8001c14: bf00 nop
  3234. 8001c16: 3710 adds r7, #16
  3235. 8001c18: 46bd mov sp, r7
  3236. 8001c1a: bd80 pop {r7, pc}
  3237. 8001c1c: 20000a90 .word 0x20000a90
  3238. 8001c20: 08008ae0 .word 0x08008ae0
  3239. 8001c24: 08008a48 .word 0x08008a48
  3240. 8001c28: 08008a50 .word 0x08008a50
  3241. 08001c2c <HAL_Init>:
  3242. * need to ensure that the SysTick time base is always set to 1 millisecond
  3243. * to have correct HAL operation.
  3244. * @retval HAL status
  3245. */
  3246. HAL_StatusTypeDef HAL_Init(void)
  3247. {
  3248. 8001c2c: b580 push {r7, lr}
  3249. 8001c2e: af00 add r7, sp, #0
  3250. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  3251. #endif
  3252. #endif /* PREFETCH_ENABLE */
  3253. /* Set Interrupt Group Priority */
  3254. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  3255. 8001c30: 2003 movs r0, #3
  3256. 8001c32: f000 fdd1 bl 80027d8 <HAL_NVIC_SetPriorityGrouping>
  3257. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  3258. HAL_InitTick(TICK_INT_PRIORITY);
  3259. 8001c36: 2000 movs r0, #0
  3260. 8001c38: f003 ffa4 bl 8005b84 <HAL_InitTick>
  3261. /* Init the low level hardware */
  3262. HAL_MspInit();
  3263. 8001c3c: f003 fdba bl 80057b4 <HAL_MspInit>
  3264. /* Return function status */
  3265. return HAL_OK;
  3266. 8001c40: 2300 movs r3, #0
  3267. }
  3268. 8001c42: 4618 mov r0, r3
  3269. 8001c44: bd80 pop {r7, pc}
  3270. ...
  3271. 08001c48 <HAL_IncTick>:
  3272. * @note This function is declared as __weak to be overwritten in case of other
  3273. * implementations in user file.
  3274. * @retval None
  3275. */
  3276. __weak void HAL_IncTick(void)
  3277. {
  3278. 8001c48: b480 push {r7}
  3279. 8001c4a: af00 add r7, sp, #0
  3280. uwTick += uwTickFreq;
  3281. 8001c4c: 4b05 ldr r3, [pc, #20] ; (8001c64 <HAL_IncTick+0x1c>)
  3282. 8001c4e: 781b ldrb r3, [r3, #0]
  3283. 8001c50: 461a mov r2, r3
  3284. 8001c52: 4b05 ldr r3, [pc, #20] ; (8001c68 <HAL_IncTick+0x20>)
  3285. 8001c54: 681b ldr r3, [r3, #0]
  3286. 8001c56: 4413 add r3, r2
  3287. 8001c58: 4a03 ldr r2, [pc, #12] ; (8001c68 <HAL_IncTick+0x20>)
  3288. 8001c5a: 6013 str r3, [r2, #0]
  3289. }
  3290. 8001c5c: bf00 nop
  3291. 8001c5e: 46bd mov sp, r7
  3292. 8001c60: bc80 pop {r7}
  3293. 8001c62: 4770 bx lr
  3294. 8001c64: 20000004 .word 0x20000004
  3295. 8001c68: 200008e8 .word 0x200008e8
  3296. 08001c6c <HAL_GetTick>:
  3297. * @note This function is declared as __weak to be overwritten in case of other
  3298. * implementations in user file.
  3299. * @retval tick value
  3300. */
  3301. __weak uint32_t HAL_GetTick(void)
  3302. {
  3303. 8001c6c: b480 push {r7}
  3304. 8001c6e: af00 add r7, sp, #0
  3305. return uwTick;
  3306. 8001c70: 4b02 ldr r3, [pc, #8] ; (8001c7c <HAL_GetTick+0x10>)
  3307. 8001c72: 681b ldr r3, [r3, #0]
  3308. }
  3309. 8001c74: 4618 mov r0, r3
  3310. 8001c76: 46bd mov sp, r7
  3311. 8001c78: bc80 pop {r7}
  3312. 8001c7a: 4770 bx lr
  3313. 8001c7c: 200008e8 .word 0x200008e8
  3314. 08001c80 <HAL_Delay>:
  3315. * implementations in user file.
  3316. * @param Delay specifies the delay time length, in milliseconds.
  3317. * @retval None
  3318. */
  3319. __weak void HAL_Delay(uint32_t Delay)
  3320. {
  3321. 8001c80: b580 push {r7, lr}
  3322. 8001c82: b084 sub sp, #16
  3323. 8001c84: af00 add r7, sp, #0
  3324. 8001c86: 6078 str r0, [r7, #4]
  3325. uint32_t tickstart = HAL_GetTick();
  3326. 8001c88: f7ff fff0 bl 8001c6c <HAL_GetTick>
  3327. 8001c8c: 60b8 str r0, [r7, #8]
  3328. uint32_t wait = Delay;
  3329. 8001c8e: 687b ldr r3, [r7, #4]
  3330. 8001c90: 60fb str r3, [r7, #12]
  3331. /* Add a freq to guarantee minimum wait */
  3332. if (wait < HAL_MAX_DELAY)
  3333. 8001c92: 68fb ldr r3, [r7, #12]
  3334. 8001c94: f1b3 3fff cmp.w r3, #4294967295
  3335. 8001c98: d005 beq.n 8001ca6 <HAL_Delay+0x26>
  3336. {
  3337. wait += (uint32_t)(uwTickFreq);
  3338. 8001c9a: 4b09 ldr r3, [pc, #36] ; (8001cc0 <HAL_Delay+0x40>)
  3339. 8001c9c: 781b ldrb r3, [r3, #0]
  3340. 8001c9e: 461a mov r2, r3
  3341. 8001ca0: 68fb ldr r3, [r7, #12]
  3342. 8001ca2: 4413 add r3, r2
  3343. 8001ca4: 60fb str r3, [r7, #12]
  3344. }
  3345. while ((HAL_GetTick() - tickstart) < wait)
  3346. 8001ca6: bf00 nop
  3347. 8001ca8: f7ff ffe0 bl 8001c6c <HAL_GetTick>
  3348. 8001cac: 4602 mov r2, r0
  3349. 8001cae: 68bb ldr r3, [r7, #8]
  3350. 8001cb0: 1ad3 subs r3, r2, r3
  3351. 8001cb2: 68fa ldr r2, [r7, #12]
  3352. 8001cb4: 429a cmp r2, r3
  3353. 8001cb6: d8f7 bhi.n 8001ca8 <HAL_Delay+0x28>
  3354. {
  3355. }
  3356. }
  3357. 8001cb8: bf00 nop
  3358. 8001cba: 3710 adds r7, #16
  3359. 8001cbc: 46bd mov sp, r7
  3360. 8001cbe: bd80 pop {r7, pc}
  3361. 8001cc0: 20000004 .word 0x20000004
  3362. 08001cc4 <HAL_ADC_Init>:
  3363. * of structure "ADC_InitTypeDef".
  3364. * @param hadc: ADC handle
  3365. * @retval HAL status
  3366. */
  3367. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
  3368. {
  3369. 8001cc4: b580 push {r7, lr}
  3370. 8001cc6: b086 sub sp, #24
  3371. 8001cc8: af00 add r7, sp, #0
  3372. 8001cca: 6078 str r0, [r7, #4]
  3373. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3374. 8001ccc: 2300 movs r3, #0
  3375. 8001cce: 75fb strb r3, [r7, #23]
  3376. uint32_t tmp_cr1 = 0U;
  3377. 8001cd0: 2300 movs r3, #0
  3378. 8001cd2: 613b str r3, [r7, #16]
  3379. uint32_t tmp_cr2 = 0U;
  3380. 8001cd4: 2300 movs r3, #0
  3381. 8001cd6: 60bb str r3, [r7, #8]
  3382. uint32_t tmp_sqr1 = 0U;
  3383. 8001cd8: 2300 movs r3, #0
  3384. 8001cda: 60fb str r3, [r7, #12]
  3385. /* Check ADC handle */
  3386. if(hadc == NULL)
  3387. 8001cdc: 687b ldr r3, [r7, #4]
  3388. 8001cde: 2b00 cmp r3, #0
  3389. 8001ce0: d101 bne.n 8001ce6 <HAL_ADC_Init+0x22>
  3390. {
  3391. return HAL_ERROR;
  3392. 8001ce2: 2301 movs r3, #1
  3393. 8001ce4: e0be b.n 8001e64 <HAL_ADC_Init+0x1a0>
  3394. assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign));
  3395. assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode));
  3396. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  3397. assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
  3398. if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  3399. 8001ce6: 687b ldr r3, [r7, #4]
  3400. 8001ce8: 689b ldr r3, [r3, #8]
  3401. 8001cea: 2b00 cmp r3, #0
  3402. /* Refer to header of this file for more details on clock enabling */
  3403. /* procedure. */
  3404. /* Actions performed only if ADC is coming from state reset: */
  3405. /* - Initialization of ADC MSP */
  3406. if (hadc->State == HAL_ADC_STATE_RESET)
  3407. 8001cec: 687b ldr r3, [r7, #4]
  3408. 8001cee: 6a9b ldr r3, [r3, #40] ; 0x28
  3409. 8001cf0: 2b00 cmp r3, #0
  3410. 8001cf2: d109 bne.n 8001d08 <HAL_ADC_Init+0x44>
  3411. {
  3412. /* Initialize ADC error code */
  3413. ADC_CLEAR_ERRORCODE(hadc);
  3414. 8001cf4: 687b ldr r3, [r7, #4]
  3415. 8001cf6: 2200 movs r2, #0
  3416. 8001cf8: 62da str r2, [r3, #44] ; 0x2c
  3417. /* Allocate lock resource and initialize it */
  3418. hadc->Lock = HAL_UNLOCKED;
  3419. 8001cfa: 687b ldr r3, [r7, #4]
  3420. 8001cfc: 2200 movs r2, #0
  3421. 8001cfe: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3422. /* Init the low level hardware */
  3423. hadc->MspInitCallback(hadc);
  3424. #else
  3425. /* Init the low level hardware */
  3426. HAL_ADC_MspInit(hadc);
  3427. 8001d02: 6878 ldr r0, [r7, #4]
  3428. 8001d04: f003 fd88 bl 8005818 <HAL_ADC_MspInit>
  3429. /* Stop potential conversion on going, on regular and injected groups */
  3430. /* Disable ADC peripheral */
  3431. /* Note: In case of ADC already enabled, precaution to not launch an */
  3432. /* unwanted conversion while modifying register CR2 by writing 1 to */
  3433. /* bit ADON. */
  3434. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  3435. 8001d08: 6878 ldr r0, [r7, #4]
  3436. 8001d0a: f000 fb75 bl 80023f8 <ADC_ConversionStop_Disable>
  3437. 8001d0e: 4603 mov r3, r0
  3438. 8001d10: 75fb strb r3, [r7, #23]
  3439. /* Configuration of ADC parameters if previous preliminary actions are */
  3440. /* correctly completed. */
  3441. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) &&
  3442. 8001d12: 687b ldr r3, [r7, #4]
  3443. 8001d14: 6a9b ldr r3, [r3, #40] ; 0x28
  3444. 8001d16: f003 0310 and.w r3, r3, #16
  3445. 8001d1a: 2b00 cmp r3, #0
  3446. 8001d1c: f040 8099 bne.w 8001e52 <HAL_ADC_Init+0x18e>
  3447. 8001d20: 7dfb ldrb r3, [r7, #23]
  3448. 8001d22: 2b00 cmp r3, #0
  3449. 8001d24: f040 8095 bne.w 8001e52 <HAL_ADC_Init+0x18e>
  3450. (tmp_hal_status == HAL_OK) )
  3451. {
  3452. /* Set ADC state */
  3453. ADC_STATE_CLR_SET(hadc->State,
  3454. 8001d28: 687b ldr r3, [r7, #4]
  3455. 8001d2a: 6a9b ldr r3, [r3, #40] ; 0x28
  3456. 8001d2c: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  3457. 8001d30: f023 0302 bic.w r3, r3, #2
  3458. 8001d34: f043 0202 orr.w r2, r3, #2
  3459. 8001d38: 687b ldr r3, [r7, #4]
  3460. 8001d3a: 629a str r2, [r3, #40] ; 0x28
  3461. /* - continuous conversion mode */
  3462. /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */
  3463. /* HAL_ADC_Start_xxx functions because if set in this function, */
  3464. /* a conversion on injected group would start a conversion also on */
  3465. /* regular group after ADC enabling. */
  3466. tmp_cr2 |= (hadc->Init.DataAlign |
  3467. 8001d3c: 687b ldr r3, [r7, #4]
  3468. 8001d3e: 685a ldr r2, [r3, #4]
  3469. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  3470. 8001d40: 687b ldr r3, [r7, #4]
  3471. 8001d42: 69db ldr r3, [r3, #28]
  3472. tmp_cr2 |= (hadc->Init.DataAlign |
  3473. 8001d44: 431a orrs r2, r3
  3474. ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
  3475. 8001d46: 687b ldr r3, [r7, #4]
  3476. 8001d48: 7b1b ldrb r3, [r3, #12]
  3477. 8001d4a: 005b lsls r3, r3, #1
  3478. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  3479. 8001d4c: 4313 orrs r3, r2
  3480. tmp_cr2 |= (hadc->Init.DataAlign |
  3481. 8001d4e: 68ba ldr r2, [r7, #8]
  3482. 8001d50: 4313 orrs r3, r2
  3483. 8001d52: 60bb str r3, [r7, #8]
  3484. /* Configuration of ADC: */
  3485. /* - scan mode */
  3486. /* - discontinuous mode disable/enable */
  3487. /* - discontinuous mode number of conversions */
  3488. tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode));
  3489. 8001d54: 687b ldr r3, [r7, #4]
  3490. 8001d56: 689b ldr r3, [r3, #8]
  3491. 8001d58: f5b3 7f80 cmp.w r3, #256 ; 0x100
  3492. 8001d5c: d003 beq.n 8001d66 <HAL_ADC_Init+0xa2>
  3493. 8001d5e: 687b ldr r3, [r7, #4]
  3494. 8001d60: 689b ldr r3, [r3, #8]
  3495. 8001d62: 2b01 cmp r3, #1
  3496. 8001d64: d102 bne.n 8001d6c <HAL_ADC_Init+0xa8>
  3497. 8001d66: f44f 7380 mov.w r3, #256 ; 0x100
  3498. 8001d6a: e000 b.n 8001d6e <HAL_ADC_Init+0xaa>
  3499. 8001d6c: 2300 movs r3, #0
  3500. 8001d6e: 693a ldr r2, [r7, #16]
  3501. 8001d70: 4313 orrs r3, r2
  3502. 8001d72: 613b str r3, [r7, #16]
  3503. /* Enable discontinuous mode only if continuous mode is disabled */
  3504. /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
  3505. /* discontinuous is set anyway, but will have no effect on ADC HW. */
  3506. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  3507. 8001d74: 687b ldr r3, [r7, #4]
  3508. 8001d76: 7d1b ldrb r3, [r3, #20]
  3509. 8001d78: 2b01 cmp r3, #1
  3510. 8001d7a: d119 bne.n 8001db0 <HAL_ADC_Init+0xec>
  3511. {
  3512. if (hadc->Init.ContinuousConvMode == DISABLE)
  3513. 8001d7c: 687b ldr r3, [r7, #4]
  3514. 8001d7e: 7b1b ldrb r3, [r3, #12]
  3515. 8001d80: 2b00 cmp r3, #0
  3516. 8001d82: d109 bne.n 8001d98 <HAL_ADC_Init+0xd4>
  3517. {
  3518. /* Enable the selected ADC regular discontinuous mode */
  3519. /* Set the number of channels to be converted in discontinuous mode */
  3520. SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
  3521. 8001d84: 687b ldr r3, [r7, #4]
  3522. 8001d86: 699b ldr r3, [r3, #24]
  3523. 8001d88: 3b01 subs r3, #1
  3524. 8001d8a: 035a lsls r2, r3, #13
  3525. 8001d8c: 693b ldr r3, [r7, #16]
  3526. 8001d8e: 4313 orrs r3, r2
  3527. 8001d90: f443 6300 orr.w r3, r3, #2048 ; 0x800
  3528. 8001d94: 613b str r3, [r7, #16]
  3529. 8001d96: e00b b.n 8001db0 <HAL_ADC_Init+0xec>
  3530. {
  3531. /* ADC regular group settings continuous and sequencer discontinuous*/
  3532. /* cannot be enabled simultaneously. */
  3533. /* Update ADC state machine to error */
  3534. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  3535. 8001d98: 687b ldr r3, [r7, #4]
  3536. 8001d9a: 6a9b ldr r3, [r3, #40] ; 0x28
  3537. 8001d9c: f043 0220 orr.w r2, r3, #32
  3538. 8001da0: 687b ldr r3, [r7, #4]
  3539. 8001da2: 629a str r2, [r3, #40] ; 0x28
  3540. /* Set ADC error code to ADC IP internal error */
  3541. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  3542. 8001da4: 687b ldr r3, [r7, #4]
  3543. 8001da6: 6adb ldr r3, [r3, #44] ; 0x2c
  3544. 8001da8: f043 0201 orr.w r2, r3, #1
  3545. 8001dac: 687b ldr r3, [r7, #4]
  3546. 8001dae: 62da str r2, [r3, #44] ; 0x2c
  3547. }
  3548. }
  3549. /* Update ADC configuration register CR1 with previous settings */
  3550. MODIFY_REG(hadc->Instance->CR1,
  3551. 8001db0: 687b ldr r3, [r7, #4]
  3552. 8001db2: 681b ldr r3, [r3, #0]
  3553. 8001db4: 685b ldr r3, [r3, #4]
  3554. 8001db6: f423 4169 bic.w r1, r3, #59648 ; 0xe900
  3555. 8001dba: 687b ldr r3, [r7, #4]
  3556. 8001dbc: 681b ldr r3, [r3, #0]
  3557. 8001dbe: 693a ldr r2, [r7, #16]
  3558. 8001dc0: 430a orrs r2, r1
  3559. 8001dc2: 605a str r2, [r3, #4]
  3560. ADC_CR1_DISCEN |
  3561. ADC_CR1_DISCNUM ,
  3562. tmp_cr1 );
  3563. /* Update ADC configuration register CR2 with previous settings */
  3564. MODIFY_REG(hadc->Instance->CR2,
  3565. 8001dc4: 687b ldr r3, [r7, #4]
  3566. 8001dc6: 681b ldr r3, [r3, #0]
  3567. 8001dc8: 689a ldr r2, [r3, #8]
  3568. 8001dca: 4b28 ldr r3, [pc, #160] ; (8001e6c <HAL_ADC_Init+0x1a8>)
  3569. 8001dcc: 4013 ands r3, r2
  3570. 8001dce: 687a ldr r2, [r7, #4]
  3571. 8001dd0: 6812 ldr r2, [r2, #0]
  3572. 8001dd2: 68b9 ldr r1, [r7, #8]
  3573. 8001dd4: 430b orrs r3, r1
  3574. 8001dd6: 6093 str r3, [r2, #8]
  3575. /* Note: Scan mode is present by hardware on this device and, if */
  3576. /* disabled, discards automatically nb of conversions. Anyway, nb of */
  3577. /* conversions is forced to 0x00 for alignment over all STM32 devices. */
  3578. /* - if scan mode is enabled, regular channels sequence length is set to */
  3579. /* parameter "NbrOfConversion" */
  3580. if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
  3581. 8001dd8: 687b ldr r3, [r7, #4]
  3582. 8001dda: 689b ldr r3, [r3, #8]
  3583. 8001ddc: f5b3 7f80 cmp.w r3, #256 ; 0x100
  3584. 8001de0: d003 beq.n 8001dea <HAL_ADC_Init+0x126>
  3585. 8001de2: 687b ldr r3, [r7, #4]
  3586. 8001de4: 689b ldr r3, [r3, #8]
  3587. 8001de6: 2b01 cmp r3, #1
  3588. 8001de8: d104 bne.n 8001df4 <HAL_ADC_Init+0x130>
  3589. {
  3590. tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion);
  3591. 8001dea: 687b ldr r3, [r7, #4]
  3592. 8001dec: 691b ldr r3, [r3, #16]
  3593. 8001dee: 3b01 subs r3, #1
  3594. 8001df0: 051b lsls r3, r3, #20
  3595. 8001df2: 60fb str r3, [r7, #12]
  3596. }
  3597. MODIFY_REG(hadc->Instance->SQR1,
  3598. 8001df4: 687b ldr r3, [r7, #4]
  3599. 8001df6: 681b ldr r3, [r3, #0]
  3600. 8001df8: 6adb ldr r3, [r3, #44] ; 0x2c
  3601. 8001dfa: f423 0170 bic.w r1, r3, #15728640 ; 0xf00000
  3602. 8001dfe: 687b ldr r3, [r7, #4]
  3603. 8001e00: 681b ldr r3, [r3, #0]
  3604. 8001e02: 68fa ldr r2, [r7, #12]
  3605. 8001e04: 430a orrs r2, r1
  3606. 8001e06: 62da str r2, [r3, #44] ; 0x2c
  3607. /* ensure of no potential problem of ADC core IP clocking. */
  3608. /* Check through register CR2 (excluding bits set in other functions: */
  3609. /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */
  3610. /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */
  3611. /* measurement path bit (TSVREFE). */
  3612. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  3613. 8001e08: 687b ldr r3, [r7, #4]
  3614. 8001e0a: 681b ldr r3, [r3, #0]
  3615. 8001e0c: 689a ldr r2, [r3, #8]
  3616. 8001e0e: 4b18 ldr r3, [pc, #96] ; (8001e70 <HAL_ADC_Init+0x1ac>)
  3617. 8001e10: 4013 ands r3, r2
  3618. 8001e12: 68ba ldr r2, [r7, #8]
  3619. 8001e14: 429a cmp r2, r3
  3620. 8001e16: d10b bne.n 8001e30 <HAL_ADC_Init+0x16c>
  3621. ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL |
  3622. ADC_CR2_TSVREFE ))
  3623. == tmp_cr2)
  3624. {
  3625. /* Set ADC error code to none */
  3626. ADC_CLEAR_ERRORCODE(hadc);
  3627. 8001e18: 687b ldr r3, [r7, #4]
  3628. 8001e1a: 2200 movs r2, #0
  3629. 8001e1c: 62da str r2, [r3, #44] ; 0x2c
  3630. /* Set the ADC state */
  3631. ADC_STATE_CLR_SET(hadc->State,
  3632. 8001e1e: 687b ldr r3, [r7, #4]
  3633. 8001e20: 6a9b ldr r3, [r3, #40] ; 0x28
  3634. 8001e22: f023 0303 bic.w r3, r3, #3
  3635. 8001e26: f043 0201 orr.w r2, r3, #1
  3636. 8001e2a: 687b ldr r3, [r7, #4]
  3637. 8001e2c: 629a str r2, [r3, #40] ; 0x28
  3638. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  3639. 8001e2e: e018 b.n 8001e62 <HAL_ADC_Init+0x19e>
  3640. HAL_ADC_STATE_READY);
  3641. }
  3642. else
  3643. {
  3644. /* Update ADC state machine to error */
  3645. ADC_STATE_CLR_SET(hadc->State,
  3646. 8001e30: 687b ldr r3, [r7, #4]
  3647. 8001e32: 6a9b ldr r3, [r3, #40] ; 0x28
  3648. 8001e34: f023 0312 bic.w r3, r3, #18
  3649. 8001e38: f043 0210 orr.w r2, r3, #16
  3650. 8001e3c: 687b ldr r3, [r7, #4]
  3651. 8001e3e: 629a str r2, [r3, #40] ; 0x28
  3652. HAL_ADC_STATE_BUSY_INTERNAL,
  3653. HAL_ADC_STATE_ERROR_INTERNAL);
  3654. /* Set ADC error code to ADC IP internal error */
  3655. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  3656. 8001e40: 687b ldr r3, [r7, #4]
  3657. 8001e42: 6adb ldr r3, [r3, #44] ; 0x2c
  3658. 8001e44: f043 0201 orr.w r2, r3, #1
  3659. 8001e48: 687b ldr r3, [r7, #4]
  3660. 8001e4a: 62da str r2, [r3, #44] ; 0x2c
  3661. tmp_hal_status = HAL_ERROR;
  3662. 8001e4c: 2301 movs r3, #1
  3663. 8001e4e: 75fb strb r3, [r7, #23]
  3664. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  3665. 8001e50: e007 b.n 8001e62 <HAL_ADC_Init+0x19e>
  3666. }
  3667. else
  3668. {
  3669. /* Update ADC state machine to error */
  3670. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  3671. 8001e52: 687b ldr r3, [r7, #4]
  3672. 8001e54: 6a9b ldr r3, [r3, #40] ; 0x28
  3673. 8001e56: f043 0210 orr.w r2, r3, #16
  3674. 8001e5a: 687b ldr r3, [r7, #4]
  3675. 8001e5c: 629a str r2, [r3, #40] ; 0x28
  3676. tmp_hal_status = HAL_ERROR;
  3677. 8001e5e: 2301 movs r3, #1
  3678. 8001e60: 75fb strb r3, [r7, #23]
  3679. }
  3680. /* Return function status */
  3681. return tmp_hal_status;
  3682. 8001e62: 7dfb ldrb r3, [r7, #23]
  3683. }
  3684. 8001e64: 4618 mov r0, r3
  3685. 8001e66: 3718 adds r7, #24
  3686. 8001e68: 46bd mov sp, r7
  3687. 8001e6a: bd80 pop {r7, pc}
  3688. 8001e6c: ffe1f7fd .word 0xffe1f7fd
  3689. 8001e70: ff1f0efe .word 0xff1f0efe
  3690. 08001e74 <HAL_ADC_Start_DMA>:
  3691. * @param pData: The destination Buffer address.
  3692. * @param Length: The length of data to be transferred from ADC peripheral to memory.
  3693. * @retval None
  3694. */
  3695. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
  3696. {
  3697. 8001e74: b580 push {r7, lr}
  3698. 8001e76: b086 sub sp, #24
  3699. 8001e78: af00 add r7, sp, #0
  3700. 8001e7a: 60f8 str r0, [r7, #12]
  3701. 8001e7c: 60b9 str r1, [r7, #8]
  3702. 8001e7e: 607a str r2, [r7, #4]
  3703. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3704. 8001e80: 2300 movs r3, #0
  3705. 8001e82: 75fb strb r3, [r7, #23]
  3706. /* If multimode is enabled, dedicated function multimode conversion */
  3707. /* start DMA must be used. */
  3708. if(ADC_MULTIMODE_IS_ENABLE(hadc) == RESET)
  3709. {
  3710. /* Process locked */
  3711. __HAL_LOCK(hadc);
  3712. 8001e84: 68fb ldr r3, [r7, #12]
  3713. 8001e86: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  3714. 8001e8a: 2b01 cmp r3, #1
  3715. 8001e8c: d101 bne.n 8001e92 <HAL_ADC_Start_DMA+0x1e>
  3716. 8001e8e: 2302 movs r3, #2
  3717. 8001e90: e080 b.n 8001f94 <HAL_ADC_Start_DMA+0x120>
  3718. 8001e92: 68fb ldr r3, [r7, #12]
  3719. 8001e94: 2201 movs r2, #1
  3720. 8001e96: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3721. /* Enable the ADC peripheral */
  3722. tmp_hal_status = ADC_Enable(hadc);
  3723. 8001e9a: 68f8 ldr r0, [r7, #12]
  3724. 8001e9c: f000 fa5a bl 8002354 <ADC_Enable>
  3725. 8001ea0: 4603 mov r3, r0
  3726. 8001ea2: 75fb strb r3, [r7, #23]
  3727. /* Start conversion if ADC is effectively enabled */
  3728. if (tmp_hal_status == HAL_OK)
  3729. 8001ea4: 7dfb ldrb r3, [r7, #23]
  3730. 8001ea6: 2b00 cmp r3, #0
  3731. 8001ea8: d16f bne.n 8001f8a <HAL_ADC_Start_DMA+0x116>
  3732. {
  3733. /* Set ADC state */
  3734. /* - Clear state bitfield related to regular group conversion results */
  3735. /* - Set state bitfield related to regular operation */
  3736. ADC_STATE_CLR_SET(hadc->State,
  3737. 8001eaa: 68fb ldr r3, [r7, #12]
  3738. 8001eac: 6a9b ldr r3, [r3, #40] ; 0x28
  3739. 8001eae: f423 6370 bic.w r3, r3, #3840 ; 0xf00
  3740. 8001eb2: f023 0301 bic.w r3, r3, #1
  3741. 8001eb6: f443 7280 orr.w r2, r3, #256 ; 0x100
  3742. 8001eba: 68fb ldr r3, [r7, #12]
  3743. 8001ebc: 629a str r2, [r3, #40] ; 0x28
  3744. /* for all cases of multimode: independent mode, multimode ADC master */
  3745. /* or multimode ADC slave (for devices with several ADCs): */
  3746. if (ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc))
  3747. {
  3748. /* Set ADC state (ADC independent or master) */
  3749. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  3750. 8001ebe: 68fb ldr r3, [r7, #12]
  3751. 8001ec0: 6a9b ldr r3, [r3, #40] ; 0x28
  3752. 8001ec2: f423 1280 bic.w r2, r3, #1048576 ; 0x100000
  3753. 8001ec6: 68fb ldr r3, [r7, #12]
  3754. 8001ec8: 629a str r2, [r3, #40] ; 0x28
  3755. /* If conversions on group regular are also triggering group injected, */
  3756. /* update ADC state. */
  3757. if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
  3758. 8001eca: 68fb ldr r3, [r7, #12]
  3759. 8001ecc: 681b ldr r3, [r3, #0]
  3760. 8001ece: 685b ldr r3, [r3, #4]
  3761. 8001ed0: f403 6380 and.w r3, r3, #1024 ; 0x400
  3762. 8001ed4: 2b00 cmp r3, #0
  3763. 8001ed6: d007 beq.n 8001ee8 <HAL_ADC_Start_DMA+0x74>
  3764. {
  3765. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  3766. 8001ed8: 68fb ldr r3, [r7, #12]
  3767. 8001eda: 6a9b ldr r3, [r3, #40] ; 0x28
  3768. 8001edc: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  3769. 8001ee0: f443 5280 orr.w r2, r3, #4096 ; 0x1000
  3770. 8001ee4: 68fb ldr r3, [r7, #12]
  3771. 8001ee6: 629a str r2, [r3, #40] ; 0x28
  3772. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  3773. }
  3774. }
  3775. /* State machine update: Check if an injected conversion is ongoing */
  3776. if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  3777. 8001ee8: 68fb ldr r3, [r7, #12]
  3778. 8001eea: 6a9b ldr r3, [r3, #40] ; 0x28
  3779. 8001eec: f403 5380 and.w r3, r3, #4096 ; 0x1000
  3780. 8001ef0: 2b00 cmp r3, #0
  3781. 8001ef2: d006 beq.n 8001f02 <HAL_ADC_Start_DMA+0x8e>
  3782. {
  3783. /* Reset ADC error code fields related to conversions on group regular */
  3784. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  3785. 8001ef4: 68fb ldr r3, [r7, #12]
  3786. 8001ef6: 6adb ldr r3, [r3, #44] ; 0x2c
  3787. 8001ef8: f023 0206 bic.w r2, r3, #6
  3788. 8001efc: 68fb ldr r3, [r7, #12]
  3789. 8001efe: 62da str r2, [r3, #44] ; 0x2c
  3790. 8001f00: e002 b.n 8001f08 <HAL_ADC_Start_DMA+0x94>
  3791. }
  3792. else
  3793. {
  3794. /* Reset ADC all error code fields */
  3795. ADC_CLEAR_ERRORCODE(hadc);
  3796. 8001f02: 68fb ldr r3, [r7, #12]
  3797. 8001f04: 2200 movs r2, #0
  3798. 8001f06: 62da str r2, [r3, #44] ; 0x2c
  3799. }
  3800. /* Process unlocked */
  3801. /* Unlock before starting ADC conversions: in case of potential */
  3802. /* interruption, to let the process to ADC IRQ Handler. */
  3803. __HAL_UNLOCK(hadc);
  3804. 8001f08: 68fb ldr r3, [r7, #12]
  3805. 8001f0a: 2200 movs r2, #0
  3806. 8001f0c: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3807. /* Set the DMA transfer complete callback */
  3808. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  3809. 8001f10: 68fb ldr r3, [r7, #12]
  3810. 8001f12: 6a1b ldr r3, [r3, #32]
  3811. 8001f14: 4a21 ldr r2, [pc, #132] ; (8001f9c <HAL_ADC_Start_DMA+0x128>)
  3812. 8001f16: 629a str r2, [r3, #40] ; 0x28
  3813. /* Set the DMA half transfer complete callback */
  3814. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  3815. 8001f18: 68fb ldr r3, [r7, #12]
  3816. 8001f1a: 6a1b ldr r3, [r3, #32]
  3817. 8001f1c: 4a20 ldr r2, [pc, #128] ; (8001fa0 <HAL_ADC_Start_DMA+0x12c>)
  3818. 8001f1e: 62da str r2, [r3, #44] ; 0x2c
  3819. /* Set the DMA error callback */
  3820. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  3821. 8001f20: 68fb ldr r3, [r7, #12]
  3822. 8001f22: 6a1b ldr r3, [r3, #32]
  3823. 8001f24: 4a1f ldr r2, [pc, #124] ; (8001fa4 <HAL_ADC_Start_DMA+0x130>)
  3824. 8001f26: 631a str r2, [r3, #48] ; 0x30
  3825. /* start (in case of SW start): */
  3826. /* Clear regular group conversion flag and overrun flag */
  3827. /* (To ensure of no unknown state from potential previous ADC */
  3828. /* operations) */
  3829. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC);
  3830. 8001f28: 68fb ldr r3, [r7, #12]
  3831. 8001f2a: 681b ldr r3, [r3, #0]
  3832. 8001f2c: f06f 0202 mvn.w r2, #2
  3833. 8001f30: 601a str r2, [r3, #0]
  3834. /* Enable ADC DMA mode */
  3835. SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA);
  3836. 8001f32: 68fb ldr r3, [r7, #12]
  3837. 8001f34: 681b ldr r3, [r3, #0]
  3838. 8001f36: 689a ldr r2, [r3, #8]
  3839. 8001f38: 68fb ldr r3, [r7, #12]
  3840. 8001f3a: 681b ldr r3, [r3, #0]
  3841. 8001f3c: f442 7280 orr.w r2, r2, #256 ; 0x100
  3842. 8001f40: 609a str r2, [r3, #8]
  3843. /* Start the DMA channel */
  3844. HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  3845. 8001f42: 68fb ldr r3, [r7, #12]
  3846. 8001f44: 6a18 ldr r0, [r3, #32]
  3847. 8001f46: 68fb ldr r3, [r7, #12]
  3848. 8001f48: 681b ldr r3, [r3, #0]
  3849. 8001f4a: 334c adds r3, #76 ; 0x4c
  3850. 8001f4c: 4619 mov r1, r3
  3851. 8001f4e: 68ba ldr r2, [r7, #8]
  3852. 8001f50: 687b ldr r3, [r7, #4]
  3853. 8001f52: f000 fcd1 bl 80028f8 <HAL_DMA_Start_IT>
  3854. /* Enable conversion of regular group. */
  3855. /* If software start has been selected, conversion starts immediately. */
  3856. /* If external trigger has been selected, conversion will start at next */
  3857. /* trigger event. */
  3858. if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
  3859. 8001f56: 68fb ldr r3, [r7, #12]
  3860. 8001f58: 681b ldr r3, [r3, #0]
  3861. 8001f5a: 689b ldr r3, [r3, #8]
  3862. 8001f5c: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  3863. 8001f60: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  3864. 8001f64: d108 bne.n 8001f78 <HAL_ADC_Start_DMA+0x104>
  3865. {
  3866. /* Start ADC conversion on regular group with SW start */
  3867. SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG));
  3868. 8001f66: 68fb ldr r3, [r7, #12]
  3869. 8001f68: 681b ldr r3, [r3, #0]
  3870. 8001f6a: 689a ldr r2, [r3, #8]
  3871. 8001f6c: 68fb ldr r3, [r7, #12]
  3872. 8001f6e: 681b ldr r3, [r3, #0]
  3873. 8001f70: f442 02a0 orr.w r2, r2, #5242880 ; 0x500000
  3874. 8001f74: 609a str r2, [r3, #8]
  3875. 8001f76: e00c b.n 8001f92 <HAL_ADC_Start_DMA+0x11e>
  3876. }
  3877. else
  3878. {
  3879. /* Start ADC conversion on regular group with external trigger */
  3880. SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG);
  3881. 8001f78: 68fb ldr r3, [r7, #12]
  3882. 8001f7a: 681b ldr r3, [r3, #0]
  3883. 8001f7c: 689a ldr r2, [r3, #8]
  3884. 8001f7e: 68fb ldr r3, [r7, #12]
  3885. 8001f80: 681b ldr r3, [r3, #0]
  3886. 8001f82: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  3887. 8001f86: 609a str r2, [r3, #8]
  3888. 8001f88: e003 b.n 8001f92 <HAL_ADC_Start_DMA+0x11e>
  3889. }
  3890. }
  3891. else
  3892. {
  3893. /* Process unlocked */
  3894. __HAL_UNLOCK(hadc);
  3895. 8001f8a: 68fb ldr r3, [r7, #12]
  3896. 8001f8c: 2200 movs r2, #0
  3897. 8001f8e: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3898. {
  3899. tmp_hal_status = HAL_ERROR;
  3900. }
  3901. /* Return function status */
  3902. return tmp_hal_status;
  3903. 8001f92: 7dfb ldrb r3, [r7, #23]
  3904. }
  3905. 8001f94: 4618 mov r0, r3
  3906. 8001f96: 3718 adds r7, #24
  3907. 8001f98: 46bd mov sp, r7
  3908. 8001f9a: bd80 pop {r7, pc}
  3909. 8001f9c: 0800246d .word 0x0800246d
  3910. 8001fa0: 080024e9 .word 0x080024e9
  3911. 8001fa4: 08002505 .word 0x08002505
  3912. 08001fa8 <HAL_ADC_IRQHandler>:
  3913. * @brief Handles ADC interrupt request
  3914. * @param hadc: ADC handle
  3915. * @retval None
  3916. */
  3917. void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc)
  3918. {
  3919. 8001fa8: b580 push {r7, lr}
  3920. 8001faa: b082 sub sp, #8
  3921. 8001fac: af00 add r7, sp, #0
  3922. 8001fae: 6078 str r0, [r7, #4]
  3923. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  3924. assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion));
  3925. /* ========== Check End of Conversion flag for regular group ========== */
  3926. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOC))
  3927. 8001fb0: 687b ldr r3, [r7, #4]
  3928. 8001fb2: 681b ldr r3, [r3, #0]
  3929. 8001fb4: 685b ldr r3, [r3, #4]
  3930. 8001fb6: f003 0320 and.w r3, r3, #32
  3931. 8001fba: 2b20 cmp r3, #32
  3932. 8001fbc: d140 bne.n 8002040 <HAL_ADC_IRQHandler+0x98>
  3933. {
  3934. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC) )
  3935. 8001fbe: 687b ldr r3, [r7, #4]
  3936. 8001fc0: 681b ldr r3, [r3, #0]
  3937. 8001fc2: 681b ldr r3, [r3, #0]
  3938. 8001fc4: f003 0302 and.w r3, r3, #2
  3939. 8001fc8: 2b02 cmp r3, #2
  3940. 8001fca: d139 bne.n 8002040 <HAL_ADC_IRQHandler+0x98>
  3941. {
  3942. /* Update state machine on conversion status if not in error state */
  3943. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  3944. 8001fcc: 687b ldr r3, [r7, #4]
  3945. 8001fce: 6a9b ldr r3, [r3, #40] ; 0x28
  3946. 8001fd0: f003 0310 and.w r3, r3, #16
  3947. 8001fd4: 2b00 cmp r3, #0
  3948. 8001fd6: d105 bne.n 8001fe4 <HAL_ADC_IRQHandler+0x3c>
  3949. {
  3950. /* Set ADC state */
  3951. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  3952. 8001fd8: 687b ldr r3, [r7, #4]
  3953. 8001fda: 6a9b ldr r3, [r3, #40] ; 0x28
  3954. 8001fdc: f443 7200 orr.w r2, r3, #512 ; 0x200
  3955. 8001fe0: 687b ldr r3, [r7, #4]
  3956. 8001fe2: 629a str r2, [r3, #40] ; 0x28
  3957. /* Determine whether any further conversion upcoming on group regular */
  3958. /* by external trigger, continuous mode or scan sequence on going. */
  3959. /* Note: On STM32F1 devices, in case of sequencer enabled */
  3960. /* (several ranks selected), end of conversion flag is raised */
  3961. /* at the end of the sequence. */
  3962. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3963. 8001fe4: 687b ldr r3, [r7, #4]
  3964. 8001fe6: 681b ldr r3, [r3, #0]
  3965. 8001fe8: 689b ldr r3, [r3, #8]
  3966. 8001fea: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  3967. 8001fee: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  3968. 8001ff2: d11d bne.n 8002030 <HAL_ADC_IRQHandler+0x88>
  3969. (hadc->Init.ContinuousConvMode == DISABLE) )
  3970. 8001ff4: 687b ldr r3, [r7, #4]
  3971. 8001ff6: 7b1b ldrb r3, [r3, #12]
  3972. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  3973. 8001ff8: 2b00 cmp r3, #0
  3974. 8001ffa: d119 bne.n 8002030 <HAL_ADC_IRQHandler+0x88>
  3975. {
  3976. /* Disable ADC end of conversion interrupt on group regular */
  3977. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
  3978. 8001ffc: 687b ldr r3, [r7, #4]
  3979. 8001ffe: 681b ldr r3, [r3, #0]
  3980. 8002000: 685a ldr r2, [r3, #4]
  3981. 8002002: 687b ldr r3, [r7, #4]
  3982. 8002004: 681b ldr r3, [r3, #0]
  3983. 8002006: f022 0220 bic.w r2, r2, #32
  3984. 800200a: 605a str r2, [r3, #4]
  3985. /* Set ADC state */
  3986. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  3987. 800200c: 687b ldr r3, [r7, #4]
  3988. 800200e: 6a9b ldr r3, [r3, #40] ; 0x28
  3989. 8002010: f423 7280 bic.w r2, r3, #256 ; 0x100
  3990. 8002014: 687b ldr r3, [r7, #4]
  3991. 8002016: 629a str r2, [r3, #40] ; 0x28
  3992. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  3993. 8002018: 687b ldr r3, [r7, #4]
  3994. 800201a: 6a9b ldr r3, [r3, #40] ; 0x28
  3995. 800201c: f403 5380 and.w r3, r3, #4096 ; 0x1000
  3996. 8002020: 2b00 cmp r3, #0
  3997. 8002022: d105 bne.n 8002030 <HAL_ADC_IRQHandler+0x88>
  3998. {
  3999. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4000. 8002024: 687b ldr r3, [r7, #4]
  4001. 8002026: 6a9b ldr r3, [r3, #40] ; 0x28
  4002. 8002028: f043 0201 orr.w r2, r3, #1
  4003. 800202c: 687b ldr r3, [r7, #4]
  4004. 800202e: 629a str r2, [r3, #40] ; 0x28
  4005. /* Conversion complete callback */
  4006. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4007. hadc->ConvCpltCallback(hadc);
  4008. #else
  4009. HAL_ADC_ConvCpltCallback(hadc);
  4010. 8002030: 6878 ldr r0, [r7, #4]
  4011. 8002032: f7ff faab bl 800158c <HAL_ADC_ConvCpltCallback>
  4012. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4013. /* Clear regular group conversion flag */
  4014. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC);
  4015. 8002036: 687b ldr r3, [r7, #4]
  4016. 8002038: 681b ldr r3, [r3, #0]
  4017. 800203a: f06f 0212 mvn.w r2, #18
  4018. 800203e: 601a str r2, [r3, #0]
  4019. }
  4020. }
  4021. /* ========== Check End of Conversion flag for injected group ========== */
  4022. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_JEOC))
  4023. 8002040: 687b ldr r3, [r7, #4]
  4024. 8002042: 681b ldr r3, [r3, #0]
  4025. 8002044: 685b ldr r3, [r3, #4]
  4026. 8002046: f003 0380 and.w r3, r3, #128 ; 0x80
  4027. 800204a: 2b80 cmp r3, #128 ; 0x80
  4028. 800204c: d14f bne.n 80020ee <HAL_ADC_IRQHandler+0x146>
  4029. {
  4030. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC))
  4031. 800204e: 687b ldr r3, [r7, #4]
  4032. 8002050: 681b ldr r3, [r3, #0]
  4033. 8002052: 681b ldr r3, [r3, #0]
  4034. 8002054: f003 0304 and.w r3, r3, #4
  4035. 8002058: 2b04 cmp r3, #4
  4036. 800205a: d148 bne.n 80020ee <HAL_ADC_IRQHandler+0x146>
  4037. {
  4038. /* Update state machine on conversion status if not in error state */
  4039. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  4040. 800205c: 687b ldr r3, [r7, #4]
  4041. 800205e: 6a9b ldr r3, [r3, #40] ; 0x28
  4042. 8002060: f003 0310 and.w r3, r3, #16
  4043. 8002064: 2b00 cmp r3, #0
  4044. 8002066: d105 bne.n 8002074 <HAL_ADC_IRQHandler+0xcc>
  4045. {
  4046. /* Set ADC state */
  4047. SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC);
  4048. 8002068: 687b ldr r3, [r7, #4]
  4049. 800206a: 6a9b ldr r3, [r3, #40] ; 0x28
  4050. 800206c: f443 5200 orr.w r2, r3, #8192 ; 0x2000
  4051. 8002070: 687b ldr r3, [r7, #4]
  4052. 8002072: 629a str r2, [r3, #40] ; 0x28
  4053. /* conversion from group regular (same conditions as group regular */
  4054. /* interruption disabling above). */
  4055. /* Note: On STM32F1 devices, in case of sequencer enabled */
  4056. /* (several ranks selected), end of conversion flag is raised */
  4057. /* at the end of the sequence. */
  4058. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  4059. 8002074: 687b ldr r3, [r7, #4]
  4060. 8002076: 681b ldr r3, [r3, #0]
  4061. 8002078: 689b ldr r3, [r3, #8]
  4062. 800207a: f403 43e0 and.w r3, r3, #28672 ; 0x7000
  4063. 800207e: f5b3 4fe0 cmp.w r3, #28672 ; 0x7000
  4064. 8002082: d012 beq.n 80020aa <HAL_ADC_IRQHandler+0x102>
  4065. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  4066. 8002084: 687b ldr r3, [r7, #4]
  4067. 8002086: 681b ldr r3, [r3, #0]
  4068. 8002088: 685b ldr r3, [r3, #4]
  4069. 800208a: f403 6380 and.w r3, r3, #1024 ; 0x400
  4070. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  4071. 800208e: 2b00 cmp r3, #0
  4072. 8002090: d125 bne.n 80020de <HAL_ADC_IRQHandler+0x136>
  4073. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4074. 8002092: 687b ldr r3, [r7, #4]
  4075. 8002094: 681b ldr r3, [r3, #0]
  4076. 8002096: 689b ldr r3, [r3, #8]
  4077. 8002098: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4078. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  4079. 800209c: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4080. 80020a0: d11d bne.n 80020de <HAL_ADC_IRQHandler+0x136>
  4081. (hadc->Init.ContinuousConvMode == DISABLE) ) ) )
  4082. 80020a2: 687b ldr r3, [r7, #4]
  4083. 80020a4: 7b1b ldrb r3, [r3, #12]
  4084. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4085. 80020a6: 2b00 cmp r3, #0
  4086. 80020a8: d119 bne.n 80020de <HAL_ADC_IRQHandler+0x136>
  4087. {
  4088. /* Disable ADC end of conversion interrupt on group injected */
  4089. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC);
  4090. 80020aa: 687b ldr r3, [r7, #4]
  4091. 80020ac: 681b ldr r3, [r3, #0]
  4092. 80020ae: 685a ldr r2, [r3, #4]
  4093. 80020b0: 687b ldr r3, [r7, #4]
  4094. 80020b2: 681b ldr r3, [r3, #0]
  4095. 80020b4: f022 0280 bic.w r2, r2, #128 ; 0x80
  4096. 80020b8: 605a str r2, [r3, #4]
  4097. /* Set ADC state */
  4098. CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY);
  4099. 80020ba: 687b ldr r3, [r7, #4]
  4100. 80020bc: 6a9b ldr r3, [r3, #40] ; 0x28
  4101. 80020be: f423 5280 bic.w r2, r3, #4096 ; 0x1000
  4102. 80020c2: 687b ldr r3, [r7, #4]
  4103. 80020c4: 629a str r2, [r3, #40] ; 0x28
  4104. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY))
  4105. 80020c6: 687b ldr r3, [r7, #4]
  4106. 80020c8: 6a9b ldr r3, [r3, #40] ; 0x28
  4107. 80020ca: f403 7380 and.w r3, r3, #256 ; 0x100
  4108. 80020ce: 2b00 cmp r3, #0
  4109. 80020d0: d105 bne.n 80020de <HAL_ADC_IRQHandler+0x136>
  4110. {
  4111. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4112. 80020d2: 687b ldr r3, [r7, #4]
  4113. 80020d4: 6a9b ldr r3, [r3, #40] ; 0x28
  4114. 80020d6: f043 0201 orr.w r2, r3, #1
  4115. 80020da: 687b ldr r3, [r7, #4]
  4116. 80020dc: 629a str r2, [r3, #40] ; 0x28
  4117. /* Conversion complete callback */
  4118. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4119. hadc->InjectedConvCpltCallback(hadc);
  4120. #else
  4121. HAL_ADCEx_InjectedConvCpltCallback(hadc);
  4122. 80020de: 6878 ldr r0, [r7, #4]
  4123. 80020e0: f000 fac6 bl 8002670 <HAL_ADCEx_InjectedConvCpltCallback>
  4124. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4125. /* Clear injected group conversion flag */
  4126. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC));
  4127. 80020e4: 687b ldr r3, [r7, #4]
  4128. 80020e6: 681b ldr r3, [r3, #0]
  4129. 80020e8: f06f 020c mvn.w r2, #12
  4130. 80020ec: 601a str r2, [r3, #0]
  4131. }
  4132. }
  4133. /* ========== Check Analog watchdog flags ========== */
  4134. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_AWD))
  4135. 80020ee: 687b ldr r3, [r7, #4]
  4136. 80020f0: 681b ldr r3, [r3, #0]
  4137. 80020f2: 685b ldr r3, [r3, #4]
  4138. 80020f4: f003 0340 and.w r3, r3, #64 ; 0x40
  4139. 80020f8: 2b40 cmp r3, #64 ; 0x40
  4140. 80020fa: d114 bne.n 8002126 <HAL_ADC_IRQHandler+0x17e>
  4141. {
  4142. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD))
  4143. 80020fc: 687b ldr r3, [r7, #4]
  4144. 80020fe: 681b ldr r3, [r3, #0]
  4145. 8002100: 681b ldr r3, [r3, #0]
  4146. 8002102: f003 0301 and.w r3, r3, #1
  4147. 8002106: 2b01 cmp r3, #1
  4148. 8002108: d10d bne.n 8002126 <HAL_ADC_IRQHandler+0x17e>
  4149. {
  4150. /* Set ADC state */
  4151. SET_BIT(hadc->State, HAL_ADC_STATE_AWD1);
  4152. 800210a: 687b ldr r3, [r7, #4]
  4153. 800210c: 6a9b ldr r3, [r3, #40] ; 0x28
  4154. 800210e: f443 3280 orr.w r2, r3, #65536 ; 0x10000
  4155. 8002112: 687b ldr r3, [r7, #4]
  4156. 8002114: 629a str r2, [r3, #40] ; 0x28
  4157. /* Level out of window callback */
  4158. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4159. hadc->LevelOutOfWindowCallback(hadc);
  4160. #else
  4161. HAL_ADC_LevelOutOfWindowCallback(hadc);
  4162. 8002116: 6878 ldr r0, [r7, #4]
  4163. 8002118: f000 f812 bl 8002140 <HAL_ADC_LevelOutOfWindowCallback>
  4164. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4165. /* Clear the ADC analog watchdog flag */
  4166. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD);
  4167. 800211c: 687b ldr r3, [r7, #4]
  4168. 800211e: 681b ldr r3, [r3, #0]
  4169. 8002120: f06f 0201 mvn.w r2, #1
  4170. 8002124: 601a str r2, [r3, #0]
  4171. }
  4172. }
  4173. }
  4174. 8002126: bf00 nop
  4175. 8002128: 3708 adds r7, #8
  4176. 800212a: 46bd mov sp, r7
  4177. 800212c: bd80 pop {r7, pc}
  4178. 0800212e <HAL_ADC_ConvHalfCpltCallback>:
  4179. * @brief Conversion DMA half-transfer callback in non blocking mode
  4180. * @param hadc: ADC handle
  4181. * @retval None
  4182. */
  4183. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
  4184. {
  4185. 800212e: b480 push {r7}
  4186. 8002130: b083 sub sp, #12
  4187. 8002132: af00 add r7, sp, #0
  4188. 8002134: 6078 str r0, [r7, #4]
  4189. /* Prevent unused argument(s) compilation warning */
  4190. UNUSED(hadc);
  4191. /* NOTE : This function should not be modified. When the callback is needed,
  4192. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  4193. */
  4194. }
  4195. 8002136: bf00 nop
  4196. 8002138: 370c adds r7, #12
  4197. 800213a: 46bd mov sp, r7
  4198. 800213c: bc80 pop {r7}
  4199. 800213e: 4770 bx lr
  4200. 08002140 <HAL_ADC_LevelOutOfWindowCallback>:
  4201. * @brief Analog watchdog callback in non blocking mode.
  4202. * @param hadc: ADC handle
  4203. * @retval None
  4204. */
  4205. __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc)
  4206. {
  4207. 8002140: b480 push {r7}
  4208. 8002142: b083 sub sp, #12
  4209. 8002144: af00 add r7, sp, #0
  4210. 8002146: 6078 str r0, [r7, #4]
  4211. /* Prevent unused argument(s) compilation warning */
  4212. UNUSED(hadc);
  4213. /* NOTE : This function should not be modified. When the callback is needed,
  4214. function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file.
  4215. */
  4216. }
  4217. 8002148: bf00 nop
  4218. 800214a: 370c adds r7, #12
  4219. 800214c: 46bd mov sp, r7
  4220. 800214e: bc80 pop {r7}
  4221. 8002150: 4770 bx lr
  4222. 08002152 <HAL_ADC_ErrorCallback>:
  4223. * (ADC conversion with interruption or transfer by DMA)
  4224. * @param hadc: ADC handle
  4225. * @retval None
  4226. */
  4227. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  4228. {
  4229. 8002152: b480 push {r7}
  4230. 8002154: b083 sub sp, #12
  4231. 8002156: af00 add r7, sp, #0
  4232. 8002158: 6078 str r0, [r7, #4]
  4233. /* Prevent unused argument(s) compilation warning */
  4234. UNUSED(hadc);
  4235. /* NOTE : This function should not be modified. When the callback is needed,
  4236. function HAL_ADC_ErrorCallback must be implemented in the user file.
  4237. */
  4238. }
  4239. 800215a: bf00 nop
  4240. 800215c: 370c adds r7, #12
  4241. 800215e: 46bd mov sp, r7
  4242. 8002160: bc80 pop {r7}
  4243. 8002162: 4770 bx lr
  4244. 08002164 <HAL_ADC_ConfigChannel>:
  4245. * @param hadc: ADC handle
  4246. * @param sConfig: Structure of ADC channel for regular group.
  4247. * @retval HAL status
  4248. */
  4249. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
  4250. {
  4251. 8002164: b480 push {r7}
  4252. 8002166: b085 sub sp, #20
  4253. 8002168: af00 add r7, sp, #0
  4254. 800216a: 6078 str r0, [r7, #4]
  4255. 800216c: 6039 str r1, [r7, #0]
  4256. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4257. 800216e: 2300 movs r3, #0
  4258. 8002170: 73fb strb r3, [r7, #15]
  4259. __IO uint32_t wait_loop_index = 0U;
  4260. 8002172: 2300 movs r3, #0
  4261. 8002174: 60bb str r3, [r7, #8]
  4262. assert_param(IS_ADC_CHANNEL(sConfig->Channel));
  4263. assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
  4264. assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
  4265. /* Process locked */
  4266. __HAL_LOCK(hadc);
  4267. 8002176: 687b ldr r3, [r7, #4]
  4268. 8002178: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  4269. 800217c: 2b01 cmp r3, #1
  4270. 800217e: d101 bne.n 8002184 <HAL_ADC_ConfigChannel+0x20>
  4271. 8002180: 2302 movs r3, #2
  4272. 8002182: e0dc b.n 800233e <HAL_ADC_ConfigChannel+0x1da>
  4273. 8002184: 687b ldr r3, [r7, #4]
  4274. 8002186: 2201 movs r2, #1
  4275. 8002188: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4276. /* Regular sequence configuration */
  4277. /* For Rank 1 to 6 */
  4278. if (sConfig->Rank < 7U)
  4279. 800218c: 683b ldr r3, [r7, #0]
  4280. 800218e: 685b ldr r3, [r3, #4]
  4281. 8002190: 2b06 cmp r3, #6
  4282. 8002192: d81c bhi.n 80021ce <HAL_ADC_ConfigChannel+0x6a>
  4283. {
  4284. MODIFY_REG(hadc->Instance->SQR3 ,
  4285. 8002194: 687b ldr r3, [r7, #4]
  4286. 8002196: 681b ldr r3, [r3, #0]
  4287. 8002198: 6b59 ldr r1, [r3, #52] ; 0x34
  4288. 800219a: 683b ldr r3, [r7, #0]
  4289. 800219c: 685a ldr r2, [r3, #4]
  4290. 800219e: 4613 mov r3, r2
  4291. 80021a0: 009b lsls r3, r3, #2
  4292. 80021a2: 4413 add r3, r2
  4293. 80021a4: 3b05 subs r3, #5
  4294. 80021a6: 221f movs r2, #31
  4295. 80021a8: fa02 f303 lsl.w r3, r2, r3
  4296. 80021ac: 43db mvns r3, r3
  4297. 80021ae: 4019 ands r1, r3
  4298. 80021b0: 683b ldr r3, [r7, #0]
  4299. 80021b2: 6818 ldr r0, [r3, #0]
  4300. 80021b4: 683b ldr r3, [r7, #0]
  4301. 80021b6: 685a ldr r2, [r3, #4]
  4302. 80021b8: 4613 mov r3, r2
  4303. 80021ba: 009b lsls r3, r3, #2
  4304. 80021bc: 4413 add r3, r2
  4305. 80021be: 3b05 subs r3, #5
  4306. 80021c0: fa00 f203 lsl.w r2, r0, r3
  4307. 80021c4: 687b ldr r3, [r7, #4]
  4308. 80021c6: 681b ldr r3, [r3, #0]
  4309. 80021c8: 430a orrs r2, r1
  4310. 80021ca: 635a str r2, [r3, #52] ; 0x34
  4311. 80021cc: e03c b.n 8002248 <HAL_ADC_ConfigChannel+0xe4>
  4312. ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) ,
  4313. ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
  4314. }
  4315. /* For Rank 7 to 12 */
  4316. else if (sConfig->Rank < 13U)
  4317. 80021ce: 683b ldr r3, [r7, #0]
  4318. 80021d0: 685b ldr r3, [r3, #4]
  4319. 80021d2: 2b0c cmp r3, #12
  4320. 80021d4: d81c bhi.n 8002210 <HAL_ADC_ConfigChannel+0xac>
  4321. {
  4322. MODIFY_REG(hadc->Instance->SQR2 ,
  4323. 80021d6: 687b ldr r3, [r7, #4]
  4324. 80021d8: 681b ldr r3, [r3, #0]
  4325. 80021da: 6b19 ldr r1, [r3, #48] ; 0x30
  4326. 80021dc: 683b ldr r3, [r7, #0]
  4327. 80021de: 685a ldr r2, [r3, #4]
  4328. 80021e0: 4613 mov r3, r2
  4329. 80021e2: 009b lsls r3, r3, #2
  4330. 80021e4: 4413 add r3, r2
  4331. 80021e6: 3b23 subs r3, #35 ; 0x23
  4332. 80021e8: 221f movs r2, #31
  4333. 80021ea: fa02 f303 lsl.w r3, r2, r3
  4334. 80021ee: 43db mvns r3, r3
  4335. 80021f0: 4019 ands r1, r3
  4336. 80021f2: 683b ldr r3, [r7, #0]
  4337. 80021f4: 6818 ldr r0, [r3, #0]
  4338. 80021f6: 683b ldr r3, [r7, #0]
  4339. 80021f8: 685a ldr r2, [r3, #4]
  4340. 80021fa: 4613 mov r3, r2
  4341. 80021fc: 009b lsls r3, r3, #2
  4342. 80021fe: 4413 add r3, r2
  4343. 8002200: 3b23 subs r3, #35 ; 0x23
  4344. 8002202: fa00 f203 lsl.w r2, r0, r3
  4345. 8002206: 687b ldr r3, [r7, #4]
  4346. 8002208: 681b ldr r3, [r3, #0]
  4347. 800220a: 430a orrs r2, r1
  4348. 800220c: 631a str r2, [r3, #48] ; 0x30
  4349. 800220e: e01b b.n 8002248 <HAL_ADC_ConfigChannel+0xe4>
  4350. ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
  4351. }
  4352. /* For Rank 13 to 16 */
  4353. else
  4354. {
  4355. MODIFY_REG(hadc->Instance->SQR1 ,
  4356. 8002210: 687b ldr r3, [r7, #4]
  4357. 8002212: 681b ldr r3, [r3, #0]
  4358. 8002214: 6ad9 ldr r1, [r3, #44] ; 0x2c
  4359. 8002216: 683b ldr r3, [r7, #0]
  4360. 8002218: 685a ldr r2, [r3, #4]
  4361. 800221a: 4613 mov r3, r2
  4362. 800221c: 009b lsls r3, r3, #2
  4363. 800221e: 4413 add r3, r2
  4364. 8002220: 3b41 subs r3, #65 ; 0x41
  4365. 8002222: 221f movs r2, #31
  4366. 8002224: fa02 f303 lsl.w r3, r2, r3
  4367. 8002228: 43db mvns r3, r3
  4368. 800222a: 4019 ands r1, r3
  4369. 800222c: 683b ldr r3, [r7, #0]
  4370. 800222e: 6818 ldr r0, [r3, #0]
  4371. 8002230: 683b ldr r3, [r7, #0]
  4372. 8002232: 685a ldr r2, [r3, #4]
  4373. 8002234: 4613 mov r3, r2
  4374. 8002236: 009b lsls r3, r3, #2
  4375. 8002238: 4413 add r3, r2
  4376. 800223a: 3b41 subs r3, #65 ; 0x41
  4377. 800223c: fa00 f203 lsl.w r2, r0, r3
  4378. 8002240: 687b ldr r3, [r7, #4]
  4379. 8002242: 681b ldr r3, [r3, #0]
  4380. 8002244: 430a orrs r2, r1
  4381. 8002246: 62da str r2, [r3, #44] ; 0x2c
  4382. }
  4383. /* Channel sampling time configuration */
  4384. /* For channels 10 to 17 */
  4385. if (sConfig->Channel >= ADC_CHANNEL_10)
  4386. 8002248: 683b ldr r3, [r7, #0]
  4387. 800224a: 681b ldr r3, [r3, #0]
  4388. 800224c: 2b09 cmp r3, #9
  4389. 800224e: d91c bls.n 800228a <HAL_ADC_ConfigChannel+0x126>
  4390. {
  4391. MODIFY_REG(hadc->Instance->SMPR1 ,
  4392. 8002250: 687b ldr r3, [r7, #4]
  4393. 8002252: 681b ldr r3, [r3, #0]
  4394. 8002254: 68d9 ldr r1, [r3, #12]
  4395. 8002256: 683b ldr r3, [r7, #0]
  4396. 8002258: 681a ldr r2, [r3, #0]
  4397. 800225a: 4613 mov r3, r2
  4398. 800225c: 005b lsls r3, r3, #1
  4399. 800225e: 4413 add r3, r2
  4400. 8002260: 3b1e subs r3, #30
  4401. 8002262: 2207 movs r2, #7
  4402. 8002264: fa02 f303 lsl.w r3, r2, r3
  4403. 8002268: 43db mvns r3, r3
  4404. 800226a: 4019 ands r1, r3
  4405. 800226c: 683b ldr r3, [r7, #0]
  4406. 800226e: 6898 ldr r0, [r3, #8]
  4407. 8002270: 683b ldr r3, [r7, #0]
  4408. 8002272: 681a ldr r2, [r3, #0]
  4409. 8002274: 4613 mov r3, r2
  4410. 8002276: 005b lsls r3, r3, #1
  4411. 8002278: 4413 add r3, r2
  4412. 800227a: 3b1e subs r3, #30
  4413. 800227c: fa00 f203 lsl.w r2, r0, r3
  4414. 8002280: 687b ldr r3, [r7, #4]
  4415. 8002282: 681b ldr r3, [r3, #0]
  4416. 8002284: 430a orrs r2, r1
  4417. 8002286: 60da str r2, [r3, #12]
  4418. 8002288: e019 b.n 80022be <HAL_ADC_ConfigChannel+0x15a>
  4419. ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) ,
  4420. ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
  4421. }
  4422. else /* For channels 0 to 9 */
  4423. {
  4424. MODIFY_REG(hadc->Instance->SMPR2 ,
  4425. 800228a: 687b ldr r3, [r7, #4]
  4426. 800228c: 681b ldr r3, [r3, #0]
  4427. 800228e: 6919 ldr r1, [r3, #16]
  4428. 8002290: 683b ldr r3, [r7, #0]
  4429. 8002292: 681a ldr r2, [r3, #0]
  4430. 8002294: 4613 mov r3, r2
  4431. 8002296: 005b lsls r3, r3, #1
  4432. 8002298: 4413 add r3, r2
  4433. 800229a: 2207 movs r2, #7
  4434. 800229c: fa02 f303 lsl.w r3, r2, r3
  4435. 80022a0: 43db mvns r3, r3
  4436. 80022a2: 4019 ands r1, r3
  4437. 80022a4: 683b ldr r3, [r7, #0]
  4438. 80022a6: 6898 ldr r0, [r3, #8]
  4439. 80022a8: 683b ldr r3, [r7, #0]
  4440. 80022aa: 681a ldr r2, [r3, #0]
  4441. 80022ac: 4613 mov r3, r2
  4442. 80022ae: 005b lsls r3, r3, #1
  4443. 80022b0: 4413 add r3, r2
  4444. 80022b2: fa00 f203 lsl.w r2, r0, r3
  4445. 80022b6: 687b ldr r3, [r7, #4]
  4446. 80022b8: 681b ldr r3, [r3, #0]
  4447. 80022ba: 430a orrs r2, r1
  4448. 80022bc: 611a str r2, [r3, #16]
  4449. ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
  4450. }
  4451. /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
  4452. /* and VREFINT measurement path. */
  4453. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  4454. 80022be: 683b ldr r3, [r7, #0]
  4455. 80022c0: 681b ldr r3, [r3, #0]
  4456. 80022c2: 2b10 cmp r3, #16
  4457. 80022c4: d003 beq.n 80022ce <HAL_ADC_ConfigChannel+0x16a>
  4458. (sConfig->Channel == ADC_CHANNEL_VREFINT) )
  4459. 80022c6: 683b ldr r3, [r7, #0]
  4460. 80022c8: 681b ldr r3, [r3, #0]
  4461. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  4462. 80022ca: 2b11 cmp r3, #17
  4463. 80022cc: d132 bne.n 8002334 <HAL_ADC_ConfigChannel+0x1d0>
  4464. {
  4465. /* For STM32F1 devices with several ADC: Only ADC1 can access internal */
  4466. /* measurement channels (VrefInt/TempSensor). If these channels are */
  4467. /* intended to be set on other ADC instances, an error is reported. */
  4468. if (hadc->Instance == ADC1)
  4469. 80022ce: 687b ldr r3, [r7, #4]
  4470. 80022d0: 681b ldr r3, [r3, #0]
  4471. 80022d2: 4a1d ldr r2, [pc, #116] ; (8002348 <HAL_ADC_ConfigChannel+0x1e4>)
  4472. 80022d4: 4293 cmp r3, r2
  4473. 80022d6: d125 bne.n 8002324 <HAL_ADC_ConfigChannel+0x1c0>
  4474. {
  4475. if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET)
  4476. 80022d8: 687b ldr r3, [r7, #4]
  4477. 80022da: 681b ldr r3, [r3, #0]
  4478. 80022dc: 689b ldr r3, [r3, #8]
  4479. 80022de: f403 0300 and.w r3, r3, #8388608 ; 0x800000
  4480. 80022e2: 2b00 cmp r3, #0
  4481. 80022e4: d126 bne.n 8002334 <HAL_ADC_ConfigChannel+0x1d0>
  4482. {
  4483. SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE);
  4484. 80022e6: 687b ldr r3, [r7, #4]
  4485. 80022e8: 681b ldr r3, [r3, #0]
  4486. 80022ea: 689a ldr r2, [r3, #8]
  4487. 80022ec: 687b ldr r3, [r7, #4]
  4488. 80022ee: 681b ldr r3, [r3, #0]
  4489. 80022f0: f442 0200 orr.w r2, r2, #8388608 ; 0x800000
  4490. 80022f4: 609a str r2, [r3, #8]
  4491. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR))
  4492. 80022f6: 683b ldr r3, [r7, #0]
  4493. 80022f8: 681b ldr r3, [r3, #0]
  4494. 80022fa: 2b10 cmp r3, #16
  4495. 80022fc: d11a bne.n 8002334 <HAL_ADC_ConfigChannel+0x1d0>
  4496. {
  4497. /* Delay for temperature sensor stabilization time */
  4498. /* Compute number of CPU cycles to wait for */
  4499. wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U));
  4500. 80022fe: 4b13 ldr r3, [pc, #76] ; (800234c <HAL_ADC_ConfigChannel+0x1e8>)
  4501. 8002300: 681b ldr r3, [r3, #0]
  4502. 8002302: 4a13 ldr r2, [pc, #76] ; (8002350 <HAL_ADC_ConfigChannel+0x1ec>)
  4503. 8002304: fba2 2303 umull r2, r3, r2, r3
  4504. 8002308: 0c9a lsrs r2, r3, #18
  4505. 800230a: 4613 mov r3, r2
  4506. 800230c: 009b lsls r3, r3, #2
  4507. 800230e: 4413 add r3, r2
  4508. 8002310: 005b lsls r3, r3, #1
  4509. 8002312: 60bb str r3, [r7, #8]
  4510. while(wait_loop_index != 0U)
  4511. 8002314: e002 b.n 800231c <HAL_ADC_ConfigChannel+0x1b8>
  4512. {
  4513. wait_loop_index--;
  4514. 8002316: 68bb ldr r3, [r7, #8]
  4515. 8002318: 3b01 subs r3, #1
  4516. 800231a: 60bb str r3, [r7, #8]
  4517. while(wait_loop_index != 0U)
  4518. 800231c: 68bb ldr r3, [r7, #8]
  4519. 800231e: 2b00 cmp r3, #0
  4520. 8002320: d1f9 bne.n 8002316 <HAL_ADC_ConfigChannel+0x1b2>
  4521. 8002322: e007 b.n 8002334 <HAL_ADC_ConfigChannel+0x1d0>
  4522. }
  4523. }
  4524. else
  4525. {
  4526. /* Update ADC state machine to error */
  4527. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  4528. 8002324: 687b ldr r3, [r7, #4]
  4529. 8002326: 6a9b ldr r3, [r3, #40] ; 0x28
  4530. 8002328: f043 0220 orr.w r2, r3, #32
  4531. 800232c: 687b ldr r3, [r7, #4]
  4532. 800232e: 629a str r2, [r3, #40] ; 0x28
  4533. tmp_hal_status = HAL_ERROR;
  4534. 8002330: 2301 movs r3, #1
  4535. 8002332: 73fb strb r3, [r7, #15]
  4536. }
  4537. }
  4538. /* Process unlocked */
  4539. __HAL_UNLOCK(hadc);
  4540. 8002334: 687b ldr r3, [r7, #4]
  4541. 8002336: 2200 movs r2, #0
  4542. 8002338: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4543. /* Return function status */
  4544. return tmp_hal_status;
  4545. 800233c: 7bfb ldrb r3, [r7, #15]
  4546. }
  4547. 800233e: 4618 mov r0, r3
  4548. 8002340: 3714 adds r7, #20
  4549. 8002342: 46bd mov sp, r7
  4550. 8002344: bc80 pop {r7}
  4551. 8002346: 4770 bx lr
  4552. 8002348: 40012400 .word 0x40012400
  4553. 800234c: 20000008 .word 0x20000008
  4554. 8002350: 431bde83 .word 0x431bde83
  4555. 08002354 <ADC_Enable>:
  4556. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  4557. * @param hadc: ADC handle
  4558. * @retval HAL status.
  4559. */
  4560. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
  4561. {
  4562. 8002354: b580 push {r7, lr}
  4563. 8002356: b084 sub sp, #16
  4564. 8002358: af00 add r7, sp, #0
  4565. 800235a: 6078 str r0, [r7, #4]
  4566. uint32_t tickstart = 0U;
  4567. 800235c: 2300 movs r3, #0
  4568. 800235e: 60fb str r3, [r7, #12]
  4569. __IO uint32_t wait_loop_index = 0U;
  4570. 8002360: 2300 movs r3, #0
  4571. 8002362: 60bb str r3, [r7, #8]
  4572. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  4573. /* enabling phase not yet completed: flag ADC ready not yet set). */
  4574. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  4575. /* causes: ADC clock not running, ...). */
  4576. if (ADC_IS_ENABLE(hadc) == RESET)
  4577. 8002364: 687b ldr r3, [r7, #4]
  4578. 8002366: 681b ldr r3, [r3, #0]
  4579. 8002368: 689b ldr r3, [r3, #8]
  4580. 800236a: f003 0301 and.w r3, r3, #1
  4581. 800236e: 2b01 cmp r3, #1
  4582. 8002370: d039 beq.n 80023e6 <ADC_Enable+0x92>
  4583. {
  4584. /* Enable the Peripheral */
  4585. __HAL_ADC_ENABLE(hadc);
  4586. 8002372: 687b ldr r3, [r7, #4]
  4587. 8002374: 681b ldr r3, [r3, #0]
  4588. 8002376: 689a ldr r2, [r3, #8]
  4589. 8002378: 687b ldr r3, [r7, #4]
  4590. 800237a: 681b ldr r3, [r3, #0]
  4591. 800237c: f042 0201 orr.w r2, r2, #1
  4592. 8002380: 609a str r2, [r3, #8]
  4593. /* Delay for ADC stabilization time */
  4594. /* Compute number of CPU cycles to wait for */
  4595. wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U));
  4596. 8002382: 4b1b ldr r3, [pc, #108] ; (80023f0 <ADC_Enable+0x9c>)
  4597. 8002384: 681b ldr r3, [r3, #0]
  4598. 8002386: 4a1b ldr r2, [pc, #108] ; (80023f4 <ADC_Enable+0xa0>)
  4599. 8002388: fba2 2303 umull r2, r3, r2, r3
  4600. 800238c: 0c9b lsrs r3, r3, #18
  4601. 800238e: 60bb str r3, [r7, #8]
  4602. while(wait_loop_index != 0U)
  4603. 8002390: e002 b.n 8002398 <ADC_Enable+0x44>
  4604. {
  4605. wait_loop_index--;
  4606. 8002392: 68bb ldr r3, [r7, #8]
  4607. 8002394: 3b01 subs r3, #1
  4608. 8002396: 60bb str r3, [r7, #8]
  4609. while(wait_loop_index != 0U)
  4610. 8002398: 68bb ldr r3, [r7, #8]
  4611. 800239a: 2b00 cmp r3, #0
  4612. 800239c: d1f9 bne.n 8002392 <ADC_Enable+0x3e>
  4613. }
  4614. /* Get tick count */
  4615. tickstart = HAL_GetTick();
  4616. 800239e: f7ff fc65 bl 8001c6c <HAL_GetTick>
  4617. 80023a2: 60f8 str r0, [r7, #12]
  4618. /* Wait for ADC effectively enabled */
  4619. while(ADC_IS_ENABLE(hadc) == RESET)
  4620. 80023a4: e018 b.n 80023d8 <ADC_Enable+0x84>
  4621. {
  4622. if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  4623. 80023a6: f7ff fc61 bl 8001c6c <HAL_GetTick>
  4624. 80023aa: 4602 mov r2, r0
  4625. 80023ac: 68fb ldr r3, [r7, #12]
  4626. 80023ae: 1ad3 subs r3, r2, r3
  4627. 80023b0: 2b02 cmp r3, #2
  4628. 80023b2: d911 bls.n 80023d8 <ADC_Enable+0x84>
  4629. {
  4630. /* Update ADC state machine to error */
  4631. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  4632. 80023b4: 687b ldr r3, [r7, #4]
  4633. 80023b6: 6a9b ldr r3, [r3, #40] ; 0x28
  4634. 80023b8: f043 0210 orr.w r2, r3, #16
  4635. 80023bc: 687b ldr r3, [r7, #4]
  4636. 80023be: 629a str r2, [r3, #40] ; 0x28
  4637. /* Set ADC error code to ADC IP internal error */
  4638. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4639. 80023c0: 687b ldr r3, [r7, #4]
  4640. 80023c2: 6adb ldr r3, [r3, #44] ; 0x2c
  4641. 80023c4: f043 0201 orr.w r2, r3, #1
  4642. 80023c8: 687b ldr r3, [r7, #4]
  4643. 80023ca: 62da str r2, [r3, #44] ; 0x2c
  4644. /* Process unlocked */
  4645. __HAL_UNLOCK(hadc);
  4646. 80023cc: 687b ldr r3, [r7, #4]
  4647. 80023ce: 2200 movs r2, #0
  4648. 80023d0: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4649. return HAL_ERROR;
  4650. 80023d4: 2301 movs r3, #1
  4651. 80023d6: e007 b.n 80023e8 <ADC_Enable+0x94>
  4652. while(ADC_IS_ENABLE(hadc) == RESET)
  4653. 80023d8: 687b ldr r3, [r7, #4]
  4654. 80023da: 681b ldr r3, [r3, #0]
  4655. 80023dc: 689b ldr r3, [r3, #8]
  4656. 80023de: f003 0301 and.w r3, r3, #1
  4657. 80023e2: 2b01 cmp r3, #1
  4658. 80023e4: d1df bne.n 80023a6 <ADC_Enable+0x52>
  4659. }
  4660. }
  4661. }
  4662. /* Return HAL status */
  4663. return HAL_OK;
  4664. 80023e6: 2300 movs r3, #0
  4665. }
  4666. 80023e8: 4618 mov r0, r3
  4667. 80023ea: 3710 adds r7, #16
  4668. 80023ec: 46bd mov sp, r7
  4669. 80023ee: bd80 pop {r7, pc}
  4670. 80023f0: 20000008 .word 0x20000008
  4671. 80023f4: 431bde83 .word 0x431bde83
  4672. 080023f8 <ADC_ConversionStop_Disable>:
  4673. * stopped to disable the ADC.
  4674. * @param hadc: ADC handle
  4675. * @retval HAL status.
  4676. */
  4677. HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
  4678. {
  4679. 80023f8: b580 push {r7, lr}
  4680. 80023fa: b084 sub sp, #16
  4681. 80023fc: af00 add r7, sp, #0
  4682. 80023fe: 6078 str r0, [r7, #4]
  4683. uint32_t tickstart = 0U;
  4684. 8002400: 2300 movs r3, #0
  4685. 8002402: 60fb str r3, [r7, #12]
  4686. /* Verification if ADC is not already disabled */
  4687. if (ADC_IS_ENABLE(hadc) != RESET)
  4688. 8002404: 687b ldr r3, [r7, #4]
  4689. 8002406: 681b ldr r3, [r3, #0]
  4690. 8002408: 689b ldr r3, [r3, #8]
  4691. 800240a: f003 0301 and.w r3, r3, #1
  4692. 800240e: 2b01 cmp r3, #1
  4693. 8002410: d127 bne.n 8002462 <ADC_ConversionStop_Disable+0x6a>
  4694. {
  4695. /* Disable the ADC peripheral */
  4696. __HAL_ADC_DISABLE(hadc);
  4697. 8002412: 687b ldr r3, [r7, #4]
  4698. 8002414: 681b ldr r3, [r3, #0]
  4699. 8002416: 689a ldr r2, [r3, #8]
  4700. 8002418: 687b ldr r3, [r7, #4]
  4701. 800241a: 681b ldr r3, [r3, #0]
  4702. 800241c: f022 0201 bic.w r2, r2, #1
  4703. 8002420: 609a str r2, [r3, #8]
  4704. /* Get tick count */
  4705. tickstart = HAL_GetTick();
  4706. 8002422: f7ff fc23 bl 8001c6c <HAL_GetTick>
  4707. 8002426: 60f8 str r0, [r7, #12]
  4708. /* Wait for ADC effectively disabled */
  4709. while(ADC_IS_ENABLE(hadc) != RESET)
  4710. 8002428: e014 b.n 8002454 <ADC_ConversionStop_Disable+0x5c>
  4711. {
  4712. if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  4713. 800242a: f7ff fc1f bl 8001c6c <HAL_GetTick>
  4714. 800242e: 4602 mov r2, r0
  4715. 8002430: 68fb ldr r3, [r7, #12]
  4716. 8002432: 1ad3 subs r3, r2, r3
  4717. 8002434: 2b02 cmp r3, #2
  4718. 8002436: d90d bls.n 8002454 <ADC_ConversionStop_Disable+0x5c>
  4719. {
  4720. /* Update ADC state machine to error */
  4721. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  4722. 8002438: 687b ldr r3, [r7, #4]
  4723. 800243a: 6a9b ldr r3, [r3, #40] ; 0x28
  4724. 800243c: f043 0210 orr.w r2, r3, #16
  4725. 8002440: 687b ldr r3, [r7, #4]
  4726. 8002442: 629a str r2, [r3, #40] ; 0x28
  4727. /* Set ADC error code to ADC IP internal error */
  4728. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4729. 8002444: 687b ldr r3, [r7, #4]
  4730. 8002446: 6adb ldr r3, [r3, #44] ; 0x2c
  4731. 8002448: f043 0201 orr.w r2, r3, #1
  4732. 800244c: 687b ldr r3, [r7, #4]
  4733. 800244e: 62da str r2, [r3, #44] ; 0x2c
  4734. return HAL_ERROR;
  4735. 8002450: 2301 movs r3, #1
  4736. 8002452: e007 b.n 8002464 <ADC_ConversionStop_Disable+0x6c>
  4737. while(ADC_IS_ENABLE(hadc) != RESET)
  4738. 8002454: 687b ldr r3, [r7, #4]
  4739. 8002456: 681b ldr r3, [r3, #0]
  4740. 8002458: 689b ldr r3, [r3, #8]
  4741. 800245a: f003 0301 and.w r3, r3, #1
  4742. 800245e: 2b01 cmp r3, #1
  4743. 8002460: d0e3 beq.n 800242a <ADC_ConversionStop_Disable+0x32>
  4744. }
  4745. }
  4746. }
  4747. /* Return HAL status */
  4748. return HAL_OK;
  4749. 8002462: 2300 movs r3, #0
  4750. }
  4751. 8002464: 4618 mov r0, r3
  4752. 8002466: 3710 adds r7, #16
  4753. 8002468: 46bd mov sp, r7
  4754. 800246a: bd80 pop {r7, pc}
  4755. 0800246c <ADC_DMAConvCplt>:
  4756. * @brief DMA transfer complete callback.
  4757. * @param hdma: pointer to DMA handle.
  4758. * @retval None
  4759. */
  4760. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  4761. {
  4762. 800246c: b580 push {r7, lr}
  4763. 800246e: b084 sub sp, #16
  4764. 8002470: af00 add r7, sp, #0
  4765. 8002472: 6078 str r0, [r7, #4]
  4766. /* Retrieve ADC handle corresponding to current DMA handle */
  4767. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4768. 8002474: 687b ldr r3, [r7, #4]
  4769. 8002476: 6a5b ldr r3, [r3, #36] ; 0x24
  4770. 8002478: 60fb str r3, [r7, #12]
  4771. /* Update state machine on conversion status if not in error state */
  4772. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
  4773. 800247a: 68fb ldr r3, [r7, #12]
  4774. 800247c: 6a9b ldr r3, [r3, #40] ; 0x28
  4775. 800247e: f003 0350 and.w r3, r3, #80 ; 0x50
  4776. 8002482: 2b00 cmp r3, #0
  4777. 8002484: d127 bne.n 80024d6 <ADC_DMAConvCplt+0x6a>
  4778. {
  4779. /* Update ADC state machine */
  4780. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  4781. 8002486: 68fb ldr r3, [r7, #12]
  4782. 8002488: 6a9b ldr r3, [r3, #40] ; 0x28
  4783. 800248a: f443 7200 orr.w r2, r3, #512 ; 0x200
  4784. 800248e: 68fb ldr r3, [r7, #12]
  4785. 8002490: 629a str r2, [r3, #40] ; 0x28
  4786. /* Determine whether any further conversion upcoming on group regular */
  4787. /* by external trigger, continuous mode or scan sequence on going. */
  4788. /* Note: On STM32F1 devices, in case of sequencer enabled */
  4789. /* (several ranks selected), end of conversion flag is raised */
  4790. /* at the end of the sequence. */
  4791. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4792. 8002492: 68fb ldr r3, [r7, #12]
  4793. 8002494: 681b ldr r3, [r3, #0]
  4794. 8002496: 689b ldr r3, [r3, #8]
  4795. 8002498: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4796. 800249c: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4797. 80024a0: d115 bne.n 80024ce <ADC_DMAConvCplt+0x62>
  4798. (hadc->Init.ContinuousConvMode == DISABLE) )
  4799. 80024a2: 68fb ldr r3, [r7, #12]
  4800. 80024a4: 7b1b ldrb r3, [r3, #12]
  4801. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4802. 80024a6: 2b00 cmp r3, #0
  4803. 80024a8: d111 bne.n 80024ce <ADC_DMAConvCplt+0x62>
  4804. {
  4805. /* Set ADC state */
  4806. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  4807. 80024aa: 68fb ldr r3, [r7, #12]
  4808. 80024ac: 6a9b ldr r3, [r3, #40] ; 0x28
  4809. 80024ae: f423 7280 bic.w r2, r3, #256 ; 0x100
  4810. 80024b2: 68fb ldr r3, [r7, #12]
  4811. 80024b4: 629a str r2, [r3, #40] ; 0x28
  4812. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  4813. 80024b6: 68fb ldr r3, [r7, #12]
  4814. 80024b8: 6a9b ldr r3, [r3, #40] ; 0x28
  4815. 80024ba: f403 5380 and.w r3, r3, #4096 ; 0x1000
  4816. 80024be: 2b00 cmp r3, #0
  4817. 80024c0: d105 bne.n 80024ce <ADC_DMAConvCplt+0x62>
  4818. {
  4819. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4820. 80024c2: 68fb ldr r3, [r7, #12]
  4821. 80024c4: 6a9b ldr r3, [r3, #40] ; 0x28
  4822. 80024c6: f043 0201 orr.w r2, r3, #1
  4823. 80024ca: 68fb ldr r3, [r7, #12]
  4824. 80024cc: 629a str r2, [r3, #40] ; 0x28
  4825. /* Conversion complete callback */
  4826. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4827. hadc->ConvCpltCallback(hadc);
  4828. #else
  4829. HAL_ADC_ConvCpltCallback(hadc);
  4830. 80024ce: 68f8 ldr r0, [r7, #12]
  4831. 80024d0: f7ff f85c bl 800158c <HAL_ADC_ConvCpltCallback>
  4832. else
  4833. {
  4834. /* Call DMA error callback */
  4835. hadc->DMA_Handle->XferErrorCallback(hdma);
  4836. }
  4837. }
  4838. 80024d4: e004 b.n 80024e0 <ADC_DMAConvCplt+0x74>
  4839. hadc->DMA_Handle->XferErrorCallback(hdma);
  4840. 80024d6: 68fb ldr r3, [r7, #12]
  4841. 80024d8: 6a1b ldr r3, [r3, #32]
  4842. 80024da: 6b1b ldr r3, [r3, #48] ; 0x30
  4843. 80024dc: 6878 ldr r0, [r7, #4]
  4844. 80024de: 4798 blx r3
  4845. }
  4846. 80024e0: bf00 nop
  4847. 80024e2: 3710 adds r7, #16
  4848. 80024e4: 46bd mov sp, r7
  4849. 80024e6: bd80 pop {r7, pc}
  4850. 080024e8 <ADC_DMAHalfConvCplt>:
  4851. * @brief DMA half transfer complete callback.
  4852. * @param hdma: pointer to DMA handle.
  4853. * @retval None
  4854. */
  4855. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  4856. {
  4857. 80024e8: b580 push {r7, lr}
  4858. 80024ea: b084 sub sp, #16
  4859. 80024ec: af00 add r7, sp, #0
  4860. 80024ee: 6078 str r0, [r7, #4]
  4861. /* Retrieve ADC handle corresponding to current DMA handle */
  4862. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4863. 80024f0: 687b ldr r3, [r7, #4]
  4864. 80024f2: 6a5b ldr r3, [r3, #36] ; 0x24
  4865. 80024f4: 60fb str r3, [r7, #12]
  4866. /* Half conversion callback */
  4867. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4868. hadc->ConvHalfCpltCallback(hadc);
  4869. #else
  4870. HAL_ADC_ConvHalfCpltCallback(hadc);
  4871. 80024f6: 68f8 ldr r0, [r7, #12]
  4872. 80024f8: f7ff fe19 bl 800212e <HAL_ADC_ConvHalfCpltCallback>
  4873. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4874. }
  4875. 80024fc: bf00 nop
  4876. 80024fe: 3710 adds r7, #16
  4877. 8002500: 46bd mov sp, r7
  4878. 8002502: bd80 pop {r7, pc}
  4879. 08002504 <ADC_DMAError>:
  4880. * @brief DMA error callback
  4881. * @param hdma: pointer to DMA handle.
  4882. * @retval None
  4883. */
  4884. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  4885. {
  4886. 8002504: b580 push {r7, lr}
  4887. 8002506: b084 sub sp, #16
  4888. 8002508: af00 add r7, sp, #0
  4889. 800250a: 6078 str r0, [r7, #4]
  4890. /* Retrieve ADC handle corresponding to current DMA handle */
  4891. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4892. 800250c: 687b ldr r3, [r7, #4]
  4893. 800250e: 6a5b ldr r3, [r3, #36] ; 0x24
  4894. 8002510: 60fb str r3, [r7, #12]
  4895. /* Set ADC state */
  4896. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  4897. 8002512: 68fb ldr r3, [r7, #12]
  4898. 8002514: 6a9b ldr r3, [r3, #40] ; 0x28
  4899. 8002516: f043 0240 orr.w r2, r3, #64 ; 0x40
  4900. 800251a: 68fb ldr r3, [r7, #12]
  4901. 800251c: 629a str r2, [r3, #40] ; 0x28
  4902. /* Set ADC error code to DMA error */
  4903. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  4904. 800251e: 68fb ldr r3, [r7, #12]
  4905. 8002520: 6adb ldr r3, [r3, #44] ; 0x2c
  4906. 8002522: f043 0204 orr.w r2, r3, #4
  4907. 8002526: 68fb ldr r3, [r7, #12]
  4908. 8002528: 62da str r2, [r3, #44] ; 0x2c
  4909. /* Error callback */
  4910. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4911. hadc->ErrorCallback(hadc);
  4912. #else
  4913. HAL_ADC_ErrorCallback(hadc);
  4914. 800252a: 68f8 ldr r0, [r7, #12]
  4915. 800252c: f7ff fe11 bl 8002152 <HAL_ADC_ErrorCallback>
  4916. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4917. }
  4918. 8002530: bf00 nop
  4919. 8002532: 3710 adds r7, #16
  4920. 8002534: 46bd mov sp, r7
  4921. 8002536: bd80 pop {r7, pc}
  4922. 08002538 <HAL_ADCEx_Calibration_Start>:
  4923. * the completion of this function.
  4924. * @param hadc: ADC handle
  4925. * @retval HAL status
  4926. */
  4927. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc)
  4928. {
  4929. 8002538: b590 push {r4, r7, lr}
  4930. 800253a: b087 sub sp, #28
  4931. 800253c: af00 add r7, sp, #0
  4932. 800253e: 6078 str r0, [r7, #4]
  4933. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4934. 8002540: 2300 movs r3, #0
  4935. 8002542: 75fb strb r3, [r7, #23]
  4936. uint32_t tickstart;
  4937. __IO uint32_t wait_loop_index = 0U;
  4938. 8002544: 2300 movs r3, #0
  4939. 8002546: 60fb str r3, [r7, #12]
  4940. /* Check the parameters */
  4941. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  4942. /* Process locked */
  4943. __HAL_LOCK(hadc);
  4944. 8002548: 687b ldr r3, [r7, #4]
  4945. 800254a: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  4946. 800254e: 2b01 cmp r3, #1
  4947. 8002550: d101 bne.n 8002556 <HAL_ADCEx_Calibration_Start+0x1e>
  4948. 8002552: 2302 movs r3, #2
  4949. 8002554: e086 b.n 8002664 <HAL_ADCEx_Calibration_Start+0x12c>
  4950. 8002556: 687b ldr r3, [r7, #4]
  4951. 8002558: 2201 movs r2, #1
  4952. 800255a: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4953. /* 1. Calibration prerequisite: */
  4954. /* - ADC must be disabled for at least two ADC clock cycles in disable */
  4955. /* mode before ADC enable */
  4956. /* Stop potential conversion on going, on regular and injected groups */
  4957. /* Disable ADC peripheral */
  4958. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  4959. 800255e: 6878 ldr r0, [r7, #4]
  4960. 8002560: f7ff ff4a bl 80023f8 <ADC_ConversionStop_Disable>
  4961. 8002564: 4603 mov r3, r0
  4962. 8002566: 75fb strb r3, [r7, #23]
  4963. /* Check if ADC is effectively disabled */
  4964. if (tmp_hal_status == HAL_OK)
  4965. 8002568: 7dfb ldrb r3, [r7, #23]
  4966. 800256a: 2b00 cmp r3, #0
  4967. 800256c: d175 bne.n 800265a <HAL_ADCEx_Calibration_Start+0x122>
  4968. {
  4969. /* Set ADC state */
  4970. ADC_STATE_CLR_SET(hadc->State,
  4971. 800256e: 687b ldr r3, [r7, #4]
  4972. 8002570: 6a9b ldr r3, [r3, #40] ; 0x28
  4973. 8002572: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  4974. 8002576: f023 0302 bic.w r3, r3, #2
  4975. 800257a: f043 0202 orr.w r2, r3, #2
  4976. 800257e: 687b ldr r3, [r7, #4]
  4977. 8002580: 629a str r2, [r3, #40] ; 0x28
  4978. /* Hardware prerequisite: delay before starting the calibration. */
  4979. /* - Computation of CPU clock cycles corresponding to ADC clock cycles. */
  4980. /* - Wait for the expected ADC clock cycles delay */
  4981. wait_loop_index = ((SystemCoreClock
  4982. / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC))
  4983. 8002582: 4b3a ldr r3, [pc, #232] ; (800266c <HAL_ADCEx_Calibration_Start+0x134>)
  4984. 8002584: 681c ldr r4, [r3, #0]
  4985. 8002586: 2002 movs r0, #2
  4986. 8002588: f001 fc20 bl 8003dcc <HAL_RCCEx_GetPeriphCLKFreq>
  4987. 800258c: 4603 mov r3, r0
  4988. 800258e: fbb4 f3f3 udiv r3, r4, r3
  4989. * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES );
  4990. 8002592: 005b lsls r3, r3, #1
  4991. wait_loop_index = ((SystemCoreClock
  4992. 8002594: 60fb str r3, [r7, #12]
  4993. while(wait_loop_index != 0U)
  4994. 8002596: e002 b.n 800259e <HAL_ADCEx_Calibration_Start+0x66>
  4995. {
  4996. wait_loop_index--;
  4997. 8002598: 68fb ldr r3, [r7, #12]
  4998. 800259a: 3b01 subs r3, #1
  4999. 800259c: 60fb str r3, [r7, #12]
  5000. while(wait_loop_index != 0U)
  5001. 800259e: 68fb ldr r3, [r7, #12]
  5002. 80025a0: 2b00 cmp r3, #0
  5003. 80025a2: d1f9 bne.n 8002598 <HAL_ADCEx_Calibration_Start+0x60>
  5004. }
  5005. /* 2. Enable the ADC peripheral */
  5006. ADC_Enable(hadc);
  5007. 80025a4: 6878 ldr r0, [r7, #4]
  5008. 80025a6: f7ff fed5 bl 8002354 <ADC_Enable>
  5009. /* 3. Resets ADC calibration registers */
  5010. SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL);
  5011. 80025aa: 687b ldr r3, [r7, #4]
  5012. 80025ac: 681b ldr r3, [r3, #0]
  5013. 80025ae: 689a ldr r2, [r3, #8]
  5014. 80025b0: 687b ldr r3, [r7, #4]
  5015. 80025b2: 681b ldr r3, [r3, #0]
  5016. 80025b4: f042 0208 orr.w r2, r2, #8
  5017. 80025b8: 609a str r2, [r3, #8]
  5018. tickstart = HAL_GetTick();
  5019. 80025ba: f7ff fb57 bl 8001c6c <HAL_GetTick>
  5020. 80025be: 6138 str r0, [r7, #16]
  5021. /* Wait for calibration reset completion */
  5022. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  5023. 80025c0: e014 b.n 80025ec <HAL_ADCEx_Calibration_Start+0xb4>
  5024. {
  5025. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  5026. 80025c2: f7ff fb53 bl 8001c6c <HAL_GetTick>
  5027. 80025c6: 4602 mov r2, r0
  5028. 80025c8: 693b ldr r3, [r7, #16]
  5029. 80025ca: 1ad3 subs r3, r2, r3
  5030. 80025cc: 2b0a cmp r3, #10
  5031. 80025ce: d90d bls.n 80025ec <HAL_ADCEx_Calibration_Start+0xb4>
  5032. {
  5033. /* Update ADC state machine to error */
  5034. ADC_STATE_CLR_SET(hadc->State,
  5035. 80025d0: 687b ldr r3, [r7, #4]
  5036. 80025d2: 6a9b ldr r3, [r3, #40] ; 0x28
  5037. 80025d4: f023 0312 bic.w r3, r3, #18
  5038. 80025d8: f043 0210 orr.w r2, r3, #16
  5039. 80025dc: 687b ldr r3, [r7, #4]
  5040. 80025de: 629a str r2, [r3, #40] ; 0x28
  5041. HAL_ADC_STATE_BUSY_INTERNAL,
  5042. HAL_ADC_STATE_ERROR_INTERNAL);
  5043. /* Process unlocked */
  5044. __HAL_UNLOCK(hadc);
  5045. 80025e0: 687b ldr r3, [r7, #4]
  5046. 80025e2: 2200 movs r2, #0
  5047. 80025e4: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5048. return HAL_ERROR;
  5049. 80025e8: 2301 movs r3, #1
  5050. 80025ea: e03b b.n 8002664 <HAL_ADCEx_Calibration_Start+0x12c>
  5051. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  5052. 80025ec: 687b ldr r3, [r7, #4]
  5053. 80025ee: 681b ldr r3, [r3, #0]
  5054. 80025f0: 689b ldr r3, [r3, #8]
  5055. 80025f2: f003 0308 and.w r3, r3, #8
  5056. 80025f6: 2b00 cmp r3, #0
  5057. 80025f8: d1e3 bne.n 80025c2 <HAL_ADCEx_Calibration_Start+0x8a>
  5058. }
  5059. }
  5060. /* 4. Start ADC calibration */
  5061. SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL);
  5062. 80025fa: 687b ldr r3, [r7, #4]
  5063. 80025fc: 681b ldr r3, [r3, #0]
  5064. 80025fe: 689a ldr r2, [r3, #8]
  5065. 8002600: 687b ldr r3, [r7, #4]
  5066. 8002602: 681b ldr r3, [r3, #0]
  5067. 8002604: f042 0204 orr.w r2, r2, #4
  5068. 8002608: 609a str r2, [r3, #8]
  5069. tickstart = HAL_GetTick();
  5070. 800260a: f7ff fb2f bl 8001c6c <HAL_GetTick>
  5071. 800260e: 6138 str r0, [r7, #16]
  5072. /* Wait for calibration completion */
  5073. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  5074. 8002610: e014 b.n 800263c <HAL_ADCEx_Calibration_Start+0x104>
  5075. {
  5076. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  5077. 8002612: f7ff fb2b bl 8001c6c <HAL_GetTick>
  5078. 8002616: 4602 mov r2, r0
  5079. 8002618: 693b ldr r3, [r7, #16]
  5080. 800261a: 1ad3 subs r3, r2, r3
  5081. 800261c: 2b0a cmp r3, #10
  5082. 800261e: d90d bls.n 800263c <HAL_ADCEx_Calibration_Start+0x104>
  5083. {
  5084. /* Update ADC state machine to error */
  5085. ADC_STATE_CLR_SET(hadc->State,
  5086. 8002620: 687b ldr r3, [r7, #4]
  5087. 8002622: 6a9b ldr r3, [r3, #40] ; 0x28
  5088. 8002624: f023 0312 bic.w r3, r3, #18
  5089. 8002628: f043 0210 orr.w r2, r3, #16
  5090. 800262c: 687b ldr r3, [r7, #4]
  5091. 800262e: 629a str r2, [r3, #40] ; 0x28
  5092. HAL_ADC_STATE_BUSY_INTERNAL,
  5093. HAL_ADC_STATE_ERROR_INTERNAL);
  5094. /* Process unlocked */
  5095. __HAL_UNLOCK(hadc);
  5096. 8002630: 687b ldr r3, [r7, #4]
  5097. 8002632: 2200 movs r2, #0
  5098. 8002634: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5099. return HAL_ERROR;
  5100. 8002638: 2301 movs r3, #1
  5101. 800263a: e013 b.n 8002664 <HAL_ADCEx_Calibration_Start+0x12c>
  5102. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  5103. 800263c: 687b ldr r3, [r7, #4]
  5104. 800263e: 681b ldr r3, [r3, #0]
  5105. 8002640: 689b ldr r3, [r3, #8]
  5106. 8002642: f003 0304 and.w r3, r3, #4
  5107. 8002646: 2b00 cmp r3, #0
  5108. 8002648: d1e3 bne.n 8002612 <HAL_ADCEx_Calibration_Start+0xda>
  5109. }
  5110. }
  5111. /* Set ADC state */
  5112. ADC_STATE_CLR_SET(hadc->State,
  5113. 800264a: 687b ldr r3, [r7, #4]
  5114. 800264c: 6a9b ldr r3, [r3, #40] ; 0x28
  5115. 800264e: f023 0303 bic.w r3, r3, #3
  5116. 8002652: f043 0201 orr.w r2, r3, #1
  5117. 8002656: 687b ldr r3, [r7, #4]
  5118. 8002658: 629a str r2, [r3, #40] ; 0x28
  5119. HAL_ADC_STATE_BUSY_INTERNAL,
  5120. HAL_ADC_STATE_READY);
  5121. }
  5122. /* Process unlocked */
  5123. __HAL_UNLOCK(hadc);
  5124. 800265a: 687b ldr r3, [r7, #4]
  5125. 800265c: 2200 movs r2, #0
  5126. 800265e: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5127. /* Return function status */
  5128. return tmp_hal_status;
  5129. 8002662: 7dfb ldrb r3, [r7, #23]
  5130. }
  5131. 8002664: 4618 mov r0, r3
  5132. 8002666: 371c adds r7, #28
  5133. 8002668: 46bd mov sp, r7
  5134. 800266a: bd90 pop {r4, r7, pc}
  5135. 800266c: 20000008 .word 0x20000008
  5136. 08002670 <HAL_ADCEx_InjectedConvCpltCallback>:
  5137. * @brief Injected conversion complete callback in non blocking mode
  5138. * @param hadc: ADC handle
  5139. * @retval None
  5140. */
  5141. __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc)
  5142. {
  5143. 8002670: b480 push {r7}
  5144. 8002672: b083 sub sp, #12
  5145. 8002674: af00 add r7, sp, #0
  5146. 8002676: 6078 str r0, [r7, #4]
  5147. /* Prevent unused argument(s) compilation warning */
  5148. UNUSED(hadc);
  5149. /* NOTE : This function Should not be modified, when the callback is needed,
  5150. the HAL_ADCEx_InjectedConvCpltCallback could be implemented in the user file
  5151. */
  5152. }
  5153. 8002678: bf00 nop
  5154. 800267a: 370c adds r7, #12
  5155. 800267c: 46bd mov sp, r7
  5156. 800267e: bc80 pop {r7}
  5157. 8002680: 4770 bx lr
  5158. ...
  5159. 08002684 <__NVIC_SetPriorityGrouping>:
  5160. In case of a conflict between priority grouping and available
  5161. priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
  5162. \param [in] PriorityGroup Priority grouping field.
  5163. */
  5164. __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  5165. {
  5166. 8002684: b480 push {r7}
  5167. 8002686: b085 sub sp, #20
  5168. 8002688: af00 add r7, sp, #0
  5169. 800268a: 6078 str r0, [r7, #4]
  5170. uint32_t reg_value;
  5171. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  5172. 800268c: 687b ldr r3, [r7, #4]
  5173. 800268e: f003 0307 and.w r3, r3, #7
  5174. 8002692: 60fb str r3, [r7, #12]
  5175. reg_value = SCB->AIRCR; /* read old register configuration */
  5176. 8002694: 4b0c ldr r3, [pc, #48] ; (80026c8 <__NVIC_SetPriorityGrouping+0x44>)
  5177. 8002696: 68db ldr r3, [r3, #12]
  5178. 8002698: 60bb str r3, [r7, #8]
  5179. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  5180. 800269a: 68ba ldr r2, [r7, #8]
  5181. 800269c: f64f 03ff movw r3, #63743 ; 0xf8ff
  5182. 80026a0: 4013 ands r3, r2
  5183. 80026a2: 60bb str r3, [r7, #8]
  5184. reg_value = (reg_value |
  5185. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  5186. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  5187. 80026a4: 68fb ldr r3, [r7, #12]
  5188. 80026a6: 021a lsls r2, r3, #8
  5189. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  5190. 80026a8: 68bb ldr r3, [r7, #8]
  5191. 80026aa: 4313 orrs r3, r2
  5192. reg_value = (reg_value |
  5193. 80026ac: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  5194. 80026b0: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  5195. 80026b4: 60bb str r3, [r7, #8]
  5196. SCB->AIRCR = reg_value;
  5197. 80026b6: 4a04 ldr r2, [pc, #16] ; (80026c8 <__NVIC_SetPriorityGrouping+0x44>)
  5198. 80026b8: 68bb ldr r3, [r7, #8]
  5199. 80026ba: 60d3 str r3, [r2, #12]
  5200. }
  5201. 80026bc: bf00 nop
  5202. 80026be: 3714 adds r7, #20
  5203. 80026c0: 46bd mov sp, r7
  5204. 80026c2: bc80 pop {r7}
  5205. 80026c4: 4770 bx lr
  5206. 80026c6: bf00 nop
  5207. 80026c8: e000ed00 .word 0xe000ed00
  5208. 080026cc <__NVIC_GetPriorityGrouping>:
  5209. \brief Get Priority Grouping
  5210. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  5211. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  5212. */
  5213. __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
  5214. {
  5215. 80026cc: b480 push {r7}
  5216. 80026ce: af00 add r7, sp, #0
  5217. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  5218. 80026d0: 4b04 ldr r3, [pc, #16] ; (80026e4 <__NVIC_GetPriorityGrouping+0x18>)
  5219. 80026d2: 68db ldr r3, [r3, #12]
  5220. 80026d4: 0a1b lsrs r3, r3, #8
  5221. 80026d6: f003 0307 and.w r3, r3, #7
  5222. }
  5223. 80026da: 4618 mov r0, r3
  5224. 80026dc: 46bd mov sp, r7
  5225. 80026de: bc80 pop {r7}
  5226. 80026e0: 4770 bx lr
  5227. 80026e2: bf00 nop
  5228. 80026e4: e000ed00 .word 0xe000ed00
  5229. 080026e8 <__NVIC_EnableIRQ>:
  5230. \details Enables a device specific interrupt in the NVIC interrupt controller.
  5231. \param [in] IRQn Device specific interrupt number.
  5232. \note IRQn must not be negative.
  5233. */
  5234. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  5235. {
  5236. 80026e8: b480 push {r7}
  5237. 80026ea: b083 sub sp, #12
  5238. 80026ec: af00 add r7, sp, #0
  5239. 80026ee: 4603 mov r3, r0
  5240. 80026f0: 71fb strb r3, [r7, #7]
  5241. if ((int32_t)(IRQn) >= 0)
  5242. 80026f2: f997 3007 ldrsb.w r3, [r7, #7]
  5243. 80026f6: 2b00 cmp r3, #0
  5244. 80026f8: db0b blt.n 8002712 <__NVIC_EnableIRQ+0x2a>
  5245. {
  5246. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  5247. 80026fa: 79fb ldrb r3, [r7, #7]
  5248. 80026fc: f003 021f and.w r2, r3, #31
  5249. 8002700: 4906 ldr r1, [pc, #24] ; (800271c <__NVIC_EnableIRQ+0x34>)
  5250. 8002702: f997 3007 ldrsb.w r3, [r7, #7]
  5251. 8002706: 095b lsrs r3, r3, #5
  5252. 8002708: 2001 movs r0, #1
  5253. 800270a: fa00 f202 lsl.w r2, r0, r2
  5254. 800270e: f841 2023 str.w r2, [r1, r3, lsl #2]
  5255. }
  5256. }
  5257. 8002712: bf00 nop
  5258. 8002714: 370c adds r7, #12
  5259. 8002716: 46bd mov sp, r7
  5260. 8002718: bc80 pop {r7}
  5261. 800271a: 4770 bx lr
  5262. 800271c: e000e100 .word 0xe000e100
  5263. 08002720 <__NVIC_SetPriority>:
  5264. \param [in] IRQn Interrupt number.
  5265. \param [in] priority Priority to set.
  5266. \note The priority cannot be set for every processor exception.
  5267. */
  5268. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  5269. {
  5270. 8002720: b480 push {r7}
  5271. 8002722: b083 sub sp, #12
  5272. 8002724: af00 add r7, sp, #0
  5273. 8002726: 4603 mov r3, r0
  5274. 8002728: 6039 str r1, [r7, #0]
  5275. 800272a: 71fb strb r3, [r7, #7]
  5276. if ((int32_t)(IRQn) >= 0)
  5277. 800272c: f997 3007 ldrsb.w r3, [r7, #7]
  5278. 8002730: 2b00 cmp r3, #0
  5279. 8002732: db0a blt.n 800274a <__NVIC_SetPriority+0x2a>
  5280. {
  5281. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  5282. 8002734: 683b ldr r3, [r7, #0]
  5283. 8002736: b2da uxtb r2, r3
  5284. 8002738: 490c ldr r1, [pc, #48] ; (800276c <__NVIC_SetPriority+0x4c>)
  5285. 800273a: f997 3007 ldrsb.w r3, [r7, #7]
  5286. 800273e: 0112 lsls r2, r2, #4
  5287. 8002740: b2d2 uxtb r2, r2
  5288. 8002742: 440b add r3, r1
  5289. 8002744: f883 2300 strb.w r2, [r3, #768] ; 0x300
  5290. }
  5291. else
  5292. {
  5293. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  5294. }
  5295. }
  5296. 8002748: e00a b.n 8002760 <__NVIC_SetPriority+0x40>
  5297. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  5298. 800274a: 683b ldr r3, [r7, #0]
  5299. 800274c: b2da uxtb r2, r3
  5300. 800274e: 4908 ldr r1, [pc, #32] ; (8002770 <__NVIC_SetPriority+0x50>)
  5301. 8002750: 79fb ldrb r3, [r7, #7]
  5302. 8002752: f003 030f and.w r3, r3, #15
  5303. 8002756: 3b04 subs r3, #4
  5304. 8002758: 0112 lsls r2, r2, #4
  5305. 800275a: b2d2 uxtb r2, r2
  5306. 800275c: 440b add r3, r1
  5307. 800275e: 761a strb r2, [r3, #24]
  5308. }
  5309. 8002760: bf00 nop
  5310. 8002762: 370c adds r7, #12
  5311. 8002764: 46bd mov sp, r7
  5312. 8002766: bc80 pop {r7}
  5313. 8002768: 4770 bx lr
  5314. 800276a: bf00 nop
  5315. 800276c: e000e100 .word 0xe000e100
  5316. 8002770: e000ed00 .word 0xe000ed00
  5317. 08002774 <NVIC_EncodePriority>:
  5318. \param [in] PreemptPriority Preemptive priority value (starting from 0).
  5319. \param [in] SubPriority Subpriority value (starting from 0).
  5320. \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
  5321. */
  5322. __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
  5323. {
  5324. 8002774: b480 push {r7}
  5325. 8002776: b089 sub sp, #36 ; 0x24
  5326. 8002778: af00 add r7, sp, #0
  5327. 800277a: 60f8 str r0, [r7, #12]
  5328. 800277c: 60b9 str r1, [r7, #8]
  5329. 800277e: 607a str r2, [r7, #4]
  5330. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  5331. 8002780: 68fb ldr r3, [r7, #12]
  5332. 8002782: f003 0307 and.w r3, r3, #7
  5333. 8002786: 61fb str r3, [r7, #28]
  5334. uint32_t PreemptPriorityBits;
  5335. uint32_t SubPriorityBits;
  5336. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  5337. 8002788: 69fb ldr r3, [r7, #28]
  5338. 800278a: f1c3 0307 rsb r3, r3, #7
  5339. 800278e: 2b04 cmp r3, #4
  5340. 8002790: bf28 it cs
  5341. 8002792: 2304 movcs r3, #4
  5342. 8002794: 61bb str r3, [r7, #24]
  5343. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  5344. 8002796: 69fb ldr r3, [r7, #28]
  5345. 8002798: 3304 adds r3, #4
  5346. 800279a: 2b06 cmp r3, #6
  5347. 800279c: d902 bls.n 80027a4 <NVIC_EncodePriority+0x30>
  5348. 800279e: 69fb ldr r3, [r7, #28]
  5349. 80027a0: 3b03 subs r3, #3
  5350. 80027a2: e000 b.n 80027a6 <NVIC_EncodePriority+0x32>
  5351. 80027a4: 2300 movs r3, #0
  5352. 80027a6: 617b str r3, [r7, #20]
  5353. return (
  5354. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  5355. 80027a8: f04f 32ff mov.w r2, #4294967295
  5356. 80027ac: 69bb ldr r3, [r7, #24]
  5357. 80027ae: fa02 f303 lsl.w r3, r2, r3
  5358. 80027b2: 43da mvns r2, r3
  5359. 80027b4: 68bb ldr r3, [r7, #8]
  5360. 80027b6: 401a ands r2, r3
  5361. 80027b8: 697b ldr r3, [r7, #20]
  5362. 80027ba: 409a lsls r2, r3
  5363. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  5364. 80027bc: f04f 31ff mov.w r1, #4294967295
  5365. 80027c0: 697b ldr r3, [r7, #20]
  5366. 80027c2: fa01 f303 lsl.w r3, r1, r3
  5367. 80027c6: 43d9 mvns r1, r3
  5368. 80027c8: 687b ldr r3, [r7, #4]
  5369. 80027ca: 400b ands r3, r1
  5370. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  5371. 80027cc: 4313 orrs r3, r2
  5372. );
  5373. }
  5374. 80027ce: 4618 mov r0, r3
  5375. 80027d0: 3724 adds r7, #36 ; 0x24
  5376. 80027d2: 46bd mov sp, r7
  5377. 80027d4: bc80 pop {r7}
  5378. 80027d6: 4770 bx lr
  5379. 080027d8 <HAL_NVIC_SetPriorityGrouping>:
  5380. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  5381. * The pending IRQ priority will be managed only by the subpriority.
  5382. * @retval None
  5383. */
  5384. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  5385. {
  5386. 80027d8: b580 push {r7, lr}
  5387. 80027da: b082 sub sp, #8
  5388. 80027dc: af00 add r7, sp, #0
  5389. 80027de: 6078 str r0, [r7, #4]
  5390. /* Check the parameters */
  5391. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  5392. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  5393. NVIC_SetPriorityGrouping(PriorityGroup);
  5394. 80027e0: 6878 ldr r0, [r7, #4]
  5395. 80027e2: f7ff ff4f bl 8002684 <__NVIC_SetPriorityGrouping>
  5396. }
  5397. 80027e6: bf00 nop
  5398. 80027e8: 3708 adds r7, #8
  5399. 80027ea: 46bd mov sp, r7
  5400. 80027ec: bd80 pop {r7, pc}
  5401. 080027ee <HAL_NVIC_SetPriority>:
  5402. * This parameter can be a value between 0 and 15
  5403. * A lower priority value indicates a higher priority.
  5404. * @retval None
  5405. */
  5406. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  5407. {
  5408. 80027ee: b580 push {r7, lr}
  5409. 80027f0: b086 sub sp, #24
  5410. 80027f2: af00 add r7, sp, #0
  5411. 80027f4: 4603 mov r3, r0
  5412. 80027f6: 60b9 str r1, [r7, #8]
  5413. 80027f8: 607a str r2, [r7, #4]
  5414. 80027fa: 73fb strb r3, [r7, #15]
  5415. uint32_t prioritygroup = 0x00U;
  5416. 80027fc: 2300 movs r3, #0
  5417. 80027fe: 617b str r3, [r7, #20]
  5418. /* Check the parameters */
  5419. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  5420. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  5421. prioritygroup = NVIC_GetPriorityGrouping();
  5422. 8002800: f7ff ff64 bl 80026cc <__NVIC_GetPriorityGrouping>
  5423. 8002804: 6178 str r0, [r7, #20]
  5424. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  5425. 8002806: 687a ldr r2, [r7, #4]
  5426. 8002808: 68b9 ldr r1, [r7, #8]
  5427. 800280a: 6978 ldr r0, [r7, #20]
  5428. 800280c: f7ff ffb2 bl 8002774 <NVIC_EncodePriority>
  5429. 8002810: 4602 mov r2, r0
  5430. 8002812: f997 300f ldrsb.w r3, [r7, #15]
  5431. 8002816: 4611 mov r1, r2
  5432. 8002818: 4618 mov r0, r3
  5433. 800281a: f7ff ff81 bl 8002720 <__NVIC_SetPriority>
  5434. }
  5435. 800281e: bf00 nop
  5436. 8002820: 3718 adds r7, #24
  5437. 8002822: 46bd mov sp, r7
  5438. 8002824: bd80 pop {r7, pc}
  5439. 08002826 <HAL_NVIC_EnableIRQ>:
  5440. * This parameter can be an enumerator of IRQn_Type enumeration
  5441. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f10xxx.h))
  5442. * @retval None
  5443. */
  5444. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  5445. {
  5446. 8002826: b580 push {r7, lr}
  5447. 8002828: b082 sub sp, #8
  5448. 800282a: af00 add r7, sp, #0
  5449. 800282c: 4603 mov r3, r0
  5450. 800282e: 71fb strb r3, [r7, #7]
  5451. /* Check the parameters */
  5452. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  5453. /* Enable interrupt */
  5454. NVIC_EnableIRQ(IRQn);
  5455. 8002830: f997 3007 ldrsb.w r3, [r7, #7]
  5456. 8002834: 4618 mov r0, r3
  5457. 8002836: f7ff ff57 bl 80026e8 <__NVIC_EnableIRQ>
  5458. }
  5459. 800283a: bf00 nop
  5460. 800283c: 3708 adds r7, #8
  5461. 800283e: 46bd mov sp, r7
  5462. 8002840: bd80 pop {r7, pc}
  5463. ...
  5464. 08002844 <HAL_DMA_Init>:
  5465. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  5466. * the configuration information for the specified DMA Channel.
  5467. * @retval HAL status
  5468. */
  5469. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  5470. {
  5471. 8002844: b480 push {r7}
  5472. 8002846: b085 sub sp, #20
  5473. 8002848: af00 add r7, sp, #0
  5474. 800284a: 6078 str r0, [r7, #4]
  5475. uint32_t tmp = 0U;
  5476. 800284c: 2300 movs r3, #0
  5477. 800284e: 60fb str r3, [r7, #12]
  5478. /* Check the DMA handle allocation */
  5479. if(hdma == NULL)
  5480. 8002850: 687b ldr r3, [r7, #4]
  5481. 8002852: 2b00 cmp r3, #0
  5482. 8002854: d101 bne.n 800285a <HAL_DMA_Init+0x16>
  5483. {
  5484. return HAL_ERROR;
  5485. 8002856: 2301 movs r3, #1
  5486. 8002858: e043 b.n 80028e2 <HAL_DMA_Init+0x9e>
  5487. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2;
  5488. hdma->DmaBaseAddress = DMA2;
  5489. }
  5490. #else
  5491. /* DMA1 */
  5492. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2;
  5493. 800285a: 687b ldr r3, [r7, #4]
  5494. 800285c: 681b ldr r3, [r3, #0]
  5495. 800285e: 461a mov r2, r3
  5496. 8002860: 4b22 ldr r3, [pc, #136] ; (80028ec <HAL_DMA_Init+0xa8>)
  5497. 8002862: 4413 add r3, r2
  5498. 8002864: 4a22 ldr r2, [pc, #136] ; (80028f0 <HAL_DMA_Init+0xac>)
  5499. 8002866: fba2 2303 umull r2, r3, r2, r3
  5500. 800286a: 091b lsrs r3, r3, #4
  5501. 800286c: 009a lsls r2, r3, #2
  5502. 800286e: 687b ldr r3, [r7, #4]
  5503. 8002870: 641a str r2, [r3, #64] ; 0x40
  5504. hdma->DmaBaseAddress = DMA1;
  5505. 8002872: 687b ldr r3, [r7, #4]
  5506. 8002874: 4a1f ldr r2, [pc, #124] ; (80028f4 <HAL_DMA_Init+0xb0>)
  5507. 8002876: 63da str r2, [r3, #60] ; 0x3c
  5508. #endif /* DMA2 */
  5509. /* Change DMA peripheral state */
  5510. hdma->State = HAL_DMA_STATE_BUSY;
  5511. 8002878: 687b ldr r3, [r7, #4]
  5512. 800287a: 2202 movs r2, #2
  5513. 800287c: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5514. /* Get the CR register value */
  5515. tmp = hdma->Instance->CCR;
  5516. 8002880: 687b ldr r3, [r7, #4]
  5517. 8002882: 681b ldr r3, [r3, #0]
  5518. 8002884: 681b ldr r3, [r3, #0]
  5519. 8002886: 60fb str r3, [r7, #12]
  5520. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */
  5521. tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \
  5522. 8002888: 68fb ldr r3, [r7, #12]
  5523. 800288a: f423 537f bic.w r3, r3, #16320 ; 0x3fc0
  5524. 800288e: f023 0330 bic.w r3, r3, #48 ; 0x30
  5525. 8002892: 60fb str r3, [r7, #12]
  5526. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \
  5527. DMA_CCR_DIR));
  5528. /* Prepare the DMA Channel configuration */
  5529. tmp |= hdma->Init.Direction |
  5530. 8002894: 687b ldr r3, [r7, #4]
  5531. 8002896: 685a ldr r2, [r3, #4]
  5532. hdma->Init.PeriphInc | hdma->Init.MemInc |
  5533. 8002898: 687b ldr r3, [r7, #4]
  5534. 800289a: 689b ldr r3, [r3, #8]
  5535. tmp |= hdma->Init.Direction |
  5536. 800289c: 431a orrs r2, r3
  5537. hdma->Init.PeriphInc | hdma->Init.MemInc |
  5538. 800289e: 687b ldr r3, [r7, #4]
  5539. 80028a0: 68db ldr r3, [r3, #12]
  5540. 80028a2: 431a orrs r2, r3
  5541. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  5542. 80028a4: 687b ldr r3, [r7, #4]
  5543. 80028a6: 691b ldr r3, [r3, #16]
  5544. hdma->Init.PeriphInc | hdma->Init.MemInc |
  5545. 80028a8: 431a orrs r2, r3
  5546. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  5547. 80028aa: 687b ldr r3, [r7, #4]
  5548. 80028ac: 695b ldr r3, [r3, #20]
  5549. 80028ae: 431a orrs r2, r3
  5550. hdma->Init.Mode | hdma->Init.Priority;
  5551. 80028b0: 687b ldr r3, [r7, #4]
  5552. 80028b2: 699b ldr r3, [r3, #24]
  5553. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  5554. 80028b4: 431a orrs r2, r3
  5555. hdma->Init.Mode | hdma->Init.Priority;
  5556. 80028b6: 687b ldr r3, [r7, #4]
  5557. 80028b8: 69db ldr r3, [r3, #28]
  5558. 80028ba: 4313 orrs r3, r2
  5559. tmp |= hdma->Init.Direction |
  5560. 80028bc: 68fa ldr r2, [r7, #12]
  5561. 80028be: 4313 orrs r3, r2
  5562. 80028c0: 60fb str r3, [r7, #12]
  5563. /* Write to DMA Channel CR register */
  5564. hdma->Instance->CCR = tmp;
  5565. 80028c2: 687b ldr r3, [r7, #4]
  5566. 80028c4: 681b ldr r3, [r3, #0]
  5567. 80028c6: 68fa ldr r2, [r7, #12]
  5568. 80028c8: 601a str r2, [r3, #0]
  5569. /* Initialise the error code */
  5570. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  5571. 80028ca: 687b ldr r3, [r7, #4]
  5572. 80028cc: 2200 movs r2, #0
  5573. 80028ce: 639a str r2, [r3, #56] ; 0x38
  5574. /* Initialize the DMA state*/
  5575. hdma->State = HAL_DMA_STATE_READY;
  5576. 80028d0: 687b ldr r3, [r7, #4]
  5577. 80028d2: 2201 movs r2, #1
  5578. 80028d4: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5579. /* Allocate lock resource and initialize it */
  5580. hdma->Lock = HAL_UNLOCKED;
  5581. 80028d8: 687b ldr r3, [r7, #4]
  5582. 80028da: 2200 movs r2, #0
  5583. 80028dc: f883 2020 strb.w r2, [r3, #32]
  5584. return HAL_OK;
  5585. 80028e0: 2300 movs r3, #0
  5586. }
  5587. 80028e2: 4618 mov r0, r3
  5588. 80028e4: 3714 adds r7, #20
  5589. 80028e6: 46bd mov sp, r7
  5590. 80028e8: bc80 pop {r7}
  5591. 80028ea: 4770 bx lr
  5592. 80028ec: bffdfff8 .word 0xbffdfff8
  5593. 80028f0: cccccccd .word 0xcccccccd
  5594. 80028f4: 40020000 .word 0x40020000
  5595. 080028f8 <HAL_DMA_Start_IT>:
  5596. * @param DstAddress: The destination memory Buffer address
  5597. * @param DataLength: The length of data to be transferred from source to destination
  5598. * @retval HAL status
  5599. */
  5600. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  5601. {
  5602. 80028f8: b580 push {r7, lr}
  5603. 80028fa: b086 sub sp, #24
  5604. 80028fc: af00 add r7, sp, #0
  5605. 80028fe: 60f8 str r0, [r7, #12]
  5606. 8002900: 60b9 str r1, [r7, #8]
  5607. 8002902: 607a str r2, [r7, #4]
  5608. 8002904: 603b str r3, [r7, #0]
  5609. HAL_StatusTypeDef status = HAL_OK;
  5610. 8002906: 2300 movs r3, #0
  5611. 8002908: 75fb strb r3, [r7, #23]
  5612. /* Check the parameters */
  5613. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  5614. /* Process locked */
  5615. __HAL_LOCK(hdma);
  5616. 800290a: 68fb ldr r3, [r7, #12]
  5617. 800290c: f893 3020 ldrb.w r3, [r3, #32]
  5618. 8002910: 2b01 cmp r3, #1
  5619. 8002912: d101 bne.n 8002918 <HAL_DMA_Start_IT+0x20>
  5620. 8002914: 2302 movs r3, #2
  5621. 8002916: e04a b.n 80029ae <HAL_DMA_Start_IT+0xb6>
  5622. 8002918: 68fb ldr r3, [r7, #12]
  5623. 800291a: 2201 movs r2, #1
  5624. 800291c: f883 2020 strb.w r2, [r3, #32]
  5625. if(HAL_DMA_STATE_READY == hdma->State)
  5626. 8002920: 68fb ldr r3, [r7, #12]
  5627. 8002922: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5628. 8002926: 2b01 cmp r3, #1
  5629. 8002928: d13a bne.n 80029a0 <HAL_DMA_Start_IT+0xa8>
  5630. {
  5631. /* Change DMA peripheral state */
  5632. hdma->State = HAL_DMA_STATE_BUSY;
  5633. 800292a: 68fb ldr r3, [r7, #12]
  5634. 800292c: 2202 movs r2, #2
  5635. 800292e: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5636. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  5637. 8002932: 68fb ldr r3, [r7, #12]
  5638. 8002934: 2200 movs r2, #0
  5639. 8002936: 639a str r2, [r3, #56] ; 0x38
  5640. /* Disable the peripheral */
  5641. __HAL_DMA_DISABLE(hdma);
  5642. 8002938: 68fb ldr r3, [r7, #12]
  5643. 800293a: 681b ldr r3, [r3, #0]
  5644. 800293c: 681a ldr r2, [r3, #0]
  5645. 800293e: 68fb ldr r3, [r7, #12]
  5646. 8002940: 681b ldr r3, [r3, #0]
  5647. 8002942: f022 0201 bic.w r2, r2, #1
  5648. 8002946: 601a str r2, [r3, #0]
  5649. /* Configure the source, destination address and the data length & clear flags*/
  5650. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  5651. 8002948: 683b ldr r3, [r7, #0]
  5652. 800294a: 687a ldr r2, [r7, #4]
  5653. 800294c: 68b9 ldr r1, [r7, #8]
  5654. 800294e: 68f8 ldr r0, [r7, #12]
  5655. 8002950: f000 f9ae bl 8002cb0 <DMA_SetConfig>
  5656. /* Enable the transfer complete interrupt */
  5657. /* Enable the transfer Error interrupt */
  5658. if(NULL != hdma->XferHalfCpltCallback)
  5659. 8002954: 68fb ldr r3, [r7, #12]
  5660. 8002956: 6adb ldr r3, [r3, #44] ; 0x2c
  5661. 8002958: 2b00 cmp r3, #0
  5662. 800295a: d008 beq.n 800296e <HAL_DMA_Start_IT+0x76>
  5663. {
  5664. /* Enable the Half transfer complete interrupt as well */
  5665. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  5666. 800295c: 68fb ldr r3, [r7, #12]
  5667. 800295e: 681b ldr r3, [r3, #0]
  5668. 8002960: 681a ldr r2, [r3, #0]
  5669. 8002962: 68fb ldr r3, [r7, #12]
  5670. 8002964: 681b ldr r3, [r3, #0]
  5671. 8002966: f042 020e orr.w r2, r2, #14
  5672. 800296a: 601a str r2, [r3, #0]
  5673. 800296c: e00f b.n 800298e <HAL_DMA_Start_IT+0x96>
  5674. }
  5675. else
  5676. {
  5677. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  5678. 800296e: 68fb ldr r3, [r7, #12]
  5679. 8002970: 681b ldr r3, [r3, #0]
  5680. 8002972: 681a ldr r2, [r3, #0]
  5681. 8002974: 68fb ldr r3, [r7, #12]
  5682. 8002976: 681b ldr r3, [r3, #0]
  5683. 8002978: f022 0204 bic.w r2, r2, #4
  5684. 800297c: 601a str r2, [r3, #0]
  5685. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  5686. 800297e: 68fb ldr r3, [r7, #12]
  5687. 8002980: 681b ldr r3, [r3, #0]
  5688. 8002982: 681a ldr r2, [r3, #0]
  5689. 8002984: 68fb ldr r3, [r7, #12]
  5690. 8002986: 681b ldr r3, [r3, #0]
  5691. 8002988: f042 020a orr.w r2, r2, #10
  5692. 800298c: 601a str r2, [r3, #0]
  5693. }
  5694. /* Enable the Peripheral */
  5695. __HAL_DMA_ENABLE(hdma);
  5696. 800298e: 68fb ldr r3, [r7, #12]
  5697. 8002990: 681b ldr r3, [r3, #0]
  5698. 8002992: 681a ldr r2, [r3, #0]
  5699. 8002994: 68fb ldr r3, [r7, #12]
  5700. 8002996: 681b ldr r3, [r3, #0]
  5701. 8002998: f042 0201 orr.w r2, r2, #1
  5702. 800299c: 601a str r2, [r3, #0]
  5703. 800299e: e005 b.n 80029ac <HAL_DMA_Start_IT+0xb4>
  5704. }
  5705. else
  5706. {
  5707. /* Process Unlocked */
  5708. __HAL_UNLOCK(hdma);
  5709. 80029a0: 68fb ldr r3, [r7, #12]
  5710. 80029a2: 2200 movs r2, #0
  5711. 80029a4: f883 2020 strb.w r2, [r3, #32]
  5712. /* Remain BUSY */
  5713. status = HAL_BUSY;
  5714. 80029a8: 2302 movs r3, #2
  5715. 80029aa: 75fb strb r3, [r7, #23]
  5716. }
  5717. return status;
  5718. 80029ac: 7dfb ldrb r3, [r7, #23]
  5719. }
  5720. 80029ae: 4618 mov r0, r3
  5721. 80029b0: 3718 adds r7, #24
  5722. 80029b2: 46bd mov sp, r7
  5723. 80029b4: bd80 pop {r7, pc}
  5724. ...
  5725. 080029b8 <HAL_DMA_Abort_IT>:
  5726. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  5727. * the configuration information for the specified DMA Channel.
  5728. * @retval HAL status
  5729. */
  5730. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  5731. {
  5732. 80029b8: b580 push {r7, lr}
  5733. 80029ba: b084 sub sp, #16
  5734. 80029bc: af00 add r7, sp, #0
  5735. 80029be: 6078 str r0, [r7, #4]
  5736. HAL_StatusTypeDef status = HAL_OK;
  5737. 80029c0: 2300 movs r3, #0
  5738. 80029c2: 73fb strb r3, [r7, #15]
  5739. if(HAL_DMA_STATE_BUSY != hdma->State)
  5740. 80029c4: 687b ldr r3, [r7, #4]
  5741. 80029c6: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5742. 80029ca: 2b02 cmp r3, #2
  5743. 80029cc: d005 beq.n 80029da <HAL_DMA_Abort_IT+0x22>
  5744. {
  5745. /* no transfer ongoing */
  5746. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  5747. 80029ce: 687b ldr r3, [r7, #4]
  5748. 80029d0: 2204 movs r2, #4
  5749. 80029d2: 639a str r2, [r3, #56] ; 0x38
  5750. status = HAL_ERROR;
  5751. 80029d4: 2301 movs r3, #1
  5752. 80029d6: 73fb strb r3, [r7, #15]
  5753. 80029d8: e051 b.n 8002a7e <HAL_DMA_Abort_IT+0xc6>
  5754. }
  5755. else
  5756. {
  5757. /* Disable DMA IT */
  5758. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  5759. 80029da: 687b ldr r3, [r7, #4]
  5760. 80029dc: 681b ldr r3, [r3, #0]
  5761. 80029de: 681a ldr r2, [r3, #0]
  5762. 80029e0: 687b ldr r3, [r7, #4]
  5763. 80029e2: 681b ldr r3, [r3, #0]
  5764. 80029e4: f022 020e bic.w r2, r2, #14
  5765. 80029e8: 601a str r2, [r3, #0]
  5766. /* Disable the channel */
  5767. __HAL_DMA_DISABLE(hdma);
  5768. 80029ea: 687b ldr r3, [r7, #4]
  5769. 80029ec: 681b ldr r3, [r3, #0]
  5770. 80029ee: 681a ldr r2, [r3, #0]
  5771. 80029f0: 687b ldr r3, [r7, #4]
  5772. 80029f2: 681b ldr r3, [r3, #0]
  5773. 80029f4: f022 0201 bic.w r2, r2, #1
  5774. 80029f8: 601a str r2, [r3, #0]
  5775. /* Clear all flags */
  5776. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma));
  5777. 80029fa: 687b ldr r3, [r7, #4]
  5778. 80029fc: 681b ldr r3, [r3, #0]
  5779. 80029fe: 4a22 ldr r2, [pc, #136] ; (8002a88 <HAL_DMA_Abort_IT+0xd0>)
  5780. 8002a00: 4293 cmp r3, r2
  5781. 8002a02: d029 beq.n 8002a58 <HAL_DMA_Abort_IT+0xa0>
  5782. 8002a04: 687b ldr r3, [r7, #4]
  5783. 8002a06: 681b ldr r3, [r3, #0]
  5784. 8002a08: 4a20 ldr r2, [pc, #128] ; (8002a8c <HAL_DMA_Abort_IT+0xd4>)
  5785. 8002a0a: 4293 cmp r3, r2
  5786. 8002a0c: d022 beq.n 8002a54 <HAL_DMA_Abort_IT+0x9c>
  5787. 8002a0e: 687b ldr r3, [r7, #4]
  5788. 8002a10: 681b ldr r3, [r3, #0]
  5789. 8002a12: 4a1f ldr r2, [pc, #124] ; (8002a90 <HAL_DMA_Abort_IT+0xd8>)
  5790. 8002a14: 4293 cmp r3, r2
  5791. 8002a16: d01a beq.n 8002a4e <HAL_DMA_Abort_IT+0x96>
  5792. 8002a18: 687b ldr r3, [r7, #4]
  5793. 8002a1a: 681b ldr r3, [r3, #0]
  5794. 8002a1c: 4a1d ldr r2, [pc, #116] ; (8002a94 <HAL_DMA_Abort_IT+0xdc>)
  5795. 8002a1e: 4293 cmp r3, r2
  5796. 8002a20: d012 beq.n 8002a48 <HAL_DMA_Abort_IT+0x90>
  5797. 8002a22: 687b ldr r3, [r7, #4]
  5798. 8002a24: 681b ldr r3, [r3, #0]
  5799. 8002a26: 4a1c ldr r2, [pc, #112] ; (8002a98 <HAL_DMA_Abort_IT+0xe0>)
  5800. 8002a28: 4293 cmp r3, r2
  5801. 8002a2a: d00a beq.n 8002a42 <HAL_DMA_Abort_IT+0x8a>
  5802. 8002a2c: 687b ldr r3, [r7, #4]
  5803. 8002a2e: 681b ldr r3, [r3, #0]
  5804. 8002a30: 4a1a ldr r2, [pc, #104] ; (8002a9c <HAL_DMA_Abort_IT+0xe4>)
  5805. 8002a32: 4293 cmp r3, r2
  5806. 8002a34: d102 bne.n 8002a3c <HAL_DMA_Abort_IT+0x84>
  5807. 8002a36: f44f 1380 mov.w r3, #1048576 ; 0x100000
  5808. 8002a3a: e00e b.n 8002a5a <HAL_DMA_Abort_IT+0xa2>
  5809. 8002a3c: f04f 7380 mov.w r3, #16777216 ; 0x1000000
  5810. 8002a40: e00b b.n 8002a5a <HAL_DMA_Abort_IT+0xa2>
  5811. 8002a42: f44f 3380 mov.w r3, #65536 ; 0x10000
  5812. 8002a46: e008 b.n 8002a5a <HAL_DMA_Abort_IT+0xa2>
  5813. 8002a48: f44f 5380 mov.w r3, #4096 ; 0x1000
  5814. 8002a4c: e005 b.n 8002a5a <HAL_DMA_Abort_IT+0xa2>
  5815. 8002a4e: f44f 7380 mov.w r3, #256 ; 0x100
  5816. 8002a52: e002 b.n 8002a5a <HAL_DMA_Abort_IT+0xa2>
  5817. 8002a54: 2310 movs r3, #16
  5818. 8002a56: e000 b.n 8002a5a <HAL_DMA_Abort_IT+0xa2>
  5819. 8002a58: 2301 movs r3, #1
  5820. 8002a5a: 4a11 ldr r2, [pc, #68] ; (8002aa0 <HAL_DMA_Abort_IT+0xe8>)
  5821. 8002a5c: 6053 str r3, [r2, #4]
  5822. /* Change the DMA state */
  5823. hdma->State = HAL_DMA_STATE_READY;
  5824. 8002a5e: 687b ldr r3, [r7, #4]
  5825. 8002a60: 2201 movs r2, #1
  5826. 8002a62: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5827. /* Process Unlocked */
  5828. __HAL_UNLOCK(hdma);
  5829. 8002a66: 687b ldr r3, [r7, #4]
  5830. 8002a68: 2200 movs r2, #0
  5831. 8002a6a: f883 2020 strb.w r2, [r3, #32]
  5832. /* Call User Abort callback */
  5833. if(hdma->XferAbortCallback != NULL)
  5834. 8002a6e: 687b ldr r3, [r7, #4]
  5835. 8002a70: 6b5b ldr r3, [r3, #52] ; 0x34
  5836. 8002a72: 2b00 cmp r3, #0
  5837. 8002a74: d003 beq.n 8002a7e <HAL_DMA_Abort_IT+0xc6>
  5838. {
  5839. hdma->XferAbortCallback(hdma);
  5840. 8002a76: 687b ldr r3, [r7, #4]
  5841. 8002a78: 6b5b ldr r3, [r3, #52] ; 0x34
  5842. 8002a7a: 6878 ldr r0, [r7, #4]
  5843. 8002a7c: 4798 blx r3
  5844. }
  5845. }
  5846. return status;
  5847. 8002a7e: 7bfb ldrb r3, [r7, #15]
  5848. }
  5849. 8002a80: 4618 mov r0, r3
  5850. 8002a82: 3710 adds r7, #16
  5851. 8002a84: 46bd mov sp, r7
  5852. 8002a86: bd80 pop {r7, pc}
  5853. 8002a88: 40020008 .word 0x40020008
  5854. 8002a8c: 4002001c .word 0x4002001c
  5855. 8002a90: 40020030 .word 0x40020030
  5856. 8002a94: 40020044 .word 0x40020044
  5857. 8002a98: 40020058 .word 0x40020058
  5858. 8002a9c: 4002006c .word 0x4002006c
  5859. 8002aa0: 40020000 .word 0x40020000
  5860. 08002aa4 <HAL_DMA_IRQHandler>:
  5861. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  5862. * the configuration information for the specified DMA Channel.
  5863. * @retval None
  5864. */
  5865. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  5866. {
  5867. 8002aa4: b580 push {r7, lr}
  5868. 8002aa6: b084 sub sp, #16
  5869. 8002aa8: af00 add r7, sp, #0
  5870. 8002aaa: 6078 str r0, [r7, #4]
  5871. uint32_t flag_it = hdma->DmaBaseAddress->ISR;
  5872. 8002aac: 687b ldr r3, [r7, #4]
  5873. 8002aae: 6bdb ldr r3, [r3, #60] ; 0x3c
  5874. 8002ab0: 681b ldr r3, [r3, #0]
  5875. 8002ab2: 60fb str r3, [r7, #12]
  5876. uint32_t source_it = hdma->Instance->CCR;
  5877. 8002ab4: 687b ldr r3, [r7, #4]
  5878. 8002ab6: 681b ldr r3, [r3, #0]
  5879. 8002ab8: 681b ldr r3, [r3, #0]
  5880. 8002aba: 60bb str r3, [r7, #8]
  5881. /* Half Transfer Complete Interrupt management ******************************/
  5882. if (((flag_it & (DMA_FLAG_HT1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_HT) != RESET))
  5883. 8002abc: 687b ldr r3, [r7, #4]
  5884. 8002abe: 6c1b ldr r3, [r3, #64] ; 0x40
  5885. 8002ac0: 2204 movs r2, #4
  5886. 8002ac2: 409a lsls r2, r3
  5887. 8002ac4: 68fb ldr r3, [r7, #12]
  5888. 8002ac6: 4013 ands r3, r2
  5889. 8002ac8: 2b00 cmp r3, #0
  5890. 8002aca: d04f beq.n 8002b6c <HAL_DMA_IRQHandler+0xc8>
  5891. 8002acc: 68bb ldr r3, [r7, #8]
  5892. 8002ace: f003 0304 and.w r3, r3, #4
  5893. 8002ad2: 2b00 cmp r3, #0
  5894. 8002ad4: d04a beq.n 8002b6c <HAL_DMA_IRQHandler+0xc8>
  5895. {
  5896. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  5897. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  5898. 8002ad6: 687b ldr r3, [r7, #4]
  5899. 8002ad8: 681b ldr r3, [r3, #0]
  5900. 8002ada: 681b ldr r3, [r3, #0]
  5901. 8002adc: f003 0320 and.w r3, r3, #32
  5902. 8002ae0: 2b00 cmp r3, #0
  5903. 8002ae2: d107 bne.n 8002af4 <HAL_DMA_IRQHandler+0x50>
  5904. {
  5905. /* Disable the half transfer interrupt */
  5906. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  5907. 8002ae4: 687b ldr r3, [r7, #4]
  5908. 8002ae6: 681b ldr r3, [r3, #0]
  5909. 8002ae8: 681a ldr r2, [r3, #0]
  5910. 8002aea: 687b ldr r3, [r7, #4]
  5911. 8002aec: 681b ldr r3, [r3, #0]
  5912. 8002aee: f022 0204 bic.w r2, r2, #4
  5913. 8002af2: 601a str r2, [r3, #0]
  5914. }
  5915. /* Clear the half transfer complete flag */
  5916. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma));
  5917. 8002af4: 687b ldr r3, [r7, #4]
  5918. 8002af6: 681b ldr r3, [r3, #0]
  5919. 8002af8: 4a66 ldr r2, [pc, #408] ; (8002c94 <HAL_DMA_IRQHandler+0x1f0>)
  5920. 8002afa: 4293 cmp r3, r2
  5921. 8002afc: d029 beq.n 8002b52 <HAL_DMA_IRQHandler+0xae>
  5922. 8002afe: 687b ldr r3, [r7, #4]
  5923. 8002b00: 681b ldr r3, [r3, #0]
  5924. 8002b02: 4a65 ldr r2, [pc, #404] ; (8002c98 <HAL_DMA_IRQHandler+0x1f4>)
  5925. 8002b04: 4293 cmp r3, r2
  5926. 8002b06: d022 beq.n 8002b4e <HAL_DMA_IRQHandler+0xaa>
  5927. 8002b08: 687b ldr r3, [r7, #4]
  5928. 8002b0a: 681b ldr r3, [r3, #0]
  5929. 8002b0c: 4a63 ldr r2, [pc, #396] ; (8002c9c <HAL_DMA_IRQHandler+0x1f8>)
  5930. 8002b0e: 4293 cmp r3, r2
  5931. 8002b10: d01a beq.n 8002b48 <HAL_DMA_IRQHandler+0xa4>
  5932. 8002b12: 687b ldr r3, [r7, #4]
  5933. 8002b14: 681b ldr r3, [r3, #0]
  5934. 8002b16: 4a62 ldr r2, [pc, #392] ; (8002ca0 <HAL_DMA_IRQHandler+0x1fc>)
  5935. 8002b18: 4293 cmp r3, r2
  5936. 8002b1a: d012 beq.n 8002b42 <HAL_DMA_IRQHandler+0x9e>
  5937. 8002b1c: 687b ldr r3, [r7, #4]
  5938. 8002b1e: 681b ldr r3, [r3, #0]
  5939. 8002b20: 4a60 ldr r2, [pc, #384] ; (8002ca4 <HAL_DMA_IRQHandler+0x200>)
  5940. 8002b22: 4293 cmp r3, r2
  5941. 8002b24: d00a beq.n 8002b3c <HAL_DMA_IRQHandler+0x98>
  5942. 8002b26: 687b ldr r3, [r7, #4]
  5943. 8002b28: 681b ldr r3, [r3, #0]
  5944. 8002b2a: 4a5f ldr r2, [pc, #380] ; (8002ca8 <HAL_DMA_IRQHandler+0x204>)
  5945. 8002b2c: 4293 cmp r3, r2
  5946. 8002b2e: d102 bne.n 8002b36 <HAL_DMA_IRQHandler+0x92>
  5947. 8002b30: f44f 0380 mov.w r3, #4194304 ; 0x400000
  5948. 8002b34: e00e b.n 8002b54 <HAL_DMA_IRQHandler+0xb0>
  5949. 8002b36: f04f 6380 mov.w r3, #67108864 ; 0x4000000
  5950. 8002b3a: e00b b.n 8002b54 <HAL_DMA_IRQHandler+0xb0>
  5951. 8002b3c: f44f 2380 mov.w r3, #262144 ; 0x40000
  5952. 8002b40: e008 b.n 8002b54 <HAL_DMA_IRQHandler+0xb0>
  5953. 8002b42: f44f 4380 mov.w r3, #16384 ; 0x4000
  5954. 8002b46: e005 b.n 8002b54 <HAL_DMA_IRQHandler+0xb0>
  5955. 8002b48: f44f 6380 mov.w r3, #1024 ; 0x400
  5956. 8002b4c: e002 b.n 8002b54 <HAL_DMA_IRQHandler+0xb0>
  5957. 8002b4e: 2340 movs r3, #64 ; 0x40
  5958. 8002b50: e000 b.n 8002b54 <HAL_DMA_IRQHandler+0xb0>
  5959. 8002b52: 2304 movs r3, #4
  5960. 8002b54: 4a55 ldr r2, [pc, #340] ; (8002cac <HAL_DMA_IRQHandler+0x208>)
  5961. 8002b56: 6053 str r3, [r2, #4]
  5962. /* DMA peripheral state is not updated in Half Transfer */
  5963. /* but in Transfer Complete case */
  5964. if(hdma->XferHalfCpltCallback != NULL)
  5965. 8002b58: 687b ldr r3, [r7, #4]
  5966. 8002b5a: 6adb ldr r3, [r3, #44] ; 0x2c
  5967. 8002b5c: 2b00 cmp r3, #0
  5968. 8002b5e: f000 8094 beq.w 8002c8a <HAL_DMA_IRQHandler+0x1e6>
  5969. {
  5970. /* Half transfer callback */
  5971. hdma->XferHalfCpltCallback(hdma);
  5972. 8002b62: 687b ldr r3, [r7, #4]
  5973. 8002b64: 6adb ldr r3, [r3, #44] ; 0x2c
  5974. 8002b66: 6878 ldr r0, [r7, #4]
  5975. 8002b68: 4798 blx r3
  5976. if(hdma->XferHalfCpltCallback != NULL)
  5977. 8002b6a: e08e b.n 8002c8a <HAL_DMA_IRQHandler+0x1e6>
  5978. }
  5979. }
  5980. /* Transfer Complete Interrupt management ***********************************/
  5981. else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET))
  5982. 8002b6c: 687b ldr r3, [r7, #4]
  5983. 8002b6e: 6c1b ldr r3, [r3, #64] ; 0x40
  5984. 8002b70: 2202 movs r2, #2
  5985. 8002b72: 409a lsls r2, r3
  5986. 8002b74: 68fb ldr r3, [r7, #12]
  5987. 8002b76: 4013 ands r3, r2
  5988. 8002b78: 2b00 cmp r3, #0
  5989. 8002b7a: d056 beq.n 8002c2a <HAL_DMA_IRQHandler+0x186>
  5990. 8002b7c: 68bb ldr r3, [r7, #8]
  5991. 8002b7e: f003 0302 and.w r3, r3, #2
  5992. 8002b82: 2b00 cmp r3, #0
  5993. 8002b84: d051 beq.n 8002c2a <HAL_DMA_IRQHandler+0x186>
  5994. {
  5995. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  5996. 8002b86: 687b ldr r3, [r7, #4]
  5997. 8002b88: 681b ldr r3, [r3, #0]
  5998. 8002b8a: 681b ldr r3, [r3, #0]
  5999. 8002b8c: f003 0320 and.w r3, r3, #32
  6000. 8002b90: 2b00 cmp r3, #0
  6001. 8002b92: d10b bne.n 8002bac <HAL_DMA_IRQHandler+0x108>
  6002. {
  6003. /* Disable the transfer complete and error interrupt */
  6004. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  6005. 8002b94: 687b ldr r3, [r7, #4]
  6006. 8002b96: 681b ldr r3, [r3, #0]
  6007. 8002b98: 681a ldr r2, [r3, #0]
  6008. 8002b9a: 687b ldr r3, [r7, #4]
  6009. 8002b9c: 681b ldr r3, [r3, #0]
  6010. 8002b9e: f022 020a bic.w r2, r2, #10
  6011. 8002ba2: 601a str r2, [r3, #0]
  6012. /* Change the DMA state */
  6013. hdma->State = HAL_DMA_STATE_READY;
  6014. 8002ba4: 687b ldr r3, [r7, #4]
  6015. 8002ba6: 2201 movs r2, #1
  6016. 8002ba8: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6017. }
  6018. /* Clear the transfer complete flag */
  6019. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_TC_FLAG_INDEX(hdma));
  6020. 8002bac: 687b ldr r3, [r7, #4]
  6021. 8002bae: 681b ldr r3, [r3, #0]
  6022. 8002bb0: 4a38 ldr r2, [pc, #224] ; (8002c94 <HAL_DMA_IRQHandler+0x1f0>)
  6023. 8002bb2: 4293 cmp r3, r2
  6024. 8002bb4: d029 beq.n 8002c0a <HAL_DMA_IRQHandler+0x166>
  6025. 8002bb6: 687b ldr r3, [r7, #4]
  6026. 8002bb8: 681b ldr r3, [r3, #0]
  6027. 8002bba: 4a37 ldr r2, [pc, #220] ; (8002c98 <HAL_DMA_IRQHandler+0x1f4>)
  6028. 8002bbc: 4293 cmp r3, r2
  6029. 8002bbe: d022 beq.n 8002c06 <HAL_DMA_IRQHandler+0x162>
  6030. 8002bc0: 687b ldr r3, [r7, #4]
  6031. 8002bc2: 681b ldr r3, [r3, #0]
  6032. 8002bc4: 4a35 ldr r2, [pc, #212] ; (8002c9c <HAL_DMA_IRQHandler+0x1f8>)
  6033. 8002bc6: 4293 cmp r3, r2
  6034. 8002bc8: d01a beq.n 8002c00 <HAL_DMA_IRQHandler+0x15c>
  6035. 8002bca: 687b ldr r3, [r7, #4]
  6036. 8002bcc: 681b ldr r3, [r3, #0]
  6037. 8002bce: 4a34 ldr r2, [pc, #208] ; (8002ca0 <HAL_DMA_IRQHandler+0x1fc>)
  6038. 8002bd0: 4293 cmp r3, r2
  6039. 8002bd2: d012 beq.n 8002bfa <HAL_DMA_IRQHandler+0x156>
  6040. 8002bd4: 687b ldr r3, [r7, #4]
  6041. 8002bd6: 681b ldr r3, [r3, #0]
  6042. 8002bd8: 4a32 ldr r2, [pc, #200] ; (8002ca4 <HAL_DMA_IRQHandler+0x200>)
  6043. 8002bda: 4293 cmp r3, r2
  6044. 8002bdc: d00a beq.n 8002bf4 <HAL_DMA_IRQHandler+0x150>
  6045. 8002bde: 687b ldr r3, [r7, #4]
  6046. 8002be0: 681b ldr r3, [r3, #0]
  6047. 8002be2: 4a31 ldr r2, [pc, #196] ; (8002ca8 <HAL_DMA_IRQHandler+0x204>)
  6048. 8002be4: 4293 cmp r3, r2
  6049. 8002be6: d102 bne.n 8002bee <HAL_DMA_IRQHandler+0x14a>
  6050. 8002be8: f44f 1300 mov.w r3, #2097152 ; 0x200000
  6051. 8002bec: e00e b.n 8002c0c <HAL_DMA_IRQHandler+0x168>
  6052. 8002bee: f04f 7300 mov.w r3, #33554432 ; 0x2000000
  6053. 8002bf2: e00b b.n 8002c0c <HAL_DMA_IRQHandler+0x168>
  6054. 8002bf4: f44f 3300 mov.w r3, #131072 ; 0x20000
  6055. 8002bf8: e008 b.n 8002c0c <HAL_DMA_IRQHandler+0x168>
  6056. 8002bfa: f44f 5300 mov.w r3, #8192 ; 0x2000
  6057. 8002bfe: e005 b.n 8002c0c <HAL_DMA_IRQHandler+0x168>
  6058. 8002c00: f44f 7300 mov.w r3, #512 ; 0x200
  6059. 8002c04: e002 b.n 8002c0c <HAL_DMA_IRQHandler+0x168>
  6060. 8002c06: 2320 movs r3, #32
  6061. 8002c08: e000 b.n 8002c0c <HAL_DMA_IRQHandler+0x168>
  6062. 8002c0a: 2302 movs r3, #2
  6063. 8002c0c: 4a27 ldr r2, [pc, #156] ; (8002cac <HAL_DMA_IRQHandler+0x208>)
  6064. 8002c0e: 6053 str r3, [r2, #4]
  6065. /* Process Unlocked */
  6066. __HAL_UNLOCK(hdma);
  6067. 8002c10: 687b ldr r3, [r7, #4]
  6068. 8002c12: 2200 movs r2, #0
  6069. 8002c14: f883 2020 strb.w r2, [r3, #32]
  6070. if(hdma->XferCpltCallback != NULL)
  6071. 8002c18: 687b ldr r3, [r7, #4]
  6072. 8002c1a: 6a9b ldr r3, [r3, #40] ; 0x28
  6073. 8002c1c: 2b00 cmp r3, #0
  6074. 8002c1e: d034 beq.n 8002c8a <HAL_DMA_IRQHandler+0x1e6>
  6075. {
  6076. /* Transfer complete callback */
  6077. hdma->XferCpltCallback(hdma);
  6078. 8002c20: 687b ldr r3, [r7, #4]
  6079. 8002c22: 6a9b ldr r3, [r3, #40] ; 0x28
  6080. 8002c24: 6878 ldr r0, [r7, #4]
  6081. 8002c26: 4798 blx r3
  6082. if(hdma->XferCpltCallback != NULL)
  6083. 8002c28: e02f b.n 8002c8a <HAL_DMA_IRQHandler+0x1e6>
  6084. }
  6085. }
  6086. /* Transfer Error Interrupt management **************************************/
  6087. else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE)))
  6088. 8002c2a: 687b ldr r3, [r7, #4]
  6089. 8002c2c: 6c1b ldr r3, [r3, #64] ; 0x40
  6090. 8002c2e: 2208 movs r2, #8
  6091. 8002c30: 409a lsls r2, r3
  6092. 8002c32: 68fb ldr r3, [r7, #12]
  6093. 8002c34: 4013 ands r3, r2
  6094. 8002c36: 2b00 cmp r3, #0
  6095. 8002c38: d028 beq.n 8002c8c <HAL_DMA_IRQHandler+0x1e8>
  6096. 8002c3a: 68bb ldr r3, [r7, #8]
  6097. 8002c3c: f003 0308 and.w r3, r3, #8
  6098. 8002c40: 2b00 cmp r3, #0
  6099. 8002c42: d023 beq.n 8002c8c <HAL_DMA_IRQHandler+0x1e8>
  6100. {
  6101. /* When a DMA transfer error occurs */
  6102. /* A hardware clear of its EN bits is performed */
  6103. /* Disable ALL DMA IT */
  6104. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  6105. 8002c44: 687b ldr r3, [r7, #4]
  6106. 8002c46: 681b ldr r3, [r3, #0]
  6107. 8002c48: 681a ldr r2, [r3, #0]
  6108. 8002c4a: 687b ldr r3, [r7, #4]
  6109. 8002c4c: 681b ldr r3, [r3, #0]
  6110. 8002c4e: f022 020e bic.w r2, r2, #14
  6111. 8002c52: 601a str r2, [r3, #0]
  6112. /* Clear all flags */
  6113. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  6114. 8002c54: 687b ldr r3, [r7, #4]
  6115. 8002c56: 6c1a ldr r2, [r3, #64] ; 0x40
  6116. 8002c58: 687b ldr r3, [r7, #4]
  6117. 8002c5a: 6bdb ldr r3, [r3, #60] ; 0x3c
  6118. 8002c5c: 2101 movs r1, #1
  6119. 8002c5e: fa01 f202 lsl.w r2, r1, r2
  6120. 8002c62: 605a str r2, [r3, #4]
  6121. /* Update error code */
  6122. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  6123. 8002c64: 687b ldr r3, [r7, #4]
  6124. 8002c66: 2201 movs r2, #1
  6125. 8002c68: 639a str r2, [r3, #56] ; 0x38
  6126. /* Change the DMA state */
  6127. hdma->State = HAL_DMA_STATE_READY;
  6128. 8002c6a: 687b ldr r3, [r7, #4]
  6129. 8002c6c: 2201 movs r2, #1
  6130. 8002c6e: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6131. /* Process Unlocked */
  6132. __HAL_UNLOCK(hdma);
  6133. 8002c72: 687b ldr r3, [r7, #4]
  6134. 8002c74: 2200 movs r2, #0
  6135. 8002c76: f883 2020 strb.w r2, [r3, #32]
  6136. if (hdma->XferErrorCallback != NULL)
  6137. 8002c7a: 687b ldr r3, [r7, #4]
  6138. 8002c7c: 6b1b ldr r3, [r3, #48] ; 0x30
  6139. 8002c7e: 2b00 cmp r3, #0
  6140. 8002c80: d004 beq.n 8002c8c <HAL_DMA_IRQHandler+0x1e8>
  6141. {
  6142. /* Transfer error callback */
  6143. hdma->XferErrorCallback(hdma);
  6144. 8002c82: 687b ldr r3, [r7, #4]
  6145. 8002c84: 6b1b ldr r3, [r3, #48] ; 0x30
  6146. 8002c86: 6878 ldr r0, [r7, #4]
  6147. 8002c88: 4798 blx r3
  6148. }
  6149. }
  6150. return;
  6151. 8002c8a: bf00 nop
  6152. 8002c8c: bf00 nop
  6153. }
  6154. 8002c8e: 3710 adds r7, #16
  6155. 8002c90: 46bd mov sp, r7
  6156. 8002c92: bd80 pop {r7, pc}
  6157. 8002c94: 40020008 .word 0x40020008
  6158. 8002c98: 4002001c .word 0x4002001c
  6159. 8002c9c: 40020030 .word 0x40020030
  6160. 8002ca0: 40020044 .word 0x40020044
  6161. 8002ca4: 40020058 .word 0x40020058
  6162. 8002ca8: 4002006c .word 0x4002006c
  6163. 8002cac: 40020000 .word 0x40020000
  6164. 08002cb0 <DMA_SetConfig>:
  6165. * @param DstAddress: The destination memory Buffer address
  6166. * @param DataLength: The length of data to be transferred from source to destination
  6167. * @retval HAL status
  6168. */
  6169. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  6170. {
  6171. 8002cb0: b480 push {r7}
  6172. 8002cb2: b085 sub sp, #20
  6173. 8002cb4: af00 add r7, sp, #0
  6174. 8002cb6: 60f8 str r0, [r7, #12]
  6175. 8002cb8: 60b9 str r1, [r7, #8]
  6176. 8002cba: 607a str r2, [r7, #4]
  6177. 8002cbc: 603b str r3, [r7, #0]
  6178. /* Clear all flags */
  6179. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  6180. 8002cbe: 68fb ldr r3, [r7, #12]
  6181. 8002cc0: 6c1a ldr r2, [r3, #64] ; 0x40
  6182. 8002cc2: 68fb ldr r3, [r7, #12]
  6183. 8002cc4: 6bdb ldr r3, [r3, #60] ; 0x3c
  6184. 8002cc6: 2101 movs r1, #1
  6185. 8002cc8: fa01 f202 lsl.w r2, r1, r2
  6186. 8002ccc: 605a str r2, [r3, #4]
  6187. /* Configure DMA Channel data length */
  6188. hdma->Instance->CNDTR = DataLength;
  6189. 8002cce: 68fb ldr r3, [r7, #12]
  6190. 8002cd0: 681b ldr r3, [r3, #0]
  6191. 8002cd2: 683a ldr r2, [r7, #0]
  6192. 8002cd4: 605a str r2, [r3, #4]
  6193. /* Memory to Peripheral */
  6194. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  6195. 8002cd6: 68fb ldr r3, [r7, #12]
  6196. 8002cd8: 685b ldr r3, [r3, #4]
  6197. 8002cda: 2b10 cmp r3, #16
  6198. 8002cdc: d108 bne.n 8002cf0 <DMA_SetConfig+0x40>
  6199. {
  6200. /* Configure DMA Channel destination address */
  6201. hdma->Instance->CPAR = DstAddress;
  6202. 8002cde: 68fb ldr r3, [r7, #12]
  6203. 8002ce0: 681b ldr r3, [r3, #0]
  6204. 8002ce2: 687a ldr r2, [r7, #4]
  6205. 8002ce4: 609a str r2, [r3, #8]
  6206. /* Configure DMA Channel source address */
  6207. hdma->Instance->CMAR = SrcAddress;
  6208. 8002ce6: 68fb ldr r3, [r7, #12]
  6209. 8002ce8: 681b ldr r3, [r3, #0]
  6210. 8002cea: 68ba ldr r2, [r7, #8]
  6211. 8002cec: 60da str r2, [r3, #12]
  6212. hdma->Instance->CPAR = SrcAddress;
  6213. /* Configure DMA Channel destination address */
  6214. hdma->Instance->CMAR = DstAddress;
  6215. }
  6216. }
  6217. 8002cee: e007 b.n 8002d00 <DMA_SetConfig+0x50>
  6218. hdma->Instance->CPAR = SrcAddress;
  6219. 8002cf0: 68fb ldr r3, [r7, #12]
  6220. 8002cf2: 681b ldr r3, [r3, #0]
  6221. 8002cf4: 68ba ldr r2, [r7, #8]
  6222. 8002cf6: 609a str r2, [r3, #8]
  6223. hdma->Instance->CMAR = DstAddress;
  6224. 8002cf8: 68fb ldr r3, [r7, #12]
  6225. 8002cfa: 681b ldr r3, [r3, #0]
  6226. 8002cfc: 687a ldr r2, [r7, #4]
  6227. 8002cfe: 60da str r2, [r3, #12]
  6228. }
  6229. 8002d00: bf00 nop
  6230. 8002d02: 3714 adds r7, #20
  6231. 8002d04: 46bd mov sp, r7
  6232. 8002d06: bc80 pop {r7}
  6233. 8002d08: 4770 bx lr
  6234. ...
  6235. 08002d0c <HAL_FLASH_Program>:
  6236. * @param Data: Specifies the data to be programmed
  6237. *
  6238. * @retval HAL_StatusTypeDef HAL Status
  6239. */
  6240. HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  6241. {
  6242. 8002d0c: b5f0 push {r4, r5, r6, r7, lr}
  6243. 8002d0e: b087 sub sp, #28
  6244. 8002d10: af00 add r7, sp, #0
  6245. 8002d12: 60f8 str r0, [r7, #12]
  6246. 8002d14: 60b9 str r1, [r7, #8]
  6247. 8002d16: e9c7 2300 strd r2, r3, [r7]
  6248. HAL_StatusTypeDef status = HAL_ERROR;
  6249. 8002d1a: 2301 movs r3, #1
  6250. 8002d1c: 75fb strb r3, [r7, #23]
  6251. uint8_t index = 0;
  6252. 8002d1e: 2300 movs r3, #0
  6253. 8002d20: 75bb strb r3, [r7, #22]
  6254. uint8_t nbiterations = 0;
  6255. 8002d22: 2300 movs r3, #0
  6256. 8002d24: 757b strb r3, [r7, #21]
  6257. /* Process Locked */
  6258. __HAL_LOCK(&pFlash);
  6259. 8002d26: 4b2f ldr r3, [pc, #188] ; (8002de4 <HAL_FLASH_Program+0xd8>)
  6260. 8002d28: 7e1b ldrb r3, [r3, #24]
  6261. 8002d2a: 2b01 cmp r3, #1
  6262. 8002d2c: d101 bne.n 8002d32 <HAL_FLASH_Program+0x26>
  6263. 8002d2e: 2302 movs r3, #2
  6264. 8002d30: e054 b.n 8002ddc <HAL_FLASH_Program+0xd0>
  6265. 8002d32: 4b2c ldr r3, [pc, #176] ; (8002de4 <HAL_FLASH_Program+0xd8>)
  6266. 8002d34: 2201 movs r2, #1
  6267. 8002d36: 761a strb r2, [r3, #24]
  6268. #if defined(FLASH_BANK2_END)
  6269. if(Address <= FLASH_BANK1_END)
  6270. {
  6271. #endif /* FLASH_BANK2_END */
  6272. /* Wait for last operation to be completed */
  6273. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  6274. 8002d38: f24c 3050 movw r0, #50000 ; 0xc350
  6275. 8002d3c: f000 f8a8 bl 8002e90 <FLASH_WaitForLastOperation>
  6276. 8002d40: 4603 mov r3, r0
  6277. 8002d42: 75fb strb r3, [r7, #23]
  6278. /* Wait for last operation to be completed */
  6279. status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE);
  6280. }
  6281. #endif /* FLASH_BANK2_END */
  6282. if(status == HAL_OK)
  6283. 8002d44: 7dfb ldrb r3, [r7, #23]
  6284. 8002d46: 2b00 cmp r3, #0
  6285. 8002d48: d144 bne.n 8002dd4 <HAL_FLASH_Program+0xc8>
  6286. {
  6287. if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  6288. 8002d4a: 68fb ldr r3, [r7, #12]
  6289. 8002d4c: 2b01 cmp r3, #1
  6290. 8002d4e: d102 bne.n 8002d56 <HAL_FLASH_Program+0x4a>
  6291. {
  6292. /* Program halfword (16-bit) at a specified address. */
  6293. nbiterations = 1U;
  6294. 8002d50: 2301 movs r3, #1
  6295. 8002d52: 757b strb r3, [r7, #21]
  6296. 8002d54: e007 b.n 8002d66 <HAL_FLASH_Program+0x5a>
  6297. }
  6298. else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  6299. 8002d56: 68fb ldr r3, [r7, #12]
  6300. 8002d58: 2b02 cmp r3, #2
  6301. 8002d5a: d102 bne.n 8002d62 <HAL_FLASH_Program+0x56>
  6302. {
  6303. /* Program word (32-bit = 2*16-bit) at a specified address. */
  6304. nbiterations = 2U;
  6305. 8002d5c: 2302 movs r3, #2
  6306. 8002d5e: 757b strb r3, [r7, #21]
  6307. 8002d60: e001 b.n 8002d66 <HAL_FLASH_Program+0x5a>
  6308. }
  6309. else
  6310. {
  6311. /* Program double word (64-bit = 4*16-bit) at a specified address. */
  6312. nbiterations = 4U;
  6313. 8002d62: 2304 movs r3, #4
  6314. 8002d64: 757b strb r3, [r7, #21]
  6315. }
  6316. for (index = 0U; index < nbiterations; index++)
  6317. 8002d66: 2300 movs r3, #0
  6318. 8002d68: 75bb strb r3, [r7, #22]
  6319. 8002d6a: e02d b.n 8002dc8 <HAL_FLASH_Program+0xbc>
  6320. {
  6321. FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index)));
  6322. 8002d6c: 7dbb ldrb r3, [r7, #22]
  6323. 8002d6e: 005a lsls r2, r3, #1
  6324. 8002d70: 68bb ldr r3, [r7, #8]
  6325. 8002d72: eb02 0c03 add.w ip, r2, r3
  6326. 8002d76: 7dbb ldrb r3, [r7, #22]
  6327. 8002d78: 0119 lsls r1, r3, #4
  6328. 8002d7a: e9d7 2300 ldrd r2, r3, [r7]
  6329. 8002d7e: f1c1 0620 rsb r6, r1, #32
  6330. 8002d82: f1a1 0020 sub.w r0, r1, #32
  6331. 8002d86: fa22 f401 lsr.w r4, r2, r1
  6332. 8002d8a: fa03 f606 lsl.w r6, r3, r6
  6333. 8002d8e: 4334 orrs r4, r6
  6334. 8002d90: fa23 f000 lsr.w r0, r3, r0
  6335. 8002d94: 4304 orrs r4, r0
  6336. 8002d96: fa23 f501 lsr.w r5, r3, r1
  6337. 8002d9a: b2a3 uxth r3, r4
  6338. 8002d9c: 4619 mov r1, r3
  6339. 8002d9e: 4660 mov r0, ip
  6340. 8002da0: f000 f85a bl 8002e58 <FLASH_Program_HalfWord>
  6341. #if defined(FLASH_BANK2_END)
  6342. if(Address <= FLASH_BANK1_END)
  6343. {
  6344. #endif /* FLASH_BANK2_END */
  6345. /* Wait for last operation to be completed */
  6346. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  6347. 8002da4: f24c 3050 movw r0, #50000 ; 0xc350
  6348. 8002da8: f000 f872 bl 8002e90 <FLASH_WaitForLastOperation>
  6349. 8002dac: 4603 mov r3, r0
  6350. 8002dae: 75fb strb r3, [r7, #23]
  6351. /* If the program operation is completed, disable the PG Bit */
  6352. CLEAR_BIT(FLASH->CR, FLASH_CR_PG);
  6353. 8002db0: 4b0d ldr r3, [pc, #52] ; (8002de8 <HAL_FLASH_Program+0xdc>)
  6354. 8002db2: 691b ldr r3, [r3, #16]
  6355. 8002db4: 4a0c ldr r2, [pc, #48] ; (8002de8 <HAL_FLASH_Program+0xdc>)
  6356. 8002db6: f023 0301 bic.w r3, r3, #1
  6357. 8002dba: 6113 str r3, [r2, #16]
  6358. /* If the program operation is completed, disable the PG Bit */
  6359. CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG);
  6360. }
  6361. #endif /* FLASH_BANK2_END */
  6362. /* In case of error, stop programation procedure */
  6363. if (status != HAL_OK)
  6364. 8002dbc: 7dfb ldrb r3, [r7, #23]
  6365. 8002dbe: 2b00 cmp r3, #0
  6366. 8002dc0: d107 bne.n 8002dd2 <HAL_FLASH_Program+0xc6>
  6367. for (index = 0U; index < nbiterations; index++)
  6368. 8002dc2: 7dbb ldrb r3, [r7, #22]
  6369. 8002dc4: 3301 adds r3, #1
  6370. 8002dc6: 75bb strb r3, [r7, #22]
  6371. 8002dc8: 7dba ldrb r2, [r7, #22]
  6372. 8002dca: 7d7b ldrb r3, [r7, #21]
  6373. 8002dcc: 429a cmp r2, r3
  6374. 8002dce: d3cd bcc.n 8002d6c <HAL_FLASH_Program+0x60>
  6375. 8002dd0: e000 b.n 8002dd4 <HAL_FLASH_Program+0xc8>
  6376. {
  6377. break;
  6378. 8002dd2: bf00 nop
  6379. }
  6380. }
  6381. }
  6382. /* Process Unlocked */
  6383. __HAL_UNLOCK(&pFlash);
  6384. 8002dd4: 4b03 ldr r3, [pc, #12] ; (8002de4 <HAL_FLASH_Program+0xd8>)
  6385. 8002dd6: 2200 movs r2, #0
  6386. 8002dd8: 761a strb r2, [r3, #24]
  6387. return status;
  6388. 8002dda: 7dfb ldrb r3, [r7, #23]
  6389. }
  6390. 8002ddc: 4618 mov r0, r3
  6391. 8002dde: 371c adds r7, #28
  6392. 8002de0: 46bd mov sp, r7
  6393. 8002de2: bdf0 pop {r4, r5, r6, r7, pc}
  6394. 8002de4: 200008f0 .word 0x200008f0
  6395. 8002de8: 40022000 .word 0x40022000
  6396. 08002dec <HAL_FLASH_Unlock>:
  6397. /**
  6398. * @brief Unlock the FLASH control register access
  6399. * @retval HAL Status
  6400. */
  6401. HAL_StatusTypeDef HAL_FLASH_Unlock(void)
  6402. {
  6403. 8002dec: b480 push {r7}
  6404. 8002dee: b083 sub sp, #12
  6405. 8002df0: af00 add r7, sp, #0
  6406. HAL_StatusTypeDef status = HAL_OK;
  6407. 8002df2: 2300 movs r3, #0
  6408. 8002df4: 71fb strb r3, [r7, #7]
  6409. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  6410. 8002df6: 4b0d ldr r3, [pc, #52] ; (8002e2c <HAL_FLASH_Unlock+0x40>)
  6411. 8002df8: 691b ldr r3, [r3, #16]
  6412. 8002dfa: f003 0380 and.w r3, r3, #128 ; 0x80
  6413. 8002dfe: 2b00 cmp r3, #0
  6414. 8002e00: d00d beq.n 8002e1e <HAL_FLASH_Unlock+0x32>
  6415. {
  6416. /* Authorize the FLASH Registers access */
  6417. WRITE_REG(FLASH->KEYR, FLASH_KEY1);
  6418. 8002e02: 4b0a ldr r3, [pc, #40] ; (8002e2c <HAL_FLASH_Unlock+0x40>)
  6419. 8002e04: 4a0a ldr r2, [pc, #40] ; (8002e30 <HAL_FLASH_Unlock+0x44>)
  6420. 8002e06: 605a str r2, [r3, #4]
  6421. WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  6422. 8002e08: 4b08 ldr r3, [pc, #32] ; (8002e2c <HAL_FLASH_Unlock+0x40>)
  6423. 8002e0a: 4a0a ldr r2, [pc, #40] ; (8002e34 <HAL_FLASH_Unlock+0x48>)
  6424. 8002e0c: 605a str r2, [r3, #4]
  6425. /* Verify Flash is unlocked */
  6426. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  6427. 8002e0e: 4b07 ldr r3, [pc, #28] ; (8002e2c <HAL_FLASH_Unlock+0x40>)
  6428. 8002e10: 691b ldr r3, [r3, #16]
  6429. 8002e12: f003 0380 and.w r3, r3, #128 ; 0x80
  6430. 8002e16: 2b00 cmp r3, #0
  6431. 8002e18: d001 beq.n 8002e1e <HAL_FLASH_Unlock+0x32>
  6432. {
  6433. status = HAL_ERROR;
  6434. 8002e1a: 2301 movs r3, #1
  6435. 8002e1c: 71fb strb r3, [r7, #7]
  6436. status = HAL_ERROR;
  6437. }
  6438. }
  6439. #endif /* FLASH_BANK2_END */
  6440. return status;
  6441. 8002e1e: 79fb ldrb r3, [r7, #7]
  6442. }
  6443. 8002e20: 4618 mov r0, r3
  6444. 8002e22: 370c adds r7, #12
  6445. 8002e24: 46bd mov sp, r7
  6446. 8002e26: bc80 pop {r7}
  6447. 8002e28: 4770 bx lr
  6448. 8002e2a: bf00 nop
  6449. 8002e2c: 40022000 .word 0x40022000
  6450. 8002e30: 45670123 .word 0x45670123
  6451. 8002e34: cdef89ab .word 0xcdef89ab
  6452. 08002e38 <HAL_FLASH_Lock>:
  6453. /**
  6454. * @brief Locks the FLASH control register access
  6455. * @retval HAL Status
  6456. */
  6457. HAL_StatusTypeDef HAL_FLASH_Lock(void)
  6458. {
  6459. 8002e38: b480 push {r7}
  6460. 8002e3a: af00 add r7, sp, #0
  6461. /* Set the LOCK Bit to lock the FLASH Registers access */
  6462. SET_BIT(FLASH->CR, FLASH_CR_LOCK);
  6463. 8002e3c: 4b05 ldr r3, [pc, #20] ; (8002e54 <HAL_FLASH_Lock+0x1c>)
  6464. 8002e3e: 691b ldr r3, [r3, #16]
  6465. 8002e40: 4a04 ldr r2, [pc, #16] ; (8002e54 <HAL_FLASH_Lock+0x1c>)
  6466. 8002e42: f043 0380 orr.w r3, r3, #128 ; 0x80
  6467. 8002e46: 6113 str r3, [r2, #16]
  6468. #if defined(FLASH_BANK2_END)
  6469. /* Set the LOCK Bit to lock the FLASH BANK2 Registers access */
  6470. SET_BIT(FLASH->CR2, FLASH_CR2_LOCK);
  6471. #endif /* FLASH_BANK2_END */
  6472. return HAL_OK;
  6473. 8002e48: 2300 movs r3, #0
  6474. }
  6475. 8002e4a: 4618 mov r0, r3
  6476. 8002e4c: 46bd mov sp, r7
  6477. 8002e4e: bc80 pop {r7}
  6478. 8002e50: 4770 bx lr
  6479. 8002e52: bf00 nop
  6480. 8002e54: 40022000 .word 0x40022000
  6481. 08002e58 <FLASH_Program_HalfWord>:
  6482. * @param Address specify the address to be programmed.
  6483. * @param Data specify the data to be programmed.
  6484. * @retval None
  6485. */
  6486. static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data)
  6487. {
  6488. 8002e58: b480 push {r7}
  6489. 8002e5a: b083 sub sp, #12
  6490. 8002e5c: af00 add r7, sp, #0
  6491. 8002e5e: 6078 str r0, [r7, #4]
  6492. 8002e60: 460b mov r3, r1
  6493. 8002e62: 807b strh r3, [r7, #2]
  6494. /* Clean the error context */
  6495. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  6496. 8002e64: 4b08 ldr r3, [pc, #32] ; (8002e88 <FLASH_Program_HalfWord+0x30>)
  6497. 8002e66: 2200 movs r2, #0
  6498. 8002e68: 61da str r2, [r3, #28]
  6499. #if defined(FLASH_BANK2_END)
  6500. if(Address <= FLASH_BANK1_END)
  6501. {
  6502. #endif /* FLASH_BANK2_END */
  6503. /* Proceed to program the new data */
  6504. SET_BIT(FLASH->CR, FLASH_CR_PG);
  6505. 8002e6a: 4b08 ldr r3, [pc, #32] ; (8002e8c <FLASH_Program_HalfWord+0x34>)
  6506. 8002e6c: 691b ldr r3, [r3, #16]
  6507. 8002e6e: 4a07 ldr r2, [pc, #28] ; (8002e8c <FLASH_Program_HalfWord+0x34>)
  6508. 8002e70: f043 0301 orr.w r3, r3, #1
  6509. 8002e74: 6113 str r3, [r2, #16]
  6510. SET_BIT(FLASH->CR2, FLASH_CR2_PG);
  6511. }
  6512. #endif /* FLASH_BANK2_END */
  6513. /* Write data in the address */
  6514. *(__IO uint16_t*)Address = Data;
  6515. 8002e76: 687b ldr r3, [r7, #4]
  6516. 8002e78: 887a ldrh r2, [r7, #2]
  6517. 8002e7a: 801a strh r2, [r3, #0]
  6518. }
  6519. 8002e7c: bf00 nop
  6520. 8002e7e: 370c adds r7, #12
  6521. 8002e80: 46bd mov sp, r7
  6522. 8002e82: bc80 pop {r7}
  6523. 8002e84: 4770 bx lr
  6524. 8002e86: bf00 nop
  6525. 8002e88: 200008f0 .word 0x200008f0
  6526. 8002e8c: 40022000 .word 0x40022000
  6527. 08002e90 <FLASH_WaitForLastOperation>:
  6528. * @brief Wait for a FLASH operation to complete.
  6529. * @param Timeout maximum flash operation timeout
  6530. * @retval HAL Status
  6531. */
  6532. HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout)
  6533. {
  6534. 8002e90: b580 push {r7, lr}
  6535. 8002e92: b084 sub sp, #16
  6536. 8002e94: af00 add r7, sp, #0
  6537. 8002e96: 6078 str r0, [r7, #4]
  6538. /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
  6539. Even if the FLASH operation fails, the BUSY flag will be reset and an error
  6540. flag will be set */
  6541. uint32_t tickstart = HAL_GetTick();
  6542. 8002e98: f7fe fee8 bl 8001c6c <HAL_GetTick>
  6543. 8002e9c: 60f8 str r0, [r7, #12]
  6544. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  6545. 8002e9e: e010 b.n 8002ec2 <FLASH_WaitForLastOperation+0x32>
  6546. {
  6547. if (Timeout != HAL_MAX_DELAY)
  6548. 8002ea0: 687b ldr r3, [r7, #4]
  6549. 8002ea2: f1b3 3fff cmp.w r3, #4294967295
  6550. 8002ea6: d00c beq.n 8002ec2 <FLASH_WaitForLastOperation+0x32>
  6551. {
  6552. if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
  6553. 8002ea8: 687b ldr r3, [r7, #4]
  6554. 8002eaa: 2b00 cmp r3, #0
  6555. 8002eac: d007 beq.n 8002ebe <FLASH_WaitForLastOperation+0x2e>
  6556. 8002eae: f7fe fedd bl 8001c6c <HAL_GetTick>
  6557. 8002eb2: 4602 mov r2, r0
  6558. 8002eb4: 68fb ldr r3, [r7, #12]
  6559. 8002eb6: 1ad3 subs r3, r2, r3
  6560. 8002eb8: 687a ldr r2, [r7, #4]
  6561. 8002eba: 429a cmp r2, r3
  6562. 8002ebc: d201 bcs.n 8002ec2 <FLASH_WaitForLastOperation+0x32>
  6563. {
  6564. return HAL_TIMEOUT;
  6565. 8002ebe: 2303 movs r3, #3
  6566. 8002ec0: e025 b.n 8002f0e <FLASH_WaitForLastOperation+0x7e>
  6567. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  6568. 8002ec2: 4b15 ldr r3, [pc, #84] ; (8002f18 <FLASH_WaitForLastOperation+0x88>)
  6569. 8002ec4: 68db ldr r3, [r3, #12]
  6570. 8002ec6: f003 0301 and.w r3, r3, #1
  6571. 8002eca: 2b00 cmp r3, #0
  6572. 8002ecc: d1e8 bne.n 8002ea0 <FLASH_WaitForLastOperation+0x10>
  6573. }
  6574. }
  6575. }
  6576. /* Check FLASH End of Operation flag */
  6577. if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP))
  6578. 8002ece: 4b12 ldr r3, [pc, #72] ; (8002f18 <FLASH_WaitForLastOperation+0x88>)
  6579. 8002ed0: 68db ldr r3, [r3, #12]
  6580. 8002ed2: f003 0320 and.w r3, r3, #32
  6581. 8002ed6: 2b00 cmp r3, #0
  6582. 8002ed8: d002 beq.n 8002ee0 <FLASH_WaitForLastOperation+0x50>
  6583. {
  6584. /* Clear FLASH End of Operation pending bit */
  6585. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  6586. 8002eda: 4b0f ldr r3, [pc, #60] ; (8002f18 <FLASH_WaitForLastOperation+0x88>)
  6587. 8002edc: 2220 movs r2, #32
  6588. 8002ede: 60da str r2, [r3, #12]
  6589. }
  6590. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  6591. 8002ee0: 4b0d ldr r3, [pc, #52] ; (8002f18 <FLASH_WaitForLastOperation+0x88>)
  6592. 8002ee2: 68db ldr r3, [r3, #12]
  6593. 8002ee4: f003 0310 and.w r3, r3, #16
  6594. 8002ee8: 2b00 cmp r3, #0
  6595. 8002eea: d10b bne.n 8002f04 <FLASH_WaitForLastOperation+0x74>
  6596. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  6597. 8002eec: 4b0a ldr r3, [pc, #40] ; (8002f18 <FLASH_WaitForLastOperation+0x88>)
  6598. 8002eee: 69db ldr r3, [r3, #28]
  6599. 8002ef0: f003 0301 and.w r3, r3, #1
  6600. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  6601. 8002ef4: 2b00 cmp r3, #0
  6602. 8002ef6: d105 bne.n 8002f04 <FLASH_WaitForLastOperation+0x74>
  6603. __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  6604. 8002ef8: 4b07 ldr r3, [pc, #28] ; (8002f18 <FLASH_WaitForLastOperation+0x88>)
  6605. 8002efa: 68db ldr r3, [r3, #12]
  6606. 8002efc: f003 0304 and.w r3, r3, #4
  6607. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  6608. 8002f00: 2b00 cmp r3, #0
  6609. 8002f02: d003 beq.n 8002f0c <FLASH_WaitForLastOperation+0x7c>
  6610. {
  6611. /*Save the error code*/
  6612. FLASH_SetErrorCode();
  6613. 8002f04: f000 f80a bl 8002f1c <FLASH_SetErrorCode>
  6614. return HAL_ERROR;
  6615. 8002f08: 2301 movs r3, #1
  6616. 8002f0a: e000 b.n 8002f0e <FLASH_WaitForLastOperation+0x7e>
  6617. }
  6618. /* There is no error flag set */
  6619. return HAL_OK;
  6620. 8002f0c: 2300 movs r3, #0
  6621. }
  6622. 8002f0e: 4618 mov r0, r3
  6623. 8002f10: 3710 adds r7, #16
  6624. 8002f12: 46bd mov sp, r7
  6625. 8002f14: bd80 pop {r7, pc}
  6626. 8002f16: bf00 nop
  6627. 8002f18: 40022000 .word 0x40022000
  6628. 08002f1c <FLASH_SetErrorCode>:
  6629. /**
  6630. * @brief Set the specific FLASH error flag.
  6631. * @retval None
  6632. */
  6633. static void FLASH_SetErrorCode(void)
  6634. {
  6635. 8002f1c: b480 push {r7}
  6636. 8002f1e: b083 sub sp, #12
  6637. 8002f20: af00 add r7, sp, #0
  6638. uint32_t flags = 0U;
  6639. 8002f22: 2300 movs r3, #0
  6640. 8002f24: 607b str r3, [r7, #4]
  6641. #if defined(FLASH_BANK2_END)
  6642. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2))
  6643. #else
  6644. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR))
  6645. 8002f26: 4b23 ldr r3, [pc, #140] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6646. 8002f28: 68db ldr r3, [r3, #12]
  6647. 8002f2a: f003 0310 and.w r3, r3, #16
  6648. 8002f2e: 2b00 cmp r3, #0
  6649. 8002f30: d009 beq.n 8002f46 <FLASH_SetErrorCode+0x2a>
  6650. #endif /* FLASH_BANK2_END */
  6651. {
  6652. pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
  6653. 8002f32: 4b21 ldr r3, [pc, #132] ; (8002fb8 <FLASH_SetErrorCode+0x9c>)
  6654. 8002f34: 69db ldr r3, [r3, #28]
  6655. 8002f36: f043 0302 orr.w r3, r3, #2
  6656. 8002f3a: 4a1f ldr r2, [pc, #124] ; (8002fb8 <FLASH_SetErrorCode+0x9c>)
  6657. 8002f3c: 61d3 str r3, [r2, #28]
  6658. #if defined(FLASH_BANK2_END)
  6659. flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2;
  6660. #else
  6661. flags |= FLASH_FLAG_WRPERR;
  6662. 8002f3e: 687b ldr r3, [r7, #4]
  6663. 8002f40: f043 0310 orr.w r3, r3, #16
  6664. 8002f44: 607b str r3, [r7, #4]
  6665. #endif /* FLASH_BANK2_END */
  6666. }
  6667. #if defined(FLASH_BANK2_END)
  6668. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
  6669. #else
  6670. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  6671. 8002f46: 4b1b ldr r3, [pc, #108] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6672. 8002f48: 68db ldr r3, [r3, #12]
  6673. 8002f4a: f003 0304 and.w r3, r3, #4
  6674. 8002f4e: 2b00 cmp r3, #0
  6675. 8002f50: d009 beq.n 8002f66 <FLASH_SetErrorCode+0x4a>
  6676. #endif /* FLASH_BANK2_END */
  6677. {
  6678. pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG;
  6679. 8002f52: 4b19 ldr r3, [pc, #100] ; (8002fb8 <FLASH_SetErrorCode+0x9c>)
  6680. 8002f54: 69db ldr r3, [r3, #28]
  6681. 8002f56: f043 0301 orr.w r3, r3, #1
  6682. 8002f5a: 4a17 ldr r2, [pc, #92] ; (8002fb8 <FLASH_SetErrorCode+0x9c>)
  6683. 8002f5c: 61d3 str r3, [r2, #28]
  6684. #if defined(FLASH_BANK2_END)
  6685. flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2;
  6686. #else
  6687. flags |= FLASH_FLAG_PGERR;
  6688. 8002f5e: 687b ldr r3, [r7, #4]
  6689. 8002f60: f043 0304 orr.w r3, r3, #4
  6690. 8002f64: 607b str r3, [r7, #4]
  6691. #endif /* FLASH_BANK2_END */
  6692. }
  6693. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR))
  6694. 8002f66: 4b13 ldr r3, [pc, #76] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6695. 8002f68: 69db ldr r3, [r3, #28]
  6696. 8002f6a: f003 0301 and.w r3, r3, #1
  6697. 8002f6e: 2b00 cmp r3, #0
  6698. 8002f70: d00b beq.n 8002f8a <FLASH_SetErrorCode+0x6e>
  6699. {
  6700. pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV;
  6701. 8002f72: 4b11 ldr r3, [pc, #68] ; (8002fb8 <FLASH_SetErrorCode+0x9c>)
  6702. 8002f74: 69db ldr r3, [r3, #28]
  6703. 8002f76: f043 0304 orr.w r3, r3, #4
  6704. 8002f7a: 4a0f ldr r2, [pc, #60] ; (8002fb8 <FLASH_SetErrorCode+0x9c>)
  6705. 8002f7c: 61d3 str r3, [r2, #28]
  6706. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
  6707. 8002f7e: 4b0d ldr r3, [pc, #52] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6708. 8002f80: 69db ldr r3, [r3, #28]
  6709. 8002f82: 4a0c ldr r2, [pc, #48] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6710. 8002f84: f023 0301 bic.w r3, r3, #1
  6711. 8002f88: 61d3 str r3, [r2, #28]
  6712. }
  6713. /* Clear FLASH error pending bits */
  6714. __HAL_FLASH_CLEAR_FLAG(flags);
  6715. 8002f8a: 687b ldr r3, [r7, #4]
  6716. 8002f8c: f240 1201 movw r2, #257 ; 0x101
  6717. 8002f90: 4293 cmp r3, r2
  6718. 8002f92: d106 bne.n 8002fa2 <FLASH_SetErrorCode+0x86>
  6719. 8002f94: 4b07 ldr r3, [pc, #28] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6720. 8002f96: 69db ldr r3, [r3, #28]
  6721. 8002f98: 4a06 ldr r2, [pc, #24] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6722. 8002f9a: f023 0301 bic.w r3, r3, #1
  6723. 8002f9e: 61d3 str r3, [r2, #28]
  6724. }
  6725. 8002fa0: e002 b.n 8002fa8 <FLASH_SetErrorCode+0x8c>
  6726. __HAL_FLASH_CLEAR_FLAG(flags);
  6727. 8002fa2: 4a04 ldr r2, [pc, #16] ; (8002fb4 <FLASH_SetErrorCode+0x98>)
  6728. 8002fa4: 687b ldr r3, [r7, #4]
  6729. 8002fa6: 60d3 str r3, [r2, #12]
  6730. }
  6731. 8002fa8: bf00 nop
  6732. 8002faa: 370c adds r7, #12
  6733. 8002fac: 46bd mov sp, r7
  6734. 8002fae: bc80 pop {r7}
  6735. 8002fb0: 4770 bx lr
  6736. 8002fb2: bf00 nop
  6737. 8002fb4: 40022000 .word 0x40022000
  6738. 8002fb8: 200008f0 .word 0x200008f0
  6739. 08002fbc <HAL_FLASHEx_Erase>:
  6740. * (0xFFFFFFFF means that all the pages have been correctly erased)
  6741. *
  6742. * @retval HAL_StatusTypeDef HAL Status
  6743. */
  6744. HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)
  6745. {
  6746. 8002fbc: b580 push {r7, lr}
  6747. 8002fbe: b084 sub sp, #16
  6748. 8002fc0: af00 add r7, sp, #0
  6749. 8002fc2: 6078 str r0, [r7, #4]
  6750. 8002fc4: 6039 str r1, [r7, #0]
  6751. HAL_StatusTypeDef status = HAL_ERROR;
  6752. 8002fc6: 2301 movs r3, #1
  6753. 8002fc8: 73fb strb r3, [r7, #15]
  6754. uint32_t address = 0U;
  6755. 8002fca: 2300 movs r3, #0
  6756. 8002fcc: 60bb str r3, [r7, #8]
  6757. /* Process Locked */
  6758. __HAL_LOCK(&pFlash);
  6759. 8002fce: 4b2f ldr r3, [pc, #188] ; (800308c <HAL_FLASHEx_Erase+0xd0>)
  6760. 8002fd0: 7e1b ldrb r3, [r3, #24]
  6761. 8002fd2: 2b01 cmp r3, #1
  6762. 8002fd4: d101 bne.n 8002fda <HAL_FLASHEx_Erase+0x1e>
  6763. 8002fd6: 2302 movs r3, #2
  6764. 8002fd8: e053 b.n 8003082 <HAL_FLASHEx_Erase+0xc6>
  6765. 8002fda: 4b2c ldr r3, [pc, #176] ; (800308c <HAL_FLASHEx_Erase+0xd0>)
  6766. 8002fdc: 2201 movs r2, #1
  6767. 8002fde: 761a strb r2, [r3, #24]
  6768. /* Check the parameters */
  6769. assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase));
  6770. if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE)
  6771. 8002fe0: 687b ldr r3, [r7, #4]
  6772. 8002fe2: 681b ldr r3, [r3, #0]
  6773. 8002fe4: 2b02 cmp r3, #2
  6774. 8002fe6: d116 bne.n 8003016 <HAL_FLASHEx_Erase+0x5a>
  6775. else
  6776. #endif /* FLASH_BANK2_END */
  6777. {
  6778. /* Mass Erase requested for Bank1 */
  6779. /* Wait for last operation to be completed */
  6780. if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK)
  6781. 8002fe8: f24c 3050 movw r0, #50000 ; 0xc350
  6782. 8002fec: f7ff ff50 bl 8002e90 <FLASH_WaitForLastOperation>
  6783. 8002ff0: 4603 mov r3, r0
  6784. 8002ff2: 2b00 cmp r3, #0
  6785. 8002ff4: d141 bne.n 800307a <HAL_FLASHEx_Erase+0xbe>
  6786. {
  6787. /*Mass erase to be done*/
  6788. FLASH_MassErase(FLASH_BANK_1);
  6789. 8002ff6: 2001 movs r0, #1
  6790. 8002ff8: f000 f84c bl 8003094 <FLASH_MassErase>
  6791. /* Wait for last operation to be completed */
  6792. status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  6793. 8002ffc: f24c 3050 movw r0, #50000 ; 0xc350
  6794. 8003000: f7ff ff46 bl 8002e90 <FLASH_WaitForLastOperation>
  6795. 8003004: 4603 mov r3, r0
  6796. 8003006: 73fb strb r3, [r7, #15]
  6797. /* If the erase operation is completed, disable the MER Bit */
  6798. CLEAR_BIT(FLASH->CR, FLASH_CR_MER);
  6799. 8003008: 4b21 ldr r3, [pc, #132] ; (8003090 <HAL_FLASHEx_Erase+0xd4>)
  6800. 800300a: 691b ldr r3, [r3, #16]
  6801. 800300c: 4a20 ldr r2, [pc, #128] ; (8003090 <HAL_FLASHEx_Erase+0xd4>)
  6802. 800300e: f023 0304 bic.w r3, r3, #4
  6803. 8003012: 6113 str r3, [r2, #16]
  6804. 8003014: e031 b.n 800307a <HAL_FLASHEx_Erase+0xbe>
  6805. else
  6806. #endif /* FLASH_BANK2_END */
  6807. {
  6808. /* Page Erase requested on address located on bank1 */
  6809. /* Wait for last operation to be completed */
  6810. if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK)
  6811. 8003016: f24c 3050 movw r0, #50000 ; 0xc350
  6812. 800301a: f7ff ff39 bl 8002e90 <FLASH_WaitForLastOperation>
  6813. 800301e: 4603 mov r3, r0
  6814. 8003020: 2b00 cmp r3, #0
  6815. 8003022: d12a bne.n 800307a <HAL_FLASHEx_Erase+0xbe>
  6816. {
  6817. /*Initialization of PageError variable*/
  6818. *PageError = 0xFFFFFFFFU;
  6819. 8003024: 683b ldr r3, [r7, #0]
  6820. 8003026: f04f 32ff mov.w r2, #4294967295
  6821. 800302a: 601a str r2, [r3, #0]
  6822. /* Erase page by page to be done*/
  6823. for(address = pEraseInit->PageAddress;
  6824. 800302c: 687b ldr r3, [r7, #4]
  6825. 800302e: 689b ldr r3, [r3, #8]
  6826. 8003030: 60bb str r3, [r7, #8]
  6827. 8003032: e019 b.n 8003068 <HAL_FLASHEx_Erase+0xac>
  6828. address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress);
  6829. address += FLASH_PAGE_SIZE)
  6830. {
  6831. FLASH_PageErase(address);
  6832. 8003034: 68b8 ldr r0, [r7, #8]
  6833. 8003036: f000 f849 bl 80030cc <FLASH_PageErase>
  6834. /* Wait for last operation to be completed */
  6835. status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  6836. 800303a: f24c 3050 movw r0, #50000 ; 0xc350
  6837. 800303e: f7ff ff27 bl 8002e90 <FLASH_WaitForLastOperation>
  6838. 8003042: 4603 mov r3, r0
  6839. 8003044: 73fb strb r3, [r7, #15]
  6840. /* If the erase operation is completed, disable the PER Bit */
  6841. CLEAR_BIT(FLASH->CR, FLASH_CR_PER);
  6842. 8003046: 4b12 ldr r3, [pc, #72] ; (8003090 <HAL_FLASHEx_Erase+0xd4>)
  6843. 8003048: 691b ldr r3, [r3, #16]
  6844. 800304a: 4a11 ldr r2, [pc, #68] ; (8003090 <HAL_FLASHEx_Erase+0xd4>)
  6845. 800304c: f023 0302 bic.w r3, r3, #2
  6846. 8003050: 6113 str r3, [r2, #16]
  6847. if (status != HAL_OK)
  6848. 8003052: 7bfb ldrb r3, [r7, #15]
  6849. 8003054: 2b00 cmp r3, #0
  6850. 8003056: d003 beq.n 8003060 <HAL_FLASHEx_Erase+0xa4>
  6851. {
  6852. /* In case of error, stop erase procedure and return the faulty address */
  6853. *PageError = address;
  6854. 8003058: 683b ldr r3, [r7, #0]
  6855. 800305a: 68ba ldr r2, [r7, #8]
  6856. 800305c: 601a str r2, [r3, #0]
  6857. break;
  6858. 800305e: e00c b.n 800307a <HAL_FLASHEx_Erase+0xbe>
  6859. address += FLASH_PAGE_SIZE)
  6860. 8003060: 68bb ldr r3, [r7, #8]
  6861. 8003062: f503 6380 add.w r3, r3, #1024 ; 0x400
  6862. 8003066: 60bb str r3, [r7, #8]
  6863. address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress);
  6864. 8003068: 687b ldr r3, [r7, #4]
  6865. 800306a: 68db ldr r3, [r3, #12]
  6866. 800306c: 029a lsls r2, r3, #10
  6867. 800306e: 687b ldr r3, [r7, #4]
  6868. 8003070: 689b ldr r3, [r3, #8]
  6869. 8003072: 4413 add r3, r2
  6870. for(address = pEraseInit->PageAddress;
  6871. 8003074: 68ba ldr r2, [r7, #8]
  6872. 8003076: 429a cmp r2, r3
  6873. 8003078: d3dc bcc.n 8003034 <HAL_FLASHEx_Erase+0x78>
  6874. }
  6875. }
  6876. }
  6877. /* Process Unlocked */
  6878. __HAL_UNLOCK(&pFlash);
  6879. 800307a: 4b04 ldr r3, [pc, #16] ; (800308c <HAL_FLASHEx_Erase+0xd0>)
  6880. 800307c: 2200 movs r2, #0
  6881. 800307e: 761a strb r2, [r3, #24]
  6882. return status;
  6883. 8003080: 7bfb ldrb r3, [r7, #15]
  6884. }
  6885. 8003082: 4618 mov r0, r3
  6886. 8003084: 3710 adds r7, #16
  6887. 8003086: 46bd mov sp, r7
  6888. 8003088: bd80 pop {r7, pc}
  6889. 800308a: bf00 nop
  6890. 800308c: 200008f0 .word 0x200008f0
  6891. 8003090: 40022000 .word 0x40022000
  6892. 08003094 <FLASH_MassErase>:
  6893. @endif
  6894. *
  6895. * @retval None
  6896. */
  6897. static void FLASH_MassErase(uint32_t Banks)
  6898. {
  6899. 8003094: b480 push {r7}
  6900. 8003096: b083 sub sp, #12
  6901. 8003098: af00 add r7, sp, #0
  6902. 800309a: 6078 str r0, [r7, #4]
  6903. /* Check the parameters */
  6904. assert_param(IS_FLASH_BANK(Banks));
  6905. /* Clean the error context */
  6906. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  6907. 800309c: 4b09 ldr r3, [pc, #36] ; (80030c4 <FLASH_MassErase+0x30>)
  6908. 800309e: 2200 movs r2, #0
  6909. 80030a0: 61da str r2, [r3, #28]
  6910. #if !defined(FLASH_BANK2_END)
  6911. /* Prevent unused argument(s) compilation warning */
  6912. UNUSED(Banks);
  6913. #endif /* FLASH_BANK2_END */
  6914. /* Only bank1 will be erased*/
  6915. SET_BIT(FLASH->CR, FLASH_CR_MER);
  6916. 80030a2: 4b09 ldr r3, [pc, #36] ; (80030c8 <FLASH_MassErase+0x34>)
  6917. 80030a4: 691b ldr r3, [r3, #16]
  6918. 80030a6: 4a08 ldr r2, [pc, #32] ; (80030c8 <FLASH_MassErase+0x34>)
  6919. 80030a8: f043 0304 orr.w r3, r3, #4
  6920. 80030ac: 6113 str r3, [r2, #16]
  6921. SET_BIT(FLASH->CR, FLASH_CR_STRT);
  6922. 80030ae: 4b06 ldr r3, [pc, #24] ; (80030c8 <FLASH_MassErase+0x34>)
  6923. 80030b0: 691b ldr r3, [r3, #16]
  6924. 80030b2: 4a05 ldr r2, [pc, #20] ; (80030c8 <FLASH_MassErase+0x34>)
  6925. 80030b4: f043 0340 orr.w r3, r3, #64 ; 0x40
  6926. 80030b8: 6113 str r3, [r2, #16]
  6927. #if defined(FLASH_BANK2_END)
  6928. }
  6929. #endif /* FLASH_BANK2_END */
  6930. }
  6931. 80030ba: bf00 nop
  6932. 80030bc: 370c adds r7, #12
  6933. 80030be: 46bd mov sp, r7
  6934. 80030c0: bc80 pop {r7}
  6935. 80030c2: 4770 bx lr
  6936. 80030c4: 200008f0 .word 0x200008f0
  6937. 80030c8: 40022000 .word 0x40022000
  6938. 080030cc <FLASH_PageErase>:
  6939. * The value of this parameter depend on device used within the same series
  6940. *
  6941. * @retval None
  6942. */
  6943. void FLASH_PageErase(uint32_t PageAddress)
  6944. {
  6945. 80030cc: b480 push {r7}
  6946. 80030ce: b083 sub sp, #12
  6947. 80030d0: af00 add r7, sp, #0
  6948. 80030d2: 6078 str r0, [r7, #4]
  6949. /* Clean the error context */
  6950. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  6951. 80030d4: 4b0b ldr r3, [pc, #44] ; (8003104 <FLASH_PageErase+0x38>)
  6952. 80030d6: 2200 movs r2, #0
  6953. 80030d8: 61da str r2, [r3, #28]
  6954. }
  6955. else
  6956. {
  6957. #endif /* FLASH_BANK2_END */
  6958. /* Proceed to erase the page */
  6959. SET_BIT(FLASH->CR, FLASH_CR_PER);
  6960. 80030da: 4b0b ldr r3, [pc, #44] ; (8003108 <FLASH_PageErase+0x3c>)
  6961. 80030dc: 691b ldr r3, [r3, #16]
  6962. 80030de: 4a0a ldr r2, [pc, #40] ; (8003108 <FLASH_PageErase+0x3c>)
  6963. 80030e0: f043 0302 orr.w r3, r3, #2
  6964. 80030e4: 6113 str r3, [r2, #16]
  6965. WRITE_REG(FLASH->AR, PageAddress);
  6966. 80030e6: 4a08 ldr r2, [pc, #32] ; (8003108 <FLASH_PageErase+0x3c>)
  6967. 80030e8: 687b ldr r3, [r7, #4]
  6968. 80030ea: 6153 str r3, [r2, #20]
  6969. SET_BIT(FLASH->CR, FLASH_CR_STRT);
  6970. 80030ec: 4b06 ldr r3, [pc, #24] ; (8003108 <FLASH_PageErase+0x3c>)
  6971. 80030ee: 691b ldr r3, [r3, #16]
  6972. 80030f0: 4a05 ldr r2, [pc, #20] ; (8003108 <FLASH_PageErase+0x3c>)
  6973. 80030f2: f043 0340 orr.w r3, r3, #64 ; 0x40
  6974. 80030f6: 6113 str r3, [r2, #16]
  6975. #if defined(FLASH_BANK2_END)
  6976. }
  6977. #endif /* FLASH_BANK2_END */
  6978. }
  6979. 80030f8: bf00 nop
  6980. 80030fa: 370c adds r7, #12
  6981. 80030fc: 46bd mov sp, r7
  6982. 80030fe: bc80 pop {r7}
  6983. 8003100: 4770 bx lr
  6984. 8003102: bf00 nop
  6985. 8003104: 200008f0 .word 0x200008f0
  6986. 8003108: 40022000 .word 0x40022000
  6987. 0800310c <HAL_GPIO_Init>:
  6988. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  6989. * the configuration information for the specified GPIO peripheral.
  6990. * @retval None
  6991. */
  6992. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  6993. {
  6994. 800310c: b480 push {r7}
  6995. 800310e: b08b sub sp, #44 ; 0x2c
  6996. 8003110: af00 add r7, sp, #0
  6997. 8003112: 6078 str r0, [r7, #4]
  6998. 8003114: 6039 str r1, [r7, #0]
  6999. uint32_t position = 0x00u;
  7000. 8003116: 2300 movs r3, #0
  7001. 8003118: 627b str r3, [r7, #36] ; 0x24
  7002. uint32_t ioposition;
  7003. uint32_t iocurrent;
  7004. uint32_t temp;
  7005. uint32_t config = 0x00u;
  7006. 800311a: 2300 movs r3, #0
  7007. 800311c: 623b str r3, [r7, #32]
  7008. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  7009. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  7010. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  7011. /* Configure the port pins */
  7012. while (((GPIO_Init->Pin) >> position) != 0x00u)
  7013. 800311e: e127 b.n 8003370 <HAL_GPIO_Init+0x264>
  7014. {
  7015. /* Get the IO position */
  7016. ioposition = (0x01uL << position);
  7017. 8003120: 2201 movs r2, #1
  7018. 8003122: 6a7b ldr r3, [r7, #36] ; 0x24
  7019. 8003124: fa02 f303 lsl.w r3, r2, r3
  7020. 8003128: 61fb str r3, [r7, #28]
  7021. /* Get the current IO position */
  7022. iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
  7023. 800312a: 683b ldr r3, [r7, #0]
  7024. 800312c: 681b ldr r3, [r3, #0]
  7025. 800312e: 69fa ldr r2, [r7, #28]
  7026. 8003130: 4013 ands r3, r2
  7027. 8003132: 61bb str r3, [r7, #24]
  7028. if (iocurrent == ioposition)
  7029. 8003134: 69ba ldr r2, [r7, #24]
  7030. 8003136: 69fb ldr r3, [r7, #28]
  7031. 8003138: 429a cmp r2, r3
  7032. 800313a: f040 8116 bne.w 800336a <HAL_GPIO_Init+0x25e>
  7033. {
  7034. /* Check the Alternate function parameters */
  7035. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  7036. /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */
  7037. switch (GPIO_Init->Mode)
  7038. 800313e: 683b ldr r3, [r7, #0]
  7039. 8003140: 685b ldr r3, [r3, #4]
  7040. 8003142: 2b12 cmp r3, #18
  7041. 8003144: d034 beq.n 80031b0 <HAL_GPIO_Init+0xa4>
  7042. 8003146: 2b12 cmp r3, #18
  7043. 8003148: d80d bhi.n 8003166 <HAL_GPIO_Init+0x5a>
  7044. 800314a: 2b02 cmp r3, #2
  7045. 800314c: d02b beq.n 80031a6 <HAL_GPIO_Init+0x9a>
  7046. 800314e: 2b02 cmp r3, #2
  7047. 8003150: d804 bhi.n 800315c <HAL_GPIO_Init+0x50>
  7048. 8003152: 2b00 cmp r3, #0
  7049. 8003154: d031 beq.n 80031ba <HAL_GPIO_Init+0xae>
  7050. 8003156: 2b01 cmp r3, #1
  7051. 8003158: d01c beq.n 8003194 <HAL_GPIO_Init+0x88>
  7052. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  7053. break;
  7054. /* Parameters are checked with assert_param */
  7055. default:
  7056. break;
  7057. 800315a: e048 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7058. switch (GPIO_Init->Mode)
  7059. 800315c: 2b03 cmp r3, #3
  7060. 800315e: d043 beq.n 80031e8 <HAL_GPIO_Init+0xdc>
  7061. 8003160: 2b11 cmp r3, #17
  7062. 8003162: d01b beq.n 800319c <HAL_GPIO_Init+0x90>
  7063. break;
  7064. 8003164: e043 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7065. switch (GPIO_Init->Mode)
  7066. 8003166: 4a89 ldr r2, [pc, #548] ; (800338c <HAL_GPIO_Init+0x280>)
  7067. 8003168: 4293 cmp r3, r2
  7068. 800316a: d026 beq.n 80031ba <HAL_GPIO_Init+0xae>
  7069. 800316c: 4a87 ldr r2, [pc, #540] ; (800338c <HAL_GPIO_Init+0x280>)
  7070. 800316e: 4293 cmp r3, r2
  7071. 8003170: d806 bhi.n 8003180 <HAL_GPIO_Init+0x74>
  7072. 8003172: 4a87 ldr r2, [pc, #540] ; (8003390 <HAL_GPIO_Init+0x284>)
  7073. 8003174: 4293 cmp r3, r2
  7074. 8003176: d020 beq.n 80031ba <HAL_GPIO_Init+0xae>
  7075. 8003178: 4a86 ldr r2, [pc, #536] ; (8003394 <HAL_GPIO_Init+0x288>)
  7076. 800317a: 4293 cmp r3, r2
  7077. 800317c: d01d beq.n 80031ba <HAL_GPIO_Init+0xae>
  7078. break;
  7079. 800317e: e036 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7080. switch (GPIO_Init->Mode)
  7081. 8003180: 4a85 ldr r2, [pc, #532] ; (8003398 <HAL_GPIO_Init+0x28c>)
  7082. 8003182: 4293 cmp r3, r2
  7083. 8003184: d019 beq.n 80031ba <HAL_GPIO_Init+0xae>
  7084. 8003186: 4a85 ldr r2, [pc, #532] ; (800339c <HAL_GPIO_Init+0x290>)
  7085. 8003188: 4293 cmp r3, r2
  7086. 800318a: d016 beq.n 80031ba <HAL_GPIO_Init+0xae>
  7087. 800318c: 4a84 ldr r2, [pc, #528] ; (80033a0 <HAL_GPIO_Init+0x294>)
  7088. 800318e: 4293 cmp r3, r2
  7089. 8003190: d013 beq.n 80031ba <HAL_GPIO_Init+0xae>
  7090. break;
  7091. 8003192: e02c b.n 80031ee <HAL_GPIO_Init+0xe2>
  7092. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP;
  7093. 8003194: 683b ldr r3, [r7, #0]
  7094. 8003196: 68db ldr r3, [r3, #12]
  7095. 8003198: 623b str r3, [r7, #32]
  7096. break;
  7097. 800319a: e028 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7098. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD;
  7099. 800319c: 683b ldr r3, [r7, #0]
  7100. 800319e: 68db ldr r3, [r3, #12]
  7101. 80031a0: 3304 adds r3, #4
  7102. 80031a2: 623b str r3, [r7, #32]
  7103. break;
  7104. 80031a4: e023 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7105. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP;
  7106. 80031a6: 683b ldr r3, [r7, #0]
  7107. 80031a8: 68db ldr r3, [r3, #12]
  7108. 80031aa: 3308 adds r3, #8
  7109. 80031ac: 623b str r3, [r7, #32]
  7110. break;
  7111. 80031ae: e01e b.n 80031ee <HAL_GPIO_Init+0xe2>
  7112. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD;
  7113. 80031b0: 683b ldr r3, [r7, #0]
  7114. 80031b2: 68db ldr r3, [r3, #12]
  7115. 80031b4: 330c adds r3, #12
  7116. 80031b6: 623b str r3, [r7, #32]
  7117. break;
  7118. 80031b8: e019 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7119. if (GPIO_Init->Pull == GPIO_NOPULL)
  7120. 80031ba: 683b ldr r3, [r7, #0]
  7121. 80031bc: 689b ldr r3, [r3, #8]
  7122. 80031be: 2b00 cmp r3, #0
  7123. 80031c0: d102 bne.n 80031c8 <HAL_GPIO_Init+0xbc>
  7124. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING;
  7125. 80031c2: 2304 movs r3, #4
  7126. 80031c4: 623b str r3, [r7, #32]
  7127. break;
  7128. 80031c6: e012 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7129. else if (GPIO_Init->Pull == GPIO_PULLUP)
  7130. 80031c8: 683b ldr r3, [r7, #0]
  7131. 80031ca: 689b ldr r3, [r3, #8]
  7132. 80031cc: 2b01 cmp r3, #1
  7133. 80031ce: d105 bne.n 80031dc <HAL_GPIO_Init+0xd0>
  7134. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  7135. 80031d0: 2308 movs r3, #8
  7136. 80031d2: 623b str r3, [r7, #32]
  7137. GPIOx->BSRR = ioposition;
  7138. 80031d4: 687b ldr r3, [r7, #4]
  7139. 80031d6: 69fa ldr r2, [r7, #28]
  7140. 80031d8: 611a str r2, [r3, #16]
  7141. break;
  7142. 80031da: e008 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7143. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  7144. 80031dc: 2308 movs r3, #8
  7145. 80031de: 623b str r3, [r7, #32]
  7146. GPIOx->BRR = ioposition;
  7147. 80031e0: 687b ldr r3, [r7, #4]
  7148. 80031e2: 69fa ldr r2, [r7, #28]
  7149. 80031e4: 615a str r2, [r3, #20]
  7150. break;
  7151. 80031e6: e002 b.n 80031ee <HAL_GPIO_Init+0xe2>
  7152. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  7153. 80031e8: 2300 movs r3, #0
  7154. 80031ea: 623b str r3, [r7, #32]
  7155. break;
  7156. 80031ec: bf00 nop
  7157. }
  7158. /* Check if the current bit belongs to first half or last half of the pin count number
  7159. in order to address CRH or CRL register*/
  7160. configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH;
  7161. 80031ee: 69bb ldr r3, [r7, #24]
  7162. 80031f0: 2bff cmp r3, #255 ; 0xff
  7163. 80031f2: d801 bhi.n 80031f8 <HAL_GPIO_Init+0xec>
  7164. 80031f4: 687b ldr r3, [r7, #4]
  7165. 80031f6: e001 b.n 80031fc <HAL_GPIO_Init+0xf0>
  7166. 80031f8: 687b ldr r3, [r7, #4]
  7167. 80031fa: 3304 adds r3, #4
  7168. 80031fc: 617b str r3, [r7, #20]
  7169. registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u);
  7170. 80031fe: 69bb ldr r3, [r7, #24]
  7171. 8003200: 2bff cmp r3, #255 ; 0xff
  7172. 8003202: d802 bhi.n 800320a <HAL_GPIO_Init+0xfe>
  7173. 8003204: 6a7b ldr r3, [r7, #36] ; 0x24
  7174. 8003206: 009b lsls r3, r3, #2
  7175. 8003208: e002 b.n 8003210 <HAL_GPIO_Init+0x104>
  7176. 800320a: 6a7b ldr r3, [r7, #36] ; 0x24
  7177. 800320c: 3b08 subs r3, #8
  7178. 800320e: 009b lsls r3, r3, #2
  7179. 8003210: 613b str r3, [r7, #16]
  7180. /* Apply the new configuration of the pin to the register */
  7181. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  7182. 8003212: 697b ldr r3, [r7, #20]
  7183. 8003214: 681a ldr r2, [r3, #0]
  7184. 8003216: 210f movs r1, #15
  7185. 8003218: 693b ldr r3, [r7, #16]
  7186. 800321a: fa01 f303 lsl.w r3, r1, r3
  7187. 800321e: 43db mvns r3, r3
  7188. 8003220: 401a ands r2, r3
  7189. 8003222: 6a39 ldr r1, [r7, #32]
  7190. 8003224: 693b ldr r3, [r7, #16]
  7191. 8003226: fa01 f303 lsl.w r3, r1, r3
  7192. 800322a: 431a orrs r2, r3
  7193. 800322c: 697b ldr r3, [r7, #20]
  7194. 800322e: 601a str r2, [r3, #0]
  7195. /*--------------------- EXTI Mode Configuration ------------------------*/
  7196. /* Configure the External Interrupt or event for the current IO */
  7197. if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
  7198. 8003230: 683b ldr r3, [r7, #0]
  7199. 8003232: 685b ldr r3, [r3, #4]
  7200. 8003234: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  7201. 8003238: 2b00 cmp r3, #0
  7202. 800323a: f000 8096 beq.w 800336a <HAL_GPIO_Init+0x25e>
  7203. {
  7204. /* Enable AFIO Clock */
  7205. __HAL_RCC_AFIO_CLK_ENABLE();
  7206. 800323e: 4b59 ldr r3, [pc, #356] ; (80033a4 <HAL_GPIO_Init+0x298>)
  7207. 8003240: 699b ldr r3, [r3, #24]
  7208. 8003242: 4a58 ldr r2, [pc, #352] ; (80033a4 <HAL_GPIO_Init+0x298>)
  7209. 8003244: f043 0301 orr.w r3, r3, #1
  7210. 8003248: 6193 str r3, [r2, #24]
  7211. 800324a: 4b56 ldr r3, [pc, #344] ; (80033a4 <HAL_GPIO_Init+0x298>)
  7212. 800324c: 699b ldr r3, [r3, #24]
  7213. 800324e: f003 0301 and.w r3, r3, #1
  7214. 8003252: 60bb str r3, [r7, #8]
  7215. 8003254: 68bb ldr r3, [r7, #8]
  7216. temp = AFIO->EXTICR[position >> 2u];
  7217. 8003256: 4a54 ldr r2, [pc, #336] ; (80033a8 <HAL_GPIO_Init+0x29c>)
  7218. 8003258: 6a7b ldr r3, [r7, #36] ; 0x24
  7219. 800325a: 089b lsrs r3, r3, #2
  7220. 800325c: 3302 adds r3, #2
  7221. 800325e: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  7222. 8003262: 60fb str r3, [r7, #12]
  7223. CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u)));
  7224. 8003264: 6a7b ldr r3, [r7, #36] ; 0x24
  7225. 8003266: f003 0303 and.w r3, r3, #3
  7226. 800326a: 009b lsls r3, r3, #2
  7227. 800326c: 220f movs r2, #15
  7228. 800326e: fa02 f303 lsl.w r3, r2, r3
  7229. 8003272: 43db mvns r3, r3
  7230. 8003274: 68fa ldr r2, [r7, #12]
  7231. 8003276: 4013 ands r3, r2
  7232. 8003278: 60fb str r3, [r7, #12]
  7233. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u)));
  7234. 800327a: 687b ldr r3, [r7, #4]
  7235. 800327c: 4a4b ldr r2, [pc, #300] ; (80033ac <HAL_GPIO_Init+0x2a0>)
  7236. 800327e: 4293 cmp r3, r2
  7237. 8003280: d013 beq.n 80032aa <HAL_GPIO_Init+0x19e>
  7238. 8003282: 687b ldr r3, [r7, #4]
  7239. 8003284: 4a4a ldr r2, [pc, #296] ; (80033b0 <HAL_GPIO_Init+0x2a4>)
  7240. 8003286: 4293 cmp r3, r2
  7241. 8003288: d00d beq.n 80032a6 <HAL_GPIO_Init+0x19a>
  7242. 800328a: 687b ldr r3, [r7, #4]
  7243. 800328c: 4a49 ldr r2, [pc, #292] ; (80033b4 <HAL_GPIO_Init+0x2a8>)
  7244. 800328e: 4293 cmp r3, r2
  7245. 8003290: d007 beq.n 80032a2 <HAL_GPIO_Init+0x196>
  7246. 8003292: 687b ldr r3, [r7, #4]
  7247. 8003294: 4a48 ldr r2, [pc, #288] ; (80033b8 <HAL_GPIO_Init+0x2ac>)
  7248. 8003296: 4293 cmp r3, r2
  7249. 8003298: d101 bne.n 800329e <HAL_GPIO_Init+0x192>
  7250. 800329a: 2303 movs r3, #3
  7251. 800329c: e006 b.n 80032ac <HAL_GPIO_Init+0x1a0>
  7252. 800329e: 2304 movs r3, #4
  7253. 80032a0: e004 b.n 80032ac <HAL_GPIO_Init+0x1a0>
  7254. 80032a2: 2302 movs r3, #2
  7255. 80032a4: e002 b.n 80032ac <HAL_GPIO_Init+0x1a0>
  7256. 80032a6: 2301 movs r3, #1
  7257. 80032a8: e000 b.n 80032ac <HAL_GPIO_Init+0x1a0>
  7258. 80032aa: 2300 movs r3, #0
  7259. 80032ac: 6a7a ldr r2, [r7, #36] ; 0x24
  7260. 80032ae: f002 0203 and.w r2, r2, #3
  7261. 80032b2: 0092 lsls r2, r2, #2
  7262. 80032b4: 4093 lsls r3, r2
  7263. 80032b6: 68fa ldr r2, [r7, #12]
  7264. 80032b8: 4313 orrs r3, r2
  7265. 80032ba: 60fb str r3, [r7, #12]
  7266. AFIO->EXTICR[position >> 2u] = temp;
  7267. 80032bc: 493a ldr r1, [pc, #232] ; (80033a8 <HAL_GPIO_Init+0x29c>)
  7268. 80032be: 6a7b ldr r3, [r7, #36] ; 0x24
  7269. 80032c0: 089b lsrs r3, r3, #2
  7270. 80032c2: 3302 adds r3, #2
  7271. 80032c4: 68fa ldr r2, [r7, #12]
  7272. 80032c6: f841 2023 str.w r2, [r1, r3, lsl #2]
  7273. /* Configure the interrupt mask */
  7274. if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
  7275. 80032ca: 683b ldr r3, [r7, #0]
  7276. 80032cc: 685b ldr r3, [r3, #4]
  7277. 80032ce: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7278. 80032d2: 2b00 cmp r3, #0
  7279. 80032d4: d006 beq.n 80032e4 <HAL_GPIO_Init+0x1d8>
  7280. {
  7281. SET_BIT(EXTI->IMR, iocurrent);
  7282. 80032d6: 4b39 ldr r3, [pc, #228] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7283. 80032d8: 681a ldr r2, [r3, #0]
  7284. 80032da: 4938 ldr r1, [pc, #224] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7285. 80032dc: 69bb ldr r3, [r7, #24]
  7286. 80032de: 4313 orrs r3, r2
  7287. 80032e0: 600b str r3, [r1, #0]
  7288. 80032e2: e006 b.n 80032f2 <HAL_GPIO_Init+0x1e6>
  7289. }
  7290. else
  7291. {
  7292. CLEAR_BIT(EXTI->IMR, iocurrent);
  7293. 80032e4: 4b35 ldr r3, [pc, #212] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7294. 80032e6: 681a ldr r2, [r3, #0]
  7295. 80032e8: 69bb ldr r3, [r7, #24]
  7296. 80032ea: 43db mvns r3, r3
  7297. 80032ec: 4933 ldr r1, [pc, #204] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7298. 80032ee: 4013 ands r3, r2
  7299. 80032f0: 600b str r3, [r1, #0]
  7300. }
  7301. /* Configure the event mask */
  7302. if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
  7303. 80032f2: 683b ldr r3, [r7, #0]
  7304. 80032f4: 685b ldr r3, [r3, #4]
  7305. 80032f6: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7306. 80032fa: 2b00 cmp r3, #0
  7307. 80032fc: d006 beq.n 800330c <HAL_GPIO_Init+0x200>
  7308. {
  7309. SET_BIT(EXTI->EMR, iocurrent);
  7310. 80032fe: 4b2f ldr r3, [pc, #188] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7311. 8003300: 685a ldr r2, [r3, #4]
  7312. 8003302: 492e ldr r1, [pc, #184] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7313. 8003304: 69bb ldr r3, [r7, #24]
  7314. 8003306: 4313 orrs r3, r2
  7315. 8003308: 604b str r3, [r1, #4]
  7316. 800330a: e006 b.n 800331a <HAL_GPIO_Init+0x20e>
  7317. }
  7318. else
  7319. {
  7320. CLEAR_BIT(EXTI->EMR, iocurrent);
  7321. 800330c: 4b2b ldr r3, [pc, #172] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7322. 800330e: 685a ldr r2, [r3, #4]
  7323. 8003310: 69bb ldr r3, [r7, #24]
  7324. 8003312: 43db mvns r3, r3
  7325. 8003314: 4929 ldr r1, [pc, #164] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7326. 8003316: 4013 ands r3, r2
  7327. 8003318: 604b str r3, [r1, #4]
  7328. }
  7329. /* Enable or disable the rising trigger */
  7330. if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
  7331. 800331a: 683b ldr r3, [r7, #0]
  7332. 800331c: 685b ldr r3, [r3, #4]
  7333. 800331e: f403 1380 and.w r3, r3, #1048576 ; 0x100000
  7334. 8003322: 2b00 cmp r3, #0
  7335. 8003324: d006 beq.n 8003334 <HAL_GPIO_Init+0x228>
  7336. {
  7337. SET_BIT(EXTI->RTSR, iocurrent);
  7338. 8003326: 4b25 ldr r3, [pc, #148] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7339. 8003328: 689a ldr r2, [r3, #8]
  7340. 800332a: 4924 ldr r1, [pc, #144] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7341. 800332c: 69bb ldr r3, [r7, #24]
  7342. 800332e: 4313 orrs r3, r2
  7343. 8003330: 608b str r3, [r1, #8]
  7344. 8003332: e006 b.n 8003342 <HAL_GPIO_Init+0x236>
  7345. }
  7346. else
  7347. {
  7348. CLEAR_BIT(EXTI->RTSR, iocurrent);
  7349. 8003334: 4b21 ldr r3, [pc, #132] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7350. 8003336: 689a ldr r2, [r3, #8]
  7351. 8003338: 69bb ldr r3, [r7, #24]
  7352. 800333a: 43db mvns r3, r3
  7353. 800333c: 491f ldr r1, [pc, #124] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7354. 800333e: 4013 ands r3, r2
  7355. 8003340: 608b str r3, [r1, #8]
  7356. }
  7357. /* Enable or disable the falling trigger */
  7358. if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
  7359. 8003342: 683b ldr r3, [r7, #0]
  7360. 8003344: 685b ldr r3, [r3, #4]
  7361. 8003346: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  7362. 800334a: 2b00 cmp r3, #0
  7363. 800334c: d006 beq.n 800335c <HAL_GPIO_Init+0x250>
  7364. {
  7365. SET_BIT(EXTI->FTSR, iocurrent);
  7366. 800334e: 4b1b ldr r3, [pc, #108] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7367. 8003350: 68da ldr r2, [r3, #12]
  7368. 8003352: 491a ldr r1, [pc, #104] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7369. 8003354: 69bb ldr r3, [r7, #24]
  7370. 8003356: 4313 orrs r3, r2
  7371. 8003358: 60cb str r3, [r1, #12]
  7372. 800335a: e006 b.n 800336a <HAL_GPIO_Init+0x25e>
  7373. }
  7374. else
  7375. {
  7376. CLEAR_BIT(EXTI->FTSR, iocurrent);
  7377. 800335c: 4b17 ldr r3, [pc, #92] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7378. 800335e: 68da ldr r2, [r3, #12]
  7379. 8003360: 69bb ldr r3, [r7, #24]
  7380. 8003362: 43db mvns r3, r3
  7381. 8003364: 4915 ldr r1, [pc, #84] ; (80033bc <HAL_GPIO_Init+0x2b0>)
  7382. 8003366: 4013 ands r3, r2
  7383. 8003368: 60cb str r3, [r1, #12]
  7384. }
  7385. }
  7386. }
  7387. position++;
  7388. 800336a: 6a7b ldr r3, [r7, #36] ; 0x24
  7389. 800336c: 3301 adds r3, #1
  7390. 800336e: 627b str r3, [r7, #36] ; 0x24
  7391. while (((GPIO_Init->Pin) >> position) != 0x00u)
  7392. 8003370: 683b ldr r3, [r7, #0]
  7393. 8003372: 681a ldr r2, [r3, #0]
  7394. 8003374: 6a7b ldr r3, [r7, #36] ; 0x24
  7395. 8003376: fa22 f303 lsr.w r3, r2, r3
  7396. 800337a: 2b00 cmp r3, #0
  7397. 800337c: f47f aed0 bne.w 8003120 <HAL_GPIO_Init+0x14>
  7398. }
  7399. }
  7400. 8003380: bf00 nop
  7401. 8003382: 372c adds r7, #44 ; 0x2c
  7402. 8003384: 46bd mov sp, r7
  7403. 8003386: bc80 pop {r7}
  7404. 8003388: 4770 bx lr
  7405. 800338a: bf00 nop
  7406. 800338c: 10210000 .word 0x10210000
  7407. 8003390: 10110000 .word 0x10110000
  7408. 8003394: 10120000 .word 0x10120000
  7409. 8003398: 10310000 .word 0x10310000
  7410. 800339c: 10320000 .word 0x10320000
  7411. 80033a0: 10220000 .word 0x10220000
  7412. 80033a4: 40021000 .word 0x40021000
  7413. 80033a8: 40010000 .word 0x40010000
  7414. 80033ac: 40010800 .word 0x40010800
  7415. 80033b0: 40010c00 .word 0x40010c00
  7416. 80033b4: 40011000 .word 0x40011000
  7417. 80033b8: 40011400 .word 0x40011400
  7418. 80033bc: 40010400 .word 0x40010400
  7419. 080033c0 <HAL_GPIO_ReadPin>:
  7420. * @param GPIO_Pin: specifies the port bit to read.
  7421. * This parameter can be GPIO_PIN_x where x can be (0..15).
  7422. * @retval The input port pin value.
  7423. */
  7424. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  7425. {
  7426. 80033c0: b480 push {r7}
  7427. 80033c2: b085 sub sp, #20
  7428. 80033c4: af00 add r7, sp, #0
  7429. 80033c6: 6078 str r0, [r7, #4]
  7430. 80033c8: 460b mov r3, r1
  7431. 80033ca: 807b strh r3, [r7, #2]
  7432. GPIO_PinState bitstatus;
  7433. /* Check the parameters */
  7434. assert_param(IS_GPIO_PIN(GPIO_Pin));
  7435. if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET)
  7436. 80033cc: 687b ldr r3, [r7, #4]
  7437. 80033ce: 689a ldr r2, [r3, #8]
  7438. 80033d0: 887b ldrh r3, [r7, #2]
  7439. 80033d2: 4013 ands r3, r2
  7440. 80033d4: 2b00 cmp r3, #0
  7441. 80033d6: d002 beq.n 80033de <HAL_GPIO_ReadPin+0x1e>
  7442. {
  7443. bitstatus = GPIO_PIN_SET;
  7444. 80033d8: 2301 movs r3, #1
  7445. 80033da: 73fb strb r3, [r7, #15]
  7446. 80033dc: e001 b.n 80033e2 <HAL_GPIO_ReadPin+0x22>
  7447. }
  7448. else
  7449. {
  7450. bitstatus = GPIO_PIN_RESET;
  7451. 80033de: 2300 movs r3, #0
  7452. 80033e0: 73fb strb r3, [r7, #15]
  7453. }
  7454. return bitstatus;
  7455. 80033e2: 7bfb ldrb r3, [r7, #15]
  7456. }
  7457. 80033e4: 4618 mov r0, r3
  7458. 80033e6: 3714 adds r7, #20
  7459. 80033e8: 46bd mov sp, r7
  7460. 80033ea: bc80 pop {r7}
  7461. 80033ec: 4770 bx lr
  7462. 080033ee <HAL_GPIO_WritePin>:
  7463. * @arg GPIO_PIN_RESET: to clear the port pin
  7464. * @arg GPIO_PIN_SET: to set the port pin
  7465. * @retval None
  7466. */
  7467. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  7468. {
  7469. 80033ee: b480 push {r7}
  7470. 80033f0: b083 sub sp, #12
  7471. 80033f2: af00 add r7, sp, #0
  7472. 80033f4: 6078 str r0, [r7, #4]
  7473. 80033f6: 460b mov r3, r1
  7474. 80033f8: 807b strh r3, [r7, #2]
  7475. 80033fa: 4613 mov r3, r2
  7476. 80033fc: 707b strb r3, [r7, #1]
  7477. /* Check the parameters */
  7478. assert_param(IS_GPIO_PIN(GPIO_Pin));
  7479. assert_param(IS_GPIO_PIN_ACTION(PinState));
  7480. if (PinState != GPIO_PIN_RESET)
  7481. 80033fe: 787b ldrb r3, [r7, #1]
  7482. 8003400: 2b00 cmp r3, #0
  7483. 8003402: d003 beq.n 800340c <HAL_GPIO_WritePin+0x1e>
  7484. {
  7485. GPIOx->BSRR = GPIO_Pin;
  7486. 8003404: 887a ldrh r2, [r7, #2]
  7487. 8003406: 687b ldr r3, [r7, #4]
  7488. 8003408: 611a str r2, [r3, #16]
  7489. }
  7490. else
  7491. {
  7492. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  7493. }
  7494. }
  7495. 800340a: e003 b.n 8003414 <HAL_GPIO_WritePin+0x26>
  7496. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  7497. 800340c: 887b ldrh r3, [r7, #2]
  7498. 800340e: 041a lsls r2, r3, #16
  7499. 8003410: 687b ldr r3, [r7, #4]
  7500. 8003412: 611a str r2, [r3, #16]
  7501. }
  7502. 8003414: bf00 nop
  7503. 8003416: 370c adds r7, #12
  7504. 8003418: 46bd mov sp, r7
  7505. 800341a: bc80 pop {r7}
  7506. 800341c: 4770 bx lr
  7507. 0800341e <HAL_GPIO_TogglePin>:
  7508. * @param GPIOx: where x can be (A..G depending on device used) to select the GPIO peripheral
  7509. * @param GPIO_Pin: Specifies the pins to be toggled.
  7510. * @retval None
  7511. */
  7512. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  7513. {
  7514. 800341e: b480 push {r7}
  7515. 8003420: b083 sub sp, #12
  7516. 8003422: af00 add r7, sp, #0
  7517. 8003424: 6078 str r0, [r7, #4]
  7518. 8003426: 460b mov r3, r1
  7519. 8003428: 807b strh r3, [r7, #2]
  7520. /* Check the parameters */
  7521. assert_param(IS_GPIO_PIN(GPIO_Pin));
  7522. if ((GPIOx->ODR & GPIO_Pin) != 0x00u)
  7523. 800342a: 687b ldr r3, [r7, #4]
  7524. 800342c: 68da ldr r2, [r3, #12]
  7525. 800342e: 887b ldrh r3, [r7, #2]
  7526. 8003430: 4013 ands r3, r2
  7527. 8003432: 2b00 cmp r3, #0
  7528. 8003434: d003 beq.n 800343e <HAL_GPIO_TogglePin+0x20>
  7529. {
  7530. GPIOx->BRR = (uint32_t)GPIO_Pin;
  7531. 8003436: 887a ldrh r2, [r7, #2]
  7532. 8003438: 687b ldr r3, [r7, #4]
  7533. 800343a: 615a str r2, [r3, #20]
  7534. }
  7535. else
  7536. {
  7537. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  7538. }
  7539. }
  7540. 800343c: e002 b.n 8003444 <HAL_GPIO_TogglePin+0x26>
  7541. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  7542. 800343e: 887a ldrh r2, [r7, #2]
  7543. 8003440: 687b ldr r3, [r7, #4]
  7544. 8003442: 611a str r2, [r3, #16]
  7545. }
  7546. 8003444: bf00 nop
  7547. 8003446: 370c adds r7, #12
  7548. 8003448: 46bd mov sp, r7
  7549. 800344a: bc80 pop {r7}
  7550. 800344c: 4770 bx lr
  7551. ...
  7552. 08003450 <HAL_RCC_OscConfig>:
  7553. * supported by this macro. User should request a transition to HSE Off
  7554. * first and then HSE On or HSE Bypass.
  7555. * @retval HAL status
  7556. */
  7557. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  7558. {
  7559. 8003450: b580 push {r7, lr}
  7560. 8003452: b086 sub sp, #24
  7561. 8003454: af00 add r7, sp, #0
  7562. 8003456: 6078 str r0, [r7, #4]
  7563. uint32_t tickstart;
  7564. uint32_t pll_config;
  7565. /* Check Null pointer */
  7566. if (RCC_OscInitStruct == NULL)
  7567. 8003458: 687b ldr r3, [r7, #4]
  7568. 800345a: 2b00 cmp r3, #0
  7569. 800345c: d101 bne.n 8003462 <HAL_RCC_OscConfig+0x12>
  7570. {
  7571. return HAL_ERROR;
  7572. 800345e: 2301 movs r3, #1
  7573. 8003460: e26c b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7574. /* Check the parameters */
  7575. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  7576. /*------------------------------- HSE Configuration ------------------------*/
  7577. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  7578. 8003462: 687b ldr r3, [r7, #4]
  7579. 8003464: 681b ldr r3, [r3, #0]
  7580. 8003466: f003 0301 and.w r3, r3, #1
  7581. 800346a: 2b00 cmp r3, #0
  7582. 800346c: f000 8087 beq.w 800357e <HAL_RCC_OscConfig+0x12e>
  7583. {
  7584. /* Check the parameters */
  7585. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  7586. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  7587. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  7588. 8003470: 4b92 ldr r3, [pc, #584] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7589. 8003472: 685b ldr r3, [r3, #4]
  7590. 8003474: f003 030c and.w r3, r3, #12
  7591. 8003478: 2b04 cmp r3, #4
  7592. 800347a: d00c beq.n 8003496 <HAL_RCC_OscConfig+0x46>
  7593. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  7594. 800347c: 4b8f ldr r3, [pc, #572] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7595. 800347e: 685b ldr r3, [r3, #4]
  7596. 8003480: f003 030c and.w r3, r3, #12
  7597. 8003484: 2b08 cmp r3, #8
  7598. 8003486: d112 bne.n 80034ae <HAL_RCC_OscConfig+0x5e>
  7599. 8003488: 4b8c ldr r3, [pc, #560] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7600. 800348a: 685b ldr r3, [r3, #4]
  7601. 800348c: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7602. 8003490: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  7603. 8003494: d10b bne.n 80034ae <HAL_RCC_OscConfig+0x5e>
  7604. {
  7605. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  7606. 8003496: 4b89 ldr r3, [pc, #548] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7607. 8003498: 681b ldr r3, [r3, #0]
  7608. 800349a: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7609. 800349e: 2b00 cmp r3, #0
  7610. 80034a0: d06c beq.n 800357c <HAL_RCC_OscConfig+0x12c>
  7611. 80034a2: 687b ldr r3, [r7, #4]
  7612. 80034a4: 685b ldr r3, [r3, #4]
  7613. 80034a6: 2b00 cmp r3, #0
  7614. 80034a8: d168 bne.n 800357c <HAL_RCC_OscConfig+0x12c>
  7615. {
  7616. return HAL_ERROR;
  7617. 80034aa: 2301 movs r3, #1
  7618. 80034ac: e246 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7619. }
  7620. }
  7621. else
  7622. {
  7623. /* Set the new HSE configuration ---------------------------------------*/
  7624. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  7625. 80034ae: 687b ldr r3, [r7, #4]
  7626. 80034b0: 685b ldr r3, [r3, #4]
  7627. 80034b2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  7628. 80034b6: d106 bne.n 80034c6 <HAL_RCC_OscConfig+0x76>
  7629. 80034b8: 4b80 ldr r3, [pc, #512] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7630. 80034ba: 681b ldr r3, [r3, #0]
  7631. 80034bc: 4a7f ldr r2, [pc, #508] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7632. 80034be: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  7633. 80034c2: 6013 str r3, [r2, #0]
  7634. 80034c4: e02e b.n 8003524 <HAL_RCC_OscConfig+0xd4>
  7635. 80034c6: 687b ldr r3, [r7, #4]
  7636. 80034c8: 685b ldr r3, [r3, #4]
  7637. 80034ca: 2b00 cmp r3, #0
  7638. 80034cc: d10c bne.n 80034e8 <HAL_RCC_OscConfig+0x98>
  7639. 80034ce: 4b7b ldr r3, [pc, #492] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7640. 80034d0: 681b ldr r3, [r3, #0]
  7641. 80034d2: 4a7a ldr r2, [pc, #488] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7642. 80034d4: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  7643. 80034d8: 6013 str r3, [r2, #0]
  7644. 80034da: 4b78 ldr r3, [pc, #480] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7645. 80034dc: 681b ldr r3, [r3, #0]
  7646. 80034de: 4a77 ldr r2, [pc, #476] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7647. 80034e0: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  7648. 80034e4: 6013 str r3, [r2, #0]
  7649. 80034e6: e01d b.n 8003524 <HAL_RCC_OscConfig+0xd4>
  7650. 80034e8: 687b ldr r3, [r7, #4]
  7651. 80034ea: 685b ldr r3, [r3, #4]
  7652. 80034ec: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
  7653. 80034f0: d10c bne.n 800350c <HAL_RCC_OscConfig+0xbc>
  7654. 80034f2: 4b72 ldr r3, [pc, #456] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7655. 80034f4: 681b ldr r3, [r3, #0]
  7656. 80034f6: 4a71 ldr r2, [pc, #452] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7657. 80034f8: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  7658. 80034fc: 6013 str r3, [r2, #0]
  7659. 80034fe: 4b6f ldr r3, [pc, #444] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7660. 8003500: 681b ldr r3, [r3, #0]
  7661. 8003502: 4a6e ldr r2, [pc, #440] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7662. 8003504: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  7663. 8003508: 6013 str r3, [r2, #0]
  7664. 800350a: e00b b.n 8003524 <HAL_RCC_OscConfig+0xd4>
  7665. 800350c: 4b6b ldr r3, [pc, #428] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7666. 800350e: 681b ldr r3, [r3, #0]
  7667. 8003510: 4a6a ldr r2, [pc, #424] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7668. 8003512: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  7669. 8003516: 6013 str r3, [r2, #0]
  7670. 8003518: 4b68 ldr r3, [pc, #416] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7671. 800351a: 681b ldr r3, [r3, #0]
  7672. 800351c: 4a67 ldr r2, [pc, #412] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7673. 800351e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  7674. 8003522: 6013 str r3, [r2, #0]
  7675. /* Check the HSE State */
  7676. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  7677. 8003524: 687b ldr r3, [r7, #4]
  7678. 8003526: 685b ldr r3, [r3, #4]
  7679. 8003528: 2b00 cmp r3, #0
  7680. 800352a: d013 beq.n 8003554 <HAL_RCC_OscConfig+0x104>
  7681. {
  7682. /* Get Start Tick */
  7683. tickstart = HAL_GetTick();
  7684. 800352c: f7fe fb9e bl 8001c6c <HAL_GetTick>
  7685. 8003530: 6138 str r0, [r7, #16]
  7686. /* Wait till HSE is ready */
  7687. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  7688. 8003532: e008 b.n 8003546 <HAL_RCC_OscConfig+0xf6>
  7689. {
  7690. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  7691. 8003534: f7fe fb9a bl 8001c6c <HAL_GetTick>
  7692. 8003538: 4602 mov r2, r0
  7693. 800353a: 693b ldr r3, [r7, #16]
  7694. 800353c: 1ad3 subs r3, r2, r3
  7695. 800353e: 2b64 cmp r3, #100 ; 0x64
  7696. 8003540: d901 bls.n 8003546 <HAL_RCC_OscConfig+0xf6>
  7697. {
  7698. return HAL_TIMEOUT;
  7699. 8003542: 2303 movs r3, #3
  7700. 8003544: e1fa b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7701. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  7702. 8003546: 4b5d ldr r3, [pc, #372] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7703. 8003548: 681b ldr r3, [r3, #0]
  7704. 800354a: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7705. 800354e: 2b00 cmp r3, #0
  7706. 8003550: d0f0 beq.n 8003534 <HAL_RCC_OscConfig+0xe4>
  7707. 8003552: e014 b.n 800357e <HAL_RCC_OscConfig+0x12e>
  7708. }
  7709. }
  7710. else
  7711. {
  7712. /* Get Start Tick */
  7713. tickstart = HAL_GetTick();
  7714. 8003554: f7fe fb8a bl 8001c6c <HAL_GetTick>
  7715. 8003558: 6138 str r0, [r7, #16]
  7716. /* Wait till HSE is disabled */
  7717. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  7718. 800355a: e008 b.n 800356e <HAL_RCC_OscConfig+0x11e>
  7719. {
  7720. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  7721. 800355c: f7fe fb86 bl 8001c6c <HAL_GetTick>
  7722. 8003560: 4602 mov r2, r0
  7723. 8003562: 693b ldr r3, [r7, #16]
  7724. 8003564: 1ad3 subs r3, r2, r3
  7725. 8003566: 2b64 cmp r3, #100 ; 0x64
  7726. 8003568: d901 bls.n 800356e <HAL_RCC_OscConfig+0x11e>
  7727. {
  7728. return HAL_TIMEOUT;
  7729. 800356a: 2303 movs r3, #3
  7730. 800356c: e1e6 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7731. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  7732. 800356e: 4b53 ldr r3, [pc, #332] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7733. 8003570: 681b ldr r3, [r3, #0]
  7734. 8003572: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7735. 8003576: 2b00 cmp r3, #0
  7736. 8003578: d1f0 bne.n 800355c <HAL_RCC_OscConfig+0x10c>
  7737. 800357a: e000 b.n 800357e <HAL_RCC_OscConfig+0x12e>
  7738. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  7739. 800357c: bf00 nop
  7740. }
  7741. }
  7742. }
  7743. }
  7744. /*----------------------------- HSI Configuration --------------------------*/
  7745. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  7746. 800357e: 687b ldr r3, [r7, #4]
  7747. 8003580: 681b ldr r3, [r3, #0]
  7748. 8003582: f003 0302 and.w r3, r3, #2
  7749. 8003586: 2b00 cmp r3, #0
  7750. 8003588: d063 beq.n 8003652 <HAL_RCC_OscConfig+0x202>
  7751. /* Check the parameters */
  7752. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  7753. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  7754. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  7755. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  7756. 800358a: 4b4c ldr r3, [pc, #304] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7757. 800358c: 685b ldr r3, [r3, #4]
  7758. 800358e: f003 030c and.w r3, r3, #12
  7759. 8003592: 2b00 cmp r3, #0
  7760. 8003594: d00b beq.n 80035ae <HAL_RCC_OscConfig+0x15e>
  7761. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2)))
  7762. 8003596: 4b49 ldr r3, [pc, #292] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7763. 8003598: 685b ldr r3, [r3, #4]
  7764. 800359a: f003 030c and.w r3, r3, #12
  7765. 800359e: 2b08 cmp r3, #8
  7766. 80035a0: d11c bne.n 80035dc <HAL_RCC_OscConfig+0x18c>
  7767. 80035a2: 4b46 ldr r3, [pc, #280] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7768. 80035a4: 685b ldr r3, [r3, #4]
  7769. 80035a6: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7770. 80035aa: 2b00 cmp r3, #0
  7771. 80035ac: d116 bne.n 80035dc <HAL_RCC_OscConfig+0x18c>
  7772. {
  7773. /* When HSI is used as system clock it will not disabled */
  7774. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  7775. 80035ae: 4b43 ldr r3, [pc, #268] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7776. 80035b0: 681b ldr r3, [r3, #0]
  7777. 80035b2: f003 0302 and.w r3, r3, #2
  7778. 80035b6: 2b00 cmp r3, #0
  7779. 80035b8: d005 beq.n 80035c6 <HAL_RCC_OscConfig+0x176>
  7780. 80035ba: 687b ldr r3, [r7, #4]
  7781. 80035bc: 691b ldr r3, [r3, #16]
  7782. 80035be: 2b01 cmp r3, #1
  7783. 80035c0: d001 beq.n 80035c6 <HAL_RCC_OscConfig+0x176>
  7784. {
  7785. return HAL_ERROR;
  7786. 80035c2: 2301 movs r3, #1
  7787. 80035c4: e1ba b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7788. }
  7789. /* Otherwise, just the calibration is allowed */
  7790. else
  7791. {
  7792. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  7793. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  7794. 80035c6: 4b3d ldr r3, [pc, #244] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7795. 80035c8: 681b ldr r3, [r3, #0]
  7796. 80035ca: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  7797. 80035ce: 687b ldr r3, [r7, #4]
  7798. 80035d0: 695b ldr r3, [r3, #20]
  7799. 80035d2: 00db lsls r3, r3, #3
  7800. 80035d4: 4939 ldr r1, [pc, #228] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7801. 80035d6: 4313 orrs r3, r2
  7802. 80035d8: 600b str r3, [r1, #0]
  7803. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  7804. 80035da: e03a b.n 8003652 <HAL_RCC_OscConfig+0x202>
  7805. }
  7806. }
  7807. else
  7808. {
  7809. /* Check the HSI State */
  7810. if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  7811. 80035dc: 687b ldr r3, [r7, #4]
  7812. 80035de: 691b ldr r3, [r3, #16]
  7813. 80035e0: 2b00 cmp r3, #0
  7814. 80035e2: d020 beq.n 8003626 <HAL_RCC_OscConfig+0x1d6>
  7815. {
  7816. /* Enable the Internal High Speed oscillator (HSI). */
  7817. __HAL_RCC_HSI_ENABLE();
  7818. 80035e4: 4b36 ldr r3, [pc, #216] ; (80036c0 <HAL_RCC_OscConfig+0x270>)
  7819. 80035e6: 2201 movs r2, #1
  7820. 80035e8: 601a str r2, [r3, #0]
  7821. /* Get Start Tick */
  7822. tickstart = HAL_GetTick();
  7823. 80035ea: f7fe fb3f bl 8001c6c <HAL_GetTick>
  7824. 80035ee: 6138 str r0, [r7, #16]
  7825. /* Wait till HSI is ready */
  7826. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  7827. 80035f0: e008 b.n 8003604 <HAL_RCC_OscConfig+0x1b4>
  7828. {
  7829. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  7830. 80035f2: f7fe fb3b bl 8001c6c <HAL_GetTick>
  7831. 80035f6: 4602 mov r2, r0
  7832. 80035f8: 693b ldr r3, [r7, #16]
  7833. 80035fa: 1ad3 subs r3, r2, r3
  7834. 80035fc: 2b02 cmp r3, #2
  7835. 80035fe: d901 bls.n 8003604 <HAL_RCC_OscConfig+0x1b4>
  7836. {
  7837. return HAL_TIMEOUT;
  7838. 8003600: 2303 movs r3, #3
  7839. 8003602: e19b b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7840. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  7841. 8003604: 4b2d ldr r3, [pc, #180] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7842. 8003606: 681b ldr r3, [r3, #0]
  7843. 8003608: f003 0302 and.w r3, r3, #2
  7844. 800360c: 2b00 cmp r3, #0
  7845. 800360e: d0f0 beq.n 80035f2 <HAL_RCC_OscConfig+0x1a2>
  7846. }
  7847. }
  7848. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  7849. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  7850. 8003610: 4b2a ldr r3, [pc, #168] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7851. 8003612: 681b ldr r3, [r3, #0]
  7852. 8003614: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  7853. 8003618: 687b ldr r3, [r7, #4]
  7854. 800361a: 695b ldr r3, [r3, #20]
  7855. 800361c: 00db lsls r3, r3, #3
  7856. 800361e: 4927 ldr r1, [pc, #156] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7857. 8003620: 4313 orrs r3, r2
  7858. 8003622: 600b str r3, [r1, #0]
  7859. 8003624: e015 b.n 8003652 <HAL_RCC_OscConfig+0x202>
  7860. }
  7861. else
  7862. {
  7863. /* Disable the Internal High Speed oscillator (HSI). */
  7864. __HAL_RCC_HSI_DISABLE();
  7865. 8003626: 4b26 ldr r3, [pc, #152] ; (80036c0 <HAL_RCC_OscConfig+0x270>)
  7866. 8003628: 2200 movs r2, #0
  7867. 800362a: 601a str r2, [r3, #0]
  7868. /* Get Start Tick */
  7869. tickstart = HAL_GetTick();
  7870. 800362c: f7fe fb1e bl 8001c6c <HAL_GetTick>
  7871. 8003630: 6138 str r0, [r7, #16]
  7872. /* Wait till HSI is disabled */
  7873. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  7874. 8003632: e008 b.n 8003646 <HAL_RCC_OscConfig+0x1f6>
  7875. {
  7876. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  7877. 8003634: f7fe fb1a bl 8001c6c <HAL_GetTick>
  7878. 8003638: 4602 mov r2, r0
  7879. 800363a: 693b ldr r3, [r7, #16]
  7880. 800363c: 1ad3 subs r3, r2, r3
  7881. 800363e: 2b02 cmp r3, #2
  7882. 8003640: d901 bls.n 8003646 <HAL_RCC_OscConfig+0x1f6>
  7883. {
  7884. return HAL_TIMEOUT;
  7885. 8003642: 2303 movs r3, #3
  7886. 8003644: e17a b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7887. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  7888. 8003646: 4b1d ldr r3, [pc, #116] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7889. 8003648: 681b ldr r3, [r3, #0]
  7890. 800364a: f003 0302 and.w r3, r3, #2
  7891. 800364e: 2b00 cmp r3, #0
  7892. 8003650: d1f0 bne.n 8003634 <HAL_RCC_OscConfig+0x1e4>
  7893. }
  7894. }
  7895. }
  7896. }
  7897. /*------------------------------ LSI Configuration -------------------------*/
  7898. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  7899. 8003652: 687b ldr r3, [r7, #4]
  7900. 8003654: 681b ldr r3, [r3, #0]
  7901. 8003656: f003 0308 and.w r3, r3, #8
  7902. 800365a: 2b00 cmp r3, #0
  7903. 800365c: d03a beq.n 80036d4 <HAL_RCC_OscConfig+0x284>
  7904. {
  7905. /* Check the parameters */
  7906. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  7907. /* Check the LSI State */
  7908. if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  7909. 800365e: 687b ldr r3, [r7, #4]
  7910. 8003660: 699b ldr r3, [r3, #24]
  7911. 8003662: 2b00 cmp r3, #0
  7912. 8003664: d019 beq.n 800369a <HAL_RCC_OscConfig+0x24a>
  7913. {
  7914. /* Enable the Internal Low Speed oscillator (LSI). */
  7915. __HAL_RCC_LSI_ENABLE();
  7916. 8003666: 4b17 ldr r3, [pc, #92] ; (80036c4 <HAL_RCC_OscConfig+0x274>)
  7917. 8003668: 2201 movs r2, #1
  7918. 800366a: 601a str r2, [r3, #0]
  7919. /* Get Start Tick */
  7920. tickstart = HAL_GetTick();
  7921. 800366c: f7fe fafe bl 8001c6c <HAL_GetTick>
  7922. 8003670: 6138 str r0, [r7, #16]
  7923. /* Wait till LSI is ready */
  7924. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  7925. 8003672: e008 b.n 8003686 <HAL_RCC_OscConfig+0x236>
  7926. {
  7927. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  7928. 8003674: f7fe fafa bl 8001c6c <HAL_GetTick>
  7929. 8003678: 4602 mov r2, r0
  7930. 800367a: 693b ldr r3, [r7, #16]
  7931. 800367c: 1ad3 subs r3, r2, r3
  7932. 800367e: 2b02 cmp r3, #2
  7933. 8003680: d901 bls.n 8003686 <HAL_RCC_OscConfig+0x236>
  7934. {
  7935. return HAL_TIMEOUT;
  7936. 8003682: 2303 movs r3, #3
  7937. 8003684: e15a b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7938. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  7939. 8003686: 4b0d ldr r3, [pc, #52] ; (80036bc <HAL_RCC_OscConfig+0x26c>)
  7940. 8003688: 6a5b ldr r3, [r3, #36] ; 0x24
  7941. 800368a: f003 0302 and.w r3, r3, #2
  7942. 800368e: 2b00 cmp r3, #0
  7943. 8003690: d0f0 beq.n 8003674 <HAL_RCC_OscConfig+0x224>
  7944. }
  7945. }
  7946. /* To have a fully stabilized clock in the specified range, a software delay of 1ms
  7947. should be added.*/
  7948. RCC_Delay(1);
  7949. 8003692: 2001 movs r0, #1
  7950. 8003694: f000 fad6 bl 8003c44 <RCC_Delay>
  7951. 8003698: e01c b.n 80036d4 <HAL_RCC_OscConfig+0x284>
  7952. }
  7953. else
  7954. {
  7955. /* Disable the Internal Low Speed oscillator (LSI). */
  7956. __HAL_RCC_LSI_DISABLE();
  7957. 800369a: 4b0a ldr r3, [pc, #40] ; (80036c4 <HAL_RCC_OscConfig+0x274>)
  7958. 800369c: 2200 movs r2, #0
  7959. 800369e: 601a str r2, [r3, #0]
  7960. /* Get Start Tick */
  7961. tickstart = HAL_GetTick();
  7962. 80036a0: f7fe fae4 bl 8001c6c <HAL_GetTick>
  7963. 80036a4: 6138 str r0, [r7, #16]
  7964. /* Wait till LSI is disabled */
  7965. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  7966. 80036a6: e00f b.n 80036c8 <HAL_RCC_OscConfig+0x278>
  7967. {
  7968. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  7969. 80036a8: f7fe fae0 bl 8001c6c <HAL_GetTick>
  7970. 80036ac: 4602 mov r2, r0
  7971. 80036ae: 693b ldr r3, [r7, #16]
  7972. 80036b0: 1ad3 subs r3, r2, r3
  7973. 80036b2: 2b02 cmp r3, #2
  7974. 80036b4: d908 bls.n 80036c8 <HAL_RCC_OscConfig+0x278>
  7975. {
  7976. return HAL_TIMEOUT;
  7977. 80036b6: 2303 movs r3, #3
  7978. 80036b8: e140 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  7979. 80036ba: bf00 nop
  7980. 80036bc: 40021000 .word 0x40021000
  7981. 80036c0: 42420000 .word 0x42420000
  7982. 80036c4: 42420480 .word 0x42420480
  7983. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  7984. 80036c8: 4b9e ldr r3, [pc, #632] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  7985. 80036ca: 6a5b ldr r3, [r3, #36] ; 0x24
  7986. 80036cc: f003 0302 and.w r3, r3, #2
  7987. 80036d0: 2b00 cmp r3, #0
  7988. 80036d2: d1e9 bne.n 80036a8 <HAL_RCC_OscConfig+0x258>
  7989. }
  7990. }
  7991. }
  7992. }
  7993. /*------------------------------ LSE Configuration -------------------------*/
  7994. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  7995. 80036d4: 687b ldr r3, [r7, #4]
  7996. 80036d6: 681b ldr r3, [r3, #0]
  7997. 80036d8: f003 0304 and.w r3, r3, #4
  7998. 80036dc: 2b00 cmp r3, #0
  7999. 80036de: f000 80a6 beq.w 800382e <HAL_RCC_OscConfig+0x3de>
  8000. {
  8001. FlagStatus pwrclkchanged = RESET;
  8002. 80036e2: 2300 movs r3, #0
  8003. 80036e4: 75fb strb r3, [r7, #23]
  8004. /* Check the parameters */
  8005. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  8006. /* Update LSE configuration in Backup Domain control register */
  8007. /* Requires to enable write access to Backup Domain of necessary */
  8008. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  8009. 80036e6: 4b97 ldr r3, [pc, #604] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8010. 80036e8: 69db ldr r3, [r3, #28]
  8011. 80036ea: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  8012. 80036ee: 2b00 cmp r3, #0
  8013. 80036f0: d10d bne.n 800370e <HAL_RCC_OscConfig+0x2be>
  8014. {
  8015. __HAL_RCC_PWR_CLK_ENABLE();
  8016. 80036f2: 4b94 ldr r3, [pc, #592] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8017. 80036f4: 69db ldr r3, [r3, #28]
  8018. 80036f6: 4a93 ldr r2, [pc, #588] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8019. 80036f8: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  8020. 80036fc: 61d3 str r3, [r2, #28]
  8021. 80036fe: 4b91 ldr r3, [pc, #580] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8022. 8003700: 69db ldr r3, [r3, #28]
  8023. 8003702: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  8024. 8003706: 60bb str r3, [r7, #8]
  8025. 8003708: 68bb ldr r3, [r7, #8]
  8026. pwrclkchanged = SET;
  8027. 800370a: 2301 movs r3, #1
  8028. 800370c: 75fb strb r3, [r7, #23]
  8029. }
  8030. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8031. 800370e: 4b8e ldr r3, [pc, #568] ; (8003948 <HAL_RCC_OscConfig+0x4f8>)
  8032. 8003710: 681b ldr r3, [r3, #0]
  8033. 8003712: f403 7380 and.w r3, r3, #256 ; 0x100
  8034. 8003716: 2b00 cmp r3, #0
  8035. 8003718: d118 bne.n 800374c <HAL_RCC_OscConfig+0x2fc>
  8036. {
  8037. /* Enable write access to Backup domain */
  8038. SET_BIT(PWR->CR, PWR_CR_DBP);
  8039. 800371a: 4b8b ldr r3, [pc, #556] ; (8003948 <HAL_RCC_OscConfig+0x4f8>)
  8040. 800371c: 681b ldr r3, [r3, #0]
  8041. 800371e: 4a8a ldr r2, [pc, #552] ; (8003948 <HAL_RCC_OscConfig+0x4f8>)
  8042. 8003720: f443 7380 orr.w r3, r3, #256 ; 0x100
  8043. 8003724: 6013 str r3, [r2, #0]
  8044. /* Wait for Backup domain Write protection disable */
  8045. tickstart = HAL_GetTick();
  8046. 8003726: f7fe faa1 bl 8001c6c <HAL_GetTick>
  8047. 800372a: 6138 str r0, [r7, #16]
  8048. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8049. 800372c: e008 b.n 8003740 <HAL_RCC_OscConfig+0x2f0>
  8050. {
  8051. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  8052. 800372e: f7fe fa9d bl 8001c6c <HAL_GetTick>
  8053. 8003732: 4602 mov r2, r0
  8054. 8003734: 693b ldr r3, [r7, #16]
  8055. 8003736: 1ad3 subs r3, r2, r3
  8056. 8003738: 2b64 cmp r3, #100 ; 0x64
  8057. 800373a: d901 bls.n 8003740 <HAL_RCC_OscConfig+0x2f0>
  8058. {
  8059. return HAL_TIMEOUT;
  8060. 800373c: 2303 movs r3, #3
  8061. 800373e: e0fd b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8062. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8063. 8003740: 4b81 ldr r3, [pc, #516] ; (8003948 <HAL_RCC_OscConfig+0x4f8>)
  8064. 8003742: 681b ldr r3, [r3, #0]
  8065. 8003744: f403 7380 and.w r3, r3, #256 ; 0x100
  8066. 8003748: 2b00 cmp r3, #0
  8067. 800374a: d0f0 beq.n 800372e <HAL_RCC_OscConfig+0x2de>
  8068. }
  8069. }
  8070. }
  8071. /* Set the new LSE configuration -----------------------------------------*/
  8072. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  8073. 800374c: 687b ldr r3, [r7, #4]
  8074. 800374e: 68db ldr r3, [r3, #12]
  8075. 8003750: 2b01 cmp r3, #1
  8076. 8003752: d106 bne.n 8003762 <HAL_RCC_OscConfig+0x312>
  8077. 8003754: 4b7b ldr r3, [pc, #492] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8078. 8003756: 6a1b ldr r3, [r3, #32]
  8079. 8003758: 4a7a ldr r2, [pc, #488] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8080. 800375a: f043 0301 orr.w r3, r3, #1
  8081. 800375e: 6213 str r3, [r2, #32]
  8082. 8003760: e02d b.n 80037be <HAL_RCC_OscConfig+0x36e>
  8083. 8003762: 687b ldr r3, [r7, #4]
  8084. 8003764: 68db ldr r3, [r3, #12]
  8085. 8003766: 2b00 cmp r3, #0
  8086. 8003768: d10c bne.n 8003784 <HAL_RCC_OscConfig+0x334>
  8087. 800376a: 4b76 ldr r3, [pc, #472] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8088. 800376c: 6a1b ldr r3, [r3, #32]
  8089. 800376e: 4a75 ldr r2, [pc, #468] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8090. 8003770: f023 0301 bic.w r3, r3, #1
  8091. 8003774: 6213 str r3, [r2, #32]
  8092. 8003776: 4b73 ldr r3, [pc, #460] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8093. 8003778: 6a1b ldr r3, [r3, #32]
  8094. 800377a: 4a72 ldr r2, [pc, #456] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8095. 800377c: f023 0304 bic.w r3, r3, #4
  8096. 8003780: 6213 str r3, [r2, #32]
  8097. 8003782: e01c b.n 80037be <HAL_RCC_OscConfig+0x36e>
  8098. 8003784: 687b ldr r3, [r7, #4]
  8099. 8003786: 68db ldr r3, [r3, #12]
  8100. 8003788: 2b05 cmp r3, #5
  8101. 800378a: d10c bne.n 80037a6 <HAL_RCC_OscConfig+0x356>
  8102. 800378c: 4b6d ldr r3, [pc, #436] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8103. 800378e: 6a1b ldr r3, [r3, #32]
  8104. 8003790: 4a6c ldr r2, [pc, #432] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8105. 8003792: f043 0304 orr.w r3, r3, #4
  8106. 8003796: 6213 str r3, [r2, #32]
  8107. 8003798: 4b6a ldr r3, [pc, #424] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8108. 800379a: 6a1b ldr r3, [r3, #32]
  8109. 800379c: 4a69 ldr r2, [pc, #420] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8110. 800379e: f043 0301 orr.w r3, r3, #1
  8111. 80037a2: 6213 str r3, [r2, #32]
  8112. 80037a4: e00b b.n 80037be <HAL_RCC_OscConfig+0x36e>
  8113. 80037a6: 4b67 ldr r3, [pc, #412] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8114. 80037a8: 6a1b ldr r3, [r3, #32]
  8115. 80037aa: 4a66 ldr r2, [pc, #408] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8116. 80037ac: f023 0301 bic.w r3, r3, #1
  8117. 80037b0: 6213 str r3, [r2, #32]
  8118. 80037b2: 4b64 ldr r3, [pc, #400] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8119. 80037b4: 6a1b ldr r3, [r3, #32]
  8120. 80037b6: 4a63 ldr r2, [pc, #396] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8121. 80037b8: f023 0304 bic.w r3, r3, #4
  8122. 80037bc: 6213 str r3, [r2, #32]
  8123. /* Check the LSE State */
  8124. if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  8125. 80037be: 687b ldr r3, [r7, #4]
  8126. 80037c0: 68db ldr r3, [r3, #12]
  8127. 80037c2: 2b00 cmp r3, #0
  8128. 80037c4: d015 beq.n 80037f2 <HAL_RCC_OscConfig+0x3a2>
  8129. {
  8130. /* Get Start Tick */
  8131. tickstart = HAL_GetTick();
  8132. 80037c6: f7fe fa51 bl 8001c6c <HAL_GetTick>
  8133. 80037ca: 6138 str r0, [r7, #16]
  8134. /* Wait till LSE is ready */
  8135. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  8136. 80037cc: e00a b.n 80037e4 <HAL_RCC_OscConfig+0x394>
  8137. {
  8138. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  8139. 80037ce: f7fe fa4d bl 8001c6c <HAL_GetTick>
  8140. 80037d2: 4602 mov r2, r0
  8141. 80037d4: 693b ldr r3, [r7, #16]
  8142. 80037d6: 1ad3 subs r3, r2, r3
  8143. 80037d8: f241 3288 movw r2, #5000 ; 0x1388
  8144. 80037dc: 4293 cmp r3, r2
  8145. 80037de: d901 bls.n 80037e4 <HAL_RCC_OscConfig+0x394>
  8146. {
  8147. return HAL_TIMEOUT;
  8148. 80037e0: 2303 movs r3, #3
  8149. 80037e2: e0ab b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8150. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  8151. 80037e4: 4b57 ldr r3, [pc, #348] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8152. 80037e6: 6a1b ldr r3, [r3, #32]
  8153. 80037e8: f003 0302 and.w r3, r3, #2
  8154. 80037ec: 2b00 cmp r3, #0
  8155. 80037ee: d0ee beq.n 80037ce <HAL_RCC_OscConfig+0x37e>
  8156. 80037f0: e014 b.n 800381c <HAL_RCC_OscConfig+0x3cc>
  8157. }
  8158. }
  8159. else
  8160. {
  8161. /* Get Start Tick */
  8162. tickstart = HAL_GetTick();
  8163. 80037f2: f7fe fa3b bl 8001c6c <HAL_GetTick>
  8164. 80037f6: 6138 str r0, [r7, #16]
  8165. /* Wait till LSE is disabled */
  8166. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  8167. 80037f8: e00a b.n 8003810 <HAL_RCC_OscConfig+0x3c0>
  8168. {
  8169. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  8170. 80037fa: f7fe fa37 bl 8001c6c <HAL_GetTick>
  8171. 80037fe: 4602 mov r2, r0
  8172. 8003800: 693b ldr r3, [r7, #16]
  8173. 8003802: 1ad3 subs r3, r2, r3
  8174. 8003804: f241 3288 movw r2, #5000 ; 0x1388
  8175. 8003808: 4293 cmp r3, r2
  8176. 800380a: d901 bls.n 8003810 <HAL_RCC_OscConfig+0x3c0>
  8177. {
  8178. return HAL_TIMEOUT;
  8179. 800380c: 2303 movs r3, #3
  8180. 800380e: e095 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8181. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  8182. 8003810: 4b4c ldr r3, [pc, #304] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8183. 8003812: 6a1b ldr r3, [r3, #32]
  8184. 8003814: f003 0302 and.w r3, r3, #2
  8185. 8003818: 2b00 cmp r3, #0
  8186. 800381a: d1ee bne.n 80037fa <HAL_RCC_OscConfig+0x3aa>
  8187. }
  8188. }
  8189. }
  8190. /* Require to disable power clock if necessary */
  8191. if (pwrclkchanged == SET)
  8192. 800381c: 7dfb ldrb r3, [r7, #23]
  8193. 800381e: 2b01 cmp r3, #1
  8194. 8003820: d105 bne.n 800382e <HAL_RCC_OscConfig+0x3de>
  8195. {
  8196. __HAL_RCC_PWR_CLK_DISABLE();
  8197. 8003822: 4b48 ldr r3, [pc, #288] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8198. 8003824: 69db ldr r3, [r3, #28]
  8199. 8003826: 4a47 ldr r2, [pc, #284] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8200. 8003828: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  8201. 800382c: 61d3 str r3, [r2, #28]
  8202. #endif /* RCC_CR_PLL2ON */
  8203. /*-------------------------------- PLL Configuration -----------------------*/
  8204. /* Check the parameters */
  8205. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  8206. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  8207. 800382e: 687b ldr r3, [r7, #4]
  8208. 8003830: 69db ldr r3, [r3, #28]
  8209. 8003832: 2b00 cmp r3, #0
  8210. 8003834: f000 8081 beq.w 800393a <HAL_RCC_OscConfig+0x4ea>
  8211. {
  8212. /* Check if the PLL is used as system clock or not */
  8213. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  8214. 8003838: 4b42 ldr r3, [pc, #264] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8215. 800383a: 685b ldr r3, [r3, #4]
  8216. 800383c: f003 030c and.w r3, r3, #12
  8217. 8003840: 2b08 cmp r3, #8
  8218. 8003842: d061 beq.n 8003908 <HAL_RCC_OscConfig+0x4b8>
  8219. {
  8220. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  8221. 8003844: 687b ldr r3, [r7, #4]
  8222. 8003846: 69db ldr r3, [r3, #28]
  8223. 8003848: 2b02 cmp r3, #2
  8224. 800384a: d146 bne.n 80038da <HAL_RCC_OscConfig+0x48a>
  8225. /* Check the parameters */
  8226. assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
  8227. assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
  8228. /* Disable the main PLL. */
  8229. __HAL_RCC_PLL_DISABLE();
  8230. 800384c: 4b3f ldr r3, [pc, #252] ; (800394c <HAL_RCC_OscConfig+0x4fc>)
  8231. 800384e: 2200 movs r2, #0
  8232. 8003850: 601a str r2, [r3, #0]
  8233. /* Get Start Tick */
  8234. tickstart = HAL_GetTick();
  8235. 8003852: f7fe fa0b bl 8001c6c <HAL_GetTick>
  8236. 8003856: 6138 str r0, [r7, #16]
  8237. /* Wait till PLL is disabled */
  8238. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8239. 8003858: e008 b.n 800386c <HAL_RCC_OscConfig+0x41c>
  8240. {
  8241. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  8242. 800385a: f7fe fa07 bl 8001c6c <HAL_GetTick>
  8243. 800385e: 4602 mov r2, r0
  8244. 8003860: 693b ldr r3, [r7, #16]
  8245. 8003862: 1ad3 subs r3, r2, r3
  8246. 8003864: 2b02 cmp r3, #2
  8247. 8003866: d901 bls.n 800386c <HAL_RCC_OscConfig+0x41c>
  8248. {
  8249. return HAL_TIMEOUT;
  8250. 8003868: 2303 movs r3, #3
  8251. 800386a: e067 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8252. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8253. 800386c: 4b35 ldr r3, [pc, #212] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8254. 800386e: 681b ldr r3, [r3, #0]
  8255. 8003870: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8256. 8003874: 2b00 cmp r3, #0
  8257. 8003876: d1f0 bne.n 800385a <HAL_RCC_OscConfig+0x40a>
  8258. }
  8259. }
  8260. /* Configure the HSE prediv factor --------------------------------*/
  8261. /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */
  8262. if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE)
  8263. 8003878: 687b ldr r3, [r7, #4]
  8264. 800387a: 6a1b ldr r3, [r3, #32]
  8265. 800387c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  8266. 8003880: d108 bne.n 8003894 <HAL_RCC_OscConfig+0x444>
  8267. /* Set PREDIV1 source */
  8268. SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source);
  8269. #endif /* RCC_CFGR2_PREDIV1SRC */
  8270. /* Set PREDIV1 Value */
  8271. __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue);
  8272. 8003882: 4b30 ldr r3, [pc, #192] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8273. 8003884: 6adb ldr r3, [r3, #44] ; 0x2c
  8274. 8003886: f023 020f bic.w r2, r3, #15
  8275. 800388a: 687b ldr r3, [r7, #4]
  8276. 800388c: 689b ldr r3, [r3, #8]
  8277. 800388e: 492d ldr r1, [pc, #180] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8278. 8003890: 4313 orrs r3, r2
  8279. 8003892: 62cb str r3, [r1, #44] ; 0x2c
  8280. }
  8281. /* Configure the main PLL clock source and multiplication factors. */
  8282. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  8283. 8003894: 4b2b ldr r3, [pc, #172] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8284. 8003896: 685b ldr r3, [r3, #4]
  8285. 8003898: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000
  8286. 800389c: 687b ldr r3, [r7, #4]
  8287. 800389e: 6a19 ldr r1, [r3, #32]
  8288. 80038a0: 687b ldr r3, [r7, #4]
  8289. 80038a2: 6a5b ldr r3, [r3, #36] ; 0x24
  8290. 80038a4: 430b orrs r3, r1
  8291. 80038a6: 4927 ldr r1, [pc, #156] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8292. 80038a8: 4313 orrs r3, r2
  8293. 80038aa: 604b str r3, [r1, #4]
  8294. RCC_OscInitStruct->PLL.PLLMUL);
  8295. /* Enable the main PLL. */
  8296. __HAL_RCC_PLL_ENABLE();
  8297. 80038ac: 4b27 ldr r3, [pc, #156] ; (800394c <HAL_RCC_OscConfig+0x4fc>)
  8298. 80038ae: 2201 movs r2, #1
  8299. 80038b0: 601a str r2, [r3, #0]
  8300. /* Get Start Tick */
  8301. tickstart = HAL_GetTick();
  8302. 80038b2: f7fe f9db bl 8001c6c <HAL_GetTick>
  8303. 80038b6: 6138 str r0, [r7, #16]
  8304. /* Wait till PLL is ready */
  8305. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  8306. 80038b8: e008 b.n 80038cc <HAL_RCC_OscConfig+0x47c>
  8307. {
  8308. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  8309. 80038ba: f7fe f9d7 bl 8001c6c <HAL_GetTick>
  8310. 80038be: 4602 mov r2, r0
  8311. 80038c0: 693b ldr r3, [r7, #16]
  8312. 80038c2: 1ad3 subs r3, r2, r3
  8313. 80038c4: 2b02 cmp r3, #2
  8314. 80038c6: d901 bls.n 80038cc <HAL_RCC_OscConfig+0x47c>
  8315. {
  8316. return HAL_TIMEOUT;
  8317. 80038c8: 2303 movs r3, #3
  8318. 80038ca: e037 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8319. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  8320. 80038cc: 4b1d ldr r3, [pc, #116] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8321. 80038ce: 681b ldr r3, [r3, #0]
  8322. 80038d0: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8323. 80038d4: 2b00 cmp r3, #0
  8324. 80038d6: d0f0 beq.n 80038ba <HAL_RCC_OscConfig+0x46a>
  8325. 80038d8: e02f b.n 800393a <HAL_RCC_OscConfig+0x4ea>
  8326. }
  8327. }
  8328. else
  8329. {
  8330. /* Disable the main PLL. */
  8331. __HAL_RCC_PLL_DISABLE();
  8332. 80038da: 4b1c ldr r3, [pc, #112] ; (800394c <HAL_RCC_OscConfig+0x4fc>)
  8333. 80038dc: 2200 movs r2, #0
  8334. 80038de: 601a str r2, [r3, #0]
  8335. /* Get Start Tick */
  8336. tickstart = HAL_GetTick();
  8337. 80038e0: f7fe f9c4 bl 8001c6c <HAL_GetTick>
  8338. 80038e4: 6138 str r0, [r7, #16]
  8339. /* Wait till PLL is disabled */
  8340. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8341. 80038e6: e008 b.n 80038fa <HAL_RCC_OscConfig+0x4aa>
  8342. {
  8343. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  8344. 80038e8: f7fe f9c0 bl 8001c6c <HAL_GetTick>
  8345. 80038ec: 4602 mov r2, r0
  8346. 80038ee: 693b ldr r3, [r7, #16]
  8347. 80038f0: 1ad3 subs r3, r2, r3
  8348. 80038f2: 2b02 cmp r3, #2
  8349. 80038f4: d901 bls.n 80038fa <HAL_RCC_OscConfig+0x4aa>
  8350. {
  8351. return HAL_TIMEOUT;
  8352. 80038f6: 2303 movs r3, #3
  8353. 80038f8: e020 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8354. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8355. 80038fa: 4b12 ldr r3, [pc, #72] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8356. 80038fc: 681b ldr r3, [r3, #0]
  8357. 80038fe: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8358. 8003902: 2b00 cmp r3, #0
  8359. 8003904: d1f0 bne.n 80038e8 <HAL_RCC_OscConfig+0x498>
  8360. 8003906: e018 b.n 800393a <HAL_RCC_OscConfig+0x4ea>
  8361. }
  8362. }
  8363. else
  8364. {
  8365. /* Check if there is a request to disable the PLL used as System clock source */
  8366. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  8367. 8003908: 687b ldr r3, [r7, #4]
  8368. 800390a: 69db ldr r3, [r3, #28]
  8369. 800390c: 2b01 cmp r3, #1
  8370. 800390e: d101 bne.n 8003914 <HAL_RCC_OscConfig+0x4c4>
  8371. {
  8372. return HAL_ERROR;
  8373. 8003910: 2301 movs r3, #1
  8374. 8003912: e013 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8375. }
  8376. else
  8377. {
  8378. /* Do not return HAL_ERROR if request repeats the current configuration */
  8379. pll_config = RCC->CFGR;
  8380. 8003914: 4b0b ldr r3, [pc, #44] ; (8003944 <HAL_RCC_OscConfig+0x4f4>)
  8381. 8003916: 685b ldr r3, [r3, #4]
  8382. 8003918: 60fb str r3, [r7, #12]
  8383. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  8384. 800391a: 68fb ldr r3, [r7, #12]
  8385. 800391c: f403 3280 and.w r2, r3, #65536 ; 0x10000
  8386. 8003920: 687b ldr r3, [r7, #4]
  8387. 8003922: 6a1b ldr r3, [r3, #32]
  8388. 8003924: 429a cmp r2, r3
  8389. 8003926: d106 bne.n 8003936 <HAL_RCC_OscConfig+0x4e6>
  8390. (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL))
  8391. 8003928: 68fb ldr r3, [r7, #12]
  8392. 800392a: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  8393. 800392e: 687b ldr r3, [r7, #4]
  8394. 8003930: 6a5b ldr r3, [r3, #36] ; 0x24
  8395. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  8396. 8003932: 429a cmp r2, r3
  8397. 8003934: d001 beq.n 800393a <HAL_RCC_OscConfig+0x4ea>
  8398. {
  8399. return HAL_ERROR;
  8400. 8003936: 2301 movs r3, #1
  8401. 8003938: e000 b.n 800393c <HAL_RCC_OscConfig+0x4ec>
  8402. }
  8403. }
  8404. }
  8405. }
  8406. return HAL_OK;
  8407. 800393a: 2300 movs r3, #0
  8408. }
  8409. 800393c: 4618 mov r0, r3
  8410. 800393e: 3718 adds r7, #24
  8411. 8003940: 46bd mov sp, r7
  8412. 8003942: bd80 pop {r7, pc}
  8413. 8003944: 40021000 .word 0x40021000
  8414. 8003948: 40007000 .word 0x40007000
  8415. 800394c: 42420060 .word 0x42420060
  8416. 08003950 <HAL_RCC_ClockConfig>:
  8417. * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is
  8418. * currently used as system clock source.
  8419. * @retval HAL status
  8420. */
  8421. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  8422. {
  8423. 8003950: b580 push {r7, lr}
  8424. 8003952: b084 sub sp, #16
  8425. 8003954: af00 add r7, sp, #0
  8426. 8003956: 6078 str r0, [r7, #4]
  8427. 8003958: 6039 str r1, [r7, #0]
  8428. uint32_t tickstart;
  8429. /* Check Null pointer */
  8430. if (RCC_ClkInitStruct == NULL)
  8431. 800395a: 687b ldr r3, [r7, #4]
  8432. 800395c: 2b00 cmp r3, #0
  8433. 800395e: d101 bne.n 8003964 <HAL_RCC_ClockConfig+0x14>
  8434. {
  8435. return HAL_ERROR;
  8436. 8003960: 2301 movs r3, #1
  8437. 8003962: e0a0 b.n 8003aa6 <HAL_RCC_ClockConfig+0x156>
  8438. }
  8439. }
  8440. #endif /* FLASH_ACR_LATENCY */
  8441. /*-------------------------- HCLK Configuration --------------------------*/
  8442. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  8443. 8003964: 687b ldr r3, [r7, #4]
  8444. 8003966: 681b ldr r3, [r3, #0]
  8445. 8003968: f003 0302 and.w r3, r3, #2
  8446. 800396c: 2b00 cmp r3, #0
  8447. 800396e: d020 beq.n 80039b2 <HAL_RCC_ClockConfig+0x62>
  8448. {
  8449. /* Set the highest APBx dividers in order to ensure that we do not go through
  8450. a non-spec phase whatever we decrease or increase HCLK. */
  8451. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  8452. 8003970: 687b ldr r3, [r7, #4]
  8453. 8003972: 681b ldr r3, [r3, #0]
  8454. 8003974: f003 0304 and.w r3, r3, #4
  8455. 8003978: 2b00 cmp r3, #0
  8456. 800397a: d005 beq.n 8003988 <HAL_RCC_ClockConfig+0x38>
  8457. {
  8458. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
  8459. 800397c: 4b4c ldr r3, [pc, #304] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8460. 800397e: 685b ldr r3, [r3, #4]
  8461. 8003980: 4a4b ldr r2, [pc, #300] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8462. 8003982: f443 63e0 orr.w r3, r3, #1792 ; 0x700
  8463. 8003986: 6053 str r3, [r2, #4]
  8464. }
  8465. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  8466. 8003988: 687b ldr r3, [r7, #4]
  8467. 800398a: 681b ldr r3, [r3, #0]
  8468. 800398c: f003 0308 and.w r3, r3, #8
  8469. 8003990: 2b00 cmp r3, #0
  8470. 8003992: d005 beq.n 80039a0 <HAL_RCC_ClockConfig+0x50>
  8471. {
  8472. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
  8473. 8003994: 4b46 ldr r3, [pc, #280] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8474. 8003996: 685b ldr r3, [r3, #4]
  8475. 8003998: 4a45 ldr r2, [pc, #276] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8476. 800399a: f443 5360 orr.w r3, r3, #14336 ; 0x3800
  8477. 800399e: 6053 str r3, [r2, #4]
  8478. }
  8479. /* Set the new HCLK clock divider */
  8480. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  8481. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  8482. 80039a0: 4b43 ldr r3, [pc, #268] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8483. 80039a2: 685b ldr r3, [r3, #4]
  8484. 80039a4: f023 02f0 bic.w r2, r3, #240 ; 0xf0
  8485. 80039a8: 687b ldr r3, [r7, #4]
  8486. 80039aa: 689b ldr r3, [r3, #8]
  8487. 80039ac: 4940 ldr r1, [pc, #256] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8488. 80039ae: 4313 orrs r3, r2
  8489. 80039b0: 604b str r3, [r1, #4]
  8490. }
  8491. /*------------------------- SYSCLK Configuration ---------------------------*/
  8492. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  8493. 80039b2: 687b ldr r3, [r7, #4]
  8494. 80039b4: 681b ldr r3, [r3, #0]
  8495. 80039b6: f003 0301 and.w r3, r3, #1
  8496. 80039ba: 2b00 cmp r3, #0
  8497. 80039bc: d040 beq.n 8003a40 <HAL_RCC_ClockConfig+0xf0>
  8498. {
  8499. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  8500. /* HSE is selected as System Clock Source */
  8501. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  8502. 80039be: 687b ldr r3, [r7, #4]
  8503. 80039c0: 685b ldr r3, [r3, #4]
  8504. 80039c2: 2b01 cmp r3, #1
  8505. 80039c4: d107 bne.n 80039d6 <HAL_RCC_ClockConfig+0x86>
  8506. {
  8507. /* Check the HSE ready flag */
  8508. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  8509. 80039c6: 4b3a ldr r3, [pc, #232] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8510. 80039c8: 681b ldr r3, [r3, #0]
  8511. 80039ca: f403 3300 and.w r3, r3, #131072 ; 0x20000
  8512. 80039ce: 2b00 cmp r3, #0
  8513. 80039d0: d115 bne.n 80039fe <HAL_RCC_ClockConfig+0xae>
  8514. {
  8515. return HAL_ERROR;
  8516. 80039d2: 2301 movs r3, #1
  8517. 80039d4: e067 b.n 8003aa6 <HAL_RCC_ClockConfig+0x156>
  8518. }
  8519. }
  8520. /* PLL is selected as System Clock Source */
  8521. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  8522. 80039d6: 687b ldr r3, [r7, #4]
  8523. 80039d8: 685b ldr r3, [r3, #4]
  8524. 80039da: 2b02 cmp r3, #2
  8525. 80039dc: d107 bne.n 80039ee <HAL_RCC_ClockConfig+0x9e>
  8526. {
  8527. /* Check the PLL ready flag */
  8528. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  8529. 80039de: 4b34 ldr r3, [pc, #208] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8530. 80039e0: 681b ldr r3, [r3, #0]
  8531. 80039e2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8532. 80039e6: 2b00 cmp r3, #0
  8533. 80039e8: d109 bne.n 80039fe <HAL_RCC_ClockConfig+0xae>
  8534. {
  8535. return HAL_ERROR;
  8536. 80039ea: 2301 movs r3, #1
  8537. 80039ec: e05b b.n 8003aa6 <HAL_RCC_ClockConfig+0x156>
  8538. }
  8539. /* HSI is selected as System Clock Source */
  8540. else
  8541. {
  8542. /* Check the HSI ready flag */
  8543. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  8544. 80039ee: 4b30 ldr r3, [pc, #192] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8545. 80039f0: 681b ldr r3, [r3, #0]
  8546. 80039f2: f003 0302 and.w r3, r3, #2
  8547. 80039f6: 2b00 cmp r3, #0
  8548. 80039f8: d101 bne.n 80039fe <HAL_RCC_ClockConfig+0xae>
  8549. {
  8550. return HAL_ERROR;
  8551. 80039fa: 2301 movs r3, #1
  8552. 80039fc: e053 b.n 8003aa6 <HAL_RCC_ClockConfig+0x156>
  8553. }
  8554. }
  8555. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  8556. 80039fe: 4b2c ldr r3, [pc, #176] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8557. 8003a00: 685b ldr r3, [r3, #4]
  8558. 8003a02: f023 0203 bic.w r2, r3, #3
  8559. 8003a06: 687b ldr r3, [r7, #4]
  8560. 8003a08: 685b ldr r3, [r3, #4]
  8561. 8003a0a: 4929 ldr r1, [pc, #164] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8562. 8003a0c: 4313 orrs r3, r2
  8563. 8003a0e: 604b str r3, [r1, #4]
  8564. /* Get Start Tick */
  8565. tickstart = HAL_GetTick();
  8566. 8003a10: f7fe f92c bl 8001c6c <HAL_GetTick>
  8567. 8003a14: 60f8 str r0, [r7, #12]
  8568. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  8569. 8003a16: e00a b.n 8003a2e <HAL_RCC_ClockConfig+0xde>
  8570. {
  8571. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  8572. 8003a18: f7fe f928 bl 8001c6c <HAL_GetTick>
  8573. 8003a1c: 4602 mov r2, r0
  8574. 8003a1e: 68fb ldr r3, [r7, #12]
  8575. 8003a20: 1ad3 subs r3, r2, r3
  8576. 8003a22: f241 3288 movw r2, #5000 ; 0x1388
  8577. 8003a26: 4293 cmp r3, r2
  8578. 8003a28: d901 bls.n 8003a2e <HAL_RCC_ClockConfig+0xde>
  8579. {
  8580. return HAL_TIMEOUT;
  8581. 8003a2a: 2303 movs r3, #3
  8582. 8003a2c: e03b b.n 8003aa6 <HAL_RCC_ClockConfig+0x156>
  8583. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  8584. 8003a2e: 4b20 ldr r3, [pc, #128] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8585. 8003a30: 685b ldr r3, [r3, #4]
  8586. 8003a32: f003 020c and.w r2, r3, #12
  8587. 8003a36: 687b ldr r3, [r7, #4]
  8588. 8003a38: 685b ldr r3, [r3, #4]
  8589. 8003a3a: 009b lsls r3, r3, #2
  8590. 8003a3c: 429a cmp r2, r3
  8591. 8003a3e: d1eb bne.n 8003a18 <HAL_RCC_ClockConfig+0xc8>
  8592. }
  8593. }
  8594. #endif /* FLASH_ACR_LATENCY */
  8595. /*-------------------------- PCLK1 Configuration ---------------------------*/
  8596. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  8597. 8003a40: 687b ldr r3, [r7, #4]
  8598. 8003a42: 681b ldr r3, [r3, #0]
  8599. 8003a44: f003 0304 and.w r3, r3, #4
  8600. 8003a48: 2b00 cmp r3, #0
  8601. 8003a4a: d008 beq.n 8003a5e <HAL_RCC_ClockConfig+0x10e>
  8602. {
  8603. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  8604. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  8605. 8003a4c: 4b18 ldr r3, [pc, #96] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8606. 8003a4e: 685b ldr r3, [r3, #4]
  8607. 8003a50: f423 62e0 bic.w r2, r3, #1792 ; 0x700
  8608. 8003a54: 687b ldr r3, [r7, #4]
  8609. 8003a56: 68db ldr r3, [r3, #12]
  8610. 8003a58: 4915 ldr r1, [pc, #84] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8611. 8003a5a: 4313 orrs r3, r2
  8612. 8003a5c: 604b str r3, [r1, #4]
  8613. }
  8614. /*-------------------------- PCLK2 Configuration ---------------------------*/
  8615. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  8616. 8003a5e: 687b ldr r3, [r7, #4]
  8617. 8003a60: 681b ldr r3, [r3, #0]
  8618. 8003a62: f003 0308 and.w r3, r3, #8
  8619. 8003a66: 2b00 cmp r3, #0
  8620. 8003a68: d009 beq.n 8003a7e <HAL_RCC_ClockConfig+0x12e>
  8621. {
  8622. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
  8623. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
  8624. 8003a6a: 4b11 ldr r3, [pc, #68] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8625. 8003a6c: 685b ldr r3, [r3, #4]
  8626. 8003a6e: f423 5260 bic.w r2, r3, #14336 ; 0x3800
  8627. 8003a72: 687b ldr r3, [r7, #4]
  8628. 8003a74: 691b ldr r3, [r3, #16]
  8629. 8003a76: 00db lsls r3, r3, #3
  8630. 8003a78: 490d ldr r1, [pc, #52] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8631. 8003a7a: 4313 orrs r3, r2
  8632. 8003a7c: 604b str r3, [r1, #4]
  8633. }
  8634. /* Update the SystemCoreClock global variable */
  8635. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos];
  8636. 8003a7e: f000 f81f bl 8003ac0 <HAL_RCC_GetSysClockFreq>
  8637. 8003a82: 4601 mov r1, r0
  8638. 8003a84: 4b0a ldr r3, [pc, #40] ; (8003ab0 <HAL_RCC_ClockConfig+0x160>)
  8639. 8003a86: 685b ldr r3, [r3, #4]
  8640. 8003a88: 091b lsrs r3, r3, #4
  8641. 8003a8a: f003 030f and.w r3, r3, #15
  8642. 8003a8e: 4a09 ldr r2, [pc, #36] ; (8003ab4 <HAL_RCC_ClockConfig+0x164>)
  8643. 8003a90: 5cd3 ldrb r3, [r2, r3]
  8644. 8003a92: fa21 f303 lsr.w r3, r1, r3
  8645. 8003a96: 4a08 ldr r2, [pc, #32] ; (8003ab8 <HAL_RCC_ClockConfig+0x168>)
  8646. 8003a98: 6013 str r3, [r2, #0]
  8647. /* Configure the source of time base considering new system clocks settings*/
  8648. HAL_InitTick(uwTickPrio);
  8649. 8003a9a: 4b08 ldr r3, [pc, #32] ; (8003abc <HAL_RCC_ClockConfig+0x16c>)
  8650. 8003a9c: 681b ldr r3, [r3, #0]
  8651. 8003a9e: 4618 mov r0, r3
  8652. 8003aa0: f002 f870 bl 8005b84 <HAL_InitTick>
  8653. return HAL_OK;
  8654. 8003aa4: 2300 movs r3, #0
  8655. }
  8656. 8003aa6: 4618 mov r0, r3
  8657. 8003aa8: 3710 adds r7, #16
  8658. 8003aaa: 46bd mov sp, r7
  8659. 8003aac: bd80 pop {r7, pc}
  8660. 8003aae: bf00 nop
  8661. 8003ab0: 40021000 .word 0x40021000
  8662. 8003ab4: 08008b98 .word 0x08008b98
  8663. 8003ab8: 20000008 .word 0x20000008
  8664. 8003abc: 20000000 .word 0x20000000
  8665. 08003ac0 <HAL_RCC_GetSysClockFreq>:
  8666. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  8667. *
  8668. * @retval SYSCLK frequency
  8669. */
  8670. uint32_t HAL_RCC_GetSysClockFreq(void)
  8671. {
  8672. 8003ac0: b490 push {r4, r7}
  8673. 8003ac2: b08e sub sp, #56 ; 0x38
  8674. 8003ac4: af00 add r7, sp, #0
  8675. #if defined(RCC_CFGR2_PREDIV1SRC)
  8676. const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13};
  8677. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  8678. #else
  8679. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  8680. 8003ac6: 4b2b ldr r3, [pc, #172] ; (8003b74 <HAL_RCC_GetSysClockFreq+0xb4>)
  8681. 8003ac8: f107 0414 add.w r4, r7, #20
  8682. 8003acc: cb0f ldmia r3, {r0, r1, r2, r3}
  8683. 8003ace: e884 000f stmia.w r4, {r0, r1, r2, r3}
  8684. #if defined(RCC_CFGR2_PREDIV1)
  8685. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  8686. 8003ad2: 4b29 ldr r3, [pc, #164] ; (8003b78 <HAL_RCC_GetSysClockFreq+0xb8>)
  8687. 8003ad4: 1d3c adds r4, r7, #4
  8688. 8003ad6: cb0f ldmia r3, {r0, r1, r2, r3}
  8689. 8003ad8: e884 000f stmia.w r4, {r0, r1, r2, r3}
  8690. #else
  8691. const uint8_t aPredivFactorTable[2] = {1, 2};
  8692. #endif /*RCC_CFGR2_PREDIV1*/
  8693. #endif
  8694. uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U;
  8695. 8003adc: 2300 movs r3, #0
  8696. 8003ade: 62fb str r3, [r7, #44] ; 0x2c
  8697. 8003ae0: 2300 movs r3, #0
  8698. 8003ae2: 62bb str r3, [r7, #40] ; 0x28
  8699. 8003ae4: 2300 movs r3, #0
  8700. 8003ae6: 637b str r3, [r7, #52] ; 0x34
  8701. 8003ae8: 2300 movs r3, #0
  8702. 8003aea: 627b str r3, [r7, #36] ; 0x24
  8703. uint32_t sysclockfreq = 0U;
  8704. 8003aec: 2300 movs r3, #0
  8705. 8003aee: 633b str r3, [r7, #48] ; 0x30
  8706. #if defined(RCC_CFGR2_PREDIV1SRC)
  8707. uint32_t prediv2 = 0U, pll2mul = 0U;
  8708. #endif /*RCC_CFGR2_PREDIV1SRC*/
  8709. tmpreg = RCC->CFGR;
  8710. 8003af0: 4b22 ldr r3, [pc, #136] ; (8003b7c <HAL_RCC_GetSysClockFreq+0xbc>)
  8711. 8003af2: 685b ldr r3, [r3, #4]
  8712. 8003af4: 62fb str r3, [r7, #44] ; 0x2c
  8713. /* Get SYSCLK source -------------------------------------------------------*/
  8714. switch (tmpreg & RCC_CFGR_SWS)
  8715. 8003af6: 6afb ldr r3, [r7, #44] ; 0x2c
  8716. 8003af8: f003 030c and.w r3, r3, #12
  8717. 8003afc: 2b04 cmp r3, #4
  8718. 8003afe: d002 beq.n 8003b06 <HAL_RCC_GetSysClockFreq+0x46>
  8719. 8003b00: 2b08 cmp r3, #8
  8720. 8003b02: d003 beq.n 8003b0c <HAL_RCC_GetSysClockFreq+0x4c>
  8721. 8003b04: e02c b.n 8003b60 <HAL_RCC_GetSysClockFreq+0xa0>
  8722. {
  8723. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  8724. {
  8725. sysclockfreq = HSE_VALUE;
  8726. 8003b06: 4b1e ldr r3, [pc, #120] ; (8003b80 <HAL_RCC_GetSysClockFreq+0xc0>)
  8727. 8003b08: 633b str r3, [r7, #48] ; 0x30
  8728. break;
  8729. 8003b0a: e02c b.n 8003b66 <HAL_RCC_GetSysClockFreq+0xa6>
  8730. }
  8731. case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
  8732. {
  8733. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos];
  8734. 8003b0c: 6afb ldr r3, [r7, #44] ; 0x2c
  8735. 8003b0e: 0c9b lsrs r3, r3, #18
  8736. 8003b10: f003 030f and.w r3, r3, #15
  8737. 8003b14: f107 0238 add.w r2, r7, #56 ; 0x38
  8738. 8003b18: 4413 add r3, r2
  8739. 8003b1a: f813 3c24 ldrb.w r3, [r3, #-36]
  8740. 8003b1e: 627b str r3, [r7, #36] ; 0x24
  8741. if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2)
  8742. 8003b20: 6afb ldr r3, [r7, #44] ; 0x2c
  8743. 8003b22: f403 3380 and.w r3, r3, #65536 ; 0x10000
  8744. 8003b26: 2b00 cmp r3, #0
  8745. 8003b28: d012 beq.n 8003b50 <HAL_RCC_GetSysClockFreq+0x90>
  8746. {
  8747. #if defined(RCC_CFGR2_PREDIV1)
  8748. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos];
  8749. 8003b2a: 4b14 ldr r3, [pc, #80] ; (8003b7c <HAL_RCC_GetSysClockFreq+0xbc>)
  8750. 8003b2c: 6adb ldr r3, [r3, #44] ; 0x2c
  8751. 8003b2e: f003 030f and.w r3, r3, #15
  8752. 8003b32: f107 0238 add.w r2, r7, #56 ; 0x38
  8753. 8003b36: 4413 add r3, r2
  8754. 8003b38: f813 3c34 ldrb.w r3, [r3, #-52]
  8755. 8003b3c: 62bb str r3, [r7, #40] ; 0x28
  8756. {
  8757. pllclk = pllclk / 2;
  8758. }
  8759. #else
  8760. /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */
  8761. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  8762. 8003b3e: 6a7b ldr r3, [r7, #36] ; 0x24
  8763. 8003b40: 4a0f ldr r2, [pc, #60] ; (8003b80 <HAL_RCC_GetSysClockFreq+0xc0>)
  8764. 8003b42: fb02 f203 mul.w r2, r2, r3
  8765. 8003b46: 6abb ldr r3, [r7, #40] ; 0x28
  8766. 8003b48: fbb2 f3f3 udiv r3, r2, r3
  8767. 8003b4c: 637b str r3, [r7, #52] ; 0x34
  8768. 8003b4e: e004 b.n 8003b5a <HAL_RCC_GetSysClockFreq+0x9a>
  8769. #endif /*RCC_CFGR2_PREDIV1SRC*/
  8770. }
  8771. else
  8772. {
  8773. /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */
  8774. pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul);
  8775. 8003b50: 6a7b ldr r3, [r7, #36] ; 0x24
  8776. 8003b52: 4a0c ldr r2, [pc, #48] ; (8003b84 <HAL_RCC_GetSysClockFreq+0xc4>)
  8777. 8003b54: fb02 f303 mul.w r3, r2, r3
  8778. 8003b58: 637b str r3, [r7, #52] ; 0x34
  8779. }
  8780. sysclockfreq = pllclk;
  8781. 8003b5a: 6b7b ldr r3, [r7, #52] ; 0x34
  8782. 8003b5c: 633b str r3, [r7, #48] ; 0x30
  8783. break;
  8784. 8003b5e: e002 b.n 8003b66 <HAL_RCC_GetSysClockFreq+0xa6>
  8785. }
  8786. case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
  8787. default: /* HSI used as system clock */
  8788. {
  8789. sysclockfreq = HSI_VALUE;
  8790. 8003b60: 4b07 ldr r3, [pc, #28] ; (8003b80 <HAL_RCC_GetSysClockFreq+0xc0>)
  8791. 8003b62: 633b str r3, [r7, #48] ; 0x30
  8792. break;
  8793. 8003b64: bf00 nop
  8794. }
  8795. }
  8796. return sysclockfreq;
  8797. 8003b66: 6b3b ldr r3, [r7, #48] ; 0x30
  8798. }
  8799. 8003b68: 4618 mov r0, r3
  8800. 8003b6a: 3738 adds r7, #56 ; 0x38
  8801. 8003b6c: 46bd mov sp, r7
  8802. 8003b6e: bc90 pop {r4, r7}
  8803. 8003b70: 4770 bx lr
  8804. 8003b72: bf00 nop
  8805. 8003b74: 08008aec .word 0x08008aec
  8806. 8003b78: 08008afc .word 0x08008afc
  8807. 8003b7c: 40021000 .word 0x40021000
  8808. 8003b80: 007a1200 .word 0x007a1200
  8809. 8003b84: 003d0900 .word 0x003d0900
  8810. 08003b88 <HAL_RCC_GetHCLKFreq>:
  8811. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
  8812. * and updated within this function
  8813. * @retval HCLK frequency
  8814. */
  8815. uint32_t HAL_RCC_GetHCLKFreq(void)
  8816. {
  8817. 8003b88: b480 push {r7}
  8818. 8003b8a: af00 add r7, sp, #0
  8819. return SystemCoreClock;
  8820. 8003b8c: 4b02 ldr r3, [pc, #8] ; (8003b98 <HAL_RCC_GetHCLKFreq+0x10>)
  8821. 8003b8e: 681b ldr r3, [r3, #0]
  8822. }
  8823. 8003b90: 4618 mov r0, r3
  8824. 8003b92: 46bd mov sp, r7
  8825. 8003b94: bc80 pop {r7}
  8826. 8003b96: 4770 bx lr
  8827. 8003b98: 20000008 .word 0x20000008
  8828. 08003b9c <HAL_RCC_GetPCLK1Freq>:
  8829. * @note Each time PCLK1 changes, this function must be called to update the
  8830. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  8831. * @retval PCLK1 frequency
  8832. */
  8833. uint32_t HAL_RCC_GetPCLK1Freq(void)
  8834. {
  8835. 8003b9c: b580 push {r7, lr}
  8836. 8003b9e: af00 add r7, sp, #0
  8837. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  8838. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  8839. 8003ba0: f7ff fff2 bl 8003b88 <HAL_RCC_GetHCLKFreq>
  8840. 8003ba4: 4601 mov r1, r0
  8841. 8003ba6: 4b05 ldr r3, [pc, #20] ; (8003bbc <HAL_RCC_GetPCLK1Freq+0x20>)
  8842. 8003ba8: 685b ldr r3, [r3, #4]
  8843. 8003baa: 0a1b lsrs r3, r3, #8
  8844. 8003bac: f003 0307 and.w r3, r3, #7
  8845. 8003bb0: 4a03 ldr r2, [pc, #12] ; (8003bc0 <HAL_RCC_GetPCLK1Freq+0x24>)
  8846. 8003bb2: 5cd3 ldrb r3, [r2, r3]
  8847. 8003bb4: fa21 f303 lsr.w r3, r1, r3
  8848. }
  8849. 8003bb8: 4618 mov r0, r3
  8850. 8003bba: bd80 pop {r7, pc}
  8851. 8003bbc: 40021000 .word 0x40021000
  8852. 8003bc0: 08008ba8 .word 0x08008ba8
  8853. 08003bc4 <HAL_RCC_GetPCLK2Freq>:
  8854. * @note Each time PCLK2 changes, this function must be called to update the
  8855. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  8856. * @retval PCLK2 frequency
  8857. */
  8858. uint32_t HAL_RCC_GetPCLK2Freq(void)
  8859. {
  8860. 8003bc4: b580 push {r7, lr}
  8861. 8003bc6: af00 add r7, sp, #0
  8862. /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
  8863. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  8864. 8003bc8: f7ff ffde bl 8003b88 <HAL_RCC_GetHCLKFreq>
  8865. 8003bcc: 4601 mov r1, r0
  8866. 8003bce: 4b05 ldr r3, [pc, #20] ; (8003be4 <HAL_RCC_GetPCLK2Freq+0x20>)
  8867. 8003bd0: 685b ldr r3, [r3, #4]
  8868. 8003bd2: 0adb lsrs r3, r3, #11
  8869. 8003bd4: f003 0307 and.w r3, r3, #7
  8870. 8003bd8: 4a03 ldr r2, [pc, #12] ; (8003be8 <HAL_RCC_GetPCLK2Freq+0x24>)
  8871. 8003bda: 5cd3 ldrb r3, [r2, r3]
  8872. 8003bdc: fa21 f303 lsr.w r3, r1, r3
  8873. }
  8874. 8003be0: 4618 mov r0, r3
  8875. 8003be2: bd80 pop {r7, pc}
  8876. 8003be4: 40021000 .word 0x40021000
  8877. 8003be8: 08008ba8 .word 0x08008ba8
  8878. 08003bec <HAL_RCC_GetClockConfig>:
  8879. * contains the current clock configuration.
  8880. * @param pFLatency Pointer on the Flash Latency.
  8881. * @retval None
  8882. */
  8883. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  8884. {
  8885. 8003bec: b480 push {r7}
  8886. 8003bee: b083 sub sp, #12
  8887. 8003bf0: af00 add r7, sp, #0
  8888. 8003bf2: 6078 str r0, [r7, #4]
  8889. 8003bf4: 6039 str r1, [r7, #0]
  8890. /* Check the parameters */
  8891. assert_param(RCC_ClkInitStruct != NULL);
  8892. assert_param(pFLatency != NULL);
  8893. /* Set all possible values for the Clock type parameter --------------------*/
  8894. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
  8895. 8003bf6: 687b ldr r3, [r7, #4]
  8896. 8003bf8: 220f movs r2, #15
  8897. 8003bfa: 601a str r2, [r3, #0]
  8898. /* Get the SYSCLK configuration --------------------------------------------*/
  8899. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  8900. 8003bfc: 4b10 ldr r3, [pc, #64] ; (8003c40 <HAL_RCC_GetClockConfig+0x54>)
  8901. 8003bfe: 685b ldr r3, [r3, #4]
  8902. 8003c00: f003 0203 and.w r2, r3, #3
  8903. 8003c04: 687b ldr r3, [r7, #4]
  8904. 8003c06: 605a str r2, [r3, #4]
  8905. /* Get the HCLK configuration ----------------------------------------------*/
  8906. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
  8907. 8003c08: 4b0d ldr r3, [pc, #52] ; (8003c40 <HAL_RCC_GetClockConfig+0x54>)
  8908. 8003c0a: 685b ldr r3, [r3, #4]
  8909. 8003c0c: f003 02f0 and.w r2, r3, #240 ; 0xf0
  8910. 8003c10: 687b ldr r3, [r7, #4]
  8911. 8003c12: 609a str r2, [r3, #8]
  8912. /* Get the APB1 configuration ----------------------------------------------*/
  8913. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
  8914. 8003c14: 4b0a ldr r3, [pc, #40] ; (8003c40 <HAL_RCC_GetClockConfig+0x54>)
  8915. 8003c16: 685b ldr r3, [r3, #4]
  8916. 8003c18: f403 62e0 and.w r2, r3, #1792 ; 0x700
  8917. 8003c1c: 687b ldr r3, [r7, #4]
  8918. 8003c1e: 60da str r2, [r3, #12]
  8919. /* Get the APB2 configuration ----------------------------------------------*/
  8920. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3);
  8921. 8003c20: 4b07 ldr r3, [pc, #28] ; (8003c40 <HAL_RCC_GetClockConfig+0x54>)
  8922. 8003c22: 685b ldr r3, [r3, #4]
  8923. 8003c24: 08db lsrs r3, r3, #3
  8924. 8003c26: f403 62e0 and.w r2, r3, #1792 ; 0x700
  8925. 8003c2a: 687b ldr r3, [r7, #4]
  8926. 8003c2c: 611a str r2, [r3, #16]
  8927. #if defined(FLASH_ACR_LATENCY)
  8928. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  8929. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  8930. #else
  8931. /* For VALUE lines devices, only LATENCY_0 can be set*/
  8932. *pFLatency = (uint32_t)FLASH_LATENCY_0;
  8933. 8003c2e: 683b ldr r3, [r7, #0]
  8934. 8003c30: 2200 movs r2, #0
  8935. 8003c32: 601a str r2, [r3, #0]
  8936. #endif
  8937. }
  8938. 8003c34: bf00 nop
  8939. 8003c36: 370c adds r7, #12
  8940. 8003c38: 46bd mov sp, r7
  8941. 8003c3a: bc80 pop {r7}
  8942. 8003c3c: 4770 bx lr
  8943. 8003c3e: bf00 nop
  8944. 8003c40: 40021000 .word 0x40021000
  8945. 08003c44 <RCC_Delay>:
  8946. * @brief This function provides delay (in milliseconds) based on CPU cycles method.
  8947. * @param mdelay: specifies the delay time length, in milliseconds.
  8948. * @retval None
  8949. */
  8950. static void RCC_Delay(uint32_t mdelay)
  8951. {
  8952. 8003c44: b480 push {r7}
  8953. 8003c46: b085 sub sp, #20
  8954. 8003c48: af00 add r7, sp, #0
  8955. 8003c4a: 6078 str r0, [r7, #4]
  8956. __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U);
  8957. 8003c4c: 4b0a ldr r3, [pc, #40] ; (8003c78 <RCC_Delay+0x34>)
  8958. 8003c4e: 681b ldr r3, [r3, #0]
  8959. 8003c50: 4a0a ldr r2, [pc, #40] ; (8003c7c <RCC_Delay+0x38>)
  8960. 8003c52: fba2 2303 umull r2, r3, r2, r3
  8961. 8003c56: 0a5b lsrs r3, r3, #9
  8962. 8003c58: 687a ldr r2, [r7, #4]
  8963. 8003c5a: fb02 f303 mul.w r3, r2, r3
  8964. 8003c5e: 60fb str r3, [r7, #12]
  8965. do
  8966. {
  8967. __NOP();
  8968. 8003c60: bf00 nop
  8969. }
  8970. while (Delay --);
  8971. 8003c62: 68fb ldr r3, [r7, #12]
  8972. 8003c64: 1e5a subs r2, r3, #1
  8973. 8003c66: 60fa str r2, [r7, #12]
  8974. 8003c68: 2b00 cmp r3, #0
  8975. 8003c6a: d1f9 bne.n 8003c60 <RCC_Delay+0x1c>
  8976. }
  8977. 8003c6c: bf00 nop
  8978. 8003c6e: 3714 adds r7, #20
  8979. 8003c70: 46bd mov sp, r7
  8980. 8003c72: bc80 pop {r7}
  8981. 8003c74: 4770 bx lr
  8982. 8003c76: bf00 nop
  8983. 8003c78: 20000008 .word 0x20000008
  8984. 8003c7c: 10624dd3 .word 0x10624dd3
  8985. 08003c80 <HAL_RCCEx_PeriphCLKConfig>:
  8986. * manually disable it.
  8987. *
  8988. * @retval HAL status
  8989. */
  8990. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  8991. {
  8992. 8003c80: b580 push {r7, lr}
  8993. 8003c82: b086 sub sp, #24
  8994. 8003c84: af00 add r7, sp, #0
  8995. 8003c86: 6078 str r0, [r7, #4]
  8996. uint32_t tickstart = 0U, temp_reg = 0U;
  8997. 8003c88: 2300 movs r3, #0
  8998. 8003c8a: 613b str r3, [r7, #16]
  8999. 8003c8c: 2300 movs r3, #0
  9000. 8003c8e: 60fb str r3, [r7, #12]
  9001. /* Check the parameters */
  9002. assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection));
  9003. /*------------------------------- RTC/LCD Configuration ------------------------*/
  9004. if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC))
  9005. 8003c90: 687b ldr r3, [r7, #4]
  9006. 8003c92: 681b ldr r3, [r3, #0]
  9007. 8003c94: f003 0301 and.w r3, r3, #1
  9008. 8003c98: 2b00 cmp r3, #0
  9009. 8003c9a: d07d beq.n 8003d98 <HAL_RCCEx_PeriphCLKConfig+0x118>
  9010. {
  9011. /* check for RTC Parameters used to output RTCCLK */
  9012. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  9013. FlagStatus pwrclkchanged = RESET;
  9014. 8003c9c: 2300 movs r3, #0
  9015. 8003c9e: 75fb strb r3, [r7, #23]
  9016. /* As soon as function is called to change RTC clock source, activation of the
  9017. power domain is done. */
  9018. /* Requires to enable write access to Backup Domain of necessary */
  9019. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  9020. 8003ca0: 4b47 ldr r3, [pc, #284] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9021. 8003ca2: 69db ldr r3, [r3, #28]
  9022. 8003ca4: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  9023. 8003ca8: 2b00 cmp r3, #0
  9024. 8003caa: d10d bne.n 8003cc8 <HAL_RCCEx_PeriphCLKConfig+0x48>
  9025. {
  9026. __HAL_RCC_PWR_CLK_ENABLE();
  9027. 8003cac: 4b44 ldr r3, [pc, #272] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9028. 8003cae: 69db ldr r3, [r3, #28]
  9029. 8003cb0: 4a43 ldr r2, [pc, #268] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9030. 8003cb2: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  9031. 8003cb6: 61d3 str r3, [r2, #28]
  9032. 8003cb8: 4b41 ldr r3, [pc, #260] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9033. 8003cba: 69db ldr r3, [r3, #28]
  9034. 8003cbc: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  9035. 8003cc0: 60bb str r3, [r7, #8]
  9036. 8003cc2: 68bb ldr r3, [r7, #8]
  9037. pwrclkchanged = SET;
  9038. 8003cc4: 2301 movs r3, #1
  9039. 8003cc6: 75fb strb r3, [r7, #23]
  9040. }
  9041. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  9042. 8003cc8: 4b3e ldr r3, [pc, #248] ; (8003dc4 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9043. 8003cca: 681b ldr r3, [r3, #0]
  9044. 8003ccc: f403 7380 and.w r3, r3, #256 ; 0x100
  9045. 8003cd0: 2b00 cmp r3, #0
  9046. 8003cd2: d118 bne.n 8003d06 <HAL_RCCEx_PeriphCLKConfig+0x86>
  9047. {
  9048. /* Enable write access to Backup domain */
  9049. SET_BIT(PWR->CR, PWR_CR_DBP);
  9050. 8003cd4: 4b3b ldr r3, [pc, #236] ; (8003dc4 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9051. 8003cd6: 681b ldr r3, [r3, #0]
  9052. 8003cd8: 4a3a ldr r2, [pc, #232] ; (8003dc4 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9053. 8003cda: f443 7380 orr.w r3, r3, #256 ; 0x100
  9054. 8003cde: 6013 str r3, [r2, #0]
  9055. /* Wait for Backup domain Write protection disable */
  9056. tickstart = HAL_GetTick();
  9057. 8003ce0: f7fd ffc4 bl 8001c6c <HAL_GetTick>
  9058. 8003ce4: 6138 str r0, [r7, #16]
  9059. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  9060. 8003ce6: e008 b.n 8003cfa <HAL_RCCEx_PeriphCLKConfig+0x7a>
  9061. {
  9062. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  9063. 8003ce8: f7fd ffc0 bl 8001c6c <HAL_GetTick>
  9064. 8003cec: 4602 mov r2, r0
  9065. 8003cee: 693b ldr r3, [r7, #16]
  9066. 8003cf0: 1ad3 subs r3, r2, r3
  9067. 8003cf2: 2b64 cmp r3, #100 ; 0x64
  9068. 8003cf4: d901 bls.n 8003cfa <HAL_RCCEx_PeriphCLKConfig+0x7a>
  9069. {
  9070. return HAL_TIMEOUT;
  9071. 8003cf6: 2303 movs r3, #3
  9072. 8003cf8: e05e b.n 8003db8 <HAL_RCCEx_PeriphCLKConfig+0x138>
  9073. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  9074. 8003cfa: 4b32 ldr r3, [pc, #200] ; (8003dc4 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9075. 8003cfc: 681b ldr r3, [r3, #0]
  9076. 8003cfe: f403 7380 and.w r3, r3, #256 ; 0x100
  9077. 8003d02: 2b00 cmp r3, #0
  9078. 8003d04: d0f0 beq.n 8003ce8 <HAL_RCCEx_PeriphCLKConfig+0x68>
  9079. }
  9080. }
  9081. }
  9082. /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */
  9083. temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL);
  9084. 8003d06: 4b2e ldr r3, [pc, #184] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9085. 8003d08: 6a1b ldr r3, [r3, #32]
  9086. 8003d0a: f403 7340 and.w r3, r3, #768 ; 0x300
  9087. 8003d0e: 60fb str r3, [r7, #12]
  9088. if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
  9089. 8003d10: 68fb ldr r3, [r7, #12]
  9090. 8003d12: 2b00 cmp r3, #0
  9091. 8003d14: d02e beq.n 8003d74 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  9092. 8003d16: 687b ldr r3, [r7, #4]
  9093. 8003d18: 685b ldr r3, [r3, #4]
  9094. 8003d1a: f403 7340 and.w r3, r3, #768 ; 0x300
  9095. 8003d1e: 68fa ldr r2, [r7, #12]
  9096. 8003d20: 429a cmp r2, r3
  9097. 8003d22: d027 beq.n 8003d74 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  9098. {
  9099. /* Store the content of BDCR register before the reset of Backup Domain */
  9100. temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  9101. 8003d24: 4b26 ldr r3, [pc, #152] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9102. 8003d26: 6a1b ldr r3, [r3, #32]
  9103. 8003d28: f423 7340 bic.w r3, r3, #768 ; 0x300
  9104. 8003d2c: 60fb str r3, [r7, #12]
  9105. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  9106. __HAL_RCC_BACKUPRESET_FORCE();
  9107. 8003d2e: 4b26 ldr r3, [pc, #152] ; (8003dc8 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  9108. 8003d30: 2201 movs r2, #1
  9109. 8003d32: 601a str r2, [r3, #0]
  9110. __HAL_RCC_BACKUPRESET_RELEASE();
  9111. 8003d34: 4b24 ldr r3, [pc, #144] ; (8003dc8 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  9112. 8003d36: 2200 movs r2, #0
  9113. 8003d38: 601a str r2, [r3, #0]
  9114. /* Restore the Content of BDCR register */
  9115. RCC->BDCR = temp_reg;
  9116. 8003d3a: 4a21 ldr r2, [pc, #132] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9117. 8003d3c: 68fb ldr r3, [r7, #12]
  9118. 8003d3e: 6213 str r3, [r2, #32]
  9119. /* Wait for LSERDY if LSE was enabled */
  9120. if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON))
  9121. 8003d40: 68fb ldr r3, [r7, #12]
  9122. 8003d42: f003 0301 and.w r3, r3, #1
  9123. 8003d46: 2b00 cmp r3, #0
  9124. 8003d48: d014 beq.n 8003d74 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  9125. {
  9126. /* Get Start Tick */
  9127. tickstart = HAL_GetTick();
  9128. 8003d4a: f7fd ff8f bl 8001c6c <HAL_GetTick>
  9129. 8003d4e: 6138 str r0, [r7, #16]
  9130. /* Wait till LSE is ready */
  9131. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  9132. 8003d50: e00a b.n 8003d68 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  9133. {
  9134. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  9135. 8003d52: f7fd ff8b bl 8001c6c <HAL_GetTick>
  9136. 8003d56: 4602 mov r2, r0
  9137. 8003d58: 693b ldr r3, [r7, #16]
  9138. 8003d5a: 1ad3 subs r3, r2, r3
  9139. 8003d5c: f241 3288 movw r2, #5000 ; 0x1388
  9140. 8003d60: 4293 cmp r3, r2
  9141. 8003d62: d901 bls.n 8003d68 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  9142. {
  9143. return HAL_TIMEOUT;
  9144. 8003d64: 2303 movs r3, #3
  9145. 8003d66: e027 b.n 8003db8 <HAL_RCCEx_PeriphCLKConfig+0x138>
  9146. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  9147. 8003d68: 4b15 ldr r3, [pc, #84] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9148. 8003d6a: 6a1b ldr r3, [r3, #32]
  9149. 8003d6c: f003 0302 and.w r3, r3, #2
  9150. 8003d70: 2b00 cmp r3, #0
  9151. 8003d72: d0ee beq.n 8003d52 <HAL_RCCEx_PeriphCLKConfig+0xd2>
  9152. }
  9153. }
  9154. }
  9155. }
  9156. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  9157. 8003d74: 4b12 ldr r3, [pc, #72] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9158. 8003d76: 6a1b ldr r3, [r3, #32]
  9159. 8003d78: f423 7240 bic.w r2, r3, #768 ; 0x300
  9160. 8003d7c: 687b ldr r3, [r7, #4]
  9161. 8003d7e: 685b ldr r3, [r3, #4]
  9162. 8003d80: 490f ldr r1, [pc, #60] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9163. 8003d82: 4313 orrs r3, r2
  9164. 8003d84: 620b str r3, [r1, #32]
  9165. /* Require to disable power clock if necessary */
  9166. if (pwrclkchanged == SET)
  9167. 8003d86: 7dfb ldrb r3, [r7, #23]
  9168. 8003d88: 2b01 cmp r3, #1
  9169. 8003d8a: d105 bne.n 8003d98 <HAL_RCCEx_PeriphCLKConfig+0x118>
  9170. {
  9171. __HAL_RCC_PWR_CLK_DISABLE();
  9172. 8003d8c: 4b0c ldr r3, [pc, #48] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9173. 8003d8e: 69db ldr r3, [r3, #28]
  9174. 8003d90: 4a0b ldr r2, [pc, #44] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9175. 8003d92: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  9176. 8003d96: 61d3 str r3, [r2, #28]
  9177. }
  9178. }
  9179. /*------------------------------ ADC clock Configuration ------------------*/
  9180. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  9181. 8003d98: 687b ldr r3, [r7, #4]
  9182. 8003d9a: 681b ldr r3, [r3, #0]
  9183. 8003d9c: f003 0302 and.w r3, r3, #2
  9184. 8003da0: 2b00 cmp r3, #0
  9185. 8003da2: d008 beq.n 8003db6 <HAL_RCCEx_PeriphCLKConfig+0x136>
  9186. {
  9187. /* Check the parameters */
  9188. assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection));
  9189. /* Configure the ADC clock source */
  9190. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  9191. 8003da4: 4b06 ldr r3, [pc, #24] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9192. 8003da6: 685b ldr r3, [r3, #4]
  9193. 8003da8: f423 4240 bic.w r2, r3, #49152 ; 0xc000
  9194. 8003dac: 687b ldr r3, [r7, #4]
  9195. 8003dae: 689b ldr r3, [r3, #8]
  9196. 8003db0: 4903 ldr r1, [pc, #12] ; (8003dc0 <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9197. 8003db2: 4313 orrs r3, r2
  9198. 8003db4: 604b str r3, [r1, #4]
  9199. /* Configure the USB clock source */
  9200. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  9201. }
  9202. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */
  9203. return HAL_OK;
  9204. 8003db6: 2300 movs r3, #0
  9205. }
  9206. 8003db8: 4618 mov r0, r3
  9207. 8003dba: 3718 adds r7, #24
  9208. 8003dbc: 46bd mov sp, r7
  9209. 8003dbe: bd80 pop {r7, pc}
  9210. 8003dc0: 40021000 .word 0x40021000
  9211. 8003dc4: 40007000 .word 0x40007000
  9212. 8003dc8: 42420440 .word 0x42420440
  9213. 08003dcc <HAL_RCCEx_GetPeriphCLKFreq>:
  9214. * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock
  9215. @endif
  9216. * @retval Frequency in Hz (0: means that no available frequency for the peripheral)
  9217. */
  9218. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk)
  9219. {
  9220. 8003dcc: b580 push {r7, lr}
  9221. 8003dce: b084 sub sp, #16
  9222. 8003dd0: af00 add r7, sp, #0
  9223. 8003dd2: 6078 str r0, [r7, #4]
  9224. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  9225. const uint8_t aPredivFactorTable[2] = {1, 2};
  9226. uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U;
  9227. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG */
  9228. uint32_t temp_reg = 0U, frequency = 0U;
  9229. 8003dd4: 2300 movs r3, #0
  9230. 8003dd6: 60bb str r3, [r7, #8]
  9231. 8003dd8: 2300 movs r3, #0
  9232. 8003dda: 60fb str r3, [r7, #12]
  9233. /* Check the parameters */
  9234. assert_param(IS_RCC_PERIPHCLOCK(PeriphClk));
  9235. switch (PeriphClk)
  9236. 8003ddc: 687b ldr r3, [r7, #4]
  9237. 8003dde: 2b01 cmp r3, #1
  9238. 8003de0: d002 beq.n 8003de8 <HAL_RCCEx_GetPeriphCLKFreq+0x1c>
  9239. 8003de2: 2b02 cmp r3, #2
  9240. 8003de4: d033 beq.n 8003e4e <HAL_RCCEx_GetPeriphCLKFreq+0x82>
  9241. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  9242. break;
  9243. }
  9244. default:
  9245. {
  9246. break;
  9247. 8003de6: e041 b.n 8003e6c <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  9248. temp_reg = RCC->BDCR;
  9249. 8003de8: 4b23 ldr r3, [pc, #140] ; (8003e78 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9250. 8003dea: 6a1b ldr r3, [r3, #32]
  9251. 8003dec: 60bb str r3, [r7, #8]
  9252. if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSERDY)))
  9253. 8003dee: 68bb ldr r3, [r7, #8]
  9254. 8003df0: f403 7340 and.w r3, r3, #768 ; 0x300
  9255. 8003df4: f5b3 7f80 cmp.w r3, #256 ; 0x100
  9256. 8003df8: d108 bne.n 8003e0c <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  9257. 8003dfa: 68bb ldr r3, [r7, #8]
  9258. 8003dfc: f003 0302 and.w r3, r3, #2
  9259. 8003e00: 2b00 cmp r3, #0
  9260. 8003e02: d003 beq.n 8003e0c <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  9261. frequency = LSE_VALUE;
  9262. 8003e04: f44f 4300 mov.w r3, #32768 ; 0x8000
  9263. 8003e08: 60fb str r3, [r7, #12]
  9264. 8003e0a: e01f b.n 8003e4c <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  9265. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY)))
  9266. 8003e0c: 68bb ldr r3, [r7, #8]
  9267. 8003e0e: f403 7340 and.w r3, r3, #768 ; 0x300
  9268. 8003e12: f5b3 7f00 cmp.w r3, #512 ; 0x200
  9269. 8003e16: d109 bne.n 8003e2c <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  9270. 8003e18: 4b17 ldr r3, [pc, #92] ; (8003e78 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9271. 8003e1a: 6a5b ldr r3, [r3, #36] ; 0x24
  9272. 8003e1c: f003 0302 and.w r3, r3, #2
  9273. 8003e20: 2b00 cmp r3, #0
  9274. 8003e22: d003 beq.n 8003e2c <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  9275. frequency = LSI_VALUE;
  9276. 8003e24: f649 4340 movw r3, #40000 ; 0x9c40
  9277. 8003e28: 60fb str r3, [r7, #12]
  9278. 8003e2a: e00f b.n 8003e4c <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  9279. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)))
  9280. 8003e2c: 68bb ldr r3, [r7, #8]
  9281. 8003e2e: f403 7340 and.w r3, r3, #768 ; 0x300
  9282. 8003e32: f5b3 7f40 cmp.w r3, #768 ; 0x300
  9283. 8003e36: d118 bne.n 8003e6a <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9284. 8003e38: 4b0f ldr r3, [pc, #60] ; (8003e78 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9285. 8003e3a: 681b ldr r3, [r3, #0]
  9286. 8003e3c: f403 3300 and.w r3, r3, #131072 ; 0x20000
  9287. 8003e40: 2b00 cmp r3, #0
  9288. 8003e42: d012 beq.n 8003e6a <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9289. frequency = HSE_VALUE / 128U;
  9290. 8003e44: f24f 4324 movw r3, #62500 ; 0xf424
  9291. 8003e48: 60fb str r3, [r7, #12]
  9292. break;
  9293. 8003e4a: e00e b.n 8003e6a <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9294. 8003e4c: e00d b.n 8003e6a <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9295. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  9296. 8003e4e: f7ff feb9 bl 8003bc4 <HAL_RCC_GetPCLK2Freq>
  9297. 8003e52: 4602 mov r2, r0
  9298. 8003e54: 4b08 ldr r3, [pc, #32] ; (8003e78 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9299. 8003e56: 685b ldr r3, [r3, #4]
  9300. 8003e58: 0b9b lsrs r3, r3, #14
  9301. 8003e5a: f003 0303 and.w r3, r3, #3
  9302. 8003e5e: 3301 adds r3, #1
  9303. 8003e60: 005b lsls r3, r3, #1
  9304. 8003e62: fbb2 f3f3 udiv r3, r2, r3
  9305. 8003e66: 60fb str r3, [r7, #12]
  9306. break;
  9307. 8003e68: e000 b.n 8003e6c <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  9308. break;
  9309. 8003e6a: bf00 nop
  9310. }
  9311. }
  9312. return (frequency);
  9313. 8003e6c: 68fb ldr r3, [r7, #12]
  9314. }
  9315. 8003e6e: 4618 mov r0, r3
  9316. 8003e70: 3710 adds r7, #16
  9317. 8003e72: 46bd mov sp, r7
  9318. 8003e74: bd80 pop {r7, pc}
  9319. 8003e76: bf00 nop
  9320. 8003e78: 40021000 .word 0x40021000
  9321. 08003e7c <HAL_TIM_Base_Init>:
  9322. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  9323. * @param htim TIM Base handle
  9324. * @retval HAL status
  9325. */
  9326. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  9327. {
  9328. 8003e7c: b580 push {r7, lr}
  9329. 8003e7e: b082 sub sp, #8
  9330. 8003e80: af00 add r7, sp, #0
  9331. 8003e82: 6078 str r0, [r7, #4]
  9332. /* Check the TIM handle allocation */
  9333. if (htim == NULL)
  9334. 8003e84: 687b ldr r3, [r7, #4]
  9335. 8003e86: 2b00 cmp r3, #0
  9336. 8003e88: d101 bne.n 8003e8e <HAL_TIM_Base_Init+0x12>
  9337. {
  9338. return HAL_ERROR;
  9339. 8003e8a: 2301 movs r3, #1
  9340. 8003e8c: e01d b.n 8003eca <HAL_TIM_Base_Init+0x4e>
  9341. assert_param(IS_TIM_INSTANCE(htim->Instance));
  9342. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  9343. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  9344. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  9345. if (htim->State == HAL_TIM_STATE_RESET)
  9346. 8003e8e: 687b ldr r3, [r7, #4]
  9347. 8003e90: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  9348. 8003e94: b2db uxtb r3, r3
  9349. 8003e96: 2b00 cmp r3, #0
  9350. 8003e98: d106 bne.n 8003ea8 <HAL_TIM_Base_Init+0x2c>
  9351. {
  9352. /* Allocate lock resource and initialize it */
  9353. htim->Lock = HAL_UNLOCKED;
  9354. 8003e9a: 687b ldr r3, [r7, #4]
  9355. 8003e9c: 2200 movs r2, #0
  9356. 8003e9e: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9357. }
  9358. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  9359. htim->Base_MspInitCallback(htim);
  9360. #else
  9361. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  9362. HAL_TIM_Base_MspInit(htim);
  9363. 8003ea2: 6878 ldr r0, [r7, #4]
  9364. 8003ea4: f001 fd20 bl 80058e8 <HAL_TIM_Base_MspInit>
  9365. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9366. }
  9367. /* Set the TIM state */
  9368. htim->State = HAL_TIM_STATE_BUSY;
  9369. 8003ea8: 687b ldr r3, [r7, #4]
  9370. 8003eaa: 2202 movs r2, #2
  9371. 8003eac: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9372. /* Set the Time Base configuration */
  9373. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  9374. 8003eb0: 687b ldr r3, [r7, #4]
  9375. 8003eb2: 681a ldr r2, [r3, #0]
  9376. 8003eb4: 687b ldr r3, [r7, #4]
  9377. 8003eb6: 3304 adds r3, #4
  9378. 8003eb8: 4619 mov r1, r3
  9379. 8003eba: 4610 mov r0, r2
  9380. 8003ebc: f000 f958 bl 8004170 <TIM_Base_SetConfig>
  9381. /* Initialize the TIM state*/
  9382. htim->State = HAL_TIM_STATE_READY;
  9383. 8003ec0: 687b ldr r3, [r7, #4]
  9384. 8003ec2: 2201 movs r2, #1
  9385. 8003ec4: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9386. return HAL_OK;
  9387. 8003ec8: 2300 movs r3, #0
  9388. }
  9389. 8003eca: 4618 mov r0, r3
  9390. 8003ecc: 3708 adds r7, #8
  9391. 8003ece: 46bd mov sp, r7
  9392. 8003ed0: bd80 pop {r7, pc}
  9393. 08003ed2 <HAL_TIM_Base_Start_IT>:
  9394. * @brief Starts the TIM Base generation in interrupt mode.
  9395. * @param htim TIM Base handle
  9396. * @retval HAL status
  9397. */
  9398. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  9399. {
  9400. 8003ed2: b480 push {r7}
  9401. 8003ed4: b085 sub sp, #20
  9402. 8003ed6: af00 add r7, sp, #0
  9403. 8003ed8: 6078 str r0, [r7, #4]
  9404. /* Check the parameters */
  9405. assert_param(IS_TIM_INSTANCE(htim->Instance));
  9406. /* Enable the TIM Update interrupt */
  9407. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  9408. 8003eda: 687b ldr r3, [r7, #4]
  9409. 8003edc: 681b ldr r3, [r3, #0]
  9410. 8003ede: 68da ldr r2, [r3, #12]
  9411. 8003ee0: 687b ldr r3, [r7, #4]
  9412. 8003ee2: 681b ldr r3, [r3, #0]
  9413. 8003ee4: f042 0201 orr.w r2, r2, #1
  9414. 8003ee8: 60da str r2, [r3, #12]
  9415. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  9416. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  9417. 8003eea: 687b ldr r3, [r7, #4]
  9418. 8003eec: 681b ldr r3, [r3, #0]
  9419. 8003eee: 689b ldr r3, [r3, #8]
  9420. 8003ef0: f003 0307 and.w r3, r3, #7
  9421. 8003ef4: 60fb str r3, [r7, #12]
  9422. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  9423. 8003ef6: 68fb ldr r3, [r7, #12]
  9424. 8003ef8: 2b06 cmp r3, #6
  9425. 8003efa: d007 beq.n 8003f0c <HAL_TIM_Base_Start_IT+0x3a>
  9426. {
  9427. __HAL_TIM_ENABLE(htim);
  9428. 8003efc: 687b ldr r3, [r7, #4]
  9429. 8003efe: 681b ldr r3, [r3, #0]
  9430. 8003f00: 681a ldr r2, [r3, #0]
  9431. 8003f02: 687b ldr r3, [r7, #4]
  9432. 8003f04: 681b ldr r3, [r3, #0]
  9433. 8003f06: f042 0201 orr.w r2, r2, #1
  9434. 8003f0a: 601a str r2, [r3, #0]
  9435. }
  9436. /* Return function status */
  9437. return HAL_OK;
  9438. 8003f0c: 2300 movs r3, #0
  9439. }
  9440. 8003f0e: 4618 mov r0, r3
  9441. 8003f10: 3714 adds r7, #20
  9442. 8003f12: 46bd mov sp, r7
  9443. 8003f14: bc80 pop {r7}
  9444. 8003f16: 4770 bx lr
  9445. 08003f18 <HAL_TIM_IRQHandler>:
  9446. * @brief This function handles TIM interrupts requests.
  9447. * @param htim TIM handle
  9448. * @retval None
  9449. */
  9450. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  9451. {
  9452. 8003f18: b580 push {r7, lr}
  9453. 8003f1a: b082 sub sp, #8
  9454. 8003f1c: af00 add r7, sp, #0
  9455. 8003f1e: 6078 str r0, [r7, #4]
  9456. /* Capture compare 1 event */
  9457. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  9458. 8003f20: 687b ldr r3, [r7, #4]
  9459. 8003f22: 681b ldr r3, [r3, #0]
  9460. 8003f24: 691b ldr r3, [r3, #16]
  9461. 8003f26: f003 0302 and.w r3, r3, #2
  9462. 8003f2a: 2b02 cmp r3, #2
  9463. 8003f2c: d122 bne.n 8003f74 <HAL_TIM_IRQHandler+0x5c>
  9464. {
  9465. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
  9466. 8003f2e: 687b ldr r3, [r7, #4]
  9467. 8003f30: 681b ldr r3, [r3, #0]
  9468. 8003f32: 68db ldr r3, [r3, #12]
  9469. 8003f34: f003 0302 and.w r3, r3, #2
  9470. 8003f38: 2b02 cmp r3, #2
  9471. 8003f3a: d11b bne.n 8003f74 <HAL_TIM_IRQHandler+0x5c>
  9472. {
  9473. {
  9474. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  9475. 8003f3c: 687b ldr r3, [r7, #4]
  9476. 8003f3e: 681b ldr r3, [r3, #0]
  9477. 8003f40: f06f 0202 mvn.w r2, #2
  9478. 8003f44: 611a str r2, [r3, #16]
  9479. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  9480. 8003f46: 687b ldr r3, [r7, #4]
  9481. 8003f48: 2201 movs r2, #1
  9482. 8003f4a: 771a strb r2, [r3, #28]
  9483. /* Input capture event */
  9484. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  9485. 8003f4c: 687b ldr r3, [r7, #4]
  9486. 8003f4e: 681b ldr r3, [r3, #0]
  9487. 8003f50: 699b ldr r3, [r3, #24]
  9488. 8003f52: f003 0303 and.w r3, r3, #3
  9489. 8003f56: 2b00 cmp r3, #0
  9490. 8003f58: d003 beq.n 8003f62 <HAL_TIM_IRQHandler+0x4a>
  9491. {
  9492. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9493. htim->IC_CaptureCallback(htim);
  9494. #else
  9495. HAL_TIM_IC_CaptureCallback(htim);
  9496. 8003f5a: 6878 ldr r0, [r7, #4]
  9497. 8003f5c: f000 f8ed bl 800413a <HAL_TIM_IC_CaptureCallback>
  9498. 8003f60: e005 b.n 8003f6e <HAL_TIM_IRQHandler+0x56>
  9499. {
  9500. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9501. htim->OC_DelayElapsedCallback(htim);
  9502. htim->PWM_PulseFinishedCallback(htim);
  9503. #else
  9504. HAL_TIM_OC_DelayElapsedCallback(htim);
  9505. 8003f62: 6878 ldr r0, [r7, #4]
  9506. 8003f64: f000 f8e0 bl 8004128 <HAL_TIM_OC_DelayElapsedCallback>
  9507. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9508. 8003f68: 6878 ldr r0, [r7, #4]
  9509. 8003f6a: f000 f8ef bl 800414c <HAL_TIM_PWM_PulseFinishedCallback>
  9510. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9511. }
  9512. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9513. 8003f6e: 687b ldr r3, [r7, #4]
  9514. 8003f70: 2200 movs r2, #0
  9515. 8003f72: 771a strb r2, [r3, #28]
  9516. }
  9517. }
  9518. }
  9519. /* Capture compare 2 event */
  9520. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  9521. 8003f74: 687b ldr r3, [r7, #4]
  9522. 8003f76: 681b ldr r3, [r3, #0]
  9523. 8003f78: 691b ldr r3, [r3, #16]
  9524. 8003f7a: f003 0304 and.w r3, r3, #4
  9525. 8003f7e: 2b04 cmp r3, #4
  9526. 8003f80: d122 bne.n 8003fc8 <HAL_TIM_IRQHandler+0xb0>
  9527. {
  9528. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
  9529. 8003f82: 687b ldr r3, [r7, #4]
  9530. 8003f84: 681b ldr r3, [r3, #0]
  9531. 8003f86: 68db ldr r3, [r3, #12]
  9532. 8003f88: f003 0304 and.w r3, r3, #4
  9533. 8003f8c: 2b04 cmp r3, #4
  9534. 8003f8e: d11b bne.n 8003fc8 <HAL_TIM_IRQHandler+0xb0>
  9535. {
  9536. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  9537. 8003f90: 687b ldr r3, [r7, #4]
  9538. 8003f92: 681b ldr r3, [r3, #0]
  9539. 8003f94: f06f 0204 mvn.w r2, #4
  9540. 8003f98: 611a str r2, [r3, #16]
  9541. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  9542. 8003f9a: 687b ldr r3, [r7, #4]
  9543. 8003f9c: 2202 movs r2, #2
  9544. 8003f9e: 771a strb r2, [r3, #28]
  9545. /* Input capture event */
  9546. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  9547. 8003fa0: 687b ldr r3, [r7, #4]
  9548. 8003fa2: 681b ldr r3, [r3, #0]
  9549. 8003fa4: 699b ldr r3, [r3, #24]
  9550. 8003fa6: f403 7340 and.w r3, r3, #768 ; 0x300
  9551. 8003faa: 2b00 cmp r3, #0
  9552. 8003fac: d003 beq.n 8003fb6 <HAL_TIM_IRQHandler+0x9e>
  9553. {
  9554. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9555. htim->IC_CaptureCallback(htim);
  9556. #else
  9557. HAL_TIM_IC_CaptureCallback(htim);
  9558. 8003fae: 6878 ldr r0, [r7, #4]
  9559. 8003fb0: f000 f8c3 bl 800413a <HAL_TIM_IC_CaptureCallback>
  9560. 8003fb4: e005 b.n 8003fc2 <HAL_TIM_IRQHandler+0xaa>
  9561. {
  9562. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9563. htim->OC_DelayElapsedCallback(htim);
  9564. htim->PWM_PulseFinishedCallback(htim);
  9565. #else
  9566. HAL_TIM_OC_DelayElapsedCallback(htim);
  9567. 8003fb6: 6878 ldr r0, [r7, #4]
  9568. 8003fb8: f000 f8b6 bl 8004128 <HAL_TIM_OC_DelayElapsedCallback>
  9569. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9570. 8003fbc: 6878 ldr r0, [r7, #4]
  9571. 8003fbe: f000 f8c5 bl 800414c <HAL_TIM_PWM_PulseFinishedCallback>
  9572. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9573. }
  9574. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9575. 8003fc2: 687b ldr r3, [r7, #4]
  9576. 8003fc4: 2200 movs r2, #0
  9577. 8003fc6: 771a strb r2, [r3, #28]
  9578. }
  9579. }
  9580. /* Capture compare 3 event */
  9581. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  9582. 8003fc8: 687b ldr r3, [r7, #4]
  9583. 8003fca: 681b ldr r3, [r3, #0]
  9584. 8003fcc: 691b ldr r3, [r3, #16]
  9585. 8003fce: f003 0308 and.w r3, r3, #8
  9586. 8003fd2: 2b08 cmp r3, #8
  9587. 8003fd4: d122 bne.n 800401c <HAL_TIM_IRQHandler+0x104>
  9588. {
  9589. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
  9590. 8003fd6: 687b ldr r3, [r7, #4]
  9591. 8003fd8: 681b ldr r3, [r3, #0]
  9592. 8003fda: 68db ldr r3, [r3, #12]
  9593. 8003fdc: f003 0308 and.w r3, r3, #8
  9594. 8003fe0: 2b08 cmp r3, #8
  9595. 8003fe2: d11b bne.n 800401c <HAL_TIM_IRQHandler+0x104>
  9596. {
  9597. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  9598. 8003fe4: 687b ldr r3, [r7, #4]
  9599. 8003fe6: 681b ldr r3, [r3, #0]
  9600. 8003fe8: f06f 0208 mvn.w r2, #8
  9601. 8003fec: 611a str r2, [r3, #16]
  9602. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  9603. 8003fee: 687b ldr r3, [r7, #4]
  9604. 8003ff0: 2204 movs r2, #4
  9605. 8003ff2: 771a strb r2, [r3, #28]
  9606. /* Input capture event */
  9607. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  9608. 8003ff4: 687b ldr r3, [r7, #4]
  9609. 8003ff6: 681b ldr r3, [r3, #0]
  9610. 8003ff8: 69db ldr r3, [r3, #28]
  9611. 8003ffa: f003 0303 and.w r3, r3, #3
  9612. 8003ffe: 2b00 cmp r3, #0
  9613. 8004000: d003 beq.n 800400a <HAL_TIM_IRQHandler+0xf2>
  9614. {
  9615. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9616. htim->IC_CaptureCallback(htim);
  9617. #else
  9618. HAL_TIM_IC_CaptureCallback(htim);
  9619. 8004002: 6878 ldr r0, [r7, #4]
  9620. 8004004: f000 f899 bl 800413a <HAL_TIM_IC_CaptureCallback>
  9621. 8004008: e005 b.n 8004016 <HAL_TIM_IRQHandler+0xfe>
  9622. {
  9623. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9624. htim->OC_DelayElapsedCallback(htim);
  9625. htim->PWM_PulseFinishedCallback(htim);
  9626. #else
  9627. HAL_TIM_OC_DelayElapsedCallback(htim);
  9628. 800400a: 6878 ldr r0, [r7, #4]
  9629. 800400c: f000 f88c bl 8004128 <HAL_TIM_OC_DelayElapsedCallback>
  9630. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9631. 8004010: 6878 ldr r0, [r7, #4]
  9632. 8004012: f000 f89b bl 800414c <HAL_TIM_PWM_PulseFinishedCallback>
  9633. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9634. }
  9635. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9636. 8004016: 687b ldr r3, [r7, #4]
  9637. 8004018: 2200 movs r2, #0
  9638. 800401a: 771a strb r2, [r3, #28]
  9639. }
  9640. }
  9641. /* Capture compare 4 event */
  9642. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  9643. 800401c: 687b ldr r3, [r7, #4]
  9644. 800401e: 681b ldr r3, [r3, #0]
  9645. 8004020: 691b ldr r3, [r3, #16]
  9646. 8004022: f003 0310 and.w r3, r3, #16
  9647. 8004026: 2b10 cmp r3, #16
  9648. 8004028: d122 bne.n 8004070 <HAL_TIM_IRQHandler+0x158>
  9649. {
  9650. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
  9651. 800402a: 687b ldr r3, [r7, #4]
  9652. 800402c: 681b ldr r3, [r3, #0]
  9653. 800402e: 68db ldr r3, [r3, #12]
  9654. 8004030: f003 0310 and.w r3, r3, #16
  9655. 8004034: 2b10 cmp r3, #16
  9656. 8004036: d11b bne.n 8004070 <HAL_TIM_IRQHandler+0x158>
  9657. {
  9658. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  9659. 8004038: 687b ldr r3, [r7, #4]
  9660. 800403a: 681b ldr r3, [r3, #0]
  9661. 800403c: f06f 0210 mvn.w r2, #16
  9662. 8004040: 611a str r2, [r3, #16]
  9663. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  9664. 8004042: 687b ldr r3, [r7, #4]
  9665. 8004044: 2208 movs r2, #8
  9666. 8004046: 771a strb r2, [r3, #28]
  9667. /* Input capture event */
  9668. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  9669. 8004048: 687b ldr r3, [r7, #4]
  9670. 800404a: 681b ldr r3, [r3, #0]
  9671. 800404c: 69db ldr r3, [r3, #28]
  9672. 800404e: f403 7340 and.w r3, r3, #768 ; 0x300
  9673. 8004052: 2b00 cmp r3, #0
  9674. 8004054: d003 beq.n 800405e <HAL_TIM_IRQHandler+0x146>
  9675. {
  9676. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9677. htim->IC_CaptureCallback(htim);
  9678. #else
  9679. HAL_TIM_IC_CaptureCallback(htim);
  9680. 8004056: 6878 ldr r0, [r7, #4]
  9681. 8004058: f000 f86f bl 800413a <HAL_TIM_IC_CaptureCallback>
  9682. 800405c: e005 b.n 800406a <HAL_TIM_IRQHandler+0x152>
  9683. {
  9684. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9685. htim->OC_DelayElapsedCallback(htim);
  9686. htim->PWM_PulseFinishedCallback(htim);
  9687. #else
  9688. HAL_TIM_OC_DelayElapsedCallback(htim);
  9689. 800405e: 6878 ldr r0, [r7, #4]
  9690. 8004060: f000 f862 bl 8004128 <HAL_TIM_OC_DelayElapsedCallback>
  9691. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9692. 8004064: 6878 ldr r0, [r7, #4]
  9693. 8004066: f000 f871 bl 800414c <HAL_TIM_PWM_PulseFinishedCallback>
  9694. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9695. }
  9696. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9697. 800406a: 687b ldr r3, [r7, #4]
  9698. 800406c: 2200 movs r2, #0
  9699. 800406e: 771a strb r2, [r3, #28]
  9700. }
  9701. }
  9702. /* TIM Update event */
  9703. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  9704. 8004070: 687b ldr r3, [r7, #4]
  9705. 8004072: 681b ldr r3, [r3, #0]
  9706. 8004074: 691b ldr r3, [r3, #16]
  9707. 8004076: f003 0301 and.w r3, r3, #1
  9708. 800407a: 2b01 cmp r3, #1
  9709. 800407c: d10e bne.n 800409c <HAL_TIM_IRQHandler+0x184>
  9710. {
  9711. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
  9712. 800407e: 687b ldr r3, [r7, #4]
  9713. 8004080: 681b ldr r3, [r3, #0]
  9714. 8004082: 68db ldr r3, [r3, #12]
  9715. 8004084: f003 0301 and.w r3, r3, #1
  9716. 8004088: 2b01 cmp r3, #1
  9717. 800408a: d107 bne.n 800409c <HAL_TIM_IRQHandler+0x184>
  9718. {
  9719. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  9720. 800408c: 687b ldr r3, [r7, #4]
  9721. 800408e: 681b ldr r3, [r3, #0]
  9722. 8004090: f06f 0201 mvn.w r2, #1
  9723. 8004094: 611a str r2, [r3, #16]
  9724. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9725. htim->PeriodElapsedCallback(htim);
  9726. #else
  9727. HAL_TIM_PeriodElapsedCallback(htim);
  9728. 8004096: 6878 ldr r0, [r7, #4]
  9729. 8004098: f001 fae0 bl 800565c <HAL_TIM_PeriodElapsedCallback>
  9730. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9731. }
  9732. }
  9733. /* TIM Break input event */
  9734. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET)
  9735. 800409c: 687b ldr r3, [r7, #4]
  9736. 800409e: 681b ldr r3, [r3, #0]
  9737. 80040a0: 691b ldr r3, [r3, #16]
  9738. 80040a2: f003 0380 and.w r3, r3, #128 ; 0x80
  9739. 80040a6: 2b80 cmp r3, #128 ; 0x80
  9740. 80040a8: d10e bne.n 80040c8 <HAL_TIM_IRQHandler+0x1b0>
  9741. {
  9742. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET)
  9743. 80040aa: 687b ldr r3, [r7, #4]
  9744. 80040ac: 681b ldr r3, [r3, #0]
  9745. 80040ae: 68db ldr r3, [r3, #12]
  9746. 80040b0: f003 0380 and.w r3, r3, #128 ; 0x80
  9747. 80040b4: 2b80 cmp r3, #128 ; 0x80
  9748. 80040b6: d107 bne.n 80040c8 <HAL_TIM_IRQHandler+0x1b0>
  9749. {
  9750. __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
  9751. 80040b8: 687b ldr r3, [r7, #4]
  9752. 80040ba: 681b ldr r3, [r3, #0]
  9753. 80040bc: f06f 0280 mvn.w r2, #128 ; 0x80
  9754. 80040c0: 611a str r2, [r3, #16]
  9755. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9756. htim->BreakCallback(htim);
  9757. #else
  9758. HAL_TIMEx_BreakCallback(htim);
  9759. 80040c2: 6878 ldr r0, [r7, #4]
  9760. 80040c4: f000 f921 bl 800430a <HAL_TIMEx_BreakCallback>
  9761. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9762. }
  9763. }
  9764. /* TIM Trigger detection event */
  9765. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  9766. 80040c8: 687b ldr r3, [r7, #4]
  9767. 80040ca: 681b ldr r3, [r3, #0]
  9768. 80040cc: 691b ldr r3, [r3, #16]
  9769. 80040ce: f003 0340 and.w r3, r3, #64 ; 0x40
  9770. 80040d2: 2b40 cmp r3, #64 ; 0x40
  9771. 80040d4: d10e bne.n 80040f4 <HAL_TIM_IRQHandler+0x1dc>
  9772. {
  9773. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
  9774. 80040d6: 687b ldr r3, [r7, #4]
  9775. 80040d8: 681b ldr r3, [r3, #0]
  9776. 80040da: 68db ldr r3, [r3, #12]
  9777. 80040dc: f003 0340 and.w r3, r3, #64 ; 0x40
  9778. 80040e0: 2b40 cmp r3, #64 ; 0x40
  9779. 80040e2: d107 bne.n 80040f4 <HAL_TIM_IRQHandler+0x1dc>
  9780. {
  9781. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  9782. 80040e4: 687b ldr r3, [r7, #4]
  9783. 80040e6: 681b ldr r3, [r3, #0]
  9784. 80040e8: f06f 0240 mvn.w r2, #64 ; 0x40
  9785. 80040ec: 611a str r2, [r3, #16]
  9786. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9787. htim->TriggerCallback(htim);
  9788. #else
  9789. HAL_TIM_TriggerCallback(htim);
  9790. 80040ee: 6878 ldr r0, [r7, #4]
  9791. 80040f0: f000 f835 bl 800415e <HAL_TIM_TriggerCallback>
  9792. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9793. }
  9794. }
  9795. /* TIM commutation event */
  9796. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET)
  9797. 80040f4: 687b ldr r3, [r7, #4]
  9798. 80040f6: 681b ldr r3, [r3, #0]
  9799. 80040f8: 691b ldr r3, [r3, #16]
  9800. 80040fa: f003 0320 and.w r3, r3, #32
  9801. 80040fe: 2b20 cmp r3, #32
  9802. 8004100: d10e bne.n 8004120 <HAL_TIM_IRQHandler+0x208>
  9803. {
  9804. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET)
  9805. 8004102: 687b ldr r3, [r7, #4]
  9806. 8004104: 681b ldr r3, [r3, #0]
  9807. 8004106: 68db ldr r3, [r3, #12]
  9808. 8004108: f003 0320 and.w r3, r3, #32
  9809. 800410c: 2b20 cmp r3, #32
  9810. 800410e: d107 bne.n 8004120 <HAL_TIM_IRQHandler+0x208>
  9811. {
  9812. __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
  9813. 8004110: 687b ldr r3, [r7, #4]
  9814. 8004112: 681b ldr r3, [r3, #0]
  9815. 8004114: f06f 0220 mvn.w r2, #32
  9816. 8004118: 611a str r2, [r3, #16]
  9817. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9818. htim->CommutationCallback(htim);
  9819. #else
  9820. HAL_TIMEx_CommutCallback(htim);
  9821. 800411a: 6878 ldr r0, [r7, #4]
  9822. 800411c: f000 f8ec bl 80042f8 <HAL_TIMEx_CommutCallback>
  9823. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9824. }
  9825. }
  9826. }
  9827. 8004120: bf00 nop
  9828. 8004122: 3708 adds r7, #8
  9829. 8004124: 46bd mov sp, r7
  9830. 8004126: bd80 pop {r7, pc}
  9831. 08004128 <HAL_TIM_OC_DelayElapsedCallback>:
  9832. * @brief Output Compare callback in non-blocking mode
  9833. * @param htim TIM OC handle
  9834. * @retval None
  9835. */
  9836. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  9837. {
  9838. 8004128: b480 push {r7}
  9839. 800412a: b083 sub sp, #12
  9840. 800412c: af00 add r7, sp, #0
  9841. 800412e: 6078 str r0, [r7, #4]
  9842. UNUSED(htim);
  9843. /* NOTE : This function should not be modified, when the callback is needed,
  9844. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  9845. */
  9846. }
  9847. 8004130: bf00 nop
  9848. 8004132: 370c adds r7, #12
  9849. 8004134: 46bd mov sp, r7
  9850. 8004136: bc80 pop {r7}
  9851. 8004138: 4770 bx lr
  9852. 0800413a <HAL_TIM_IC_CaptureCallback>:
  9853. * @brief Input Capture callback in non-blocking mode
  9854. * @param htim TIM IC handle
  9855. * @retval None
  9856. */
  9857. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  9858. {
  9859. 800413a: b480 push {r7}
  9860. 800413c: b083 sub sp, #12
  9861. 800413e: af00 add r7, sp, #0
  9862. 8004140: 6078 str r0, [r7, #4]
  9863. UNUSED(htim);
  9864. /* NOTE : This function should not be modified, when the callback is needed,
  9865. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  9866. */
  9867. }
  9868. 8004142: bf00 nop
  9869. 8004144: 370c adds r7, #12
  9870. 8004146: 46bd mov sp, r7
  9871. 8004148: bc80 pop {r7}
  9872. 800414a: 4770 bx lr
  9873. 0800414c <HAL_TIM_PWM_PulseFinishedCallback>:
  9874. * @brief PWM Pulse finished callback in non-blocking mode
  9875. * @param htim TIM handle
  9876. * @retval None
  9877. */
  9878. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  9879. {
  9880. 800414c: b480 push {r7}
  9881. 800414e: b083 sub sp, #12
  9882. 8004150: af00 add r7, sp, #0
  9883. 8004152: 6078 str r0, [r7, #4]
  9884. UNUSED(htim);
  9885. /* NOTE : This function should not be modified, when the callback is needed,
  9886. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  9887. */
  9888. }
  9889. 8004154: bf00 nop
  9890. 8004156: 370c adds r7, #12
  9891. 8004158: 46bd mov sp, r7
  9892. 800415a: bc80 pop {r7}
  9893. 800415c: 4770 bx lr
  9894. 0800415e <HAL_TIM_TriggerCallback>:
  9895. * @brief Hall Trigger detection callback in non-blocking mode
  9896. * @param htim TIM handle
  9897. * @retval None
  9898. */
  9899. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  9900. {
  9901. 800415e: b480 push {r7}
  9902. 8004160: b083 sub sp, #12
  9903. 8004162: af00 add r7, sp, #0
  9904. 8004164: 6078 str r0, [r7, #4]
  9905. UNUSED(htim);
  9906. /* NOTE : This function should not be modified, when the callback is needed,
  9907. the HAL_TIM_TriggerCallback could be implemented in the user file
  9908. */
  9909. }
  9910. 8004166: bf00 nop
  9911. 8004168: 370c adds r7, #12
  9912. 800416a: 46bd mov sp, r7
  9913. 800416c: bc80 pop {r7}
  9914. 800416e: 4770 bx lr
  9915. 08004170 <TIM_Base_SetConfig>:
  9916. * @param TIMx TIM peripheral
  9917. * @param Structure TIM Base configuration structure
  9918. * @retval None
  9919. */
  9920. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
  9921. {
  9922. 8004170: b480 push {r7}
  9923. 8004172: b085 sub sp, #20
  9924. 8004174: af00 add r7, sp, #0
  9925. 8004176: 6078 str r0, [r7, #4]
  9926. 8004178: 6039 str r1, [r7, #0]
  9927. uint32_t tmpcr1;
  9928. tmpcr1 = TIMx->CR1;
  9929. 800417a: 687b ldr r3, [r7, #4]
  9930. 800417c: 681b ldr r3, [r3, #0]
  9931. 800417e: 60fb str r3, [r7, #12]
  9932. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  9933. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  9934. 8004180: 687b ldr r3, [r7, #4]
  9935. 8004182: 4a35 ldr r2, [pc, #212] ; (8004258 <TIM_Base_SetConfig+0xe8>)
  9936. 8004184: 4293 cmp r3, r2
  9937. 8004186: d00b beq.n 80041a0 <TIM_Base_SetConfig+0x30>
  9938. 8004188: 687b ldr r3, [r7, #4]
  9939. 800418a: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  9940. 800418e: d007 beq.n 80041a0 <TIM_Base_SetConfig+0x30>
  9941. 8004190: 687b ldr r3, [r7, #4]
  9942. 8004192: 4a32 ldr r2, [pc, #200] ; (800425c <TIM_Base_SetConfig+0xec>)
  9943. 8004194: 4293 cmp r3, r2
  9944. 8004196: d003 beq.n 80041a0 <TIM_Base_SetConfig+0x30>
  9945. 8004198: 687b ldr r3, [r7, #4]
  9946. 800419a: 4a31 ldr r2, [pc, #196] ; (8004260 <TIM_Base_SetConfig+0xf0>)
  9947. 800419c: 4293 cmp r3, r2
  9948. 800419e: d108 bne.n 80041b2 <TIM_Base_SetConfig+0x42>
  9949. {
  9950. /* Select the Counter Mode */
  9951. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  9952. 80041a0: 68fb ldr r3, [r7, #12]
  9953. 80041a2: f023 0370 bic.w r3, r3, #112 ; 0x70
  9954. 80041a6: 60fb str r3, [r7, #12]
  9955. tmpcr1 |= Structure->CounterMode;
  9956. 80041a8: 683b ldr r3, [r7, #0]
  9957. 80041aa: 685b ldr r3, [r3, #4]
  9958. 80041ac: 68fa ldr r2, [r7, #12]
  9959. 80041ae: 4313 orrs r3, r2
  9960. 80041b0: 60fb str r3, [r7, #12]
  9961. }
  9962. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  9963. 80041b2: 687b ldr r3, [r7, #4]
  9964. 80041b4: 4a28 ldr r2, [pc, #160] ; (8004258 <TIM_Base_SetConfig+0xe8>)
  9965. 80041b6: 4293 cmp r3, r2
  9966. 80041b8: d017 beq.n 80041ea <TIM_Base_SetConfig+0x7a>
  9967. 80041ba: 687b ldr r3, [r7, #4]
  9968. 80041bc: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  9969. 80041c0: d013 beq.n 80041ea <TIM_Base_SetConfig+0x7a>
  9970. 80041c2: 687b ldr r3, [r7, #4]
  9971. 80041c4: 4a25 ldr r2, [pc, #148] ; (800425c <TIM_Base_SetConfig+0xec>)
  9972. 80041c6: 4293 cmp r3, r2
  9973. 80041c8: d00f beq.n 80041ea <TIM_Base_SetConfig+0x7a>
  9974. 80041ca: 687b ldr r3, [r7, #4]
  9975. 80041cc: 4a24 ldr r2, [pc, #144] ; (8004260 <TIM_Base_SetConfig+0xf0>)
  9976. 80041ce: 4293 cmp r3, r2
  9977. 80041d0: d00b beq.n 80041ea <TIM_Base_SetConfig+0x7a>
  9978. 80041d2: 687b ldr r3, [r7, #4]
  9979. 80041d4: 4a23 ldr r2, [pc, #140] ; (8004264 <TIM_Base_SetConfig+0xf4>)
  9980. 80041d6: 4293 cmp r3, r2
  9981. 80041d8: d007 beq.n 80041ea <TIM_Base_SetConfig+0x7a>
  9982. 80041da: 687b ldr r3, [r7, #4]
  9983. 80041dc: 4a22 ldr r2, [pc, #136] ; (8004268 <TIM_Base_SetConfig+0xf8>)
  9984. 80041de: 4293 cmp r3, r2
  9985. 80041e0: d003 beq.n 80041ea <TIM_Base_SetConfig+0x7a>
  9986. 80041e2: 687b ldr r3, [r7, #4]
  9987. 80041e4: 4a21 ldr r2, [pc, #132] ; (800426c <TIM_Base_SetConfig+0xfc>)
  9988. 80041e6: 4293 cmp r3, r2
  9989. 80041e8: d108 bne.n 80041fc <TIM_Base_SetConfig+0x8c>
  9990. {
  9991. /* Set the clock division */
  9992. tmpcr1 &= ~TIM_CR1_CKD;
  9993. 80041ea: 68fb ldr r3, [r7, #12]
  9994. 80041ec: f423 7340 bic.w r3, r3, #768 ; 0x300
  9995. 80041f0: 60fb str r3, [r7, #12]
  9996. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  9997. 80041f2: 683b ldr r3, [r7, #0]
  9998. 80041f4: 68db ldr r3, [r3, #12]
  9999. 80041f6: 68fa ldr r2, [r7, #12]
  10000. 80041f8: 4313 orrs r3, r2
  10001. 80041fa: 60fb str r3, [r7, #12]
  10002. }
  10003. /* Set the auto-reload preload */
  10004. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  10005. 80041fc: 68fb ldr r3, [r7, #12]
  10006. 80041fe: f023 0280 bic.w r2, r3, #128 ; 0x80
  10007. 8004202: 683b ldr r3, [r7, #0]
  10008. 8004204: 695b ldr r3, [r3, #20]
  10009. 8004206: 4313 orrs r3, r2
  10010. 8004208: 60fb str r3, [r7, #12]
  10011. TIMx->CR1 = tmpcr1;
  10012. 800420a: 687b ldr r3, [r7, #4]
  10013. 800420c: 68fa ldr r2, [r7, #12]
  10014. 800420e: 601a str r2, [r3, #0]
  10015. /* Set the Autoreload value */
  10016. TIMx->ARR = (uint32_t)Structure->Period ;
  10017. 8004210: 683b ldr r3, [r7, #0]
  10018. 8004212: 689a ldr r2, [r3, #8]
  10019. 8004214: 687b ldr r3, [r7, #4]
  10020. 8004216: 62da str r2, [r3, #44] ; 0x2c
  10021. /* Set the Prescaler value */
  10022. TIMx->PSC = Structure->Prescaler;
  10023. 8004218: 683b ldr r3, [r7, #0]
  10024. 800421a: 681a ldr r2, [r3, #0]
  10025. 800421c: 687b ldr r3, [r7, #4]
  10026. 800421e: 629a str r2, [r3, #40] ; 0x28
  10027. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  10028. 8004220: 687b ldr r3, [r7, #4]
  10029. 8004222: 4a0d ldr r2, [pc, #52] ; (8004258 <TIM_Base_SetConfig+0xe8>)
  10030. 8004224: 4293 cmp r3, r2
  10031. 8004226: d00b beq.n 8004240 <TIM_Base_SetConfig+0xd0>
  10032. 8004228: 687b ldr r3, [r7, #4]
  10033. 800422a: 4a0e ldr r2, [pc, #56] ; (8004264 <TIM_Base_SetConfig+0xf4>)
  10034. 800422c: 4293 cmp r3, r2
  10035. 800422e: d007 beq.n 8004240 <TIM_Base_SetConfig+0xd0>
  10036. 8004230: 687b ldr r3, [r7, #4]
  10037. 8004232: 4a0d ldr r2, [pc, #52] ; (8004268 <TIM_Base_SetConfig+0xf8>)
  10038. 8004234: 4293 cmp r3, r2
  10039. 8004236: d003 beq.n 8004240 <TIM_Base_SetConfig+0xd0>
  10040. 8004238: 687b ldr r3, [r7, #4]
  10041. 800423a: 4a0c ldr r2, [pc, #48] ; (800426c <TIM_Base_SetConfig+0xfc>)
  10042. 800423c: 4293 cmp r3, r2
  10043. 800423e: d103 bne.n 8004248 <TIM_Base_SetConfig+0xd8>
  10044. {
  10045. /* Set the Repetition Counter value */
  10046. TIMx->RCR = Structure->RepetitionCounter;
  10047. 8004240: 683b ldr r3, [r7, #0]
  10048. 8004242: 691a ldr r2, [r3, #16]
  10049. 8004244: 687b ldr r3, [r7, #4]
  10050. 8004246: 631a str r2, [r3, #48] ; 0x30
  10051. }
  10052. /* Generate an update event to reload the Prescaler
  10053. and the repetition counter (only for advanced timer) value immediately */
  10054. TIMx->EGR = TIM_EGR_UG;
  10055. 8004248: 687b ldr r3, [r7, #4]
  10056. 800424a: 2201 movs r2, #1
  10057. 800424c: 615a str r2, [r3, #20]
  10058. }
  10059. 800424e: bf00 nop
  10060. 8004250: 3714 adds r7, #20
  10061. 8004252: 46bd mov sp, r7
  10062. 8004254: bc80 pop {r7}
  10063. 8004256: 4770 bx lr
  10064. 8004258: 40012c00 .word 0x40012c00
  10065. 800425c: 40000400 .word 0x40000400
  10066. 8004260: 40000800 .word 0x40000800
  10067. 8004264: 40014000 .word 0x40014000
  10068. 8004268: 40014400 .word 0x40014400
  10069. 800426c: 40014800 .word 0x40014800
  10070. 08004270 <HAL_TIMEx_MasterConfigSynchronization>:
  10071. * mode.
  10072. * @retval HAL status
  10073. */
  10074. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  10075. TIM_MasterConfigTypeDef *sMasterConfig)
  10076. {
  10077. 8004270: b480 push {r7}
  10078. 8004272: b085 sub sp, #20
  10079. 8004274: af00 add r7, sp, #0
  10080. 8004276: 6078 str r0, [r7, #4]
  10081. 8004278: 6039 str r1, [r7, #0]
  10082. assert_param(IS_TIM_SYNCHRO_INSTANCE(htim->Instance));
  10083. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  10084. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  10085. /* Check input state */
  10086. __HAL_LOCK(htim);
  10087. 800427a: 687b ldr r3, [r7, #4]
  10088. 800427c: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  10089. 8004280: 2b01 cmp r3, #1
  10090. 8004282: d101 bne.n 8004288 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  10091. 8004284: 2302 movs r3, #2
  10092. 8004286: e032 b.n 80042ee <HAL_TIMEx_MasterConfigSynchronization+0x7e>
  10093. 8004288: 687b ldr r3, [r7, #4]
  10094. 800428a: 2201 movs r2, #1
  10095. 800428c: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10096. /* Change the handler state */
  10097. htim->State = HAL_TIM_STATE_BUSY;
  10098. 8004290: 687b ldr r3, [r7, #4]
  10099. 8004292: 2202 movs r2, #2
  10100. 8004294: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10101. /* Get the TIMx CR2 register value */
  10102. tmpcr2 = htim->Instance->CR2;
  10103. 8004298: 687b ldr r3, [r7, #4]
  10104. 800429a: 681b ldr r3, [r3, #0]
  10105. 800429c: 685b ldr r3, [r3, #4]
  10106. 800429e: 60fb str r3, [r7, #12]
  10107. /* Get the TIMx SMCR register value */
  10108. tmpsmcr = htim->Instance->SMCR;
  10109. 80042a0: 687b ldr r3, [r7, #4]
  10110. 80042a2: 681b ldr r3, [r3, #0]
  10111. 80042a4: 689b ldr r3, [r3, #8]
  10112. 80042a6: 60bb str r3, [r7, #8]
  10113. /* Reset the MMS Bits */
  10114. tmpcr2 &= ~TIM_CR2_MMS;
  10115. 80042a8: 68fb ldr r3, [r7, #12]
  10116. 80042aa: f023 0370 bic.w r3, r3, #112 ; 0x70
  10117. 80042ae: 60fb str r3, [r7, #12]
  10118. /* Select the TRGO source */
  10119. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  10120. 80042b0: 683b ldr r3, [r7, #0]
  10121. 80042b2: 681b ldr r3, [r3, #0]
  10122. 80042b4: 68fa ldr r2, [r7, #12]
  10123. 80042b6: 4313 orrs r3, r2
  10124. 80042b8: 60fb str r3, [r7, #12]
  10125. /* Reset the MSM Bit */
  10126. tmpsmcr &= ~TIM_SMCR_MSM;
  10127. 80042ba: 68bb ldr r3, [r7, #8]
  10128. 80042bc: f023 0380 bic.w r3, r3, #128 ; 0x80
  10129. 80042c0: 60bb str r3, [r7, #8]
  10130. /* Set master mode */
  10131. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  10132. 80042c2: 683b ldr r3, [r7, #0]
  10133. 80042c4: 685b ldr r3, [r3, #4]
  10134. 80042c6: 68ba ldr r2, [r7, #8]
  10135. 80042c8: 4313 orrs r3, r2
  10136. 80042ca: 60bb str r3, [r7, #8]
  10137. /* Update TIMx CR2 */
  10138. htim->Instance->CR2 = tmpcr2;
  10139. 80042cc: 687b ldr r3, [r7, #4]
  10140. 80042ce: 681b ldr r3, [r3, #0]
  10141. 80042d0: 68fa ldr r2, [r7, #12]
  10142. 80042d2: 605a str r2, [r3, #4]
  10143. /* Update TIMx SMCR */
  10144. htim->Instance->SMCR = tmpsmcr;
  10145. 80042d4: 687b ldr r3, [r7, #4]
  10146. 80042d6: 681b ldr r3, [r3, #0]
  10147. 80042d8: 68ba ldr r2, [r7, #8]
  10148. 80042da: 609a str r2, [r3, #8]
  10149. /* Change the htim state */
  10150. htim->State = HAL_TIM_STATE_READY;
  10151. 80042dc: 687b ldr r3, [r7, #4]
  10152. 80042de: 2201 movs r2, #1
  10153. 80042e0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10154. __HAL_UNLOCK(htim);
  10155. 80042e4: 687b ldr r3, [r7, #4]
  10156. 80042e6: 2200 movs r2, #0
  10157. 80042e8: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10158. return HAL_OK;
  10159. 80042ec: 2300 movs r3, #0
  10160. }
  10161. 80042ee: 4618 mov r0, r3
  10162. 80042f0: 3714 adds r7, #20
  10163. 80042f2: 46bd mov sp, r7
  10164. 80042f4: bc80 pop {r7}
  10165. 80042f6: 4770 bx lr
  10166. 080042f8 <HAL_TIMEx_CommutCallback>:
  10167. * @brief Hall commutation changed callback in non-blocking mode
  10168. * @param htim TIM handle
  10169. * @retval None
  10170. */
  10171. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  10172. {
  10173. 80042f8: b480 push {r7}
  10174. 80042fa: b083 sub sp, #12
  10175. 80042fc: af00 add r7, sp, #0
  10176. 80042fe: 6078 str r0, [r7, #4]
  10177. UNUSED(htim);
  10178. /* NOTE : This function should not be modified, when the callback is needed,
  10179. the HAL_TIMEx_CommutCallback could be implemented in the user file
  10180. */
  10181. }
  10182. 8004300: bf00 nop
  10183. 8004302: 370c adds r7, #12
  10184. 8004304: 46bd mov sp, r7
  10185. 8004306: bc80 pop {r7}
  10186. 8004308: 4770 bx lr
  10187. 0800430a <HAL_TIMEx_BreakCallback>:
  10188. * @brief Hall Break detection callback in non-blocking mode
  10189. * @param htim TIM handle
  10190. * @retval None
  10191. */
  10192. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  10193. {
  10194. 800430a: b480 push {r7}
  10195. 800430c: b083 sub sp, #12
  10196. 800430e: af00 add r7, sp, #0
  10197. 8004310: 6078 str r0, [r7, #4]
  10198. UNUSED(htim);
  10199. /* NOTE : This function should not be modified, when the callback is needed,
  10200. the HAL_TIMEx_BreakCallback could be implemented in the user file
  10201. */
  10202. }
  10203. 8004312: bf00 nop
  10204. 8004314: 370c adds r7, #12
  10205. 8004316: 46bd mov sp, r7
  10206. 8004318: bc80 pop {r7}
  10207. 800431a: 4770 bx lr
  10208. 0800431c <HAL_UART_Init>:
  10209. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10210. * the configuration information for the specified UART module.
  10211. * @retval HAL status
  10212. */
  10213. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  10214. {
  10215. 800431c: b580 push {r7, lr}
  10216. 800431e: b082 sub sp, #8
  10217. 8004320: af00 add r7, sp, #0
  10218. 8004322: 6078 str r0, [r7, #4]
  10219. /* Check the UART handle allocation */
  10220. if (huart == NULL)
  10221. 8004324: 687b ldr r3, [r7, #4]
  10222. 8004326: 2b00 cmp r3, #0
  10223. 8004328: d101 bne.n 800432e <HAL_UART_Init+0x12>
  10224. {
  10225. return HAL_ERROR;
  10226. 800432a: 2301 movs r3, #1
  10227. 800432c: e03f b.n 80043ae <HAL_UART_Init+0x92>
  10228. assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
  10229. #if defined(USART_CR1_OVER8)
  10230. assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
  10231. #endif /* USART_CR1_OVER8 */
  10232. if (huart->gState == HAL_UART_STATE_RESET)
  10233. 800432e: 687b ldr r3, [r7, #4]
  10234. 8004330: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10235. 8004334: b2db uxtb r3, r3
  10236. 8004336: 2b00 cmp r3, #0
  10237. 8004338: d106 bne.n 8004348 <HAL_UART_Init+0x2c>
  10238. {
  10239. /* Allocate lock resource and initialize it */
  10240. huart->Lock = HAL_UNLOCKED;
  10241. 800433a: 687b ldr r3, [r7, #4]
  10242. 800433c: 2200 movs r2, #0
  10243. 800433e: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10244. /* Init the low level hardware */
  10245. huart->MspInitCallback(huart);
  10246. #else
  10247. /* Init the low level hardware : GPIO, CLOCK */
  10248. HAL_UART_MspInit(huart);
  10249. 8004342: 6878 ldr r0, [r7, #4]
  10250. 8004344: f001 faee bl 8005924 <HAL_UART_MspInit>
  10251. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  10252. }
  10253. huart->gState = HAL_UART_STATE_BUSY;
  10254. 8004348: 687b ldr r3, [r7, #4]
  10255. 800434a: 2224 movs r2, #36 ; 0x24
  10256. 800434c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10257. /* Disable the peripheral */
  10258. __HAL_UART_DISABLE(huart);
  10259. 8004350: 687b ldr r3, [r7, #4]
  10260. 8004352: 681b ldr r3, [r3, #0]
  10261. 8004354: 68da ldr r2, [r3, #12]
  10262. 8004356: 687b ldr r3, [r7, #4]
  10263. 8004358: 681b ldr r3, [r3, #0]
  10264. 800435a: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  10265. 800435e: 60da str r2, [r3, #12]
  10266. /* Set the UART Communication parameters */
  10267. UART_SetConfig(huart);
  10268. 8004360: 6878 ldr r0, [r7, #4]
  10269. 8004362: f000 fd63 bl 8004e2c <UART_SetConfig>
  10270. /* In asynchronous mode, the following bits must be kept cleared:
  10271. - LINEN and CLKEN bits in the USART_CR2 register,
  10272. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  10273. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  10274. 8004366: 687b ldr r3, [r7, #4]
  10275. 8004368: 681b ldr r3, [r3, #0]
  10276. 800436a: 691a ldr r2, [r3, #16]
  10277. 800436c: 687b ldr r3, [r7, #4]
  10278. 800436e: 681b ldr r3, [r3, #0]
  10279. 8004370: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  10280. 8004374: 611a str r2, [r3, #16]
  10281. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  10282. 8004376: 687b ldr r3, [r7, #4]
  10283. 8004378: 681b ldr r3, [r3, #0]
  10284. 800437a: 695a ldr r2, [r3, #20]
  10285. 800437c: 687b ldr r3, [r7, #4]
  10286. 800437e: 681b ldr r3, [r3, #0]
  10287. 8004380: f022 022a bic.w r2, r2, #42 ; 0x2a
  10288. 8004384: 615a str r2, [r3, #20]
  10289. /* Enable the peripheral */
  10290. __HAL_UART_ENABLE(huart);
  10291. 8004386: 687b ldr r3, [r7, #4]
  10292. 8004388: 681b ldr r3, [r3, #0]
  10293. 800438a: 68da ldr r2, [r3, #12]
  10294. 800438c: 687b ldr r3, [r7, #4]
  10295. 800438e: 681b ldr r3, [r3, #0]
  10296. 8004390: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  10297. 8004394: 60da str r2, [r3, #12]
  10298. /* Initialize the UART state */
  10299. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10300. 8004396: 687b ldr r3, [r7, #4]
  10301. 8004398: 2200 movs r2, #0
  10302. 800439a: 63da str r2, [r3, #60] ; 0x3c
  10303. huart->gState = HAL_UART_STATE_READY;
  10304. 800439c: 687b ldr r3, [r7, #4]
  10305. 800439e: 2220 movs r2, #32
  10306. 80043a0: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10307. huart->RxState = HAL_UART_STATE_READY;
  10308. 80043a4: 687b ldr r3, [r7, #4]
  10309. 80043a6: 2220 movs r2, #32
  10310. 80043a8: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10311. return HAL_OK;
  10312. 80043ac: 2300 movs r3, #0
  10313. }
  10314. 80043ae: 4618 mov r0, r3
  10315. 80043b0: 3708 adds r7, #8
  10316. 80043b2: 46bd mov sp, r7
  10317. 80043b4: bd80 pop {r7, pc}
  10318. 080043b6 <HAL_UART_Transmit>:
  10319. * @param Size Amount of data elements (u8 or u16) to be sent
  10320. * @param Timeout Timeout duration
  10321. * @retval HAL status
  10322. */
  10323. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
  10324. {
  10325. 80043b6: b580 push {r7, lr}
  10326. 80043b8: b088 sub sp, #32
  10327. 80043ba: af02 add r7, sp, #8
  10328. 80043bc: 60f8 str r0, [r7, #12]
  10329. 80043be: 60b9 str r1, [r7, #8]
  10330. 80043c0: 603b str r3, [r7, #0]
  10331. 80043c2: 4613 mov r3, r2
  10332. 80043c4: 80fb strh r3, [r7, #6]
  10333. uint16_t *tmp;
  10334. uint32_t tickstart = 0U;
  10335. 80043c6: 2300 movs r3, #0
  10336. 80043c8: 617b str r3, [r7, #20]
  10337. /* Check that a Tx process is not already ongoing */
  10338. if (huart->gState == HAL_UART_STATE_READY)
  10339. 80043ca: 68fb ldr r3, [r7, #12]
  10340. 80043cc: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10341. 80043d0: b2db uxtb r3, r3
  10342. 80043d2: 2b20 cmp r3, #32
  10343. 80043d4: f040 8083 bne.w 80044de <HAL_UART_Transmit+0x128>
  10344. {
  10345. if ((pData == NULL) || (Size == 0U))
  10346. 80043d8: 68bb ldr r3, [r7, #8]
  10347. 80043da: 2b00 cmp r3, #0
  10348. 80043dc: d002 beq.n 80043e4 <HAL_UART_Transmit+0x2e>
  10349. 80043de: 88fb ldrh r3, [r7, #6]
  10350. 80043e0: 2b00 cmp r3, #0
  10351. 80043e2: d101 bne.n 80043e8 <HAL_UART_Transmit+0x32>
  10352. {
  10353. return HAL_ERROR;
  10354. 80043e4: 2301 movs r3, #1
  10355. 80043e6: e07b b.n 80044e0 <HAL_UART_Transmit+0x12a>
  10356. }
  10357. /* Process Locked */
  10358. __HAL_LOCK(huart);
  10359. 80043e8: 68fb ldr r3, [r7, #12]
  10360. 80043ea: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10361. 80043ee: 2b01 cmp r3, #1
  10362. 80043f0: d101 bne.n 80043f6 <HAL_UART_Transmit+0x40>
  10363. 80043f2: 2302 movs r3, #2
  10364. 80043f4: e074 b.n 80044e0 <HAL_UART_Transmit+0x12a>
  10365. 80043f6: 68fb ldr r3, [r7, #12]
  10366. 80043f8: 2201 movs r2, #1
  10367. 80043fa: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10368. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10369. 80043fe: 68fb ldr r3, [r7, #12]
  10370. 8004400: 2200 movs r2, #0
  10371. 8004402: 63da str r2, [r3, #60] ; 0x3c
  10372. huart->gState = HAL_UART_STATE_BUSY_TX;
  10373. 8004404: 68fb ldr r3, [r7, #12]
  10374. 8004406: 2221 movs r2, #33 ; 0x21
  10375. 8004408: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10376. /* Init tickstart for timeout managment */
  10377. tickstart = HAL_GetTick();
  10378. 800440c: f7fd fc2e bl 8001c6c <HAL_GetTick>
  10379. 8004410: 6178 str r0, [r7, #20]
  10380. huart->TxXferSize = Size;
  10381. 8004412: 68fb ldr r3, [r7, #12]
  10382. 8004414: 88fa ldrh r2, [r7, #6]
  10383. 8004416: 849a strh r2, [r3, #36] ; 0x24
  10384. huart->TxXferCount = Size;
  10385. 8004418: 68fb ldr r3, [r7, #12]
  10386. 800441a: 88fa ldrh r2, [r7, #6]
  10387. 800441c: 84da strh r2, [r3, #38] ; 0x26
  10388. while (huart->TxXferCount > 0U)
  10389. 800441e: e042 b.n 80044a6 <HAL_UART_Transmit+0xf0>
  10390. {
  10391. huart->TxXferCount--;
  10392. 8004420: 68fb ldr r3, [r7, #12]
  10393. 8004422: 8cdb ldrh r3, [r3, #38] ; 0x26
  10394. 8004424: b29b uxth r3, r3
  10395. 8004426: 3b01 subs r3, #1
  10396. 8004428: b29a uxth r2, r3
  10397. 800442a: 68fb ldr r3, [r7, #12]
  10398. 800442c: 84da strh r2, [r3, #38] ; 0x26
  10399. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  10400. 800442e: 68fb ldr r3, [r7, #12]
  10401. 8004430: 689b ldr r3, [r3, #8]
  10402. 8004432: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  10403. 8004436: d122 bne.n 800447e <HAL_UART_Transmit+0xc8>
  10404. {
  10405. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  10406. 8004438: 683b ldr r3, [r7, #0]
  10407. 800443a: 9300 str r3, [sp, #0]
  10408. 800443c: 697b ldr r3, [r7, #20]
  10409. 800443e: 2200 movs r2, #0
  10410. 8004440: 2180 movs r1, #128 ; 0x80
  10411. 8004442: 68f8 ldr r0, [r7, #12]
  10412. 8004444: f000 fb73 bl 8004b2e <UART_WaitOnFlagUntilTimeout>
  10413. 8004448: 4603 mov r3, r0
  10414. 800444a: 2b00 cmp r3, #0
  10415. 800444c: d001 beq.n 8004452 <HAL_UART_Transmit+0x9c>
  10416. {
  10417. return HAL_TIMEOUT;
  10418. 800444e: 2303 movs r3, #3
  10419. 8004450: e046 b.n 80044e0 <HAL_UART_Transmit+0x12a>
  10420. }
  10421. tmp = (uint16_t *) pData;
  10422. 8004452: 68bb ldr r3, [r7, #8]
  10423. 8004454: 613b str r3, [r7, #16]
  10424. huart->Instance->DR = (*tmp & (uint16_t)0x01FF);
  10425. 8004456: 693b ldr r3, [r7, #16]
  10426. 8004458: 881b ldrh r3, [r3, #0]
  10427. 800445a: 461a mov r2, r3
  10428. 800445c: 68fb ldr r3, [r7, #12]
  10429. 800445e: 681b ldr r3, [r3, #0]
  10430. 8004460: f3c2 0208 ubfx r2, r2, #0, #9
  10431. 8004464: 605a str r2, [r3, #4]
  10432. if (huart->Init.Parity == UART_PARITY_NONE)
  10433. 8004466: 68fb ldr r3, [r7, #12]
  10434. 8004468: 691b ldr r3, [r3, #16]
  10435. 800446a: 2b00 cmp r3, #0
  10436. 800446c: d103 bne.n 8004476 <HAL_UART_Transmit+0xc0>
  10437. {
  10438. pData += 2U;
  10439. 800446e: 68bb ldr r3, [r7, #8]
  10440. 8004470: 3302 adds r3, #2
  10441. 8004472: 60bb str r3, [r7, #8]
  10442. 8004474: e017 b.n 80044a6 <HAL_UART_Transmit+0xf0>
  10443. }
  10444. else
  10445. {
  10446. pData += 1U;
  10447. 8004476: 68bb ldr r3, [r7, #8]
  10448. 8004478: 3301 adds r3, #1
  10449. 800447a: 60bb str r3, [r7, #8]
  10450. 800447c: e013 b.n 80044a6 <HAL_UART_Transmit+0xf0>
  10451. }
  10452. }
  10453. else
  10454. {
  10455. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  10456. 800447e: 683b ldr r3, [r7, #0]
  10457. 8004480: 9300 str r3, [sp, #0]
  10458. 8004482: 697b ldr r3, [r7, #20]
  10459. 8004484: 2200 movs r2, #0
  10460. 8004486: 2180 movs r1, #128 ; 0x80
  10461. 8004488: 68f8 ldr r0, [r7, #12]
  10462. 800448a: f000 fb50 bl 8004b2e <UART_WaitOnFlagUntilTimeout>
  10463. 800448e: 4603 mov r3, r0
  10464. 8004490: 2b00 cmp r3, #0
  10465. 8004492: d001 beq.n 8004498 <HAL_UART_Transmit+0xe2>
  10466. {
  10467. return HAL_TIMEOUT;
  10468. 8004494: 2303 movs r3, #3
  10469. 8004496: e023 b.n 80044e0 <HAL_UART_Transmit+0x12a>
  10470. }
  10471. huart->Instance->DR = (*pData++ & (uint8_t)0xFF);
  10472. 8004498: 68bb ldr r3, [r7, #8]
  10473. 800449a: 1c5a adds r2, r3, #1
  10474. 800449c: 60ba str r2, [r7, #8]
  10475. 800449e: 781a ldrb r2, [r3, #0]
  10476. 80044a0: 68fb ldr r3, [r7, #12]
  10477. 80044a2: 681b ldr r3, [r3, #0]
  10478. 80044a4: 605a str r2, [r3, #4]
  10479. while (huart->TxXferCount > 0U)
  10480. 80044a6: 68fb ldr r3, [r7, #12]
  10481. 80044a8: 8cdb ldrh r3, [r3, #38] ; 0x26
  10482. 80044aa: b29b uxth r3, r3
  10483. 80044ac: 2b00 cmp r3, #0
  10484. 80044ae: d1b7 bne.n 8004420 <HAL_UART_Transmit+0x6a>
  10485. }
  10486. }
  10487. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  10488. 80044b0: 683b ldr r3, [r7, #0]
  10489. 80044b2: 9300 str r3, [sp, #0]
  10490. 80044b4: 697b ldr r3, [r7, #20]
  10491. 80044b6: 2200 movs r2, #0
  10492. 80044b8: 2140 movs r1, #64 ; 0x40
  10493. 80044ba: 68f8 ldr r0, [r7, #12]
  10494. 80044bc: f000 fb37 bl 8004b2e <UART_WaitOnFlagUntilTimeout>
  10495. 80044c0: 4603 mov r3, r0
  10496. 80044c2: 2b00 cmp r3, #0
  10497. 80044c4: d001 beq.n 80044ca <HAL_UART_Transmit+0x114>
  10498. {
  10499. return HAL_TIMEOUT;
  10500. 80044c6: 2303 movs r3, #3
  10501. 80044c8: e00a b.n 80044e0 <HAL_UART_Transmit+0x12a>
  10502. }
  10503. /* At end of Tx process, restore huart->gState to Ready */
  10504. huart->gState = HAL_UART_STATE_READY;
  10505. 80044ca: 68fb ldr r3, [r7, #12]
  10506. 80044cc: 2220 movs r2, #32
  10507. 80044ce: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10508. /* Process Unlocked */
  10509. __HAL_UNLOCK(huart);
  10510. 80044d2: 68fb ldr r3, [r7, #12]
  10511. 80044d4: 2200 movs r2, #0
  10512. 80044d6: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10513. return HAL_OK;
  10514. 80044da: 2300 movs r3, #0
  10515. 80044dc: e000 b.n 80044e0 <HAL_UART_Transmit+0x12a>
  10516. }
  10517. else
  10518. {
  10519. return HAL_BUSY;
  10520. 80044de: 2302 movs r3, #2
  10521. }
  10522. }
  10523. 80044e0: 4618 mov r0, r3
  10524. 80044e2: 3718 adds r7, #24
  10525. 80044e4: 46bd mov sp, r7
  10526. 80044e6: bd80 pop {r7, pc}
  10527. 080044e8 <HAL_UART_Receive_IT>:
  10528. * @param pData Pointer to data buffer (u8 or u16 data elements).
  10529. * @param Size Amount of data elements (u8 or u16) to be received.
  10530. * @retval HAL status
  10531. */
  10532. HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  10533. {
  10534. 80044e8: b480 push {r7}
  10535. 80044ea: b085 sub sp, #20
  10536. 80044ec: af00 add r7, sp, #0
  10537. 80044ee: 60f8 str r0, [r7, #12]
  10538. 80044f0: 60b9 str r1, [r7, #8]
  10539. 80044f2: 4613 mov r3, r2
  10540. 80044f4: 80fb strh r3, [r7, #6]
  10541. /* Check that a Rx process is not already ongoing */
  10542. if (huart->RxState == HAL_UART_STATE_READY)
  10543. 80044f6: 68fb ldr r3, [r7, #12]
  10544. 80044f8: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  10545. 80044fc: b2db uxtb r3, r3
  10546. 80044fe: 2b20 cmp r3, #32
  10547. 8004500: d140 bne.n 8004584 <HAL_UART_Receive_IT+0x9c>
  10548. {
  10549. if ((pData == NULL) || (Size == 0U))
  10550. 8004502: 68bb ldr r3, [r7, #8]
  10551. 8004504: 2b00 cmp r3, #0
  10552. 8004506: d002 beq.n 800450e <HAL_UART_Receive_IT+0x26>
  10553. 8004508: 88fb ldrh r3, [r7, #6]
  10554. 800450a: 2b00 cmp r3, #0
  10555. 800450c: d101 bne.n 8004512 <HAL_UART_Receive_IT+0x2a>
  10556. {
  10557. return HAL_ERROR;
  10558. 800450e: 2301 movs r3, #1
  10559. 8004510: e039 b.n 8004586 <HAL_UART_Receive_IT+0x9e>
  10560. }
  10561. /* Process Locked */
  10562. __HAL_LOCK(huart);
  10563. 8004512: 68fb ldr r3, [r7, #12]
  10564. 8004514: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10565. 8004518: 2b01 cmp r3, #1
  10566. 800451a: d101 bne.n 8004520 <HAL_UART_Receive_IT+0x38>
  10567. 800451c: 2302 movs r3, #2
  10568. 800451e: e032 b.n 8004586 <HAL_UART_Receive_IT+0x9e>
  10569. 8004520: 68fb ldr r3, [r7, #12]
  10570. 8004522: 2201 movs r2, #1
  10571. 8004524: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10572. huart->pRxBuffPtr = pData;
  10573. 8004528: 68fb ldr r3, [r7, #12]
  10574. 800452a: 68ba ldr r2, [r7, #8]
  10575. 800452c: 629a str r2, [r3, #40] ; 0x28
  10576. huart->RxXferSize = Size;
  10577. 800452e: 68fb ldr r3, [r7, #12]
  10578. 8004530: 88fa ldrh r2, [r7, #6]
  10579. 8004532: 859a strh r2, [r3, #44] ; 0x2c
  10580. huart->RxXferCount = Size;
  10581. 8004534: 68fb ldr r3, [r7, #12]
  10582. 8004536: 88fa ldrh r2, [r7, #6]
  10583. 8004538: 85da strh r2, [r3, #46] ; 0x2e
  10584. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10585. 800453a: 68fb ldr r3, [r7, #12]
  10586. 800453c: 2200 movs r2, #0
  10587. 800453e: 63da str r2, [r3, #60] ; 0x3c
  10588. huart->RxState = HAL_UART_STATE_BUSY_RX;
  10589. 8004540: 68fb ldr r3, [r7, #12]
  10590. 8004542: 2222 movs r2, #34 ; 0x22
  10591. 8004544: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10592. /* Process Unlocked */
  10593. __HAL_UNLOCK(huart);
  10594. 8004548: 68fb ldr r3, [r7, #12]
  10595. 800454a: 2200 movs r2, #0
  10596. 800454c: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10597. /* Enable the UART Parity Error Interrupt */
  10598. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  10599. 8004550: 68fb ldr r3, [r7, #12]
  10600. 8004552: 681b ldr r3, [r3, #0]
  10601. 8004554: 68da ldr r2, [r3, #12]
  10602. 8004556: 68fb ldr r3, [r7, #12]
  10603. 8004558: 681b ldr r3, [r3, #0]
  10604. 800455a: f442 7280 orr.w r2, r2, #256 ; 0x100
  10605. 800455e: 60da str r2, [r3, #12]
  10606. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  10607. __HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
  10608. 8004560: 68fb ldr r3, [r7, #12]
  10609. 8004562: 681b ldr r3, [r3, #0]
  10610. 8004564: 695a ldr r2, [r3, #20]
  10611. 8004566: 68fb ldr r3, [r7, #12]
  10612. 8004568: 681b ldr r3, [r3, #0]
  10613. 800456a: f042 0201 orr.w r2, r2, #1
  10614. 800456e: 615a str r2, [r3, #20]
  10615. /* Enable the UART Data Register not empty Interrupt */
  10616. __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE);
  10617. 8004570: 68fb ldr r3, [r7, #12]
  10618. 8004572: 681b ldr r3, [r3, #0]
  10619. 8004574: 68da ldr r2, [r3, #12]
  10620. 8004576: 68fb ldr r3, [r7, #12]
  10621. 8004578: 681b ldr r3, [r3, #0]
  10622. 800457a: f042 0220 orr.w r2, r2, #32
  10623. 800457e: 60da str r2, [r3, #12]
  10624. return HAL_OK;
  10625. 8004580: 2300 movs r3, #0
  10626. 8004582: e000 b.n 8004586 <HAL_UART_Receive_IT+0x9e>
  10627. }
  10628. else
  10629. {
  10630. return HAL_BUSY;
  10631. 8004584: 2302 movs r3, #2
  10632. }
  10633. }
  10634. 8004586: 4618 mov r0, r3
  10635. 8004588: 3714 adds r7, #20
  10636. 800458a: 46bd mov sp, r7
  10637. 800458c: bc80 pop {r7}
  10638. 800458e: 4770 bx lr
  10639. 08004590 <HAL_UART_Transmit_DMA>:
  10640. * @param pData Pointer to data buffer (u8 or u16 data elements).
  10641. * @param Size Amount of data elements (u8 or u16) to be sent
  10642. * @retval HAL status
  10643. */
  10644. HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  10645. {
  10646. 8004590: b580 push {r7, lr}
  10647. 8004592: b086 sub sp, #24
  10648. 8004594: af00 add r7, sp, #0
  10649. 8004596: 60f8 str r0, [r7, #12]
  10650. 8004598: 60b9 str r1, [r7, #8]
  10651. 800459a: 4613 mov r3, r2
  10652. 800459c: 80fb strh r3, [r7, #6]
  10653. uint32_t *tmp;
  10654. /* Check that a Tx process is not already ongoing */
  10655. if (huart->gState == HAL_UART_STATE_READY)
  10656. 800459e: 68fb ldr r3, [r7, #12]
  10657. 80045a0: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10658. 80045a4: b2db uxtb r3, r3
  10659. 80045a6: 2b20 cmp r3, #32
  10660. 80045a8: d153 bne.n 8004652 <HAL_UART_Transmit_DMA+0xc2>
  10661. {
  10662. if ((pData == NULL) || (Size == 0U))
  10663. 80045aa: 68bb ldr r3, [r7, #8]
  10664. 80045ac: 2b00 cmp r3, #0
  10665. 80045ae: d002 beq.n 80045b6 <HAL_UART_Transmit_DMA+0x26>
  10666. 80045b0: 88fb ldrh r3, [r7, #6]
  10667. 80045b2: 2b00 cmp r3, #0
  10668. 80045b4: d101 bne.n 80045ba <HAL_UART_Transmit_DMA+0x2a>
  10669. {
  10670. return HAL_ERROR;
  10671. 80045b6: 2301 movs r3, #1
  10672. 80045b8: e04c b.n 8004654 <HAL_UART_Transmit_DMA+0xc4>
  10673. }
  10674. /* Process Locked */
  10675. __HAL_LOCK(huart);
  10676. 80045ba: 68fb ldr r3, [r7, #12]
  10677. 80045bc: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10678. 80045c0: 2b01 cmp r3, #1
  10679. 80045c2: d101 bne.n 80045c8 <HAL_UART_Transmit_DMA+0x38>
  10680. 80045c4: 2302 movs r3, #2
  10681. 80045c6: e045 b.n 8004654 <HAL_UART_Transmit_DMA+0xc4>
  10682. 80045c8: 68fb ldr r3, [r7, #12]
  10683. 80045ca: 2201 movs r2, #1
  10684. 80045cc: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10685. huart->pTxBuffPtr = pData;
  10686. 80045d0: 68ba ldr r2, [r7, #8]
  10687. 80045d2: 68fb ldr r3, [r7, #12]
  10688. 80045d4: 621a str r2, [r3, #32]
  10689. huart->TxXferSize = Size;
  10690. 80045d6: 68fb ldr r3, [r7, #12]
  10691. 80045d8: 88fa ldrh r2, [r7, #6]
  10692. 80045da: 849a strh r2, [r3, #36] ; 0x24
  10693. huart->TxXferCount = Size;
  10694. 80045dc: 68fb ldr r3, [r7, #12]
  10695. 80045de: 88fa ldrh r2, [r7, #6]
  10696. 80045e0: 84da strh r2, [r3, #38] ; 0x26
  10697. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10698. 80045e2: 68fb ldr r3, [r7, #12]
  10699. 80045e4: 2200 movs r2, #0
  10700. 80045e6: 63da str r2, [r3, #60] ; 0x3c
  10701. huart->gState = HAL_UART_STATE_BUSY_TX;
  10702. 80045e8: 68fb ldr r3, [r7, #12]
  10703. 80045ea: 2221 movs r2, #33 ; 0x21
  10704. 80045ec: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10705. /* Set the UART DMA transfer complete callback */
  10706. huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt;
  10707. 80045f0: 68fb ldr r3, [r7, #12]
  10708. 80045f2: 6b1b ldr r3, [r3, #48] ; 0x30
  10709. 80045f4: 4a19 ldr r2, [pc, #100] ; (800465c <HAL_UART_Transmit_DMA+0xcc>)
  10710. 80045f6: 629a str r2, [r3, #40] ; 0x28
  10711. /* Set the UART DMA Half transfer complete callback */
  10712. huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt;
  10713. 80045f8: 68fb ldr r3, [r7, #12]
  10714. 80045fa: 6b1b ldr r3, [r3, #48] ; 0x30
  10715. 80045fc: 4a18 ldr r2, [pc, #96] ; (8004660 <HAL_UART_Transmit_DMA+0xd0>)
  10716. 80045fe: 62da str r2, [r3, #44] ; 0x2c
  10717. /* Set the DMA error callback */
  10718. huart->hdmatx->XferErrorCallback = UART_DMAError;
  10719. 8004600: 68fb ldr r3, [r7, #12]
  10720. 8004602: 6b1b ldr r3, [r3, #48] ; 0x30
  10721. 8004604: 4a17 ldr r2, [pc, #92] ; (8004664 <HAL_UART_Transmit_DMA+0xd4>)
  10722. 8004606: 631a str r2, [r3, #48] ; 0x30
  10723. /* Set the DMA abort callback */
  10724. huart->hdmatx->XferAbortCallback = NULL;
  10725. 8004608: 68fb ldr r3, [r7, #12]
  10726. 800460a: 6b1b ldr r3, [r3, #48] ; 0x30
  10727. 800460c: 2200 movs r2, #0
  10728. 800460e: 635a str r2, [r3, #52] ; 0x34
  10729. /* Enable the UART transmit DMA channel */
  10730. tmp = (uint32_t *)&pData;
  10731. 8004610: f107 0308 add.w r3, r7, #8
  10732. 8004614: 617b str r3, [r7, #20]
  10733. HAL_DMA_Start_IT(huart->hdmatx, *(uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size);
  10734. 8004616: 68fb ldr r3, [r7, #12]
  10735. 8004618: 6b18 ldr r0, [r3, #48] ; 0x30
  10736. 800461a: 697b ldr r3, [r7, #20]
  10737. 800461c: 6819 ldr r1, [r3, #0]
  10738. 800461e: 68fb ldr r3, [r7, #12]
  10739. 8004620: 681b ldr r3, [r3, #0]
  10740. 8004622: 3304 adds r3, #4
  10741. 8004624: 461a mov r2, r3
  10742. 8004626: 88fb ldrh r3, [r7, #6]
  10743. 8004628: f7fe f966 bl 80028f8 <HAL_DMA_Start_IT>
  10744. /* Clear the TC flag in the SR register by writing 0 to it */
  10745. __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC);
  10746. 800462c: 68fb ldr r3, [r7, #12]
  10747. 800462e: 681b ldr r3, [r3, #0]
  10748. 8004630: f06f 0240 mvn.w r2, #64 ; 0x40
  10749. 8004634: 601a str r2, [r3, #0]
  10750. /* Process Unlocked */
  10751. __HAL_UNLOCK(huart);
  10752. 8004636: 68fb ldr r3, [r7, #12]
  10753. 8004638: 2200 movs r2, #0
  10754. 800463a: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10755. /* Enable the DMA transfer for transmit request by setting the DMAT bit
  10756. in the UART CR3 register */
  10757. SET_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  10758. 800463e: 68fb ldr r3, [r7, #12]
  10759. 8004640: 681b ldr r3, [r3, #0]
  10760. 8004642: 695a ldr r2, [r3, #20]
  10761. 8004644: 68fb ldr r3, [r7, #12]
  10762. 8004646: 681b ldr r3, [r3, #0]
  10763. 8004648: f042 0280 orr.w r2, r2, #128 ; 0x80
  10764. 800464c: 615a str r2, [r3, #20]
  10765. return HAL_OK;
  10766. 800464e: 2300 movs r3, #0
  10767. 8004650: e000 b.n 8004654 <HAL_UART_Transmit_DMA+0xc4>
  10768. }
  10769. else
  10770. {
  10771. return HAL_BUSY;
  10772. 8004652: 2302 movs r3, #2
  10773. }
  10774. }
  10775. 8004654: 4618 mov r0, r3
  10776. 8004656: 3718 adds r7, #24
  10777. 8004658: 46bd mov sp, r7
  10778. 800465a: bd80 pop {r7, pc}
  10779. 800465c: 080049a9 .word 0x080049a9
  10780. 8004660: 080049fb .word 0x080049fb
  10781. 8004664: 08004a9b .word 0x08004a9b
  10782. 08004668 <HAL_UART_Receive_DMA>:
  10783. * @param Size Amount of data elements (u8 or u16) to be received.
  10784. * @note When the UART parity is enabled (PCE = 1) the received data contains the parity bit.
  10785. * @retval HAL status
  10786. */
  10787. HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  10788. {
  10789. 8004668: b580 push {r7, lr}
  10790. 800466a: b086 sub sp, #24
  10791. 800466c: af00 add r7, sp, #0
  10792. 800466e: 60f8 str r0, [r7, #12]
  10793. 8004670: 60b9 str r1, [r7, #8]
  10794. 8004672: 4613 mov r3, r2
  10795. 8004674: 80fb strh r3, [r7, #6]
  10796. uint32_t *tmp;
  10797. /* Check that a Rx process is not already ongoing */
  10798. if (huart->RxState == HAL_UART_STATE_READY)
  10799. 8004676: 68fb ldr r3, [r7, #12]
  10800. 8004678: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  10801. 800467c: b2db uxtb r3, r3
  10802. 800467e: 2b20 cmp r3, #32
  10803. 8004680: d166 bne.n 8004750 <HAL_UART_Receive_DMA+0xe8>
  10804. {
  10805. if ((pData == NULL) || (Size == 0U))
  10806. 8004682: 68bb ldr r3, [r7, #8]
  10807. 8004684: 2b00 cmp r3, #0
  10808. 8004686: d002 beq.n 800468e <HAL_UART_Receive_DMA+0x26>
  10809. 8004688: 88fb ldrh r3, [r7, #6]
  10810. 800468a: 2b00 cmp r3, #0
  10811. 800468c: d101 bne.n 8004692 <HAL_UART_Receive_DMA+0x2a>
  10812. {
  10813. return HAL_ERROR;
  10814. 800468e: 2301 movs r3, #1
  10815. 8004690: e05f b.n 8004752 <HAL_UART_Receive_DMA+0xea>
  10816. }
  10817. /* Process Locked */
  10818. __HAL_LOCK(huart);
  10819. 8004692: 68fb ldr r3, [r7, #12]
  10820. 8004694: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10821. 8004698: 2b01 cmp r3, #1
  10822. 800469a: d101 bne.n 80046a0 <HAL_UART_Receive_DMA+0x38>
  10823. 800469c: 2302 movs r3, #2
  10824. 800469e: e058 b.n 8004752 <HAL_UART_Receive_DMA+0xea>
  10825. 80046a0: 68fb ldr r3, [r7, #12]
  10826. 80046a2: 2201 movs r2, #1
  10827. 80046a4: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10828. huart->pRxBuffPtr = pData;
  10829. 80046a8: 68ba ldr r2, [r7, #8]
  10830. 80046aa: 68fb ldr r3, [r7, #12]
  10831. 80046ac: 629a str r2, [r3, #40] ; 0x28
  10832. huart->RxXferSize = Size;
  10833. 80046ae: 68fb ldr r3, [r7, #12]
  10834. 80046b0: 88fa ldrh r2, [r7, #6]
  10835. 80046b2: 859a strh r2, [r3, #44] ; 0x2c
  10836. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10837. 80046b4: 68fb ldr r3, [r7, #12]
  10838. 80046b6: 2200 movs r2, #0
  10839. 80046b8: 63da str r2, [r3, #60] ; 0x3c
  10840. huart->RxState = HAL_UART_STATE_BUSY_RX;
  10841. 80046ba: 68fb ldr r3, [r7, #12]
  10842. 80046bc: 2222 movs r2, #34 ; 0x22
  10843. 80046be: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10844. /* Set the UART DMA transfer complete callback */
  10845. huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt;
  10846. 80046c2: 68fb ldr r3, [r7, #12]
  10847. 80046c4: 6b5b ldr r3, [r3, #52] ; 0x34
  10848. 80046c6: 4a25 ldr r2, [pc, #148] ; (800475c <HAL_UART_Receive_DMA+0xf4>)
  10849. 80046c8: 629a str r2, [r3, #40] ; 0x28
  10850. /* Set the UART DMA Half transfer complete callback */
  10851. huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt;
  10852. 80046ca: 68fb ldr r3, [r7, #12]
  10853. 80046cc: 6b5b ldr r3, [r3, #52] ; 0x34
  10854. 80046ce: 4a24 ldr r2, [pc, #144] ; (8004760 <HAL_UART_Receive_DMA+0xf8>)
  10855. 80046d0: 62da str r2, [r3, #44] ; 0x2c
  10856. /* Set the DMA error callback */
  10857. huart->hdmarx->XferErrorCallback = UART_DMAError;
  10858. 80046d2: 68fb ldr r3, [r7, #12]
  10859. 80046d4: 6b5b ldr r3, [r3, #52] ; 0x34
  10860. 80046d6: 4a23 ldr r2, [pc, #140] ; (8004764 <HAL_UART_Receive_DMA+0xfc>)
  10861. 80046d8: 631a str r2, [r3, #48] ; 0x30
  10862. /* Set the DMA abort callback */
  10863. huart->hdmarx->XferAbortCallback = NULL;
  10864. 80046da: 68fb ldr r3, [r7, #12]
  10865. 80046dc: 6b5b ldr r3, [r3, #52] ; 0x34
  10866. 80046de: 2200 movs r2, #0
  10867. 80046e0: 635a str r2, [r3, #52] ; 0x34
  10868. /* Enable the DMA channel */
  10869. tmp = (uint32_t *)&pData;
  10870. 80046e2: f107 0308 add.w r3, r7, #8
  10871. 80046e6: 617b str r3, [r7, #20]
  10872. HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size);
  10873. 80046e8: 68fb ldr r3, [r7, #12]
  10874. 80046ea: 6b58 ldr r0, [r3, #52] ; 0x34
  10875. 80046ec: 68fb ldr r3, [r7, #12]
  10876. 80046ee: 681b ldr r3, [r3, #0]
  10877. 80046f0: 3304 adds r3, #4
  10878. 80046f2: 4619 mov r1, r3
  10879. 80046f4: 697b ldr r3, [r7, #20]
  10880. 80046f6: 681a ldr r2, [r3, #0]
  10881. 80046f8: 88fb ldrh r3, [r7, #6]
  10882. 80046fa: f7fe f8fd bl 80028f8 <HAL_DMA_Start_IT>
  10883. /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */
  10884. __HAL_UART_CLEAR_OREFLAG(huart);
  10885. 80046fe: 2300 movs r3, #0
  10886. 8004700: 613b str r3, [r7, #16]
  10887. 8004702: 68fb ldr r3, [r7, #12]
  10888. 8004704: 681b ldr r3, [r3, #0]
  10889. 8004706: 681b ldr r3, [r3, #0]
  10890. 8004708: 613b str r3, [r7, #16]
  10891. 800470a: 68fb ldr r3, [r7, #12]
  10892. 800470c: 681b ldr r3, [r3, #0]
  10893. 800470e: 685b ldr r3, [r3, #4]
  10894. 8004710: 613b str r3, [r7, #16]
  10895. 8004712: 693b ldr r3, [r7, #16]
  10896. /* Process Unlocked */
  10897. __HAL_UNLOCK(huart);
  10898. 8004714: 68fb ldr r3, [r7, #12]
  10899. 8004716: 2200 movs r2, #0
  10900. 8004718: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10901. /* Enable the UART Parity Error Interrupt */
  10902. SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  10903. 800471c: 68fb ldr r3, [r7, #12]
  10904. 800471e: 681b ldr r3, [r3, #0]
  10905. 8004720: 68da ldr r2, [r3, #12]
  10906. 8004722: 68fb ldr r3, [r7, #12]
  10907. 8004724: 681b ldr r3, [r3, #0]
  10908. 8004726: f442 7280 orr.w r2, r2, #256 ; 0x100
  10909. 800472a: 60da str r2, [r3, #12]
  10910. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  10911. SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  10912. 800472c: 68fb ldr r3, [r7, #12]
  10913. 800472e: 681b ldr r3, [r3, #0]
  10914. 8004730: 695a ldr r2, [r3, #20]
  10915. 8004732: 68fb ldr r3, [r7, #12]
  10916. 8004734: 681b ldr r3, [r3, #0]
  10917. 8004736: f042 0201 orr.w r2, r2, #1
  10918. 800473a: 615a str r2, [r3, #20]
  10919. /* Enable the DMA transfer for the receiver request by setting the DMAR bit
  10920. in the UART CR3 register */
  10921. SET_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  10922. 800473c: 68fb ldr r3, [r7, #12]
  10923. 800473e: 681b ldr r3, [r3, #0]
  10924. 8004740: 695a ldr r2, [r3, #20]
  10925. 8004742: 68fb ldr r3, [r7, #12]
  10926. 8004744: 681b ldr r3, [r3, #0]
  10927. 8004746: f042 0240 orr.w r2, r2, #64 ; 0x40
  10928. 800474a: 615a str r2, [r3, #20]
  10929. return HAL_OK;
  10930. 800474c: 2300 movs r3, #0
  10931. 800474e: e000 b.n 8004752 <HAL_UART_Receive_DMA+0xea>
  10932. }
  10933. else
  10934. {
  10935. return HAL_BUSY;
  10936. 8004750: 2302 movs r3, #2
  10937. }
  10938. }
  10939. 8004752: 4618 mov r0, r3
  10940. 8004754: 3718 adds r7, #24
  10941. 8004756: 46bd mov sp, r7
  10942. 8004758: bd80 pop {r7, pc}
  10943. 800475a: bf00 nop
  10944. 800475c: 08004a17 .word 0x08004a17
  10945. 8004760: 08004a7f .word 0x08004a7f
  10946. 8004764: 08004a9b .word 0x08004a9b
  10947. 08004768 <HAL_UART_IRQHandler>:
  10948. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10949. * the configuration information for the specified UART module.
  10950. * @retval None
  10951. */
  10952. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  10953. {
  10954. 8004768: b580 push {r7, lr}
  10955. 800476a: b088 sub sp, #32
  10956. 800476c: af00 add r7, sp, #0
  10957. 800476e: 6078 str r0, [r7, #4]
  10958. uint32_t isrflags = READ_REG(huart->Instance->SR);
  10959. 8004770: 687b ldr r3, [r7, #4]
  10960. 8004772: 681b ldr r3, [r3, #0]
  10961. 8004774: 681b ldr r3, [r3, #0]
  10962. 8004776: 61fb str r3, [r7, #28]
  10963. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  10964. 8004778: 687b ldr r3, [r7, #4]
  10965. 800477a: 681b ldr r3, [r3, #0]
  10966. 800477c: 68db ldr r3, [r3, #12]
  10967. 800477e: 61bb str r3, [r7, #24]
  10968. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  10969. 8004780: 687b ldr r3, [r7, #4]
  10970. 8004782: 681b ldr r3, [r3, #0]
  10971. 8004784: 695b ldr r3, [r3, #20]
  10972. 8004786: 617b str r3, [r7, #20]
  10973. uint32_t errorflags = 0x00U;
  10974. 8004788: 2300 movs r3, #0
  10975. 800478a: 613b str r3, [r7, #16]
  10976. uint32_t dmarequest = 0x00U;
  10977. 800478c: 2300 movs r3, #0
  10978. 800478e: 60fb str r3, [r7, #12]
  10979. /* If no error occurs */
  10980. errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE));
  10981. 8004790: 69fb ldr r3, [r7, #28]
  10982. 8004792: f003 030f and.w r3, r3, #15
  10983. 8004796: 613b str r3, [r7, #16]
  10984. if (errorflags == RESET)
  10985. 8004798: 693b ldr r3, [r7, #16]
  10986. 800479a: 2b00 cmp r3, #0
  10987. 800479c: d10d bne.n 80047ba <HAL_UART_IRQHandler+0x52>
  10988. {
  10989. /* UART in mode Receiver -------------------------------------------------*/
  10990. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  10991. 800479e: 69fb ldr r3, [r7, #28]
  10992. 80047a0: f003 0320 and.w r3, r3, #32
  10993. 80047a4: 2b00 cmp r3, #0
  10994. 80047a6: d008 beq.n 80047ba <HAL_UART_IRQHandler+0x52>
  10995. 80047a8: 69bb ldr r3, [r7, #24]
  10996. 80047aa: f003 0320 and.w r3, r3, #32
  10997. 80047ae: 2b00 cmp r3, #0
  10998. 80047b0: d003 beq.n 80047ba <HAL_UART_IRQHandler+0x52>
  10999. {
  11000. UART_Receive_IT(huart);
  11001. 80047b2: 6878 ldr r0, [r7, #4]
  11002. 80047b4: f000 fab8 bl 8004d28 <UART_Receive_IT>
  11003. return;
  11004. 80047b8: e0cc b.n 8004954 <HAL_UART_IRQHandler+0x1ec>
  11005. }
  11006. }
  11007. /* If some errors occur */
  11008. if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET)))
  11009. 80047ba: 693b ldr r3, [r7, #16]
  11010. 80047bc: 2b00 cmp r3, #0
  11011. 80047be: f000 80ab beq.w 8004918 <HAL_UART_IRQHandler+0x1b0>
  11012. 80047c2: 697b ldr r3, [r7, #20]
  11013. 80047c4: f003 0301 and.w r3, r3, #1
  11014. 80047c8: 2b00 cmp r3, #0
  11015. 80047ca: d105 bne.n 80047d8 <HAL_UART_IRQHandler+0x70>
  11016. 80047cc: 69bb ldr r3, [r7, #24]
  11017. 80047ce: f403 7390 and.w r3, r3, #288 ; 0x120
  11018. 80047d2: 2b00 cmp r3, #0
  11019. 80047d4: f000 80a0 beq.w 8004918 <HAL_UART_IRQHandler+0x1b0>
  11020. {
  11021. /* UART parity error interrupt occurred ----------------------------------*/
  11022. if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET))
  11023. 80047d8: 69fb ldr r3, [r7, #28]
  11024. 80047da: f003 0301 and.w r3, r3, #1
  11025. 80047de: 2b00 cmp r3, #0
  11026. 80047e0: d00a beq.n 80047f8 <HAL_UART_IRQHandler+0x90>
  11027. 80047e2: 69bb ldr r3, [r7, #24]
  11028. 80047e4: f403 7380 and.w r3, r3, #256 ; 0x100
  11029. 80047e8: 2b00 cmp r3, #0
  11030. 80047ea: d005 beq.n 80047f8 <HAL_UART_IRQHandler+0x90>
  11031. {
  11032. huart->ErrorCode |= HAL_UART_ERROR_PE;
  11033. 80047ec: 687b ldr r3, [r7, #4]
  11034. 80047ee: 6bdb ldr r3, [r3, #60] ; 0x3c
  11035. 80047f0: f043 0201 orr.w r2, r3, #1
  11036. 80047f4: 687b ldr r3, [r7, #4]
  11037. 80047f6: 63da str r2, [r3, #60] ; 0x3c
  11038. }
  11039. /* UART noise error interrupt occurred -----------------------------------*/
  11040. if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  11041. 80047f8: 69fb ldr r3, [r7, #28]
  11042. 80047fa: f003 0304 and.w r3, r3, #4
  11043. 80047fe: 2b00 cmp r3, #0
  11044. 8004800: d00a beq.n 8004818 <HAL_UART_IRQHandler+0xb0>
  11045. 8004802: 697b ldr r3, [r7, #20]
  11046. 8004804: f003 0301 and.w r3, r3, #1
  11047. 8004808: 2b00 cmp r3, #0
  11048. 800480a: d005 beq.n 8004818 <HAL_UART_IRQHandler+0xb0>
  11049. {
  11050. huart->ErrorCode |= HAL_UART_ERROR_NE;
  11051. 800480c: 687b ldr r3, [r7, #4]
  11052. 800480e: 6bdb ldr r3, [r3, #60] ; 0x3c
  11053. 8004810: f043 0202 orr.w r2, r3, #2
  11054. 8004814: 687b ldr r3, [r7, #4]
  11055. 8004816: 63da str r2, [r3, #60] ; 0x3c
  11056. }
  11057. /* UART frame error interrupt occurred -----------------------------------*/
  11058. if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  11059. 8004818: 69fb ldr r3, [r7, #28]
  11060. 800481a: f003 0302 and.w r3, r3, #2
  11061. 800481e: 2b00 cmp r3, #0
  11062. 8004820: d00a beq.n 8004838 <HAL_UART_IRQHandler+0xd0>
  11063. 8004822: 697b ldr r3, [r7, #20]
  11064. 8004824: f003 0301 and.w r3, r3, #1
  11065. 8004828: 2b00 cmp r3, #0
  11066. 800482a: d005 beq.n 8004838 <HAL_UART_IRQHandler+0xd0>
  11067. {
  11068. huart->ErrorCode |= HAL_UART_ERROR_FE;
  11069. 800482c: 687b ldr r3, [r7, #4]
  11070. 800482e: 6bdb ldr r3, [r3, #60] ; 0x3c
  11071. 8004830: f043 0204 orr.w r2, r3, #4
  11072. 8004834: 687b ldr r3, [r7, #4]
  11073. 8004836: 63da str r2, [r3, #60] ; 0x3c
  11074. }
  11075. /* UART Over-Run interrupt occurred --------------------------------------*/
  11076. if (((isrflags & USART_SR_ORE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  11077. 8004838: 69fb ldr r3, [r7, #28]
  11078. 800483a: f003 0308 and.w r3, r3, #8
  11079. 800483e: 2b00 cmp r3, #0
  11080. 8004840: d00a beq.n 8004858 <HAL_UART_IRQHandler+0xf0>
  11081. 8004842: 697b ldr r3, [r7, #20]
  11082. 8004844: f003 0301 and.w r3, r3, #1
  11083. 8004848: 2b00 cmp r3, #0
  11084. 800484a: d005 beq.n 8004858 <HAL_UART_IRQHandler+0xf0>
  11085. {
  11086. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  11087. 800484c: 687b ldr r3, [r7, #4]
  11088. 800484e: 6bdb ldr r3, [r3, #60] ; 0x3c
  11089. 8004850: f043 0208 orr.w r2, r3, #8
  11090. 8004854: 687b ldr r3, [r7, #4]
  11091. 8004856: 63da str r2, [r3, #60] ; 0x3c
  11092. }
  11093. /* Call UART Error Call back function if need be --------------------------*/
  11094. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  11095. 8004858: 687b ldr r3, [r7, #4]
  11096. 800485a: 6bdb ldr r3, [r3, #60] ; 0x3c
  11097. 800485c: 2b00 cmp r3, #0
  11098. 800485e: d078 beq.n 8004952 <HAL_UART_IRQHandler+0x1ea>
  11099. {
  11100. /* UART in mode Receiver -----------------------------------------------*/
  11101. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  11102. 8004860: 69fb ldr r3, [r7, #28]
  11103. 8004862: f003 0320 and.w r3, r3, #32
  11104. 8004866: 2b00 cmp r3, #0
  11105. 8004868: d007 beq.n 800487a <HAL_UART_IRQHandler+0x112>
  11106. 800486a: 69bb ldr r3, [r7, #24]
  11107. 800486c: f003 0320 and.w r3, r3, #32
  11108. 8004870: 2b00 cmp r3, #0
  11109. 8004872: d002 beq.n 800487a <HAL_UART_IRQHandler+0x112>
  11110. {
  11111. UART_Receive_IT(huart);
  11112. 8004874: 6878 ldr r0, [r7, #4]
  11113. 8004876: f000 fa57 bl 8004d28 <UART_Receive_IT>
  11114. }
  11115. /* If Overrun error occurs, or if any error occurs in DMA mode reception,
  11116. consider error as blocking */
  11117. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  11118. 800487a: 687b ldr r3, [r7, #4]
  11119. 800487c: 681b ldr r3, [r3, #0]
  11120. 800487e: 695b ldr r3, [r3, #20]
  11121. 8004880: f003 0340 and.w r3, r3, #64 ; 0x40
  11122. 8004884: 2b00 cmp r3, #0
  11123. 8004886: bf14 ite ne
  11124. 8004888: 2301 movne r3, #1
  11125. 800488a: 2300 moveq r3, #0
  11126. 800488c: b2db uxtb r3, r3
  11127. 800488e: 60fb str r3, [r7, #12]
  11128. if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest)
  11129. 8004890: 687b ldr r3, [r7, #4]
  11130. 8004892: 6bdb ldr r3, [r3, #60] ; 0x3c
  11131. 8004894: f003 0308 and.w r3, r3, #8
  11132. 8004898: 2b00 cmp r3, #0
  11133. 800489a: d102 bne.n 80048a2 <HAL_UART_IRQHandler+0x13a>
  11134. 800489c: 68fb ldr r3, [r7, #12]
  11135. 800489e: 2b00 cmp r3, #0
  11136. 80048a0: d031 beq.n 8004906 <HAL_UART_IRQHandler+0x19e>
  11137. {
  11138. /* Blocking error : transfer is aborted
  11139. Set the UART state ready to be able to start again the process,
  11140. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  11141. UART_EndRxTransfer(huart);
  11142. 80048a2: 6878 ldr r0, [r7, #4]
  11143. 80048a4: f000 f9a2 bl 8004bec <UART_EndRxTransfer>
  11144. /* Disable the UART DMA Rx request if enabled */
  11145. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11146. 80048a8: 687b ldr r3, [r7, #4]
  11147. 80048aa: 681b ldr r3, [r3, #0]
  11148. 80048ac: 695b ldr r3, [r3, #20]
  11149. 80048ae: f003 0340 and.w r3, r3, #64 ; 0x40
  11150. 80048b2: 2b00 cmp r3, #0
  11151. 80048b4: d023 beq.n 80048fe <HAL_UART_IRQHandler+0x196>
  11152. {
  11153. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  11154. 80048b6: 687b ldr r3, [r7, #4]
  11155. 80048b8: 681b ldr r3, [r3, #0]
  11156. 80048ba: 695a ldr r2, [r3, #20]
  11157. 80048bc: 687b ldr r3, [r7, #4]
  11158. 80048be: 681b ldr r3, [r3, #0]
  11159. 80048c0: f022 0240 bic.w r2, r2, #64 ; 0x40
  11160. 80048c4: 615a str r2, [r3, #20]
  11161. /* Abort the UART DMA Rx channel */
  11162. if (huart->hdmarx != NULL)
  11163. 80048c6: 687b ldr r3, [r7, #4]
  11164. 80048c8: 6b5b ldr r3, [r3, #52] ; 0x34
  11165. 80048ca: 2b00 cmp r3, #0
  11166. 80048cc: d013 beq.n 80048f6 <HAL_UART_IRQHandler+0x18e>
  11167. {
  11168. /* Set the UART DMA Abort callback :
  11169. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  11170. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  11171. 80048ce: 687b ldr r3, [r7, #4]
  11172. 80048d0: 6b5b ldr r3, [r3, #52] ; 0x34
  11173. 80048d2: 4a22 ldr r2, [pc, #136] ; (800495c <HAL_UART_IRQHandler+0x1f4>)
  11174. 80048d4: 635a str r2, [r3, #52] ; 0x34
  11175. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  11176. 80048d6: 687b ldr r3, [r7, #4]
  11177. 80048d8: 6b5b ldr r3, [r3, #52] ; 0x34
  11178. 80048da: 4618 mov r0, r3
  11179. 80048dc: f7fe f86c bl 80029b8 <HAL_DMA_Abort_IT>
  11180. 80048e0: 4603 mov r3, r0
  11181. 80048e2: 2b00 cmp r3, #0
  11182. 80048e4: d016 beq.n 8004914 <HAL_UART_IRQHandler+0x1ac>
  11183. {
  11184. /* Call Directly XferAbortCallback function in case of error */
  11185. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  11186. 80048e6: 687b ldr r3, [r7, #4]
  11187. 80048e8: 6b5b ldr r3, [r3, #52] ; 0x34
  11188. 80048ea: 6b5b ldr r3, [r3, #52] ; 0x34
  11189. 80048ec: 687a ldr r2, [r7, #4]
  11190. 80048ee: 6b52 ldr r2, [r2, #52] ; 0x34
  11191. 80048f0: 4610 mov r0, r2
  11192. 80048f2: 4798 blx r3
  11193. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11194. 80048f4: e00e b.n 8004914 <HAL_UART_IRQHandler+0x1ac>
  11195. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11196. /*Call registered error callback*/
  11197. huart->ErrorCallback(huart);
  11198. #else
  11199. /*Call legacy weak error callback*/
  11200. HAL_UART_ErrorCallback(huart);
  11201. 80048f6: 6878 ldr r0, [r7, #4]
  11202. 80048f8: f000 f84d bl 8004996 <HAL_UART_ErrorCallback>
  11203. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11204. 80048fc: e00a b.n 8004914 <HAL_UART_IRQHandler+0x1ac>
  11205. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11206. /*Call registered error callback*/
  11207. huart->ErrorCallback(huart);
  11208. #else
  11209. /*Call legacy weak error callback*/
  11210. HAL_UART_ErrorCallback(huart);
  11211. 80048fe: 6878 ldr r0, [r7, #4]
  11212. 8004900: f000 f849 bl 8004996 <HAL_UART_ErrorCallback>
  11213. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11214. 8004904: e006 b.n 8004914 <HAL_UART_IRQHandler+0x1ac>
  11215. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11216. /*Call registered error callback*/
  11217. huart->ErrorCallback(huart);
  11218. #else
  11219. /*Call legacy weak error callback*/
  11220. HAL_UART_ErrorCallback(huart);
  11221. 8004906: 6878 ldr r0, [r7, #4]
  11222. 8004908: f000 f845 bl 8004996 <HAL_UART_ErrorCallback>
  11223. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11224. huart->ErrorCode = HAL_UART_ERROR_NONE;
  11225. 800490c: 687b ldr r3, [r7, #4]
  11226. 800490e: 2200 movs r2, #0
  11227. 8004910: 63da str r2, [r3, #60] ; 0x3c
  11228. }
  11229. }
  11230. return;
  11231. 8004912: e01e b.n 8004952 <HAL_UART_IRQHandler+0x1ea>
  11232. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11233. 8004914: bf00 nop
  11234. return;
  11235. 8004916: e01c b.n 8004952 <HAL_UART_IRQHandler+0x1ea>
  11236. } /* End if some error occurs */
  11237. /* UART in mode Transmitter ------------------------------------------------*/
  11238. if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET))
  11239. 8004918: 69fb ldr r3, [r7, #28]
  11240. 800491a: f003 0380 and.w r3, r3, #128 ; 0x80
  11241. 800491e: 2b00 cmp r3, #0
  11242. 8004920: d008 beq.n 8004934 <HAL_UART_IRQHandler+0x1cc>
  11243. 8004922: 69bb ldr r3, [r7, #24]
  11244. 8004924: f003 0380 and.w r3, r3, #128 ; 0x80
  11245. 8004928: 2b00 cmp r3, #0
  11246. 800492a: d003 beq.n 8004934 <HAL_UART_IRQHandler+0x1cc>
  11247. {
  11248. UART_Transmit_IT(huart);
  11249. 800492c: 6878 ldr r0, [r7, #4]
  11250. 800492e: f000 f98e bl 8004c4e <UART_Transmit_IT>
  11251. return;
  11252. 8004932: e00f b.n 8004954 <HAL_UART_IRQHandler+0x1ec>
  11253. }
  11254. /* UART in mode Transmitter end --------------------------------------------*/
  11255. if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET))
  11256. 8004934: 69fb ldr r3, [r7, #28]
  11257. 8004936: f003 0340 and.w r3, r3, #64 ; 0x40
  11258. 800493a: 2b00 cmp r3, #0
  11259. 800493c: d00a beq.n 8004954 <HAL_UART_IRQHandler+0x1ec>
  11260. 800493e: 69bb ldr r3, [r7, #24]
  11261. 8004940: f003 0340 and.w r3, r3, #64 ; 0x40
  11262. 8004944: 2b00 cmp r3, #0
  11263. 8004946: d005 beq.n 8004954 <HAL_UART_IRQHandler+0x1ec>
  11264. {
  11265. UART_EndTransmit_IT(huart);
  11266. 8004948: 6878 ldr r0, [r7, #4]
  11267. 800494a: f000 f9d5 bl 8004cf8 <UART_EndTransmit_IT>
  11268. return;
  11269. 800494e: bf00 nop
  11270. 8004950: e000 b.n 8004954 <HAL_UART_IRQHandler+0x1ec>
  11271. return;
  11272. 8004952: bf00 nop
  11273. }
  11274. }
  11275. 8004954: 3720 adds r7, #32
  11276. 8004956: 46bd mov sp, r7
  11277. 8004958: bd80 pop {r7, pc}
  11278. 800495a: bf00 nop
  11279. 800495c: 08004c27 .word 0x08004c27
  11280. 08004960 <HAL_UART_TxCpltCallback>:
  11281. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11282. * the configuration information for the specified UART module.
  11283. * @retval None
  11284. */
  11285. __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
  11286. {
  11287. 8004960: b480 push {r7}
  11288. 8004962: b083 sub sp, #12
  11289. 8004964: af00 add r7, sp, #0
  11290. 8004966: 6078 str r0, [r7, #4]
  11291. /* Prevent unused argument(s) compilation warning */
  11292. UNUSED(huart);
  11293. /* NOTE: This function should not be modified, when the callback is needed,
  11294. the HAL_UART_TxCpltCallback could be implemented in the user file
  11295. */
  11296. }
  11297. 8004968: bf00 nop
  11298. 800496a: 370c adds r7, #12
  11299. 800496c: 46bd mov sp, r7
  11300. 800496e: bc80 pop {r7}
  11301. 8004970: 4770 bx lr
  11302. 08004972 <HAL_UART_TxHalfCpltCallback>:
  11303. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11304. * the configuration information for the specified UART module.
  11305. * @retval None
  11306. */
  11307. __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart)
  11308. {
  11309. 8004972: b480 push {r7}
  11310. 8004974: b083 sub sp, #12
  11311. 8004976: af00 add r7, sp, #0
  11312. 8004978: 6078 str r0, [r7, #4]
  11313. /* Prevent unused argument(s) compilation warning */
  11314. UNUSED(huart);
  11315. /* NOTE: This function should not be modified, when the callback is needed,
  11316. the HAL_UART_TxHalfCpltCallback could be implemented in the user file
  11317. */
  11318. }
  11319. 800497a: bf00 nop
  11320. 800497c: 370c adds r7, #12
  11321. 800497e: 46bd mov sp, r7
  11322. 8004980: bc80 pop {r7}
  11323. 8004982: 4770 bx lr
  11324. 08004984 <HAL_UART_RxHalfCpltCallback>:
  11325. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11326. * the configuration information for the specified UART module.
  11327. * @retval None
  11328. */
  11329. __weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart)
  11330. {
  11331. 8004984: b480 push {r7}
  11332. 8004986: b083 sub sp, #12
  11333. 8004988: af00 add r7, sp, #0
  11334. 800498a: 6078 str r0, [r7, #4]
  11335. /* Prevent unused argument(s) compilation warning */
  11336. UNUSED(huart);
  11337. /* NOTE: This function should not be modified, when the callback is needed,
  11338. the HAL_UART_RxHalfCpltCallback could be implemented in the user file
  11339. */
  11340. }
  11341. 800498c: bf00 nop
  11342. 800498e: 370c adds r7, #12
  11343. 8004990: 46bd mov sp, r7
  11344. 8004992: bc80 pop {r7}
  11345. 8004994: 4770 bx lr
  11346. 08004996 <HAL_UART_ErrorCallback>:
  11347. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11348. * the configuration information for the specified UART module.
  11349. * @retval None
  11350. */
  11351. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  11352. {
  11353. 8004996: b480 push {r7}
  11354. 8004998: b083 sub sp, #12
  11355. 800499a: af00 add r7, sp, #0
  11356. 800499c: 6078 str r0, [r7, #4]
  11357. /* Prevent unused argument(s) compilation warning */
  11358. UNUSED(huart);
  11359. /* NOTE: This function should not be modified, when the callback is needed,
  11360. the HAL_UART_ErrorCallback could be implemented in the user file
  11361. */
  11362. }
  11363. 800499e: bf00 nop
  11364. 80049a0: 370c adds r7, #12
  11365. 80049a2: 46bd mov sp, r7
  11366. 80049a4: bc80 pop {r7}
  11367. 80049a6: 4770 bx lr
  11368. 080049a8 <UART_DMATransmitCplt>:
  11369. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11370. * the configuration information for the specified DMA module.
  11371. * @retval None
  11372. */
  11373. static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma)
  11374. {
  11375. 80049a8: b580 push {r7, lr}
  11376. 80049aa: b084 sub sp, #16
  11377. 80049ac: af00 add r7, sp, #0
  11378. 80049ae: 6078 str r0, [r7, #4]
  11379. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11380. 80049b0: 687b ldr r3, [r7, #4]
  11381. 80049b2: 6a5b ldr r3, [r3, #36] ; 0x24
  11382. 80049b4: 60fb str r3, [r7, #12]
  11383. /* DMA Normal mode*/
  11384. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  11385. 80049b6: 687b ldr r3, [r7, #4]
  11386. 80049b8: 681b ldr r3, [r3, #0]
  11387. 80049ba: 681b ldr r3, [r3, #0]
  11388. 80049bc: f003 0320 and.w r3, r3, #32
  11389. 80049c0: 2b00 cmp r3, #0
  11390. 80049c2: d113 bne.n 80049ec <UART_DMATransmitCplt+0x44>
  11391. {
  11392. huart->TxXferCount = 0x00U;
  11393. 80049c4: 68fb ldr r3, [r7, #12]
  11394. 80049c6: 2200 movs r2, #0
  11395. 80049c8: 84da strh r2, [r3, #38] ; 0x26
  11396. /* Disable the DMA transfer for transmit request by setting the DMAT bit
  11397. in the UART CR3 register */
  11398. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  11399. 80049ca: 68fb ldr r3, [r7, #12]
  11400. 80049cc: 681b ldr r3, [r3, #0]
  11401. 80049ce: 695a ldr r2, [r3, #20]
  11402. 80049d0: 68fb ldr r3, [r7, #12]
  11403. 80049d2: 681b ldr r3, [r3, #0]
  11404. 80049d4: f022 0280 bic.w r2, r2, #128 ; 0x80
  11405. 80049d8: 615a str r2, [r3, #20]
  11406. /* Enable the UART Transmit Complete Interrupt */
  11407. SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  11408. 80049da: 68fb ldr r3, [r7, #12]
  11409. 80049dc: 681b ldr r3, [r3, #0]
  11410. 80049de: 68da ldr r2, [r3, #12]
  11411. 80049e0: 68fb ldr r3, [r7, #12]
  11412. 80049e2: 681b ldr r3, [r3, #0]
  11413. 80049e4: f042 0240 orr.w r2, r2, #64 ; 0x40
  11414. 80049e8: 60da str r2, [r3, #12]
  11415. #else
  11416. /*Call legacy weak Tx complete callback*/
  11417. HAL_UART_TxCpltCallback(huart);
  11418. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11419. }
  11420. }
  11421. 80049ea: e002 b.n 80049f2 <UART_DMATransmitCplt+0x4a>
  11422. HAL_UART_TxCpltCallback(huart);
  11423. 80049ec: 68f8 ldr r0, [r7, #12]
  11424. 80049ee: f7ff ffb7 bl 8004960 <HAL_UART_TxCpltCallback>
  11425. }
  11426. 80049f2: bf00 nop
  11427. 80049f4: 3710 adds r7, #16
  11428. 80049f6: 46bd mov sp, r7
  11429. 80049f8: bd80 pop {r7, pc}
  11430. 080049fa <UART_DMATxHalfCplt>:
  11431. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11432. * the configuration information for the specified DMA module.
  11433. * @retval None
  11434. */
  11435. static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma)
  11436. {
  11437. 80049fa: b580 push {r7, lr}
  11438. 80049fc: b084 sub sp, #16
  11439. 80049fe: af00 add r7, sp, #0
  11440. 8004a00: 6078 str r0, [r7, #4]
  11441. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11442. 8004a02: 687b ldr r3, [r7, #4]
  11443. 8004a04: 6a5b ldr r3, [r3, #36] ; 0x24
  11444. 8004a06: 60fb str r3, [r7, #12]
  11445. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11446. /*Call registered Tx complete callback*/
  11447. huart->TxHalfCpltCallback(huart);
  11448. #else
  11449. /*Call legacy weak Tx complete callback*/
  11450. HAL_UART_TxHalfCpltCallback(huart);
  11451. 8004a08: 68f8 ldr r0, [r7, #12]
  11452. 8004a0a: f7ff ffb2 bl 8004972 <HAL_UART_TxHalfCpltCallback>
  11453. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11454. }
  11455. 8004a0e: bf00 nop
  11456. 8004a10: 3710 adds r7, #16
  11457. 8004a12: 46bd mov sp, r7
  11458. 8004a14: bd80 pop {r7, pc}
  11459. 08004a16 <UART_DMAReceiveCplt>:
  11460. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11461. * the configuration information for the specified DMA module.
  11462. * @retval None
  11463. */
  11464. static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma)
  11465. {
  11466. 8004a16: b580 push {r7, lr}
  11467. 8004a18: b084 sub sp, #16
  11468. 8004a1a: af00 add r7, sp, #0
  11469. 8004a1c: 6078 str r0, [r7, #4]
  11470. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11471. 8004a1e: 687b ldr r3, [r7, #4]
  11472. 8004a20: 6a5b ldr r3, [r3, #36] ; 0x24
  11473. 8004a22: 60fb str r3, [r7, #12]
  11474. /* DMA Normal mode*/
  11475. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  11476. 8004a24: 687b ldr r3, [r7, #4]
  11477. 8004a26: 681b ldr r3, [r3, #0]
  11478. 8004a28: 681b ldr r3, [r3, #0]
  11479. 8004a2a: f003 0320 and.w r3, r3, #32
  11480. 8004a2e: 2b00 cmp r3, #0
  11481. 8004a30: d11e bne.n 8004a70 <UART_DMAReceiveCplt+0x5a>
  11482. {
  11483. huart->RxXferCount = 0U;
  11484. 8004a32: 68fb ldr r3, [r7, #12]
  11485. 8004a34: 2200 movs r2, #0
  11486. 8004a36: 85da strh r2, [r3, #46] ; 0x2e
  11487. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  11488. CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  11489. 8004a38: 68fb ldr r3, [r7, #12]
  11490. 8004a3a: 681b ldr r3, [r3, #0]
  11491. 8004a3c: 68da ldr r2, [r3, #12]
  11492. 8004a3e: 68fb ldr r3, [r7, #12]
  11493. 8004a40: 681b ldr r3, [r3, #0]
  11494. 8004a42: f422 7280 bic.w r2, r2, #256 ; 0x100
  11495. 8004a46: 60da str r2, [r3, #12]
  11496. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  11497. 8004a48: 68fb ldr r3, [r7, #12]
  11498. 8004a4a: 681b ldr r3, [r3, #0]
  11499. 8004a4c: 695a ldr r2, [r3, #20]
  11500. 8004a4e: 68fb ldr r3, [r7, #12]
  11501. 8004a50: 681b ldr r3, [r3, #0]
  11502. 8004a52: f022 0201 bic.w r2, r2, #1
  11503. 8004a56: 615a str r2, [r3, #20]
  11504. /* Disable the DMA transfer for the receiver request by setting the DMAR bit
  11505. in the UART CR3 register */
  11506. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  11507. 8004a58: 68fb ldr r3, [r7, #12]
  11508. 8004a5a: 681b ldr r3, [r3, #0]
  11509. 8004a5c: 695a ldr r2, [r3, #20]
  11510. 8004a5e: 68fb ldr r3, [r7, #12]
  11511. 8004a60: 681b ldr r3, [r3, #0]
  11512. 8004a62: f022 0240 bic.w r2, r2, #64 ; 0x40
  11513. 8004a66: 615a str r2, [r3, #20]
  11514. /* At end of Rx process, restore huart->RxState to Ready */
  11515. huart->RxState = HAL_UART_STATE_READY;
  11516. 8004a68: 68fb ldr r3, [r7, #12]
  11517. 8004a6a: 2220 movs r2, #32
  11518. 8004a6c: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11519. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11520. /*Call registered Rx complete callback*/
  11521. huart->RxCpltCallback(huart);
  11522. #else
  11523. /*Call legacy weak Rx complete callback*/
  11524. HAL_UART_RxCpltCallback(huart);
  11525. 8004a70: 68f8 ldr r0, [r7, #12]
  11526. 8004a72: f7fc ffb1 bl 80019d8 <HAL_UART_RxCpltCallback>
  11527. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11528. }
  11529. 8004a76: bf00 nop
  11530. 8004a78: 3710 adds r7, #16
  11531. 8004a7a: 46bd mov sp, r7
  11532. 8004a7c: bd80 pop {r7, pc}
  11533. 08004a7e <UART_DMARxHalfCplt>:
  11534. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11535. * the configuration information for the specified DMA module.
  11536. * @retval None
  11537. */
  11538. static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma)
  11539. {
  11540. 8004a7e: b580 push {r7, lr}
  11541. 8004a80: b084 sub sp, #16
  11542. 8004a82: af00 add r7, sp, #0
  11543. 8004a84: 6078 str r0, [r7, #4]
  11544. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11545. 8004a86: 687b ldr r3, [r7, #4]
  11546. 8004a88: 6a5b ldr r3, [r3, #36] ; 0x24
  11547. 8004a8a: 60fb str r3, [r7, #12]
  11548. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11549. /*Call registered Rx Half complete callback*/
  11550. huart->RxHalfCpltCallback(huart);
  11551. #else
  11552. /*Call legacy weak Rx Half complete callback*/
  11553. HAL_UART_RxHalfCpltCallback(huart);
  11554. 8004a8c: 68f8 ldr r0, [r7, #12]
  11555. 8004a8e: f7ff ff79 bl 8004984 <HAL_UART_RxHalfCpltCallback>
  11556. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11557. }
  11558. 8004a92: bf00 nop
  11559. 8004a94: 3710 adds r7, #16
  11560. 8004a96: 46bd mov sp, r7
  11561. 8004a98: bd80 pop {r7, pc}
  11562. 08004a9a <UART_DMAError>:
  11563. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11564. * the configuration information for the specified DMA module.
  11565. * @retval None
  11566. */
  11567. static void UART_DMAError(DMA_HandleTypeDef *hdma)
  11568. {
  11569. 8004a9a: b580 push {r7, lr}
  11570. 8004a9c: b084 sub sp, #16
  11571. 8004a9e: af00 add r7, sp, #0
  11572. 8004aa0: 6078 str r0, [r7, #4]
  11573. uint32_t dmarequest = 0x00U;
  11574. 8004aa2: 2300 movs r3, #0
  11575. 8004aa4: 60fb str r3, [r7, #12]
  11576. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11577. 8004aa6: 687b ldr r3, [r7, #4]
  11578. 8004aa8: 6a5b ldr r3, [r3, #36] ; 0x24
  11579. 8004aaa: 60bb str r3, [r7, #8]
  11580. /* Stop UART DMA Tx request if ongoing */
  11581. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT);
  11582. 8004aac: 68bb ldr r3, [r7, #8]
  11583. 8004aae: 681b ldr r3, [r3, #0]
  11584. 8004ab0: 695b ldr r3, [r3, #20]
  11585. 8004ab2: f003 0380 and.w r3, r3, #128 ; 0x80
  11586. 8004ab6: 2b00 cmp r3, #0
  11587. 8004ab8: bf14 ite ne
  11588. 8004aba: 2301 movne r3, #1
  11589. 8004abc: 2300 moveq r3, #0
  11590. 8004abe: b2db uxtb r3, r3
  11591. 8004ac0: 60fb str r3, [r7, #12]
  11592. if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest)
  11593. 8004ac2: 68bb ldr r3, [r7, #8]
  11594. 8004ac4: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11595. 8004ac8: b2db uxtb r3, r3
  11596. 8004aca: 2b21 cmp r3, #33 ; 0x21
  11597. 8004acc: d108 bne.n 8004ae0 <UART_DMAError+0x46>
  11598. 8004ace: 68fb ldr r3, [r7, #12]
  11599. 8004ad0: 2b00 cmp r3, #0
  11600. 8004ad2: d005 beq.n 8004ae0 <UART_DMAError+0x46>
  11601. {
  11602. huart->TxXferCount = 0x00U;
  11603. 8004ad4: 68bb ldr r3, [r7, #8]
  11604. 8004ad6: 2200 movs r2, #0
  11605. 8004ad8: 84da strh r2, [r3, #38] ; 0x26
  11606. UART_EndTxTransfer(huart);
  11607. 8004ada: 68b8 ldr r0, [r7, #8]
  11608. 8004adc: f000 f871 bl 8004bc2 <UART_EndTxTransfer>
  11609. }
  11610. /* Stop UART DMA Rx request if ongoing */
  11611. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  11612. 8004ae0: 68bb ldr r3, [r7, #8]
  11613. 8004ae2: 681b ldr r3, [r3, #0]
  11614. 8004ae4: 695b ldr r3, [r3, #20]
  11615. 8004ae6: f003 0340 and.w r3, r3, #64 ; 0x40
  11616. 8004aea: 2b00 cmp r3, #0
  11617. 8004aec: bf14 ite ne
  11618. 8004aee: 2301 movne r3, #1
  11619. 8004af0: 2300 moveq r3, #0
  11620. 8004af2: b2db uxtb r3, r3
  11621. 8004af4: 60fb str r3, [r7, #12]
  11622. if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest)
  11623. 8004af6: 68bb ldr r3, [r7, #8]
  11624. 8004af8: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  11625. 8004afc: b2db uxtb r3, r3
  11626. 8004afe: 2b22 cmp r3, #34 ; 0x22
  11627. 8004b00: d108 bne.n 8004b14 <UART_DMAError+0x7a>
  11628. 8004b02: 68fb ldr r3, [r7, #12]
  11629. 8004b04: 2b00 cmp r3, #0
  11630. 8004b06: d005 beq.n 8004b14 <UART_DMAError+0x7a>
  11631. {
  11632. huart->RxXferCount = 0x00U;
  11633. 8004b08: 68bb ldr r3, [r7, #8]
  11634. 8004b0a: 2200 movs r2, #0
  11635. 8004b0c: 85da strh r2, [r3, #46] ; 0x2e
  11636. UART_EndRxTransfer(huart);
  11637. 8004b0e: 68b8 ldr r0, [r7, #8]
  11638. 8004b10: f000 f86c bl 8004bec <UART_EndRxTransfer>
  11639. }
  11640. huart->ErrorCode |= HAL_UART_ERROR_DMA;
  11641. 8004b14: 68bb ldr r3, [r7, #8]
  11642. 8004b16: 6bdb ldr r3, [r3, #60] ; 0x3c
  11643. 8004b18: f043 0210 orr.w r2, r3, #16
  11644. 8004b1c: 68bb ldr r3, [r7, #8]
  11645. 8004b1e: 63da str r2, [r3, #60] ; 0x3c
  11646. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11647. /*Call registered error callback*/
  11648. huart->ErrorCallback(huart);
  11649. #else
  11650. /*Call legacy weak error callback*/
  11651. HAL_UART_ErrorCallback(huart);
  11652. 8004b20: 68b8 ldr r0, [r7, #8]
  11653. 8004b22: f7ff ff38 bl 8004996 <HAL_UART_ErrorCallback>
  11654. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11655. }
  11656. 8004b26: bf00 nop
  11657. 8004b28: 3710 adds r7, #16
  11658. 8004b2a: 46bd mov sp, r7
  11659. 8004b2c: bd80 pop {r7, pc}
  11660. 08004b2e <UART_WaitOnFlagUntilTimeout>:
  11661. * @param Tickstart Tick start value
  11662. * @param Timeout Timeout duration
  11663. * @retval HAL status
  11664. */
  11665. static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
  11666. {
  11667. 8004b2e: b580 push {r7, lr}
  11668. 8004b30: b084 sub sp, #16
  11669. 8004b32: af00 add r7, sp, #0
  11670. 8004b34: 60f8 str r0, [r7, #12]
  11671. 8004b36: 60b9 str r1, [r7, #8]
  11672. 8004b38: 603b str r3, [r7, #0]
  11673. 8004b3a: 4613 mov r3, r2
  11674. 8004b3c: 71fb strb r3, [r7, #7]
  11675. /* Wait until flag is set */
  11676. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  11677. 8004b3e: e02c b.n 8004b9a <UART_WaitOnFlagUntilTimeout+0x6c>
  11678. {
  11679. /* Check for the Timeout */
  11680. if (Timeout != HAL_MAX_DELAY)
  11681. 8004b40: 69bb ldr r3, [r7, #24]
  11682. 8004b42: f1b3 3fff cmp.w r3, #4294967295
  11683. 8004b46: d028 beq.n 8004b9a <UART_WaitOnFlagUntilTimeout+0x6c>
  11684. {
  11685. if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout))
  11686. 8004b48: 69bb ldr r3, [r7, #24]
  11687. 8004b4a: 2b00 cmp r3, #0
  11688. 8004b4c: d007 beq.n 8004b5e <UART_WaitOnFlagUntilTimeout+0x30>
  11689. 8004b4e: f7fd f88d bl 8001c6c <HAL_GetTick>
  11690. 8004b52: 4602 mov r2, r0
  11691. 8004b54: 683b ldr r3, [r7, #0]
  11692. 8004b56: 1ad3 subs r3, r2, r3
  11693. 8004b58: 69ba ldr r2, [r7, #24]
  11694. 8004b5a: 429a cmp r2, r3
  11695. 8004b5c: d21d bcs.n 8004b9a <UART_WaitOnFlagUntilTimeout+0x6c>
  11696. {
  11697. /* Disable TXE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts for the interrupt process */
  11698. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE));
  11699. 8004b5e: 68fb ldr r3, [r7, #12]
  11700. 8004b60: 681b ldr r3, [r3, #0]
  11701. 8004b62: 68da ldr r2, [r3, #12]
  11702. 8004b64: 68fb ldr r3, [r7, #12]
  11703. 8004b66: 681b ldr r3, [r3, #0]
  11704. 8004b68: f422 72d0 bic.w r2, r2, #416 ; 0x1a0
  11705. 8004b6c: 60da str r2, [r3, #12]
  11706. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  11707. 8004b6e: 68fb ldr r3, [r7, #12]
  11708. 8004b70: 681b ldr r3, [r3, #0]
  11709. 8004b72: 695a ldr r2, [r3, #20]
  11710. 8004b74: 68fb ldr r3, [r7, #12]
  11711. 8004b76: 681b ldr r3, [r3, #0]
  11712. 8004b78: f022 0201 bic.w r2, r2, #1
  11713. 8004b7c: 615a str r2, [r3, #20]
  11714. huart->gState = HAL_UART_STATE_READY;
  11715. 8004b7e: 68fb ldr r3, [r7, #12]
  11716. 8004b80: 2220 movs r2, #32
  11717. 8004b82: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11718. huart->RxState = HAL_UART_STATE_READY;
  11719. 8004b86: 68fb ldr r3, [r7, #12]
  11720. 8004b88: 2220 movs r2, #32
  11721. 8004b8a: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11722. /* Process Unlocked */
  11723. __HAL_UNLOCK(huart);
  11724. 8004b8e: 68fb ldr r3, [r7, #12]
  11725. 8004b90: 2200 movs r2, #0
  11726. 8004b92: f883 2038 strb.w r2, [r3, #56] ; 0x38
  11727. return HAL_TIMEOUT;
  11728. 8004b96: 2303 movs r3, #3
  11729. 8004b98: e00f b.n 8004bba <UART_WaitOnFlagUntilTimeout+0x8c>
  11730. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  11731. 8004b9a: 68fb ldr r3, [r7, #12]
  11732. 8004b9c: 681b ldr r3, [r3, #0]
  11733. 8004b9e: 681a ldr r2, [r3, #0]
  11734. 8004ba0: 68bb ldr r3, [r7, #8]
  11735. 8004ba2: 4013 ands r3, r2
  11736. 8004ba4: 68ba ldr r2, [r7, #8]
  11737. 8004ba6: 429a cmp r2, r3
  11738. 8004ba8: bf0c ite eq
  11739. 8004baa: 2301 moveq r3, #1
  11740. 8004bac: 2300 movne r3, #0
  11741. 8004bae: b2db uxtb r3, r3
  11742. 8004bb0: 461a mov r2, r3
  11743. 8004bb2: 79fb ldrb r3, [r7, #7]
  11744. 8004bb4: 429a cmp r2, r3
  11745. 8004bb6: d0c3 beq.n 8004b40 <UART_WaitOnFlagUntilTimeout+0x12>
  11746. }
  11747. }
  11748. }
  11749. return HAL_OK;
  11750. 8004bb8: 2300 movs r3, #0
  11751. }
  11752. 8004bba: 4618 mov r0, r3
  11753. 8004bbc: 3710 adds r7, #16
  11754. 8004bbe: 46bd mov sp, r7
  11755. 8004bc0: bd80 pop {r7, pc}
  11756. 08004bc2 <UART_EndTxTransfer>:
  11757. * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion).
  11758. * @param huart UART handle.
  11759. * @retval None
  11760. */
  11761. static void UART_EndTxTransfer(UART_HandleTypeDef *huart)
  11762. {
  11763. 8004bc2: b480 push {r7}
  11764. 8004bc4: b083 sub sp, #12
  11765. 8004bc6: af00 add r7, sp, #0
  11766. 8004bc8: 6078 str r0, [r7, #4]
  11767. /* Disable TXEIE and TCIE interrupts */
  11768. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE));
  11769. 8004bca: 687b ldr r3, [r7, #4]
  11770. 8004bcc: 681b ldr r3, [r3, #0]
  11771. 8004bce: 68da ldr r2, [r3, #12]
  11772. 8004bd0: 687b ldr r3, [r7, #4]
  11773. 8004bd2: 681b ldr r3, [r3, #0]
  11774. 8004bd4: f022 02c0 bic.w r2, r2, #192 ; 0xc0
  11775. 8004bd8: 60da str r2, [r3, #12]
  11776. /* At end of Tx process, restore huart->gState to Ready */
  11777. huart->gState = HAL_UART_STATE_READY;
  11778. 8004bda: 687b ldr r3, [r7, #4]
  11779. 8004bdc: 2220 movs r2, #32
  11780. 8004bde: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11781. }
  11782. 8004be2: bf00 nop
  11783. 8004be4: 370c adds r7, #12
  11784. 8004be6: 46bd mov sp, r7
  11785. 8004be8: bc80 pop {r7}
  11786. 8004bea: 4770 bx lr
  11787. 08004bec <UART_EndRxTransfer>:
  11788. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  11789. * @param huart UART handle.
  11790. * @retval None
  11791. */
  11792. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  11793. {
  11794. 8004bec: b480 push {r7}
  11795. 8004bee: b083 sub sp, #12
  11796. 8004bf0: af00 add r7, sp, #0
  11797. 8004bf2: 6078 str r0, [r7, #4]
  11798. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  11799. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
  11800. 8004bf4: 687b ldr r3, [r7, #4]
  11801. 8004bf6: 681b ldr r3, [r3, #0]
  11802. 8004bf8: 68da ldr r2, [r3, #12]
  11803. 8004bfa: 687b ldr r3, [r7, #4]
  11804. 8004bfc: 681b ldr r3, [r3, #0]
  11805. 8004bfe: f422 7290 bic.w r2, r2, #288 ; 0x120
  11806. 8004c02: 60da str r2, [r3, #12]
  11807. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  11808. 8004c04: 687b ldr r3, [r7, #4]
  11809. 8004c06: 681b ldr r3, [r3, #0]
  11810. 8004c08: 695a ldr r2, [r3, #20]
  11811. 8004c0a: 687b ldr r3, [r7, #4]
  11812. 8004c0c: 681b ldr r3, [r3, #0]
  11813. 8004c0e: f022 0201 bic.w r2, r2, #1
  11814. 8004c12: 615a str r2, [r3, #20]
  11815. /* At end of Rx process, restore huart->RxState to Ready */
  11816. huart->RxState = HAL_UART_STATE_READY;
  11817. 8004c14: 687b ldr r3, [r7, #4]
  11818. 8004c16: 2220 movs r2, #32
  11819. 8004c18: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11820. }
  11821. 8004c1c: bf00 nop
  11822. 8004c1e: 370c adds r7, #12
  11823. 8004c20: 46bd mov sp, r7
  11824. 8004c22: bc80 pop {r7}
  11825. 8004c24: 4770 bx lr
  11826. 08004c26 <UART_DMAAbortOnError>:
  11827. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11828. * the configuration information for the specified DMA module.
  11829. * @retval None
  11830. */
  11831. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  11832. {
  11833. 8004c26: b580 push {r7, lr}
  11834. 8004c28: b084 sub sp, #16
  11835. 8004c2a: af00 add r7, sp, #0
  11836. 8004c2c: 6078 str r0, [r7, #4]
  11837. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11838. 8004c2e: 687b ldr r3, [r7, #4]
  11839. 8004c30: 6a5b ldr r3, [r3, #36] ; 0x24
  11840. 8004c32: 60fb str r3, [r7, #12]
  11841. huart->RxXferCount = 0x00U;
  11842. 8004c34: 68fb ldr r3, [r7, #12]
  11843. 8004c36: 2200 movs r2, #0
  11844. 8004c38: 85da strh r2, [r3, #46] ; 0x2e
  11845. huart->TxXferCount = 0x00U;
  11846. 8004c3a: 68fb ldr r3, [r7, #12]
  11847. 8004c3c: 2200 movs r2, #0
  11848. 8004c3e: 84da strh r2, [r3, #38] ; 0x26
  11849. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11850. /*Call registered error callback*/
  11851. huart->ErrorCallback(huart);
  11852. #else
  11853. /*Call legacy weak error callback*/
  11854. HAL_UART_ErrorCallback(huart);
  11855. 8004c40: 68f8 ldr r0, [r7, #12]
  11856. 8004c42: f7ff fea8 bl 8004996 <HAL_UART_ErrorCallback>
  11857. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11858. }
  11859. 8004c46: bf00 nop
  11860. 8004c48: 3710 adds r7, #16
  11861. 8004c4a: 46bd mov sp, r7
  11862. 8004c4c: bd80 pop {r7, pc}
  11863. 08004c4e <UART_Transmit_IT>:
  11864. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11865. * the configuration information for the specified UART module.
  11866. * @retval HAL status
  11867. */
  11868. static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart)
  11869. {
  11870. 8004c4e: b480 push {r7}
  11871. 8004c50: b085 sub sp, #20
  11872. 8004c52: af00 add r7, sp, #0
  11873. 8004c54: 6078 str r0, [r7, #4]
  11874. uint16_t *tmp;
  11875. /* Check that a Tx process is ongoing */
  11876. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  11877. 8004c56: 687b ldr r3, [r7, #4]
  11878. 8004c58: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11879. 8004c5c: b2db uxtb r3, r3
  11880. 8004c5e: 2b21 cmp r3, #33 ; 0x21
  11881. 8004c60: d144 bne.n 8004cec <UART_Transmit_IT+0x9e>
  11882. {
  11883. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  11884. 8004c62: 687b ldr r3, [r7, #4]
  11885. 8004c64: 689b ldr r3, [r3, #8]
  11886. 8004c66: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  11887. 8004c6a: d11a bne.n 8004ca2 <UART_Transmit_IT+0x54>
  11888. {
  11889. tmp = (uint16_t *) huart->pTxBuffPtr;
  11890. 8004c6c: 687b ldr r3, [r7, #4]
  11891. 8004c6e: 6a1b ldr r3, [r3, #32]
  11892. 8004c70: 60fb str r3, [r7, #12]
  11893. huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF);
  11894. 8004c72: 68fb ldr r3, [r7, #12]
  11895. 8004c74: 881b ldrh r3, [r3, #0]
  11896. 8004c76: 461a mov r2, r3
  11897. 8004c78: 687b ldr r3, [r7, #4]
  11898. 8004c7a: 681b ldr r3, [r3, #0]
  11899. 8004c7c: f3c2 0208 ubfx r2, r2, #0, #9
  11900. 8004c80: 605a str r2, [r3, #4]
  11901. if (huart->Init.Parity == UART_PARITY_NONE)
  11902. 8004c82: 687b ldr r3, [r7, #4]
  11903. 8004c84: 691b ldr r3, [r3, #16]
  11904. 8004c86: 2b00 cmp r3, #0
  11905. 8004c88: d105 bne.n 8004c96 <UART_Transmit_IT+0x48>
  11906. {
  11907. huart->pTxBuffPtr += 2U;
  11908. 8004c8a: 687b ldr r3, [r7, #4]
  11909. 8004c8c: 6a1b ldr r3, [r3, #32]
  11910. 8004c8e: 1c9a adds r2, r3, #2
  11911. 8004c90: 687b ldr r3, [r7, #4]
  11912. 8004c92: 621a str r2, [r3, #32]
  11913. 8004c94: e00e b.n 8004cb4 <UART_Transmit_IT+0x66>
  11914. }
  11915. else
  11916. {
  11917. huart->pTxBuffPtr += 1U;
  11918. 8004c96: 687b ldr r3, [r7, #4]
  11919. 8004c98: 6a1b ldr r3, [r3, #32]
  11920. 8004c9a: 1c5a adds r2, r3, #1
  11921. 8004c9c: 687b ldr r3, [r7, #4]
  11922. 8004c9e: 621a str r2, [r3, #32]
  11923. 8004ca0: e008 b.n 8004cb4 <UART_Transmit_IT+0x66>
  11924. }
  11925. }
  11926. else
  11927. {
  11928. huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF);
  11929. 8004ca2: 687b ldr r3, [r7, #4]
  11930. 8004ca4: 6a1b ldr r3, [r3, #32]
  11931. 8004ca6: 1c59 adds r1, r3, #1
  11932. 8004ca8: 687a ldr r2, [r7, #4]
  11933. 8004caa: 6211 str r1, [r2, #32]
  11934. 8004cac: 781a ldrb r2, [r3, #0]
  11935. 8004cae: 687b ldr r3, [r7, #4]
  11936. 8004cb0: 681b ldr r3, [r3, #0]
  11937. 8004cb2: 605a str r2, [r3, #4]
  11938. }
  11939. if (--huart->TxXferCount == 0U)
  11940. 8004cb4: 687b ldr r3, [r7, #4]
  11941. 8004cb6: 8cdb ldrh r3, [r3, #38] ; 0x26
  11942. 8004cb8: b29b uxth r3, r3
  11943. 8004cba: 3b01 subs r3, #1
  11944. 8004cbc: b29b uxth r3, r3
  11945. 8004cbe: 687a ldr r2, [r7, #4]
  11946. 8004cc0: 4619 mov r1, r3
  11947. 8004cc2: 84d1 strh r1, [r2, #38] ; 0x26
  11948. 8004cc4: 2b00 cmp r3, #0
  11949. 8004cc6: d10f bne.n 8004ce8 <UART_Transmit_IT+0x9a>
  11950. {
  11951. /* Disable the UART Transmit Complete Interrupt */
  11952. __HAL_UART_DISABLE_IT(huart, UART_IT_TXE);
  11953. 8004cc8: 687b ldr r3, [r7, #4]
  11954. 8004cca: 681b ldr r3, [r3, #0]
  11955. 8004ccc: 68da ldr r2, [r3, #12]
  11956. 8004cce: 687b ldr r3, [r7, #4]
  11957. 8004cd0: 681b ldr r3, [r3, #0]
  11958. 8004cd2: f022 0280 bic.w r2, r2, #128 ; 0x80
  11959. 8004cd6: 60da str r2, [r3, #12]
  11960. /* Enable the UART Transmit Complete Interrupt */
  11961. __HAL_UART_ENABLE_IT(huart, UART_IT_TC);
  11962. 8004cd8: 687b ldr r3, [r7, #4]
  11963. 8004cda: 681b ldr r3, [r3, #0]
  11964. 8004cdc: 68da ldr r2, [r3, #12]
  11965. 8004cde: 687b ldr r3, [r7, #4]
  11966. 8004ce0: 681b ldr r3, [r3, #0]
  11967. 8004ce2: f042 0240 orr.w r2, r2, #64 ; 0x40
  11968. 8004ce6: 60da str r2, [r3, #12]
  11969. }
  11970. return HAL_OK;
  11971. 8004ce8: 2300 movs r3, #0
  11972. 8004cea: e000 b.n 8004cee <UART_Transmit_IT+0xa0>
  11973. }
  11974. else
  11975. {
  11976. return HAL_BUSY;
  11977. 8004cec: 2302 movs r3, #2
  11978. }
  11979. }
  11980. 8004cee: 4618 mov r0, r3
  11981. 8004cf0: 3714 adds r7, #20
  11982. 8004cf2: 46bd mov sp, r7
  11983. 8004cf4: bc80 pop {r7}
  11984. 8004cf6: 4770 bx lr
  11985. 08004cf8 <UART_EndTransmit_IT>:
  11986. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11987. * the configuration information for the specified UART module.
  11988. * @retval HAL status
  11989. */
  11990. static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  11991. {
  11992. 8004cf8: b580 push {r7, lr}
  11993. 8004cfa: b082 sub sp, #8
  11994. 8004cfc: af00 add r7, sp, #0
  11995. 8004cfe: 6078 str r0, [r7, #4]
  11996. /* Disable the UART Transmit Complete Interrupt */
  11997. __HAL_UART_DISABLE_IT(huart, UART_IT_TC);
  11998. 8004d00: 687b ldr r3, [r7, #4]
  11999. 8004d02: 681b ldr r3, [r3, #0]
  12000. 8004d04: 68da ldr r2, [r3, #12]
  12001. 8004d06: 687b ldr r3, [r7, #4]
  12002. 8004d08: 681b ldr r3, [r3, #0]
  12003. 8004d0a: f022 0240 bic.w r2, r2, #64 ; 0x40
  12004. 8004d0e: 60da str r2, [r3, #12]
  12005. /* Tx process is ended, restore huart->gState to Ready */
  12006. huart->gState = HAL_UART_STATE_READY;
  12007. 8004d10: 687b ldr r3, [r7, #4]
  12008. 8004d12: 2220 movs r2, #32
  12009. 8004d14: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12010. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  12011. /*Call registered Tx complete callback*/
  12012. huart->TxCpltCallback(huart);
  12013. #else
  12014. /*Call legacy weak Tx complete callback*/
  12015. HAL_UART_TxCpltCallback(huart);
  12016. 8004d18: 6878 ldr r0, [r7, #4]
  12017. 8004d1a: f7ff fe21 bl 8004960 <HAL_UART_TxCpltCallback>
  12018. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  12019. return HAL_OK;
  12020. 8004d1e: 2300 movs r3, #0
  12021. }
  12022. 8004d20: 4618 mov r0, r3
  12023. 8004d22: 3708 adds r7, #8
  12024. 8004d24: 46bd mov sp, r7
  12025. 8004d26: bd80 pop {r7, pc}
  12026. 08004d28 <UART_Receive_IT>:
  12027. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  12028. * the configuration information for the specified UART module.
  12029. * @retval HAL status
  12030. */
  12031. static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart)
  12032. {
  12033. 8004d28: b580 push {r7, lr}
  12034. 8004d2a: b084 sub sp, #16
  12035. 8004d2c: af00 add r7, sp, #0
  12036. 8004d2e: 6078 str r0, [r7, #4]
  12037. uint16_t *tmp;
  12038. /* Check that a Rx process is ongoing */
  12039. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  12040. 8004d30: 687b ldr r3, [r7, #4]
  12041. 8004d32: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  12042. 8004d36: b2db uxtb r3, r3
  12043. 8004d38: 2b22 cmp r3, #34 ; 0x22
  12044. 8004d3a: d171 bne.n 8004e20 <UART_Receive_IT+0xf8>
  12045. {
  12046. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  12047. 8004d3c: 687b ldr r3, [r7, #4]
  12048. 8004d3e: 689b ldr r3, [r3, #8]
  12049. 8004d40: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  12050. 8004d44: d123 bne.n 8004d8e <UART_Receive_IT+0x66>
  12051. {
  12052. tmp = (uint16_t *) huart->pRxBuffPtr;
  12053. 8004d46: 687b ldr r3, [r7, #4]
  12054. 8004d48: 6a9b ldr r3, [r3, #40] ; 0x28
  12055. 8004d4a: 60fb str r3, [r7, #12]
  12056. if (huart->Init.Parity == UART_PARITY_NONE)
  12057. 8004d4c: 687b ldr r3, [r7, #4]
  12058. 8004d4e: 691b ldr r3, [r3, #16]
  12059. 8004d50: 2b00 cmp r3, #0
  12060. 8004d52: d10e bne.n 8004d72 <UART_Receive_IT+0x4a>
  12061. {
  12062. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF);
  12063. 8004d54: 687b ldr r3, [r7, #4]
  12064. 8004d56: 681b ldr r3, [r3, #0]
  12065. 8004d58: 685b ldr r3, [r3, #4]
  12066. 8004d5a: b29b uxth r3, r3
  12067. 8004d5c: f3c3 0308 ubfx r3, r3, #0, #9
  12068. 8004d60: b29a uxth r2, r3
  12069. 8004d62: 68fb ldr r3, [r7, #12]
  12070. 8004d64: 801a strh r2, [r3, #0]
  12071. huart->pRxBuffPtr += 2U;
  12072. 8004d66: 687b ldr r3, [r7, #4]
  12073. 8004d68: 6a9b ldr r3, [r3, #40] ; 0x28
  12074. 8004d6a: 1c9a adds r2, r3, #2
  12075. 8004d6c: 687b ldr r3, [r7, #4]
  12076. 8004d6e: 629a str r2, [r3, #40] ; 0x28
  12077. 8004d70: e029 b.n 8004dc6 <UART_Receive_IT+0x9e>
  12078. }
  12079. else
  12080. {
  12081. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x00FF);
  12082. 8004d72: 687b ldr r3, [r7, #4]
  12083. 8004d74: 681b ldr r3, [r3, #0]
  12084. 8004d76: 685b ldr r3, [r3, #4]
  12085. 8004d78: b29b uxth r3, r3
  12086. 8004d7a: b2db uxtb r3, r3
  12087. 8004d7c: b29a uxth r2, r3
  12088. 8004d7e: 68fb ldr r3, [r7, #12]
  12089. 8004d80: 801a strh r2, [r3, #0]
  12090. huart->pRxBuffPtr += 1U;
  12091. 8004d82: 687b ldr r3, [r7, #4]
  12092. 8004d84: 6a9b ldr r3, [r3, #40] ; 0x28
  12093. 8004d86: 1c5a adds r2, r3, #1
  12094. 8004d88: 687b ldr r3, [r7, #4]
  12095. 8004d8a: 629a str r2, [r3, #40] ; 0x28
  12096. 8004d8c: e01b b.n 8004dc6 <UART_Receive_IT+0x9e>
  12097. }
  12098. }
  12099. else
  12100. {
  12101. if (huart->Init.Parity == UART_PARITY_NONE)
  12102. 8004d8e: 687b ldr r3, [r7, #4]
  12103. 8004d90: 691b ldr r3, [r3, #16]
  12104. 8004d92: 2b00 cmp r3, #0
  12105. 8004d94: d10a bne.n 8004dac <UART_Receive_IT+0x84>
  12106. {
  12107. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF);
  12108. 8004d96: 687b ldr r3, [r7, #4]
  12109. 8004d98: 681b ldr r3, [r3, #0]
  12110. 8004d9a: 6858 ldr r0, [r3, #4]
  12111. 8004d9c: 687b ldr r3, [r7, #4]
  12112. 8004d9e: 6a9b ldr r3, [r3, #40] ; 0x28
  12113. 8004da0: 1c59 adds r1, r3, #1
  12114. 8004da2: 687a ldr r2, [r7, #4]
  12115. 8004da4: 6291 str r1, [r2, #40] ; 0x28
  12116. 8004da6: b2c2 uxtb r2, r0
  12117. 8004da8: 701a strb r2, [r3, #0]
  12118. 8004daa: e00c b.n 8004dc6 <UART_Receive_IT+0x9e>
  12119. }
  12120. else
  12121. {
  12122. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F);
  12123. 8004dac: 687b ldr r3, [r7, #4]
  12124. 8004dae: 681b ldr r3, [r3, #0]
  12125. 8004db0: 685b ldr r3, [r3, #4]
  12126. 8004db2: b2da uxtb r2, r3
  12127. 8004db4: 687b ldr r3, [r7, #4]
  12128. 8004db6: 6a9b ldr r3, [r3, #40] ; 0x28
  12129. 8004db8: 1c58 adds r0, r3, #1
  12130. 8004dba: 6879 ldr r1, [r7, #4]
  12131. 8004dbc: 6288 str r0, [r1, #40] ; 0x28
  12132. 8004dbe: f002 027f and.w r2, r2, #127 ; 0x7f
  12133. 8004dc2: b2d2 uxtb r2, r2
  12134. 8004dc4: 701a strb r2, [r3, #0]
  12135. }
  12136. }
  12137. if (--huart->RxXferCount == 0U)
  12138. 8004dc6: 687b ldr r3, [r7, #4]
  12139. 8004dc8: 8ddb ldrh r3, [r3, #46] ; 0x2e
  12140. 8004dca: b29b uxth r3, r3
  12141. 8004dcc: 3b01 subs r3, #1
  12142. 8004dce: b29b uxth r3, r3
  12143. 8004dd0: 687a ldr r2, [r7, #4]
  12144. 8004dd2: 4619 mov r1, r3
  12145. 8004dd4: 85d1 strh r1, [r2, #46] ; 0x2e
  12146. 8004dd6: 2b00 cmp r3, #0
  12147. 8004dd8: d120 bne.n 8004e1c <UART_Receive_IT+0xf4>
  12148. {
  12149. /* Disable the UART Data Register not empty Interrupt */
  12150. __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE);
  12151. 8004dda: 687b ldr r3, [r7, #4]
  12152. 8004ddc: 681b ldr r3, [r3, #0]
  12153. 8004dde: 68da ldr r2, [r3, #12]
  12154. 8004de0: 687b ldr r3, [r7, #4]
  12155. 8004de2: 681b ldr r3, [r3, #0]
  12156. 8004de4: f022 0220 bic.w r2, r2, #32
  12157. 8004de8: 60da str r2, [r3, #12]
  12158. /* Disable the UART Parity Error Interrupt */
  12159. __HAL_UART_DISABLE_IT(huart, UART_IT_PE);
  12160. 8004dea: 687b ldr r3, [r7, #4]
  12161. 8004dec: 681b ldr r3, [r3, #0]
  12162. 8004dee: 68da ldr r2, [r3, #12]
  12163. 8004df0: 687b ldr r3, [r7, #4]
  12164. 8004df2: 681b ldr r3, [r3, #0]
  12165. 8004df4: f422 7280 bic.w r2, r2, #256 ; 0x100
  12166. 8004df8: 60da str r2, [r3, #12]
  12167. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  12168. __HAL_UART_DISABLE_IT(huart, UART_IT_ERR);
  12169. 8004dfa: 687b ldr r3, [r7, #4]
  12170. 8004dfc: 681b ldr r3, [r3, #0]
  12171. 8004dfe: 695a ldr r2, [r3, #20]
  12172. 8004e00: 687b ldr r3, [r7, #4]
  12173. 8004e02: 681b ldr r3, [r3, #0]
  12174. 8004e04: f022 0201 bic.w r2, r2, #1
  12175. 8004e08: 615a str r2, [r3, #20]
  12176. /* Rx process is completed, restore huart->RxState to Ready */
  12177. huart->RxState = HAL_UART_STATE_READY;
  12178. 8004e0a: 687b ldr r3, [r7, #4]
  12179. 8004e0c: 2220 movs r2, #32
  12180. 8004e0e: f883 203a strb.w r2, [r3, #58] ; 0x3a
  12181. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  12182. /*Call registered Rx complete callback*/
  12183. huart->RxCpltCallback(huart);
  12184. #else
  12185. /*Call legacy weak Rx complete callback*/
  12186. HAL_UART_RxCpltCallback(huart);
  12187. 8004e12: 6878 ldr r0, [r7, #4]
  12188. 8004e14: f7fc fde0 bl 80019d8 <HAL_UART_RxCpltCallback>
  12189. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  12190. return HAL_OK;
  12191. 8004e18: 2300 movs r3, #0
  12192. 8004e1a: e002 b.n 8004e22 <UART_Receive_IT+0xfa>
  12193. }
  12194. return HAL_OK;
  12195. 8004e1c: 2300 movs r3, #0
  12196. 8004e1e: e000 b.n 8004e22 <UART_Receive_IT+0xfa>
  12197. }
  12198. else
  12199. {
  12200. return HAL_BUSY;
  12201. 8004e20: 2302 movs r3, #2
  12202. }
  12203. }
  12204. 8004e22: 4618 mov r0, r3
  12205. 8004e24: 3710 adds r7, #16
  12206. 8004e26: 46bd mov sp, r7
  12207. 8004e28: bd80 pop {r7, pc}
  12208. ...
  12209. 08004e2c <UART_SetConfig>:
  12210. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  12211. * the configuration information for the specified UART module.
  12212. * @retval None
  12213. */
  12214. static void UART_SetConfig(UART_HandleTypeDef *huart)
  12215. {
  12216. 8004e2c: b580 push {r7, lr}
  12217. 8004e2e: b084 sub sp, #16
  12218. 8004e30: af00 add r7, sp, #0
  12219. 8004e32: 6078 str r0, [r7, #4]
  12220. assert_param(IS_UART_MODE(huart->Init.Mode));
  12221. /*-------------------------- USART CR2 Configuration -----------------------*/
  12222. /* Configure the UART Stop Bits: Set STOP[13:12] bits
  12223. according to huart->Init.StopBits value */
  12224. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  12225. 8004e34: 687b ldr r3, [r7, #4]
  12226. 8004e36: 681b ldr r3, [r3, #0]
  12227. 8004e38: 691b ldr r3, [r3, #16]
  12228. 8004e3a: f423 5140 bic.w r1, r3, #12288 ; 0x3000
  12229. 8004e3e: 687b ldr r3, [r7, #4]
  12230. 8004e40: 68da ldr r2, [r3, #12]
  12231. 8004e42: 687b ldr r3, [r7, #4]
  12232. 8004e44: 681b ldr r3, [r3, #0]
  12233. 8004e46: 430a orrs r2, r1
  12234. 8004e48: 611a str r2, [r3, #16]
  12235. Set PCE and PS bits according to huart->Init.Parity value
  12236. Set TE and RE bits according to huart->Init.Mode value
  12237. Set OVER8 bit according to huart->Init.OverSampling value */
  12238. #if defined(USART_CR1_OVER8)
  12239. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  12240. 8004e4a: 687b ldr r3, [r7, #4]
  12241. 8004e4c: 689a ldr r2, [r3, #8]
  12242. 8004e4e: 687b ldr r3, [r7, #4]
  12243. 8004e50: 691b ldr r3, [r3, #16]
  12244. 8004e52: 431a orrs r2, r3
  12245. 8004e54: 687b ldr r3, [r7, #4]
  12246. 8004e56: 695b ldr r3, [r3, #20]
  12247. 8004e58: 431a orrs r2, r3
  12248. 8004e5a: 687b ldr r3, [r7, #4]
  12249. 8004e5c: 69db ldr r3, [r3, #28]
  12250. 8004e5e: 4313 orrs r3, r2
  12251. 8004e60: 60fb str r3, [r7, #12]
  12252. MODIFY_REG(huart->Instance->CR1,
  12253. 8004e62: 687b ldr r3, [r7, #4]
  12254. 8004e64: 681b ldr r3, [r3, #0]
  12255. 8004e66: 68db ldr r3, [r3, #12]
  12256. 8004e68: f423 4316 bic.w r3, r3, #38400 ; 0x9600
  12257. 8004e6c: f023 030c bic.w r3, r3, #12
  12258. 8004e70: 687a ldr r2, [r7, #4]
  12259. 8004e72: 6812 ldr r2, [r2, #0]
  12260. 8004e74: 68f9 ldr r1, [r7, #12]
  12261. 8004e76: 430b orrs r3, r1
  12262. 8004e78: 60d3 str r3, [r2, #12]
  12263. tmpreg);
  12264. #endif /* USART_CR1_OVER8 */
  12265. /*-------------------------- USART CR3 Configuration -----------------------*/
  12266. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  12267. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  12268. 8004e7a: 687b ldr r3, [r7, #4]
  12269. 8004e7c: 681b ldr r3, [r3, #0]
  12270. 8004e7e: 695b ldr r3, [r3, #20]
  12271. 8004e80: f423 7140 bic.w r1, r3, #768 ; 0x300
  12272. 8004e84: 687b ldr r3, [r7, #4]
  12273. 8004e86: 699a ldr r2, [r3, #24]
  12274. 8004e88: 687b ldr r3, [r7, #4]
  12275. 8004e8a: 681b ldr r3, [r3, #0]
  12276. 8004e8c: 430a orrs r2, r1
  12277. 8004e8e: 615a str r2, [r3, #20]
  12278. #if defined(USART_CR1_OVER8)
  12279. /* Check the Over Sampling */
  12280. if(huart->Init.OverSampling == UART_OVERSAMPLING_8)
  12281. 8004e90: 687b ldr r3, [r7, #4]
  12282. 8004e92: 69db ldr r3, [r3, #28]
  12283. 8004e94: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
  12284. 8004e98: f040 80a5 bne.w 8004fe6 <UART_SetConfig+0x1ba>
  12285. {
  12286. /*-------------------------- USART BRR Configuration ---------------------*/
  12287. if(huart->Instance == USART1)
  12288. 8004e9c: 687b ldr r3, [r7, #4]
  12289. 8004e9e: 681b ldr r3, [r3, #0]
  12290. 8004ea0: 4aa4 ldr r2, [pc, #656] ; (8005134 <UART_SetConfig+0x308>)
  12291. 8004ea2: 4293 cmp r3, r2
  12292. 8004ea4: d14f bne.n 8004f46 <UART_SetConfig+0x11a>
  12293. {
  12294. pclk = HAL_RCC_GetPCLK2Freq();
  12295. 8004ea6: f7fe fe8d bl 8003bc4 <HAL_RCC_GetPCLK2Freq>
  12296. 8004eaa: 60b8 str r0, [r7, #8]
  12297. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  12298. 8004eac: 68ba ldr r2, [r7, #8]
  12299. 8004eae: 4613 mov r3, r2
  12300. 8004eb0: 009b lsls r3, r3, #2
  12301. 8004eb2: 4413 add r3, r2
  12302. 8004eb4: 009a lsls r2, r3, #2
  12303. 8004eb6: 441a add r2, r3
  12304. 8004eb8: 687b ldr r3, [r7, #4]
  12305. 8004eba: 685b ldr r3, [r3, #4]
  12306. 8004ebc: 005b lsls r3, r3, #1
  12307. 8004ebe: fbb2 f3f3 udiv r3, r2, r3
  12308. 8004ec2: 4a9d ldr r2, [pc, #628] ; (8005138 <UART_SetConfig+0x30c>)
  12309. 8004ec4: fba2 2303 umull r2, r3, r2, r3
  12310. 8004ec8: 095b lsrs r3, r3, #5
  12311. 8004eca: 0119 lsls r1, r3, #4
  12312. 8004ecc: 68ba ldr r2, [r7, #8]
  12313. 8004ece: 4613 mov r3, r2
  12314. 8004ed0: 009b lsls r3, r3, #2
  12315. 8004ed2: 4413 add r3, r2
  12316. 8004ed4: 009a lsls r2, r3, #2
  12317. 8004ed6: 441a add r2, r3
  12318. 8004ed8: 687b ldr r3, [r7, #4]
  12319. 8004eda: 685b ldr r3, [r3, #4]
  12320. 8004edc: 005b lsls r3, r3, #1
  12321. 8004ede: fbb2 f2f3 udiv r2, r2, r3
  12322. 8004ee2: 4b95 ldr r3, [pc, #596] ; (8005138 <UART_SetConfig+0x30c>)
  12323. 8004ee4: fba3 0302 umull r0, r3, r3, r2
  12324. 8004ee8: 095b lsrs r3, r3, #5
  12325. 8004eea: 2064 movs r0, #100 ; 0x64
  12326. 8004eec: fb00 f303 mul.w r3, r0, r3
  12327. 8004ef0: 1ad3 subs r3, r2, r3
  12328. 8004ef2: 00db lsls r3, r3, #3
  12329. 8004ef4: 3332 adds r3, #50 ; 0x32
  12330. 8004ef6: 4a90 ldr r2, [pc, #576] ; (8005138 <UART_SetConfig+0x30c>)
  12331. 8004ef8: fba2 2303 umull r2, r3, r2, r3
  12332. 8004efc: 095b lsrs r3, r3, #5
  12333. 8004efe: 005b lsls r3, r3, #1
  12334. 8004f00: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  12335. 8004f04: 4419 add r1, r3
  12336. 8004f06: 68ba ldr r2, [r7, #8]
  12337. 8004f08: 4613 mov r3, r2
  12338. 8004f0a: 009b lsls r3, r3, #2
  12339. 8004f0c: 4413 add r3, r2
  12340. 8004f0e: 009a lsls r2, r3, #2
  12341. 8004f10: 441a add r2, r3
  12342. 8004f12: 687b ldr r3, [r7, #4]
  12343. 8004f14: 685b ldr r3, [r3, #4]
  12344. 8004f16: 005b lsls r3, r3, #1
  12345. 8004f18: fbb2 f2f3 udiv r2, r2, r3
  12346. 8004f1c: 4b86 ldr r3, [pc, #536] ; (8005138 <UART_SetConfig+0x30c>)
  12347. 8004f1e: fba3 0302 umull r0, r3, r3, r2
  12348. 8004f22: 095b lsrs r3, r3, #5
  12349. 8004f24: 2064 movs r0, #100 ; 0x64
  12350. 8004f26: fb00 f303 mul.w r3, r0, r3
  12351. 8004f2a: 1ad3 subs r3, r2, r3
  12352. 8004f2c: 00db lsls r3, r3, #3
  12353. 8004f2e: 3332 adds r3, #50 ; 0x32
  12354. 8004f30: 4a81 ldr r2, [pc, #516] ; (8005138 <UART_SetConfig+0x30c>)
  12355. 8004f32: fba2 2303 umull r2, r3, r2, r3
  12356. 8004f36: 095b lsrs r3, r3, #5
  12357. 8004f38: f003 0207 and.w r2, r3, #7
  12358. 8004f3c: 687b ldr r3, [r7, #4]
  12359. 8004f3e: 681b ldr r3, [r3, #0]
  12360. 8004f40: 440a add r2, r1
  12361. 8004f42: 609a str r2, [r3, #8]
  12362. {
  12363. pclk = HAL_RCC_GetPCLK1Freq();
  12364. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  12365. }
  12366. #endif /* USART_CR1_OVER8 */
  12367. }
  12368. 8004f44: e0f1 b.n 800512a <UART_SetConfig+0x2fe>
  12369. pclk = HAL_RCC_GetPCLK1Freq();
  12370. 8004f46: f7fe fe29 bl 8003b9c <HAL_RCC_GetPCLK1Freq>
  12371. 8004f4a: 60b8 str r0, [r7, #8]
  12372. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  12373. 8004f4c: 68ba ldr r2, [r7, #8]
  12374. 8004f4e: 4613 mov r3, r2
  12375. 8004f50: 009b lsls r3, r3, #2
  12376. 8004f52: 4413 add r3, r2
  12377. 8004f54: 009a lsls r2, r3, #2
  12378. 8004f56: 441a add r2, r3
  12379. 8004f58: 687b ldr r3, [r7, #4]
  12380. 8004f5a: 685b ldr r3, [r3, #4]
  12381. 8004f5c: 005b lsls r3, r3, #1
  12382. 8004f5e: fbb2 f3f3 udiv r3, r2, r3
  12383. 8004f62: 4a75 ldr r2, [pc, #468] ; (8005138 <UART_SetConfig+0x30c>)
  12384. 8004f64: fba2 2303 umull r2, r3, r2, r3
  12385. 8004f68: 095b lsrs r3, r3, #5
  12386. 8004f6a: 0119 lsls r1, r3, #4
  12387. 8004f6c: 68ba ldr r2, [r7, #8]
  12388. 8004f6e: 4613 mov r3, r2
  12389. 8004f70: 009b lsls r3, r3, #2
  12390. 8004f72: 4413 add r3, r2
  12391. 8004f74: 009a lsls r2, r3, #2
  12392. 8004f76: 441a add r2, r3
  12393. 8004f78: 687b ldr r3, [r7, #4]
  12394. 8004f7a: 685b ldr r3, [r3, #4]
  12395. 8004f7c: 005b lsls r3, r3, #1
  12396. 8004f7e: fbb2 f2f3 udiv r2, r2, r3
  12397. 8004f82: 4b6d ldr r3, [pc, #436] ; (8005138 <UART_SetConfig+0x30c>)
  12398. 8004f84: fba3 0302 umull r0, r3, r3, r2
  12399. 8004f88: 095b lsrs r3, r3, #5
  12400. 8004f8a: 2064 movs r0, #100 ; 0x64
  12401. 8004f8c: fb00 f303 mul.w r3, r0, r3
  12402. 8004f90: 1ad3 subs r3, r2, r3
  12403. 8004f92: 00db lsls r3, r3, #3
  12404. 8004f94: 3332 adds r3, #50 ; 0x32
  12405. 8004f96: 4a68 ldr r2, [pc, #416] ; (8005138 <UART_SetConfig+0x30c>)
  12406. 8004f98: fba2 2303 umull r2, r3, r2, r3
  12407. 8004f9c: 095b lsrs r3, r3, #5
  12408. 8004f9e: 005b lsls r3, r3, #1
  12409. 8004fa0: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  12410. 8004fa4: 4419 add r1, r3
  12411. 8004fa6: 68ba ldr r2, [r7, #8]
  12412. 8004fa8: 4613 mov r3, r2
  12413. 8004faa: 009b lsls r3, r3, #2
  12414. 8004fac: 4413 add r3, r2
  12415. 8004fae: 009a lsls r2, r3, #2
  12416. 8004fb0: 441a add r2, r3
  12417. 8004fb2: 687b ldr r3, [r7, #4]
  12418. 8004fb4: 685b ldr r3, [r3, #4]
  12419. 8004fb6: 005b lsls r3, r3, #1
  12420. 8004fb8: fbb2 f2f3 udiv r2, r2, r3
  12421. 8004fbc: 4b5e ldr r3, [pc, #376] ; (8005138 <UART_SetConfig+0x30c>)
  12422. 8004fbe: fba3 0302 umull r0, r3, r3, r2
  12423. 8004fc2: 095b lsrs r3, r3, #5
  12424. 8004fc4: 2064 movs r0, #100 ; 0x64
  12425. 8004fc6: fb00 f303 mul.w r3, r0, r3
  12426. 8004fca: 1ad3 subs r3, r2, r3
  12427. 8004fcc: 00db lsls r3, r3, #3
  12428. 8004fce: 3332 adds r3, #50 ; 0x32
  12429. 8004fd0: 4a59 ldr r2, [pc, #356] ; (8005138 <UART_SetConfig+0x30c>)
  12430. 8004fd2: fba2 2303 umull r2, r3, r2, r3
  12431. 8004fd6: 095b lsrs r3, r3, #5
  12432. 8004fd8: f003 0207 and.w r2, r3, #7
  12433. 8004fdc: 687b ldr r3, [r7, #4]
  12434. 8004fde: 681b ldr r3, [r3, #0]
  12435. 8004fe0: 440a add r2, r1
  12436. 8004fe2: 609a str r2, [r3, #8]
  12437. }
  12438. 8004fe4: e0a1 b.n 800512a <UART_SetConfig+0x2fe>
  12439. if(huart->Instance == USART1)
  12440. 8004fe6: 687b ldr r3, [r7, #4]
  12441. 8004fe8: 681b ldr r3, [r3, #0]
  12442. 8004fea: 4a52 ldr r2, [pc, #328] ; (8005134 <UART_SetConfig+0x308>)
  12443. 8004fec: 4293 cmp r3, r2
  12444. 8004fee: d14e bne.n 800508e <UART_SetConfig+0x262>
  12445. pclk = HAL_RCC_GetPCLK2Freq();
  12446. 8004ff0: f7fe fde8 bl 8003bc4 <HAL_RCC_GetPCLK2Freq>
  12447. 8004ff4: 60b8 str r0, [r7, #8]
  12448. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  12449. 8004ff6: 68ba ldr r2, [r7, #8]
  12450. 8004ff8: 4613 mov r3, r2
  12451. 8004ffa: 009b lsls r3, r3, #2
  12452. 8004ffc: 4413 add r3, r2
  12453. 8004ffe: 009a lsls r2, r3, #2
  12454. 8005000: 441a add r2, r3
  12455. 8005002: 687b ldr r3, [r7, #4]
  12456. 8005004: 685b ldr r3, [r3, #4]
  12457. 8005006: 009b lsls r3, r3, #2
  12458. 8005008: fbb2 f3f3 udiv r3, r2, r3
  12459. 800500c: 4a4a ldr r2, [pc, #296] ; (8005138 <UART_SetConfig+0x30c>)
  12460. 800500e: fba2 2303 umull r2, r3, r2, r3
  12461. 8005012: 095b lsrs r3, r3, #5
  12462. 8005014: 0119 lsls r1, r3, #4
  12463. 8005016: 68ba ldr r2, [r7, #8]
  12464. 8005018: 4613 mov r3, r2
  12465. 800501a: 009b lsls r3, r3, #2
  12466. 800501c: 4413 add r3, r2
  12467. 800501e: 009a lsls r2, r3, #2
  12468. 8005020: 441a add r2, r3
  12469. 8005022: 687b ldr r3, [r7, #4]
  12470. 8005024: 685b ldr r3, [r3, #4]
  12471. 8005026: 009b lsls r3, r3, #2
  12472. 8005028: fbb2 f2f3 udiv r2, r2, r3
  12473. 800502c: 4b42 ldr r3, [pc, #264] ; (8005138 <UART_SetConfig+0x30c>)
  12474. 800502e: fba3 0302 umull r0, r3, r3, r2
  12475. 8005032: 095b lsrs r3, r3, #5
  12476. 8005034: 2064 movs r0, #100 ; 0x64
  12477. 8005036: fb00 f303 mul.w r3, r0, r3
  12478. 800503a: 1ad3 subs r3, r2, r3
  12479. 800503c: 011b lsls r3, r3, #4
  12480. 800503e: 3332 adds r3, #50 ; 0x32
  12481. 8005040: 4a3d ldr r2, [pc, #244] ; (8005138 <UART_SetConfig+0x30c>)
  12482. 8005042: fba2 2303 umull r2, r3, r2, r3
  12483. 8005046: 095b lsrs r3, r3, #5
  12484. 8005048: f003 03f0 and.w r3, r3, #240 ; 0xf0
  12485. 800504c: 4419 add r1, r3
  12486. 800504e: 68ba ldr r2, [r7, #8]
  12487. 8005050: 4613 mov r3, r2
  12488. 8005052: 009b lsls r3, r3, #2
  12489. 8005054: 4413 add r3, r2
  12490. 8005056: 009a lsls r2, r3, #2
  12491. 8005058: 441a add r2, r3
  12492. 800505a: 687b ldr r3, [r7, #4]
  12493. 800505c: 685b ldr r3, [r3, #4]
  12494. 800505e: 009b lsls r3, r3, #2
  12495. 8005060: fbb2 f2f3 udiv r2, r2, r3
  12496. 8005064: 4b34 ldr r3, [pc, #208] ; (8005138 <UART_SetConfig+0x30c>)
  12497. 8005066: fba3 0302 umull r0, r3, r3, r2
  12498. 800506a: 095b lsrs r3, r3, #5
  12499. 800506c: 2064 movs r0, #100 ; 0x64
  12500. 800506e: fb00 f303 mul.w r3, r0, r3
  12501. 8005072: 1ad3 subs r3, r2, r3
  12502. 8005074: 011b lsls r3, r3, #4
  12503. 8005076: 3332 adds r3, #50 ; 0x32
  12504. 8005078: 4a2f ldr r2, [pc, #188] ; (8005138 <UART_SetConfig+0x30c>)
  12505. 800507a: fba2 2303 umull r2, r3, r2, r3
  12506. 800507e: 095b lsrs r3, r3, #5
  12507. 8005080: f003 020f and.w r2, r3, #15
  12508. 8005084: 687b ldr r3, [r7, #4]
  12509. 8005086: 681b ldr r3, [r3, #0]
  12510. 8005088: 440a add r2, r1
  12511. 800508a: 609a str r2, [r3, #8]
  12512. }
  12513. 800508c: e04d b.n 800512a <UART_SetConfig+0x2fe>
  12514. pclk = HAL_RCC_GetPCLK1Freq();
  12515. 800508e: f7fe fd85 bl 8003b9c <HAL_RCC_GetPCLK1Freq>
  12516. 8005092: 60b8 str r0, [r7, #8]
  12517. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  12518. 8005094: 68ba ldr r2, [r7, #8]
  12519. 8005096: 4613 mov r3, r2
  12520. 8005098: 009b lsls r3, r3, #2
  12521. 800509a: 4413 add r3, r2
  12522. 800509c: 009a lsls r2, r3, #2
  12523. 800509e: 441a add r2, r3
  12524. 80050a0: 687b ldr r3, [r7, #4]
  12525. 80050a2: 685b ldr r3, [r3, #4]
  12526. 80050a4: 009b lsls r3, r3, #2
  12527. 80050a6: fbb2 f3f3 udiv r3, r2, r3
  12528. 80050aa: 4a23 ldr r2, [pc, #140] ; (8005138 <UART_SetConfig+0x30c>)
  12529. 80050ac: fba2 2303 umull r2, r3, r2, r3
  12530. 80050b0: 095b lsrs r3, r3, #5
  12531. 80050b2: 0119 lsls r1, r3, #4
  12532. 80050b4: 68ba ldr r2, [r7, #8]
  12533. 80050b6: 4613 mov r3, r2
  12534. 80050b8: 009b lsls r3, r3, #2
  12535. 80050ba: 4413 add r3, r2
  12536. 80050bc: 009a lsls r2, r3, #2
  12537. 80050be: 441a add r2, r3
  12538. 80050c0: 687b ldr r3, [r7, #4]
  12539. 80050c2: 685b ldr r3, [r3, #4]
  12540. 80050c4: 009b lsls r3, r3, #2
  12541. 80050c6: fbb2 f2f3 udiv r2, r2, r3
  12542. 80050ca: 4b1b ldr r3, [pc, #108] ; (8005138 <UART_SetConfig+0x30c>)
  12543. 80050cc: fba3 0302 umull r0, r3, r3, r2
  12544. 80050d0: 095b lsrs r3, r3, #5
  12545. 80050d2: 2064 movs r0, #100 ; 0x64
  12546. 80050d4: fb00 f303 mul.w r3, r0, r3
  12547. 80050d8: 1ad3 subs r3, r2, r3
  12548. 80050da: 011b lsls r3, r3, #4
  12549. 80050dc: 3332 adds r3, #50 ; 0x32
  12550. 80050de: 4a16 ldr r2, [pc, #88] ; (8005138 <UART_SetConfig+0x30c>)
  12551. 80050e0: fba2 2303 umull r2, r3, r2, r3
  12552. 80050e4: 095b lsrs r3, r3, #5
  12553. 80050e6: f003 03f0 and.w r3, r3, #240 ; 0xf0
  12554. 80050ea: 4419 add r1, r3
  12555. 80050ec: 68ba ldr r2, [r7, #8]
  12556. 80050ee: 4613 mov r3, r2
  12557. 80050f0: 009b lsls r3, r3, #2
  12558. 80050f2: 4413 add r3, r2
  12559. 80050f4: 009a lsls r2, r3, #2
  12560. 80050f6: 441a add r2, r3
  12561. 80050f8: 687b ldr r3, [r7, #4]
  12562. 80050fa: 685b ldr r3, [r3, #4]
  12563. 80050fc: 009b lsls r3, r3, #2
  12564. 80050fe: fbb2 f2f3 udiv r2, r2, r3
  12565. 8005102: 4b0d ldr r3, [pc, #52] ; (8005138 <UART_SetConfig+0x30c>)
  12566. 8005104: fba3 0302 umull r0, r3, r3, r2
  12567. 8005108: 095b lsrs r3, r3, #5
  12568. 800510a: 2064 movs r0, #100 ; 0x64
  12569. 800510c: fb00 f303 mul.w r3, r0, r3
  12570. 8005110: 1ad3 subs r3, r2, r3
  12571. 8005112: 011b lsls r3, r3, #4
  12572. 8005114: 3332 adds r3, #50 ; 0x32
  12573. 8005116: 4a08 ldr r2, [pc, #32] ; (8005138 <UART_SetConfig+0x30c>)
  12574. 8005118: fba2 2303 umull r2, r3, r2, r3
  12575. 800511c: 095b lsrs r3, r3, #5
  12576. 800511e: f003 020f and.w r2, r3, #15
  12577. 8005122: 687b ldr r3, [r7, #4]
  12578. 8005124: 681b ldr r3, [r3, #0]
  12579. 8005126: 440a add r2, r1
  12580. 8005128: 609a str r2, [r3, #8]
  12581. }
  12582. 800512a: bf00 nop
  12583. 800512c: 3710 adds r7, #16
  12584. 800512e: 46bd mov sp, r7
  12585. 8005130: bd80 pop {r7, pc}
  12586. 8005132: bf00 nop
  12587. 8005134: 40013800 .word 0x40013800
  12588. 8005138: 51eb851f .word 0x51eb851f
  12589. 0800513c <_write>:
  12590. /* USER CODE END PFP */
  12591. /* Private user code ---------------------------------------------------------*/
  12592. /* USER CODE BEGIN 0 */
  12593. int _write (int file, uint8_t *ptr, uint16_t len)
  12594. {
  12595. 800513c: b580 push {r7, lr}
  12596. 800513e: b084 sub sp, #16
  12597. 8005140: af00 add r7, sp, #0
  12598. 8005142: 60f8 str r0, [r7, #12]
  12599. 8005144: 60b9 str r1, [r7, #8]
  12600. 8005146: 4613 mov r3, r2
  12601. 8005148: 80fb strh r3, [r7, #6]
  12602. #if 0 // PYJ.2020.06.03_BEGIN --
  12603. HAL_UART_Transmit(&hTest, ptr, len,10);
  12604. #else
  12605. HAL_UART_Transmit(&hTerminal, ptr, len,10);
  12606. 800514a: 88fa ldrh r2, [r7, #6]
  12607. 800514c: 230a movs r3, #10
  12608. 800514e: 68b9 ldr r1, [r7, #8]
  12609. 8005150: 4803 ldr r0, [pc, #12] ; (8005160 <_write+0x24>)
  12610. 8005152: f7ff f930 bl 80043b6 <HAL_UART_Transmit>
  12611. #endif // PYJ.2020.06.03_END --
  12612. return len;
  12613. 8005156: 88fb ldrh r3, [r7, #6]
  12614. }
  12615. 8005158: 4618 mov r0, r3
  12616. 800515a: 3710 adds r7, #16
  12617. 800515c: 46bd mov sp, r7
  12618. 800515e: bd80 pop {r7, pc}
  12619. 8005160: 20000954 .word 0x20000954
  12620. 08005164 <main>:
  12621. /**
  12622. * @brief The application entry point.
  12623. * @retval int
  12624. */
  12625. int main(void)
  12626. {
  12627. 8005164: b580 push {r7, lr}
  12628. 8005166: af00 add r7, sp, #0
  12629. /* USER CODE END 1 */
  12630. /* MCU Configuration--------------------------------------------------------*/
  12631. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  12632. HAL_Init();
  12633. 8005168: f7fc fd60 bl 8001c2c <HAL_Init>
  12634. /* USER CODE BEGIN Init */
  12635. /* USER CODE END Init */
  12636. /* Configure the system clock */
  12637. SystemClock_Config();
  12638. 800516c: f000 f846 bl 80051fc <SystemClock_Config>
  12639. /* USER CODE BEGIN SysInit */
  12640. /* USER CODE END SysInit */
  12641. /* Initialize all configured peripherals */
  12642. MX_GPIO_Init();
  12643. 8005170: f000 f9e0 bl 8005534 <MX_GPIO_Init>
  12644. MX_DMA_Init();
  12645. 8005174: f000 f9c8 bl 8005508 <MX_DMA_Init>
  12646. MX_ADC1_Init();
  12647. 8005178: f000 f8e0 bl 800533c <MX_ADC1_Init>
  12648. MX_TIM6_Init();
  12649. 800517c: f000 f93a bl 80053f4 <MX_TIM6_Init>
  12650. MX_USART1_UART_Init();
  12651. 8005180: f000 f96e bl 8005460 <MX_USART1_UART_Init>
  12652. MX_USART3_UART_Init();
  12653. 8005184: f000 f996 bl 80054b4 <MX_USART3_UART_Init>
  12654. /* Initialize interrupts */
  12655. MX_NVIC_Init();
  12656. 8005188: f000 f88c bl 80052a4 <MX_NVIC_Init>
  12657. /* USER CODE BEGIN 2 */
  12658. HAL_TIM_Base_Start_IT(&htim6);
  12659. 800518c: 4812 ldr r0, [pc, #72] ; (80051d8 <main+0x74>)
  12660. 800518e: f7fe fea0 bl 8003ed2 <HAL_TIM_Base_Start_IT>
  12661. setbuf(stdout, NULL);
  12662. 8005192: 4b12 ldr r3, [pc, #72] ; (80051dc <main+0x78>)
  12663. 8005194: 681b ldr r3, [r3, #0]
  12664. 8005196: 689b ldr r3, [r3, #8]
  12665. 8005198: 2100 movs r1, #0
  12666. 800519a: 4618 mov r0, r3
  12667. 800519c: f001 fba6 bl 80068ec <setbuf>
  12668. InitUartQueue(&MainQueue);
  12669. 80051a0: 480f ldr r0, [pc, #60] ; (80051e0 <main+0x7c>)
  12670. 80051a2: f7fc fbf1 bl 8001988 <InitUartQueue>
  12671. ADC_Initialize();
  12672. 80051a6: f7fc f917 bl 80013d8 <ADC_Initialize>
  12673. #if 1 // PYJ.2020.05.06_BEGIN --
  12674. printf("****************************************\r\n");
  12675. 80051aa: 480e ldr r0, [pc, #56] ; (80051e4 <main+0x80>)
  12676. 80051ac: f001 fb96 bl 80068dc <puts>
  12677. printf("NESSLAB Project\r\n");
  12678. 80051b0: 480d ldr r0, [pc, #52] ; (80051e8 <main+0x84>)
  12679. 80051b2: f001 fb93 bl 80068dc <puts>
  12680. printf("Build at %s %s\r\n", __DATE__, __TIME__);
  12681. 80051b6: 4a0d ldr r2, [pc, #52] ; (80051ec <main+0x88>)
  12682. 80051b8: 490d ldr r1, [pc, #52] ; (80051f0 <main+0x8c>)
  12683. 80051ba: 480e ldr r0, [pc, #56] ; (80051f4 <main+0x90>)
  12684. 80051bc: f001 fb1a bl 80067f4 <iprintf>
  12685. printf("Copyright (c) 2020. BLUECELL\r\n");
  12686. 80051c0: 480d ldr r0, [pc, #52] ; (80051f8 <main+0x94>)
  12687. 80051c2: f001 fb8b bl 80068dc <puts>
  12688. printf("****************************************\r\n");
  12689. 80051c6: 4807 ldr r0, [pc, #28] ; (80051e4 <main+0x80>)
  12690. 80051c8: f001 fb88 bl 80068dc <puts>
  12691. while (1)
  12692. {
  12693. #if 1 // PYJ.2020.08.31_BEGIN --
  12694. Boot_LED_Toggle(); /*LED Check*/
  12695. 80051cc: f7fc fbc4 bl 8001958 <Boot_LED_Toggle>
  12696. Uart_Check(); /*Usart Rx*/
  12697. 80051d0: f7fc fce6 bl 8001ba0 <Uart_Check>
  12698. Boot_LED_Toggle(); /*LED Check*/
  12699. 80051d4: e7fa b.n 80051cc <main+0x68>
  12700. 80051d6: bf00 nop
  12701. 80051d8: 20000b14 .word 0x20000b14
  12702. 80051dc: 2000000c .word 0x2000000c
  12703. 80051e0: 2000074c .word 0x2000074c
  12704. 80051e4: 08008b0c .word 0x08008b0c
  12705. 80051e8: 08008b38 .word 0x08008b38
  12706. 80051ec: 08008b4c .word 0x08008b4c
  12707. 80051f0: 08008b58 .word 0x08008b58
  12708. 80051f4: 08008b64 .word 0x08008b64
  12709. 80051f8: 08008b78 .word 0x08008b78
  12710. 080051fc <SystemClock_Config>:
  12711. /**
  12712. * @brief System Clock Configuration
  12713. * @retval None
  12714. */
  12715. void SystemClock_Config(void)
  12716. {
  12717. 80051fc: b580 push {r7, lr}
  12718. 80051fe: b092 sub sp, #72 ; 0x48
  12719. 8005200: af00 add r7, sp, #0
  12720. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  12721. 8005202: f107 0320 add.w r3, r7, #32
  12722. 8005206: 2228 movs r2, #40 ; 0x28
  12723. 8005208: 2100 movs r1, #0
  12724. 800520a: 4618 mov r0, r3
  12725. 800520c: f000 fe9a bl 8005f44 <memset>
  12726. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  12727. 8005210: f107 030c add.w r3, r7, #12
  12728. 8005214: 2200 movs r2, #0
  12729. 8005216: 601a str r2, [r3, #0]
  12730. 8005218: 605a str r2, [r3, #4]
  12731. 800521a: 609a str r2, [r3, #8]
  12732. 800521c: 60da str r2, [r3, #12]
  12733. 800521e: 611a str r2, [r3, #16]
  12734. RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  12735. 8005220: 463b mov r3, r7
  12736. 8005222: 2200 movs r2, #0
  12737. 8005224: 601a str r2, [r3, #0]
  12738. 8005226: 605a str r2, [r3, #4]
  12739. 8005228: 609a str r2, [r3, #8]
  12740. /** Initializes the CPU, AHB and APB busses clocks
  12741. */
  12742. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
  12743. 800522a: 2302 movs r3, #2
  12744. 800522c: 623b str r3, [r7, #32]
  12745. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  12746. 800522e: 2301 movs r3, #1
  12747. 8005230: 633b str r3, [r7, #48] ; 0x30
  12748. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  12749. 8005232: 2310 movs r3, #16
  12750. 8005234: 637b str r3, [r7, #52] ; 0x34
  12751. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  12752. 8005236: 2302 movs r3, #2
  12753. 8005238: 63fb str r3, [r7, #60] ; 0x3c
  12754. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI_DIV2;
  12755. 800523a: 2300 movs r3, #0
  12756. 800523c: 643b str r3, [r7, #64] ; 0x40
  12757. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
  12758. 800523e: f44f 1380 mov.w r3, #1048576 ; 0x100000
  12759. 8005242: 647b str r3, [r7, #68] ; 0x44
  12760. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  12761. 8005244: f107 0320 add.w r3, r7, #32
  12762. 8005248: 4618 mov r0, r3
  12763. 800524a: f7fe f901 bl 8003450 <HAL_RCC_OscConfig>
  12764. 800524e: 4603 mov r3, r0
  12765. 8005250: 2b00 cmp r3, #0
  12766. 8005252: d001 beq.n 8005258 <SystemClock_Config+0x5c>
  12767. {
  12768. Error_Handler();
  12769. 8005254: f000 faa8 bl 80057a8 <Error_Handler>
  12770. }
  12771. /** Initializes the CPU, AHB and APB busses clocks
  12772. */
  12773. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  12774. 8005258: 230f movs r3, #15
  12775. 800525a: 60fb str r3, [r7, #12]
  12776. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  12777. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  12778. 800525c: 2302 movs r3, #2
  12779. 800525e: 613b str r3, [r7, #16]
  12780. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  12781. 8005260: 2300 movs r3, #0
  12782. 8005262: 617b str r3, [r7, #20]
  12783. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  12784. 8005264: 2300 movs r3, #0
  12785. 8005266: 61bb str r3, [r7, #24]
  12786. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  12787. 8005268: 2300 movs r3, #0
  12788. 800526a: 61fb str r3, [r7, #28]
  12789. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
  12790. 800526c: f107 030c add.w r3, r7, #12
  12791. 8005270: 2100 movs r1, #0
  12792. 8005272: 4618 mov r0, r3
  12793. 8005274: f7fe fb6c bl 8003950 <HAL_RCC_ClockConfig>
  12794. 8005278: 4603 mov r3, r0
  12795. 800527a: 2b00 cmp r3, #0
  12796. 800527c: d001 beq.n 8005282 <SystemClock_Config+0x86>
  12797. {
  12798. Error_Handler();
  12799. 800527e: f000 fa93 bl 80057a8 <Error_Handler>
  12800. }
  12801. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  12802. 8005282: 2302 movs r3, #2
  12803. 8005284: 603b str r3, [r7, #0]
  12804. PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV2;
  12805. 8005286: 2300 movs r3, #0
  12806. 8005288: 60bb str r3, [r7, #8]
  12807. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  12808. 800528a: 463b mov r3, r7
  12809. 800528c: 4618 mov r0, r3
  12810. 800528e: f7fe fcf7 bl 8003c80 <HAL_RCCEx_PeriphCLKConfig>
  12811. 8005292: 4603 mov r3, r0
  12812. 8005294: 2b00 cmp r3, #0
  12813. 8005296: d001 beq.n 800529c <SystemClock_Config+0xa0>
  12814. {
  12815. Error_Handler();
  12816. 8005298: f000 fa86 bl 80057a8 <Error_Handler>
  12817. }
  12818. }
  12819. 800529c: bf00 nop
  12820. 800529e: 3748 adds r7, #72 ; 0x48
  12821. 80052a0: 46bd mov sp, r7
  12822. 80052a2: bd80 pop {r7, pc}
  12823. 080052a4 <MX_NVIC_Init>:
  12824. /**
  12825. * @brief NVIC Configuration.
  12826. * @retval None
  12827. */
  12828. static void MX_NVIC_Init(void)
  12829. {
  12830. 80052a4: b580 push {r7, lr}
  12831. 80052a6: af00 add r7, sp, #0
  12832. /* ADC1_IRQn interrupt configuration */
  12833. HAL_NVIC_SetPriority(ADC1_IRQn, 0, 0);
  12834. 80052a8: 2200 movs r2, #0
  12835. 80052aa: 2100 movs r1, #0
  12836. 80052ac: 2012 movs r0, #18
  12837. 80052ae: f7fd fa9e bl 80027ee <HAL_NVIC_SetPriority>
  12838. HAL_NVIC_EnableIRQ(ADC1_IRQn);
  12839. 80052b2: 2012 movs r0, #18
  12840. 80052b4: f7fd fab7 bl 8002826 <HAL_NVIC_EnableIRQ>
  12841. /* USART1_IRQn interrupt configuration */
  12842. HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
  12843. 80052b8: 2200 movs r2, #0
  12844. 80052ba: 2100 movs r1, #0
  12845. 80052bc: 2025 movs r0, #37 ; 0x25
  12846. 80052be: f7fd fa96 bl 80027ee <HAL_NVIC_SetPriority>
  12847. HAL_NVIC_EnableIRQ(USART1_IRQn);
  12848. 80052c2: 2025 movs r0, #37 ; 0x25
  12849. 80052c4: f7fd faaf bl 8002826 <HAL_NVIC_EnableIRQ>
  12850. /* USART3_IRQn interrupt configuration */
  12851. HAL_NVIC_SetPriority(USART3_IRQn, 0, 0);
  12852. 80052c8: 2200 movs r2, #0
  12853. 80052ca: 2100 movs r1, #0
  12854. 80052cc: 2027 movs r0, #39 ; 0x27
  12855. 80052ce: f7fd fa8e bl 80027ee <HAL_NVIC_SetPriority>
  12856. HAL_NVIC_EnableIRQ(USART3_IRQn);
  12857. 80052d2: 2027 movs r0, #39 ; 0x27
  12858. 80052d4: f7fd faa7 bl 8002826 <HAL_NVIC_EnableIRQ>
  12859. /* TIM6_DAC_IRQn interrupt configuration */
  12860. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 0, 0);
  12861. 80052d8: 2200 movs r2, #0
  12862. 80052da: 2100 movs r1, #0
  12863. 80052dc: 2036 movs r0, #54 ; 0x36
  12864. 80052de: f7fd fa86 bl 80027ee <HAL_NVIC_SetPriority>
  12865. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  12866. 80052e2: 2036 movs r0, #54 ; 0x36
  12867. 80052e4: f7fd fa9f bl 8002826 <HAL_NVIC_EnableIRQ>
  12868. /* DMA1_Channel2_IRQn interrupt configuration */
  12869. HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0);
  12870. 80052e8: 2200 movs r2, #0
  12871. 80052ea: 2100 movs r1, #0
  12872. 80052ec: 200c movs r0, #12
  12873. 80052ee: f7fd fa7e bl 80027ee <HAL_NVIC_SetPriority>
  12874. HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn);
  12875. 80052f2: 200c movs r0, #12
  12876. 80052f4: f7fd fa97 bl 8002826 <HAL_NVIC_EnableIRQ>
  12877. /* DMA1_Channel4_IRQn interrupt configuration */
  12878. HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0);
  12879. 80052f8: 2200 movs r2, #0
  12880. 80052fa: 2100 movs r1, #0
  12881. 80052fc: 200e movs r0, #14
  12882. 80052fe: f7fd fa76 bl 80027ee <HAL_NVIC_SetPriority>
  12883. HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn);
  12884. 8005302: 200e movs r0, #14
  12885. 8005304: f7fd fa8f bl 8002826 <HAL_NVIC_EnableIRQ>
  12886. /* DMA1_Channel3_IRQn interrupt configuration */
  12887. HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0);
  12888. 8005308: 2200 movs r2, #0
  12889. 800530a: 2100 movs r1, #0
  12890. 800530c: 200d movs r0, #13
  12891. 800530e: f7fd fa6e bl 80027ee <HAL_NVIC_SetPriority>
  12892. HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn);
  12893. 8005312: 200d movs r0, #13
  12894. 8005314: f7fd fa87 bl 8002826 <HAL_NVIC_EnableIRQ>
  12895. /* DMA1_Channel1_IRQn interrupt configuration */
  12896. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  12897. 8005318: 2200 movs r2, #0
  12898. 800531a: 2100 movs r1, #0
  12899. 800531c: 200b movs r0, #11
  12900. 800531e: f7fd fa66 bl 80027ee <HAL_NVIC_SetPriority>
  12901. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  12902. 8005322: 200b movs r0, #11
  12903. 8005324: f7fd fa7f bl 8002826 <HAL_NVIC_EnableIRQ>
  12904. /* DMA1_Channel5_IRQn interrupt configuration */
  12905. HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 0, 0);
  12906. 8005328: 2200 movs r2, #0
  12907. 800532a: 2100 movs r1, #0
  12908. 800532c: 200f movs r0, #15
  12909. 800532e: f7fd fa5e bl 80027ee <HAL_NVIC_SetPriority>
  12910. HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn);
  12911. 8005332: 200f movs r0, #15
  12912. 8005334: f7fd fa77 bl 8002826 <HAL_NVIC_EnableIRQ>
  12913. }
  12914. 8005338: bf00 nop
  12915. 800533a: bd80 pop {r7, pc}
  12916. 0800533c <MX_ADC1_Init>:
  12917. * @brief ADC1 Initialization Function
  12918. * @param None
  12919. * @retval None
  12920. */
  12921. static void MX_ADC1_Init(void)
  12922. {
  12923. 800533c: b580 push {r7, lr}
  12924. 800533e: b084 sub sp, #16
  12925. 8005340: af00 add r7, sp, #0
  12926. /* USER CODE BEGIN ADC1_Init 0 */
  12927. /* USER CODE END ADC1_Init 0 */
  12928. ADC_ChannelConfTypeDef sConfig = {0};
  12929. 8005342: 1d3b adds r3, r7, #4
  12930. 8005344: 2200 movs r2, #0
  12931. 8005346: 601a str r2, [r3, #0]
  12932. 8005348: 605a str r2, [r3, #4]
  12933. 800534a: 609a str r2, [r3, #8]
  12934. /* USER CODE BEGIN ADC1_Init 1 */
  12935. /* USER CODE END ADC1_Init 1 */
  12936. /** Common config
  12937. */
  12938. hadc1.Instance = ADC1;
  12939. 800534c: 4b27 ldr r3, [pc, #156] ; (80053ec <MX_ADC1_Init+0xb0>)
  12940. 800534e: 4a28 ldr r2, [pc, #160] ; (80053f0 <MX_ADC1_Init+0xb4>)
  12941. 8005350: 601a str r2, [r3, #0]
  12942. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  12943. 8005352: 4b26 ldr r3, [pc, #152] ; (80053ec <MX_ADC1_Init+0xb0>)
  12944. 8005354: f44f 7280 mov.w r2, #256 ; 0x100
  12945. 8005358: 609a str r2, [r3, #8]
  12946. hadc1.Init.ContinuousConvMode = ENABLE;
  12947. 800535a: 4b24 ldr r3, [pc, #144] ; (80053ec <MX_ADC1_Init+0xb0>)
  12948. 800535c: 2201 movs r2, #1
  12949. 800535e: 731a strb r2, [r3, #12]
  12950. hadc1.Init.DiscontinuousConvMode = DISABLE;
  12951. 8005360: 4b22 ldr r3, [pc, #136] ; (80053ec <MX_ADC1_Init+0xb0>)
  12952. 8005362: 2200 movs r2, #0
  12953. 8005364: 751a strb r2, [r3, #20]
  12954. hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  12955. 8005366: 4b21 ldr r3, [pc, #132] ; (80053ec <MX_ADC1_Init+0xb0>)
  12956. 8005368: f44f 2260 mov.w r2, #917504 ; 0xe0000
  12957. 800536c: 61da str r2, [r3, #28]
  12958. hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  12959. 800536e: 4b1f ldr r3, [pc, #124] ; (80053ec <MX_ADC1_Init+0xb0>)
  12960. 8005370: 2200 movs r2, #0
  12961. 8005372: 605a str r2, [r3, #4]
  12962. hadc1.Init.NbrOfConversion = 3;
  12963. 8005374: 4b1d ldr r3, [pc, #116] ; (80053ec <MX_ADC1_Init+0xb0>)
  12964. 8005376: 2203 movs r2, #3
  12965. 8005378: 611a str r2, [r3, #16]
  12966. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  12967. 800537a: 481c ldr r0, [pc, #112] ; (80053ec <MX_ADC1_Init+0xb0>)
  12968. 800537c: f7fc fca2 bl 8001cc4 <HAL_ADC_Init>
  12969. 8005380: 4603 mov r3, r0
  12970. 8005382: 2b00 cmp r3, #0
  12971. 8005384: d001 beq.n 800538a <MX_ADC1_Init+0x4e>
  12972. {
  12973. Error_Handler();
  12974. 8005386: f000 fa0f bl 80057a8 <Error_Handler>
  12975. }
  12976. /** Configure Regular Channel
  12977. */
  12978. sConfig.Channel = ADC_CHANNEL_0;
  12979. 800538a: 2300 movs r3, #0
  12980. 800538c: 607b str r3, [r7, #4]
  12981. sConfig.Rank = ADC_REGULAR_RANK_1;
  12982. 800538e: 2301 movs r3, #1
  12983. 8005390: 60bb str r3, [r7, #8]
  12984. sConfig.SamplingTime = ADC_SAMPLETIME_239CYCLES_5;
  12985. 8005392: 2307 movs r3, #7
  12986. 8005394: 60fb str r3, [r7, #12]
  12987. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12988. 8005396: 1d3b adds r3, r7, #4
  12989. 8005398: 4619 mov r1, r3
  12990. 800539a: 4814 ldr r0, [pc, #80] ; (80053ec <MX_ADC1_Init+0xb0>)
  12991. 800539c: f7fc fee2 bl 8002164 <HAL_ADC_ConfigChannel>
  12992. 80053a0: 4603 mov r3, r0
  12993. 80053a2: 2b00 cmp r3, #0
  12994. 80053a4: d001 beq.n 80053aa <MX_ADC1_Init+0x6e>
  12995. {
  12996. Error_Handler();
  12997. 80053a6: f000 f9ff bl 80057a8 <Error_Handler>
  12998. }
  12999. /** Configure Regular Channel
  13000. */
  13001. sConfig.Channel = ADC_CHANNEL_1;
  13002. 80053aa: 2301 movs r3, #1
  13003. 80053ac: 607b str r3, [r7, #4]
  13004. sConfig.Rank = ADC_REGULAR_RANK_2;
  13005. 80053ae: 2302 movs r3, #2
  13006. 80053b0: 60bb str r3, [r7, #8]
  13007. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  13008. 80053b2: 1d3b adds r3, r7, #4
  13009. 80053b4: 4619 mov r1, r3
  13010. 80053b6: 480d ldr r0, [pc, #52] ; (80053ec <MX_ADC1_Init+0xb0>)
  13011. 80053b8: f7fc fed4 bl 8002164 <HAL_ADC_ConfigChannel>
  13012. 80053bc: 4603 mov r3, r0
  13013. 80053be: 2b00 cmp r3, #0
  13014. 80053c0: d001 beq.n 80053c6 <MX_ADC1_Init+0x8a>
  13015. {
  13016. Error_Handler();
  13017. 80053c2: f000 f9f1 bl 80057a8 <Error_Handler>
  13018. }
  13019. /** Configure Regular Channel
  13020. */
  13021. sConfig.Channel = ADC_CHANNEL_3;
  13022. 80053c6: 2303 movs r3, #3
  13023. 80053c8: 607b str r3, [r7, #4]
  13024. sConfig.Rank = ADC_REGULAR_RANK_3;
  13025. 80053ca: 2303 movs r3, #3
  13026. 80053cc: 60bb str r3, [r7, #8]
  13027. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  13028. 80053ce: 1d3b adds r3, r7, #4
  13029. 80053d0: 4619 mov r1, r3
  13030. 80053d2: 4806 ldr r0, [pc, #24] ; (80053ec <MX_ADC1_Init+0xb0>)
  13031. 80053d4: f7fc fec6 bl 8002164 <HAL_ADC_ConfigChannel>
  13032. 80053d8: 4603 mov r3, r0
  13033. 80053da: 2b00 cmp r3, #0
  13034. 80053dc: d001 beq.n 80053e2 <MX_ADC1_Init+0xa6>
  13035. {
  13036. Error_Handler();
  13037. 80053de: f000 f9e3 bl 80057a8 <Error_Handler>
  13038. }
  13039. /* USER CODE BEGIN ADC1_Init 2 */
  13040. /* USER CODE END ADC1_Init 2 */
  13041. }
  13042. 80053e2: bf00 nop
  13043. 80053e4: 3710 adds r7, #16
  13044. 80053e6: 46bd mov sp, r7
  13045. 80053e8: bd80 pop {r7, pc}
  13046. 80053ea: bf00 nop
  13047. 80053ec: 20000a1c .word 0x20000a1c
  13048. 80053f0: 40012400 .word 0x40012400
  13049. 080053f4 <MX_TIM6_Init>:
  13050. * @brief TIM6 Initialization Function
  13051. * @param None
  13052. * @retval None
  13053. */
  13054. static void MX_TIM6_Init(void)
  13055. {
  13056. 80053f4: b580 push {r7, lr}
  13057. 80053f6: b082 sub sp, #8
  13058. 80053f8: af00 add r7, sp, #0
  13059. /* USER CODE BEGIN TIM6_Init 0 */
  13060. /* USER CODE END TIM6_Init 0 */
  13061. TIM_MasterConfigTypeDef sMasterConfig = {0};
  13062. 80053fa: 463b mov r3, r7
  13063. 80053fc: 2200 movs r2, #0
  13064. 80053fe: 601a str r2, [r3, #0]
  13065. 8005400: 605a str r2, [r3, #4]
  13066. /* USER CODE BEGIN TIM6_Init 1 */
  13067. /* USER CODE END TIM6_Init 1 */
  13068. htim6.Instance = TIM6;
  13069. 8005402: 4b15 ldr r3, [pc, #84] ; (8005458 <MX_TIM6_Init+0x64>)
  13070. 8005404: 4a15 ldr r2, [pc, #84] ; (800545c <MX_TIM6_Init+0x68>)
  13071. 8005406: 601a str r2, [r3, #0]
  13072. htim6.Init.Prescaler = 2400-1;
  13073. 8005408: 4b13 ldr r3, [pc, #76] ; (8005458 <MX_TIM6_Init+0x64>)
  13074. 800540a: f640 125f movw r2, #2399 ; 0x95f
  13075. 800540e: 605a str r2, [r3, #4]
  13076. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  13077. 8005410: 4b11 ldr r3, [pc, #68] ; (8005458 <MX_TIM6_Init+0x64>)
  13078. 8005412: 2200 movs r2, #0
  13079. 8005414: 609a str r2, [r3, #8]
  13080. htim6.Init.Period = 10;
  13081. 8005416: 4b10 ldr r3, [pc, #64] ; (8005458 <MX_TIM6_Init+0x64>)
  13082. 8005418: 220a movs r2, #10
  13083. 800541a: 60da str r2, [r3, #12]
  13084. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  13085. 800541c: 4b0e ldr r3, [pc, #56] ; (8005458 <MX_TIM6_Init+0x64>)
  13086. 800541e: 2200 movs r2, #0
  13087. 8005420: 619a str r2, [r3, #24]
  13088. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  13089. 8005422: 480d ldr r0, [pc, #52] ; (8005458 <MX_TIM6_Init+0x64>)
  13090. 8005424: f7fe fd2a bl 8003e7c <HAL_TIM_Base_Init>
  13091. 8005428: 4603 mov r3, r0
  13092. 800542a: 2b00 cmp r3, #0
  13093. 800542c: d001 beq.n 8005432 <MX_TIM6_Init+0x3e>
  13094. {
  13095. Error_Handler();
  13096. 800542e: f000 f9bb bl 80057a8 <Error_Handler>
  13097. }
  13098. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  13099. 8005432: 2300 movs r3, #0
  13100. 8005434: 603b str r3, [r7, #0]
  13101. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  13102. 8005436: 2300 movs r3, #0
  13103. 8005438: 607b str r3, [r7, #4]
  13104. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  13105. 800543a: 463b mov r3, r7
  13106. 800543c: 4619 mov r1, r3
  13107. 800543e: 4806 ldr r0, [pc, #24] ; (8005458 <MX_TIM6_Init+0x64>)
  13108. 8005440: f7fe ff16 bl 8004270 <HAL_TIMEx_MasterConfigSynchronization>
  13109. 8005444: 4603 mov r3, r0
  13110. 8005446: 2b00 cmp r3, #0
  13111. 8005448: d001 beq.n 800544e <MX_TIM6_Init+0x5a>
  13112. {
  13113. Error_Handler();
  13114. 800544a: f000 f9ad bl 80057a8 <Error_Handler>
  13115. }
  13116. /* USER CODE BEGIN TIM6_Init 2 */
  13117. /* USER CODE END TIM6_Init 2 */
  13118. }
  13119. 800544e: bf00 nop
  13120. 8005450: 3708 adds r7, #8
  13121. 8005452: 46bd mov sp, r7
  13122. 8005454: bd80 pop {r7, pc}
  13123. 8005456: bf00 nop
  13124. 8005458: 20000b14 .word 0x20000b14
  13125. 800545c: 40001000 .word 0x40001000
  13126. 08005460 <MX_USART1_UART_Init>:
  13127. * @brief USART1 Initialization Function
  13128. * @param None
  13129. * @retval None
  13130. */
  13131. static void MX_USART1_UART_Init(void)
  13132. {
  13133. 8005460: b580 push {r7, lr}
  13134. 8005462: af00 add r7, sp, #0
  13135. /* USER CODE END USART1_Init 0 */
  13136. /* USER CODE BEGIN USART1_Init 1 */
  13137. /* USER CODE END USART1_Init 1 */
  13138. huart1.Instance = USART1;
  13139. 8005464: 4b11 ldr r3, [pc, #68] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13140. 8005466: 4a12 ldr r2, [pc, #72] ; (80054b0 <MX_USART1_UART_Init+0x50>)
  13141. 8005468: 601a str r2, [r3, #0]
  13142. huart1.Init.BaudRate = 115200;
  13143. 800546a: 4b10 ldr r3, [pc, #64] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13144. 800546c: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  13145. 8005470: 605a str r2, [r3, #4]
  13146. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  13147. 8005472: 4b0e ldr r3, [pc, #56] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13148. 8005474: 2200 movs r2, #0
  13149. 8005476: 609a str r2, [r3, #8]
  13150. huart1.Init.StopBits = UART_STOPBITS_1;
  13151. 8005478: 4b0c ldr r3, [pc, #48] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13152. 800547a: 2200 movs r2, #0
  13153. 800547c: 60da str r2, [r3, #12]
  13154. huart1.Init.Parity = UART_PARITY_NONE;
  13155. 800547e: 4b0b ldr r3, [pc, #44] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13156. 8005480: 2200 movs r2, #0
  13157. 8005482: 611a str r2, [r3, #16]
  13158. huart1.Init.Mode = UART_MODE_TX_RX;
  13159. 8005484: 4b09 ldr r3, [pc, #36] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13160. 8005486: 220c movs r2, #12
  13161. 8005488: 615a str r2, [r3, #20]
  13162. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  13163. 800548a: 4b08 ldr r3, [pc, #32] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13164. 800548c: 2200 movs r2, #0
  13165. 800548e: 619a str r2, [r3, #24]
  13166. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  13167. 8005490: 4b06 ldr r3, [pc, #24] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13168. 8005492: 2200 movs r2, #0
  13169. 8005494: 61da str r2, [r3, #28]
  13170. if (HAL_UART_Init(&huart1) != HAL_OK)
  13171. 8005496: 4805 ldr r0, [pc, #20] ; (80054ac <MX_USART1_UART_Init+0x4c>)
  13172. 8005498: f7fe ff40 bl 800431c <HAL_UART_Init>
  13173. 800549c: 4603 mov r3, r0
  13174. 800549e: 2b00 cmp r3, #0
  13175. 80054a0: d001 beq.n 80054a6 <MX_USART1_UART_Init+0x46>
  13176. {
  13177. Error_Handler();
  13178. 80054a2: f000 f981 bl 80057a8 <Error_Handler>
  13179. }
  13180. /* USER CODE BEGIN USART1_Init 2 */
  13181. /* USER CODE END USART1_Init 2 */
  13182. }
  13183. 80054a6: bf00 nop
  13184. 80054a8: bd80 pop {r7, pc}
  13185. 80054aa: bf00 nop
  13186. 80054ac: 20000a90 .word 0x20000a90
  13187. 80054b0: 40013800 .word 0x40013800
  13188. 080054b4 <MX_USART3_UART_Init>:
  13189. * @brief USART3 Initialization Function
  13190. * @param None
  13191. * @retval None
  13192. */
  13193. static void MX_USART3_UART_Init(void)
  13194. {
  13195. 80054b4: b580 push {r7, lr}
  13196. 80054b6: af00 add r7, sp, #0
  13197. /* USER CODE END USART3_Init 0 */
  13198. /* USER CODE BEGIN USART3_Init 1 */
  13199. /* USER CODE END USART3_Init 1 */
  13200. huart3.Instance = USART3;
  13201. 80054b8: 4b11 ldr r3, [pc, #68] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13202. 80054ba: 4a12 ldr r2, [pc, #72] ; (8005504 <MX_USART3_UART_Init+0x50>)
  13203. 80054bc: 601a str r2, [r3, #0]
  13204. huart3.Init.BaudRate = 115200;
  13205. 80054be: 4b10 ldr r3, [pc, #64] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13206. 80054c0: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  13207. 80054c4: 605a str r2, [r3, #4]
  13208. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  13209. 80054c6: 4b0e ldr r3, [pc, #56] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13210. 80054c8: 2200 movs r2, #0
  13211. 80054ca: 609a str r2, [r3, #8]
  13212. huart3.Init.StopBits = UART_STOPBITS_1;
  13213. 80054cc: 4b0c ldr r3, [pc, #48] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13214. 80054ce: 2200 movs r2, #0
  13215. 80054d0: 60da str r2, [r3, #12]
  13216. huart3.Init.Parity = UART_PARITY_NONE;
  13217. 80054d2: 4b0b ldr r3, [pc, #44] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13218. 80054d4: 2200 movs r2, #0
  13219. 80054d6: 611a str r2, [r3, #16]
  13220. huart3.Init.Mode = UART_MODE_TX_RX;
  13221. 80054d8: 4b09 ldr r3, [pc, #36] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13222. 80054da: 220c movs r2, #12
  13223. 80054dc: 615a str r2, [r3, #20]
  13224. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  13225. 80054de: 4b08 ldr r3, [pc, #32] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13226. 80054e0: 2200 movs r2, #0
  13227. 80054e2: 619a str r2, [r3, #24]
  13228. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  13229. 80054e4: 4b06 ldr r3, [pc, #24] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13230. 80054e6: 2200 movs r2, #0
  13231. 80054e8: 61da str r2, [r3, #28]
  13232. if (HAL_UART_Init(&huart3) != HAL_OK)
  13233. 80054ea: 4805 ldr r0, [pc, #20] ; (8005500 <MX_USART3_UART_Init+0x4c>)
  13234. 80054ec: f7fe ff16 bl 800431c <HAL_UART_Init>
  13235. 80054f0: 4603 mov r3, r0
  13236. 80054f2: 2b00 cmp r3, #0
  13237. 80054f4: d001 beq.n 80054fa <MX_USART3_UART_Init+0x46>
  13238. {
  13239. Error_Handler();
  13240. 80054f6: f000 f957 bl 80057a8 <Error_Handler>
  13241. }
  13242. /* USER CODE BEGIN USART3_Init 2 */
  13243. /* USER CODE END USART3_Init 2 */
  13244. }
  13245. 80054fa: bf00 nop
  13246. 80054fc: bd80 pop {r7, pc}
  13247. 80054fe: bf00 nop
  13248. 8005500: 20000954 .word 0x20000954
  13249. 8005504: 40004800 .word 0x40004800
  13250. 08005508 <MX_DMA_Init>:
  13251. /**
  13252. * Enable DMA controller clock
  13253. */
  13254. static void MX_DMA_Init(void)
  13255. {
  13256. 8005508: b480 push {r7}
  13257. 800550a: b083 sub sp, #12
  13258. 800550c: af00 add r7, sp, #0
  13259. /* DMA controller clock enable */
  13260. __HAL_RCC_DMA1_CLK_ENABLE();
  13261. 800550e: 4b08 ldr r3, [pc, #32] ; (8005530 <MX_DMA_Init+0x28>)
  13262. 8005510: 695b ldr r3, [r3, #20]
  13263. 8005512: 4a07 ldr r2, [pc, #28] ; (8005530 <MX_DMA_Init+0x28>)
  13264. 8005514: f043 0301 orr.w r3, r3, #1
  13265. 8005518: 6153 str r3, [r2, #20]
  13266. 800551a: 4b05 ldr r3, [pc, #20] ; (8005530 <MX_DMA_Init+0x28>)
  13267. 800551c: 695b ldr r3, [r3, #20]
  13268. 800551e: f003 0301 and.w r3, r3, #1
  13269. 8005522: 607b str r3, [r7, #4]
  13270. 8005524: 687b ldr r3, [r7, #4]
  13271. }
  13272. 8005526: bf00 nop
  13273. 8005528: 370c adds r7, #12
  13274. 800552a: 46bd mov sp, r7
  13275. 800552c: bc80 pop {r7}
  13276. 800552e: 4770 bx lr
  13277. 8005530: 40021000 .word 0x40021000
  13278. 08005534 <MX_GPIO_Init>:
  13279. * @brief GPIO Initialization Function
  13280. * @param None
  13281. * @retval None
  13282. */
  13283. static void MX_GPIO_Init(void)
  13284. {
  13285. 8005534: b580 push {r7, lr}
  13286. 8005536: b088 sub sp, #32
  13287. 8005538: af00 add r7, sp, #0
  13288. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13289. 800553a: f107 0310 add.w r3, r7, #16
  13290. 800553e: 2200 movs r2, #0
  13291. 8005540: 601a str r2, [r3, #0]
  13292. 8005542: 605a str r2, [r3, #4]
  13293. 8005544: 609a str r2, [r3, #8]
  13294. 8005546: 60da str r2, [r3, #12]
  13295. /* GPIO Ports Clock Enable */
  13296. __HAL_RCC_GPIOC_CLK_ENABLE();
  13297. 8005548: 4b40 ldr r3, [pc, #256] ; (800564c <MX_GPIO_Init+0x118>)
  13298. 800554a: 699b ldr r3, [r3, #24]
  13299. 800554c: 4a3f ldr r2, [pc, #252] ; (800564c <MX_GPIO_Init+0x118>)
  13300. 800554e: f043 0310 orr.w r3, r3, #16
  13301. 8005552: 6193 str r3, [r2, #24]
  13302. 8005554: 4b3d ldr r3, [pc, #244] ; (800564c <MX_GPIO_Init+0x118>)
  13303. 8005556: 699b ldr r3, [r3, #24]
  13304. 8005558: f003 0310 and.w r3, r3, #16
  13305. 800555c: 60fb str r3, [r7, #12]
  13306. 800555e: 68fb ldr r3, [r7, #12]
  13307. __HAL_RCC_GPIOA_CLK_ENABLE();
  13308. 8005560: 4b3a ldr r3, [pc, #232] ; (800564c <MX_GPIO_Init+0x118>)
  13309. 8005562: 699b ldr r3, [r3, #24]
  13310. 8005564: 4a39 ldr r2, [pc, #228] ; (800564c <MX_GPIO_Init+0x118>)
  13311. 8005566: f043 0304 orr.w r3, r3, #4
  13312. 800556a: 6193 str r3, [r2, #24]
  13313. 800556c: 4b37 ldr r3, [pc, #220] ; (800564c <MX_GPIO_Init+0x118>)
  13314. 800556e: 699b ldr r3, [r3, #24]
  13315. 8005570: f003 0304 and.w r3, r3, #4
  13316. 8005574: 60bb str r3, [r7, #8]
  13317. 8005576: 68bb ldr r3, [r7, #8]
  13318. __HAL_RCC_GPIOB_CLK_ENABLE();
  13319. 8005578: 4b34 ldr r3, [pc, #208] ; (800564c <MX_GPIO_Init+0x118>)
  13320. 800557a: 699b ldr r3, [r3, #24]
  13321. 800557c: 4a33 ldr r2, [pc, #204] ; (800564c <MX_GPIO_Init+0x118>)
  13322. 800557e: f043 0308 orr.w r3, r3, #8
  13323. 8005582: 6193 str r3, [r2, #24]
  13324. 8005584: 4b31 ldr r3, [pc, #196] ; (800564c <MX_GPIO_Init+0x118>)
  13325. 8005586: 699b ldr r3, [r3, #24]
  13326. 8005588: f003 0308 and.w r3, r3, #8
  13327. 800558c: 607b str r3, [r7, #4]
  13328. 800558e: 687b ldr r3, [r7, #4]
  13329. /*Configure GPIO pin Output Level */
  13330. HAL_GPIO_WritePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin, GPIO_PIN_RESET);
  13331. 8005590: 2200 movs r2, #0
  13332. 8005592: f44f 4100 mov.w r1, #32768 ; 0x8000
  13333. 8005596: 482e ldr r0, [pc, #184] ; (8005650 <MX_GPIO_Init+0x11c>)
  13334. 8005598: f7fd ff29 bl 80033ee <HAL_GPIO_WritePin>
  13335. /*Configure GPIO pin Output Level */
  13336. HAL_GPIO_WritePin(GPIOA, PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin, GPIO_PIN_RESET);
  13337. 800559c: 2200 movs r2, #0
  13338. 800559e: f44f 71e0 mov.w r1, #448 ; 0x1c0
  13339. 80055a2: 482c ldr r0, [pc, #176] ; (8005654 <MX_GPIO_Init+0x120>)
  13340. 80055a4: f7fd ff23 bl 80033ee <HAL_GPIO_WritePin>
  13341. /*Configure GPIO pin Output Level */
  13342. HAL_GPIO_WritePin(GPIOB, PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin, GPIO_PIN_RESET);
  13343. 80055a8: 2200 movs r2, #0
  13344. 80055aa: f244 0103 movw r1, #16387 ; 0x4003
  13345. 80055ae: 482a ldr r0, [pc, #168] ; (8005658 <MX_GPIO_Init+0x124>)
  13346. 80055b0: f7fd ff1d bl 80033ee <HAL_GPIO_WritePin>
  13347. /*Configure GPIO pin : BOOT_LED_Pin */
  13348. GPIO_InitStruct.Pin = BOOT_LED_Pin;
  13349. 80055b4: f44f 4300 mov.w r3, #32768 ; 0x8000
  13350. 80055b8: 613b str r3, [r7, #16]
  13351. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  13352. 80055ba: 2301 movs r3, #1
  13353. 80055bc: 617b str r3, [r7, #20]
  13354. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13355. 80055be: 2300 movs r3, #0
  13356. 80055c0: 61bb str r3, [r7, #24]
  13357. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  13358. 80055c2: 2302 movs r3, #2
  13359. 80055c4: 61fb str r3, [r7, #28]
  13360. HAL_GPIO_Init(BOOT_LED_GPIO_Port, &GPIO_InitStruct);
  13361. 80055c6: f107 0310 add.w r3, r7, #16
  13362. 80055ca: 4619 mov r1, r3
  13363. 80055cc: 4820 ldr r0, [pc, #128] ; (8005650 <MX_GPIO_Init+0x11c>)
  13364. 80055ce: f7fd fd9d bl 800310c <HAL_GPIO_Init>
  13365. /*Configure GPIO pins : DC_FAIL_ALARM_Pin OVER_INPUT_ALARM_Pin OVER_TEMP_ALARM_Pin */
  13366. GPIO_InitStruct.Pin = DC_FAIL_ALARM_Pin|OVER_INPUT_ALARM_Pin|OVER_TEMP_ALARM_Pin;
  13367. 80055d2: f641 0304 movw r3, #6148 ; 0x1804
  13368. 80055d6: 613b str r3, [r7, #16]
  13369. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13370. 80055d8: 2300 movs r3, #0
  13371. 80055da: 617b str r3, [r7, #20]
  13372. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13373. 80055dc: 2300 movs r3, #0
  13374. 80055de: 61bb str r3, [r7, #24]
  13375. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13376. 80055e0: f107 0310 add.w r3, r7, #16
  13377. 80055e4: 4619 mov r1, r3
  13378. 80055e6: 481b ldr r0, [pc, #108] ; (8005654 <MX_GPIO_Init+0x120>)
  13379. 80055e8: f7fd fd90 bl 800310c <HAL_GPIO_Init>
  13380. /*Configure GPIO pins : PAU_RESERVED0_Pin PAU_RESERVED1_Pin AMP_EN_Pin */
  13381. GPIO_InitStruct.Pin = PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin;
  13382. 80055ec: f44f 73e0 mov.w r3, #448 ; 0x1c0
  13383. 80055f0: 613b str r3, [r7, #16]
  13384. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  13385. 80055f2: 2301 movs r3, #1
  13386. 80055f4: 617b str r3, [r7, #20]
  13387. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13388. 80055f6: 2300 movs r3, #0
  13389. 80055f8: 61bb str r3, [r7, #24]
  13390. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  13391. 80055fa: 2302 movs r3, #2
  13392. 80055fc: 61fb str r3, [r7, #28]
  13393. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13394. 80055fe: f107 0310 add.w r3, r7, #16
  13395. 8005602: 4619 mov r1, r3
  13396. 8005604: 4813 ldr r0, [pc, #76] ; (8005654 <MX_GPIO_Init+0x120>)
  13397. 8005606: f7fd fd81 bl 800310c <HAL_GPIO_Init>
  13398. /*Configure GPIO pins : PAU_RESERVED3_Pin PAU_RESERVED2_Pin PAU_RESET_Pin */
  13399. GPIO_InitStruct.Pin = PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin;
  13400. 800560a: f244 0303 movw r3, #16387 ; 0x4003
  13401. 800560e: 613b str r3, [r7, #16]
  13402. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  13403. 8005610: 2301 movs r3, #1
  13404. 8005612: 617b str r3, [r7, #20]
  13405. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13406. 8005614: 2300 movs r3, #0
  13407. 8005616: 61bb str r3, [r7, #24]
  13408. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  13409. 8005618: 2302 movs r3, #2
  13410. 800561a: 61fb str r3, [r7, #28]
  13411. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13412. 800561c: f107 0310 add.w r3, r7, #16
  13413. 8005620: 4619 mov r1, r3
  13414. 8005622: 480d ldr r0, [pc, #52] ; (8005658 <MX_GPIO_Init+0x124>)
  13415. 8005624: f7fd fd72 bl 800310c <HAL_GPIO_Init>
  13416. /*Configure GPIO pins : OVER_POWER_ALARM_Pin VSWR_ALARM_Pin PAU_EN_Pin ALC_ALARM_Pin */
  13417. GPIO_InitStruct.Pin = OVER_POWER_ALARM_Pin|VSWR_ALARM_Pin|PAU_EN_Pin|ALC_ALARM_Pin;
  13418. 8005628: f24b 0308 movw r3, #45064 ; 0xb008
  13419. 800562c: 613b str r3, [r7, #16]
  13420. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13421. 800562e: 2300 movs r3, #0
  13422. 8005630: 617b str r3, [r7, #20]
  13423. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13424. 8005632: 2300 movs r3, #0
  13425. 8005634: 61bb str r3, [r7, #24]
  13426. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13427. 8005636: f107 0310 add.w r3, r7, #16
  13428. 800563a: 4619 mov r1, r3
  13429. 800563c: 4806 ldr r0, [pc, #24] ; (8005658 <MX_GPIO_Init+0x124>)
  13430. 800563e: f7fd fd65 bl 800310c <HAL_GPIO_Init>
  13431. }
  13432. 8005642: bf00 nop
  13433. 8005644: 3720 adds r7, #32
  13434. 8005646: 46bd mov sp, r7
  13435. 8005648: bd80 pop {r7, pc}
  13436. 800564a: bf00 nop
  13437. 800564c: 40021000 .word 0x40021000
  13438. 8005650: 40011000 .word 0x40011000
  13439. 8005654: 40010800 .word 0x40010800
  13440. 8005658: 40010c00 .word 0x40010c00
  13441. 0800565c <HAL_TIM_PeriodElapsedCallback>:
  13442. * a global variable "uwTick" used as application time base.
  13443. * @param htim : TIM handle
  13444. * @retval None
  13445. */
  13446. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  13447. {
  13448. 800565c: b580 push {r7, lr}
  13449. 800565e: b082 sub sp, #8
  13450. 8005660: af00 add r7, sp, #0
  13451. 8005662: 6078 str r0, [r7, #4]
  13452. /* USER CODE BEGIN Callback 0 */
  13453. /* USER CODE END Callback 0 */
  13454. if (htim->Instance == TIM2) {
  13455. 8005664: 687b ldr r3, [r7, #4]
  13456. 8005666: 681b ldr r3, [r3, #0]
  13457. 8005668: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  13458. 800566c: d101 bne.n 8005672 <HAL_TIM_PeriodElapsedCallback+0x16>
  13459. HAL_IncTick();
  13460. 800566e: f7fc faeb bl 8001c48 <HAL_IncTick>
  13461. }
  13462. /* USER CODE BEGIN Callback 1 */
  13463. if(htim->Instance == TIM6){
  13464. 8005672: 687b ldr r3, [r7, #4]
  13465. 8005674: 681b ldr r3, [r3, #0]
  13466. 8005676: 4a3f ldr r2, [pc, #252] ; (8005774 <HAL_TIM_PeriodElapsedCallback+0x118>)
  13467. 8005678: 4293 cmp r3, r2
  13468. 800567a: d177 bne.n 800576c <HAL_TIM_PeriodElapsedCallback+0x110>
  13469. UartRxTimerCnt++;
  13470. 800567c: 4b3e ldr r3, [pc, #248] ; (8005778 <HAL_TIM_PeriodElapsedCallback+0x11c>)
  13471. 800567e: 681b ldr r3, [r3, #0]
  13472. 8005680: 3301 adds r3, #1
  13473. 8005682: 4a3d ldr r2, [pc, #244] ; (8005778 <HAL_TIM_PeriodElapsedCallback+0x11c>)
  13474. 8005684: 6013 str r3, [r2, #0]
  13475. LED_TimerCnt++;
  13476. 8005686: 4b3d ldr r3, [pc, #244] ; (800577c <HAL_TIM_PeriodElapsedCallback+0x120>)
  13477. 8005688: 681b ldr r3, [r3, #0]
  13478. 800568a: 3301 adds r3, #1
  13479. 800568c: 4a3b ldr r2, [pc, #236] ; (800577c <HAL_TIM_PeriodElapsedCallback+0x120>)
  13480. 800568e: 6013 str r3, [r2, #0]
  13481. TDD_125ms_Cnt++;
  13482. 8005690: 4b3b ldr r3, [pc, #236] ; (8005780 <HAL_TIM_PeriodElapsedCallback+0x124>)
  13483. 8005692: 681b ldr r3, [r3, #0]
  13484. 8005694: 3301 adds r3, #1
  13485. 8005696: 4a3a ldr r2, [pc, #232] ; (8005780 <HAL_TIM_PeriodElapsedCallback+0x124>)
  13486. 8005698: 6013 str r3, [r2, #0]
  13487. TestTimer++;
  13488. 800569a: 4b3a ldr r3, [pc, #232] ; (8005784 <HAL_TIM_PeriodElapsedCallback+0x128>)
  13489. 800569c: 681b ldr r3, [r3, #0]
  13490. 800569e: 3301 adds r3, #1
  13491. 80056a0: 4a38 ldr r2, [pc, #224] ; (8005784 <HAL_TIM_PeriodElapsedCallback+0x128>)
  13492. 80056a2: 6013 str r3, [r2, #0]
  13493. if(HAL_GPIO_ReadPin(DC_FAIL_ALARM_GPIO_Port, DC_FAIL_ALARM_Pin) == GPIO_PIN_SET)
  13494. 80056a4: 2104 movs r1, #4
  13495. 80056a6: 4838 ldr r0, [pc, #224] ; (8005788 <HAL_TIM_PeriodElapsedCallback+0x12c>)
  13496. 80056a8: f7fd fe8a bl 80033c0 <HAL_GPIO_ReadPin>
  13497. 80056ac: 4603 mov r3, r0
  13498. 80056ae: 2b01 cmp r3, #1
  13499. 80056b0: d105 bne.n 80056be <HAL_TIM_PeriodElapsedCallback+0x62>
  13500. DC_FAIL_ALARM_CNT++;
  13501. 80056b2: 4b36 ldr r3, [pc, #216] ; (800578c <HAL_TIM_PeriodElapsedCallback+0x130>)
  13502. 80056b4: 681b ldr r3, [r3, #0]
  13503. 80056b6: 3301 adds r3, #1
  13504. 80056b8: 4a34 ldr r2, [pc, #208] ; (800578c <HAL_TIM_PeriodElapsedCallback+0x130>)
  13505. 80056ba: 6013 str r3, [r2, #0]
  13506. 80056bc: e002 b.n 80056c4 <HAL_TIM_PeriodElapsedCallback+0x68>
  13507. else
  13508. DC_FAIL_ALARM_CNT = 0;
  13509. 80056be: 4b33 ldr r3, [pc, #204] ; (800578c <HAL_TIM_PeriodElapsedCallback+0x130>)
  13510. 80056c0: 2200 movs r2, #0
  13511. 80056c2: 601a str r2, [r3, #0]
  13512. if(HAL_GPIO_ReadPin(OVER_INPUT_ALARM_GPIO_Port, OVER_INPUT_ALARM_Pin)== GPIO_PIN_SET)
  13513. 80056c4: f44f 6100 mov.w r1, #2048 ; 0x800
  13514. 80056c8: 482f ldr r0, [pc, #188] ; (8005788 <HAL_TIM_PeriodElapsedCallback+0x12c>)
  13515. 80056ca: f7fd fe79 bl 80033c0 <HAL_GPIO_ReadPin>
  13516. 80056ce: 4603 mov r3, r0
  13517. 80056d0: 2b01 cmp r3, #1
  13518. 80056d2: d105 bne.n 80056e0 <HAL_TIM_PeriodElapsedCallback+0x84>
  13519. OVER_INPUT_ALARM_CNT++;
  13520. 80056d4: 4b2e ldr r3, [pc, #184] ; (8005790 <HAL_TIM_PeriodElapsedCallback+0x134>)
  13521. 80056d6: 681b ldr r3, [r3, #0]
  13522. 80056d8: 3301 adds r3, #1
  13523. 80056da: 4a2d ldr r2, [pc, #180] ; (8005790 <HAL_TIM_PeriodElapsedCallback+0x134>)
  13524. 80056dc: 6013 str r3, [r2, #0]
  13525. 80056de: e002 b.n 80056e6 <HAL_TIM_PeriodElapsedCallback+0x8a>
  13526. else
  13527. OVER_INPUT_ALARM_CNT = 0;
  13528. 80056e0: 4b2b ldr r3, [pc, #172] ; (8005790 <HAL_TIM_PeriodElapsedCallback+0x134>)
  13529. 80056e2: 2200 movs r2, #0
  13530. 80056e4: 601a str r2, [r3, #0]
  13531. if(HAL_GPIO_ReadPin(OVER_TEMP_ALARM_GPIO_Port, OVER_TEMP_ALARM_Pin)== GPIO_PIN_SET)
  13532. 80056e6: f44f 5180 mov.w r1, #4096 ; 0x1000
  13533. 80056ea: 4827 ldr r0, [pc, #156] ; (8005788 <HAL_TIM_PeriodElapsedCallback+0x12c>)
  13534. 80056ec: f7fd fe68 bl 80033c0 <HAL_GPIO_ReadPin>
  13535. 80056f0: 4603 mov r3, r0
  13536. 80056f2: 2b01 cmp r3, #1
  13537. 80056f4: d105 bne.n 8005702 <HAL_TIM_PeriodElapsedCallback+0xa6>
  13538. OVER_TEMP_ALARM_CNT++;
  13539. 80056f6: 4b27 ldr r3, [pc, #156] ; (8005794 <HAL_TIM_PeriodElapsedCallback+0x138>)
  13540. 80056f8: 681b ldr r3, [r3, #0]
  13541. 80056fa: 3301 adds r3, #1
  13542. 80056fc: 4a25 ldr r2, [pc, #148] ; (8005794 <HAL_TIM_PeriodElapsedCallback+0x138>)
  13543. 80056fe: 6013 str r3, [r2, #0]
  13544. 8005700: e002 b.n 8005708 <HAL_TIM_PeriodElapsedCallback+0xac>
  13545. else
  13546. OVER_TEMP_ALARM_CNT = 0;
  13547. 8005702: 4b24 ldr r3, [pc, #144] ; (8005794 <HAL_TIM_PeriodElapsedCallback+0x138>)
  13548. 8005704: 2200 movs r2, #0
  13549. 8005706: 601a str r2, [r3, #0]
  13550. if(HAL_GPIO_ReadPin(ALC_ALARM_GPIO_Port, ALC_ALARM_Pin)== GPIO_PIN_SET)
  13551. 8005708: 2108 movs r1, #8
  13552. 800570a: 4823 ldr r0, [pc, #140] ; (8005798 <HAL_TIM_PeriodElapsedCallback+0x13c>)
  13553. 800570c: f7fd fe58 bl 80033c0 <HAL_GPIO_ReadPin>
  13554. 8005710: 4603 mov r3, r0
  13555. 8005712: 2b01 cmp r3, #1
  13556. 8005714: d105 bne.n 8005722 <HAL_TIM_PeriodElapsedCallback+0xc6>
  13557. ALC_ALARM_CNT++;
  13558. 8005716: 4b21 ldr r3, [pc, #132] ; (800579c <HAL_TIM_PeriodElapsedCallback+0x140>)
  13559. 8005718: 681b ldr r3, [r3, #0]
  13560. 800571a: 3301 adds r3, #1
  13561. 800571c: 4a1f ldr r2, [pc, #124] ; (800579c <HAL_TIM_PeriodElapsedCallback+0x140>)
  13562. 800571e: 6013 str r3, [r2, #0]
  13563. 8005720: e002 b.n 8005728 <HAL_TIM_PeriodElapsedCallback+0xcc>
  13564. else
  13565. ALC_ALARM_CNT = 0;
  13566. 8005722: 4b1e ldr r3, [pc, #120] ; (800579c <HAL_TIM_PeriodElapsedCallback+0x140>)
  13567. 8005724: 2200 movs r2, #0
  13568. 8005726: 601a str r2, [r3, #0]
  13569. if(HAL_GPIO_ReadPin(OVER_POWER_ALARM_GPIO_Port, OVER_POWER_ALARM_Pin)== GPIO_PIN_SET)
  13570. 8005728: f44f 5180 mov.w r1, #4096 ; 0x1000
  13571. 800572c: 481a ldr r0, [pc, #104] ; (8005798 <HAL_TIM_PeriodElapsedCallback+0x13c>)
  13572. 800572e: f7fd fe47 bl 80033c0 <HAL_GPIO_ReadPin>
  13573. 8005732: 4603 mov r3, r0
  13574. 8005734: 2b01 cmp r3, #1
  13575. 8005736: d105 bne.n 8005744 <HAL_TIM_PeriodElapsedCallback+0xe8>
  13576. OVER_POWER_ALARM_CNT++;
  13577. 8005738: 4b19 ldr r3, [pc, #100] ; (80057a0 <HAL_TIM_PeriodElapsedCallback+0x144>)
  13578. 800573a: 681b ldr r3, [r3, #0]
  13579. 800573c: 3301 adds r3, #1
  13580. 800573e: 4a18 ldr r2, [pc, #96] ; (80057a0 <HAL_TIM_PeriodElapsedCallback+0x144>)
  13581. 8005740: 6013 str r3, [r2, #0]
  13582. 8005742: e002 b.n 800574a <HAL_TIM_PeriodElapsedCallback+0xee>
  13583. else
  13584. OVER_POWER_ALARM_CNT = 0;
  13585. 8005744: 4b16 ldr r3, [pc, #88] ; (80057a0 <HAL_TIM_PeriodElapsedCallback+0x144>)
  13586. 8005746: 2200 movs r2, #0
  13587. 8005748: 601a str r2, [r3, #0]
  13588. if(HAL_GPIO_ReadPin(VSWR_ALARM_GPIO_Port, VSWR_ALARM_Pin)== GPIO_PIN_SET)
  13589. 800574a: f44f 5100 mov.w r1, #8192 ; 0x2000
  13590. 800574e: 4812 ldr r0, [pc, #72] ; (8005798 <HAL_TIM_PeriodElapsedCallback+0x13c>)
  13591. 8005750: f7fd fe36 bl 80033c0 <HAL_GPIO_ReadPin>
  13592. 8005754: 4603 mov r3, r0
  13593. 8005756: 2b01 cmp r3, #1
  13594. 8005758: d105 bne.n 8005766 <HAL_TIM_PeriodElapsedCallback+0x10a>
  13595. VSWR_ALARM_CNT++;
  13596. 800575a: 4b12 ldr r3, [pc, #72] ; (80057a4 <HAL_TIM_PeriodElapsedCallback+0x148>)
  13597. 800575c: 681b ldr r3, [r3, #0]
  13598. 800575e: 3301 adds r3, #1
  13599. 8005760: 4a10 ldr r2, [pc, #64] ; (80057a4 <HAL_TIM_PeriodElapsedCallback+0x148>)
  13600. 8005762: 6013 str r3, [r2, #0]
  13601. else
  13602. VSWR_ALARM_CNT = 0;
  13603. }
  13604. /* USER CODE END Callback 1 */
  13605. }
  13606. 8005764: e002 b.n 800576c <HAL_TIM_PeriodElapsedCallback+0x110>
  13607. VSWR_ALARM_CNT = 0;
  13608. 8005766: 4b0f ldr r3, [pc, #60] ; (80057a4 <HAL_TIM_PeriodElapsedCallback+0x148>)
  13609. 8005768: 2200 movs r2, #0
  13610. 800576a: 601a str r2, [r3, #0]
  13611. }
  13612. 800576c: bf00 nop
  13613. 800576e: 3708 adds r7, #8
  13614. 8005770: 46bd mov sp, r7
  13615. 8005772: bd80 pop {r7, pc}
  13616. 8005774: 40001000 .word 0x40001000
  13617. 8005778: 20000618 .word 0x20000618
  13618. 800577c: 20000610 .word 0x20000610
  13619. 8005780: 20000634 .word 0x20000634
  13620. 8005784: 20000638 .word 0x20000638
  13621. 8005788: 40010800 .word 0x40010800
  13622. 800578c: 2000061c .word 0x2000061c
  13623. 8005790: 20000620 .word 0x20000620
  13624. 8005794: 20000624 .word 0x20000624
  13625. 8005798: 40010c00 .word 0x40010c00
  13626. 800579c: 20000628 .word 0x20000628
  13627. 80057a0: 2000062c .word 0x2000062c
  13628. 80057a4: 20000630 .word 0x20000630
  13629. 080057a8 <Error_Handler>:
  13630. /**
  13631. * @brief This function is executed in case of error occurrence.
  13632. * @retval None
  13633. */
  13634. void Error_Handler(void)
  13635. {
  13636. 80057a8: b480 push {r7}
  13637. 80057aa: af00 add r7, sp, #0
  13638. /* USER CODE BEGIN Error_Handler_Debug */
  13639. /* User can add his own implementation to report the HAL error return state */
  13640. /* USER CODE END Error_Handler_Debug */
  13641. }
  13642. 80057ac: bf00 nop
  13643. 80057ae: 46bd mov sp, r7
  13644. 80057b0: bc80 pop {r7}
  13645. 80057b2: 4770 bx lr
  13646. 080057b4 <HAL_MspInit>:
  13647. /* USER CODE END 0 */
  13648. /**
  13649. * Initializes the Global MSP.
  13650. */
  13651. void HAL_MspInit(void)
  13652. {
  13653. 80057b4: b480 push {r7}
  13654. 80057b6: b085 sub sp, #20
  13655. 80057b8: af00 add r7, sp, #0
  13656. /* USER CODE BEGIN MspInit 0 */
  13657. /* USER CODE END MspInit 0 */
  13658. __HAL_RCC_AFIO_CLK_ENABLE();
  13659. 80057ba: 4b15 ldr r3, [pc, #84] ; (8005810 <HAL_MspInit+0x5c>)
  13660. 80057bc: 699b ldr r3, [r3, #24]
  13661. 80057be: 4a14 ldr r2, [pc, #80] ; (8005810 <HAL_MspInit+0x5c>)
  13662. 80057c0: f043 0301 orr.w r3, r3, #1
  13663. 80057c4: 6193 str r3, [r2, #24]
  13664. 80057c6: 4b12 ldr r3, [pc, #72] ; (8005810 <HAL_MspInit+0x5c>)
  13665. 80057c8: 699b ldr r3, [r3, #24]
  13666. 80057ca: f003 0301 and.w r3, r3, #1
  13667. 80057ce: 60bb str r3, [r7, #8]
  13668. 80057d0: 68bb ldr r3, [r7, #8]
  13669. __HAL_RCC_PWR_CLK_ENABLE();
  13670. 80057d2: 4b0f ldr r3, [pc, #60] ; (8005810 <HAL_MspInit+0x5c>)
  13671. 80057d4: 69db ldr r3, [r3, #28]
  13672. 80057d6: 4a0e ldr r2, [pc, #56] ; (8005810 <HAL_MspInit+0x5c>)
  13673. 80057d8: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  13674. 80057dc: 61d3 str r3, [r2, #28]
  13675. 80057de: 4b0c ldr r3, [pc, #48] ; (8005810 <HAL_MspInit+0x5c>)
  13676. 80057e0: 69db ldr r3, [r3, #28]
  13677. 80057e2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  13678. 80057e6: 607b str r3, [r7, #4]
  13679. 80057e8: 687b ldr r3, [r7, #4]
  13680. /* System interrupt init*/
  13681. /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled
  13682. */
  13683. __HAL_AFIO_REMAP_SWJ_NOJTAG();
  13684. 80057ea: 4b0a ldr r3, [pc, #40] ; (8005814 <HAL_MspInit+0x60>)
  13685. 80057ec: 685b ldr r3, [r3, #4]
  13686. 80057ee: 60fb str r3, [r7, #12]
  13687. 80057f0: 68fb ldr r3, [r7, #12]
  13688. 80057f2: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000
  13689. 80057f6: 60fb str r3, [r7, #12]
  13690. 80057f8: 68fb ldr r3, [r7, #12]
  13691. 80057fa: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000
  13692. 80057fe: 60fb str r3, [r7, #12]
  13693. 8005800: 4a04 ldr r2, [pc, #16] ; (8005814 <HAL_MspInit+0x60>)
  13694. 8005802: 68fb ldr r3, [r7, #12]
  13695. 8005804: 6053 str r3, [r2, #4]
  13696. /* USER CODE BEGIN MspInit 1 */
  13697. /* USER CODE END MspInit 1 */
  13698. }
  13699. 8005806: bf00 nop
  13700. 8005808: 3714 adds r7, #20
  13701. 800580a: 46bd mov sp, r7
  13702. 800580c: bc80 pop {r7}
  13703. 800580e: 4770 bx lr
  13704. 8005810: 40021000 .word 0x40021000
  13705. 8005814: 40010000 .word 0x40010000
  13706. 08005818 <HAL_ADC_MspInit>:
  13707. * This function configures the hardware resources used in this example
  13708. * @param hadc: ADC handle pointer
  13709. * @retval None
  13710. */
  13711. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  13712. {
  13713. 8005818: b580 push {r7, lr}
  13714. 800581a: b088 sub sp, #32
  13715. 800581c: af00 add r7, sp, #0
  13716. 800581e: 6078 str r0, [r7, #4]
  13717. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13718. 8005820: f107 0310 add.w r3, r7, #16
  13719. 8005824: 2200 movs r2, #0
  13720. 8005826: 601a str r2, [r3, #0]
  13721. 8005828: 605a str r2, [r3, #4]
  13722. 800582a: 609a str r2, [r3, #8]
  13723. 800582c: 60da str r2, [r3, #12]
  13724. if(hadc->Instance==ADC1)
  13725. 800582e: 687b ldr r3, [r7, #4]
  13726. 8005830: 681b ldr r3, [r3, #0]
  13727. 8005832: 4a28 ldr r2, [pc, #160] ; (80058d4 <HAL_ADC_MspInit+0xbc>)
  13728. 8005834: 4293 cmp r3, r2
  13729. 8005836: d149 bne.n 80058cc <HAL_ADC_MspInit+0xb4>
  13730. {
  13731. /* USER CODE BEGIN ADC1_MspInit 0 */
  13732. /* USER CODE END ADC1_MspInit 0 */
  13733. /* Peripheral clock enable */
  13734. __HAL_RCC_ADC1_CLK_ENABLE();
  13735. 8005838: 4b27 ldr r3, [pc, #156] ; (80058d8 <HAL_ADC_MspInit+0xc0>)
  13736. 800583a: 699b ldr r3, [r3, #24]
  13737. 800583c: 4a26 ldr r2, [pc, #152] ; (80058d8 <HAL_ADC_MspInit+0xc0>)
  13738. 800583e: f443 7300 orr.w r3, r3, #512 ; 0x200
  13739. 8005842: 6193 str r3, [r2, #24]
  13740. 8005844: 4b24 ldr r3, [pc, #144] ; (80058d8 <HAL_ADC_MspInit+0xc0>)
  13741. 8005846: 699b ldr r3, [r3, #24]
  13742. 8005848: f403 7300 and.w r3, r3, #512 ; 0x200
  13743. 800584c: 60fb str r3, [r7, #12]
  13744. 800584e: 68fb ldr r3, [r7, #12]
  13745. __HAL_RCC_GPIOA_CLK_ENABLE();
  13746. 8005850: 4b21 ldr r3, [pc, #132] ; (80058d8 <HAL_ADC_MspInit+0xc0>)
  13747. 8005852: 699b ldr r3, [r3, #24]
  13748. 8005854: 4a20 ldr r2, [pc, #128] ; (80058d8 <HAL_ADC_MspInit+0xc0>)
  13749. 8005856: f043 0304 orr.w r3, r3, #4
  13750. 800585a: 6193 str r3, [r2, #24]
  13751. 800585c: 4b1e ldr r3, [pc, #120] ; (80058d8 <HAL_ADC_MspInit+0xc0>)
  13752. 800585e: 699b ldr r3, [r3, #24]
  13753. 8005860: f003 0304 and.w r3, r3, #4
  13754. 8005864: 60bb str r3, [r7, #8]
  13755. 8005866: 68bb ldr r3, [r7, #8]
  13756. /**ADC1 GPIO Configuration
  13757. PA0-WKUP ------> ADC1_IN0
  13758. PA1 ------> ADC1_IN1
  13759. PA3 ------> ADC1_IN3
  13760. */
  13761. GPIO_InitStruct.Pin = DL_TX_DET_Pin|DL_RX_DET_Pin|PAU_TEMP_Pin;
  13762. 8005868: 230b movs r3, #11
  13763. 800586a: 613b str r3, [r7, #16]
  13764. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  13765. 800586c: 2303 movs r3, #3
  13766. 800586e: 617b str r3, [r7, #20]
  13767. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13768. 8005870: f107 0310 add.w r3, r7, #16
  13769. 8005874: 4619 mov r1, r3
  13770. 8005876: 4819 ldr r0, [pc, #100] ; (80058dc <HAL_ADC_MspInit+0xc4>)
  13771. 8005878: f7fd fc48 bl 800310c <HAL_GPIO_Init>
  13772. /* ADC1 DMA Init */
  13773. /* ADC1 Init */
  13774. hdma_adc1.Instance = DMA1_Channel1;
  13775. 800587c: 4b18 ldr r3, [pc, #96] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13776. 800587e: 4a19 ldr r2, [pc, #100] ; (80058e4 <HAL_ADC_MspInit+0xcc>)
  13777. 8005880: 601a str r2, [r3, #0]
  13778. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  13779. 8005882: 4b17 ldr r3, [pc, #92] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13780. 8005884: 2200 movs r2, #0
  13781. 8005886: 605a str r2, [r3, #4]
  13782. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  13783. 8005888: 4b15 ldr r3, [pc, #84] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13784. 800588a: 2200 movs r2, #0
  13785. 800588c: 609a str r2, [r3, #8]
  13786. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  13787. 800588e: 4b14 ldr r3, [pc, #80] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13788. 8005890: 2280 movs r2, #128 ; 0x80
  13789. 8005892: 60da str r2, [r3, #12]
  13790. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  13791. 8005894: 4b12 ldr r3, [pc, #72] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13792. 8005896: f44f 7280 mov.w r2, #256 ; 0x100
  13793. 800589a: 611a str r2, [r3, #16]
  13794. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  13795. 800589c: 4b10 ldr r3, [pc, #64] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13796. 800589e: f44f 6280 mov.w r2, #1024 ; 0x400
  13797. 80058a2: 615a str r2, [r3, #20]
  13798. hdma_adc1.Init.Mode = DMA_CIRCULAR;
  13799. 80058a4: 4b0e ldr r3, [pc, #56] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13800. 80058a6: 2220 movs r2, #32
  13801. 80058a8: 619a str r2, [r3, #24]
  13802. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  13803. 80058aa: 4b0d ldr r3, [pc, #52] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13804. 80058ac: 2200 movs r2, #0
  13805. 80058ae: 61da str r2, [r3, #28]
  13806. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  13807. 80058b0: 480b ldr r0, [pc, #44] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13808. 80058b2: f7fc ffc7 bl 8002844 <HAL_DMA_Init>
  13809. 80058b6: 4603 mov r3, r0
  13810. 80058b8: 2b00 cmp r3, #0
  13811. 80058ba: d001 beq.n 80058c0 <HAL_ADC_MspInit+0xa8>
  13812. {
  13813. Error_Handler();
  13814. 80058bc: f7ff ff74 bl 80057a8 <Error_Handler>
  13815. }
  13816. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  13817. 80058c0: 687b ldr r3, [r7, #4]
  13818. 80058c2: 4a07 ldr r2, [pc, #28] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13819. 80058c4: 621a str r2, [r3, #32]
  13820. 80058c6: 4a06 ldr r2, [pc, #24] ; (80058e0 <HAL_ADC_MspInit+0xc8>)
  13821. 80058c8: 687b ldr r3, [r7, #4]
  13822. 80058ca: 6253 str r3, [r2, #36] ; 0x24
  13823. /* USER CODE BEGIN ADC1_MspInit 1 */
  13824. /* USER CODE END ADC1_MspInit 1 */
  13825. }
  13826. }
  13827. 80058cc: bf00 nop
  13828. 80058ce: 3720 adds r7, #32
  13829. 80058d0: 46bd mov sp, r7
  13830. 80058d2: bd80 pop {r7, pc}
  13831. 80058d4: 40012400 .word 0x40012400
  13832. 80058d8: 40021000 .word 0x40021000
  13833. 80058dc: 40010800 .word 0x40010800
  13834. 80058e0: 20000ad0 .word 0x20000ad0
  13835. 80058e4: 40020008 .word 0x40020008
  13836. 080058e8 <HAL_TIM_Base_MspInit>:
  13837. * This function configures the hardware resources used in this example
  13838. * @param htim_base: TIM_Base handle pointer
  13839. * @retval None
  13840. */
  13841. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  13842. {
  13843. 80058e8: b480 push {r7}
  13844. 80058ea: b085 sub sp, #20
  13845. 80058ec: af00 add r7, sp, #0
  13846. 80058ee: 6078 str r0, [r7, #4]
  13847. if(htim_base->Instance==TIM6)
  13848. 80058f0: 687b ldr r3, [r7, #4]
  13849. 80058f2: 681b ldr r3, [r3, #0]
  13850. 80058f4: 4a09 ldr r2, [pc, #36] ; (800591c <HAL_TIM_Base_MspInit+0x34>)
  13851. 80058f6: 4293 cmp r3, r2
  13852. 80058f8: d10b bne.n 8005912 <HAL_TIM_Base_MspInit+0x2a>
  13853. {
  13854. /* USER CODE BEGIN TIM6_MspInit 0 */
  13855. /* USER CODE END TIM6_MspInit 0 */
  13856. /* Peripheral clock enable */
  13857. __HAL_RCC_TIM6_CLK_ENABLE();
  13858. 80058fa: 4b09 ldr r3, [pc, #36] ; (8005920 <HAL_TIM_Base_MspInit+0x38>)
  13859. 80058fc: 69db ldr r3, [r3, #28]
  13860. 80058fe: 4a08 ldr r2, [pc, #32] ; (8005920 <HAL_TIM_Base_MspInit+0x38>)
  13861. 8005900: f043 0310 orr.w r3, r3, #16
  13862. 8005904: 61d3 str r3, [r2, #28]
  13863. 8005906: 4b06 ldr r3, [pc, #24] ; (8005920 <HAL_TIM_Base_MspInit+0x38>)
  13864. 8005908: 69db ldr r3, [r3, #28]
  13865. 800590a: f003 0310 and.w r3, r3, #16
  13866. 800590e: 60fb str r3, [r7, #12]
  13867. 8005910: 68fb ldr r3, [r7, #12]
  13868. /* USER CODE BEGIN TIM6_MspInit 1 */
  13869. /* USER CODE END TIM6_MspInit 1 */
  13870. }
  13871. }
  13872. 8005912: bf00 nop
  13873. 8005914: 3714 adds r7, #20
  13874. 8005916: 46bd mov sp, r7
  13875. 8005918: bc80 pop {r7}
  13876. 800591a: 4770 bx lr
  13877. 800591c: 40001000 .word 0x40001000
  13878. 8005920: 40021000 .word 0x40021000
  13879. 08005924 <HAL_UART_MspInit>:
  13880. * This function configures the hardware resources used in this example
  13881. * @param huart: UART handle pointer
  13882. * @retval None
  13883. */
  13884. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  13885. {
  13886. 8005924: b580 push {r7, lr}
  13887. 8005926: b08a sub sp, #40 ; 0x28
  13888. 8005928: af00 add r7, sp, #0
  13889. 800592a: 6078 str r0, [r7, #4]
  13890. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13891. 800592c: f107 0318 add.w r3, r7, #24
  13892. 8005930: 2200 movs r2, #0
  13893. 8005932: 601a str r2, [r3, #0]
  13894. 8005934: 605a str r2, [r3, #4]
  13895. 8005936: 609a str r2, [r3, #8]
  13896. 8005938: 60da str r2, [r3, #12]
  13897. if(huart->Instance==USART1)
  13898. 800593a: 687b ldr r3, [r7, #4]
  13899. 800593c: 681b ldr r3, [r3, #0]
  13900. 800593e: 4a84 ldr r2, [pc, #528] ; (8005b50 <HAL_UART_MspInit+0x22c>)
  13901. 8005940: 4293 cmp r3, r2
  13902. 8005942: d17e bne.n 8005a42 <HAL_UART_MspInit+0x11e>
  13903. {
  13904. /* USER CODE BEGIN USART1_MspInit 0 */
  13905. /* USER CODE END USART1_MspInit 0 */
  13906. /* Peripheral clock enable */
  13907. __HAL_RCC_USART1_CLK_ENABLE();
  13908. 8005944: 4b83 ldr r3, [pc, #524] ; (8005b54 <HAL_UART_MspInit+0x230>)
  13909. 8005946: 699b ldr r3, [r3, #24]
  13910. 8005948: 4a82 ldr r2, [pc, #520] ; (8005b54 <HAL_UART_MspInit+0x230>)
  13911. 800594a: f443 4380 orr.w r3, r3, #16384 ; 0x4000
  13912. 800594e: 6193 str r3, [r2, #24]
  13913. 8005950: 4b80 ldr r3, [pc, #512] ; (8005b54 <HAL_UART_MspInit+0x230>)
  13914. 8005952: 699b ldr r3, [r3, #24]
  13915. 8005954: f403 4380 and.w r3, r3, #16384 ; 0x4000
  13916. 8005958: 617b str r3, [r7, #20]
  13917. 800595a: 697b ldr r3, [r7, #20]
  13918. __HAL_RCC_GPIOA_CLK_ENABLE();
  13919. 800595c: 4b7d ldr r3, [pc, #500] ; (8005b54 <HAL_UART_MspInit+0x230>)
  13920. 800595e: 699b ldr r3, [r3, #24]
  13921. 8005960: 4a7c ldr r2, [pc, #496] ; (8005b54 <HAL_UART_MspInit+0x230>)
  13922. 8005962: f043 0304 orr.w r3, r3, #4
  13923. 8005966: 6193 str r3, [r2, #24]
  13924. 8005968: 4b7a ldr r3, [pc, #488] ; (8005b54 <HAL_UART_MspInit+0x230>)
  13925. 800596a: 699b ldr r3, [r3, #24]
  13926. 800596c: f003 0304 and.w r3, r3, #4
  13927. 8005970: 613b str r3, [r7, #16]
  13928. 8005972: 693b ldr r3, [r7, #16]
  13929. /**USART1 GPIO Configuration
  13930. PA9 ------> USART1_TX
  13931. PA10 ------> USART1_RX
  13932. */
  13933. GPIO_InitStruct.Pin = GPIO_PIN_9;
  13934. 8005974: f44f 7300 mov.w r3, #512 ; 0x200
  13935. 8005978: 61bb str r3, [r7, #24]
  13936. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  13937. 800597a: 2302 movs r3, #2
  13938. 800597c: 61fb str r3, [r7, #28]
  13939. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  13940. 800597e: 2303 movs r3, #3
  13941. 8005980: 627b str r3, [r7, #36] ; 0x24
  13942. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13943. 8005982: f107 0318 add.w r3, r7, #24
  13944. 8005986: 4619 mov r1, r3
  13945. 8005988: 4873 ldr r0, [pc, #460] ; (8005b58 <HAL_UART_MspInit+0x234>)
  13946. 800598a: f7fd fbbf bl 800310c <HAL_GPIO_Init>
  13947. GPIO_InitStruct.Pin = GPIO_PIN_10;
  13948. 800598e: f44f 6380 mov.w r3, #1024 ; 0x400
  13949. 8005992: 61bb str r3, [r7, #24]
  13950. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13951. 8005994: 2300 movs r3, #0
  13952. 8005996: 61fb str r3, [r7, #28]
  13953. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13954. 8005998: 2300 movs r3, #0
  13955. 800599a: 623b str r3, [r7, #32]
  13956. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13957. 800599c: f107 0318 add.w r3, r7, #24
  13958. 80059a0: 4619 mov r1, r3
  13959. 80059a2: 486d ldr r0, [pc, #436] ; (8005b58 <HAL_UART_MspInit+0x234>)
  13960. 80059a4: f7fd fbb2 bl 800310c <HAL_GPIO_Init>
  13961. /* USART1 DMA Init */
  13962. /* USART1_TX Init */
  13963. hdma_usart1_tx.Instance = DMA1_Channel4;
  13964. 80059a8: 4b6c ldr r3, [pc, #432] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13965. 80059aa: 4a6d ldr r2, [pc, #436] ; (8005b60 <HAL_UART_MspInit+0x23c>)
  13966. 80059ac: 601a str r2, [r3, #0]
  13967. hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  13968. 80059ae: 4b6b ldr r3, [pc, #428] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13969. 80059b0: 2210 movs r2, #16
  13970. 80059b2: 605a str r2, [r3, #4]
  13971. hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  13972. 80059b4: 4b69 ldr r3, [pc, #420] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13973. 80059b6: 2200 movs r2, #0
  13974. 80059b8: 609a str r2, [r3, #8]
  13975. hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE;
  13976. 80059ba: 4b68 ldr r3, [pc, #416] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13977. 80059bc: 2280 movs r2, #128 ; 0x80
  13978. 80059be: 60da str r2, [r3, #12]
  13979. hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13980. 80059c0: 4b66 ldr r3, [pc, #408] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13981. 80059c2: 2200 movs r2, #0
  13982. 80059c4: 611a str r2, [r3, #16]
  13983. hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13984. 80059c6: 4b65 ldr r3, [pc, #404] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13985. 80059c8: 2200 movs r2, #0
  13986. 80059ca: 615a str r2, [r3, #20]
  13987. hdma_usart1_tx.Init.Mode = DMA_NORMAL;
  13988. 80059cc: 4b63 ldr r3, [pc, #396] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13989. 80059ce: 2200 movs r2, #0
  13990. 80059d0: 619a str r2, [r3, #24]
  13991. hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW;
  13992. 80059d2: 4b62 ldr r3, [pc, #392] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13993. 80059d4: 2200 movs r2, #0
  13994. 80059d6: 61da str r2, [r3, #28]
  13995. if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK)
  13996. 80059d8: 4860 ldr r0, [pc, #384] ; (8005b5c <HAL_UART_MspInit+0x238>)
  13997. 80059da: f7fc ff33 bl 8002844 <HAL_DMA_Init>
  13998. 80059de: 4603 mov r3, r0
  13999. 80059e0: 2b00 cmp r3, #0
  14000. 80059e2: d001 beq.n 80059e8 <HAL_UART_MspInit+0xc4>
  14001. {
  14002. Error_Handler();
  14003. 80059e4: f7ff fee0 bl 80057a8 <Error_Handler>
  14004. }
  14005. __HAL_LINKDMA(huart,hdmatx,hdma_usart1_tx);
  14006. 80059e8: 687b ldr r3, [r7, #4]
  14007. 80059ea: 4a5c ldr r2, [pc, #368] ; (8005b5c <HAL_UART_MspInit+0x238>)
  14008. 80059ec: 631a str r2, [r3, #48] ; 0x30
  14009. 80059ee: 4a5b ldr r2, [pc, #364] ; (8005b5c <HAL_UART_MspInit+0x238>)
  14010. 80059f0: 687b ldr r3, [r7, #4]
  14011. 80059f2: 6253 str r3, [r2, #36] ; 0x24
  14012. /* USART1_RX Init */
  14013. hdma_usart1_rx.Instance = DMA1_Channel5;
  14014. 80059f4: 4b5b ldr r3, [pc, #364] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14015. 80059f6: 4a5c ldr r2, [pc, #368] ; (8005b68 <HAL_UART_MspInit+0x244>)
  14016. 80059f8: 601a str r2, [r3, #0]
  14017. hdma_usart1_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  14018. 80059fa: 4b5a ldr r3, [pc, #360] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14019. 80059fc: 2200 movs r2, #0
  14020. 80059fe: 605a str r2, [r3, #4]
  14021. hdma_usart1_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  14022. 8005a00: 4b58 ldr r3, [pc, #352] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14023. 8005a02: 2200 movs r2, #0
  14024. 8005a04: 609a str r2, [r3, #8]
  14025. hdma_usart1_rx.Init.MemInc = DMA_MINC_ENABLE;
  14026. 8005a06: 4b57 ldr r3, [pc, #348] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14027. 8005a08: 2280 movs r2, #128 ; 0x80
  14028. 8005a0a: 60da str r2, [r3, #12]
  14029. hdma_usart1_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  14030. 8005a0c: 4b55 ldr r3, [pc, #340] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14031. 8005a0e: 2200 movs r2, #0
  14032. 8005a10: 611a str r2, [r3, #16]
  14033. hdma_usart1_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  14034. 8005a12: 4b54 ldr r3, [pc, #336] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14035. 8005a14: 2200 movs r2, #0
  14036. 8005a16: 615a str r2, [r3, #20]
  14037. hdma_usart1_rx.Init.Mode = DMA_NORMAL;
  14038. 8005a18: 4b52 ldr r3, [pc, #328] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14039. 8005a1a: 2200 movs r2, #0
  14040. 8005a1c: 619a str r2, [r3, #24]
  14041. hdma_usart1_rx.Init.Priority = DMA_PRIORITY_LOW;
  14042. 8005a1e: 4b51 ldr r3, [pc, #324] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14043. 8005a20: 2200 movs r2, #0
  14044. 8005a22: 61da str r2, [r3, #28]
  14045. if (HAL_DMA_Init(&hdma_usart1_rx) != HAL_OK)
  14046. 8005a24: 484f ldr r0, [pc, #316] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14047. 8005a26: f7fc ff0d bl 8002844 <HAL_DMA_Init>
  14048. 8005a2a: 4603 mov r3, r0
  14049. 8005a2c: 2b00 cmp r3, #0
  14050. 8005a2e: d001 beq.n 8005a34 <HAL_UART_MspInit+0x110>
  14051. {
  14052. Error_Handler();
  14053. 8005a30: f7ff feba bl 80057a8 <Error_Handler>
  14054. }
  14055. __HAL_LINKDMA(huart,hdmarx,hdma_usart1_rx);
  14056. 8005a34: 687b ldr r3, [r7, #4]
  14057. 8005a36: 4a4b ldr r2, [pc, #300] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14058. 8005a38: 635a str r2, [r3, #52] ; 0x34
  14059. 8005a3a: 4a4a ldr r2, [pc, #296] ; (8005b64 <HAL_UART_MspInit+0x240>)
  14060. 8005a3c: 687b ldr r3, [r7, #4]
  14061. 8005a3e: 6253 str r3, [r2, #36] ; 0x24
  14062. /* USER CODE BEGIN USART3_MspInit 1 */
  14063. /* USER CODE END USART3_MspInit 1 */
  14064. }
  14065. }
  14066. 8005a40: e082 b.n 8005b48 <HAL_UART_MspInit+0x224>
  14067. else if(huart->Instance==USART3)
  14068. 8005a42: 687b ldr r3, [r7, #4]
  14069. 8005a44: 681b ldr r3, [r3, #0]
  14070. 8005a46: 4a49 ldr r2, [pc, #292] ; (8005b6c <HAL_UART_MspInit+0x248>)
  14071. 8005a48: 4293 cmp r3, r2
  14072. 8005a4a: d17d bne.n 8005b48 <HAL_UART_MspInit+0x224>
  14073. __HAL_RCC_USART3_CLK_ENABLE();
  14074. 8005a4c: 4b41 ldr r3, [pc, #260] ; (8005b54 <HAL_UART_MspInit+0x230>)
  14075. 8005a4e: 69db ldr r3, [r3, #28]
  14076. 8005a50: 4a40 ldr r2, [pc, #256] ; (8005b54 <HAL_UART_MspInit+0x230>)
  14077. 8005a52: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  14078. 8005a56: 61d3 str r3, [r2, #28]
  14079. 8005a58: 4b3e ldr r3, [pc, #248] ; (8005b54 <HAL_UART_MspInit+0x230>)
  14080. 8005a5a: 69db ldr r3, [r3, #28]
  14081. 8005a5c: f403 2380 and.w r3, r3, #262144 ; 0x40000
  14082. 8005a60: 60fb str r3, [r7, #12]
  14083. 8005a62: 68fb ldr r3, [r7, #12]
  14084. __HAL_RCC_GPIOB_CLK_ENABLE();
  14085. 8005a64: 4b3b ldr r3, [pc, #236] ; (8005b54 <HAL_UART_MspInit+0x230>)
  14086. 8005a66: 699b ldr r3, [r3, #24]
  14087. 8005a68: 4a3a ldr r2, [pc, #232] ; (8005b54 <HAL_UART_MspInit+0x230>)
  14088. 8005a6a: f043 0308 orr.w r3, r3, #8
  14089. 8005a6e: 6193 str r3, [r2, #24]
  14090. 8005a70: 4b38 ldr r3, [pc, #224] ; (8005b54 <HAL_UART_MspInit+0x230>)
  14091. 8005a72: 699b ldr r3, [r3, #24]
  14092. 8005a74: f003 0308 and.w r3, r3, #8
  14093. 8005a78: 60bb str r3, [r7, #8]
  14094. 8005a7a: 68bb ldr r3, [r7, #8]
  14095. GPIO_InitStruct.Pin = GPIO_PIN_10;
  14096. 8005a7c: f44f 6380 mov.w r3, #1024 ; 0x400
  14097. 8005a80: 61bb str r3, [r7, #24]
  14098. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  14099. 8005a82: 2302 movs r3, #2
  14100. 8005a84: 61fb str r3, [r7, #28]
  14101. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  14102. 8005a86: 2303 movs r3, #3
  14103. 8005a88: 627b str r3, [r7, #36] ; 0x24
  14104. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  14105. 8005a8a: f107 0318 add.w r3, r7, #24
  14106. 8005a8e: 4619 mov r1, r3
  14107. 8005a90: 4837 ldr r0, [pc, #220] ; (8005b70 <HAL_UART_MspInit+0x24c>)
  14108. 8005a92: f7fd fb3b bl 800310c <HAL_GPIO_Init>
  14109. GPIO_InitStruct.Pin = GPIO_PIN_11;
  14110. 8005a96: f44f 6300 mov.w r3, #2048 ; 0x800
  14111. 8005a9a: 61bb str r3, [r7, #24]
  14112. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  14113. 8005a9c: 2300 movs r3, #0
  14114. 8005a9e: 61fb str r3, [r7, #28]
  14115. GPIO_InitStruct.Pull = GPIO_NOPULL;
  14116. 8005aa0: 2300 movs r3, #0
  14117. 8005aa2: 623b str r3, [r7, #32]
  14118. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  14119. 8005aa4: f107 0318 add.w r3, r7, #24
  14120. 8005aa8: 4619 mov r1, r3
  14121. 8005aaa: 4831 ldr r0, [pc, #196] ; (8005b70 <HAL_UART_MspInit+0x24c>)
  14122. 8005aac: f7fd fb2e bl 800310c <HAL_GPIO_Init>
  14123. hdma_usart3_tx.Instance = DMA1_Channel2;
  14124. 8005ab0: 4b30 ldr r3, [pc, #192] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14125. 8005ab2: 4a31 ldr r2, [pc, #196] ; (8005b78 <HAL_UART_MspInit+0x254>)
  14126. 8005ab4: 601a str r2, [r3, #0]
  14127. hdma_usart3_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  14128. 8005ab6: 4b2f ldr r3, [pc, #188] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14129. 8005ab8: 2210 movs r2, #16
  14130. 8005aba: 605a str r2, [r3, #4]
  14131. hdma_usart3_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  14132. 8005abc: 4b2d ldr r3, [pc, #180] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14133. 8005abe: 2200 movs r2, #0
  14134. 8005ac0: 609a str r2, [r3, #8]
  14135. hdma_usart3_tx.Init.MemInc = DMA_MINC_ENABLE;
  14136. 8005ac2: 4b2c ldr r3, [pc, #176] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14137. 8005ac4: 2280 movs r2, #128 ; 0x80
  14138. 8005ac6: 60da str r2, [r3, #12]
  14139. hdma_usart3_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  14140. 8005ac8: 4b2a ldr r3, [pc, #168] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14141. 8005aca: 2200 movs r2, #0
  14142. 8005acc: 611a str r2, [r3, #16]
  14143. hdma_usart3_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  14144. 8005ace: 4b29 ldr r3, [pc, #164] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14145. 8005ad0: 2200 movs r2, #0
  14146. 8005ad2: 615a str r2, [r3, #20]
  14147. hdma_usart3_tx.Init.Mode = DMA_NORMAL;
  14148. 8005ad4: 4b27 ldr r3, [pc, #156] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14149. 8005ad6: 2200 movs r2, #0
  14150. 8005ad8: 619a str r2, [r3, #24]
  14151. hdma_usart3_tx.Init.Priority = DMA_PRIORITY_LOW;
  14152. 8005ada: 4b26 ldr r3, [pc, #152] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14153. 8005adc: 2200 movs r2, #0
  14154. 8005ade: 61da str r2, [r3, #28]
  14155. if (HAL_DMA_Init(&hdma_usart3_tx) != HAL_OK)
  14156. 8005ae0: 4824 ldr r0, [pc, #144] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14157. 8005ae2: f7fc feaf bl 8002844 <HAL_DMA_Init>
  14158. 8005ae6: 4603 mov r3, r0
  14159. 8005ae8: 2b00 cmp r3, #0
  14160. 8005aea: d001 beq.n 8005af0 <HAL_UART_MspInit+0x1cc>
  14161. Error_Handler();
  14162. 8005aec: f7ff fe5c bl 80057a8 <Error_Handler>
  14163. __HAL_LINKDMA(huart,hdmatx,hdma_usart3_tx);
  14164. 8005af0: 687b ldr r3, [r7, #4]
  14165. 8005af2: 4a20 ldr r2, [pc, #128] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14166. 8005af4: 631a str r2, [r3, #48] ; 0x30
  14167. 8005af6: 4a1f ldr r2, [pc, #124] ; (8005b74 <HAL_UART_MspInit+0x250>)
  14168. 8005af8: 687b ldr r3, [r7, #4]
  14169. 8005afa: 6253 str r3, [r2, #36] ; 0x24
  14170. hdma_usart3_rx.Instance = DMA1_Channel3;
  14171. 8005afc: 4b1f ldr r3, [pc, #124] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14172. 8005afe: 4a20 ldr r2, [pc, #128] ; (8005b80 <HAL_UART_MspInit+0x25c>)
  14173. 8005b00: 601a str r2, [r3, #0]
  14174. hdma_usart3_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  14175. 8005b02: 4b1e ldr r3, [pc, #120] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14176. 8005b04: 2200 movs r2, #0
  14177. 8005b06: 605a str r2, [r3, #4]
  14178. hdma_usart3_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  14179. 8005b08: 4b1c ldr r3, [pc, #112] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14180. 8005b0a: 2200 movs r2, #0
  14181. 8005b0c: 609a str r2, [r3, #8]
  14182. hdma_usart3_rx.Init.MemInc = DMA_MINC_ENABLE;
  14183. 8005b0e: 4b1b ldr r3, [pc, #108] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14184. 8005b10: 2280 movs r2, #128 ; 0x80
  14185. 8005b12: 60da str r2, [r3, #12]
  14186. hdma_usart3_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  14187. 8005b14: 4b19 ldr r3, [pc, #100] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14188. 8005b16: 2200 movs r2, #0
  14189. 8005b18: 611a str r2, [r3, #16]
  14190. hdma_usart3_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  14191. 8005b1a: 4b18 ldr r3, [pc, #96] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14192. 8005b1c: 2200 movs r2, #0
  14193. 8005b1e: 615a str r2, [r3, #20]
  14194. hdma_usart3_rx.Init.Mode = DMA_NORMAL;
  14195. 8005b20: 4b16 ldr r3, [pc, #88] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14196. 8005b22: 2200 movs r2, #0
  14197. 8005b24: 619a str r2, [r3, #24]
  14198. hdma_usart3_rx.Init.Priority = DMA_PRIORITY_LOW;
  14199. 8005b26: 4b15 ldr r3, [pc, #84] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14200. 8005b28: 2200 movs r2, #0
  14201. 8005b2a: 61da str r2, [r3, #28]
  14202. if (HAL_DMA_Init(&hdma_usart3_rx) != HAL_OK)
  14203. 8005b2c: 4813 ldr r0, [pc, #76] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14204. 8005b2e: f7fc fe89 bl 8002844 <HAL_DMA_Init>
  14205. 8005b32: 4603 mov r3, r0
  14206. 8005b34: 2b00 cmp r3, #0
  14207. 8005b36: d001 beq.n 8005b3c <HAL_UART_MspInit+0x218>
  14208. Error_Handler();
  14209. 8005b38: f7ff fe36 bl 80057a8 <Error_Handler>
  14210. __HAL_LINKDMA(huart,hdmarx,hdma_usart3_rx);
  14211. 8005b3c: 687b ldr r3, [r7, #4]
  14212. 8005b3e: 4a0f ldr r2, [pc, #60] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14213. 8005b40: 635a str r2, [r3, #52] ; 0x34
  14214. 8005b42: 4a0e ldr r2, [pc, #56] ; (8005b7c <HAL_UART_MspInit+0x258>)
  14215. 8005b44: 687b ldr r3, [r7, #4]
  14216. 8005b46: 6253 str r3, [r2, #36] ; 0x24
  14217. }
  14218. 8005b48: bf00 nop
  14219. 8005b4a: 3728 adds r7, #40 ; 0x28
  14220. 8005b4c: 46bd mov sp, r7
  14221. 8005b4e: bd80 pop {r7, pc}
  14222. 8005b50: 40013800 .word 0x40013800
  14223. 8005b54: 40021000 .word 0x40021000
  14224. 8005b58: 40010800 .word 0x40010800
  14225. 8005b5c: 200009d8 .word 0x200009d8
  14226. 8005b60: 40020044 .word 0x40020044
  14227. 8005b64: 20000a4c .word 0x20000a4c
  14228. 8005b68: 40020058 .word 0x40020058
  14229. 8005b6c: 40004800 .word 0x40004800
  14230. 8005b70: 40010c00 .word 0x40010c00
  14231. 8005b74: 20000994 .word 0x20000994
  14232. 8005b78: 4002001c .word 0x4002001c
  14233. 8005b7c: 20000910 .word 0x20000910
  14234. 8005b80: 40020030 .word 0x40020030
  14235. 08005b84 <HAL_InitTick>:
  14236. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  14237. * @param TickPriority: Tick interrupt priority.
  14238. * @retval HAL status
  14239. */
  14240. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  14241. {
  14242. 8005b84: b580 push {r7, lr}
  14243. 8005b86: b08c sub sp, #48 ; 0x30
  14244. 8005b88: af00 add r7, sp, #0
  14245. 8005b8a: 6078 str r0, [r7, #4]
  14246. RCC_ClkInitTypeDef clkconfig;
  14247. uint32_t uwTimclock = 0;
  14248. 8005b8c: 2300 movs r3, #0
  14249. 8005b8e: 62fb str r3, [r7, #44] ; 0x2c
  14250. uint32_t uwPrescalerValue = 0;
  14251. 8005b90: 2300 movs r3, #0
  14252. 8005b92: 62bb str r3, [r7, #40] ; 0x28
  14253. uint32_t pFLatency;
  14254. /*Configure the TIM2 IRQ priority */
  14255. HAL_NVIC_SetPriority(TIM2_IRQn, TickPriority ,0);
  14256. 8005b94: 2200 movs r2, #0
  14257. 8005b96: 6879 ldr r1, [r7, #4]
  14258. 8005b98: 201c movs r0, #28
  14259. 8005b9a: f7fc fe28 bl 80027ee <HAL_NVIC_SetPriority>
  14260. /* Enable the TIM2 global Interrupt */
  14261. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  14262. 8005b9e: 201c movs r0, #28
  14263. 8005ba0: f7fc fe41 bl 8002826 <HAL_NVIC_EnableIRQ>
  14264. /* Enable TIM2 clock */
  14265. __HAL_RCC_TIM2_CLK_ENABLE();
  14266. 8005ba4: 4b1f ldr r3, [pc, #124] ; (8005c24 <HAL_InitTick+0xa0>)
  14267. 8005ba6: 69db ldr r3, [r3, #28]
  14268. 8005ba8: 4a1e ldr r2, [pc, #120] ; (8005c24 <HAL_InitTick+0xa0>)
  14269. 8005baa: f043 0301 orr.w r3, r3, #1
  14270. 8005bae: 61d3 str r3, [r2, #28]
  14271. 8005bb0: 4b1c ldr r3, [pc, #112] ; (8005c24 <HAL_InitTick+0xa0>)
  14272. 8005bb2: 69db ldr r3, [r3, #28]
  14273. 8005bb4: f003 0301 and.w r3, r3, #1
  14274. 8005bb8: 60fb str r3, [r7, #12]
  14275. 8005bba: 68fb ldr r3, [r7, #12]
  14276. /* Get clock configuration */
  14277. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  14278. 8005bbc: f107 0210 add.w r2, r7, #16
  14279. 8005bc0: f107 0314 add.w r3, r7, #20
  14280. 8005bc4: 4611 mov r1, r2
  14281. 8005bc6: 4618 mov r0, r3
  14282. 8005bc8: f7fe f810 bl 8003bec <HAL_RCC_GetClockConfig>
  14283. /* Compute TIM2 clock */
  14284. uwTimclock = HAL_RCC_GetPCLK1Freq();
  14285. 8005bcc: f7fd ffe6 bl 8003b9c <HAL_RCC_GetPCLK1Freq>
  14286. 8005bd0: 62f8 str r0, [r7, #44] ; 0x2c
  14287. /* Compute the prescaler value to have TIM2 counter clock equal to 1MHz */
  14288. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000) - 1);
  14289. 8005bd2: 6afb ldr r3, [r7, #44] ; 0x2c
  14290. 8005bd4: 4a14 ldr r2, [pc, #80] ; (8005c28 <HAL_InitTick+0xa4>)
  14291. 8005bd6: fba2 2303 umull r2, r3, r2, r3
  14292. 8005bda: 0c9b lsrs r3, r3, #18
  14293. 8005bdc: 3b01 subs r3, #1
  14294. 8005bde: 62bb str r3, [r7, #40] ; 0x28
  14295. /* Initialize TIM2 */
  14296. htim2.Instance = TIM2;
  14297. 8005be0: 4b12 ldr r3, [pc, #72] ; (8005c2c <HAL_InitTick+0xa8>)
  14298. 8005be2: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
  14299. 8005be6: 601a str r2, [r3, #0]
  14300. + Period = [(TIM2CLK/1000) - 1]. to have a (1/1000) s time base.
  14301. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  14302. + ClockDivision = 0
  14303. + Counter direction = Up
  14304. */
  14305. htim2.Init.Period = (1000000 / 1000) - 1;
  14306. 8005be8: 4b10 ldr r3, [pc, #64] ; (8005c2c <HAL_InitTick+0xa8>)
  14307. 8005bea: f240 32e7 movw r2, #999 ; 0x3e7
  14308. 8005bee: 60da str r2, [r3, #12]
  14309. htim2.Init.Prescaler = uwPrescalerValue;
  14310. 8005bf0: 4a0e ldr r2, [pc, #56] ; (8005c2c <HAL_InitTick+0xa8>)
  14311. 8005bf2: 6abb ldr r3, [r7, #40] ; 0x28
  14312. 8005bf4: 6053 str r3, [r2, #4]
  14313. htim2.Init.ClockDivision = 0;
  14314. 8005bf6: 4b0d ldr r3, [pc, #52] ; (8005c2c <HAL_InitTick+0xa8>)
  14315. 8005bf8: 2200 movs r2, #0
  14316. 8005bfa: 611a str r2, [r3, #16]
  14317. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  14318. 8005bfc: 4b0b ldr r3, [pc, #44] ; (8005c2c <HAL_InitTick+0xa8>)
  14319. 8005bfe: 2200 movs r2, #0
  14320. 8005c00: 609a str r2, [r3, #8]
  14321. if(HAL_TIM_Base_Init(&htim2) == HAL_OK)
  14322. 8005c02: 480a ldr r0, [pc, #40] ; (8005c2c <HAL_InitTick+0xa8>)
  14323. 8005c04: f7fe f93a bl 8003e7c <HAL_TIM_Base_Init>
  14324. 8005c08: 4603 mov r3, r0
  14325. 8005c0a: 2b00 cmp r3, #0
  14326. 8005c0c: d104 bne.n 8005c18 <HAL_InitTick+0x94>
  14327. {
  14328. /* Start the TIM time Base generation in interrupt mode */
  14329. return HAL_TIM_Base_Start_IT(&htim2);
  14330. 8005c0e: 4807 ldr r0, [pc, #28] ; (8005c2c <HAL_InitTick+0xa8>)
  14331. 8005c10: f7fe f95f bl 8003ed2 <HAL_TIM_Base_Start_IT>
  14332. 8005c14: 4603 mov r3, r0
  14333. 8005c16: e000 b.n 8005c1a <HAL_InitTick+0x96>
  14334. }
  14335. /* Return function status */
  14336. return HAL_ERROR;
  14337. 8005c18: 2301 movs r3, #1
  14338. }
  14339. 8005c1a: 4618 mov r0, r3
  14340. 8005c1c: 3730 adds r7, #48 ; 0x30
  14341. 8005c1e: 46bd mov sp, r7
  14342. 8005c20: bd80 pop {r7, pc}
  14343. 8005c22: bf00 nop
  14344. 8005c24: 40021000 .word 0x40021000
  14345. 8005c28: 431bde83 .word 0x431bde83
  14346. 8005c2c: 20000b54 .word 0x20000b54
  14347. 08005c30 <NMI_Handler>:
  14348. /******************************************************************************/
  14349. /**
  14350. * @brief This function handles Non maskable interrupt.
  14351. */
  14352. void NMI_Handler(void)
  14353. {
  14354. 8005c30: b480 push {r7}
  14355. 8005c32: af00 add r7, sp, #0
  14356. /* USER CODE END NonMaskableInt_IRQn 0 */
  14357. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  14358. /* USER CODE END NonMaskableInt_IRQn 1 */
  14359. }
  14360. 8005c34: bf00 nop
  14361. 8005c36: 46bd mov sp, r7
  14362. 8005c38: bc80 pop {r7}
  14363. 8005c3a: 4770 bx lr
  14364. 08005c3c <HardFault_Handler>:
  14365. /**
  14366. * @brief This function handles Hard fault interrupt.
  14367. */
  14368. void HardFault_Handler(void)
  14369. {
  14370. 8005c3c: b480 push {r7}
  14371. 8005c3e: af00 add r7, sp, #0
  14372. /* USER CODE BEGIN HardFault_IRQn 0 */
  14373. /* USER CODE END HardFault_IRQn 0 */
  14374. while (1)
  14375. 8005c40: e7fe b.n 8005c40 <HardFault_Handler+0x4>
  14376. 08005c42 <MemManage_Handler>:
  14377. /**
  14378. * @brief This function handles Memory management fault.
  14379. */
  14380. void MemManage_Handler(void)
  14381. {
  14382. 8005c42: b480 push {r7}
  14383. 8005c44: af00 add r7, sp, #0
  14384. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  14385. /* USER CODE END MemoryManagement_IRQn 0 */
  14386. while (1)
  14387. 8005c46: e7fe b.n 8005c46 <MemManage_Handler+0x4>
  14388. 08005c48 <BusFault_Handler>:
  14389. /**
  14390. * @brief This function handles Prefetch fault, memory access fault.
  14391. */
  14392. void BusFault_Handler(void)
  14393. {
  14394. 8005c48: b480 push {r7}
  14395. 8005c4a: af00 add r7, sp, #0
  14396. /* USER CODE BEGIN BusFault_IRQn 0 */
  14397. /* USER CODE END BusFault_IRQn 0 */
  14398. while (1)
  14399. 8005c4c: e7fe b.n 8005c4c <BusFault_Handler+0x4>
  14400. 08005c4e <UsageFault_Handler>:
  14401. /**
  14402. * @brief This function handles Undefined instruction or illegal state.
  14403. */
  14404. void UsageFault_Handler(void)
  14405. {
  14406. 8005c4e: b480 push {r7}
  14407. 8005c50: af00 add r7, sp, #0
  14408. /* USER CODE BEGIN UsageFault_IRQn 0 */
  14409. /* USER CODE END UsageFault_IRQn 0 */
  14410. while (1)
  14411. 8005c52: e7fe b.n 8005c52 <UsageFault_Handler+0x4>
  14412. 08005c54 <SVC_Handler>:
  14413. /**
  14414. * @brief This function handles System service call via SWI instruction.
  14415. */
  14416. void SVC_Handler(void)
  14417. {
  14418. 8005c54: b480 push {r7}
  14419. 8005c56: af00 add r7, sp, #0
  14420. /* USER CODE END SVCall_IRQn 0 */
  14421. /* USER CODE BEGIN SVCall_IRQn 1 */
  14422. /* USER CODE END SVCall_IRQn 1 */
  14423. }
  14424. 8005c58: bf00 nop
  14425. 8005c5a: 46bd mov sp, r7
  14426. 8005c5c: bc80 pop {r7}
  14427. 8005c5e: 4770 bx lr
  14428. 08005c60 <DebugMon_Handler>:
  14429. /**
  14430. * @brief This function handles Debug monitor.
  14431. */
  14432. void DebugMon_Handler(void)
  14433. {
  14434. 8005c60: b480 push {r7}
  14435. 8005c62: af00 add r7, sp, #0
  14436. /* USER CODE END DebugMonitor_IRQn 0 */
  14437. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  14438. /* USER CODE END DebugMonitor_IRQn 1 */
  14439. }
  14440. 8005c64: bf00 nop
  14441. 8005c66: 46bd mov sp, r7
  14442. 8005c68: bc80 pop {r7}
  14443. 8005c6a: 4770 bx lr
  14444. 08005c6c <PendSV_Handler>:
  14445. /**
  14446. * @brief This function handles Pendable request for system service.
  14447. */
  14448. void PendSV_Handler(void)
  14449. {
  14450. 8005c6c: b480 push {r7}
  14451. 8005c6e: af00 add r7, sp, #0
  14452. /* USER CODE END PendSV_IRQn 0 */
  14453. /* USER CODE BEGIN PendSV_IRQn 1 */
  14454. /* USER CODE END PendSV_IRQn 1 */
  14455. }
  14456. 8005c70: bf00 nop
  14457. 8005c72: 46bd mov sp, r7
  14458. 8005c74: bc80 pop {r7}
  14459. 8005c76: 4770 bx lr
  14460. 08005c78 <DMA1_Channel1_IRQHandler>:
  14461. /**
  14462. * @brief This function handles DMA1 channel1 global interrupt.
  14463. */
  14464. void DMA1_Channel1_IRQHandler(void)
  14465. {
  14466. 8005c78: b580 push {r7, lr}
  14467. 8005c7a: af00 add r7, sp, #0
  14468. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  14469. /* USER CODE END DMA1_Channel1_IRQn 0 */
  14470. HAL_DMA_IRQHandler(&hdma_adc1);
  14471. 8005c7c: 4802 ldr r0, [pc, #8] ; (8005c88 <DMA1_Channel1_IRQHandler+0x10>)
  14472. 8005c7e: f7fc ff11 bl 8002aa4 <HAL_DMA_IRQHandler>
  14473. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  14474. /* USER CODE END DMA1_Channel1_IRQn 1 */
  14475. }
  14476. 8005c82: bf00 nop
  14477. 8005c84: bd80 pop {r7, pc}
  14478. 8005c86: bf00 nop
  14479. 8005c88: 20000ad0 .word 0x20000ad0
  14480. 08005c8c <DMA1_Channel2_IRQHandler>:
  14481. /**
  14482. * @brief This function handles DMA1 channel2 global interrupt.
  14483. */
  14484. void DMA1_Channel2_IRQHandler(void)
  14485. {
  14486. 8005c8c: b580 push {r7, lr}
  14487. 8005c8e: af00 add r7, sp, #0
  14488. /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
  14489. /* USER CODE END DMA1_Channel2_IRQn 0 */
  14490. HAL_DMA_IRQHandler(&hdma_usart3_tx);
  14491. 8005c90: 4802 ldr r0, [pc, #8] ; (8005c9c <DMA1_Channel2_IRQHandler+0x10>)
  14492. 8005c92: f7fc ff07 bl 8002aa4 <HAL_DMA_IRQHandler>
  14493. /* USER CODE BEGIN DMA1_Channel2_IRQn 1 */
  14494. /* USER CODE END DMA1_Channel2_IRQn 1 */
  14495. }
  14496. 8005c96: bf00 nop
  14497. 8005c98: bd80 pop {r7, pc}
  14498. 8005c9a: bf00 nop
  14499. 8005c9c: 20000994 .word 0x20000994
  14500. 08005ca0 <DMA1_Channel3_IRQHandler>:
  14501. /**
  14502. * @brief This function handles DMA1 channel3 global interrupt.
  14503. */
  14504. void DMA1_Channel3_IRQHandler(void)
  14505. {
  14506. 8005ca0: b580 push {r7, lr}
  14507. 8005ca2: af00 add r7, sp, #0
  14508. /* USER CODE BEGIN DMA1_Channel3_IRQn 0 */
  14509. /* USER CODE END DMA1_Channel3_IRQn 0 */
  14510. HAL_DMA_IRQHandler(&hdma_usart3_rx);
  14511. 8005ca4: 4802 ldr r0, [pc, #8] ; (8005cb0 <DMA1_Channel3_IRQHandler+0x10>)
  14512. 8005ca6: f7fc fefd bl 8002aa4 <HAL_DMA_IRQHandler>
  14513. /* USER CODE BEGIN DMA1_Channel3_IRQn 1 */
  14514. /* USER CODE END DMA1_Channel3_IRQn 1 */
  14515. }
  14516. 8005caa: bf00 nop
  14517. 8005cac: bd80 pop {r7, pc}
  14518. 8005cae: bf00 nop
  14519. 8005cb0: 20000910 .word 0x20000910
  14520. 08005cb4 <DMA1_Channel4_IRQHandler>:
  14521. /**
  14522. * @brief This function handles DMA1 channel4 global interrupt.
  14523. */
  14524. void DMA1_Channel4_IRQHandler(void)
  14525. {
  14526. 8005cb4: b580 push {r7, lr}
  14527. 8005cb6: af00 add r7, sp, #0
  14528. /* USER CODE BEGIN DMA1_Channel4_IRQn 0 */
  14529. /* USER CODE END DMA1_Channel4_IRQn 0 */
  14530. HAL_DMA_IRQHandler(&hdma_usart1_tx);
  14531. 8005cb8: 4802 ldr r0, [pc, #8] ; (8005cc4 <DMA1_Channel4_IRQHandler+0x10>)
  14532. 8005cba: f7fc fef3 bl 8002aa4 <HAL_DMA_IRQHandler>
  14533. /* USER CODE BEGIN DMA1_Channel4_IRQn 1 */
  14534. /* USER CODE END DMA1_Channel4_IRQn 1 */
  14535. }
  14536. 8005cbe: bf00 nop
  14537. 8005cc0: bd80 pop {r7, pc}
  14538. 8005cc2: bf00 nop
  14539. 8005cc4: 200009d8 .word 0x200009d8
  14540. 08005cc8 <DMA1_Channel5_IRQHandler>:
  14541. /**
  14542. * @brief This function handles DMA1 channel5 global interrupt.
  14543. */
  14544. void DMA1_Channel5_IRQHandler(void)
  14545. {
  14546. 8005cc8: b580 push {r7, lr}
  14547. 8005cca: af00 add r7, sp, #0
  14548. /* USER CODE BEGIN DMA1_Channel5_IRQn 0 */
  14549. /* USER CODE END DMA1_Channel5_IRQn 0 */
  14550. HAL_DMA_IRQHandler(&hdma_usart1_rx);
  14551. 8005ccc: 4802 ldr r0, [pc, #8] ; (8005cd8 <DMA1_Channel5_IRQHandler+0x10>)
  14552. 8005cce: f7fc fee9 bl 8002aa4 <HAL_DMA_IRQHandler>
  14553. /* USER CODE BEGIN DMA1_Channel5_IRQn 1 */
  14554. /* USER CODE END DMA1_Channel5_IRQn 1 */
  14555. }
  14556. 8005cd2: bf00 nop
  14557. 8005cd4: bd80 pop {r7, pc}
  14558. 8005cd6: bf00 nop
  14559. 8005cd8: 20000a4c .word 0x20000a4c
  14560. 08005cdc <ADC1_IRQHandler>:
  14561. /**
  14562. * @brief This function handles ADC1 global interrupt.
  14563. */
  14564. void ADC1_IRQHandler(void)
  14565. {
  14566. 8005cdc: b580 push {r7, lr}
  14567. 8005cde: af00 add r7, sp, #0
  14568. /* USER CODE BEGIN ADC1_IRQn 0 */
  14569. /* USER CODE END ADC1_IRQn 0 */
  14570. HAL_ADC_IRQHandler(&hadc1);
  14571. 8005ce0: 4802 ldr r0, [pc, #8] ; (8005cec <ADC1_IRQHandler+0x10>)
  14572. 8005ce2: f7fc f961 bl 8001fa8 <HAL_ADC_IRQHandler>
  14573. /* USER CODE BEGIN ADC1_IRQn 1 */
  14574. /* USER CODE END ADC1_IRQn 1 */
  14575. }
  14576. 8005ce6: bf00 nop
  14577. 8005ce8: bd80 pop {r7, pc}
  14578. 8005cea: bf00 nop
  14579. 8005cec: 20000a1c .word 0x20000a1c
  14580. 08005cf0 <TIM2_IRQHandler>:
  14581. /**
  14582. * @brief This function handles TIM2 global interrupt.
  14583. */
  14584. void TIM2_IRQHandler(void)
  14585. {
  14586. 8005cf0: b580 push {r7, lr}
  14587. 8005cf2: af00 add r7, sp, #0
  14588. /* USER CODE BEGIN TIM2_IRQn 0 */
  14589. /* USER CODE END TIM2_IRQn 0 */
  14590. HAL_TIM_IRQHandler(&htim2);
  14591. 8005cf4: 4802 ldr r0, [pc, #8] ; (8005d00 <TIM2_IRQHandler+0x10>)
  14592. 8005cf6: f7fe f90f bl 8003f18 <HAL_TIM_IRQHandler>
  14593. /* USER CODE BEGIN TIM2_IRQn 1 */
  14594. /* USER CODE END TIM2_IRQn 1 */
  14595. }
  14596. 8005cfa: bf00 nop
  14597. 8005cfc: bd80 pop {r7, pc}
  14598. 8005cfe: bf00 nop
  14599. 8005d00: 20000b54 .word 0x20000b54
  14600. 08005d04 <USART1_IRQHandler>:
  14601. /**
  14602. * @brief This function handles USART1 global interrupt.
  14603. */
  14604. void USART1_IRQHandler(void)
  14605. {
  14606. 8005d04: b580 push {r7, lr}
  14607. 8005d06: af00 add r7, sp, #0
  14608. /* USER CODE BEGIN USART1_IRQn 0 */
  14609. /* USER CODE END USART1_IRQn 0 */
  14610. HAL_UART_IRQHandler(&huart1);
  14611. 8005d08: 4802 ldr r0, [pc, #8] ; (8005d14 <USART1_IRQHandler+0x10>)
  14612. 8005d0a: f7fe fd2d bl 8004768 <HAL_UART_IRQHandler>
  14613. /* USER CODE BEGIN USART1_IRQn 1 */
  14614. /* USER CODE END USART1_IRQn 1 */
  14615. }
  14616. 8005d0e: bf00 nop
  14617. 8005d10: bd80 pop {r7, pc}
  14618. 8005d12: bf00 nop
  14619. 8005d14: 20000a90 .word 0x20000a90
  14620. 08005d18 <USART3_IRQHandler>:
  14621. /**
  14622. * @brief This function handles USART3 global interrupt.
  14623. */
  14624. void USART3_IRQHandler(void)
  14625. {
  14626. 8005d18: b580 push {r7, lr}
  14627. 8005d1a: af00 add r7, sp, #0
  14628. /* USER CODE BEGIN USART3_IRQn 0 */
  14629. /* USER CODE END USART3_IRQn 0 */
  14630. HAL_UART_IRQHandler(&huart3);
  14631. 8005d1c: 4802 ldr r0, [pc, #8] ; (8005d28 <USART3_IRQHandler+0x10>)
  14632. 8005d1e: f7fe fd23 bl 8004768 <HAL_UART_IRQHandler>
  14633. /* USER CODE BEGIN USART3_IRQn 1 */
  14634. /* USER CODE END USART3_IRQn 1 */
  14635. }
  14636. 8005d22: bf00 nop
  14637. 8005d24: bd80 pop {r7, pc}
  14638. 8005d26: bf00 nop
  14639. 8005d28: 20000954 .word 0x20000954
  14640. 08005d2c <TIM6_DAC_IRQHandler>:
  14641. /**
  14642. * @brief This function handles TIM6 global interrupt and DAC underrun error interrupts.
  14643. */
  14644. void TIM6_DAC_IRQHandler(void)
  14645. {
  14646. 8005d2c: b580 push {r7, lr}
  14647. 8005d2e: af00 add r7, sp, #0
  14648. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  14649. /* USER CODE END TIM6_DAC_IRQn 0 */
  14650. HAL_TIM_IRQHandler(&htim6);
  14651. 8005d30: 4802 ldr r0, [pc, #8] ; (8005d3c <TIM6_DAC_IRQHandler+0x10>)
  14652. 8005d32: f7fe f8f1 bl 8003f18 <HAL_TIM_IRQHandler>
  14653. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  14654. /* USER CODE END TIM6_DAC_IRQn 1 */
  14655. }
  14656. 8005d36: bf00 nop
  14657. 8005d38: bd80 pop {r7, pc}
  14658. 8005d3a: bf00 nop
  14659. 8005d3c: 20000b14 .word 0x20000b14
  14660. 08005d40 <_read>:
  14661. _kill(status, -1);
  14662. while (1) {} /* Make sure we hang here */
  14663. }
  14664. __attribute__((weak)) int _read(int file, char *ptr, int len)
  14665. {
  14666. 8005d40: b580 push {r7, lr}
  14667. 8005d42: b086 sub sp, #24
  14668. 8005d44: af00 add r7, sp, #0
  14669. 8005d46: 60f8 str r0, [r7, #12]
  14670. 8005d48: 60b9 str r1, [r7, #8]
  14671. 8005d4a: 607a str r2, [r7, #4]
  14672. int DataIdx;
  14673. for (DataIdx = 0; DataIdx < len; DataIdx++)
  14674. 8005d4c: 2300 movs r3, #0
  14675. 8005d4e: 617b str r3, [r7, #20]
  14676. 8005d50: e00a b.n 8005d68 <_read+0x28>
  14677. {
  14678. *ptr++ = __io_getchar();
  14679. 8005d52: f3af 8000 nop.w
  14680. 8005d56: 4601 mov r1, r0
  14681. 8005d58: 68bb ldr r3, [r7, #8]
  14682. 8005d5a: 1c5a adds r2, r3, #1
  14683. 8005d5c: 60ba str r2, [r7, #8]
  14684. 8005d5e: b2ca uxtb r2, r1
  14685. 8005d60: 701a strb r2, [r3, #0]
  14686. for (DataIdx = 0; DataIdx < len; DataIdx++)
  14687. 8005d62: 697b ldr r3, [r7, #20]
  14688. 8005d64: 3301 adds r3, #1
  14689. 8005d66: 617b str r3, [r7, #20]
  14690. 8005d68: 697a ldr r2, [r7, #20]
  14691. 8005d6a: 687b ldr r3, [r7, #4]
  14692. 8005d6c: 429a cmp r2, r3
  14693. 8005d6e: dbf0 blt.n 8005d52 <_read+0x12>
  14694. }
  14695. return len;
  14696. 8005d70: 687b ldr r3, [r7, #4]
  14697. }
  14698. 8005d72: 4618 mov r0, r3
  14699. 8005d74: 3718 adds r7, #24
  14700. 8005d76: 46bd mov sp, r7
  14701. 8005d78: bd80 pop {r7, pc}
  14702. 08005d7a <_close>:
  14703. }
  14704. return len;
  14705. }
  14706. int _close(int file)
  14707. {
  14708. 8005d7a: b480 push {r7}
  14709. 8005d7c: b083 sub sp, #12
  14710. 8005d7e: af00 add r7, sp, #0
  14711. 8005d80: 6078 str r0, [r7, #4]
  14712. return -1;
  14713. 8005d82: f04f 33ff mov.w r3, #4294967295
  14714. }
  14715. 8005d86: 4618 mov r0, r3
  14716. 8005d88: 370c adds r7, #12
  14717. 8005d8a: 46bd mov sp, r7
  14718. 8005d8c: bc80 pop {r7}
  14719. 8005d8e: 4770 bx lr
  14720. 08005d90 <_fstat>:
  14721. int _fstat(int file, struct stat *st)
  14722. {
  14723. 8005d90: b480 push {r7}
  14724. 8005d92: b083 sub sp, #12
  14725. 8005d94: af00 add r7, sp, #0
  14726. 8005d96: 6078 str r0, [r7, #4]
  14727. 8005d98: 6039 str r1, [r7, #0]
  14728. st->st_mode = S_IFCHR;
  14729. 8005d9a: 683b ldr r3, [r7, #0]
  14730. 8005d9c: f44f 5200 mov.w r2, #8192 ; 0x2000
  14731. 8005da0: 605a str r2, [r3, #4]
  14732. return 0;
  14733. 8005da2: 2300 movs r3, #0
  14734. }
  14735. 8005da4: 4618 mov r0, r3
  14736. 8005da6: 370c adds r7, #12
  14737. 8005da8: 46bd mov sp, r7
  14738. 8005daa: bc80 pop {r7}
  14739. 8005dac: 4770 bx lr
  14740. 08005dae <_isatty>:
  14741. int _isatty(int file)
  14742. {
  14743. 8005dae: b480 push {r7}
  14744. 8005db0: b083 sub sp, #12
  14745. 8005db2: af00 add r7, sp, #0
  14746. 8005db4: 6078 str r0, [r7, #4]
  14747. return 1;
  14748. 8005db6: 2301 movs r3, #1
  14749. }
  14750. 8005db8: 4618 mov r0, r3
  14751. 8005dba: 370c adds r7, #12
  14752. 8005dbc: 46bd mov sp, r7
  14753. 8005dbe: bc80 pop {r7}
  14754. 8005dc0: 4770 bx lr
  14755. 08005dc2 <_lseek>:
  14756. int _lseek(int file, int ptr, int dir)
  14757. {
  14758. 8005dc2: b480 push {r7}
  14759. 8005dc4: b085 sub sp, #20
  14760. 8005dc6: af00 add r7, sp, #0
  14761. 8005dc8: 60f8 str r0, [r7, #12]
  14762. 8005dca: 60b9 str r1, [r7, #8]
  14763. 8005dcc: 607a str r2, [r7, #4]
  14764. return 0;
  14765. 8005dce: 2300 movs r3, #0
  14766. }
  14767. 8005dd0: 4618 mov r0, r3
  14768. 8005dd2: 3714 adds r7, #20
  14769. 8005dd4: 46bd mov sp, r7
  14770. 8005dd6: bc80 pop {r7}
  14771. 8005dd8: 4770 bx lr
  14772. ...
  14773. 08005ddc <_sbrk>:
  14774. /**
  14775. _sbrk
  14776. Increase program data space. Malloc and related functions depend on this
  14777. **/
  14778. caddr_t _sbrk(int incr)
  14779. {
  14780. 8005ddc: b580 push {r7, lr}
  14781. 8005dde: b084 sub sp, #16
  14782. 8005de0: af00 add r7, sp, #0
  14783. 8005de2: 6078 str r0, [r7, #4]
  14784. extern char end asm("end");
  14785. static char *heap_end;
  14786. char *prev_heap_end;
  14787. if (heap_end == 0)
  14788. 8005de4: 4b11 ldr r3, [pc, #68] ; (8005e2c <_sbrk+0x50>)
  14789. 8005de6: 681b ldr r3, [r3, #0]
  14790. 8005de8: 2b00 cmp r3, #0
  14791. 8005dea: d102 bne.n 8005df2 <_sbrk+0x16>
  14792. heap_end = &end;
  14793. 8005dec: 4b0f ldr r3, [pc, #60] ; (8005e2c <_sbrk+0x50>)
  14794. 8005dee: 4a10 ldr r2, [pc, #64] ; (8005e30 <_sbrk+0x54>)
  14795. 8005df0: 601a str r2, [r3, #0]
  14796. prev_heap_end = heap_end;
  14797. 8005df2: 4b0e ldr r3, [pc, #56] ; (8005e2c <_sbrk+0x50>)
  14798. 8005df4: 681b ldr r3, [r3, #0]
  14799. 8005df6: 60fb str r3, [r7, #12]
  14800. if (heap_end + incr > stack_ptr)
  14801. 8005df8: 4b0c ldr r3, [pc, #48] ; (8005e2c <_sbrk+0x50>)
  14802. 8005dfa: 681a ldr r2, [r3, #0]
  14803. 8005dfc: 687b ldr r3, [r7, #4]
  14804. 8005dfe: 4413 add r3, r2
  14805. 8005e00: 466a mov r2, sp
  14806. 8005e02: 4293 cmp r3, r2
  14807. 8005e04: d907 bls.n 8005e16 <_sbrk+0x3a>
  14808. {
  14809. errno = ENOMEM;
  14810. 8005e06: f000 f873 bl 8005ef0 <__errno>
  14811. 8005e0a: 4602 mov r2, r0
  14812. 8005e0c: 230c movs r3, #12
  14813. 8005e0e: 6013 str r3, [r2, #0]
  14814. return (caddr_t) -1;
  14815. 8005e10: f04f 33ff mov.w r3, #4294967295
  14816. 8005e14: e006 b.n 8005e24 <_sbrk+0x48>
  14817. }
  14818. heap_end += incr;
  14819. 8005e16: 4b05 ldr r3, [pc, #20] ; (8005e2c <_sbrk+0x50>)
  14820. 8005e18: 681a ldr r2, [r3, #0]
  14821. 8005e1a: 687b ldr r3, [r7, #4]
  14822. 8005e1c: 4413 add r3, r2
  14823. 8005e1e: 4a03 ldr r2, [pc, #12] ; (8005e2c <_sbrk+0x50>)
  14824. 8005e20: 6013 str r3, [r2, #0]
  14825. return (caddr_t) prev_heap_end;
  14826. 8005e22: 68fb ldr r3, [r7, #12]
  14827. }
  14828. 8005e24: 4618 mov r0, r3
  14829. 8005e26: 3710 adds r7, #16
  14830. 8005e28: 46bd mov sp, r7
  14831. 8005e2a: bd80 pop {r7, pc}
  14832. 8005e2c: 2000063c .word 0x2000063c
  14833. 8005e30: 20000b98 .word 0x20000b98
  14834. 08005e34 <SystemInit>:
  14835. * @note This function should be used only after reset.
  14836. * @param None
  14837. * @retval None
  14838. */
  14839. void SystemInit (void)
  14840. {
  14841. 8005e34: b480 push {r7}
  14842. 8005e36: af00 add r7, sp, #0
  14843. /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
  14844. /* Set HSION bit */
  14845. RCC->CR |= 0x00000001U;
  14846. 8005e38: 4b17 ldr r3, [pc, #92] ; (8005e98 <SystemInit+0x64>)
  14847. 8005e3a: 681b ldr r3, [r3, #0]
  14848. 8005e3c: 4a16 ldr r2, [pc, #88] ; (8005e98 <SystemInit+0x64>)
  14849. 8005e3e: f043 0301 orr.w r3, r3, #1
  14850. 8005e42: 6013 str r3, [r2, #0]
  14851. /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
  14852. #if !defined(STM32F105xC) && !defined(STM32F107xC)
  14853. RCC->CFGR &= 0xF8FF0000U;
  14854. 8005e44: 4b14 ldr r3, [pc, #80] ; (8005e98 <SystemInit+0x64>)
  14855. 8005e46: 685a ldr r2, [r3, #4]
  14856. 8005e48: 4913 ldr r1, [pc, #76] ; (8005e98 <SystemInit+0x64>)
  14857. 8005e4a: 4b14 ldr r3, [pc, #80] ; (8005e9c <SystemInit+0x68>)
  14858. 8005e4c: 4013 ands r3, r2
  14859. 8005e4e: 604b str r3, [r1, #4]
  14860. #else
  14861. RCC->CFGR &= 0xF0FF0000U;
  14862. #endif /* STM32F105xC */
  14863. /* Reset HSEON, CSSON and PLLON bits */
  14864. RCC->CR &= 0xFEF6FFFFU;
  14865. 8005e50: 4b11 ldr r3, [pc, #68] ; (8005e98 <SystemInit+0x64>)
  14866. 8005e52: 681b ldr r3, [r3, #0]
  14867. 8005e54: 4a10 ldr r2, [pc, #64] ; (8005e98 <SystemInit+0x64>)
  14868. 8005e56: f023 7384 bic.w r3, r3, #17301504 ; 0x1080000
  14869. 8005e5a: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  14870. 8005e5e: 6013 str r3, [r2, #0]
  14871. /* Reset HSEBYP bit */
  14872. RCC->CR &= 0xFFFBFFFFU;
  14873. 8005e60: 4b0d ldr r3, [pc, #52] ; (8005e98 <SystemInit+0x64>)
  14874. 8005e62: 681b ldr r3, [r3, #0]
  14875. 8005e64: 4a0c ldr r2, [pc, #48] ; (8005e98 <SystemInit+0x64>)
  14876. 8005e66: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  14877. 8005e6a: 6013 str r3, [r2, #0]
  14878. /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */
  14879. RCC->CFGR &= 0xFF80FFFFU;
  14880. 8005e6c: 4b0a ldr r3, [pc, #40] ; (8005e98 <SystemInit+0x64>)
  14881. 8005e6e: 685b ldr r3, [r3, #4]
  14882. 8005e70: 4a09 ldr r2, [pc, #36] ; (8005e98 <SystemInit+0x64>)
  14883. 8005e72: f423 03fe bic.w r3, r3, #8323072 ; 0x7f0000
  14884. 8005e76: 6053 str r3, [r2, #4]
  14885. /* Reset CFGR2 register */
  14886. RCC->CFGR2 = 0x00000000U;
  14887. #elif defined(STM32F100xB) || defined(STM32F100xE)
  14888. /* Disable all interrupts and clear pending bits */
  14889. RCC->CIR = 0x009F0000U;
  14890. 8005e78: 4b07 ldr r3, [pc, #28] ; (8005e98 <SystemInit+0x64>)
  14891. 8005e7a: f44f 021f mov.w r2, #10420224 ; 0x9f0000
  14892. 8005e7e: 609a str r2, [r3, #8]
  14893. /* Reset CFGR2 register */
  14894. RCC->CFGR2 = 0x00000000U;
  14895. 8005e80: 4b05 ldr r3, [pc, #20] ; (8005e98 <SystemInit+0x64>)
  14896. 8005e82: 2200 movs r2, #0
  14897. 8005e84: 62da str r2, [r3, #44] ; 0x2c
  14898. #endif
  14899. #ifdef VECT_TAB_SRAM
  14900. SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  14901. #else
  14902. SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
  14903. 8005e86: 4b06 ldr r3, [pc, #24] ; (8005ea0 <SystemInit+0x6c>)
  14904. 8005e88: f04f 6200 mov.w r2, #134217728 ; 0x8000000
  14905. 8005e8c: 609a str r2, [r3, #8]
  14906. #endif
  14907. }
  14908. 8005e8e: bf00 nop
  14909. 8005e90: 46bd mov sp, r7
  14910. 8005e92: bc80 pop {r7}
  14911. 8005e94: 4770 bx lr
  14912. 8005e96: bf00 nop
  14913. 8005e98: 40021000 .word 0x40021000
  14914. 8005e9c: f8ff0000 .word 0xf8ff0000
  14915. 8005ea0: e000ed00 .word 0xe000ed00
  14916. 08005ea4 <Reset_Handler>:
  14917. .weak Reset_Handler
  14918. .type Reset_Handler, %function
  14919. Reset_Handler:
  14920. /* Copy the data segment initializers from flash to SRAM */
  14921. movs r1, #0
  14922. 8005ea4: 2100 movs r1, #0
  14923. b LoopCopyDataInit
  14924. 8005ea6: e003 b.n 8005eb0 <LoopCopyDataInit>
  14925. 08005ea8 <CopyDataInit>:
  14926. CopyDataInit:
  14927. ldr r3, =_sidata
  14928. 8005ea8: 4b0b ldr r3, [pc, #44] ; (8005ed8 <LoopFillZerobss+0x14>)
  14929. ldr r3, [r3, r1]
  14930. 8005eaa: 585b ldr r3, [r3, r1]
  14931. str r3, [r0, r1]
  14932. 8005eac: 5043 str r3, [r0, r1]
  14933. adds r1, r1, #4
  14934. 8005eae: 3104 adds r1, #4
  14935. 08005eb0 <LoopCopyDataInit>:
  14936. LoopCopyDataInit:
  14937. ldr r0, =_sdata
  14938. 8005eb0: 480a ldr r0, [pc, #40] ; (8005edc <LoopFillZerobss+0x18>)
  14939. ldr r3, =_edata
  14940. 8005eb2: 4b0b ldr r3, [pc, #44] ; (8005ee0 <LoopFillZerobss+0x1c>)
  14941. adds r2, r0, r1
  14942. 8005eb4: 1842 adds r2, r0, r1
  14943. cmp r2, r3
  14944. 8005eb6: 429a cmp r2, r3
  14945. bcc CopyDataInit
  14946. 8005eb8: d3f6 bcc.n 8005ea8 <CopyDataInit>
  14947. ldr r2, =_sbss
  14948. 8005eba: 4a0a ldr r2, [pc, #40] ; (8005ee4 <LoopFillZerobss+0x20>)
  14949. b LoopFillZerobss
  14950. 8005ebc: e002 b.n 8005ec4 <LoopFillZerobss>
  14951. 08005ebe <FillZerobss>:
  14952. /* Zero fill the bss segment. */
  14953. FillZerobss:
  14954. movs r3, #0
  14955. 8005ebe: 2300 movs r3, #0
  14956. str r3, [r2], #4
  14957. 8005ec0: f842 3b04 str.w r3, [r2], #4
  14958. 08005ec4 <LoopFillZerobss>:
  14959. LoopFillZerobss:
  14960. ldr r3, = _ebss
  14961. 8005ec4: 4b08 ldr r3, [pc, #32] ; (8005ee8 <LoopFillZerobss+0x24>)
  14962. cmp r2, r3
  14963. 8005ec6: 429a cmp r2, r3
  14964. bcc FillZerobss
  14965. 8005ec8: d3f9 bcc.n 8005ebe <FillZerobss>
  14966. /* Call the clock system intitialization function.*/
  14967. bl SystemInit
  14968. 8005eca: f7ff ffb3 bl 8005e34 <SystemInit>
  14969. /* Call static constructors */
  14970. bl __libc_init_array
  14971. 8005ece: f000 f815 bl 8005efc <__libc_init_array>
  14972. /* Call the application's entry point.*/
  14973. bl main
  14974. 8005ed2: f7ff f947 bl 8005164 <main>
  14975. bx lr
  14976. 8005ed6: 4770 bx lr
  14977. ldr r3, =_sidata
  14978. 8005ed8: 08008e78 .word 0x08008e78
  14979. ldr r0, =_sdata
  14980. 8005edc: 20000000 .word 0x20000000
  14981. ldr r3, =_edata
  14982. 8005ee0: 200001dc .word 0x200001dc
  14983. ldr r2, =_sbss
  14984. 8005ee4: 200001e0 .word 0x200001e0
  14985. ldr r3, = _ebss
  14986. 8005ee8: 20000b98 .word 0x20000b98
  14987. 08005eec <CEC_IRQHandler>:
  14988. * @retval : None
  14989. */
  14990. .section .text.Default_Handler,"ax",%progbits
  14991. Default_Handler:
  14992. Infinite_Loop:
  14993. b Infinite_Loop
  14994. 8005eec: e7fe b.n 8005eec <CEC_IRQHandler>
  14995. ...
  14996. 08005ef0 <__errno>:
  14997. 8005ef0: 4b01 ldr r3, [pc, #4] ; (8005ef8 <__errno+0x8>)
  14998. 8005ef2: 6818 ldr r0, [r3, #0]
  14999. 8005ef4: 4770 bx lr
  15000. 8005ef6: bf00 nop
  15001. 8005ef8: 2000000c .word 0x2000000c
  15002. 08005efc <__libc_init_array>:
  15003. 8005efc: b570 push {r4, r5, r6, lr}
  15004. 8005efe: 2500 movs r5, #0
  15005. 8005f00: 4e0c ldr r6, [pc, #48] ; (8005f34 <__libc_init_array+0x38>)
  15006. 8005f02: 4c0d ldr r4, [pc, #52] ; (8005f38 <__libc_init_array+0x3c>)
  15007. 8005f04: 1ba4 subs r4, r4, r6
  15008. 8005f06: 10a4 asrs r4, r4, #2
  15009. 8005f08: 42a5 cmp r5, r4
  15010. 8005f0a: d109 bne.n 8005f20 <__libc_init_array+0x24>
  15011. 8005f0c: f002 fc62 bl 80087d4 <_init>
  15012. 8005f10: 2500 movs r5, #0
  15013. 8005f12: 4e0a ldr r6, [pc, #40] ; (8005f3c <__libc_init_array+0x40>)
  15014. 8005f14: 4c0a ldr r4, [pc, #40] ; (8005f40 <__libc_init_array+0x44>)
  15015. 8005f16: 1ba4 subs r4, r4, r6
  15016. 8005f18: 10a4 asrs r4, r4, #2
  15017. 8005f1a: 42a5 cmp r5, r4
  15018. 8005f1c: d105 bne.n 8005f2a <__libc_init_array+0x2e>
  15019. 8005f1e: bd70 pop {r4, r5, r6, pc}
  15020. 8005f20: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  15021. 8005f24: 4798 blx r3
  15022. 8005f26: 3501 adds r5, #1
  15023. 8005f28: e7ee b.n 8005f08 <__libc_init_array+0xc>
  15024. 8005f2a: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  15025. 8005f2e: 4798 blx r3
  15026. 8005f30: 3501 adds r5, #1
  15027. 8005f32: e7f2 b.n 8005f1a <__libc_init_array+0x1e>
  15028. 8005f34: 08008e70 .word 0x08008e70
  15029. 8005f38: 08008e70 .word 0x08008e70
  15030. 8005f3c: 08008e70 .word 0x08008e70
  15031. 8005f40: 08008e74 .word 0x08008e74
  15032. 08005f44 <memset>:
  15033. 8005f44: 4603 mov r3, r0
  15034. 8005f46: 4402 add r2, r0
  15035. 8005f48: 4293 cmp r3, r2
  15036. 8005f4a: d100 bne.n 8005f4e <memset+0xa>
  15037. 8005f4c: 4770 bx lr
  15038. 8005f4e: f803 1b01 strb.w r1, [r3], #1
  15039. 8005f52: e7f9 b.n 8005f48 <memset+0x4>
  15040. 08005f54 <__cvt>:
  15041. 8005f54: 2b00 cmp r3, #0
  15042. 8005f56: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  15043. 8005f5a: 461e mov r6, r3
  15044. 8005f5c: bfbb ittet lt
  15045. 8005f5e: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
  15046. 8005f62: 461e movlt r6, r3
  15047. 8005f64: 2300 movge r3, #0
  15048. 8005f66: 232d movlt r3, #45 ; 0x2d
  15049. 8005f68: b088 sub sp, #32
  15050. 8005f6a: 9f14 ldr r7, [sp, #80] ; 0x50
  15051. 8005f6c: e9dd 1a12 ldrd r1, sl, [sp, #72] ; 0x48
  15052. 8005f70: f027 0720 bic.w r7, r7, #32
  15053. 8005f74: 2f46 cmp r7, #70 ; 0x46
  15054. 8005f76: 4614 mov r4, r2
  15055. 8005f78: 9d10 ldr r5, [sp, #64] ; 0x40
  15056. 8005f7a: 700b strb r3, [r1, #0]
  15057. 8005f7c: d004 beq.n 8005f88 <__cvt+0x34>
  15058. 8005f7e: 2f45 cmp r7, #69 ; 0x45
  15059. 8005f80: d100 bne.n 8005f84 <__cvt+0x30>
  15060. 8005f82: 3501 adds r5, #1
  15061. 8005f84: 2302 movs r3, #2
  15062. 8005f86: e000 b.n 8005f8a <__cvt+0x36>
  15063. 8005f88: 2303 movs r3, #3
  15064. 8005f8a: aa07 add r2, sp, #28
  15065. 8005f8c: 9204 str r2, [sp, #16]
  15066. 8005f8e: aa06 add r2, sp, #24
  15067. 8005f90: e9cd a202 strd sl, r2, [sp, #8]
  15068. 8005f94: e9cd 3500 strd r3, r5, [sp]
  15069. 8005f98: 4622 mov r2, r4
  15070. 8005f9a: 4633 mov r3, r6
  15071. 8005f9c: f000 feac bl 8006cf8 <_dtoa_r>
  15072. 8005fa0: 2f47 cmp r7, #71 ; 0x47
  15073. 8005fa2: 4680 mov r8, r0
  15074. 8005fa4: d102 bne.n 8005fac <__cvt+0x58>
  15075. 8005fa6: 9b11 ldr r3, [sp, #68] ; 0x44
  15076. 8005fa8: 07db lsls r3, r3, #31
  15077. 8005faa: d526 bpl.n 8005ffa <__cvt+0xa6>
  15078. 8005fac: 2f46 cmp r7, #70 ; 0x46
  15079. 8005fae: eb08 0905 add.w r9, r8, r5
  15080. 8005fb2: d111 bne.n 8005fd8 <__cvt+0x84>
  15081. 8005fb4: f898 3000 ldrb.w r3, [r8]
  15082. 8005fb8: 2b30 cmp r3, #48 ; 0x30
  15083. 8005fba: d10a bne.n 8005fd2 <__cvt+0x7e>
  15084. 8005fbc: 2200 movs r2, #0
  15085. 8005fbe: 2300 movs r3, #0
  15086. 8005fc0: 4620 mov r0, r4
  15087. 8005fc2: 4631 mov r1, r6
  15088. 8005fc4: f7fa fd50 bl 8000a68 <__aeabi_dcmpeq>
  15089. 8005fc8: b918 cbnz r0, 8005fd2 <__cvt+0x7e>
  15090. 8005fca: f1c5 0501 rsb r5, r5, #1
  15091. 8005fce: f8ca 5000 str.w r5, [sl]
  15092. 8005fd2: f8da 3000 ldr.w r3, [sl]
  15093. 8005fd6: 4499 add r9, r3
  15094. 8005fd8: 2200 movs r2, #0
  15095. 8005fda: 2300 movs r3, #0
  15096. 8005fdc: 4620 mov r0, r4
  15097. 8005fde: 4631 mov r1, r6
  15098. 8005fe0: f7fa fd42 bl 8000a68 <__aeabi_dcmpeq>
  15099. 8005fe4: b938 cbnz r0, 8005ff6 <__cvt+0xa2>
  15100. 8005fe6: 2230 movs r2, #48 ; 0x30
  15101. 8005fe8: 9b07 ldr r3, [sp, #28]
  15102. 8005fea: 454b cmp r3, r9
  15103. 8005fec: d205 bcs.n 8005ffa <__cvt+0xa6>
  15104. 8005fee: 1c59 adds r1, r3, #1
  15105. 8005ff0: 9107 str r1, [sp, #28]
  15106. 8005ff2: 701a strb r2, [r3, #0]
  15107. 8005ff4: e7f8 b.n 8005fe8 <__cvt+0x94>
  15108. 8005ff6: f8cd 901c str.w r9, [sp, #28]
  15109. 8005ffa: 4640 mov r0, r8
  15110. 8005ffc: 9b07 ldr r3, [sp, #28]
  15111. 8005ffe: 9a15 ldr r2, [sp, #84] ; 0x54
  15112. 8006000: eba3 0308 sub.w r3, r3, r8
  15113. 8006004: 6013 str r3, [r2, #0]
  15114. 8006006: b008 add sp, #32
  15115. 8006008: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  15116. 0800600c <__exponent>:
  15117. 800600c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  15118. 800600e: 2900 cmp r1, #0
  15119. 8006010: bfb4 ite lt
  15120. 8006012: 232d movlt r3, #45 ; 0x2d
  15121. 8006014: 232b movge r3, #43 ; 0x2b
  15122. 8006016: 4604 mov r4, r0
  15123. 8006018: bfb8 it lt
  15124. 800601a: 4249 neglt r1, r1
  15125. 800601c: 2909 cmp r1, #9
  15126. 800601e: f804 2b02 strb.w r2, [r4], #2
  15127. 8006022: 7043 strb r3, [r0, #1]
  15128. 8006024: dd21 ble.n 800606a <__exponent+0x5e>
  15129. 8006026: f10d 0307 add.w r3, sp, #7
  15130. 800602a: 461f mov r7, r3
  15131. 800602c: 260a movs r6, #10
  15132. 800602e: fb91 f5f6 sdiv r5, r1, r6
  15133. 8006032: fb06 1115 mls r1, r6, r5, r1
  15134. 8006036: 2d09 cmp r5, #9
  15135. 8006038: f101 0130 add.w r1, r1, #48 ; 0x30
  15136. 800603c: f803 1c01 strb.w r1, [r3, #-1]
  15137. 8006040: f103 32ff add.w r2, r3, #4294967295
  15138. 8006044: 4629 mov r1, r5
  15139. 8006046: dc09 bgt.n 800605c <__exponent+0x50>
  15140. 8006048: 3130 adds r1, #48 ; 0x30
  15141. 800604a: 3b02 subs r3, #2
  15142. 800604c: f802 1c01 strb.w r1, [r2, #-1]
  15143. 8006050: 42bb cmp r3, r7
  15144. 8006052: 4622 mov r2, r4
  15145. 8006054: d304 bcc.n 8006060 <__exponent+0x54>
  15146. 8006056: 1a10 subs r0, r2, r0
  15147. 8006058: b003 add sp, #12
  15148. 800605a: bdf0 pop {r4, r5, r6, r7, pc}
  15149. 800605c: 4613 mov r3, r2
  15150. 800605e: e7e6 b.n 800602e <__exponent+0x22>
  15151. 8006060: f813 2b01 ldrb.w r2, [r3], #1
  15152. 8006064: f804 2b01 strb.w r2, [r4], #1
  15153. 8006068: e7f2 b.n 8006050 <__exponent+0x44>
  15154. 800606a: 2330 movs r3, #48 ; 0x30
  15155. 800606c: 4419 add r1, r3
  15156. 800606e: 7083 strb r3, [r0, #2]
  15157. 8006070: 1d02 adds r2, r0, #4
  15158. 8006072: 70c1 strb r1, [r0, #3]
  15159. 8006074: e7ef b.n 8006056 <__exponent+0x4a>
  15160. ...
  15161. 08006078 <_printf_float>:
  15162. 8006078: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  15163. 800607c: b091 sub sp, #68 ; 0x44
  15164. 800607e: 460c mov r4, r1
  15165. 8006080: 9f1a ldr r7, [sp, #104] ; 0x68
  15166. 8006082: 4693 mov fp, r2
  15167. 8006084: 461e mov r6, r3
  15168. 8006086: 4605 mov r5, r0
  15169. 8006088: f001 fd64 bl 8007b54 <_localeconv_r>
  15170. 800608c: 6803 ldr r3, [r0, #0]
  15171. 800608e: 4618 mov r0, r3
  15172. 8006090: 9309 str r3, [sp, #36] ; 0x24
  15173. 8006092: f7fa f8bd bl 8000210 <strlen>
  15174. 8006096: 2300 movs r3, #0
  15175. 8006098: 930e str r3, [sp, #56] ; 0x38
  15176. 800609a: 683b ldr r3, [r7, #0]
  15177. 800609c: 900a str r0, [sp, #40] ; 0x28
  15178. 800609e: 3307 adds r3, #7
  15179. 80060a0: f023 0307 bic.w r3, r3, #7
  15180. 80060a4: f103 0208 add.w r2, r3, #8
  15181. 80060a8: f894 8018 ldrb.w r8, [r4, #24]
  15182. 80060ac: f8d4 a000 ldr.w sl, [r4]
  15183. 80060b0: 603a str r2, [r7, #0]
  15184. 80060b2: e9d3 2300 ldrd r2, r3, [r3]
  15185. 80060b6: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
  15186. 80060ba: e9d4 7912 ldrd r7, r9, [r4, #72] ; 0x48
  15187. 80060be: f029 4300 bic.w r3, r9, #2147483648 ; 0x80000000
  15188. 80060c2: 930b str r3, [sp, #44] ; 0x2c
  15189. 80060c4: f04f 32ff mov.w r2, #4294967295
  15190. 80060c8: 4ba6 ldr r3, [pc, #664] ; (8006364 <_printf_float+0x2ec>)
  15191. 80060ca: 4638 mov r0, r7
  15192. 80060cc: 990b ldr r1, [sp, #44] ; 0x2c
  15193. 80060ce: f7fa fcfd bl 8000acc <__aeabi_dcmpun>
  15194. 80060d2: bb68 cbnz r0, 8006130 <_printf_float+0xb8>
  15195. 80060d4: f04f 32ff mov.w r2, #4294967295
  15196. 80060d8: 4ba2 ldr r3, [pc, #648] ; (8006364 <_printf_float+0x2ec>)
  15197. 80060da: 4638 mov r0, r7
  15198. 80060dc: 990b ldr r1, [sp, #44] ; 0x2c
  15199. 80060de: f7fa fcd7 bl 8000a90 <__aeabi_dcmple>
  15200. 80060e2: bb28 cbnz r0, 8006130 <_printf_float+0xb8>
  15201. 80060e4: 2200 movs r2, #0
  15202. 80060e6: 2300 movs r3, #0
  15203. 80060e8: 4638 mov r0, r7
  15204. 80060ea: 4649 mov r1, r9
  15205. 80060ec: f7fa fcc6 bl 8000a7c <__aeabi_dcmplt>
  15206. 80060f0: b110 cbz r0, 80060f8 <_printf_float+0x80>
  15207. 80060f2: 232d movs r3, #45 ; 0x2d
  15208. 80060f4: f884 3043 strb.w r3, [r4, #67] ; 0x43
  15209. 80060f8: 4f9b ldr r7, [pc, #620] ; (8006368 <_printf_float+0x2f0>)
  15210. 80060fa: 4b9c ldr r3, [pc, #624] ; (800636c <_printf_float+0x2f4>)
  15211. 80060fc: f1b8 0f47 cmp.w r8, #71 ; 0x47
  15212. 8006100: bf98 it ls
  15213. 8006102: 461f movls r7, r3
  15214. 8006104: 2303 movs r3, #3
  15215. 8006106: f04f 0900 mov.w r9, #0
  15216. 800610a: 6123 str r3, [r4, #16]
  15217. 800610c: f02a 0304 bic.w r3, sl, #4
  15218. 8006110: 6023 str r3, [r4, #0]
  15219. 8006112: 9600 str r6, [sp, #0]
  15220. 8006114: 465b mov r3, fp
  15221. 8006116: aa0f add r2, sp, #60 ; 0x3c
  15222. 8006118: 4621 mov r1, r4
  15223. 800611a: 4628 mov r0, r5
  15224. 800611c: f000 f9e2 bl 80064e4 <_printf_common>
  15225. 8006120: 3001 adds r0, #1
  15226. 8006122: f040 8090 bne.w 8006246 <_printf_float+0x1ce>
  15227. 8006126: f04f 30ff mov.w r0, #4294967295
  15228. 800612a: b011 add sp, #68 ; 0x44
  15229. 800612c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  15230. 8006130: 463a mov r2, r7
  15231. 8006132: 464b mov r3, r9
  15232. 8006134: 4638 mov r0, r7
  15233. 8006136: 4649 mov r1, r9
  15234. 8006138: f7fa fcc8 bl 8000acc <__aeabi_dcmpun>
  15235. 800613c: b110 cbz r0, 8006144 <_printf_float+0xcc>
  15236. 800613e: 4f8c ldr r7, [pc, #560] ; (8006370 <_printf_float+0x2f8>)
  15237. 8006140: 4b8c ldr r3, [pc, #560] ; (8006374 <_printf_float+0x2fc>)
  15238. 8006142: e7db b.n 80060fc <_printf_float+0x84>
  15239. 8006144: 6863 ldr r3, [r4, #4]
  15240. 8006146: f44a 6280 orr.w r2, sl, #1024 ; 0x400
  15241. 800614a: 1c59 adds r1, r3, #1
  15242. 800614c: a80d add r0, sp, #52 ; 0x34
  15243. 800614e: a90e add r1, sp, #56 ; 0x38
  15244. 8006150: d140 bne.n 80061d4 <_printf_float+0x15c>
  15245. 8006152: 2306 movs r3, #6
  15246. 8006154: 6063 str r3, [r4, #4]
  15247. 8006156: f04f 0c00 mov.w ip, #0
  15248. 800615a: f10d 0333 add.w r3, sp, #51 ; 0x33
  15249. 800615e: e9cd 2301 strd r2, r3, [sp, #4]
  15250. 8006162: 6863 ldr r3, [r4, #4]
  15251. 8006164: 6022 str r2, [r4, #0]
  15252. 8006166: e9cd 0803 strd r0, r8, [sp, #12]
  15253. 800616a: 9300 str r3, [sp, #0]
  15254. 800616c: 463a mov r2, r7
  15255. 800616e: 464b mov r3, r9
  15256. 8006170: e9cd 1c05 strd r1, ip, [sp, #20]
  15257. 8006174: 4628 mov r0, r5
  15258. 8006176: f7ff feed bl 8005f54 <__cvt>
  15259. 800617a: f008 03df and.w r3, r8, #223 ; 0xdf
  15260. 800617e: 2b47 cmp r3, #71 ; 0x47
  15261. 8006180: 4607 mov r7, r0
  15262. 8006182: d109 bne.n 8006198 <_printf_float+0x120>
  15263. 8006184: 9b0d ldr r3, [sp, #52] ; 0x34
  15264. 8006186: 1cd8 adds r0, r3, #3
  15265. 8006188: db02 blt.n 8006190 <_printf_float+0x118>
  15266. 800618a: 6862 ldr r2, [r4, #4]
  15267. 800618c: 4293 cmp r3, r2
  15268. 800618e: dd47 ble.n 8006220 <_printf_float+0x1a8>
  15269. 8006190: f1a8 0802 sub.w r8, r8, #2
  15270. 8006194: fa5f f888 uxtb.w r8, r8
  15271. 8006198: f1b8 0f65 cmp.w r8, #101 ; 0x65
  15272. 800619c: 990d ldr r1, [sp, #52] ; 0x34
  15273. 800619e: d824 bhi.n 80061ea <_printf_float+0x172>
  15274. 80061a0: 3901 subs r1, #1
  15275. 80061a2: 4642 mov r2, r8
  15276. 80061a4: f104 0050 add.w r0, r4, #80 ; 0x50
  15277. 80061a8: 910d str r1, [sp, #52] ; 0x34
  15278. 80061aa: f7ff ff2f bl 800600c <__exponent>
  15279. 80061ae: 9a0e ldr r2, [sp, #56] ; 0x38
  15280. 80061b0: 4681 mov r9, r0
  15281. 80061b2: 1813 adds r3, r2, r0
  15282. 80061b4: 2a01 cmp r2, #1
  15283. 80061b6: 6123 str r3, [r4, #16]
  15284. 80061b8: dc02 bgt.n 80061c0 <_printf_float+0x148>
  15285. 80061ba: 6822 ldr r2, [r4, #0]
  15286. 80061bc: 07d1 lsls r1, r2, #31
  15287. 80061be: d501 bpl.n 80061c4 <_printf_float+0x14c>
  15288. 80061c0: 3301 adds r3, #1
  15289. 80061c2: 6123 str r3, [r4, #16]
  15290. 80061c4: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
  15291. 80061c8: 2b00 cmp r3, #0
  15292. 80061ca: d0a2 beq.n 8006112 <_printf_float+0x9a>
  15293. 80061cc: 232d movs r3, #45 ; 0x2d
  15294. 80061ce: f884 3043 strb.w r3, [r4, #67] ; 0x43
  15295. 80061d2: e79e b.n 8006112 <_printf_float+0x9a>
  15296. 80061d4: f1b8 0f67 cmp.w r8, #103 ; 0x67
  15297. 80061d8: f000 816e beq.w 80064b8 <_printf_float+0x440>
  15298. 80061dc: f1b8 0f47 cmp.w r8, #71 ; 0x47
  15299. 80061e0: d1b9 bne.n 8006156 <_printf_float+0xde>
  15300. 80061e2: 2b00 cmp r3, #0
  15301. 80061e4: d1b7 bne.n 8006156 <_printf_float+0xde>
  15302. 80061e6: 2301 movs r3, #1
  15303. 80061e8: e7b4 b.n 8006154 <_printf_float+0xdc>
  15304. 80061ea: f1b8 0f66 cmp.w r8, #102 ; 0x66
  15305. 80061ee: d119 bne.n 8006224 <_printf_float+0x1ac>
  15306. 80061f0: 2900 cmp r1, #0
  15307. 80061f2: 6863 ldr r3, [r4, #4]
  15308. 80061f4: dd0c ble.n 8006210 <_printf_float+0x198>
  15309. 80061f6: 6121 str r1, [r4, #16]
  15310. 80061f8: b913 cbnz r3, 8006200 <_printf_float+0x188>
  15311. 80061fa: 6822 ldr r2, [r4, #0]
  15312. 80061fc: 07d2 lsls r2, r2, #31
  15313. 80061fe: d502 bpl.n 8006206 <_printf_float+0x18e>
  15314. 8006200: 3301 adds r3, #1
  15315. 8006202: 440b add r3, r1
  15316. 8006204: 6123 str r3, [r4, #16]
  15317. 8006206: 9b0d ldr r3, [sp, #52] ; 0x34
  15318. 8006208: f04f 0900 mov.w r9, #0
  15319. 800620c: 65a3 str r3, [r4, #88] ; 0x58
  15320. 800620e: e7d9 b.n 80061c4 <_printf_float+0x14c>
  15321. 8006210: b913 cbnz r3, 8006218 <_printf_float+0x1a0>
  15322. 8006212: 6822 ldr r2, [r4, #0]
  15323. 8006214: 07d0 lsls r0, r2, #31
  15324. 8006216: d501 bpl.n 800621c <_printf_float+0x1a4>
  15325. 8006218: 3302 adds r3, #2
  15326. 800621a: e7f3 b.n 8006204 <_printf_float+0x18c>
  15327. 800621c: 2301 movs r3, #1
  15328. 800621e: e7f1 b.n 8006204 <_printf_float+0x18c>
  15329. 8006220: f04f 0867 mov.w r8, #103 ; 0x67
  15330. 8006224: e9dd 320d ldrd r3, r2, [sp, #52] ; 0x34
  15331. 8006228: 4293 cmp r3, r2
  15332. 800622a: db05 blt.n 8006238 <_printf_float+0x1c0>
  15333. 800622c: 6822 ldr r2, [r4, #0]
  15334. 800622e: 6123 str r3, [r4, #16]
  15335. 8006230: 07d1 lsls r1, r2, #31
  15336. 8006232: d5e8 bpl.n 8006206 <_printf_float+0x18e>
  15337. 8006234: 3301 adds r3, #1
  15338. 8006236: e7e5 b.n 8006204 <_printf_float+0x18c>
  15339. 8006238: 2b00 cmp r3, #0
  15340. 800623a: bfcc ite gt
  15341. 800623c: 2301 movgt r3, #1
  15342. 800623e: f1c3 0302 rsble r3, r3, #2
  15343. 8006242: 4413 add r3, r2
  15344. 8006244: e7de b.n 8006204 <_printf_float+0x18c>
  15345. 8006246: 6823 ldr r3, [r4, #0]
  15346. 8006248: 055a lsls r2, r3, #21
  15347. 800624a: d407 bmi.n 800625c <_printf_float+0x1e4>
  15348. 800624c: 6923 ldr r3, [r4, #16]
  15349. 800624e: 463a mov r2, r7
  15350. 8006250: 4659 mov r1, fp
  15351. 8006252: 4628 mov r0, r5
  15352. 8006254: 47b0 blx r6
  15353. 8006256: 3001 adds r0, #1
  15354. 8006258: d129 bne.n 80062ae <_printf_float+0x236>
  15355. 800625a: e764 b.n 8006126 <_printf_float+0xae>
  15356. 800625c: f1b8 0f65 cmp.w r8, #101 ; 0x65
  15357. 8006260: f240 80d7 bls.w 8006412 <_printf_float+0x39a>
  15358. 8006264: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  15359. 8006268: 2200 movs r2, #0
  15360. 800626a: 2300 movs r3, #0
  15361. 800626c: f7fa fbfc bl 8000a68 <__aeabi_dcmpeq>
  15362. 8006270: b388 cbz r0, 80062d6 <_printf_float+0x25e>
  15363. 8006272: 2301 movs r3, #1
  15364. 8006274: 4a40 ldr r2, [pc, #256] ; (8006378 <_printf_float+0x300>)
  15365. 8006276: 4659 mov r1, fp
  15366. 8006278: 4628 mov r0, r5
  15367. 800627a: 47b0 blx r6
  15368. 800627c: 3001 adds r0, #1
  15369. 800627e: f43f af52 beq.w 8006126 <_printf_float+0xae>
  15370. 8006282: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  15371. 8006286: 429a cmp r2, r3
  15372. 8006288: db02 blt.n 8006290 <_printf_float+0x218>
  15373. 800628a: 6823 ldr r3, [r4, #0]
  15374. 800628c: 07d8 lsls r0, r3, #31
  15375. 800628e: d50e bpl.n 80062ae <_printf_float+0x236>
  15376. 8006290: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15377. 8006294: 4659 mov r1, fp
  15378. 8006296: 4628 mov r0, r5
  15379. 8006298: 47b0 blx r6
  15380. 800629a: 3001 adds r0, #1
  15381. 800629c: f43f af43 beq.w 8006126 <_printf_float+0xae>
  15382. 80062a0: 2700 movs r7, #0
  15383. 80062a2: f104 081a add.w r8, r4, #26
  15384. 80062a6: 9b0e ldr r3, [sp, #56] ; 0x38
  15385. 80062a8: 3b01 subs r3, #1
  15386. 80062aa: 42bb cmp r3, r7
  15387. 80062ac: dc09 bgt.n 80062c2 <_printf_float+0x24a>
  15388. 80062ae: 6823 ldr r3, [r4, #0]
  15389. 80062b0: 079f lsls r7, r3, #30
  15390. 80062b2: f100 80fd bmi.w 80064b0 <_printf_float+0x438>
  15391. 80062b6: 68e0 ldr r0, [r4, #12]
  15392. 80062b8: 9b0f ldr r3, [sp, #60] ; 0x3c
  15393. 80062ba: 4298 cmp r0, r3
  15394. 80062bc: bfb8 it lt
  15395. 80062be: 4618 movlt r0, r3
  15396. 80062c0: e733 b.n 800612a <_printf_float+0xb2>
  15397. 80062c2: 2301 movs r3, #1
  15398. 80062c4: 4642 mov r2, r8
  15399. 80062c6: 4659 mov r1, fp
  15400. 80062c8: 4628 mov r0, r5
  15401. 80062ca: 47b0 blx r6
  15402. 80062cc: 3001 adds r0, #1
  15403. 80062ce: f43f af2a beq.w 8006126 <_printf_float+0xae>
  15404. 80062d2: 3701 adds r7, #1
  15405. 80062d4: e7e7 b.n 80062a6 <_printf_float+0x22e>
  15406. 80062d6: 9b0d ldr r3, [sp, #52] ; 0x34
  15407. 80062d8: 2b00 cmp r3, #0
  15408. 80062da: dc2b bgt.n 8006334 <_printf_float+0x2bc>
  15409. 80062dc: 2301 movs r3, #1
  15410. 80062de: 4a26 ldr r2, [pc, #152] ; (8006378 <_printf_float+0x300>)
  15411. 80062e0: 4659 mov r1, fp
  15412. 80062e2: 4628 mov r0, r5
  15413. 80062e4: 47b0 blx r6
  15414. 80062e6: 3001 adds r0, #1
  15415. 80062e8: f43f af1d beq.w 8006126 <_printf_float+0xae>
  15416. 80062ec: 9b0d ldr r3, [sp, #52] ; 0x34
  15417. 80062ee: b923 cbnz r3, 80062fa <_printf_float+0x282>
  15418. 80062f0: 9b0e ldr r3, [sp, #56] ; 0x38
  15419. 80062f2: b913 cbnz r3, 80062fa <_printf_float+0x282>
  15420. 80062f4: 6823 ldr r3, [r4, #0]
  15421. 80062f6: 07d9 lsls r1, r3, #31
  15422. 80062f8: d5d9 bpl.n 80062ae <_printf_float+0x236>
  15423. 80062fa: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15424. 80062fe: 4659 mov r1, fp
  15425. 8006300: 4628 mov r0, r5
  15426. 8006302: 47b0 blx r6
  15427. 8006304: 3001 adds r0, #1
  15428. 8006306: f43f af0e beq.w 8006126 <_printf_float+0xae>
  15429. 800630a: f04f 0800 mov.w r8, #0
  15430. 800630e: f104 091a add.w r9, r4, #26
  15431. 8006312: 9b0d ldr r3, [sp, #52] ; 0x34
  15432. 8006314: 425b negs r3, r3
  15433. 8006316: 4543 cmp r3, r8
  15434. 8006318: dc01 bgt.n 800631e <_printf_float+0x2a6>
  15435. 800631a: 9b0e ldr r3, [sp, #56] ; 0x38
  15436. 800631c: e797 b.n 800624e <_printf_float+0x1d6>
  15437. 800631e: 2301 movs r3, #1
  15438. 8006320: 464a mov r2, r9
  15439. 8006322: 4659 mov r1, fp
  15440. 8006324: 4628 mov r0, r5
  15441. 8006326: 47b0 blx r6
  15442. 8006328: 3001 adds r0, #1
  15443. 800632a: f43f aefc beq.w 8006126 <_printf_float+0xae>
  15444. 800632e: f108 0801 add.w r8, r8, #1
  15445. 8006332: e7ee b.n 8006312 <_printf_float+0x29a>
  15446. 8006334: 9a0e ldr r2, [sp, #56] ; 0x38
  15447. 8006336: 6da3 ldr r3, [r4, #88] ; 0x58
  15448. 8006338: 429a cmp r2, r3
  15449. 800633a: bfa8 it ge
  15450. 800633c: 461a movge r2, r3
  15451. 800633e: 2a00 cmp r2, #0
  15452. 8006340: 4690 mov r8, r2
  15453. 8006342: dd07 ble.n 8006354 <_printf_float+0x2dc>
  15454. 8006344: 4613 mov r3, r2
  15455. 8006346: 4659 mov r1, fp
  15456. 8006348: 463a mov r2, r7
  15457. 800634a: 4628 mov r0, r5
  15458. 800634c: 47b0 blx r6
  15459. 800634e: 3001 adds r0, #1
  15460. 8006350: f43f aee9 beq.w 8006126 <_printf_float+0xae>
  15461. 8006354: f104 031a add.w r3, r4, #26
  15462. 8006358: f04f 0a00 mov.w sl, #0
  15463. 800635c: ea28 78e8 bic.w r8, r8, r8, asr #31
  15464. 8006360: 930b str r3, [sp, #44] ; 0x2c
  15465. 8006362: e015 b.n 8006390 <_printf_float+0x318>
  15466. 8006364: 7fefffff .word 0x7fefffff
  15467. 8006368: 08008bb8 .word 0x08008bb8
  15468. 800636c: 08008bb4 .word 0x08008bb4
  15469. 8006370: 08008bc0 .word 0x08008bc0
  15470. 8006374: 08008bbc .word 0x08008bbc
  15471. 8006378: 08008bc4 .word 0x08008bc4
  15472. 800637c: 2301 movs r3, #1
  15473. 800637e: 9a0b ldr r2, [sp, #44] ; 0x2c
  15474. 8006380: 4659 mov r1, fp
  15475. 8006382: 4628 mov r0, r5
  15476. 8006384: 47b0 blx r6
  15477. 8006386: 3001 adds r0, #1
  15478. 8006388: f43f aecd beq.w 8006126 <_printf_float+0xae>
  15479. 800638c: f10a 0a01 add.w sl, sl, #1
  15480. 8006390: f8d4 9058 ldr.w r9, [r4, #88] ; 0x58
  15481. 8006394: eba9 0308 sub.w r3, r9, r8
  15482. 8006398: 4553 cmp r3, sl
  15483. 800639a: dcef bgt.n 800637c <_printf_float+0x304>
  15484. 800639c: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  15485. 80063a0: 429a cmp r2, r3
  15486. 80063a2: 444f add r7, r9
  15487. 80063a4: db14 blt.n 80063d0 <_printf_float+0x358>
  15488. 80063a6: 6823 ldr r3, [r4, #0]
  15489. 80063a8: 07da lsls r2, r3, #31
  15490. 80063aa: d411 bmi.n 80063d0 <_printf_float+0x358>
  15491. 80063ac: 9b0e ldr r3, [sp, #56] ; 0x38
  15492. 80063ae: 990d ldr r1, [sp, #52] ; 0x34
  15493. 80063b0: eba3 0209 sub.w r2, r3, r9
  15494. 80063b4: eba3 0901 sub.w r9, r3, r1
  15495. 80063b8: 4591 cmp r9, r2
  15496. 80063ba: bfa8 it ge
  15497. 80063bc: 4691 movge r9, r2
  15498. 80063be: f1b9 0f00 cmp.w r9, #0
  15499. 80063c2: dc0d bgt.n 80063e0 <_printf_float+0x368>
  15500. 80063c4: 2700 movs r7, #0
  15501. 80063c6: ea29 79e9 bic.w r9, r9, r9, asr #31
  15502. 80063ca: f104 081a add.w r8, r4, #26
  15503. 80063ce: e018 b.n 8006402 <_printf_float+0x38a>
  15504. 80063d0: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15505. 80063d4: 4659 mov r1, fp
  15506. 80063d6: 4628 mov r0, r5
  15507. 80063d8: 47b0 blx r6
  15508. 80063da: 3001 adds r0, #1
  15509. 80063dc: d1e6 bne.n 80063ac <_printf_float+0x334>
  15510. 80063de: e6a2 b.n 8006126 <_printf_float+0xae>
  15511. 80063e0: 464b mov r3, r9
  15512. 80063e2: 463a mov r2, r7
  15513. 80063e4: 4659 mov r1, fp
  15514. 80063e6: 4628 mov r0, r5
  15515. 80063e8: 47b0 blx r6
  15516. 80063ea: 3001 adds r0, #1
  15517. 80063ec: d1ea bne.n 80063c4 <_printf_float+0x34c>
  15518. 80063ee: e69a b.n 8006126 <_printf_float+0xae>
  15519. 80063f0: 2301 movs r3, #1
  15520. 80063f2: 4642 mov r2, r8
  15521. 80063f4: 4659 mov r1, fp
  15522. 80063f6: 4628 mov r0, r5
  15523. 80063f8: 47b0 blx r6
  15524. 80063fa: 3001 adds r0, #1
  15525. 80063fc: f43f ae93 beq.w 8006126 <_printf_float+0xae>
  15526. 8006400: 3701 adds r7, #1
  15527. 8006402: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  15528. 8006406: 1a9b subs r3, r3, r2
  15529. 8006408: eba3 0309 sub.w r3, r3, r9
  15530. 800640c: 42bb cmp r3, r7
  15531. 800640e: dcef bgt.n 80063f0 <_printf_float+0x378>
  15532. 8006410: e74d b.n 80062ae <_printf_float+0x236>
  15533. 8006412: 9a0e ldr r2, [sp, #56] ; 0x38
  15534. 8006414: 2a01 cmp r2, #1
  15535. 8006416: dc01 bgt.n 800641c <_printf_float+0x3a4>
  15536. 8006418: 07db lsls r3, r3, #31
  15537. 800641a: d538 bpl.n 800648e <_printf_float+0x416>
  15538. 800641c: 2301 movs r3, #1
  15539. 800641e: 463a mov r2, r7
  15540. 8006420: 4659 mov r1, fp
  15541. 8006422: 4628 mov r0, r5
  15542. 8006424: 47b0 blx r6
  15543. 8006426: 3001 adds r0, #1
  15544. 8006428: f43f ae7d beq.w 8006126 <_printf_float+0xae>
  15545. 800642c: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15546. 8006430: 4659 mov r1, fp
  15547. 8006432: 4628 mov r0, r5
  15548. 8006434: 47b0 blx r6
  15549. 8006436: 3001 adds r0, #1
  15550. 8006438: f107 0701 add.w r7, r7, #1
  15551. 800643c: f43f ae73 beq.w 8006126 <_printf_float+0xae>
  15552. 8006440: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  15553. 8006444: 9b0e ldr r3, [sp, #56] ; 0x38
  15554. 8006446: 2200 movs r2, #0
  15555. 8006448: f103 38ff add.w r8, r3, #4294967295
  15556. 800644c: 2300 movs r3, #0
  15557. 800644e: f7fa fb0b bl 8000a68 <__aeabi_dcmpeq>
  15558. 8006452: b9c0 cbnz r0, 8006486 <_printf_float+0x40e>
  15559. 8006454: 4643 mov r3, r8
  15560. 8006456: 463a mov r2, r7
  15561. 8006458: 4659 mov r1, fp
  15562. 800645a: 4628 mov r0, r5
  15563. 800645c: 47b0 blx r6
  15564. 800645e: 3001 adds r0, #1
  15565. 8006460: d10d bne.n 800647e <_printf_float+0x406>
  15566. 8006462: e660 b.n 8006126 <_printf_float+0xae>
  15567. 8006464: 2301 movs r3, #1
  15568. 8006466: 4642 mov r2, r8
  15569. 8006468: 4659 mov r1, fp
  15570. 800646a: 4628 mov r0, r5
  15571. 800646c: 47b0 blx r6
  15572. 800646e: 3001 adds r0, #1
  15573. 8006470: f43f ae59 beq.w 8006126 <_printf_float+0xae>
  15574. 8006474: 3701 adds r7, #1
  15575. 8006476: 9b0e ldr r3, [sp, #56] ; 0x38
  15576. 8006478: 3b01 subs r3, #1
  15577. 800647a: 42bb cmp r3, r7
  15578. 800647c: dcf2 bgt.n 8006464 <_printf_float+0x3ec>
  15579. 800647e: 464b mov r3, r9
  15580. 8006480: f104 0250 add.w r2, r4, #80 ; 0x50
  15581. 8006484: e6e4 b.n 8006250 <_printf_float+0x1d8>
  15582. 8006486: 2700 movs r7, #0
  15583. 8006488: f104 081a add.w r8, r4, #26
  15584. 800648c: e7f3 b.n 8006476 <_printf_float+0x3fe>
  15585. 800648e: 2301 movs r3, #1
  15586. 8006490: e7e1 b.n 8006456 <_printf_float+0x3de>
  15587. 8006492: 2301 movs r3, #1
  15588. 8006494: 4642 mov r2, r8
  15589. 8006496: 4659 mov r1, fp
  15590. 8006498: 4628 mov r0, r5
  15591. 800649a: 47b0 blx r6
  15592. 800649c: 3001 adds r0, #1
  15593. 800649e: f43f ae42 beq.w 8006126 <_printf_float+0xae>
  15594. 80064a2: 3701 adds r7, #1
  15595. 80064a4: 68e3 ldr r3, [r4, #12]
  15596. 80064a6: 9a0f ldr r2, [sp, #60] ; 0x3c
  15597. 80064a8: 1a9b subs r3, r3, r2
  15598. 80064aa: 42bb cmp r3, r7
  15599. 80064ac: dcf1 bgt.n 8006492 <_printf_float+0x41a>
  15600. 80064ae: e702 b.n 80062b6 <_printf_float+0x23e>
  15601. 80064b0: 2700 movs r7, #0
  15602. 80064b2: f104 0819 add.w r8, r4, #25
  15603. 80064b6: e7f5 b.n 80064a4 <_printf_float+0x42c>
  15604. 80064b8: 2b00 cmp r3, #0
  15605. 80064ba: f43f ae94 beq.w 80061e6 <_printf_float+0x16e>
  15606. 80064be: f04f 0c00 mov.w ip, #0
  15607. 80064c2: e9cd 1c05 strd r1, ip, [sp, #20]
  15608. 80064c6: f10d 0133 add.w r1, sp, #51 ; 0x33
  15609. 80064ca: 6022 str r2, [r4, #0]
  15610. 80064cc: e9cd 0803 strd r0, r8, [sp, #12]
  15611. 80064d0: e9cd 2101 strd r2, r1, [sp, #4]
  15612. 80064d4: 9300 str r3, [sp, #0]
  15613. 80064d6: 463a mov r2, r7
  15614. 80064d8: 464b mov r3, r9
  15615. 80064da: 4628 mov r0, r5
  15616. 80064dc: f7ff fd3a bl 8005f54 <__cvt>
  15617. 80064e0: 4607 mov r7, r0
  15618. 80064e2: e64f b.n 8006184 <_printf_float+0x10c>
  15619. 080064e4 <_printf_common>:
  15620. 80064e4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  15621. 80064e8: 4691 mov r9, r2
  15622. 80064ea: 461f mov r7, r3
  15623. 80064ec: 688a ldr r2, [r1, #8]
  15624. 80064ee: 690b ldr r3, [r1, #16]
  15625. 80064f0: 4606 mov r6, r0
  15626. 80064f2: 4293 cmp r3, r2
  15627. 80064f4: bfb8 it lt
  15628. 80064f6: 4613 movlt r3, r2
  15629. 80064f8: f8c9 3000 str.w r3, [r9]
  15630. 80064fc: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  15631. 8006500: 460c mov r4, r1
  15632. 8006502: f8dd 8020 ldr.w r8, [sp, #32]
  15633. 8006506: b112 cbz r2, 800650e <_printf_common+0x2a>
  15634. 8006508: 3301 adds r3, #1
  15635. 800650a: f8c9 3000 str.w r3, [r9]
  15636. 800650e: 6823 ldr r3, [r4, #0]
  15637. 8006510: 0699 lsls r1, r3, #26
  15638. 8006512: bf42 ittt mi
  15639. 8006514: f8d9 3000 ldrmi.w r3, [r9]
  15640. 8006518: 3302 addmi r3, #2
  15641. 800651a: f8c9 3000 strmi.w r3, [r9]
  15642. 800651e: 6825 ldr r5, [r4, #0]
  15643. 8006520: f015 0506 ands.w r5, r5, #6
  15644. 8006524: d107 bne.n 8006536 <_printf_common+0x52>
  15645. 8006526: f104 0a19 add.w sl, r4, #25
  15646. 800652a: 68e3 ldr r3, [r4, #12]
  15647. 800652c: f8d9 2000 ldr.w r2, [r9]
  15648. 8006530: 1a9b subs r3, r3, r2
  15649. 8006532: 42ab cmp r3, r5
  15650. 8006534: dc29 bgt.n 800658a <_printf_common+0xa6>
  15651. 8006536: f894 3043 ldrb.w r3, [r4, #67] ; 0x43
  15652. 800653a: 6822 ldr r2, [r4, #0]
  15653. 800653c: 3300 adds r3, #0
  15654. 800653e: bf18 it ne
  15655. 8006540: 2301 movne r3, #1
  15656. 8006542: 0692 lsls r2, r2, #26
  15657. 8006544: d42e bmi.n 80065a4 <_printf_common+0xc0>
  15658. 8006546: f104 0243 add.w r2, r4, #67 ; 0x43
  15659. 800654a: 4639 mov r1, r7
  15660. 800654c: 4630 mov r0, r6
  15661. 800654e: 47c0 blx r8
  15662. 8006550: 3001 adds r0, #1
  15663. 8006552: d021 beq.n 8006598 <_printf_common+0xb4>
  15664. 8006554: 6823 ldr r3, [r4, #0]
  15665. 8006556: 68e5 ldr r5, [r4, #12]
  15666. 8006558: f003 0306 and.w r3, r3, #6
  15667. 800655c: 2b04 cmp r3, #4
  15668. 800655e: bf18 it ne
  15669. 8006560: 2500 movne r5, #0
  15670. 8006562: f8d9 2000 ldr.w r2, [r9]
  15671. 8006566: f04f 0900 mov.w r9, #0
  15672. 800656a: bf08 it eq
  15673. 800656c: 1aad subeq r5, r5, r2
  15674. 800656e: 68a3 ldr r3, [r4, #8]
  15675. 8006570: 6922 ldr r2, [r4, #16]
  15676. 8006572: bf08 it eq
  15677. 8006574: ea25 75e5 biceq.w r5, r5, r5, asr #31
  15678. 8006578: 4293 cmp r3, r2
  15679. 800657a: bfc4 itt gt
  15680. 800657c: 1a9b subgt r3, r3, r2
  15681. 800657e: 18ed addgt r5, r5, r3
  15682. 8006580: 341a adds r4, #26
  15683. 8006582: 454d cmp r5, r9
  15684. 8006584: d11a bne.n 80065bc <_printf_common+0xd8>
  15685. 8006586: 2000 movs r0, #0
  15686. 8006588: e008 b.n 800659c <_printf_common+0xb8>
  15687. 800658a: 2301 movs r3, #1
  15688. 800658c: 4652 mov r2, sl
  15689. 800658e: 4639 mov r1, r7
  15690. 8006590: 4630 mov r0, r6
  15691. 8006592: 47c0 blx r8
  15692. 8006594: 3001 adds r0, #1
  15693. 8006596: d103 bne.n 80065a0 <_printf_common+0xbc>
  15694. 8006598: f04f 30ff mov.w r0, #4294967295
  15695. 800659c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  15696. 80065a0: 3501 adds r5, #1
  15697. 80065a2: e7c2 b.n 800652a <_printf_common+0x46>
  15698. 80065a4: 2030 movs r0, #48 ; 0x30
  15699. 80065a6: 18e1 adds r1, r4, r3
  15700. 80065a8: f881 0043 strb.w r0, [r1, #67] ; 0x43
  15701. 80065ac: 1c5a adds r2, r3, #1
  15702. 80065ae: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  15703. 80065b2: 4422 add r2, r4
  15704. 80065b4: 3302 adds r3, #2
  15705. 80065b6: f882 1043 strb.w r1, [r2, #67] ; 0x43
  15706. 80065ba: e7c4 b.n 8006546 <_printf_common+0x62>
  15707. 80065bc: 2301 movs r3, #1
  15708. 80065be: 4622 mov r2, r4
  15709. 80065c0: 4639 mov r1, r7
  15710. 80065c2: 4630 mov r0, r6
  15711. 80065c4: 47c0 blx r8
  15712. 80065c6: 3001 adds r0, #1
  15713. 80065c8: d0e6 beq.n 8006598 <_printf_common+0xb4>
  15714. 80065ca: f109 0901 add.w r9, r9, #1
  15715. 80065ce: e7d8 b.n 8006582 <_printf_common+0x9e>
  15716. 080065d0 <_printf_i>:
  15717. 80065d0: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  15718. 80065d4: f101 0c43 add.w ip, r1, #67 ; 0x43
  15719. 80065d8: 460c mov r4, r1
  15720. 80065da: 7e09 ldrb r1, [r1, #24]
  15721. 80065dc: b085 sub sp, #20
  15722. 80065de: 296e cmp r1, #110 ; 0x6e
  15723. 80065e0: 4617 mov r7, r2
  15724. 80065e2: 4606 mov r6, r0
  15725. 80065e4: 4698 mov r8, r3
  15726. 80065e6: 9a0c ldr r2, [sp, #48] ; 0x30
  15727. 80065e8: f000 80b3 beq.w 8006752 <_printf_i+0x182>
  15728. 80065ec: d822 bhi.n 8006634 <_printf_i+0x64>
  15729. 80065ee: 2963 cmp r1, #99 ; 0x63
  15730. 80065f0: d036 beq.n 8006660 <_printf_i+0x90>
  15731. 80065f2: d80a bhi.n 800660a <_printf_i+0x3a>
  15732. 80065f4: 2900 cmp r1, #0
  15733. 80065f6: f000 80b9 beq.w 800676c <_printf_i+0x19c>
  15734. 80065fa: 2958 cmp r1, #88 ; 0x58
  15735. 80065fc: f000 8083 beq.w 8006706 <_printf_i+0x136>
  15736. 8006600: f104 0542 add.w r5, r4, #66 ; 0x42
  15737. 8006604: f884 1042 strb.w r1, [r4, #66] ; 0x42
  15738. 8006608: e032 b.n 8006670 <_printf_i+0xa0>
  15739. 800660a: 2964 cmp r1, #100 ; 0x64
  15740. 800660c: d001 beq.n 8006612 <_printf_i+0x42>
  15741. 800660e: 2969 cmp r1, #105 ; 0x69
  15742. 8006610: d1f6 bne.n 8006600 <_printf_i+0x30>
  15743. 8006612: 6820 ldr r0, [r4, #0]
  15744. 8006614: 6813 ldr r3, [r2, #0]
  15745. 8006616: 0605 lsls r5, r0, #24
  15746. 8006618: f103 0104 add.w r1, r3, #4
  15747. 800661c: d52a bpl.n 8006674 <_printf_i+0xa4>
  15748. 800661e: 681b ldr r3, [r3, #0]
  15749. 8006620: 6011 str r1, [r2, #0]
  15750. 8006622: 2b00 cmp r3, #0
  15751. 8006624: da03 bge.n 800662e <_printf_i+0x5e>
  15752. 8006626: 222d movs r2, #45 ; 0x2d
  15753. 8006628: 425b negs r3, r3
  15754. 800662a: f884 2043 strb.w r2, [r4, #67] ; 0x43
  15755. 800662e: 486f ldr r0, [pc, #444] ; (80067ec <_printf_i+0x21c>)
  15756. 8006630: 220a movs r2, #10
  15757. 8006632: e039 b.n 80066a8 <_printf_i+0xd8>
  15758. 8006634: 2973 cmp r1, #115 ; 0x73
  15759. 8006636: f000 809d beq.w 8006774 <_printf_i+0x1a4>
  15760. 800663a: d808 bhi.n 800664e <_printf_i+0x7e>
  15761. 800663c: 296f cmp r1, #111 ; 0x6f
  15762. 800663e: d020 beq.n 8006682 <_printf_i+0xb2>
  15763. 8006640: 2970 cmp r1, #112 ; 0x70
  15764. 8006642: d1dd bne.n 8006600 <_printf_i+0x30>
  15765. 8006644: 6823 ldr r3, [r4, #0]
  15766. 8006646: f043 0320 orr.w r3, r3, #32
  15767. 800664a: 6023 str r3, [r4, #0]
  15768. 800664c: e003 b.n 8006656 <_printf_i+0x86>
  15769. 800664e: 2975 cmp r1, #117 ; 0x75
  15770. 8006650: d017 beq.n 8006682 <_printf_i+0xb2>
  15771. 8006652: 2978 cmp r1, #120 ; 0x78
  15772. 8006654: d1d4 bne.n 8006600 <_printf_i+0x30>
  15773. 8006656: 2378 movs r3, #120 ; 0x78
  15774. 8006658: 4865 ldr r0, [pc, #404] ; (80067f0 <_printf_i+0x220>)
  15775. 800665a: f884 3045 strb.w r3, [r4, #69] ; 0x45
  15776. 800665e: e055 b.n 800670c <_printf_i+0x13c>
  15777. 8006660: 6813 ldr r3, [r2, #0]
  15778. 8006662: f104 0542 add.w r5, r4, #66 ; 0x42
  15779. 8006666: 1d19 adds r1, r3, #4
  15780. 8006668: 681b ldr r3, [r3, #0]
  15781. 800666a: 6011 str r1, [r2, #0]
  15782. 800666c: f884 3042 strb.w r3, [r4, #66] ; 0x42
  15783. 8006670: 2301 movs r3, #1
  15784. 8006672: e08c b.n 800678e <_printf_i+0x1be>
  15785. 8006674: 681b ldr r3, [r3, #0]
  15786. 8006676: f010 0f40 tst.w r0, #64 ; 0x40
  15787. 800667a: 6011 str r1, [r2, #0]
  15788. 800667c: bf18 it ne
  15789. 800667e: b21b sxthne r3, r3
  15790. 8006680: e7cf b.n 8006622 <_printf_i+0x52>
  15791. 8006682: 6813 ldr r3, [r2, #0]
  15792. 8006684: 6825 ldr r5, [r4, #0]
  15793. 8006686: 1d18 adds r0, r3, #4
  15794. 8006688: 6010 str r0, [r2, #0]
  15795. 800668a: 0628 lsls r0, r5, #24
  15796. 800668c: d501 bpl.n 8006692 <_printf_i+0xc2>
  15797. 800668e: 681b ldr r3, [r3, #0]
  15798. 8006690: e002 b.n 8006698 <_printf_i+0xc8>
  15799. 8006692: 0668 lsls r0, r5, #25
  15800. 8006694: d5fb bpl.n 800668e <_printf_i+0xbe>
  15801. 8006696: 881b ldrh r3, [r3, #0]
  15802. 8006698: 296f cmp r1, #111 ; 0x6f
  15803. 800669a: bf14 ite ne
  15804. 800669c: 220a movne r2, #10
  15805. 800669e: 2208 moveq r2, #8
  15806. 80066a0: 4852 ldr r0, [pc, #328] ; (80067ec <_printf_i+0x21c>)
  15807. 80066a2: 2100 movs r1, #0
  15808. 80066a4: f884 1043 strb.w r1, [r4, #67] ; 0x43
  15809. 80066a8: 6865 ldr r5, [r4, #4]
  15810. 80066aa: 2d00 cmp r5, #0
  15811. 80066ac: 60a5 str r5, [r4, #8]
  15812. 80066ae: f2c0 8095 blt.w 80067dc <_printf_i+0x20c>
  15813. 80066b2: 6821 ldr r1, [r4, #0]
  15814. 80066b4: f021 0104 bic.w r1, r1, #4
  15815. 80066b8: 6021 str r1, [r4, #0]
  15816. 80066ba: 2b00 cmp r3, #0
  15817. 80066bc: d13d bne.n 800673a <_printf_i+0x16a>
  15818. 80066be: 2d00 cmp r5, #0
  15819. 80066c0: f040 808e bne.w 80067e0 <_printf_i+0x210>
  15820. 80066c4: 4665 mov r5, ip
  15821. 80066c6: 2a08 cmp r2, #8
  15822. 80066c8: d10b bne.n 80066e2 <_printf_i+0x112>
  15823. 80066ca: 6823 ldr r3, [r4, #0]
  15824. 80066cc: 07db lsls r3, r3, #31
  15825. 80066ce: d508 bpl.n 80066e2 <_printf_i+0x112>
  15826. 80066d0: 6923 ldr r3, [r4, #16]
  15827. 80066d2: 6862 ldr r2, [r4, #4]
  15828. 80066d4: 429a cmp r2, r3
  15829. 80066d6: bfde ittt le
  15830. 80066d8: 2330 movle r3, #48 ; 0x30
  15831. 80066da: f805 3c01 strble.w r3, [r5, #-1]
  15832. 80066de: f105 35ff addle.w r5, r5, #4294967295
  15833. 80066e2: ebac 0305 sub.w r3, ip, r5
  15834. 80066e6: 6123 str r3, [r4, #16]
  15835. 80066e8: f8cd 8000 str.w r8, [sp]
  15836. 80066ec: 463b mov r3, r7
  15837. 80066ee: aa03 add r2, sp, #12
  15838. 80066f0: 4621 mov r1, r4
  15839. 80066f2: 4630 mov r0, r6
  15840. 80066f4: f7ff fef6 bl 80064e4 <_printf_common>
  15841. 80066f8: 3001 adds r0, #1
  15842. 80066fa: d14d bne.n 8006798 <_printf_i+0x1c8>
  15843. 80066fc: f04f 30ff mov.w r0, #4294967295
  15844. 8006700: b005 add sp, #20
  15845. 8006702: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  15846. 8006706: 4839 ldr r0, [pc, #228] ; (80067ec <_printf_i+0x21c>)
  15847. 8006708: f884 1045 strb.w r1, [r4, #69] ; 0x45
  15848. 800670c: 6813 ldr r3, [r2, #0]
  15849. 800670e: 6821 ldr r1, [r4, #0]
  15850. 8006710: 1d1d adds r5, r3, #4
  15851. 8006712: 681b ldr r3, [r3, #0]
  15852. 8006714: 6015 str r5, [r2, #0]
  15853. 8006716: 060a lsls r2, r1, #24
  15854. 8006718: d50b bpl.n 8006732 <_printf_i+0x162>
  15855. 800671a: 07ca lsls r2, r1, #31
  15856. 800671c: bf44 itt mi
  15857. 800671e: f041 0120 orrmi.w r1, r1, #32
  15858. 8006722: 6021 strmi r1, [r4, #0]
  15859. 8006724: b91b cbnz r3, 800672e <_printf_i+0x15e>
  15860. 8006726: 6822 ldr r2, [r4, #0]
  15861. 8006728: f022 0220 bic.w r2, r2, #32
  15862. 800672c: 6022 str r2, [r4, #0]
  15863. 800672e: 2210 movs r2, #16
  15864. 8006730: e7b7 b.n 80066a2 <_printf_i+0xd2>
  15865. 8006732: 064d lsls r5, r1, #25
  15866. 8006734: bf48 it mi
  15867. 8006736: b29b uxthmi r3, r3
  15868. 8006738: e7ef b.n 800671a <_printf_i+0x14a>
  15869. 800673a: 4665 mov r5, ip
  15870. 800673c: fbb3 f1f2 udiv r1, r3, r2
  15871. 8006740: fb02 3311 mls r3, r2, r1, r3
  15872. 8006744: 5cc3 ldrb r3, [r0, r3]
  15873. 8006746: f805 3d01 strb.w r3, [r5, #-1]!
  15874. 800674a: 460b mov r3, r1
  15875. 800674c: 2900 cmp r1, #0
  15876. 800674e: d1f5 bne.n 800673c <_printf_i+0x16c>
  15877. 8006750: e7b9 b.n 80066c6 <_printf_i+0xf6>
  15878. 8006752: 6813 ldr r3, [r2, #0]
  15879. 8006754: 6825 ldr r5, [r4, #0]
  15880. 8006756: 1d18 adds r0, r3, #4
  15881. 8006758: 6961 ldr r1, [r4, #20]
  15882. 800675a: 6010 str r0, [r2, #0]
  15883. 800675c: 0628 lsls r0, r5, #24
  15884. 800675e: 681b ldr r3, [r3, #0]
  15885. 8006760: d501 bpl.n 8006766 <_printf_i+0x196>
  15886. 8006762: 6019 str r1, [r3, #0]
  15887. 8006764: e002 b.n 800676c <_printf_i+0x19c>
  15888. 8006766: 066a lsls r2, r5, #25
  15889. 8006768: d5fb bpl.n 8006762 <_printf_i+0x192>
  15890. 800676a: 8019 strh r1, [r3, #0]
  15891. 800676c: 2300 movs r3, #0
  15892. 800676e: 4665 mov r5, ip
  15893. 8006770: 6123 str r3, [r4, #16]
  15894. 8006772: e7b9 b.n 80066e8 <_printf_i+0x118>
  15895. 8006774: 6813 ldr r3, [r2, #0]
  15896. 8006776: 1d19 adds r1, r3, #4
  15897. 8006778: 6011 str r1, [r2, #0]
  15898. 800677a: 681d ldr r5, [r3, #0]
  15899. 800677c: 6862 ldr r2, [r4, #4]
  15900. 800677e: 2100 movs r1, #0
  15901. 8006780: 4628 mov r0, r5
  15902. 8006782: f001 fa61 bl 8007c48 <memchr>
  15903. 8006786: b108 cbz r0, 800678c <_printf_i+0x1bc>
  15904. 8006788: 1b40 subs r0, r0, r5
  15905. 800678a: 6060 str r0, [r4, #4]
  15906. 800678c: 6863 ldr r3, [r4, #4]
  15907. 800678e: 6123 str r3, [r4, #16]
  15908. 8006790: 2300 movs r3, #0
  15909. 8006792: f884 3043 strb.w r3, [r4, #67] ; 0x43
  15910. 8006796: e7a7 b.n 80066e8 <_printf_i+0x118>
  15911. 8006798: 6923 ldr r3, [r4, #16]
  15912. 800679a: 462a mov r2, r5
  15913. 800679c: 4639 mov r1, r7
  15914. 800679e: 4630 mov r0, r6
  15915. 80067a0: 47c0 blx r8
  15916. 80067a2: 3001 adds r0, #1
  15917. 80067a4: d0aa beq.n 80066fc <_printf_i+0x12c>
  15918. 80067a6: 6823 ldr r3, [r4, #0]
  15919. 80067a8: 079b lsls r3, r3, #30
  15920. 80067aa: d413 bmi.n 80067d4 <_printf_i+0x204>
  15921. 80067ac: 68e0 ldr r0, [r4, #12]
  15922. 80067ae: 9b03 ldr r3, [sp, #12]
  15923. 80067b0: 4298 cmp r0, r3
  15924. 80067b2: bfb8 it lt
  15925. 80067b4: 4618 movlt r0, r3
  15926. 80067b6: e7a3 b.n 8006700 <_printf_i+0x130>
  15927. 80067b8: 2301 movs r3, #1
  15928. 80067ba: 464a mov r2, r9
  15929. 80067bc: 4639 mov r1, r7
  15930. 80067be: 4630 mov r0, r6
  15931. 80067c0: 47c0 blx r8
  15932. 80067c2: 3001 adds r0, #1
  15933. 80067c4: d09a beq.n 80066fc <_printf_i+0x12c>
  15934. 80067c6: 3501 adds r5, #1
  15935. 80067c8: 68e3 ldr r3, [r4, #12]
  15936. 80067ca: 9a03 ldr r2, [sp, #12]
  15937. 80067cc: 1a9b subs r3, r3, r2
  15938. 80067ce: 42ab cmp r3, r5
  15939. 80067d0: dcf2 bgt.n 80067b8 <_printf_i+0x1e8>
  15940. 80067d2: e7eb b.n 80067ac <_printf_i+0x1dc>
  15941. 80067d4: 2500 movs r5, #0
  15942. 80067d6: f104 0919 add.w r9, r4, #25
  15943. 80067da: e7f5 b.n 80067c8 <_printf_i+0x1f8>
  15944. 80067dc: 2b00 cmp r3, #0
  15945. 80067de: d1ac bne.n 800673a <_printf_i+0x16a>
  15946. 80067e0: 7803 ldrb r3, [r0, #0]
  15947. 80067e2: f104 0542 add.w r5, r4, #66 ; 0x42
  15948. 80067e6: f884 3042 strb.w r3, [r4, #66] ; 0x42
  15949. 80067ea: e76c b.n 80066c6 <_printf_i+0xf6>
  15950. 80067ec: 08008bc6 .word 0x08008bc6
  15951. 80067f0: 08008bd7 .word 0x08008bd7
  15952. 080067f4 <iprintf>:
  15953. 80067f4: b40f push {r0, r1, r2, r3}
  15954. 80067f6: 4b0a ldr r3, [pc, #40] ; (8006820 <iprintf+0x2c>)
  15955. 80067f8: b513 push {r0, r1, r4, lr}
  15956. 80067fa: 681c ldr r4, [r3, #0]
  15957. 80067fc: b124 cbz r4, 8006808 <iprintf+0x14>
  15958. 80067fe: 69a3 ldr r3, [r4, #24]
  15959. 8006800: b913 cbnz r3, 8006808 <iprintf+0x14>
  15960. 8006802: 4620 mov r0, r4
  15961. 8006804: f001 f91c bl 8007a40 <__sinit>
  15962. 8006808: ab05 add r3, sp, #20
  15963. 800680a: 9a04 ldr r2, [sp, #16]
  15964. 800680c: 68a1 ldr r1, [r4, #8]
  15965. 800680e: 4620 mov r0, r4
  15966. 8006810: 9301 str r3, [sp, #4]
  15967. 8006812: f001 fdeb bl 80083ec <_vfiprintf_r>
  15968. 8006816: b002 add sp, #8
  15969. 8006818: e8bd 4010 ldmia.w sp!, {r4, lr}
  15970. 800681c: b004 add sp, #16
  15971. 800681e: 4770 bx lr
  15972. 8006820: 2000000c .word 0x2000000c
  15973. 08006824 <_puts_r>:
  15974. 8006824: b570 push {r4, r5, r6, lr}
  15975. 8006826: 460e mov r6, r1
  15976. 8006828: 4605 mov r5, r0
  15977. 800682a: b118 cbz r0, 8006834 <_puts_r+0x10>
  15978. 800682c: 6983 ldr r3, [r0, #24]
  15979. 800682e: b90b cbnz r3, 8006834 <_puts_r+0x10>
  15980. 8006830: f001 f906 bl 8007a40 <__sinit>
  15981. 8006834: 69ab ldr r3, [r5, #24]
  15982. 8006836: 68ac ldr r4, [r5, #8]
  15983. 8006838: b913 cbnz r3, 8006840 <_puts_r+0x1c>
  15984. 800683a: 4628 mov r0, r5
  15985. 800683c: f001 f900 bl 8007a40 <__sinit>
  15986. 8006840: 4b23 ldr r3, [pc, #140] ; (80068d0 <_puts_r+0xac>)
  15987. 8006842: 429c cmp r4, r3
  15988. 8006844: d117 bne.n 8006876 <_puts_r+0x52>
  15989. 8006846: 686c ldr r4, [r5, #4]
  15990. 8006848: 89a3 ldrh r3, [r4, #12]
  15991. 800684a: 071b lsls r3, r3, #28
  15992. 800684c: d51d bpl.n 800688a <_puts_r+0x66>
  15993. 800684e: 6923 ldr r3, [r4, #16]
  15994. 8006850: b1db cbz r3, 800688a <_puts_r+0x66>
  15995. 8006852: 3e01 subs r6, #1
  15996. 8006854: 68a3 ldr r3, [r4, #8]
  15997. 8006856: f816 1f01 ldrb.w r1, [r6, #1]!
  15998. 800685a: 3b01 subs r3, #1
  15999. 800685c: 60a3 str r3, [r4, #8]
  16000. 800685e: b9e9 cbnz r1, 800689c <_puts_r+0x78>
  16001. 8006860: 2b00 cmp r3, #0
  16002. 8006862: da2e bge.n 80068c2 <_puts_r+0x9e>
  16003. 8006864: 4622 mov r2, r4
  16004. 8006866: 210a movs r1, #10
  16005. 8006868: 4628 mov r0, r5
  16006. 800686a: f000 f8f5 bl 8006a58 <__swbuf_r>
  16007. 800686e: 3001 adds r0, #1
  16008. 8006870: d011 beq.n 8006896 <_puts_r+0x72>
  16009. 8006872: 200a movs r0, #10
  16010. 8006874: e011 b.n 800689a <_puts_r+0x76>
  16011. 8006876: 4b17 ldr r3, [pc, #92] ; (80068d4 <_puts_r+0xb0>)
  16012. 8006878: 429c cmp r4, r3
  16013. 800687a: d101 bne.n 8006880 <_puts_r+0x5c>
  16014. 800687c: 68ac ldr r4, [r5, #8]
  16015. 800687e: e7e3 b.n 8006848 <_puts_r+0x24>
  16016. 8006880: 4b15 ldr r3, [pc, #84] ; (80068d8 <_puts_r+0xb4>)
  16017. 8006882: 429c cmp r4, r3
  16018. 8006884: bf08 it eq
  16019. 8006886: 68ec ldreq r4, [r5, #12]
  16020. 8006888: e7de b.n 8006848 <_puts_r+0x24>
  16021. 800688a: 4621 mov r1, r4
  16022. 800688c: 4628 mov r0, r5
  16023. 800688e: f000 f935 bl 8006afc <__swsetup_r>
  16024. 8006892: 2800 cmp r0, #0
  16025. 8006894: d0dd beq.n 8006852 <_puts_r+0x2e>
  16026. 8006896: f04f 30ff mov.w r0, #4294967295
  16027. 800689a: bd70 pop {r4, r5, r6, pc}
  16028. 800689c: 2b00 cmp r3, #0
  16029. 800689e: da04 bge.n 80068aa <_puts_r+0x86>
  16030. 80068a0: 69a2 ldr r2, [r4, #24]
  16031. 80068a2: 429a cmp r2, r3
  16032. 80068a4: dc06 bgt.n 80068b4 <_puts_r+0x90>
  16033. 80068a6: 290a cmp r1, #10
  16034. 80068a8: d004 beq.n 80068b4 <_puts_r+0x90>
  16035. 80068aa: 6823 ldr r3, [r4, #0]
  16036. 80068ac: 1c5a adds r2, r3, #1
  16037. 80068ae: 6022 str r2, [r4, #0]
  16038. 80068b0: 7019 strb r1, [r3, #0]
  16039. 80068b2: e7cf b.n 8006854 <_puts_r+0x30>
  16040. 80068b4: 4622 mov r2, r4
  16041. 80068b6: 4628 mov r0, r5
  16042. 80068b8: f000 f8ce bl 8006a58 <__swbuf_r>
  16043. 80068bc: 3001 adds r0, #1
  16044. 80068be: d1c9 bne.n 8006854 <_puts_r+0x30>
  16045. 80068c0: e7e9 b.n 8006896 <_puts_r+0x72>
  16046. 80068c2: 200a movs r0, #10
  16047. 80068c4: 6823 ldr r3, [r4, #0]
  16048. 80068c6: 1c5a adds r2, r3, #1
  16049. 80068c8: 6022 str r2, [r4, #0]
  16050. 80068ca: 7018 strb r0, [r3, #0]
  16051. 80068cc: e7e5 b.n 800689a <_puts_r+0x76>
  16052. 80068ce: bf00 nop
  16053. 80068d0: 08008c18 .word 0x08008c18
  16054. 80068d4: 08008c38 .word 0x08008c38
  16055. 80068d8: 08008bf8 .word 0x08008bf8
  16056. 080068dc <puts>:
  16057. 80068dc: 4b02 ldr r3, [pc, #8] ; (80068e8 <puts+0xc>)
  16058. 80068de: 4601 mov r1, r0
  16059. 80068e0: 6818 ldr r0, [r3, #0]
  16060. 80068e2: f7ff bf9f b.w 8006824 <_puts_r>
  16061. 80068e6: bf00 nop
  16062. 80068e8: 2000000c .word 0x2000000c
  16063. 080068ec <setbuf>:
  16064. 80068ec: 2900 cmp r1, #0
  16065. 80068ee: f44f 6380 mov.w r3, #1024 ; 0x400
  16066. 80068f2: bf0c ite eq
  16067. 80068f4: 2202 moveq r2, #2
  16068. 80068f6: 2200 movne r2, #0
  16069. 80068f8: f000 b800 b.w 80068fc <setvbuf>
  16070. 080068fc <setvbuf>:
  16071. 80068fc: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  16072. 8006900: 461d mov r5, r3
  16073. 8006902: 4b51 ldr r3, [pc, #324] ; (8006a48 <setvbuf+0x14c>)
  16074. 8006904: 4604 mov r4, r0
  16075. 8006906: 681e ldr r6, [r3, #0]
  16076. 8006908: 460f mov r7, r1
  16077. 800690a: 4690 mov r8, r2
  16078. 800690c: b126 cbz r6, 8006918 <setvbuf+0x1c>
  16079. 800690e: 69b3 ldr r3, [r6, #24]
  16080. 8006910: b913 cbnz r3, 8006918 <setvbuf+0x1c>
  16081. 8006912: 4630 mov r0, r6
  16082. 8006914: f001 f894 bl 8007a40 <__sinit>
  16083. 8006918: 4b4c ldr r3, [pc, #304] ; (8006a4c <setvbuf+0x150>)
  16084. 800691a: 429c cmp r4, r3
  16085. 800691c: d152 bne.n 80069c4 <setvbuf+0xc8>
  16086. 800691e: 6874 ldr r4, [r6, #4]
  16087. 8006920: f1b8 0f02 cmp.w r8, #2
  16088. 8006924: d006 beq.n 8006934 <setvbuf+0x38>
  16089. 8006926: f1b8 0f01 cmp.w r8, #1
  16090. 800692a: f200 8089 bhi.w 8006a40 <setvbuf+0x144>
  16091. 800692e: 2d00 cmp r5, #0
  16092. 8006930: f2c0 8086 blt.w 8006a40 <setvbuf+0x144>
  16093. 8006934: 4621 mov r1, r4
  16094. 8006936: 4630 mov r0, r6
  16095. 8006938: f001 f818 bl 800796c <_fflush_r>
  16096. 800693c: 6b61 ldr r1, [r4, #52] ; 0x34
  16097. 800693e: b141 cbz r1, 8006952 <setvbuf+0x56>
  16098. 8006940: f104 0344 add.w r3, r4, #68 ; 0x44
  16099. 8006944: 4299 cmp r1, r3
  16100. 8006946: d002 beq.n 800694e <setvbuf+0x52>
  16101. 8006948: 4630 mov r0, r6
  16102. 800694a: f001 fc81 bl 8008250 <_free_r>
  16103. 800694e: 2300 movs r3, #0
  16104. 8006950: 6363 str r3, [r4, #52] ; 0x34
  16105. 8006952: 2300 movs r3, #0
  16106. 8006954: 61a3 str r3, [r4, #24]
  16107. 8006956: 6063 str r3, [r4, #4]
  16108. 8006958: 89a3 ldrh r3, [r4, #12]
  16109. 800695a: 061b lsls r3, r3, #24
  16110. 800695c: d503 bpl.n 8006966 <setvbuf+0x6a>
  16111. 800695e: 6921 ldr r1, [r4, #16]
  16112. 8006960: 4630 mov r0, r6
  16113. 8006962: f001 fc75 bl 8008250 <_free_r>
  16114. 8006966: 89a3 ldrh r3, [r4, #12]
  16115. 8006968: f1b8 0f02 cmp.w r8, #2
  16116. 800696c: f423 634a bic.w r3, r3, #3232 ; 0xca0
  16117. 8006970: f023 0303 bic.w r3, r3, #3
  16118. 8006974: 81a3 strh r3, [r4, #12]
  16119. 8006976: d05d beq.n 8006a34 <setvbuf+0x138>
  16120. 8006978: ab01 add r3, sp, #4
  16121. 800697a: 466a mov r2, sp
  16122. 800697c: 4621 mov r1, r4
  16123. 800697e: 4630 mov r0, r6
  16124. 8006980: f001 f8f6 bl 8007b70 <__swhatbuf_r>
  16125. 8006984: 89a3 ldrh r3, [r4, #12]
  16126. 8006986: 4318 orrs r0, r3
  16127. 8006988: 81a0 strh r0, [r4, #12]
  16128. 800698a: bb2d cbnz r5, 80069d8 <setvbuf+0xdc>
  16129. 800698c: 9d00 ldr r5, [sp, #0]
  16130. 800698e: 4628 mov r0, r5
  16131. 8006990: f001 f952 bl 8007c38 <malloc>
  16132. 8006994: 4607 mov r7, r0
  16133. 8006996: 2800 cmp r0, #0
  16134. 8006998: d14e bne.n 8006a38 <setvbuf+0x13c>
  16135. 800699a: f8dd 9000 ldr.w r9, [sp]
  16136. 800699e: 45a9 cmp r9, r5
  16137. 80069a0: d13c bne.n 8006a1c <setvbuf+0x120>
  16138. 80069a2: f04f 30ff mov.w r0, #4294967295
  16139. 80069a6: 89a3 ldrh r3, [r4, #12]
  16140. 80069a8: f043 0302 orr.w r3, r3, #2
  16141. 80069ac: 81a3 strh r3, [r4, #12]
  16142. 80069ae: 2300 movs r3, #0
  16143. 80069b0: 60a3 str r3, [r4, #8]
  16144. 80069b2: f104 0347 add.w r3, r4, #71 ; 0x47
  16145. 80069b6: 6023 str r3, [r4, #0]
  16146. 80069b8: 6123 str r3, [r4, #16]
  16147. 80069ba: 2301 movs r3, #1
  16148. 80069bc: 6163 str r3, [r4, #20]
  16149. 80069be: b003 add sp, #12
  16150. 80069c0: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  16151. 80069c4: 4b22 ldr r3, [pc, #136] ; (8006a50 <setvbuf+0x154>)
  16152. 80069c6: 429c cmp r4, r3
  16153. 80069c8: d101 bne.n 80069ce <setvbuf+0xd2>
  16154. 80069ca: 68b4 ldr r4, [r6, #8]
  16155. 80069cc: e7a8 b.n 8006920 <setvbuf+0x24>
  16156. 80069ce: 4b21 ldr r3, [pc, #132] ; (8006a54 <setvbuf+0x158>)
  16157. 80069d0: 429c cmp r4, r3
  16158. 80069d2: bf08 it eq
  16159. 80069d4: 68f4 ldreq r4, [r6, #12]
  16160. 80069d6: e7a3 b.n 8006920 <setvbuf+0x24>
  16161. 80069d8: 2f00 cmp r7, #0
  16162. 80069da: d0d8 beq.n 800698e <setvbuf+0x92>
  16163. 80069dc: 69b3 ldr r3, [r6, #24]
  16164. 80069de: b913 cbnz r3, 80069e6 <setvbuf+0xea>
  16165. 80069e0: 4630 mov r0, r6
  16166. 80069e2: f001 f82d bl 8007a40 <__sinit>
  16167. 80069e6: f1b8 0f01 cmp.w r8, #1
  16168. 80069ea: bf08 it eq
  16169. 80069ec: 89a3 ldrheq r3, [r4, #12]
  16170. 80069ee: 6027 str r7, [r4, #0]
  16171. 80069f0: bf04 itt eq
  16172. 80069f2: f043 0301 orreq.w r3, r3, #1
  16173. 80069f6: 81a3 strheq r3, [r4, #12]
  16174. 80069f8: 89a3 ldrh r3, [r4, #12]
  16175. 80069fa: e9c4 7504 strd r7, r5, [r4, #16]
  16176. 80069fe: f013 0008 ands.w r0, r3, #8
  16177. 8006a02: d01b beq.n 8006a3c <setvbuf+0x140>
  16178. 8006a04: f013 0001 ands.w r0, r3, #1
  16179. 8006a08: f04f 0300 mov.w r3, #0
  16180. 8006a0c: bf1f itttt ne
  16181. 8006a0e: 426d negne r5, r5
  16182. 8006a10: 60a3 strne r3, [r4, #8]
  16183. 8006a12: 61a5 strne r5, [r4, #24]
  16184. 8006a14: 4618 movne r0, r3
  16185. 8006a16: bf08 it eq
  16186. 8006a18: 60a5 streq r5, [r4, #8]
  16187. 8006a1a: e7d0 b.n 80069be <setvbuf+0xc2>
  16188. 8006a1c: 4648 mov r0, r9
  16189. 8006a1e: f001 f90b bl 8007c38 <malloc>
  16190. 8006a22: 4607 mov r7, r0
  16191. 8006a24: 2800 cmp r0, #0
  16192. 8006a26: d0bc beq.n 80069a2 <setvbuf+0xa6>
  16193. 8006a28: 89a3 ldrh r3, [r4, #12]
  16194. 8006a2a: 464d mov r5, r9
  16195. 8006a2c: f043 0380 orr.w r3, r3, #128 ; 0x80
  16196. 8006a30: 81a3 strh r3, [r4, #12]
  16197. 8006a32: e7d3 b.n 80069dc <setvbuf+0xe0>
  16198. 8006a34: 2000 movs r0, #0
  16199. 8006a36: e7b6 b.n 80069a6 <setvbuf+0xaa>
  16200. 8006a38: 46a9 mov r9, r5
  16201. 8006a3a: e7f5 b.n 8006a28 <setvbuf+0x12c>
  16202. 8006a3c: 60a0 str r0, [r4, #8]
  16203. 8006a3e: e7be b.n 80069be <setvbuf+0xc2>
  16204. 8006a40: f04f 30ff mov.w r0, #4294967295
  16205. 8006a44: e7bb b.n 80069be <setvbuf+0xc2>
  16206. 8006a46: bf00 nop
  16207. 8006a48: 2000000c .word 0x2000000c
  16208. 8006a4c: 08008c18 .word 0x08008c18
  16209. 8006a50: 08008c38 .word 0x08008c38
  16210. 8006a54: 08008bf8 .word 0x08008bf8
  16211. 08006a58 <__swbuf_r>:
  16212. 8006a58: b5f8 push {r3, r4, r5, r6, r7, lr}
  16213. 8006a5a: 460e mov r6, r1
  16214. 8006a5c: 4614 mov r4, r2
  16215. 8006a5e: 4605 mov r5, r0
  16216. 8006a60: b118 cbz r0, 8006a6a <__swbuf_r+0x12>
  16217. 8006a62: 6983 ldr r3, [r0, #24]
  16218. 8006a64: b90b cbnz r3, 8006a6a <__swbuf_r+0x12>
  16219. 8006a66: f000 ffeb bl 8007a40 <__sinit>
  16220. 8006a6a: 4b21 ldr r3, [pc, #132] ; (8006af0 <__swbuf_r+0x98>)
  16221. 8006a6c: 429c cmp r4, r3
  16222. 8006a6e: d12a bne.n 8006ac6 <__swbuf_r+0x6e>
  16223. 8006a70: 686c ldr r4, [r5, #4]
  16224. 8006a72: 69a3 ldr r3, [r4, #24]
  16225. 8006a74: 60a3 str r3, [r4, #8]
  16226. 8006a76: 89a3 ldrh r3, [r4, #12]
  16227. 8006a78: 071a lsls r2, r3, #28
  16228. 8006a7a: d52e bpl.n 8006ada <__swbuf_r+0x82>
  16229. 8006a7c: 6923 ldr r3, [r4, #16]
  16230. 8006a7e: b363 cbz r3, 8006ada <__swbuf_r+0x82>
  16231. 8006a80: 6923 ldr r3, [r4, #16]
  16232. 8006a82: 6820 ldr r0, [r4, #0]
  16233. 8006a84: b2f6 uxtb r6, r6
  16234. 8006a86: 1ac0 subs r0, r0, r3
  16235. 8006a88: 6963 ldr r3, [r4, #20]
  16236. 8006a8a: 4637 mov r7, r6
  16237. 8006a8c: 4283 cmp r3, r0
  16238. 8006a8e: dc04 bgt.n 8006a9a <__swbuf_r+0x42>
  16239. 8006a90: 4621 mov r1, r4
  16240. 8006a92: 4628 mov r0, r5
  16241. 8006a94: f000 ff6a bl 800796c <_fflush_r>
  16242. 8006a98: bb28 cbnz r0, 8006ae6 <__swbuf_r+0x8e>
  16243. 8006a9a: 68a3 ldr r3, [r4, #8]
  16244. 8006a9c: 3001 adds r0, #1
  16245. 8006a9e: 3b01 subs r3, #1
  16246. 8006aa0: 60a3 str r3, [r4, #8]
  16247. 8006aa2: 6823 ldr r3, [r4, #0]
  16248. 8006aa4: 1c5a adds r2, r3, #1
  16249. 8006aa6: 6022 str r2, [r4, #0]
  16250. 8006aa8: 701e strb r6, [r3, #0]
  16251. 8006aaa: 6963 ldr r3, [r4, #20]
  16252. 8006aac: 4283 cmp r3, r0
  16253. 8006aae: d004 beq.n 8006aba <__swbuf_r+0x62>
  16254. 8006ab0: 89a3 ldrh r3, [r4, #12]
  16255. 8006ab2: 07db lsls r3, r3, #31
  16256. 8006ab4: d519 bpl.n 8006aea <__swbuf_r+0x92>
  16257. 8006ab6: 2e0a cmp r6, #10
  16258. 8006ab8: d117 bne.n 8006aea <__swbuf_r+0x92>
  16259. 8006aba: 4621 mov r1, r4
  16260. 8006abc: 4628 mov r0, r5
  16261. 8006abe: f000 ff55 bl 800796c <_fflush_r>
  16262. 8006ac2: b190 cbz r0, 8006aea <__swbuf_r+0x92>
  16263. 8006ac4: e00f b.n 8006ae6 <__swbuf_r+0x8e>
  16264. 8006ac6: 4b0b ldr r3, [pc, #44] ; (8006af4 <__swbuf_r+0x9c>)
  16265. 8006ac8: 429c cmp r4, r3
  16266. 8006aca: d101 bne.n 8006ad0 <__swbuf_r+0x78>
  16267. 8006acc: 68ac ldr r4, [r5, #8]
  16268. 8006ace: e7d0 b.n 8006a72 <__swbuf_r+0x1a>
  16269. 8006ad0: 4b09 ldr r3, [pc, #36] ; (8006af8 <__swbuf_r+0xa0>)
  16270. 8006ad2: 429c cmp r4, r3
  16271. 8006ad4: bf08 it eq
  16272. 8006ad6: 68ec ldreq r4, [r5, #12]
  16273. 8006ad8: e7cb b.n 8006a72 <__swbuf_r+0x1a>
  16274. 8006ada: 4621 mov r1, r4
  16275. 8006adc: 4628 mov r0, r5
  16276. 8006ade: f000 f80d bl 8006afc <__swsetup_r>
  16277. 8006ae2: 2800 cmp r0, #0
  16278. 8006ae4: d0cc beq.n 8006a80 <__swbuf_r+0x28>
  16279. 8006ae6: f04f 37ff mov.w r7, #4294967295
  16280. 8006aea: 4638 mov r0, r7
  16281. 8006aec: bdf8 pop {r3, r4, r5, r6, r7, pc}
  16282. 8006aee: bf00 nop
  16283. 8006af0: 08008c18 .word 0x08008c18
  16284. 8006af4: 08008c38 .word 0x08008c38
  16285. 8006af8: 08008bf8 .word 0x08008bf8
  16286. 08006afc <__swsetup_r>:
  16287. 8006afc: 4b32 ldr r3, [pc, #200] ; (8006bc8 <__swsetup_r+0xcc>)
  16288. 8006afe: b570 push {r4, r5, r6, lr}
  16289. 8006b00: 681d ldr r5, [r3, #0]
  16290. 8006b02: 4606 mov r6, r0
  16291. 8006b04: 460c mov r4, r1
  16292. 8006b06: b125 cbz r5, 8006b12 <__swsetup_r+0x16>
  16293. 8006b08: 69ab ldr r3, [r5, #24]
  16294. 8006b0a: b913 cbnz r3, 8006b12 <__swsetup_r+0x16>
  16295. 8006b0c: 4628 mov r0, r5
  16296. 8006b0e: f000 ff97 bl 8007a40 <__sinit>
  16297. 8006b12: 4b2e ldr r3, [pc, #184] ; (8006bcc <__swsetup_r+0xd0>)
  16298. 8006b14: 429c cmp r4, r3
  16299. 8006b16: d10f bne.n 8006b38 <__swsetup_r+0x3c>
  16300. 8006b18: 686c ldr r4, [r5, #4]
  16301. 8006b1a: f9b4 300c ldrsh.w r3, [r4, #12]
  16302. 8006b1e: b29a uxth r2, r3
  16303. 8006b20: 0715 lsls r5, r2, #28
  16304. 8006b22: d42c bmi.n 8006b7e <__swsetup_r+0x82>
  16305. 8006b24: 06d0 lsls r0, r2, #27
  16306. 8006b26: d411 bmi.n 8006b4c <__swsetup_r+0x50>
  16307. 8006b28: 2209 movs r2, #9
  16308. 8006b2a: 6032 str r2, [r6, #0]
  16309. 8006b2c: f043 0340 orr.w r3, r3, #64 ; 0x40
  16310. 8006b30: 81a3 strh r3, [r4, #12]
  16311. 8006b32: f04f 30ff mov.w r0, #4294967295
  16312. 8006b36: e03e b.n 8006bb6 <__swsetup_r+0xba>
  16313. 8006b38: 4b25 ldr r3, [pc, #148] ; (8006bd0 <__swsetup_r+0xd4>)
  16314. 8006b3a: 429c cmp r4, r3
  16315. 8006b3c: d101 bne.n 8006b42 <__swsetup_r+0x46>
  16316. 8006b3e: 68ac ldr r4, [r5, #8]
  16317. 8006b40: e7eb b.n 8006b1a <__swsetup_r+0x1e>
  16318. 8006b42: 4b24 ldr r3, [pc, #144] ; (8006bd4 <__swsetup_r+0xd8>)
  16319. 8006b44: 429c cmp r4, r3
  16320. 8006b46: bf08 it eq
  16321. 8006b48: 68ec ldreq r4, [r5, #12]
  16322. 8006b4a: e7e6 b.n 8006b1a <__swsetup_r+0x1e>
  16323. 8006b4c: 0751 lsls r1, r2, #29
  16324. 8006b4e: d512 bpl.n 8006b76 <__swsetup_r+0x7a>
  16325. 8006b50: 6b61 ldr r1, [r4, #52] ; 0x34
  16326. 8006b52: b141 cbz r1, 8006b66 <__swsetup_r+0x6a>
  16327. 8006b54: f104 0344 add.w r3, r4, #68 ; 0x44
  16328. 8006b58: 4299 cmp r1, r3
  16329. 8006b5a: d002 beq.n 8006b62 <__swsetup_r+0x66>
  16330. 8006b5c: 4630 mov r0, r6
  16331. 8006b5e: f001 fb77 bl 8008250 <_free_r>
  16332. 8006b62: 2300 movs r3, #0
  16333. 8006b64: 6363 str r3, [r4, #52] ; 0x34
  16334. 8006b66: 89a3 ldrh r3, [r4, #12]
  16335. 8006b68: f023 0324 bic.w r3, r3, #36 ; 0x24
  16336. 8006b6c: 81a3 strh r3, [r4, #12]
  16337. 8006b6e: 2300 movs r3, #0
  16338. 8006b70: 6063 str r3, [r4, #4]
  16339. 8006b72: 6923 ldr r3, [r4, #16]
  16340. 8006b74: 6023 str r3, [r4, #0]
  16341. 8006b76: 89a3 ldrh r3, [r4, #12]
  16342. 8006b78: f043 0308 orr.w r3, r3, #8
  16343. 8006b7c: 81a3 strh r3, [r4, #12]
  16344. 8006b7e: 6923 ldr r3, [r4, #16]
  16345. 8006b80: b94b cbnz r3, 8006b96 <__swsetup_r+0x9a>
  16346. 8006b82: 89a3 ldrh r3, [r4, #12]
  16347. 8006b84: f403 7320 and.w r3, r3, #640 ; 0x280
  16348. 8006b88: f5b3 7f00 cmp.w r3, #512 ; 0x200
  16349. 8006b8c: d003 beq.n 8006b96 <__swsetup_r+0x9a>
  16350. 8006b8e: 4621 mov r1, r4
  16351. 8006b90: 4630 mov r0, r6
  16352. 8006b92: f001 f811 bl 8007bb8 <__smakebuf_r>
  16353. 8006b96: 89a2 ldrh r2, [r4, #12]
  16354. 8006b98: f012 0301 ands.w r3, r2, #1
  16355. 8006b9c: d00c beq.n 8006bb8 <__swsetup_r+0xbc>
  16356. 8006b9e: 2300 movs r3, #0
  16357. 8006ba0: 60a3 str r3, [r4, #8]
  16358. 8006ba2: 6963 ldr r3, [r4, #20]
  16359. 8006ba4: 425b negs r3, r3
  16360. 8006ba6: 61a3 str r3, [r4, #24]
  16361. 8006ba8: 6923 ldr r3, [r4, #16]
  16362. 8006baa: b953 cbnz r3, 8006bc2 <__swsetup_r+0xc6>
  16363. 8006bac: f9b4 300c ldrsh.w r3, [r4, #12]
  16364. 8006bb0: f013 0080 ands.w r0, r3, #128 ; 0x80
  16365. 8006bb4: d1ba bne.n 8006b2c <__swsetup_r+0x30>
  16366. 8006bb6: bd70 pop {r4, r5, r6, pc}
  16367. 8006bb8: 0792 lsls r2, r2, #30
  16368. 8006bba: bf58 it pl
  16369. 8006bbc: 6963 ldrpl r3, [r4, #20]
  16370. 8006bbe: 60a3 str r3, [r4, #8]
  16371. 8006bc0: e7f2 b.n 8006ba8 <__swsetup_r+0xac>
  16372. 8006bc2: 2000 movs r0, #0
  16373. 8006bc4: e7f7 b.n 8006bb6 <__swsetup_r+0xba>
  16374. 8006bc6: bf00 nop
  16375. 8006bc8: 2000000c .word 0x2000000c
  16376. 8006bcc: 08008c18 .word 0x08008c18
  16377. 8006bd0: 08008c38 .word 0x08008c38
  16378. 8006bd4: 08008bf8 .word 0x08008bf8
  16379. 08006bd8 <quorem>:
  16380. 8006bd8: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16381. 8006bdc: 6903 ldr r3, [r0, #16]
  16382. 8006bde: 690c ldr r4, [r1, #16]
  16383. 8006be0: 4680 mov r8, r0
  16384. 8006be2: 42a3 cmp r3, r4
  16385. 8006be4: f2c0 8084 blt.w 8006cf0 <quorem+0x118>
  16386. 8006be8: 3c01 subs r4, #1
  16387. 8006bea: f101 0714 add.w r7, r1, #20
  16388. 8006bee: f100 0614 add.w r6, r0, #20
  16389. 8006bf2: f857 5024 ldr.w r5, [r7, r4, lsl #2]
  16390. 8006bf6: f856 0024 ldr.w r0, [r6, r4, lsl #2]
  16391. 8006bfa: 3501 adds r5, #1
  16392. 8006bfc: fbb0 f5f5 udiv r5, r0, r5
  16393. 8006c00: ea4f 0c84 mov.w ip, r4, lsl #2
  16394. 8006c04: eb06 030c add.w r3, r6, ip
  16395. 8006c08: eb07 090c add.w r9, r7, ip
  16396. 8006c0c: 9301 str r3, [sp, #4]
  16397. 8006c0e: b39d cbz r5, 8006c78 <quorem+0xa0>
  16398. 8006c10: f04f 0a00 mov.w sl, #0
  16399. 8006c14: 4638 mov r0, r7
  16400. 8006c16: 46b6 mov lr, r6
  16401. 8006c18: 46d3 mov fp, sl
  16402. 8006c1a: f850 2b04 ldr.w r2, [r0], #4
  16403. 8006c1e: b293 uxth r3, r2
  16404. 8006c20: fb05 a303 mla r3, r5, r3, sl
  16405. 8006c24: 0c12 lsrs r2, r2, #16
  16406. 8006c26: ea4f 4a13 mov.w sl, r3, lsr #16
  16407. 8006c2a: fb05 a202 mla r2, r5, r2, sl
  16408. 8006c2e: b29b uxth r3, r3
  16409. 8006c30: ebab 0303 sub.w r3, fp, r3
  16410. 8006c34: f8de b000 ldr.w fp, [lr]
  16411. 8006c38: ea4f 4a12 mov.w sl, r2, lsr #16
  16412. 8006c3c: fa1f fb8b uxth.w fp, fp
  16413. 8006c40: 445b add r3, fp
  16414. 8006c42: fa1f fb82 uxth.w fp, r2
  16415. 8006c46: f8de 2000 ldr.w r2, [lr]
  16416. 8006c4a: 4581 cmp r9, r0
  16417. 8006c4c: ebcb 4212 rsb r2, fp, r2, lsr #16
  16418. 8006c50: eb02 4223 add.w r2, r2, r3, asr #16
  16419. 8006c54: b29b uxth r3, r3
  16420. 8006c56: ea43 4302 orr.w r3, r3, r2, lsl #16
  16421. 8006c5a: ea4f 4b22 mov.w fp, r2, asr #16
  16422. 8006c5e: f84e 3b04 str.w r3, [lr], #4
  16423. 8006c62: d2da bcs.n 8006c1a <quorem+0x42>
  16424. 8006c64: f856 300c ldr.w r3, [r6, ip]
  16425. 8006c68: b933 cbnz r3, 8006c78 <quorem+0xa0>
  16426. 8006c6a: 9b01 ldr r3, [sp, #4]
  16427. 8006c6c: 3b04 subs r3, #4
  16428. 8006c6e: 429e cmp r6, r3
  16429. 8006c70: 461a mov r2, r3
  16430. 8006c72: d331 bcc.n 8006cd8 <quorem+0x100>
  16431. 8006c74: f8c8 4010 str.w r4, [r8, #16]
  16432. 8006c78: 4640 mov r0, r8
  16433. 8006c7a: f001 fa13 bl 80080a4 <__mcmp>
  16434. 8006c7e: 2800 cmp r0, #0
  16435. 8006c80: db26 blt.n 8006cd0 <quorem+0xf8>
  16436. 8006c82: 4630 mov r0, r6
  16437. 8006c84: f04f 0c00 mov.w ip, #0
  16438. 8006c88: 3501 adds r5, #1
  16439. 8006c8a: f857 1b04 ldr.w r1, [r7], #4
  16440. 8006c8e: f8d0 e000 ldr.w lr, [r0]
  16441. 8006c92: b28b uxth r3, r1
  16442. 8006c94: ebac 0303 sub.w r3, ip, r3
  16443. 8006c98: fa1f f28e uxth.w r2, lr
  16444. 8006c9c: 4413 add r3, r2
  16445. 8006c9e: 0c0a lsrs r2, r1, #16
  16446. 8006ca0: ebc2 421e rsb r2, r2, lr, lsr #16
  16447. 8006ca4: eb02 4223 add.w r2, r2, r3, asr #16
  16448. 8006ca8: b29b uxth r3, r3
  16449. 8006caa: ea43 4302 orr.w r3, r3, r2, lsl #16
  16450. 8006cae: 45b9 cmp r9, r7
  16451. 8006cb0: ea4f 4c22 mov.w ip, r2, asr #16
  16452. 8006cb4: f840 3b04 str.w r3, [r0], #4
  16453. 8006cb8: d2e7 bcs.n 8006c8a <quorem+0xb2>
  16454. 8006cba: f856 2024 ldr.w r2, [r6, r4, lsl #2]
  16455. 8006cbe: eb06 0384 add.w r3, r6, r4, lsl #2
  16456. 8006cc2: b92a cbnz r2, 8006cd0 <quorem+0xf8>
  16457. 8006cc4: 3b04 subs r3, #4
  16458. 8006cc6: 429e cmp r6, r3
  16459. 8006cc8: 461a mov r2, r3
  16460. 8006cca: d30b bcc.n 8006ce4 <quorem+0x10c>
  16461. 8006ccc: f8c8 4010 str.w r4, [r8, #16]
  16462. 8006cd0: 4628 mov r0, r5
  16463. 8006cd2: b003 add sp, #12
  16464. 8006cd4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  16465. 8006cd8: 6812 ldr r2, [r2, #0]
  16466. 8006cda: 3b04 subs r3, #4
  16467. 8006cdc: 2a00 cmp r2, #0
  16468. 8006cde: d1c9 bne.n 8006c74 <quorem+0x9c>
  16469. 8006ce0: 3c01 subs r4, #1
  16470. 8006ce2: e7c4 b.n 8006c6e <quorem+0x96>
  16471. 8006ce4: 6812 ldr r2, [r2, #0]
  16472. 8006ce6: 3b04 subs r3, #4
  16473. 8006ce8: 2a00 cmp r2, #0
  16474. 8006cea: d1ef bne.n 8006ccc <quorem+0xf4>
  16475. 8006cec: 3c01 subs r4, #1
  16476. 8006cee: e7ea b.n 8006cc6 <quorem+0xee>
  16477. 8006cf0: 2000 movs r0, #0
  16478. 8006cf2: e7ee b.n 8006cd2 <quorem+0xfa>
  16479. 8006cf4: 0000 movs r0, r0
  16480. ...
  16481. 08006cf8 <_dtoa_r>:
  16482. 8006cf8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16483. 8006cfc: 4616 mov r6, r2
  16484. 8006cfe: 461f mov r7, r3
  16485. 8006d00: 6a45 ldr r5, [r0, #36] ; 0x24
  16486. 8006d02: b095 sub sp, #84 ; 0x54
  16487. 8006d04: 4604 mov r4, r0
  16488. 8006d06: f8dd 8084 ldr.w r8, [sp, #132] ; 0x84
  16489. 8006d0a: e9cd 6702 strd r6, r7, [sp, #8]
  16490. 8006d0e: b93d cbnz r5, 8006d20 <_dtoa_r+0x28>
  16491. 8006d10: 2010 movs r0, #16
  16492. 8006d12: f000 ff91 bl 8007c38 <malloc>
  16493. 8006d16: 6260 str r0, [r4, #36] ; 0x24
  16494. 8006d18: e9c0 5501 strd r5, r5, [r0, #4]
  16495. 8006d1c: 6005 str r5, [r0, #0]
  16496. 8006d1e: 60c5 str r5, [r0, #12]
  16497. 8006d20: 6a63 ldr r3, [r4, #36] ; 0x24
  16498. 8006d22: 6819 ldr r1, [r3, #0]
  16499. 8006d24: b151 cbz r1, 8006d3c <_dtoa_r+0x44>
  16500. 8006d26: 685a ldr r2, [r3, #4]
  16501. 8006d28: 2301 movs r3, #1
  16502. 8006d2a: 4093 lsls r3, r2
  16503. 8006d2c: 604a str r2, [r1, #4]
  16504. 8006d2e: 608b str r3, [r1, #8]
  16505. 8006d30: 4620 mov r0, r4
  16506. 8006d32: f000 ffd6 bl 8007ce2 <_Bfree>
  16507. 8006d36: 2200 movs r2, #0
  16508. 8006d38: 6a63 ldr r3, [r4, #36] ; 0x24
  16509. 8006d3a: 601a str r2, [r3, #0]
  16510. 8006d3c: 1e3b subs r3, r7, #0
  16511. 8006d3e: bfaf iteee ge
  16512. 8006d40: 2300 movge r3, #0
  16513. 8006d42: 2201 movlt r2, #1
  16514. 8006d44: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
  16515. 8006d48: 9303 strlt r3, [sp, #12]
  16516. 8006d4a: bfac ite ge
  16517. 8006d4c: f8c8 3000 strge.w r3, [r8]
  16518. 8006d50: f8c8 2000 strlt.w r2, [r8]
  16519. 8006d54: 4bae ldr r3, [pc, #696] ; (8007010 <_dtoa_r+0x318>)
  16520. 8006d56: f8dd 800c ldr.w r8, [sp, #12]
  16521. 8006d5a: ea33 0308 bics.w r3, r3, r8
  16522. 8006d5e: d11b bne.n 8006d98 <_dtoa_r+0xa0>
  16523. 8006d60: f242 730f movw r3, #9999 ; 0x270f
  16524. 8006d64: 9a20 ldr r2, [sp, #128] ; 0x80
  16525. 8006d66: 6013 str r3, [r2, #0]
  16526. 8006d68: 9b02 ldr r3, [sp, #8]
  16527. 8006d6a: b923 cbnz r3, 8006d76 <_dtoa_r+0x7e>
  16528. 8006d6c: f3c8 0013 ubfx r0, r8, #0, #20
  16529. 8006d70: 2800 cmp r0, #0
  16530. 8006d72: f000 8545 beq.w 8007800 <_dtoa_r+0xb08>
  16531. 8006d76: 9b22 ldr r3, [sp, #136] ; 0x88
  16532. 8006d78: b953 cbnz r3, 8006d90 <_dtoa_r+0x98>
  16533. 8006d7a: 4ba6 ldr r3, [pc, #664] ; (8007014 <_dtoa_r+0x31c>)
  16534. 8006d7c: e021 b.n 8006dc2 <_dtoa_r+0xca>
  16535. 8006d7e: 4ba6 ldr r3, [pc, #664] ; (8007018 <_dtoa_r+0x320>)
  16536. 8006d80: 9306 str r3, [sp, #24]
  16537. 8006d82: 3308 adds r3, #8
  16538. 8006d84: 9a22 ldr r2, [sp, #136] ; 0x88
  16539. 8006d86: 6013 str r3, [r2, #0]
  16540. 8006d88: 9806 ldr r0, [sp, #24]
  16541. 8006d8a: b015 add sp, #84 ; 0x54
  16542. 8006d8c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  16543. 8006d90: 4ba0 ldr r3, [pc, #640] ; (8007014 <_dtoa_r+0x31c>)
  16544. 8006d92: 9306 str r3, [sp, #24]
  16545. 8006d94: 3303 adds r3, #3
  16546. 8006d96: e7f5 b.n 8006d84 <_dtoa_r+0x8c>
  16547. 8006d98: e9dd 6702 ldrd r6, r7, [sp, #8]
  16548. 8006d9c: 2200 movs r2, #0
  16549. 8006d9e: 2300 movs r3, #0
  16550. 8006da0: 4630 mov r0, r6
  16551. 8006da2: 4639 mov r1, r7
  16552. 8006da4: f7f9 fe60 bl 8000a68 <__aeabi_dcmpeq>
  16553. 8006da8: 4682 mov sl, r0
  16554. 8006daa: b160 cbz r0, 8006dc6 <_dtoa_r+0xce>
  16555. 8006dac: 2301 movs r3, #1
  16556. 8006dae: 9a20 ldr r2, [sp, #128] ; 0x80
  16557. 8006db0: 6013 str r3, [r2, #0]
  16558. 8006db2: 9b22 ldr r3, [sp, #136] ; 0x88
  16559. 8006db4: 2b00 cmp r3, #0
  16560. 8006db6: f000 8520 beq.w 80077fa <_dtoa_r+0xb02>
  16561. 8006dba: 4b98 ldr r3, [pc, #608] ; (800701c <_dtoa_r+0x324>)
  16562. 8006dbc: 9a22 ldr r2, [sp, #136] ; 0x88
  16563. 8006dbe: 6013 str r3, [r2, #0]
  16564. 8006dc0: 3b01 subs r3, #1
  16565. 8006dc2: 9306 str r3, [sp, #24]
  16566. 8006dc4: e7e0 b.n 8006d88 <_dtoa_r+0x90>
  16567. 8006dc6: ab12 add r3, sp, #72 ; 0x48
  16568. 8006dc8: 9301 str r3, [sp, #4]
  16569. 8006dca: ab13 add r3, sp, #76 ; 0x4c
  16570. 8006dcc: 9300 str r3, [sp, #0]
  16571. 8006dce: 4632 mov r2, r6
  16572. 8006dd0: 463b mov r3, r7
  16573. 8006dd2: 4620 mov r0, r4
  16574. 8006dd4: f001 f9de bl 8008194 <__d2b>
  16575. 8006dd8: f3c8 550a ubfx r5, r8, #20, #11
  16576. 8006ddc: 4683 mov fp, r0
  16577. 8006dde: 2d00 cmp r5, #0
  16578. 8006de0: d07d beq.n 8006ede <_dtoa_r+0x1e6>
  16579. 8006de2: 46b0 mov r8, r6
  16580. 8006de4: f3c7 0313 ubfx r3, r7, #0, #20
  16581. 8006de8: f043 597f orr.w r9, r3, #1069547520 ; 0x3fc00000
  16582. 8006dec: f449 1940 orr.w r9, r9, #3145728 ; 0x300000
  16583. 8006df0: f2a5 35ff subw r5, r5, #1023 ; 0x3ff
  16584. 8006df4: f8cd a040 str.w sl, [sp, #64] ; 0x40
  16585. 8006df8: 2200 movs r2, #0
  16586. 8006dfa: 4b89 ldr r3, [pc, #548] ; (8007020 <_dtoa_r+0x328>)
  16587. 8006dfc: 4640 mov r0, r8
  16588. 8006dfe: 4649 mov r1, r9
  16589. 8006e00: f7f9 fa12 bl 8000228 <__aeabi_dsub>
  16590. 8006e04: a37c add r3, pc, #496 ; (adr r3, 8006ff8 <_dtoa_r+0x300>)
  16591. 8006e06: e9d3 2300 ldrd r2, r3, [r3]
  16592. 8006e0a: f7f9 fbc5 bl 8000598 <__aeabi_dmul>
  16593. 8006e0e: a37c add r3, pc, #496 ; (adr r3, 8007000 <_dtoa_r+0x308>)
  16594. 8006e10: e9d3 2300 ldrd r2, r3, [r3]
  16595. 8006e14: f7f9 fa0a bl 800022c <__adddf3>
  16596. 8006e18: 4606 mov r6, r0
  16597. 8006e1a: 4628 mov r0, r5
  16598. 8006e1c: 460f mov r7, r1
  16599. 8006e1e: f7f9 fb51 bl 80004c4 <__aeabi_i2d>
  16600. 8006e22: a379 add r3, pc, #484 ; (adr r3, 8007008 <_dtoa_r+0x310>)
  16601. 8006e24: e9d3 2300 ldrd r2, r3, [r3]
  16602. 8006e28: f7f9 fbb6 bl 8000598 <__aeabi_dmul>
  16603. 8006e2c: 4602 mov r2, r0
  16604. 8006e2e: 460b mov r3, r1
  16605. 8006e30: 4630 mov r0, r6
  16606. 8006e32: 4639 mov r1, r7
  16607. 8006e34: f7f9 f9fa bl 800022c <__adddf3>
  16608. 8006e38: 4606 mov r6, r0
  16609. 8006e3a: 460f mov r7, r1
  16610. 8006e3c: f7f9 fe5c bl 8000af8 <__aeabi_d2iz>
  16611. 8006e40: 2200 movs r2, #0
  16612. 8006e42: 4682 mov sl, r0
  16613. 8006e44: 2300 movs r3, #0
  16614. 8006e46: 4630 mov r0, r6
  16615. 8006e48: 4639 mov r1, r7
  16616. 8006e4a: f7f9 fe17 bl 8000a7c <__aeabi_dcmplt>
  16617. 8006e4e: b148 cbz r0, 8006e64 <_dtoa_r+0x16c>
  16618. 8006e50: 4650 mov r0, sl
  16619. 8006e52: f7f9 fb37 bl 80004c4 <__aeabi_i2d>
  16620. 8006e56: 4632 mov r2, r6
  16621. 8006e58: 463b mov r3, r7
  16622. 8006e5a: f7f9 fe05 bl 8000a68 <__aeabi_dcmpeq>
  16623. 8006e5e: b908 cbnz r0, 8006e64 <_dtoa_r+0x16c>
  16624. 8006e60: f10a 3aff add.w sl, sl, #4294967295
  16625. 8006e64: f1ba 0f16 cmp.w sl, #22
  16626. 8006e68: d85a bhi.n 8006f20 <_dtoa_r+0x228>
  16627. 8006e6a: e9dd 2302 ldrd r2, r3, [sp, #8]
  16628. 8006e6e: 496d ldr r1, [pc, #436] ; (8007024 <_dtoa_r+0x32c>)
  16629. 8006e70: eb01 01ca add.w r1, r1, sl, lsl #3
  16630. 8006e74: e9d1 0100 ldrd r0, r1, [r1]
  16631. 8006e78: f7f9 fe1e bl 8000ab8 <__aeabi_dcmpgt>
  16632. 8006e7c: 2800 cmp r0, #0
  16633. 8006e7e: d051 beq.n 8006f24 <_dtoa_r+0x22c>
  16634. 8006e80: 2300 movs r3, #0
  16635. 8006e82: f10a 3aff add.w sl, sl, #4294967295
  16636. 8006e86: 930d str r3, [sp, #52] ; 0x34
  16637. 8006e88: 9b12 ldr r3, [sp, #72] ; 0x48
  16638. 8006e8a: 1b5d subs r5, r3, r5
  16639. 8006e8c: 1e6b subs r3, r5, #1
  16640. 8006e8e: 9307 str r3, [sp, #28]
  16641. 8006e90: bf43 ittte mi
  16642. 8006e92: 2300 movmi r3, #0
  16643. 8006e94: f1c5 0901 rsbmi r9, r5, #1
  16644. 8006e98: 9307 strmi r3, [sp, #28]
  16645. 8006e9a: f04f 0900 movpl.w r9, #0
  16646. 8006e9e: f1ba 0f00 cmp.w sl, #0
  16647. 8006ea2: db41 blt.n 8006f28 <_dtoa_r+0x230>
  16648. 8006ea4: 9b07 ldr r3, [sp, #28]
  16649. 8006ea6: f8cd a030 str.w sl, [sp, #48] ; 0x30
  16650. 8006eaa: 4453 add r3, sl
  16651. 8006eac: 9307 str r3, [sp, #28]
  16652. 8006eae: 2300 movs r3, #0
  16653. 8006eb0: 9308 str r3, [sp, #32]
  16654. 8006eb2: 9b1e ldr r3, [sp, #120] ; 0x78
  16655. 8006eb4: 2b09 cmp r3, #9
  16656. 8006eb6: f200 808f bhi.w 8006fd8 <_dtoa_r+0x2e0>
  16657. 8006eba: 2b05 cmp r3, #5
  16658. 8006ebc: bfc4 itt gt
  16659. 8006ebe: 3b04 subgt r3, #4
  16660. 8006ec0: 931e strgt r3, [sp, #120] ; 0x78
  16661. 8006ec2: 9b1e ldr r3, [sp, #120] ; 0x78
  16662. 8006ec4: bfc8 it gt
  16663. 8006ec6: 2500 movgt r5, #0
  16664. 8006ec8: f1a3 0302 sub.w r3, r3, #2
  16665. 8006ecc: bfd8 it le
  16666. 8006ece: 2501 movle r5, #1
  16667. 8006ed0: 2b03 cmp r3, #3
  16668. 8006ed2: f200 808d bhi.w 8006ff0 <_dtoa_r+0x2f8>
  16669. 8006ed6: e8df f003 tbb [pc, r3]
  16670. 8006eda: 7d7b .short 0x7d7b
  16671. 8006edc: 6f2f .short 0x6f2f
  16672. 8006ede: e9dd 5312 ldrd r5, r3, [sp, #72] ; 0x48
  16673. 8006ee2: 441d add r5, r3
  16674. 8006ee4: f205 4032 addw r0, r5, #1074 ; 0x432
  16675. 8006ee8: 2820 cmp r0, #32
  16676. 8006eea: dd13 ble.n 8006f14 <_dtoa_r+0x21c>
  16677. 8006eec: f1c0 0040 rsb r0, r0, #64 ; 0x40
  16678. 8006ef0: 9b02 ldr r3, [sp, #8]
  16679. 8006ef2: fa08 f800 lsl.w r8, r8, r0
  16680. 8006ef6: f205 4012 addw r0, r5, #1042 ; 0x412
  16681. 8006efa: fa23 f000 lsr.w r0, r3, r0
  16682. 8006efe: ea48 0000 orr.w r0, r8, r0
  16683. 8006f02: f7f9 facf bl 80004a4 <__aeabi_ui2d>
  16684. 8006f06: 2301 movs r3, #1
  16685. 8006f08: 4680 mov r8, r0
  16686. 8006f0a: f1a1 79f8 sub.w r9, r1, #32505856 ; 0x1f00000
  16687. 8006f0e: 3d01 subs r5, #1
  16688. 8006f10: 9310 str r3, [sp, #64] ; 0x40
  16689. 8006f12: e771 b.n 8006df8 <_dtoa_r+0x100>
  16690. 8006f14: 9b02 ldr r3, [sp, #8]
  16691. 8006f16: f1c0 0020 rsb r0, r0, #32
  16692. 8006f1a: fa03 f000 lsl.w r0, r3, r0
  16693. 8006f1e: e7f0 b.n 8006f02 <_dtoa_r+0x20a>
  16694. 8006f20: 2301 movs r3, #1
  16695. 8006f22: e7b0 b.n 8006e86 <_dtoa_r+0x18e>
  16696. 8006f24: 900d str r0, [sp, #52] ; 0x34
  16697. 8006f26: e7af b.n 8006e88 <_dtoa_r+0x190>
  16698. 8006f28: f1ca 0300 rsb r3, sl, #0
  16699. 8006f2c: 9308 str r3, [sp, #32]
  16700. 8006f2e: 2300 movs r3, #0
  16701. 8006f30: eba9 090a sub.w r9, r9, sl
  16702. 8006f34: 930c str r3, [sp, #48] ; 0x30
  16703. 8006f36: e7bc b.n 8006eb2 <_dtoa_r+0x1ba>
  16704. 8006f38: 2301 movs r3, #1
  16705. 8006f3a: 9309 str r3, [sp, #36] ; 0x24
  16706. 8006f3c: 9b1f ldr r3, [sp, #124] ; 0x7c
  16707. 8006f3e: 2b00 cmp r3, #0
  16708. 8006f40: dd74 ble.n 800702c <_dtoa_r+0x334>
  16709. 8006f42: 4698 mov r8, r3
  16710. 8006f44: 9304 str r3, [sp, #16]
  16711. 8006f46: 2200 movs r2, #0
  16712. 8006f48: 6a66 ldr r6, [r4, #36] ; 0x24
  16713. 8006f4a: 6072 str r2, [r6, #4]
  16714. 8006f4c: 2204 movs r2, #4
  16715. 8006f4e: f102 0014 add.w r0, r2, #20
  16716. 8006f52: 4298 cmp r0, r3
  16717. 8006f54: 6871 ldr r1, [r6, #4]
  16718. 8006f56: d96e bls.n 8007036 <_dtoa_r+0x33e>
  16719. 8006f58: 4620 mov r0, r4
  16720. 8006f5a: f000 fe8e bl 8007c7a <_Balloc>
  16721. 8006f5e: 6a63 ldr r3, [r4, #36] ; 0x24
  16722. 8006f60: 6030 str r0, [r6, #0]
  16723. 8006f62: 681b ldr r3, [r3, #0]
  16724. 8006f64: f1b8 0f0e cmp.w r8, #14
  16725. 8006f68: 9306 str r3, [sp, #24]
  16726. 8006f6a: f200 80ed bhi.w 8007148 <_dtoa_r+0x450>
  16727. 8006f6e: 2d00 cmp r5, #0
  16728. 8006f70: f000 80ea beq.w 8007148 <_dtoa_r+0x450>
  16729. 8006f74: e9dd 2302 ldrd r2, r3, [sp, #8]
  16730. 8006f78: f1ba 0f00 cmp.w sl, #0
  16731. 8006f7c: e9cd 230e strd r2, r3, [sp, #56] ; 0x38
  16732. 8006f80: dd77 ble.n 8007072 <_dtoa_r+0x37a>
  16733. 8006f82: 4a28 ldr r2, [pc, #160] ; (8007024 <_dtoa_r+0x32c>)
  16734. 8006f84: f00a 030f and.w r3, sl, #15
  16735. 8006f88: ea4f 162a mov.w r6, sl, asr #4
  16736. 8006f8c: eb02 03c3 add.w r3, r2, r3, lsl #3
  16737. 8006f90: 06f0 lsls r0, r6, #27
  16738. 8006f92: e9d3 2300 ldrd r2, r3, [r3]
  16739. 8006f96: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  16740. 8006f9a: d568 bpl.n 800706e <_dtoa_r+0x376>
  16741. 8006f9c: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  16742. 8006fa0: 4b21 ldr r3, [pc, #132] ; (8007028 <_dtoa_r+0x330>)
  16743. 8006fa2: 2503 movs r5, #3
  16744. 8006fa4: e9d3 2308 ldrd r2, r3, [r3, #32]
  16745. 8006fa8: f7f9 fc20 bl 80007ec <__aeabi_ddiv>
  16746. 8006fac: e9cd 0102 strd r0, r1, [sp, #8]
  16747. 8006fb0: f006 060f and.w r6, r6, #15
  16748. 8006fb4: 4f1c ldr r7, [pc, #112] ; (8007028 <_dtoa_r+0x330>)
  16749. 8006fb6: e04f b.n 8007058 <_dtoa_r+0x360>
  16750. 8006fb8: 2301 movs r3, #1
  16751. 8006fba: 9309 str r3, [sp, #36] ; 0x24
  16752. 8006fbc: 9b1f ldr r3, [sp, #124] ; 0x7c
  16753. 8006fbe: 4453 add r3, sl
  16754. 8006fc0: f103 0801 add.w r8, r3, #1
  16755. 8006fc4: 9304 str r3, [sp, #16]
  16756. 8006fc6: 4643 mov r3, r8
  16757. 8006fc8: 2b01 cmp r3, #1
  16758. 8006fca: bfb8 it lt
  16759. 8006fcc: 2301 movlt r3, #1
  16760. 8006fce: e7ba b.n 8006f46 <_dtoa_r+0x24e>
  16761. 8006fd0: 2300 movs r3, #0
  16762. 8006fd2: e7b2 b.n 8006f3a <_dtoa_r+0x242>
  16763. 8006fd4: 2300 movs r3, #0
  16764. 8006fd6: e7f0 b.n 8006fba <_dtoa_r+0x2c2>
  16765. 8006fd8: 2501 movs r5, #1
  16766. 8006fda: 2300 movs r3, #0
  16767. 8006fdc: 9509 str r5, [sp, #36] ; 0x24
  16768. 8006fde: 931e str r3, [sp, #120] ; 0x78
  16769. 8006fe0: f04f 33ff mov.w r3, #4294967295
  16770. 8006fe4: 2200 movs r2, #0
  16771. 8006fe6: 9304 str r3, [sp, #16]
  16772. 8006fe8: 4698 mov r8, r3
  16773. 8006fea: 2312 movs r3, #18
  16774. 8006fec: 921f str r2, [sp, #124] ; 0x7c
  16775. 8006fee: e7aa b.n 8006f46 <_dtoa_r+0x24e>
  16776. 8006ff0: 2301 movs r3, #1
  16777. 8006ff2: 9309 str r3, [sp, #36] ; 0x24
  16778. 8006ff4: e7f4 b.n 8006fe0 <_dtoa_r+0x2e8>
  16779. 8006ff6: bf00 nop
  16780. 8006ff8: 636f4361 .word 0x636f4361
  16781. 8006ffc: 3fd287a7 .word 0x3fd287a7
  16782. 8007000: 8b60c8b3 .word 0x8b60c8b3
  16783. 8007004: 3fc68a28 .word 0x3fc68a28
  16784. 8007008: 509f79fb .word 0x509f79fb
  16785. 800700c: 3fd34413 .word 0x3fd34413
  16786. 8007010: 7ff00000 .word 0x7ff00000
  16787. 8007014: 08008bf1 .word 0x08008bf1
  16788. 8007018: 08008be8 .word 0x08008be8
  16789. 800701c: 08008bc5 .word 0x08008bc5
  16790. 8007020: 3ff80000 .word 0x3ff80000
  16791. 8007024: 08008c80 .word 0x08008c80
  16792. 8007028: 08008c58 .word 0x08008c58
  16793. 800702c: 2301 movs r3, #1
  16794. 800702e: 9304 str r3, [sp, #16]
  16795. 8007030: 4698 mov r8, r3
  16796. 8007032: 461a mov r2, r3
  16797. 8007034: e7da b.n 8006fec <_dtoa_r+0x2f4>
  16798. 8007036: 3101 adds r1, #1
  16799. 8007038: 6071 str r1, [r6, #4]
  16800. 800703a: 0052 lsls r2, r2, #1
  16801. 800703c: e787 b.n 8006f4e <_dtoa_r+0x256>
  16802. 800703e: 07f1 lsls r1, r6, #31
  16803. 8007040: d508 bpl.n 8007054 <_dtoa_r+0x35c>
  16804. 8007042: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16805. 8007046: e9d7 2300 ldrd r2, r3, [r7]
  16806. 800704a: f7f9 faa5 bl 8000598 <__aeabi_dmul>
  16807. 800704e: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16808. 8007052: 3501 adds r5, #1
  16809. 8007054: 1076 asrs r6, r6, #1
  16810. 8007056: 3708 adds r7, #8
  16811. 8007058: 2e00 cmp r6, #0
  16812. 800705a: d1f0 bne.n 800703e <_dtoa_r+0x346>
  16813. 800705c: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16814. 8007060: e9dd 0102 ldrd r0, r1, [sp, #8]
  16815. 8007064: f7f9 fbc2 bl 80007ec <__aeabi_ddiv>
  16816. 8007068: e9cd 0102 strd r0, r1, [sp, #8]
  16817. 800706c: e01b b.n 80070a6 <_dtoa_r+0x3ae>
  16818. 800706e: 2502 movs r5, #2
  16819. 8007070: e7a0 b.n 8006fb4 <_dtoa_r+0x2bc>
  16820. 8007072: f000 80a4 beq.w 80071be <_dtoa_r+0x4c6>
  16821. 8007076: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  16822. 800707a: f1ca 0600 rsb r6, sl, #0
  16823. 800707e: 4ba0 ldr r3, [pc, #640] ; (8007300 <_dtoa_r+0x608>)
  16824. 8007080: f006 020f and.w r2, r6, #15
  16825. 8007084: eb03 03c2 add.w r3, r3, r2, lsl #3
  16826. 8007088: e9d3 2300 ldrd r2, r3, [r3]
  16827. 800708c: f7f9 fa84 bl 8000598 <__aeabi_dmul>
  16828. 8007090: 2502 movs r5, #2
  16829. 8007092: 2300 movs r3, #0
  16830. 8007094: e9cd 0102 strd r0, r1, [sp, #8]
  16831. 8007098: 4f9a ldr r7, [pc, #616] ; (8007304 <_dtoa_r+0x60c>)
  16832. 800709a: 1136 asrs r6, r6, #4
  16833. 800709c: 2e00 cmp r6, #0
  16834. 800709e: f040 8083 bne.w 80071a8 <_dtoa_r+0x4b0>
  16835. 80070a2: 2b00 cmp r3, #0
  16836. 80070a4: d1e0 bne.n 8007068 <_dtoa_r+0x370>
  16837. 80070a6: 9b0d ldr r3, [sp, #52] ; 0x34
  16838. 80070a8: 2b00 cmp r3, #0
  16839. 80070aa: f000 808a beq.w 80071c2 <_dtoa_r+0x4ca>
  16840. 80070ae: e9dd 2302 ldrd r2, r3, [sp, #8]
  16841. 80070b2: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  16842. 80070b6: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16843. 80070ba: 2200 movs r2, #0
  16844. 80070bc: 4b92 ldr r3, [pc, #584] ; (8007308 <_dtoa_r+0x610>)
  16845. 80070be: f7f9 fcdd bl 8000a7c <__aeabi_dcmplt>
  16846. 80070c2: 2800 cmp r0, #0
  16847. 80070c4: d07d beq.n 80071c2 <_dtoa_r+0x4ca>
  16848. 80070c6: f1b8 0f00 cmp.w r8, #0
  16849. 80070ca: d07a beq.n 80071c2 <_dtoa_r+0x4ca>
  16850. 80070cc: 9b04 ldr r3, [sp, #16]
  16851. 80070ce: 2b00 cmp r3, #0
  16852. 80070d0: dd36 ble.n 8007140 <_dtoa_r+0x448>
  16853. 80070d2: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16854. 80070d6: 2200 movs r2, #0
  16855. 80070d8: 4b8c ldr r3, [pc, #560] ; (800730c <_dtoa_r+0x614>)
  16856. 80070da: f7f9 fa5d bl 8000598 <__aeabi_dmul>
  16857. 80070de: e9cd 0102 strd r0, r1, [sp, #8]
  16858. 80070e2: 9e04 ldr r6, [sp, #16]
  16859. 80070e4: f10a 37ff add.w r7, sl, #4294967295
  16860. 80070e8: 3501 adds r5, #1
  16861. 80070ea: 4628 mov r0, r5
  16862. 80070ec: f7f9 f9ea bl 80004c4 <__aeabi_i2d>
  16863. 80070f0: e9dd 2302 ldrd r2, r3, [sp, #8]
  16864. 80070f4: f7f9 fa50 bl 8000598 <__aeabi_dmul>
  16865. 80070f8: 2200 movs r2, #0
  16866. 80070fa: 4b85 ldr r3, [pc, #532] ; (8007310 <_dtoa_r+0x618>)
  16867. 80070fc: f7f9 f896 bl 800022c <__adddf3>
  16868. 8007100: f1a1 7550 sub.w r5, r1, #54525952 ; 0x3400000
  16869. 8007104: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16870. 8007108: 950b str r5, [sp, #44] ; 0x2c
  16871. 800710a: 2e00 cmp r6, #0
  16872. 800710c: d15c bne.n 80071c8 <_dtoa_r+0x4d0>
  16873. 800710e: e9dd 0102 ldrd r0, r1, [sp, #8]
  16874. 8007112: 2200 movs r2, #0
  16875. 8007114: 4b7f ldr r3, [pc, #508] ; (8007314 <_dtoa_r+0x61c>)
  16876. 8007116: f7f9 f887 bl 8000228 <__aeabi_dsub>
  16877. 800711a: 9a0a ldr r2, [sp, #40] ; 0x28
  16878. 800711c: 462b mov r3, r5
  16879. 800711e: e9cd 0102 strd r0, r1, [sp, #8]
  16880. 8007122: f7f9 fcc9 bl 8000ab8 <__aeabi_dcmpgt>
  16881. 8007126: 2800 cmp r0, #0
  16882. 8007128: f040 8281 bne.w 800762e <_dtoa_r+0x936>
  16883. 800712c: e9dd 0102 ldrd r0, r1, [sp, #8]
  16884. 8007130: 9a0a ldr r2, [sp, #40] ; 0x28
  16885. 8007132: f105 4300 add.w r3, r5, #2147483648 ; 0x80000000
  16886. 8007136: f7f9 fca1 bl 8000a7c <__aeabi_dcmplt>
  16887. 800713a: 2800 cmp r0, #0
  16888. 800713c: f040 8275 bne.w 800762a <_dtoa_r+0x932>
  16889. 8007140: e9dd 230e ldrd r2, r3, [sp, #56] ; 0x38
  16890. 8007144: e9cd 2302 strd r2, r3, [sp, #8]
  16891. 8007148: 9b13 ldr r3, [sp, #76] ; 0x4c
  16892. 800714a: 2b00 cmp r3, #0
  16893. 800714c: f2c0 814b blt.w 80073e6 <_dtoa_r+0x6ee>
  16894. 8007150: f1ba 0f0e cmp.w sl, #14
  16895. 8007154: f300 8147 bgt.w 80073e6 <_dtoa_r+0x6ee>
  16896. 8007158: 4b69 ldr r3, [pc, #420] ; (8007300 <_dtoa_r+0x608>)
  16897. 800715a: eb03 03ca add.w r3, r3, sl, lsl #3
  16898. 800715e: e9d3 2300 ldrd r2, r3, [r3]
  16899. 8007162: e9cd 2304 strd r2, r3, [sp, #16]
  16900. 8007166: 9b1f ldr r3, [sp, #124] ; 0x7c
  16901. 8007168: 2b00 cmp r3, #0
  16902. 800716a: f280 80d7 bge.w 800731c <_dtoa_r+0x624>
  16903. 800716e: f1b8 0f00 cmp.w r8, #0
  16904. 8007172: f300 80d3 bgt.w 800731c <_dtoa_r+0x624>
  16905. 8007176: f040 8257 bne.w 8007628 <_dtoa_r+0x930>
  16906. 800717a: e9dd 0104 ldrd r0, r1, [sp, #16]
  16907. 800717e: 2200 movs r2, #0
  16908. 8007180: 4b64 ldr r3, [pc, #400] ; (8007314 <_dtoa_r+0x61c>)
  16909. 8007182: f7f9 fa09 bl 8000598 <__aeabi_dmul>
  16910. 8007186: e9dd 2302 ldrd r2, r3, [sp, #8]
  16911. 800718a: f7f9 fc8b bl 8000aa4 <__aeabi_dcmpge>
  16912. 800718e: 4646 mov r6, r8
  16913. 8007190: 4647 mov r7, r8
  16914. 8007192: 2800 cmp r0, #0
  16915. 8007194: f040 822d bne.w 80075f2 <_dtoa_r+0x8fa>
  16916. 8007198: 9b06 ldr r3, [sp, #24]
  16917. 800719a: 9a06 ldr r2, [sp, #24]
  16918. 800719c: 1c5d adds r5, r3, #1
  16919. 800719e: 2331 movs r3, #49 ; 0x31
  16920. 80071a0: f10a 0a01 add.w sl, sl, #1
  16921. 80071a4: 7013 strb r3, [r2, #0]
  16922. 80071a6: e228 b.n 80075fa <_dtoa_r+0x902>
  16923. 80071a8: 07f2 lsls r2, r6, #31
  16924. 80071aa: d505 bpl.n 80071b8 <_dtoa_r+0x4c0>
  16925. 80071ac: e9d7 2300 ldrd r2, r3, [r7]
  16926. 80071b0: f7f9 f9f2 bl 8000598 <__aeabi_dmul>
  16927. 80071b4: 2301 movs r3, #1
  16928. 80071b6: 3501 adds r5, #1
  16929. 80071b8: 1076 asrs r6, r6, #1
  16930. 80071ba: 3708 adds r7, #8
  16931. 80071bc: e76e b.n 800709c <_dtoa_r+0x3a4>
  16932. 80071be: 2502 movs r5, #2
  16933. 80071c0: e771 b.n 80070a6 <_dtoa_r+0x3ae>
  16934. 80071c2: 4657 mov r7, sl
  16935. 80071c4: 4646 mov r6, r8
  16936. 80071c6: e790 b.n 80070ea <_dtoa_r+0x3f2>
  16937. 80071c8: 4b4d ldr r3, [pc, #308] ; (8007300 <_dtoa_r+0x608>)
  16938. 80071ca: eb03 03c6 add.w r3, r3, r6, lsl #3
  16939. 80071ce: e953 0102 ldrd r0, r1, [r3, #-8]
  16940. 80071d2: 9b09 ldr r3, [sp, #36] ; 0x24
  16941. 80071d4: 2b00 cmp r3, #0
  16942. 80071d6: d048 beq.n 800726a <_dtoa_r+0x572>
  16943. 80071d8: 4602 mov r2, r0
  16944. 80071da: 460b mov r3, r1
  16945. 80071dc: 2000 movs r0, #0
  16946. 80071de: 494e ldr r1, [pc, #312] ; (8007318 <_dtoa_r+0x620>)
  16947. 80071e0: f7f9 fb04 bl 80007ec <__aeabi_ddiv>
  16948. 80071e4: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16949. 80071e8: f7f9 f81e bl 8000228 <__aeabi_dsub>
  16950. 80071ec: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16951. 80071f0: 9d06 ldr r5, [sp, #24]
  16952. 80071f2: e9dd 0102 ldrd r0, r1, [sp, #8]
  16953. 80071f6: f7f9 fc7f bl 8000af8 <__aeabi_d2iz>
  16954. 80071fa: 9011 str r0, [sp, #68] ; 0x44
  16955. 80071fc: f7f9 f962 bl 80004c4 <__aeabi_i2d>
  16956. 8007200: 4602 mov r2, r0
  16957. 8007202: 460b mov r3, r1
  16958. 8007204: e9dd 0102 ldrd r0, r1, [sp, #8]
  16959. 8007208: f7f9 f80e bl 8000228 <__aeabi_dsub>
  16960. 800720c: 9b11 ldr r3, [sp, #68] ; 0x44
  16961. 800720e: e9cd 0102 strd r0, r1, [sp, #8]
  16962. 8007212: 3330 adds r3, #48 ; 0x30
  16963. 8007214: f805 3b01 strb.w r3, [r5], #1
  16964. 8007218: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16965. 800721c: f7f9 fc2e bl 8000a7c <__aeabi_dcmplt>
  16966. 8007220: 2800 cmp r0, #0
  16967. 8007222: d163 bne.n 80072ec <_dtoa_r+0x5f4>
  16968. 8007224: e9dd 2302 ldrd r2, r3, [sp, #8]
  16969. 8007228: 2000 movs r0, #0
  16970. 800722a: 4937 ldr r1, [pc, #220] ; (8007308 <_dtoa_r+0x610>)
  16971. 800722c: f7f8 fffc bl 8000228 <__aeabi_dsub>
  16972. 8007230: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16973. 8007234: f7f9 fc22 bl 8000a7c <__aeabi_dcmplt>
  16974. 8007238: 2800 cmp r0, #0
  16975. 800723a: f040 80b5 bne.w 80073a8 <_dtoa_r+0x6b0>
  16976. 800723e: 9b06 ldr r3, [sp, #24]
  16977. 8007240: 1aeb subs r3, r5, r3
  16978. 8007242: 429e cmp r6, r3
  16979. 8007244: f77f af7c ble.w 8007140 <_dtoa_r+0x448>
  16980. 8007248: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16981. 800724c: 2200 movs r2, #0
  16982. 800724e: 4b2f ldr r3, [pc, #188] ; (800730c <_dtoa_r+0x614>)
  16983. 8007250: f7f9 f9a2 bl 8000598 <__aeabi_dmul>
  16984. 8007254: 2200 movs r2, #0
  16985. 8007256: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16986. 800725a: e9dd 0102 ldrd r0, r1, [sp, #8]
  16987. 800725e: 4b2b ldr r3, [pc, #172] ; (800730c <_dtoa_r+0x614>)
  16988. 8007260: f7f9 f99a bl 8000598 <__aeabi_dmul>
  16989. 8007264: e9cd 0102 strd r0, r1, [sp, #8]
  16990. 8007268: e7c3 b.n 80071f2 <_dtoa_r+0x4fa>
  16991. 800726a: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16992. 800726e: f7f9 f993 bl 8000598 <__aeabi_dmul>
  16993. 8007272: 9b06 ldr r3, [sp, #24]
  16994. 8007274: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16995. 8007278: 199d adds r5, r3, r6
  16996. 800727a: 461e mov r6, r3
  16997. 800727c: e9dd 0102 ldrd r0, r1, [sp, #8]
  16998. 8007280: f7f9 fc3a bl 8000af8 <__aeabi_d2iz>
  16999. 8007284: 9011 str r0, [sp, #68] ; 0x44
  17000. 8007286: f7f9 f91d bl 80004c4 <__aeabi_i2d>
  17001. 800728a: 4602 mov r2, r0
  17002. 800728c: 460b mov r3, r1
  17003. 800728e: e9dd 0102 ldrd r0, r1, [sp, #8]
  17004. 8007292: f7f8 ffc9 bl 8000228 <__aeabi_dsub>
  17005. 8007296: 9b11 ldr r3, [sp, #68] ; 0x44
  17006. 8007298: e9cd 0102 strd r0, r1, [sp, #8]
  17007. 800729c: 3330 adds r3, #48 ; 0x30
  17008. 800729e: f806 3b01 strb.w r3, [r6], #1
  17009. 80072a2: 42ae cmp r6, r5
  17010. 80072a4: f04f 0200 mov.w r2, #0
  17011. 80072a8: d124 bne.n 80072f4 <_dtoa_r+0x5fc>
  17012. 80072aa: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  17013. 80072ae: 4b1a ldr r3, [pc, #104] ; (8007318 <_dtoa_r+0x620>)
  17014. 80072b0: f7f8 ffbc bl 800022c <__adddf3>
  17015. 80072b4: 4602 mov r2, r0
  17016. 80072b6: 460b mov r3, r1
  17017. 80072b8: e9dd 0102 ldrd r0, r1, [sp, #8]
  17018. 80072bc: f7f9 fbfc bl 8000ab8 <__aeabi_dcmpgt>
  17019. 80072c0: 2800 cmp r0, #0
  17020. 80072c2: d171 bne.n 80073a8 <_dtoa_r+0x6b0>
  17021. 80072c4: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  17022. 80072c8: 2000 movs r0, #0
  17023. 80072ca: 4913 ldr r1, [pc, #76] ; (8007318 <_dtoa_r+0x620>)
  17024. 80072cc: f7f8 ffac bl 8000228 <__aeabi_dsub>
  17025. 80072d0: 4602 mov r2, r0
  17026. 80072d2: 460b mov r3, r1
  17027. 80072d4: e9dd 0102 ldrd r0, r1, [sp, #8]
  17028. 80072d8: f7f9 fbd0 bl 8000a7c <__aeabi_dcmplt>
  17029. 80072dc: 2800 cmp r0, #0
  17030. 80072de: f43f af2f beq.w 8007140 <_dtoa_r+0x448>
  17031. 80072e2: f815 3c01 ldrb.w r3, [r5, #-1]
  17032. 80072e6: 1e6a subs r2, r5, #1
  17033. 80072e8: 2b30 cmp r3, #48 ; 0x30
  17034. 80072ea: d001 beq.n 80072f0 <_dtoa_r+0x5f8>
  17035. 80072ec: 46ba mov sl, r7
  17036. 80072ee: e04a b.n 8007386 <_dtoa_r+0x68e>
  17037. 80072f0: 4615 mov r5, r2
  17038. 80072f2: e7f6 b.n 80072e2 <_dtoa_r+0x5ea>
  17039. 80072f4: 4b05 ldr r3, [pc, #20] ; (800730c <_dtoa_r+0x614>)
  17040. 80072f6: f7f9 f94f bl 8000598 <__aeabi_dmul>
  17041. 80072fa: e9cd 0102 strd r0, r1, [sp, #8]
  17042. 80072fe: e7bd b.n 800727c <_dtoa_r+0x584>
  17043. 8007300: 08008c80 .word 0x08008c80
  17044. 8007304: 08008c58 .word 0x08008c58
  17045. 8007308: 3ff00000 .word 0x3ff00000
  17046. 800730c: 40240000 .word 0x40240000
  17047. 8007310: 401c0000 .word 0x401c0000
  17048. 8007314: 40140000 .word 0x40140000
  17049. 8007318: 3fe00000 .word 0x3fe00000
  17050. 800731c: 9d06 ldr r5, [sp, #24]
  17051. 800731e: e9dd 6702 ldrd r6, r7, [sp, #8]
  17052. 8007322: e9dd 2304 ldrd r2, r3, [sp, #16]
  17053. 8007326: 4630 mov r0, r6
  17054. 8007328: 4639 mov r1, r7
  17055. 800732a: f7f9 fa5f bl 80007ec <__aeabi_ddiv>
  17056. 800732e: f7f9 fbe3 bl 8000af8 <__aeabi_d2iz>
  17057. 8007332: 4681 mov r9, r0
  17058. 8007334: f7f9 f8c6 bl 80004c4 <__aeabi_i2d>
  17059. 8007338: e9dd 2304 ldrd r2, r3, [sp, #16]
  17060. 800733c: f7f9 f92c bl 8000598 <__aeabi_dmul>
  17061. 8007340: 4602 mov r2, r0
  17062. 8007342: 460b mov r3, r1
  17063. 8007344: 4630 mov r0, r6
  17064. 8007346: 4639 mov r1, r7
  17065. 8007348: f7f8 ff6e bl 8000228 <__aeabi_dsub>
  17066. 800734c: f109 0630 add.w r6, r9, #48 ; 0x30
  17067. 8007350: f805 6b01 strb.w r6, [r5], #1
  17068. 8007354: 9e06 ldr r6, [sp, #24]
  17069. 8007356: 4602 mov r2, r0
  17070. 8007358: 1bae subs r6, r5, r6
  17071. 800735a: 45b0 cmp r8, r6
  17072. 800735c: 460b mov r3, r1
  17073. 800735e: d135 bne.n 80073cc <_dtoa_r+0x6d4>
  17074. 8007360: f7f8 ff64 bl 800022c <__adddf3>
  17075. 8007364: e9dd 2304 ldrd r2, r3, [sp, #16]
  17076. 8007368: 4606 mov r6, r0
  17077. 800736a: 460f mov r7, r1
  17078. 800736c: f7f9 fba4 bl 8000ab8 <__aeabi_dcmpgt>
  17079. 8007370: b9c8 cbnz r0, 80073a6 <_dtoa_r+0x6ae>
  17080. 8007372: e9dd 2304 ldrd r2, r3, [sp, #16]
  17081. 8007376: 4630 mov r0, r6
  17082. 8007378: 4639 mov r1, r7
  17083. 800737a: f7f9 fb75 bl 8000a68 <__aeabi_dcmpeq>
  17084. 800737e: b110 cbz r0, 8007386 <_dtoa_r+0x68e>
  17085. 8007380: f019 0f01 tst.w r9, #1
  17086. 8007384: d10f bne.n 80073a6 <_dtoa_r+0x6ae>
  17087. 8007386: 4659 mov r1, fp
  17088. 8007388: 4620 mov r0, r4
  17089. 800738a: f000 fcaa bl 8007ce2 <_Bfree>
  17090. 800738e: 2300 movs r3, #0
  17091. 8007390: 9a20 ldr r2, [sp, #128] ; 0x80
  17092. 8007392: 702b strb r3, [r5, #0]
  17093. 8007394: f10a 0301 add.w r3, sl, #1
  17094. 8007398: 6013 str r3, [r2, #0]
  17095. 800739a: 9b22 ldr r3, [sp, #136] ; 0x88
  17096. 800739c: 2b00 cmp r3, #0
  17097. 800739e: f43f acf3 beq.w 8006d88 <_dtoa_r+0x90>
  17098. 80073a2: 601d str r5, [r3, #0]
  17099. 80073a4: e4f0 b.n 8006d88 <_dtoa_r+0x90>
  17100. 80073a6: 4657 mov r7, sl
  17101. 80073a8: f815 2c01 ldrb.w r2, [r5, #-1]
  17102. 80073ac: 1e6b subs r3, r5, #1
  17103. 80073ae: 2a39 cmp r2, #57 ; 0x39
  17104. 80073b0: d106 bne.n 80073c0 <_dtoa_r+0x6c8>
  17105. 80073b2: 9a06 ldr r2, [sp, #24]
  17106. 80073b4: 429a cmp r2, r3
  17107. 80073b6: d107 bne.n 80073c8 <_dtoa_r+0x6d0>
  17108. 80073b8: 2330 movs r3, #48 ; 0x30
  17109. 80073ba: 7013 strb r3, [r2, #0]
  17110. 80073bc: 4613 mov r3, r2
  17111. 80073be: 3701 adds r7, #1
  17112. 80073c0: 781a ldrb r2, [r3, #0]
  17113. 80073c2: 3201 adds r2, #1
  17114. 80073c4: 701a strb r2, [r3, #0]
  17115. 80073c6: e791 b.n 80072ec <_dtoa_r+0x5f4>
  17116. 80073c8: 461d mov r5, r3
  17117. 80073ca: e7ed b.n 80073a8 <_dtoa_r+0x6b0>
  17118. 80073cc: 2200 movs r2, #0
  17119. 80073ce: 4b99 ldr r3, [pc, #612] ; (8007634 <_dtoa_r+0x93c>)
  17120. 80073d0: f7f9 f8e2 bl 8000598 <__aeabi_dmul>
  17121. 80073d4: 2200 movs r2, #0
  17122. 80073d6: 2300 movs r3, #0
  17123. 80073d8: 4606 mov r6, r0
  17124. 80073da: 460f mov r7, r1
  17125. 80073dc: f7f9 fb44 bl 8000a68 <__aeabi_dcmpeq>
  17126. 80073e0: 2800 cmp r0, #0
  17127. 80073e2: d09e beq.n 8007322 <_dtoa_r+0x62a>
  17128. 80073e4: e7cf b.n 8007386 <_dtoa_r+0x68e>
  17129. 80073e6: 9a09 ldr r2, [sp, #36] ; 0x24
  17130. 80073e8: 2a00 cmp r2, #0
  17131. 80073ea: f000 8088 beq.w 80074fe <_dtoa_r+0x806>
  17132. 80073ee: 9a1e ldr r2, [sp, #120] ; 0x78
  17133. 80073f0: 2a01 cmp r2, #1
  17134. 80073f2: dc6d bgt.n 80074d0 <_dtoa_r+0x7d8>
  17135. 80073f4: 9a10 ldr r2, [sp, #64] ; 0x40
  17136. 80073f6: 2a00 cmp r2, #0
  17137. 80073f8: d066 beq.n 80074c8 <_dtoa_r+0x7d0>
  17138. 80073fa: f203 4333 addw r3, r3, #1075 ; 0x433
  17139. 80073fe: 464d mov r5, r9
  17140. 8007400: 9e08 ldr r6, [sp, #32]
  17141. 8007402: 9a07 ldr r2, [sp, #28]
  17142. 8007404: 2101 movs r1, #1
  17143. 8007406: 441a add r2, r3
  17144. 8007408: 4620 mov r0, r4
  17145. 800740a: 4499 add r9, r3
  17146. 800740c: 9207 str r2, [sp, #28]
  17147. 800740e: f000 fd08 bl 8007e22 <__i2b>
  17148. 8007412: 4607 mov r7, r0
  17149. 8007414: 2d00 cmp r5, #0
  17150. 8007416: dd0b ble.n 8007430 <_dtoa_r+0x738>
  17151. 8007418: 9b07 ldr r3, [sp, #28]
  17152. 800741a: 2b00 cmp r3, #0
  17153. 800741c: dd08 ble.n 8007430 <_dtoa_r+0x738>
  17154. 800741e: 42ab cmp r3, r5
  17155. 8007420: bfa8 it ge
  17156. 8007422: 462b movge r3, r5
  17157. 8007424: 9a07 ldr r2, [sp, #28]
  17158. 8007426: eba9 0903 sub.w r9, r9, r3
  17159. 800742a: 1aed subs r5, r5, r3
  17160. 800742c: 1ad3 subs r3, r2, r3
  17161. 800742e: 9307 str r3, [sp, #28]
  17162. 8007430: 9b08 ldr r3, [sp, #32]
  17163. 8007432: b1eb cbz r3, 8007470 <_dtoa_r+0x778>
  17164. 8007434: 9b09 ldr r3, [sp, #36] ; 0x24
  17165. 8007436: 2b00 cmp r3, #0
  17166. 8007438: d065 beq.n 8007506 <_dtoa_r+0x80e>
  17167. 800743a: b18e cbz r6, 8007460 <_dtoa_r+0x768>
  17168. 800743c: 4639 mov r1, r7
  17169. 800743e: 4632 mov r2, r6
  17170. 8007440: 4620 mov r0, r4
  17171. 8007442: f000 fd8d bl 8007f60 <__pow5mult>
  17172. 8007446: 465a mov r2, fp
  17173. 8007448: 4601 mov r1, r0
  17174. 800744a: 4607 mov r7, r0
  17175. 800744c: 4620 mov r0, r4
  17176. 800744e: f000 fcf1 bl 8007e34 <__multiply>
  17177. 8007452: 4659 mov r1, fp
  17178. 8007454: 900a str r0, [sp, #40] ; 0x28
  17179. 8007456: 4620 mov r0, r4
  17180. 8007458: f000 fc43 bl 8007ce2 <_Bfree>
  17181. 800745c: 9b0a ldr r3, [sp, #40] ; 0x28
  17182. 800745e: 469b mov fp, r3
  17183. 8007460: 9b08 ldr r3, [sp, #32]
  17184. 8007462: 1b9a subs r2, r3, r6
  17185. 8007464: d004 beq.n 8007470 <_dtoa_r+0x778>
  17186. 8007466: 4659 mov r1, fp
  17187. 8007468: 4620 mov r0, r4
  17188. 800746a: f000 fd79 bl 8007f60 <__pow5mult>
  17189. 800746e: 4683 mov fp, r0
  17190. 8007470: 2101 movs r1, #1
  17191. 8007472: 4620 mov r0, r4
  17192. 8007474: f000 fcd5 bl 8007e22 <__i2b>
  17193. 8007478: 9b0c ldr r3, [sp, #48] ; 0x30
  17194. 800747a: 4606 mov r6, r0
  17195. 800747c: 2b00 cmp r3, #0
  17196. 800747e: f000 81c6 beq.w 800780e <_dtoa_r+0xb16>
  17197. 8007482: 461a mov r2, r3
  17198. 8007484: 4601 mov r1, r0
  17199. 8007486: 4620 mov r0, r4
  17200. 8007488: f000 fd6a bl 8007f60 <__pow5mult>
  17201. 800748c: 9b1e ldr r3, [sp, #120] ; 0x78
  17202. 800748e: 4606 mov r6, r0
  17203. 8007490: 2b01 cmp r3, #1
  17204. 8007492: dc3e bgt.n 8007512 <_dtoa_r+0x81a>
  17205. 8007494: 9b02 ldr r3, [sp, #8]
  17206. 8007496: 2b00 cmp r3, #0
  17207. 8007498: d137 bne.n 800750a <_dtoa_r+0x812>
  17208. 800749a: 9b03 ldr r3, [sp, #12]
  17209. 800749c: f3c3 0313 ubfx r3, r3, #0, #20
  17210. 80074a0: 2b00 cmp r3, #0
  17211. 80074a2: d134 bne.n 800750e <_dtoa_r+0x816>
  17212. 80074a4: 9b03 ldr r3, [sp, #12]
  17213. 80074a6: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  17214. 80074aa: 0d1b lsrs r3, r3, #20
  17215. 80074ac: 051b lsls r3, r3, #20
  17216. 80074ae: b12b cbz r3, 80074bc <_dtoa_r+0x7c4>
  17217. 80074b0: 9b07 ldr r3, [sp, #28]
  17218. 80074b2: f109 0901 add.w r9, r9, #1
  17219. 80074b6: 3301 adds r3, #1
  17220. 80074b8: 9307 str r3, [sp, #28]
  17221. 80074ba: 2301 movs r3, #1
  17222. 80074bc: 9308 str r3, [sp, #32]
  17223. 80074be: 9b0c ldr r3, [sp, #48] ; 0x30
  17224. 80074c0: 2b00 cmp r3, #0
  17225. 80074c2: d128 bne.n 8007516 <_dtoa_r+0x81e>
  17226. 80074c4: 2001 movs r0, #1
  17227. 80074c6: e02e b.n 8007526 <_dtoa_r+0x82e>
  17228. 80074c8: 9b12 ldr r3, [sp, #72] ; 0x48
  17229. 80074ca: f1c3 0336 rsb r3, r3, #54 ; 0x36
  17230. 80074ce: e796 b.n 80073fe <_dtoa_r+0x706>
  17231. 80074d0: 9b08 ldr r3, [sp, #32]
  17232. 80074d2: f108 36ff add.w r6, r8, #4294967295
  17233. 80074d6: 42b3 cmp r3, r6
  17234. 80074d8: bfb7 itett lt
  17235. 80074da: 9b08 ldrlt r3, [sp, #32]
  17236. 80074dc: 1b9e subge r6, r3, r6
  17237. 80074de: 1af2 sublt r2, r6, r3
  17238. 80074e0: 9b0c ldrlt r3, [sp, #48] ; 0x30
  17239. 80074e2: bfbf itttt lt
  17240. 80074e4: 9608 strlt r6, [sp, #32]
  17241. 80074e6: 189b addlt r3, r3, r2
  17242. 80074e8: 930c strlt r3, [sp, #48] ; 0x30
  17243. 80074ea: 2600 movlt r6, #0
  17244. 80074ec: f1b8 0f00 cmp.w r8, #0
  17245. 80074f0: bfb9 ittee lt
  17246. 80074f2: eba9 0508 sublt.w r5, r9, r8
  17247. 80074f6: 2300 movlt r3, #0
  17248. 80074f8: 464d movge r5, r9
  17249. 80074fa: 4643 movge r3, r8
  17250. 80074fc: e781 b.n 8007402 <_dtoa_r+0x70a>
  17251. 80074fe: 9e08 ldr r6, [sp, #32]
  17252. 8007500: 464d mov r5, r9
  17253. 8007502: 9f09 ldr r7, [sp, #36] ; 0x24
  17254. 8007504: e786 b.n 8007414 <_dtoa_r+0x71c>
  17255. 8007506: 9a08 ldr r2, [sp, #32]
  17256. 8007508: e7ad b.n 8007466 <_dtoa_r+0x76e>
  17257. 800750a: 2300 movs r3, #0
  17258. 800750c: e7d6 b.n 80074bc <_dtoa_r+0x7c4>
  17259. 800750e: 9b02 ldr r3, [sp, #8]
  17260. 8007510: e7d4 b.n 80074bc <_dtoa_r+0x7c4>
  17261. 8007512: 2300 movs r3, #0
  17262. 8007514: 9308 str r3, [sp, #32]
  17263. 8007516: 6933 ldr r3, [r6, #16]
  17264. 8007518: eb06 0383 add.w r3, r6, r3, lsl #2
  17265. 800751c: 6918 ldr r0, [r3, #16]
  17266. 800751e: f000 fc32 bl 8007d86 <__hi0bits>
  17267. 8007522: f1c0 0020 rsb r0, r0, #32
  17268. 8007526: 9b07 ldr r3, [sp, #28]
  17269. 8007528: 4418 add r0, r3
  17270. 800752a: f010 001f ands.w r0, r0, #31
  17271. 800752e: d047 beq.n 80075c0 <_dtoa_r+0x8c8>
  17272. 8007530: f1c0 0320 rsb r3, r0, #32
  17273. 8007534: 2b04 cmp r3, #4
  17274. 8007536: dd3b ble.n 80075b0 <_dtoa_r+0x8b8>
  17275. 8007538: 9b07 ldr r3, [sp, #28]
  17276. 800753a: f1c0 001c rsb r0, r0, #28
  17277. 800753e: 4481 add r9, r0
  17278. 8007540: 4405 add r5, r0
  17279. 8007542: 4403 add r3, r0
  17280. 8007544: 9307 str r3, [sp, #28]
  17281. 8007546: f1b9 0f00 cmp.w r9, #0
  17282. 800754a: dd05 ble.n 8007558 <_dtoa_r+0x860>
  17283. 800754c: 4659 mov r1, fp
  17284. 800754e: 464a mov r2, r9
  17285. 8007550: 4620 mov r0, r4
  17286. 8007552: f000 fd53 bl 8007ffc <__lshift>
  17287. 8007556: 4683 mov fp, r0
  17288. 8007558: 9b07 ldr r3, [sp, #28]
  17289. 800755a: 2b00 cmp r3, #0
  17290. 800755c: dd05 ble.n 800756a <_dtoa_r+0x872>
  17291. 800755e: 4631 mov r1, r6
  17292. 8007560: 461a mov r2, r3
  17293. 8007562: 4620 mov r0, r4
  17294. 8007564: f000 fd4a bl 8007ffc <__lshift>
  17295. 8007568: 4606 mov r6, r0
  17296. 800756a: 9b0d ldr r3, [sp, #52] ; 0x34
  17297. 800756c: b353 cbz r3, 80075c4 <_dtoa_r+0x8cc>
  17298. 800756e: 4631 mov r1, r6
  17299. 8007570: 4658 mov r0, fp
  17300. 8007572: f000 fd97 bl 80080a4 <__mcmp>
  17301. 8007576: 2800 cmp r0, #0
  17302. 8007578: da24 bge.n 80075c4 <_dtoa_r+0x8cc>
  17303. 800757a: 2300 movs r3, #0
  17304. 800757c: 4659 mov r1, fp
  17305. 800757e: 220a movs r2, #10
  17306. 8007580: 4620 mov r0, r4
  17307. 8007582: f000 fbc5 bl 8007d10 <__multadd>
  17308. 8007586: 9b09 ldr r3, [sp, #36] ; 0x24
  17309. 8007588: f10a 3aff add.w sl, sl, #4294967295
  17310. 800758c: 4683 mov fp, r0
  17311. 800758e: 2b00 cmp r3, #0
  17312. 8007590: f000 8144 beq.w 800781c <_dtoa_r+0xb24>
  17313. 8007594: 2300 movs r3, #0
  17314. 8007596: 4639 mov r1, r7
  17315. 8007598: 220a movs r2, #10
  17316. 800759a: 4620 mov r0, r4
  17317. 800759c: f000 fbb8 bl 8007d10 <__multadd>
  17318. 80075a0: 9b04 ldr r3, [sp, #16]
  17319. 80075a2: 4607 mov r7, r0
  17320. 80075a4: 2b00 cmp r3, #0
  17321. 80075a6: dc4d bgt.n 8007644 <_dtoa_r+0x94c>
  17322. 80075a8: 9b1e ldr r3, [sp, #120] ; 0x78
  17323. 80075aa: 2b02 cmp r3, #2
  17324. 80075ac: dd4a ble.n 8007644 <_dtoa_r+0x94c>
  17325. 80075ae: e011 b.n 80075d4 <_dtoa_r+0x8dc>
  17326. 80075b0: d0c9 beq.n 8007546 <_dtoa_r+0x84e>
  17327. 80075b2: 9a07 ldr r2, [sp, #28]
  17328. 80075b4: 331c adds r3, #28
  17329. 80075b6: 441a add r2, r3
  17330. 80075b8: 4499 add r9, r3
  17331. 80075ba: 441d add r5, r3
  17332. 80075bc: 4613 mov r3, r2
  17333. 80075be: e7c1 b.n 8007544 <_dtoa_r+0x84c>
  17334. 80075c0: 4603 mov r3, r0
  17335. 80075c2: e7f6 b.n 80075b2 <_dtoa_r+0x8ba>
  17336. 80075c4: f1b8 0f00 cmp.w r8, #0
  17337. 80075c8: dc36 bgt.n 8007638 <_dtoa_r+0x940>
  17338. 80075ca: 9b1e ldr r3, [sp, #120] ; 0x78
  17339. 80075cc: 2b02 cmp r3, #2
  17340. 80075ce: dd33 ble.n 8007638 <_dtoa_r+0x940>
  17341. 80075d0: f8cd 8010 str.w r8, [sp, #16]
  17342. 80075d4: 9b04 ldr r3, [sp, #16]
  17343. 80075d6: b963 cbnz r3, 80075f2 <_dtoa_r+0x8fa>
  17344. 80075d8: 4631 mov r1, r6
  17345. 80075da: 2205 movs r2, #5
  17346. 80075dc: 4620 mov r0, r4
  17347. 80075de: f000 fb97 bl 8007d10 <__multadd>
  17348. 80075e2: 4601 mov r1, r0
  17349. 80075e4: 4606 mov r6, r0
  17350. 80075e6: 4658 mov r0, fp
  17351. 80075e8: f000 fd5c bl 80080a4 <__mcmp>
  17352. 80075ec: 2800 cmp r0, #0
  17353. 80075ee: f73f add3 bgt.w 8007198 <_dtoa_r+0x4a0>
  17354. 80075f2: 9b1f ldr r3, [sp, #124] ; 0x7c
  17355. 80075f4: 9d06 ldr r5, [sp, #24]
  17356. 80075f6: ea6f 0a03 mvn.w sl, r3
  17357. 80075fa: f04f 0900 mov.w r9, #0
  17358. 80075fe: 4631 mov r1, r6
  17359. 8007600: 4620 mov r0, r4
  17360. 8007602: f000 fb6e bl 8007ce2 <_Bfree>
  17361. 8007606: 2f00 cmp r7, #0
  17362. 8007608: f43f aebd beq.w 8007386 <_dtoa_r+0x68e>
  17363. 800760c: f1b9 0f00 cmp.w r9, #0
  17364. 8007610: d005 beq.n 800761e <_dtoa_r+0x926>
  17365. 8007612: 45b9 cmp r9, r7
  17366. 8007614: d003 beq.n 800761e <_dtoa_r+0x926>
  17367. 8007616: 4649 mov r1, r9
  17368. 8007618: 4620 mov r0, r4
  17369. 800761a: f000 fb62 bl 8007ce2 <_Bfree>
  17370. 800761e: 4639 mov r1, r7
  17371. 8007620: 4620 mov r0, r4
  17372. 8007622: f000 fb5e bl 8007ce2 <_Bfree>
  17373. 8007626: e6ae b.n 8007386 <_dtoa_r+0x68e>
  17374. 8007628: 2600 movs r6, #0
  17375. 800762a: 4637 mov r7, r6
  17376. 800762c: e7e1 b.n 80075f2 <_dtoa_r+0x8fa>
  17377. 800762e: 46ba mov sl, r7
  17378. 8007630: 4637 mov r7, r6
  17379. 8007632: e5b1 b.n 8007198 <_dtoa_r+0x4a0>
  17380. 8007634: 40240000 .word 0x40240000
  17381. 8007638: 9b09 ldr r3, [sp, #36] ; 0x24
  17382. 800763a: f8cd 8010 str.w r8, [sp, #16]
  17383. 800763e: 2b00 cmp r3, #0
  17384. 8007640: f000 80f3 beq.w 800782a <_dtoa_r+0xb32>
  17385. 8007644: 2d00 cmp r5, #0
  17386. 8007646: dd05 ble.n 8007654 <_dtoa_r+0x95c>
  17387. 8007648: 4639 mov r1, r7
  17388. 800764a: 462a mov r2, r5
  17389. 800764c: 4620 mov r0, r4
  17390. 800764e: f000 fcd5 bl 8007ffc <__lshift>
  17391. 8007652: 4607 mov r7, r0
  17392. 8007654: 9b08 ldr r3, [sp, #32]
  17393. 8007656: 2b00 cmp r3, #0
  17394. 8007658: d04c beq.n 80076f4 <_dtoa_r+0x9fc>
  17395. 800765a: 6879 ldr r1, [r7, #4]
  17396. 800765c: 4620 mov r0, r4
  17397. 800765e: f000 fb0c bl 8007c7a <_Balloc>
  17398. 8007662: 4605 mov r5, r0
  17399. 8007664: 693a ldr r2, [r7, #16]
  17400. 8007666: f107 010c add.w r1, r7, #12
  17401. 800766a: 3202 adds r2, #2
  17402. 800766c: 0092 lsls r2, r2, #2
  17403. 800766e: 300c adds r0, #12
  17404. 8007670: f000 faf8 bl 8007c64 <memcpy>
  17405. 8007674: 2201 movs r2, #1
  17406. 8007676: 4629 mov r1, r5
  17407. 8007678: 4620 mov r0, r4
  17408. 800767a: f000 fcbf bl 8007ffc <__lshift>
  17409. 800767e: 46b9 mov r9, r7
  17410. 8007680: 4607 mov r7, r0
  17411. 8007682: 9b06 ldr r3, [sp, #24]
  17412. 8007684: 9307 str r3, [sp, #28]
  17413. 8007686: 9b02 ldr r3, [sp, #8]
  17414. 8007688: f003 0301 and.w r3, r3, #1
  17415. 800768c: 9308 str r3, [sp, #32]
  17416. 800768e: 4631 mov r1, r6
  17417. 8007690: 4658 mov r0, fp
  17418. 8007692: f7ff faa1 bl 8006bd8 <quorem>
  17419. 8007696: 4649 mov r1, r9
  17420. 8007698: 4605 mov r5, r0
  17421. 800769a: f100 0830 add.w r8, r0, #48 ; 0x30
  17422. 800769e: 4658 mov r0, fp
  17423. 80076a0: f000 fd00 bl 80080a4 <__mcmp>
  17424. 80076a4: 463a mov r2, r7
  17425. 80076a6: 9002 str r0, [sp, #8]
  17426. 80076a8: 4631 mov r1, r6
  17427. 80076aa: 4620 mov r0, r4
  17428. 80076ac: f000 fd14 bl 80080d8 <__mdiff>
  17429. 80076b0: 68c3 ldr r3, [r0, #12]
  17430. 80076b2: 4602 mov r2, r0
  17431. 80076b4: bb03 cbnz r3, 80076f8 <_dtoa_r+0xa00>
  17432. 80076b6: 4601 mov r1, r0
  17433. 80076b8: 9009 str r0, [sp, #36] ; 0x24
  17434. 80076ba: 4658 mov r0, fp
  17435. 80076bc: f000 fcf2 bl 80080a4 <__mcmp>
  17436. 80076c0: 4603 mov r3, r0
  17437. 80076c2: 9a09 ldr r2, [sp, #36] ; 0x24
  17438. 80076c4: 4611 mov r1, r2
  17439. 80076c6: 4620 mov r0, r4
  17440. 80076c8: 9309 str r3, [sp, #36] ; 0x24
  17441. 80076ca: f000 fb0a bl 8007ce2 <_Bfree>
  17442. 80076ce: 9b09 ldr r3, [sp, #36] ; 0x24
  17443. 80076d0: b9a3 cbnz r3, 80076fc <_dtoa_r+0xa04>
  17444. 80076d2: 9a1e ldr r2, [sp, #120] ; 0x78
  17445. 80076d4: b992 cbnz r2, 80076fc <_dtoa_r+0xa04>
  17446. 80076d6: 9a08 ldr r2, [sp, #32]
  17447. 80076d8: b982 cbnz r2, 80076fc <_dtoa_r+0xa04>
  17448. 80076da: f1b8 0f39 cmp.w r8, #57 ; 0x39
  17449. 80076de: d029 beq.n 8007734 <_dtoa_r+0xa3c>
  17450. 80076e0: 9b02 ldr r3, [sp, #8]
  17451. 80076e2: 2b00 cmp r3, #0
  17452. 80076e4: dd01 ble.n 80076ea <_dtoa_r+0x9f2>
  17453. 80076e6: f105 0831 add.w r8, r5, #49 ; 0x31
  17454. 80076ea: 9b07 ldr r3, [sp, #28]
  17455. 80076ec: 1c5d adds r5, r3, #1
  17456. 80076ee: f883 8000 strb.w r8, [r3]
  17457. 80076f2: e784 b.n 80075fe <_dtoa_r+0x906>
  17458. 80076f4: 4638 mov r0, r7
  17459. 80076f6: e7c2 b.n 800767e <_dtoa_r+0x986>
  17460. 80076f8: 2301 movs r3, #1
  17461. 80076fa: e7e3 b.n 80076c4 <_dtoa_r+0x9cc>
  17462. 80076fc: 9a02 ldr r2, [sp, #8]
  17463. 80076fe: 2a00 cmp r2, #0
  17464. 8007700: db04 blt.n 800770c <_dtoa_r+0xa14>
  17465. 8007702: d123 bne.n 800774c <_dtoa_r+0xa54>
  17466. 8007704: 9a1e ldr r2, [sp, #120] ; 0x78
  17467. 8007706: bb0a cbnz r2, 800774c <_dtoa_r+0xa54>
  17468. 8007708: 9a08 ldr r2, [sp, #32]
  17469. 800770a: b9fa cbnz r2, 800774c <_dtoa_r+0xa54>
  17470. 800770c: 2b00 cmp r3, #0
  17471. 800770e: ddec ble.n 80076ea <_dtoa_r+0x9f2>
  17472. 8007710: 4659 mov r1, fp
  17473. 8007712: 2201 movs r2, #1
  17474. 8007714: 4620 mov r0, r4
  17475. 8007716: f000 fc71 bl 8007ffc <__lshift>
  17476. 800771a: 4631 mov r1, r6
  17477. 800771c: 4683 mov fp, r0
  17478. 800771e: f000 fcc1 bl 80080a4 <__mcmp>
  17479. 8007722: 2800 cmp r0, #0
  17480. 8007724: dc03 bgt.n 800772e <_dtoa_r+0xa36>
  17481. 8007726: d1e0 bne.n 80076ea <_dtoa_r+0x9f2>
  17482. 8007728: f018 0f01 tst.w r8, #1
  17483. 800772c: d0dd beq.n 80076ea <_dtoa_r+0x9f2>
  17484. 800772e: f1b8 0f39 cmp.w r8, #57 ; 0x39
  17485. 8007732: d1d8 bne.n 80076e6 <_dtoa_r+0x9ee>
  17486. 8007734: 9b07 ldr r3, [sp, #28]
  17487. 8007736: 9a07 ldr r2, [sp, #28]
  17488. 8007738: 1c5d adds r5, r3, #1
  17489. 800773a: 2339 movs r3, #57 ; 0x39
  17490. 800773c: 7013 strb r3, [r2, #0]
  17491. 800773e: f815 3c01 ldrb.w r3, [r5, #-1]
  17492. 8007742: 1e6a subs r2, r5, #1
  17493. 8007744: 2b39 cmp r3, #57 ; 0x39
  17494. 8007746: d04d beq.n 80077e4 <_dtoa_r+0xaec>
  17495. 8007748: 3301 adds r3, #1
  17496. 800774a: e052 b.n 80077f2 <_dtoa_r+0xafa>
  17497. 800774c: 9a07 ldr r2, [sp, #28]
  17498. 800774e: 2b00 cmp r3, #0
  17499. 8007750: f102 0501 add.w r5, r2, #1
  17500. 8007754: dd06 ble.n 8007764 <_dtoa_r+0xa6c>
  17501. 8007756: f1b8 0f39 cmp.w r8, #57 ; 0x39
  17502. 800775a: d0eb beq.n 8007734 <_dtoa_r+0xa3c>
  17503. 800775c: f108 0801 add.w r8, r8, #1
  17504. 8007760: 9b07 ldr r3, [sp, #28]
  17505. 8007762: e7c4 b.n 80076ee <_dtoa_r+0x9f6>
  17506. 8007764: 9b06 ldr r3, [sp, #24]
  17507. 8007766: 9a04 ldr r2, [sp, #16]
  17508. 8007768: 1aeb subs r3, r5, r3
  17509. 800776a: 4293 cmp r3, r2
  17510. 800776c: f805 8c01 strb.w r8, [r5, #-1]
  17511. 8007770: d021 beq.n 80077b6 <_dtoa_r+0xabe>
  17512. 8007772: 4659 mov r1, fp
  17513. 8007774: 2300 movs r3, #0
  17514. 8007776: 220a movs r2, #10
  17515. 8007778: 4620 mov r0, r4
  17516. 800777a: f000 fac9 bl 8007d10 <__multadd>
  17517. 800777e: 45b9 cmp r9, r7
  17518. 8007780: 4683 mov fp, r0
  17519. 8007782: f04f 0300 mov.w r3, #0
  17520. 8007786: f04f 020a mov.w r2, #10
  17521. 800778a: 4649 mov r1, r9
  17522. 800778c: 4620 mov r0, r4
  17523. 800778e: d105 bne.n 800779c <_dtoa_r+0xaa4>
  17524. 8007790: f000 fabe bl 8007d10 <__multadd>
  17525. 8007794: 4681 mov r9, r0
  17526. 8007796: 4607 mov r7, r0
  17527. 8007798: 9507 str r5, [sp, #28]
  17528. 800779a: e778 b.n 800768e <_dtoa_r+0x996>
  17529. 800779c: f000 fab8 bl 8007d10 <__multadd>
  17530. 80077a0: 4639 mov r1, r7
  17531. 80077a2: 4681 mov r9, r0
  17532. 80077a4: 2300 movs r3, #0
  17533. 80077a6: 220a movs r2, #10
  17534. 80077a8: 4620 mov r0, r4
  17535. 80077aa: f000 fab1 bl 8007d10 <__multadd>
  17536. 80077ae: 4607 mov r7, r0
  17537. 80077b0: e7f2 b.n 8007798 <_dtoa_r+0xaa0>
  17538. 80077b2: f04f 0900 mov.w r9, #0
  17539. 80077b6: 4659 mov r1, fp
  17540. 80077b8: 2201 movs r2, #1
  17541. 80077ba: 4620 mov r0, r4
  17542. 80077bc: f000 fc1e bl 8007ffc <__lshift>
  17543. 80077c0: 4631 mov r1, r6
  17544. 80077c2: 4683 mov fp, r0
  17545. 80077c4: f000 fc6e bl 80080a4 <__mcmp>
  17546. 80077c8: 2800 cmp r0, #0
  17547. 80077ca: dcb8 bgt.n 800773e <_dtoa_r+0xa46>
  17548. 80077cc: d102 bne.n 80077d4 <_dtoa_r+0xadc>
  17549. 80077ce: f018 0f01 tst.w r8, #1
  17550. 80077d2: d1b4 bne.n 800773e <_dtoa_r+0xa46>
  17551. 80077d4: f815 3c01 ldrb.w r3, [r5, #-1]
  17552. 80077d8: 1e6a subs r2, r5, #1
  17553. 80077da: 2b30 cmp r3, #48 ; 0x30
  17554. 80077dc: f47f af0f bne.w 80075fe <_dtoa_r+0x906>
  17555. 80077e0: 4615 mov r5, r2
  17556. 80077e2: e7f7 b.n 80077d4 <_dtoa_r+0xadc>
  17557. 80077e4: 9b06 ldr r3, [sp, #24]
  17558. 80077e6: 4293 cmp r3, r2
  17559. 80077e8: d105 bne.n 80077f6 <_dtoa_r+0xafe>
  17560. 80077ea: 2331 movs r3, #49 ; 0x31
  17561. 80077ec: 9a06 ldr r2, [sp, #24]
  17562. 80077ee: f10a 0a01 add.w sl, sl, #1
  17563. 80077f2: 7013 strb r3, [r2, #0]
  17564. 80077f4: e703 b.n 80075fe <_dtoa_r+0x906>
  17565. 80077f6: 4615 mov r5, r2
  17566. 80077f8: e7a1 b.n 800773e <_dtoa_r+0xa46>
  17567. 80077fa: 4b17 ldr r3, [pc, #92] ; (8007858 <_dtoa_r+0xb60>)
  17568. 80077fc: f7ff bae1 b.w 8006dc2 <_dtoa_r+0xca>
  17569. 8007800: 9b22 ldr r3, [sp, #136] ; 0x88
  17570. 8007802: 2b00 cmp r3, #0
  17571. 8007804: f47f aabb bne.w 8006d7e <_dtoa_r+0x86>
  17572. 8007808: 4b14 ldr r3, [pc, #80] ; (800785c <_dtoa_r+0xb64>)
  17573. 800780a: f7ff bada b.w 8006dc2 <_dtoa_r+0xca>
  17574. 800780e: 9b1e ldr r3, [sp, #120] ; 0x78
  17575. 8007810: 2b01 cmp r3, #1
  17576. 8007812: f77f ae3f ble.w 8007494 <_dtoa_r+0x79c>
  17577. 8007816: 9b0c ldr r3, [sp, #48] ; 0x30
  17578. 8007818: 9308 str r3, [sp, #32]
  17579. 800781a: e653 b.n 80074c4 <_dtoa_r+0x7cc>
  17580. 800781c: 9b04 ldr r3, [sp, #16]
  17581. 800781e: 2b00 cmp r3, #0
  17582. 8007820: dc03 bgt.n 800782a <_dtoa_r+0xb32>
  17583. 8007822: 9b1e ldr r3, [sp, #120] ; 0x78
  17584. 8007824: 2b02 cmp r3, #2
  17585. 8007826: f73f aed5 bgt.w 80075d4 <_dtoa_r+0x8dc>
  17586. 800782a: 9d06 ldr r5, [sp, #24]
  17587. 800782c: 4631 mov r1, r6
  17588. 800782e: 4658 mov r0, fp
  17589. 8007830: f7ff f9d2 bl 8006bd8 <quorem>
  17590. 8007834: 9b06 ldr r3, [sp, #24]
  17591. 8007836: f100 0830 add.w r8, r0, #48 ; 0x30
  17592. 800783a: f805 8b01 strb.w r8, [r5], #1
  17593. 800783e: 9a04 ldr r2, [sp, #16]
  17594. 8007840: 1aeb subs r3, r5, r3
  17595. 8007842: 429a cmp r2, r3
  17596. 8007844: ddb5 ble.n 80077b2 <_dtoa_r+0xaba>
  17597. 8007846: 4659 mov r1, fp
  17598. 8007848: 2300 movs r3, #0
  17599. 800784a: 220a movs r2, #10
  17600. 800784c: 4620 mov r0, r4
  17601. 800784e: f000 fa5f bl 8007d10 <__multadd>
  17602. 8007852: 4683 mov fp, r0
  17603. 8007854: e7ea b.n 800782c <_dtoa_r+0xb34>
  17604. 8007856: bf00 nop
  17605. 8007858: 08008bc4 .word 0x08008bc4
  17606. 800785c: 08008be8 .word 0x08008be8
  17607. 08007860 <__sflush_r>:
  17608. 8007860: 898a ldrh r2, [r1, #12]
  17609. 8007862: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  17610. 8007866: 4605 mov r5, r0
  17611. 8007868: 0710 lsls r0, r2, #28
  17612. 800786a: 460c mov r4, r1
  17613. 800786c: d458 bmi.n 8007920 <__sflush_r+0xc0>
  17614. 800786e: 684b ldr r3, [r1, #4]
  17615. 8007870: 2b00 cmp r3, #0
  17616. 8007872: dc05 bgt.n 8007880 <__sflush_r+0x20>
  17617. 8007874: 6c0b ldr r3, [r1, #64] ; 0x40
  17618. 8007876: 2b00 cmp r3, #0
  17619. 8007878: dc02 bgt.n 8007880 <__sflush_r+0x20>
  17620. 800787a: 2000 movs r0, #0
  17621. 800787c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  17622. 8007880: 6ae6 ldr r6, [r4, #44] ; 0x2c
  17623. 8007882: 2e00 cmp r6, #0
  17624. 8007884: d0f9 beq.n 800787a <__sflush_r+0x1a>
  17625. 8007886: 2300 movs r3, #0
  17626. 8007888: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  17627. 800788c: 682f ldr r7, [r5, #0]
  17628. 800788e: 6a21 ldr r1, [r4, #32]
  17629. 8007890: 602b str r3, [r5, #0]
  17630. 8007892: d032 beq.n 80078fa <__sflush_r+0x9a>
  17631. 8007894: 6d60 ldr r0, [r4, #84] ; 0x54
  17632. 8007896: 89a3 ldrh r3, [r4, #12]
  17633. 8007898: 075a lsls r2, r3, #29
  17634. 800789a: d505 bpl.n 80078a8 <__sflush_r+0x48>
  17635. 800789c: 6863 ldr r3, [r4, #4]
  17636. 800789e: 1ac0 subs r0, r0, r3
  17637. 80078a0: 6b63 ldr r3, [r4, #52] ; 0x34
  17638. 80078a2: b10b cbz r3, 80078a8 <__sflush_r+0x48>
  17639. 80078a4: 6c23 ldr r3, [r4, #64] ; 0x40
  17640. 80078a6: 1ac0 subs r0, r0, r3
  17641. 80078a8: 2300 movs r3, #0
  17642. 80078aa: 4602 mov r2, r0
  17643. 80078ac: 6ae6 ldr r6, [r4, #44] ; 0x2c
  17644. 80078ae: 6a21 ldr r1, [r4, #32]
  17645. 80078b0: 4628 mov r0, r5
  17646. 80078b2: 47b0 blx r6
  17647. 80078b4: 1c43 adds r3, r0, #1
  17648. 80078b6: 89a3 ldrh r3, [r4, #12]
  17649. 80078b8: d106 bne.n 80078c8 <__sflush_r+0x68>
  17650. 80078ba: 6829 ldr r1, [r5, #0]
  17651. 80078bc: 291d cmp r1, #29
  17652. 80078be: d848 bhi.n 8007952 <__sflush_r+0xf2>
  17653. 80078c0: 4a29 ldr r2, [pc, #164] ; (8007968 <__sflush_r+0x108>)
  17654. 80078c2: 40ca lsrs r2, r1
  17655. 80078c4: 07d6 lsls r6, r2, #31
  17656. 80078c6: d544 bpl.n 8007952 <__sflush_r+0xf2>
  17657. 80078c8: 2200 movs r2, #0
  17658. 80078ca: 6062 str r2, [r4, #4]
  17659. 80078cc: 6922 ldr r2, [r4, #16]
  17660. 80078ce: 04d9 lsls r1, r3, #19
  17661. 80078d0: 6022 str r2, [r4, #0]
  17662. 80078d2: d504 bpl.n 80078de <__sflush_r+0x7e>
  17663. 80078d4: 1c42 adds r2, r0, #1
  17664. 80078d6: d101 bne.n 80078dc <__sflush_r+0x7c>
  17665. 80078d8: 682b ldr r3, [r5, #0]
  17666. 80078da: b903 cbnz r3, 80078de <__sflush_r+0x7e>
  17667. 80078dc: 6560 str r0, [r4, #84] ; 0x54
  17668. 80078de: 6b61 ldr r1, [r4, #52] ; 0x34
  17669. 80078e0: 602f str r7, [r5, #0]
  17670. 80078e2: 2900 cmp r1, #0
  17671. 80078e4: d0c9 beq.n 800787a <__sflush_r+0x1a>
  17672. 80078e6: f104 0344 add.w r3, r4, #68 ; 0x44
  17673. 80078ea: 4299 cmp r1, r3
  17674. 80078ec: d002 beq.n 80078f4 <__sflush_r+0x94>
  17675. 80078ee: 4628 mov r0, r5
  17676. 80078f0: f000 fcae bl 8008250 <_free_r>
  17677. 80078f4: 2000 movs r0, #0
  17678. 80078f6: 6360 str r0, [r4, #52] ; 0x34
  17679. 80078f8: e7c0 b.n 800787c <__sflush_r+0x1c>
  17680. 80078fa: 2301 movs r3, #1
  17681. 80078fc: 4628 mov r0, r5
  17682. 80078fe: 47b0 blx r6
  17683. 8007900: 1c41 adds r1, r0, #1
  17684. 8007902: d1c8 bne.n 8007896 <__sflush_r+0x36>
  17685. 8007904: 682b ldr r3, [r5, #0]
  17686. 8007906: 2b00 cmp r3, #0
  17687. 8007908: d0c5 beq.n 8007896 <__sflush_r+0x36>
  17688. 800790a: 2b1d cmp r3, #29
  17689. 800790c: d001 beq.n 8007912 <__sflush_r+0xb2>
  17690. 800790e: 2b16 cmp r3, #22
  17691. 8007910: d101 bne.n 8007916 <__sflush_r+0xb6>
  17692. 8007912: 602f str r7, [r5, #0]
  17693. 8007914: e7b1 b.n 800787a <__sflush_r+0x1a>
  17694. 8007916: 89a3 ldrh r3, [r4, #12]
  17695. 8007918: f043 0340 orr.w r3, r3, #64 ; 0x40
  17696. 800791c: 81a3 strh r3, [r4, #12]
  17697. 800791e: e7ad b.n 800787c <__sflush_r+0x1c>
  17698. 8007920: 690f ldr r7, [r1, #16]
  17699. 8007922: 2f00 cmp r7, #0
  17700. 8007924: d0a9 beq.n 800787a <__sflush_r+0x1a>
  17701. 8007926: 0793 lsls r3, r2, #30
  17702. 8007928: bf18 it ne
  17703. 800792a: 2300 movne r3, #0
  17704. 800792c: 680e ldr r6, [r1, #0]
  17705. 800792e: bf08 it eq
  17706. 8007930: 694b ldreq r3, [r1, #20]
  17707. 8007932: eba6 0807 sub.w r8, r6, r7
  17708. 8007936: 600f str r7, [r1, #0]
  17709. 8007938: 608b str r3, [r1, #8]
  17710. 800793a: f1b8 0f00 cmp.w r8, #0
  17711. 800793e: dd9c ble.n 800787a <__sflush_r+0x1a>
  17712. 8007940: 4643 mov r3, r8
  17713. 8007942: 463a mov r2, r7
  17714. 8007944: 6a21 ldr r1, [r4, #32]
  17715. 8007946: 4628 mov r0, r5
  17716. 8007948: 6aa6 ldr r6, [r4, #40] ; 0x28
  17717. 800794a: 47b0 blx r6
  17718. 800794c: 2800 cmp r0, #0
  17719. 800794e: dc06 bgt.n 800795e <__sflush_r+0xfe>
  17720. 8007950: 89a3 ldrh r3, [r4, #12]
  17721. 8007952: f043 0340 orr.w r3, r3, #64 ; 0x40
  17722. 8007956: 81a3 strh r3, [r4, #12]
  17723. 8007958: f04f 30ff mov.w r0, #4294967295
  17724. 800795c: e78e b.n 800787c <__sflush_r+0x1c>
  17725. 800795e: 4407 add r7, r0
  17726. 8007960: eba8 0800 sub.w r8, r8, r0
  17727. 8007964: e7e9 b.n 800793a <__sflush_r+0xda>
  17728. 8007966: bf00 nop
  17729. 8007968: 20400001 .word 0x20400001
  17730. 0800796c <_fflush_r>:
  17731. 800796c: b538 push {r3, r4, r5, lr}
  17732. 800796e: 690b ldr r3, [r1, #16]
  17733. 8007970: 4605 mov r5, r0
  17734. 8007972: 460c mov r4, r1
  17735. 8007974: b1db cbz r3, 80079ae <_fflush_r+0x42>
  17736. 8007976: b118 cbz r0, 8007980 <_fflush_r+0x14>
  17737. 8007978: 6983 ldr r3, [r0, #24]
  17738. 800797a: b90b cbnz r3, 8007980 <_fflush_r+0x14>
  17739. 800797c: f000 f860 bl 8007a40 <__sinit>
  17740. 8007980: 4b0c ldr r3, [pc, #48] ; (80079b4 <_fflush_r+0x48>)
  17741. 8007982: 429c cmp r4, r3
  17742. 8007984: d109 bne.n 800799a <_fflush_r+0x2e>
  17743. 8007986: 686c ldr r4, [r5, #4]
  17744. 8007988: f9b4 300c ldrsh.w r3, [r4, #12]
  17745. 800798c: b17b cbz r3, 80079ae <_fflush_r+0x42>
  17746. 800798e: 4621 mov r1, r4
  17747. 8007990: 4628 mov r0, r5
  17748. 8007992: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  17749. 8007996: f7ff bf63 b.w 8007860 <__sflush_r>
  17750. 800799a: 4b07 ldr r3, [pc, #28] ; (80079b8 <_fflush_r+0x4c>)
  17751. 800799c: 429c cmp r4, r3
  17752. 800799e: d101 bne.n 80079a4 <_fflush_r+0x38>
  17753. 80079a0: 68ac ldr r4, [r5, #8]
  17754. 80079a2: e7f1 b.n 8007988 <_fflush_r+0x1c>
  17755. 80079a4: 4b05 ldr r3, [pc, #20] ; (80079bc <_fflush_r+0x50>)
  17756. 80079a6: 429c cmp r4, r3
  17757. 80079a8: bf08 it eq
  17758. 80079aa: 68ec ldreq r4, [r5, #12]
  17759. 80079ac: e7ec b.n 8007988 <_fflush_r+0x1c>
  17760. 80079ae: 2000 movs r0, #0
  17761. 80079b0: bd38 pop {r3, r4, r5, pc}
  17762. 80079b2: bf00 nop
  17763. 80079b4: 08008c18 .word 0x08008c18
  17764. 80079b8: 08008c38 .word 0x08008c38
  17765. 80079bc: 08008bf8 .word 0x08008bf8
  17766. 080079c0 <std>:
  17767. 80079c0: 2300 movs r3, #0
  17768. 80079c2: b510 push {r4, lr}
  17769. 80079c4: 4604 mov r4, r0
  17770. 80079c6: e9c0 3300 strd r3, r3, [r0]
  17771. 80079ca: 6083 str r3, [r0, #8]
  17772. 80079cc: 8181 strh r1, [r0, #12]
  17773. 80079ce: 6643 str r3, [r0, #100] ; 0x64
  17774. 80079d0: 81c2 strh r2, [r0, #14]
  17775. 80079d2: e9c0 3304 strd r3, r3, [r0, #16]
  17776. 80079d6: 6183 str r3, [r0, #24]
  17777. 80079d8: 4619 mov r1, r3
  17778. 80079da: 2208 movs r2, #8
  17779. 80079dc: 305c adds r0, #92 ; 0x5c
  17780. 80079de: f7fe fab1 bl 8005f44 <memset>
  17781. 80079e2: 4b05 ldr r3, [pc, #20] ; (80079f8 <std+0x38>)
  17782. 80079e4: 6224 str r4, [r4, #32]
  17783. 80079e6: 6263 str r3, [r4, #36] ; 0x24
  17784. 80079e8: 4b04 ldr r3, [pc, #16] ; (80079fc <std+0x3c>)
  17785. 80079ea: 62a3 str r3, [r4, #40] ; 0x28
  17786. 80079ec: 4b04 ldr r3, [pc, #16] ; (8007a00 <std+0x40>)
  17787. 80079ee: 62e3 str r3, [r4, #44] ; 0x2c
  17788. 80079f0: 4b04 ldr r3, [pc, #16] ; (8007a04 <std+0x44>)
  17789. 80079f2: 6323 str r3, [r4, #48] ; 0x30
  17790. 80079f4: bd10 pop {r4, pc}
  17791. 80079f6: bf00 nop
  17792. 80079f8: 08008639 .word 0x08008639
  17793. 80079fc: 0800865b .word 0x0800865b
  17794. 8007a00: 08008693 .word 0x08008693
  17795. 8007a04: 080086b7 .word 0x080086b7
  17796. 08007a08 <_cleanup_r>:
  17797. 8007a08: 4901 ldr r1, [pc, #4] ; (8007a10 <_cleanup_r+0x8>)
  17798. 8007a0a: f000 b885 b.w 8007b18 <_fwalk_reent>
  17799. 8007a0e: bf00 nop
  17800. 8007a10: 0800796d .word 0x0800796d
  17801. 08007a14 <__sfmoreglue>:
  17802. 8007a14: b570 push {r4, r5, r6, lr}
  17803. 8007a16: 2568 movs r5, #104 ; 0x68
  17804. 8007a18: 1e4a subs r2, r1, #1
  17805. 8007a1a: 4355 muls r5, r2
  17806. 8007a1c: 460e mov r6, r1
  17807. 8007a1e: f105 0174 add.w r1, r5, #116 ; 0x74
  17808. 8007a22: f000 fc61 bl 80082e8 <_malloc_r>
  17809. 8007a26: 4604 mov r4, r0
  17810. 8007a28: b140 cbz r0, 8007a3c <__sfmoreglue+0x28>
  17811. 8007a2a: 2100 movs r1, #0
  17812. 8007a2c: e9c0 1600 strd r1, r6, [r0]
  17813. 8007a30: 300c adds r0, #12
  17814. 8007a32: 60a0 str r0, [r4, #8]
  17815. 8007a34: f105 0268 add.w r2, r5, #104 ; 0x68
  17816. 8007a38: f7fe fa84 bl 8005f44 <memset>
  17817. 8007a3c: 4620 mov r0, r4
  17818. 8007a3e: bd70 pop {r4, r5, r6, pc}
  17819. 08007a40 <__sinit>:
  17820. 8007a40: 6983 ldr r3, [r0, #24]
  17821. 8007a42: b510 push {r4, lr}
  17822. 8007a44: 4604 mov r4, r0
  17823. 8007a46: bb33 cbnz r3, 8007a96 <__sinit+0x56>
  17824. 8007a48: e9c0 3312 strd r3, r3, [r0, #72] ; 0x48
  17825. 8007a4c: 6503 str r3, [r0, #80] ; 0x50
  17826. 8007a4e: 4b12 ldr r3, [pc, #72] ; (8007a98 <__sinit+0x58>)
  17827. 8007a50: 4a12 ldr r2, [pc, #72] ; (8007a9c <__sinit+0x5c>)
  17828. 8007a52: 681b ldr r3, [r3, #0]
  17829. 8007a54: 6282 str r2, [r0, #40] ; 0x28
  17830. 8007a56: 4298 cmp r0, r3
  17831. 8007a58: bf04 itt eq
  17832. 8007a5a: 2301 moveq r3, #1
  17833. 8007a5c: 6183 streq r3, [r0, #24]
  17834. 8007a5e: f000 f81f bl 8007aa0 <__sfp>
  17835. 8007a62: 6060 str r0, [r4, #4]
  17836. 8007a64: 4620 mov r0, r4
  17837. 8007a66: f000 f81b bl 8007aa0 <__sfp>
  17838. 8007a6a: 60a0 str r0, [r4, #8]
  17839. 8007a6c: 4620 mov r0, r4
  17840. 8007a6e: f000 f817 bl 8007aa0 <__sfp>
  17841. 8007a72: 2200 movs r2, #0
  17842. 8007a74: 60e0 str r0, [r4, #12]
  17843. 8007a76: 2104 movs r1, #4
  17844. 8007a78: 6860 ldr r0, [r4, #4]
  17845. 8007a7a: f7ff ffa1 bl 80079c0 <std>
  17846. 8007a7e: 2201 movs r2, #1
  17847. 8007a80: 2109 movs r1, #9
  17848. 8007a82: 68a0 ldr r0, [r4, #8]
  17849. 8007a84: f7ff ff9c bl 80079c0 <std>
  17850. 8007a88: 2202 movs r2, #2
  17851. 8007a8a: 2112 movs r1, #18
  17852. 8007a8c: 68e0 ldr r0, [r4, #12]
  17853. 8007a8e: f7ff ff97 bl 80079c0 <std>
  17854. 8007a92: 2301 movs r3, #1
  17855. 8007a94: 61a3 str r3, [r4, #24]
  17856. 8007a96: bd10 pop {r4, pc}
  17857. 8007a98: 08008bb0 .word 0x08008bb0
  17858. 8007a9c: 08007a09 .word 0x08007a09
  17859. 08007aa0 <__sfp>:
  17860. 8007aa0: b5f8 push {r3, r4, r5, r6, r7, lr}
  17861. 8007aa2: 4b1b ldr r3, [pc, #108] ; (8007b10 <__sfp+0x70>)
  17862. 8007aa4: 4607 mov r7, r0
  17863. 8007aa6: 681e ldr r6, [r3, #0]
  17864. 8007aa8: 69b3 ldr r3, [r6, #24]
  17865. 8007aaa: b913 cbnz r3, 8007ab2 <__sfp+0x12>
  17866. 8007aac: 4630 mov r0, r6
  17867. 8007aae: f7ff ffc7 bl 8007a40 <__sinit>
  17868. 8007ab2: 3648 adds r6, #72 ; 0x48
  17869. 8007ab4: e9d6 3401 ldrd r3, r4, [r6, #4]
  17870. 8007ab8: 3b01 subs r3, #1
  17871. 8007aba: d503 bpl.n 8007ac4 <__sfp+0x24>
  17872. 8007abc: 6833 ldr r3, [r6, #0]
  17873. 8007abe: b133 cbz r3, 8007ace <__sfp+0x2e>
  17874. 8007ac0: 6836 ldr r6, [r6, #0]
  17875. 8007ac2: e7f7 b.n 8007ab4 <__sfp+0x14>
  17876. 8007ac4: f9b4 500c ldrsh.w r5, [r4, #12]
  17877. 8007ac8: b16d cbz r5, 8007ae6 <__sfp+0x46>
  17878. 8007aca: 3468 adds r4, #104 ; 0x68
  17879. 8007acc: e7f4 b.n 8007ab8 <__sfp+0x18>
  17880. 8007ace: 2104 movs r1, #4
  17881. 8007ad0: 4638 mov r0, r7
  17882. 8007ad2: f7ff ff9f bl 8007a14 <__sfmoreglue>
  17883. 8007ad6: 6030 str r0, [r6, #0]
  17884. 8007ad8: 2800 cmp r0, #0
  17885. 8007ada: d1f1 bne.n 8007ac0 <__sfp+0x20>
  17886. 8007adc: 230c movs r3, #12
  17887. 8007ade: 4604 mov r4, r0
  17888. 8007ae0: 603b str r3, [r7, #0]
  17889. 8007ae2: 4620 mov r0, r4
  17890. 8007ae4: bdf8 pop {r3, r4, r5, r6, r7, pc}
  17891. 8007ae6: 4b0b ldr r3, [pc, #44] ; (8007b14 <__sfp+0x74>)
  17892. 8007ae8: 6665 str r5, [r4, #100] ; 0x64
  17893. 8007aea: e9c4 5500 strd r5, r5, [r4]
  17894. 8007aee: 60a5 str r5, [r4, #8]
  17895. 8007af0: e9c4 3503 strd r3, r5, [r4, #12]
  17896. 8007af4: e9c4 5505 strd r5, r5, [r4, #20]
  17897. 8007af8: 2208 movs r2, #8
  17898. 8007afa: 4629 mov r1, r5
  17899. 8007afc: f104 005c add.w r0, r4, #92 ; 0x5c
  17900. 8007b00: f7fe fa20 bl 8005f44 <memset>
  17901. 8007b04: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
  17902. 8007b08: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
  17903. 8007b0c: e7e9 b.n 8007ae2 <__sfp+0x42>
  17904. 8007b0e: bf00 nop
  17905. 8007b10: 08008bb0 .word 0x08008bb0
  17906. 8007b14: ffff0001 .word 0xffff0001
  17907. 08007b18 <_fwalk_reent>:
  17908. 8007b18: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  17909. 8007b1c: 4680 mov r8, r0
  17910. 8007b1e: 4689 mov r9, r1
  17911. 8007b20: 2600 movs r6, #0
  17912. 8007b22: f100 0448 add.w r4, r0, #72 ; 0x48
  17913. 8007b26: b914 cbnz r4, 8007b2e <_fwalk_reent+0x16>
  17914. 8007b28: 4630 mov r0, r6
  17915. 8007b2a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  17916. 8007b2e: e9d4 7501 ldrd r7, r5, [r4, #4]
  17917. 8007b32: 3f01 subs r7, #1
  17918. 8007b34: d501 bpl.n 8007b3a <_fwalk_reent+0x22>
  17919. 8007b36: 6824 ldr r4, [r4, #0]
  17920. 8007b38: e7f5 b.n 8007b26 <_fwalk_reent+0xe>
  17921. 8007b3a: 89ab ldrh r3, [r5, #12]
  17922. 8007b3c: 2b01 cmp r3, #1
  17923. 8007b3e: d907 bls.n 8007b50 <_fwalk_reent+0x38>
  17924. 8007b40: f9b5 300e ldrsh.w r3, [r5, #14]
  17925. 8007b44: 3301 adds r3, #1
  17926. 8007b46: d003 beq.n 8007b50 <_fwalk_reent+0x38>
  17927. 8007b48: 4629 mov r1, r5
  17928. 8007b4a: 4640 mov r0, r8
  17929. 8007b4c: 47c8 blx r9
  17930. 8007b4e: 4306 orrs r6, r0
  17931. 8007b50: 3568 adds r5, #104 ; 0x68
  17932. 8007b52: e7ee b.n 8007b32 <_fwalk_reent+0x1a>
  17933. 08007b54 <_localeconv_r>:
  17934. 8007b54: 4b04 ldr r3, [pc, #16] ; (8007b68 <_localeconv_r+0x14>)
  17935. 8007b56: 681b ldr r3, [r3, #0]
  17936. 8007b58: 6a18 ldr r0, [r3, #32]
  17937. 8007b5a: 4b04 ldr r3, [pc, #16] ; (8007b6c <_localeconv_r+0x18>)
  17938. 8007b5c: 2800 cmp r0, #0
  17939. 8007b5e: bf08 it eq
  17940. 8007b60: 4618 moveq r0, r3
  17941. 8007b62: 30f0 adds r0, #240 ; 0xf0
  17942. 8007b64: 4770 bx lr
  17943. 8007b66: bf00 nop
  17944. 8007b68: 2000000c .word 0x2000000c
  17945. 8007b6c: 20000070 .word 0x20000070
  17946. 08007b70 <__swhatbuf_r>:
  17947. 8007b70: b570 push {r4, r5, r6, lr}
  17948. 8007b72: 460e mov r6, r1
  17949. 8007b74: f9b1 100e ldrsh.w r1, [r1, #14]
  17950. 8007b78: b096 sub sp, #88 ; 0x58
  17951. 8007b7a: 2900 cmp r1, #0
  17952. 8007b7c: 4614 mov r4, r2
  17953. 8007b7e: 461d mov r5, r3
  17954. 8007b80: da07 bge.n 8007b92 <__swhatbuf_r+0x22>
  17955. 8007b82: 2300 movs r3, #0
  17956. 8007b84: 602b str r3, [r5, #0]
  17957. 8007b86: 89b3 ldrh r3, [r6, #12]
  17958. 8007b88: 061a lsls r2, r3, #24
  17959. 8007b8a: d410 bmi.n 8007bae <__swhatbuf_r+0x3e>
  17960. 8007b8c: f44f 6380 mov.w r3, #1024 ; 0x400
  17961. 8007b90: e00e b.n 8007bb0 <__swhatbuf_r+0x40>
  17962. 8007b92: 466a mov r2, sp
  17963. 8007b94: f000 fdb6 bl 8008704 <_fstat_r>
  17964. 8007b98: 2800 cmp r0, #0
  17965. 8007b9a: dbf2 blt.n 8007b82 <__swhatbuf_r+0x12>
  17966. 8007b9c: 9a01 ldr r2, [sp, #4]
  17967. 8007b9e: f402 4270 and.w r2, r2, #61440 ; 0xf000
  17968. 8007ba2: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  17969. 8007ba6: 425a negs r2, r3
  17970. 8007ba8: 415a adcs r2, r3
  17971. 8007baa: 602a str r2, [r5, #0]
  17972. 8007bac: e7ee b.n 8007b8c <__swhatbuf_r+0x1c>
  17973. 8007bae: 2340 movs r3, #64 ; 0x40
  17974. 8007bb0: 2000 movs r0, #0
  17975. 8007bb2: 6023 str r3, [r4, #0]
  17976. 8007bb4: b016 add sp, #88 ; 0x58
  17977. 8007bb6: bd70 pop {r4, r5, r6, pc}
  17978. 08007bb8 <__smakebuf_r>:
  17979. 8007bb8: 898b ldrh r3, [r1, #12]
  17980. 8007bba: b573 push {r0, r1, r4, r5, r6, lr}
  17981. 8007bbc: 079d lsls r5, r3, #30
  17982. 8007bbe: 4606 mov r6, r0
  17983. 8007bc0: 460c mov r4, r1
  17984. 8007bc2: d507 bpl.n 8007bd4 <__smakebuf_r+0x1c>
  17985. 8007bc4: f104 0347 add.w r3, r4, #71 ; 0x47
  17986. 8007bc8: 6023 str r3, [r4, #0]
  17987. 8007bca: 6123 str r3, [r4, #16]
  17988. 8007bcc: 2301 movs r3, #1
  17989. 8007bce: 6163 str r3, [r4, #20]
  17990. 8007bd0: b002 add sp, #8
  17991. 8007bd2: bd70 pop {r4, r5, r6, pc}
  17992. 8007bd4: ab01 add r3, sp, #4
  17993. 8007bd6: 466a mov r2, sp
  17994. 8007bd8: f7ff ffca bl 8007b70 <__swhatbuf_r>
  17995. 8007bdc: 9900 ldr r1, [sp, #0]
  17996. 8007bde: 4605 mov r5, r0
  17997. 8007be0: 4630 mov r0, r6
  17998. 8007be2: f000 fb81 bl 80082e8 <_malloc_r>
  17999. 8007be6: b948 cbnz r0, 8007bfc <__smakebuf_r+0x44>
  18000. 8007be8: f9b4 300c ldrsh.w r3, [r4, #12]
  18001. 8007bec: 059a lsls r2, r3, #22
  18002. 8007bee: d4ef bmi.n 8007bd0 <__smakebuf_r+0x18>
  18003. 8007bf0: f023 0303 bic.w r3, r3, #3
  18004. 8007bf4: f043 0302 orr.w r3, r3, #2
  18005. 8007bf8: 81a3 strh r3, [r4, #12]
  18006. 8007bfa: e7e3 b.n 8007bc4 <__smakebuf_r+0xc>
  18007. 8007bfc: 4b0d ldr r3, [pc, #52] ; (8007c34 <__smakebuf_r+0x7c>)
  18008. 8007bfe: 62b3 str r3, [r6, #40] ; 0x28
  18009. 8007c00: 89a3 ldrh r3, [r4, #12]
  18010. 8007c02: 6020 str r0, [r4, #0]
  18011. 8007c04: f043 0380 orr.w r3, r3, #128 ; 0x80
  18012. 8007c08: 81a3 strh r3, [r4, #12]
  18013. 8007c0a: 9b00 ldr r3, [sp, #0]
  18014. 8007c0c: 6120 str r0, [r4, #16]
  18015. 8007c0e: 6163 str r3, [r4, #20]
  18016. 8007c10: 9b01 ldr r3, [sp, #4]
  18017. 8007c12: b15b cbz r3, 8007c2c <__smakebuf_r+0x74>
  18018. 8007c14: f9b4 100e ldrsh.w r1, [r4, #14]
  18019. 8007c18: 4630 mov r0, r6
  18020. 8007c1a: f000 fd85 bl 8008728 <_isatty_r>
  18021. 8007c1e: b128 cbz r0, 8007c2c <__smakebuf_r+0x74>
  18022. 8007c20: 89a3 ldrh r3, [r4, #12]
  18023. 8007c22: f023 0303 bic.w r3, r3, #3
  18024. 8007c26: f043 0301 orr.w r3, r3, #1
  18025. 8007c2a: 81a3 strh r3, [r4, #12]
  18026. 8007c2c: 89a3 ldrh r3, [r4, #12]
  18027. 8007c2e: 431d orrs r5, r3
  18028. 8007c30: 81a5 strh r5, [r4, #12]
  18029. 8007c32: e7cd b.n 8007bd0 <__smakebuf_r+0x18>
  18030. 8007c34: 08007a09 .word 0x08007a09
  18031. 08007c38 <malloc>:
  18032. 8007c38: 4b02 ldr r3, [pc, #8] ; (8007c44 <malloc+0xc>)
  18033. 8007c3a: 4601 mov r1, r0
  18034. 8007c3c: 6818 ldr r0, [r3, #0]
  18035. 8007c3e: f000 bb53 b.w 80082e8 <_malloc_r>
  18036. 8007c42: bf00 nop
  18037. 8007c44: 2000000c .word 0x2000000c
  18038. 08007c48 <memchr>:
  18039. 8007c48: b510 push {r4, lr}
  18040. 8007c4a: b2c9 uxtb r1, r1
  18041. 8007c4c: 4402 add r2, r0
  18042. 8007c4e: 4290 cmp r0, r2
  18043. 8007c50: 4603 mov r3, r0
  18044. 8007c52: d101 bne.n 8007c58 <memchr+0x10>
  18045. 8007c54: 2300 movs r3, #0
  18046. 8007c56: e003 b.n 8007c60 <memchr+0x18>
  18047. 8007c58: 781c ldrb r4, [r3, #0]
  18048. 8007c5a: 3001 adds r0, #1
  18049. 8007c5c: 428c cmp r4, r1
  18050. 8007c5e: d1f6 bne.n 8007c4e <memchr+0x6>
  18051. 8007c60: 4618 mov r0, r3
  18052. 8007c62: bd10 pop {r4, pc}
  18053. 08007c64 <memcpy>:
  18054. 8007c64: b510 push {r4, lr}
  18055. 8007c66: 1e43 subs r3, r0, #1
  18056. 8007c68: 440a add r2, r1
  18057. 8007c6a: 4291 cmp r1, r2
  18058. 8007c6c: d100 bne.n 8007c70 <memcpy+0xc>
  18059. 8007c6e: bd10 pop {r4, pc}
  18060. 8007c70: f811 4b01 ldrb.w r4, [r1], #1
  18061. 8007c74: f803 4f01 strb.w r4, [r3, #1]!
  18062. 8007c78: e7f7 b.n 8007c6a <memcpy+0x6>
  18063. 08007c7a <_Balloc>:
  18064. 8007c7a: b570 push {r4, r5, r6, lr}
  18065. 8007c7c: 6a45 ldr r5, [r0, #36] ; 0x24
  18066. 8007c7e: 4604 mov r4, r0
  18067. 8007c80: 460e mov r6, r1
  18068. 8007c82: b93d cbnz r5, 8007c94 <_Balloc+0x1a>
  18069. 8007c84: 2010 movs r0, #16
  18070. 8007c86: f7ff ffd7 bl 8007c38 <malloc>
  18071. 8007c8a: 6260 str r0, [r4, #36] ; 0x24
  18072. 8007c8c: e9c0 5501 strd r5, r5, [r0, #4]
  18073. 8007c90: 6005 str r5, [r0, #0]
  18074. 8007c92: 60c5 str r5, [r0, #12]
  18075. 8007c94: 6a65 ldr r5, [r4, #36] ; 0x24
  18076. 8007c96: 68eb ldr r3, [r5, #12]
  18077. 8007c98: b183 cbz r3, 8007cbc <_Balloc+0x42>
  18078. 8007c9a: 6a63 ldr r3, [r4, #36] ; 0x24
  18079. 8007c9c: 68db ldr r3, [r3, #12]
  18080. 8007c9e: f853 0026 ldr.w r0, [r3, r6, lsl #2]
  18081. 8007ca2: b9b8 cbnz r0, 8007cd4 <_Balloc+0x5a>
  18082. 8007ca4: 2101 movs r1, #1
  18083. 8007ca6: fa01 f506 lsl.w r5, r1, r6
  18084. 8007caa: 1d6a adds r2, r5, #5
  18085. 8007cac: 0092 lsls r2, r2, #2
  18086. 8007cae: 4620 mov r0, r4
  18087. 8007cb0: f000 fabf bl 8008232 <_calloc_r>
  18088. 8007cb4: b160 cbz r0, 8007cd0 <_Balloc+0x56>
  18089. 8007cb6: e9c0 6501 strd r6, r5, [r0, #4]
  18090. 8007cba: e00e b.n 8007cda <_Balloc+0x60>
  18091. 8007cbc: 2221 movs r2, #33 ; 0x21
  18092. 8007cbe: 2104 movs r1, #4
  18093. 8007cc0: 4620 mov r0, r4
  18094. 8007cc2: f000 fab6 bl 8008232 <_calloc_r>
  18095. 8007cc6: 6a63 ldr r3, [r4, #36] ; 0x24
  18096. 8007cc8: 60e8 str r0, [r5, #12]
  18097. 8007cca: 68db ldr r3, [r3, #12]
  18098. 8007ccc: 2b00 cmp r3, #0
  18099. 8007cce: d1e4 bne.n 8007c9a <_Balloc+0x20>
  18100. 8007cd0: 2000 movs r0, #0
  18101. 8007cd2: bd70 pop {r4, r5, r6, pc}
  18102. 8007cd4: 6802 ldr r2, [r0, #0]
  18103. 8007cd6: f843 2026 str.w r2, [r3, r6, lsl #2]
  18104. 8007cda: 2300 movs r3, #0
  18105. 8007cdc: e9c0 3303 strd r3, r3, [r0, #12]
  18106. 8007ce0: e7f7 b.n 8007cd2 <_Balloc+0x58>
  18107. 08007ce2 <_Bfree>:
  18108. 8007ce2: b570 push {r4, r5, r6, lr}
  18109. 8007ce4: 6a44 ldr r4, [r0, #36] ; 0x24
  18110. 8007ce6: 4606 mov r6, r0
  18111. 8007ce8: 460d mov r5, r1
  18112. 8007cea: b93c cbnz r4, 8007cfc <_Bfree+0x1a>
  18113. 8007cec: 2010 movs r0, #16
  18114. 8007cee: f7ff ffa3 bl 8007c38 <malloc>
  18115. 8007cf2: 6270 str r0, [r6, #36] ; 0x24
  18116. 8007cf4: e9c0 4401 strd r4, r4, [r0, #4]
  18117. 8007cf8: 6004 str r4, [r0, #0]
  18118. 8007cfa: 60c4 str r4, [r0, #12]
  18119. 8007cfc: b13d cbz r5, 8007d0e <_Bfree+0x2c>
  18120. 8007cfe: 6a73 ldr r3, [r6, #36] ; 0x24
  18121. 8007d00: 686a ldr r2, [r5, #4]
  18122. 8007d02: 68db ldr r3, [r3, #12]
  18123. 8007d04: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  18124. 8007d08: 6029 str r1, [r5, #0]
  18125. 8007d0a: f843 5022 str.w r5, [r3, r2, lsl #2]
  18126. 8007d0e: bd70 pop {r4, r5, r6, pc}
  18127. 08007d10 <__multadd>:
  18128. 8007d10: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  18129. 8007d14: 461f mov r7, r3
  18130. 8007d16: 4606 mov r6, r0
  18131. 8007d18: 460c mov r4, r1
  18132. 8007d1a: 2300 movs r3, #0
  18133. 8007d1c: 690d ldr r5, [r1, #16]
  18134. 8007d1e: f101 0c14 add.w ip, r1, #20
  18135. 8007d22: f8dc 0000 ldr.w r0, [ip]
  18136. 8007d26: 3301 adds r3, #1
  18137. 8007d28: b281 uxth r1, r0
  18138. 8007d2a: fb02 7101 mla r1, r2, r1, r7
  18139. 8007d2e: 0c00 lsrs r0, r0, #16
  18140. 8007d30: 0c0f lsrs r7, r1, #16
  18141. 8007d32: fb02 7000 mla r0, r2, r0, r7
  18142. 8007d36: b289 uxth r1, r1
  18143. 8007d38: eb01 4100 add.w r1, r1, r0, lsl #16
  18144. 8007d3c: 429d cmp r5, r3
  18145. 8007d3e: ea4f 4710 mov.w r7, r0, lsr #16
  18146. 8007d42: f84c 1b04 str.w r1, [ip], #4
  18147. 8007d46: dcec bgt.n 8007d22 <__multadd+0x12>
  18148. 8007d48: b1d7 cbz r7, 8007d80 <__multadd+0x70>
  18149. 8007d4a: 68a3 ldr r3, [r4, #8]
  18150. 8007d4c: 42ab cmp r3, r5
  18151. 8007d4e: dc12 bgt.n 8007d76 <__multadd+0x66>
  18152. 8007d50: 6861 ldr r1, [r4, #4]
  18153. 8007d52: 4630 mov r0, r6
  18154. 8007d54: 3101 adds r1, #1
  18155. 8007d56: f7ff ff90 bl 8007c7a <_Balloc>
  18156. 8007d5a: 4680 mov r8, r0
  18157. 8007d5c: 6922 ldr r2, [r4, #16]
  18158. 8007d5e: f104 010c add.w r1, r4, #12
  18159. 8007d62: 3202 adds r2, #2
  18160. 8007d64: 0092 lsls r2, r2, #2
  18161. 8007d66: 300c adds r0, #12
  18162. 8007d68: f7ff ff7c bl 8007c64 <memcpy>
  18163. 8007d6c: 4621 mov r1, r4
  18164. 8007d6e: 4630 mov r0, r6
  18165. 8007d70: f7ff ffb7 bl 8007ce2 <_Bfree>
  18166. 8007d74: 4644 mov r4, r8
  18167. 8007d76: eb04 0385 add.w r3, r4, r5, lsl #2
  18168. 8007d7a: 3501 adds r5, #1
  18169. 8007d7c: 615f str r7, [r3, #20]
  18170. 8007d7e: 6125 str r5, [r4, #16]
  18171. 8007d80: 4620 mov r0, r4
  18172. 8007d82: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  18173. 08007d86 <__hi0bits>:
  18174. 8007d86: 0c02 lsrs r2, r0, #16
  18175. 8007d88: 0412 lsls r2, r2, #16
  18176. 8007d8a: 4603 mov r3, r0
  18177. 8007d8c: b9b2 cbnz r2, 8007dbc <__hi0bits+0x36>
  18178. 8007d8e: 0403 lsls r3, r0, #16
  18179. 8007d90: 2010 movs r0, #16
  18180. 8007d92: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
  18181. 8007d96: bf04 itt eq
  18182. 8007d98: 021b lsleq r3, r3, #8
  18183. 8007d9a: 3008 addeq r0, #8
  18184. 8007d9c: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
  18185. 8007da0: bf04 itt eq
  18186. 8007da2: 011b lsleq r3, r3, #4
  18187. 8007da4: 3004 addeq r0, #4
  18188. 8007da6: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
  18189. 8007daa: bf04 itt eq
  18190. 8007dac: 009b lsleq r3, r3, #2
  18191. 8007dae: 3002 addeq r0, #2
  18192. 8007db0: 2b00 cmp r3, #0
  18193. 8007db2: db06 blt.n 8007dc2 <__hi0bits+0x3c>
  18194. 8007db4: 005b lsls r3, r3, #1
  18195. 8007db6: d503 bpl.n 8007dc0 <__hi0bits+0x3a>
  18196. 8007db8: 3001 adds r0, #1
  18197. 8007dba: 4770 bx lr
  18198. 8007dbc: 2000 movs r0, #0
  18199. 8007dbe: e7e8 b.n 8007d92 <__hi0bits+0xc>
  18200. 8007dc0: 2020 movs r0, #32
  18201. 8007dc2: 4770 bx lr
  18202. 08007dc4 <__lo0bits>:
  18203. 8007dc4: 6803 ldr r3, [r0, #0]
  18204. 8007dc6: 4601 mov r1, r0
  18205. 8007dc8: f013 0207 ands.w r2, r3, #7
  18206. 8007dcc: d00b beq.n 8007de6 <__lo0bits+0x22>
  18207. 8007dce: 07da lsls r2, r3, #31
  18208. 8007dd0: d423 bmi.n 8007e1a <__lo0bits+0x56>
  18209. 8007dd2: 0798 lsls r0, r3, #30
  18210. 8007dd4: bf49 itett mi
  18211. 8007dd6: 085b lsrmi r3, r3, #1
  18212. 8007dd8: 089b lsrpl r3, r3, #2
  18213. 8007dda: 2001 movmi r0, #1
  18214. 8007ddc: 600b strmi r3, [r1, #0]
  18215. 8007dde: bf5c itt pl
  18216. 8007de0: 600b strpl r3, [r1, #0]
  18217. 8007de2: 2002 movpl r0, #2
  18218. 8007de4: 4770 bx lr
  18219. 8007de6: b298 uxth r0, r3
  18220. 8007de8: b9a8 cbnz r0, 8007e16 <__lo0bits+0x52>
  18221. 8007dea: 2010 movs r0, #16
  18222. 8007dec: 0c1b lsrs r3, r3, #16
  18223. 8007dee: f013 0fff tst.w r3, #255 ; 0xff
  18224. 8007df2: bf04 itt eq
  18225. 8007df4: 0a1b lsreq r3, r3, #8
  18226. 8007df6: 3008 addeq r0, #8
  18227. 8007df8: 071a lsls r2, r3, #28
  18228. 8007dfa: bf04 itt eq
  18229. 8007dfc: 091b lsreq r3, r3, #4
  18230. 8007dfe: 3004 addeq r0, #4
  18231. 8007e00: 079a lsls r2, r3, #30
  18232. 8007e02: bf04 itt eq
  18233. 8007e04: 089b lsreq r3, r3, #2
  18234. 8007e06: 3002 addeq r0, #2
  18235. 8007e08: 07da lsls r2, r3, #31
  18236. 8007e0a: d402 bmi.n 8007e12 <__lo0bits+0x4e>
  18237. 8007e0c: 085b lsrs r3, r3, #1
  18238. 8007e0e: d006 beq.n 8007e1e <__lo0bits+0x5a>
  18239. 8007e10: 3001 adds r0, #1
  18240. 8007e12: 600b str r3, [r1, #0]
  18241. 8007e14: 4770 bx lr
  18242. 8007e16: 4610 mov r0, r2
  18243. 8007e18: e7e9 b.n 8007dee <__lo0bits+0x2a>
  18244. 8007e1a: 2000 movs r0, #0
  18245. 8007e1c: 4770 bx lr
  18246. 8007e1e: 2020 movs r0, #32
  18247. 8007e20: 4770 bx lr
  18248. 08007e22 <__i2b>:
  18249. 8007e22: b510 push {r4, lr}
  18250. 8007e24: 460c mov r4, r1
  18251. 8007e26: 2101 movs r1, #1
  18252. 8007e28: f7ff ff27 bl 8007c7a <_Balloc>
  18253. 8007e2c: 2201 movs r2, #1
  18254. 8007e2e: 6144 str r4, [r0, #20]
  18255. 8007e30: 6102 str r2, [r0, #16]
  18256. 8007e32: bd10 pop {r4, pc}
  18257. 08007e34 <__multiply>:
  18258. 8007e34: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  18259. 8007e38: 4614 mov r4, r2
  18260. 8007e3a: 690a ldr r2, [r1, #16]
  18261. 8007e3c: 6923 ldr r3, [r4, #16]
  18262. 8007e3e: 4688 mov r8, r1
  18263. 8007e40: 429a cmp r2, r3
  18264. 8007e42: bfbe ittt lt
  18265. 8007e44: 460b movlt r3, r1
  18266. 8007e46: 46a0 movlt r8, r4
  18267. 8007e48: 461c movlt r4, r3
  18268. 8007e4a: f8d8 7010 ldr.w r7, [r8, #16]
  18269. 8007e4e: f8d4 9010 ldr.w r9, [r4, #16]
  18270. 8007e52: f8d8 3008 ldr.w r3, [r8, #8]
  18271. 8007e56: f8d8 1004 ldr.w r1, [r8, #4]
  18272. 8007e5a: eb07 0609 add.w r6, r7, r9
  18273. 8007e5e: 42b3 cmp r3, r6
  18274. 8007e60: bfb8 it lt
  18275. 8007e62: 3101 addlt r1, #1
  18276. 8007e64: f7ff ff09 bl 8007c7a <_Balloc>
  18277. 8007e68: f100 0514 add.w r5, r0, #20
  18278. 8007e6c: 462b mov r3, r5
  18279. 8007e6e: 2200 movs r2, #0
  18280. 8007e70: eb05 0e86 add.w lr, r5, r6, lsl #2
  18281. 8007e74: 4573 cmp r3, lr
  18282. 8007e76: d316 bcc.n 8007ea6 <__multiply+0x72>
  18283. 8007e78: f104 0214 add.w r2, r4, #20
  18284. 8007e7c: f108 0114 add.w r1, r8, #20
  18285. 8007e80: eb02 0389 add.w r3, r2, r9, lsl #2
  18286. 8007e84: eb01 0787 add.w r7, r1, r7, lsl #2
  18287. 8007e88: 9300 str r3, [sp, #0]
  18288. 8007e8a: 9b00 ldr r3, [sp, #0]
  18289. 8007e8c: 9201 str r2, [sp, #4]
  18290. 8007e8e: 4293 cmp r3, r2
  18291. 8007e90: d80c bhi.n 8007eac <__multiply+0x78>
  18292. 8007e92: 2e00 cmp r6, #0
  18293. 8007e94: dd03 ble.n 8007e9e <__multiply+0x6a>
  18294. 8007e96: f85e 3d04 ldr.w r3, [lr, #-4]!
  18295. 8007e9a: 2b00 cmp r3, #0
  18296. 8007e9c: d05d beq.n 8007f5a <__multiply+0x126>
  18297. 8007e9e: 6106 str r6, [r0, #16]
  18298. 8007ea0: b003 add sp, #12
  18299. 8007ea2: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18300. 8007ea6: f843 2b04 str.w r2, [r3], #4
  18301. 8007eaa: e7e3 b.n 8007e74 <__multiply+0x40>
  18302. 8007eac: f8b2 b000 ldrh.w fp, [r2]
  18303. 8007eb0: f1bb 0f00 cmp.w fp, #0
  18304. 8007eb4: d023 beq.n 8007efe <__multiply+0xca>
  18305. 8007eb6: 4689 mov r9, r1
  18306. 8007eb8: 46ac mov ip, r5
  18307. 8007eba: f04f 0800 mov.w r8, #0
  18308. 8007ebe: f859 4b04 ldr.w r4, [r9], #4
  18309. 8007ec2: f8dc a000 ldr.w sl, [ip]
  18310. 8007ec6: b2a3 uxth r3, r4
  18311. 8007ec8: fa1f fa8a uxth.w sl, sl
  18312. 8007ecc: fb0b a303 mla r3, fp, r3, sl
  18313. 8007ed0: ea4f 4a14 mov.w sl, r4, lsr #16
  18314. 8007ed4: f8dc 4000 ldr.w r4, [ip]
  18315. 8007ed8: 4443 add r3, r8
  18316. 8007eda: ea4f 4814 mov.w r8, r4, lsr #16
  18317. 8007ede: fb0b 840a mla r4, fp, sl, r8
  18318. 8007ee2: 46e2 mov sl, ip
  18319. 8007ee4: eb04 4413 add.w r4, r4, r3, lsr #16
  18320. 8007ee8: b29b uxth r3, r3
  18321. 8007eea: ea43 4304 orr.w r3, r3, r4, lsl #16
  18322. 8007eee: 454f cmp r7, r9
  18323. 8007ef0: ea4f 4814 mov.w r8, r4, lsr #16
  18324. 8007ef4: f84a 3b04 str.w r3, [sl], #4
  18325. 8007ef8: d82b bhi.n 8007f52 <__multiply+0x11e>
  18326. 8007efa: f8cc 8004 str.w r8, [ip, #4]
  18327. 8007efe: 9b01 ldr r3, [sp, #4]
  18328. 8007f00: 3204 adds r2, #4
  18329. 8007f02: f8b3 a002 ldrh.w sl, [r3, #2]
  18330. 8007f06: f1ba 0f00 cmp.w sl, #0
  18331. 8007f0a: d020 beq.n 8007f4e <__multiply+0x11a>
  18332. 8007f0c: 4689 mov r9, r1
  18333. 8007f0e: 46a8 mov r8, r5
  18334. 8007f10: f04f 0b00 mov.w fp, #0
  18335. 8007f14: 682b ldr r3, [r5, #0]
  18336. 8007f16: f8b9 c000 ldrh.w ip, [r9]
  18337. 8007f1a: f8b8 4002 ldrh.w r4, [r8, #2]
  18338. 8007f1e: b29b uxth r3, r3
  18339. 8007f20: fb0a 440c mla r4, sl, ip, r4
  18340. 8007f24: 46c4 mov ip, r8
  18341. 8007f26: 445c add r4, fp
  18342. 8007f28: ea43 4304 orr.w r3, r3, r4, lsl #16
  18343. 8007f2c: f84c 3b04 str.w r3, [ip], #4
  18344. 8007f30: f859 3b04 ldr.w r3, [r9], #4
  18345. 8007f34: f8b8 b004 ldrh.w fp, [r8, #4]
  18346. 8007f38: 0c1b lsrs r3, r3, #16
  18347. 8007f3a: fb0a b303 mla r3, sl, r3, fp
  18348. 8007f3e: 454f cmp r7, r9
  18349. 8007f40: eb03 4314 add.w r3, r3, r4, lsr #16
  18350. 8007f44: ea4f 4b13 mov.w fp, r3, lsr #16
  18351. 8007f48: d805 bhi.n 8007f56 <__multiply+0x122>
  18352. 8007f4a: f8c8 3004 str.w r3, [r8, #4]
  18353. 8007f4e: 3504 adds r5, #4
  18354. 8007f50: e79b b.n 8007e8a <__multiply+0x56>
  18355. 8007f52: 46d4 mov ip, sl
  18356. 8007f54: e7b3 b.n 8007ebe <__multiply+0x8a>
  18357. 8007f56: 46e0 mov r8, ip
  18358. 8007f58: e7dd b.n 8007f16 <__multiply+0xe2>
  18359. 8007f5a: 3e01 subs r6, #1
  18360. 8007f5c: e799 b.n 8007e92 <__multiply+0x5e>
  18361. ...
  18362. 08007f60 <__pow5mult>:
  18363. 8007f60: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  18364. 8007f64: 4615 mov r5, r2
  18365. 8007f66: f012 0203 ands.w r2, r2, #3
  18366. 8007f6a: 4606 mov r6, r0
  18367. 8007f6c: 460f mov r7, r1
  18368. 8007f6e: d007 beq.n 8007f80 <__pow5mult+0x20>
  18369. 8007f70: 4c21 ldr r4, [pc, #132] ; (8007ff8 <__pow5mult+0x98>)
  18370. 8007f72: 3a01 subs r2, #1
  18371. 8007f74: 2300 movs r3, #0
  18372. 8007f76: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  18373. 8007f7a: f7ff fec9 bl 8007d10 <__multadd>
  18374. 8007f7e: 4607 mov r7, r0
  18375. 8007f80: 10ad asrs r5, r5, #2
  18376. 8007f82: d035 beq.n 8007ff0 <__pow5mult+0x90>
  18377. 8007f84: 6a74 ldr r4, [r6, #36] ; 0x24
  18378. 8007f86: b93c cbnz r4, 8007f98 <__pow5mult+0x38>
  18379. 8007f88: 2010 movs r0, #16
  18380. 8007f8a: f7ff fe55 bl 8007c38 <malloc>
  18381. 8007f8e: 6270 str r0, [r6, #36] ; 0x24
  18382. 8007f90: e9c0 4401 strd r4, r4, [r0, #4]
  18383. 8007f94: 6004 str r4, [r0, #0]
  18384. 8007f96: 60c4 str r4, [r0, #12]
  18385. 8007f98: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
  18386. 8007f9c: f8d8 4008 ldr.w r4, [r8, #8]
  18387. 8007fa0: b94c cbnz r4, 8007fb6 <__pow5mult+0x56>
  18388. 8007fa2: f240 2171 movw r1, #625 ; 0x271
  18389. 8007fa6: 4630 mov r0, r6
  18390. 8007fa8: f7ff ff3b bl 8007e22 <__i2b>
  18391. 8007fac: 2300 movs r3, #0
  18392. 8007fae: 4604 mov r4, r0
  18393. 8007fb0: f8c8 0008 str.w r0, [r8, #8]
  18394. 8007fb4: 6003 str r3, [r0, #0]
  18395. 8007fb6: f04f 0800 mov.w r8, #0
  18396. 8007fba: 07eb lsls r3, r5, #31
  18397. 8007fbc: d50a bpl.n 8007fd4 <__pow5mult+0x74>
  18398. 8007fbe: 4639 mov r1, r7
  18399. 8007fc0: 4622 mov r2, r4
  18400. 8007fc2: 4630 mov r0, r6
  18401. 8007fc4: f7ff ff36 bl 8007e34 <__multiply>
  18402. 8007fc8: 4681 mov r9, r0
  18403. 8007fca: 4639 mov r1, r7
  18404. 8007fcc: 4630 mov r0, r6
  18405. 8007fce: f7ff fe88 bl 8007ce2 <_Bfree>
  18406. 8007fd2: 464f mov r7, r9
  18407. 8007fd4: 106d asrs r5, r5, #1
  18408. 8007fd6: d00b beq.n 8007ff0 <__pow5mult+0x90>
  18409. 8007fd8: 6820 ldr r0, [r4, #0]
  18410. 8007fda: b938 cbnz r0, 8007fec <__pow5mult+0x8c>
  18411. 8007fdc: 4622 mov r2, r4
  18412. 8007fde: 4621 mov r1, r4
  18413. 8007fe0: 4630 mov r0, r6
  18414. 8007fe2: f7ff ff27 bl 8007e34 <__multiply>
  18415. 8007fe6: 6020 str r0, [r4, #0]
  18416. 8007fe8: f8c0 8000 str.w r8, [r0]
  18417. 8007fec: 4604 mov r4, r0
  18418. 8007fee: e7e4 b.n 8007fba <__pow5mult+0x5a>
  18419. 8007ff0: 4638 mov r0, r7
  18420. 8007ff2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  18421. 8007ff6: bf00 nop
  18422. 8007ff8: 08008d48 .word 0x08008d48
  18423. 08007ffc <__lshift>:
  18424. 8007ffc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  18425. 8008000: 460c mov r4, r1
  18426. 8008002: 4607 mov r7, r0
  18427. 8008004: 4616 mov r6, r2
  18428. 8008006: 6923 ldr r3, [r4, #16]
  18429. 8008008: ea4f 1a62 mov.w sl, r2, asr #5
  18430. 800800c: eb0a 0903 add.w r9, sl, r3
  18431. 8008010: 6849 ldr r1, [r1, #4]
  18432. 8008012: 68a3 ldr r3, [r4, #8]
  18433. 8008014: f109 0501 add.w r5, r9, #1
  18434. 8008018: 42ab cmp r3, r5
  18435. 800801a: db32 blt.n 8008082 <__lshift+0x86>
  18436. 800801c: 4638 mov r0, r7
  18437. 800801e: f7ff fe2c bl 8007c7a <_Balloc>
  18438. 8008022: 2300 movs r3, #0
  18439. 8008024: 4680 mov r8, r0
  18440. 8008026: 461a mov r2, r3
  18441. 8008028: f100 0114 add.w r1, r0, #20
  18442. 800802c: 4553 cmp r3, sl
  18443. 800802e: db2b blt.n 8008088 <__lshift+0x8c>
  18444. 8008030: 6920 ldr r0, [r4, #16]
  18445. 8008032: ea2a 7aea bic.w sl, sl, sl, asr #31
  18446. 8008036: f104 0314 add.w r3, r4, #20
  18447. 800803a: f016 021f ands.w r2, r6, #31
  18448. 800803e: eb01 018a add.w r1, r1, sl, lsl #2
  18449. 8008042: eb03 0c80 add.w ip, r3, r0, lsl #2
  18450. 8008046: d025 beq.n 8008094 <__lshift+0x98>
  18451. 8008048: 2000 movs r0, #0
  18452. 800804a: f1c2 0e20 rsb lr, r2, #32
  18453. 800804e: 468a mov sl, r1
  18454. 8008050: 681e ldr r6, [r3, #0]
  18455. 8008052: 4096 lsls r6, r2
  18456. 8008054: 4330 orrs r0, r6
  18457. 8008056: f84a 0b04 str.w r0, [sl], #4
  18458. 800805a: f853 0b04 ldr.w r0, [r3], #4
  18459. 800805e: 459c cmp ip, r3
  18460. 8008060: fa20 f00e lsr.w r0, r0, lr
  18461. 8008064: d814 bhi.n 8008090 <__lshift+0x94>
  18462. 8008066: 6048 str r0, [r1, #4]
  18463. 8008068: b108 cbz r0, 800806e <__lshift+0x72>
  18464. 800806a: f109 0502 add.w r5, r9, #2
  18465. 800806e: 3d01 subs r5, #1
  18466. 8008070: 4638 mov r0, r7
  18467. 8008072: f8c8 5010 str.w r5, [r8, #16]
  18468. 8008076: 4621 mov r1, r4
  18469. 8008078: f7ff fe33 bl 8007ce2 <_Bfree>
  18470. 800807c: 4640 mov r0, r8
  18471. 800807e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  18472. 8008082: 3101 adds r1, #1
  18473. 8008084: 005b lsls r3, r3, #1
  18474. 8008086: e7c7 b.n 8008018 <__lshift+0x1c>
  18475. 8008088: f841 2023 str.w r2, [r1, r3, lsl #2]
  18476. 800808c: 3301 adds r3, #1
  18477. 800808e: e7cd b.n 800802c <__lshift+0x30>
  18478. 8008090: 4651 mov r1, sl
  18479. 8008092: e7dc b.n 800804e <__lshift+0x52>
  18480. 8008094: 3904 subs r1, #4
  18481. 8008096: f853 2b04 ldr.w r2, [r3], #4
  18482. 800809a: 459c cmp ip, r3
  18483. 800809c: f841 2f04 str.w r2, [r1, #4]!
  18484. 80080a0: d8f9 bhi.n 8008096 <__lshift+0x9a>
  18485. 80080a2: e7e4 b.n 800806e <__lshift+0x72>
  18486. 080080a4 <__mcmp>:
  18487. 80080a4: 6903 ldr r3, [r0, #16]
  18488. 80080a6: 690a ldr r2, [r1, #16]
  18489. 80080a8: b530 push {r4, r5, lr}
  18490. 80080aa: 1a9b subs r3, r3, r2
  18491. 80080ac: d10c bne.n 80080c8 <__mcmp+0x24>
  18492. 80080ae: 0092 lsls r2, r2, #2
  18493. 80080b0: 3014 adds r0, #20
  18494. 80080b2: 3114 adds r1, #20
  18495. 80080b4: 1884 adds r4, r0, r2
  18496. 80080b6: 4411 add r1, r2
  18497. 80080b8: f854 5d04 ldr.w r5, [r4, #-4]!
  18498. 80080bc: f851 2d04 ldr.w r2, [r1, #-4]!
  18499. 80080c0: 4295 cmp r5, r2
  18500. 80080c2: d003 beq.n 80080cc <__mcmp+0x28>
  18501. 80080c4: d305 bcc.n 80080d2 <__mcmp+0x2e>
  18502. 80080c6: 2301 movs r3, #1
  18503. 80080c8: 4618 mov r0, r3
  18504. 80080ca: bd30 pop {r4, r5, pc}
  18505. 80080cc: 42a0 cmp r0, r4
  18506. 80080ce: d3f3 bcc.n 80080b8 <__mcmp+0x14>
  18507. 80080d0: e7fa b.n 80080c8 <__mcmp+0x24>
  18508. 80080d2: f04f 33ff mov.w r3, #4294967295
  18509. 80080d6: e7f7 b.n 80080c8 <__mcmp+0x24>
  18510. 080080d8 <__mdiff>:
  18511. 80080d8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  18512. 80080dc: 460d mov r5, r1
  18513. 80080de: 4607 mov r7, r0
  18514. 80080e0: 4611 mov r1, r2
  18515. 80080e2: 4628 mov r0, r5
  18516. 80080e4: 4614 mov r4, r2
  18517. 80080e6: f7ff ffdd bl 80080a4 <__mcmp>
  18518. 80080ea: 1e06 subs r6, r0, #0
  18519. 80080ec: d108 bne.n 8008100 <__mdiff+0x28>
  18520. 80080ee: 4631 mov r1, r6
  18521. 80080f0: 4638 mov r0, r7
  18522. 80080f2: f7ff fdc2 bl 8007c7a <_Balloc>
  18523. 80080f6: 2301 movs r3, #1
  18524. 80080f8: e9c0 3604 strd r3, r6, [r0, #16]
  18525. 80080fc: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  18526. 8008100: bfa4 itt ge
  18527. 8008102: 4623 movge r3, r4
  18528. 8008104: 462c movge r4, r5
  18529. 8008106: 4638 mov r0, r7
  18530. 8008108: 6861 ldr r1, [r4, #4]
  18531. 800810a: bfa6 itte ge
  18532. 800810c: 461d movge r5, r3
  18533. 800810e: 2600 movge r6, #0
  18534. 8008110: 2601 movlt r6, #1
  18535. 8008112: f7ff fdb2 bl 8007c7a <_Balloc>
  18536. 8008116: f04f 0e00 mov.w lr, #0
  18537. 800811a: 60c6 str r6, [r0, #12]
  18538. 800811c: 692b ldr r3, [r5, #16]
  18539. 800811e: 6926 ldr r6, [r4, #16]
  18540. 8008120: f104 0214 add.w r2, r4, #20
  18541. 8008124: f105 0914 add.w r9, r5, #20
  18542. 8008128: eb02 0786 add.w r7, r2, r6, lsl #2
  18543. 800812c: eb09 0883 add.w r8, r9, r3, lsl #2
  18544. 8008130: f100 0114 add.w r1, r0, #20
  18545. 8008134: f852 ab04 ldr.w sl, [r2], #4
  18546. 8008138: f859 5b04 ldr.w r5, [r9], #4
  18547. 800813c: fa1f f38a uxth.w r3, sl
  18548. 8008140: 4473 add r3, lr
  18549. 8008142: b2ac uxth r4, r5
  18550. 8008144: 1b1b subs r3, r3, r4
  18551. 8008146: 0c2c lsrs r4, r5, #16
  18552. 8008148: ebc4 441a rsb r4, r4, sl, lsr #16
  18553. 800814c: eb04 4423 add.w r4, r4, r3, asr #16
  18554. 8008150: b29b uxth r3, r3
  18555. 8008152: ea4f 4e24 mov.w lr, r4, asr #16
  18556. 8008156: 45c8 cmp r8, r9
  18557. 8008158: ea43 4404 orr.w r4, r3, r4, lsl #16
  18558. 800815c: 4694 mov ip, r2
  18559. 800815e: f841 4b04 str.w r4, [r1], #4
  18560. 8008162: d8e7 bhi.n 8008134 <__mdiff+0x5c>
  18561. 8008164: 45bc cmp ip, r7
  18562. 8008166: d304 bcc.n 8008172 <__mdiff+0x9a>
  18563. 8008168: f851 3d04 ldr.w r3, [r1, #-4]!
  18564. 800816c: b183 cbz r3, 8008190 <__mdiff+0xb8>
  18565. 800816e: 6106 str r6, [r0, #16]
  18566. 8008170: e7c4 b.n 80080fc <__mdiff+0x24>
  18567. 8008172: f85c 4b04 ldr.w r4, [ip], #4
  18568. 8008176: b2a2 uxth r2, r4
  18569. 8008178: 4472 add r2, lr
  18570. 800817a: 1413 asrs r3, r2, #16
  18571. 800817c: eb03 4314 add.w r3, r3, r4, lsr #16
  18572. 8008180: b292 uxth r2, r2
  18573. 8008182: ea42 4203 orr.w r2, r2, r3, lsl #16
  18574. 8008186: ea4f 4e23 mov.w lr, r3, asr #16
  18575. 800818a: f841 2b04 str.w r2, [r1], #4
  18576. 800818e: e7e9 b.n 8008164 <__mdiff+0x8c>
  18577. 8008190: 3e01 subs r6, #1
  18578. 8008192: e7e9 b.n 8008168 <__mdiff+0x90>
  18579. 08008194 <__d2b>:
  18580. 8008194: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  18581. 8008198: 461c mov r4, r3
  18582. 800819a: e9dd 6508 ldrd r6, r5, [sp, #32]
  18583. 800819e: 2101 movs r1, #1
  18584. 80081a0: 4690 mov r8, r2
  18585. 80081a2: f7ff fd6a bl 8007c7a <_Balloc>
  18586. 80081a6: f3c4 0213 ubfx r2, r4, #0, #20
  18587. 80081aa: f3c4 540a ubfx r4, r4, #20, #11
  18588. 80081ae: 4607 mov r7, r0
  18589. 80081b0: bb34 cbnz r4, 8008200 <__d2b+0x6c>
  18590. 80081b2: 9201 str r2, [sp, #4]
  18591. 80081b4: f1b8 0200 subs.w r2, r8, #0
  18592. 80081b8: d027 beq.n 800820a <__d2b+0x76>
  18593. 80081ba: a802 add r0, sp, #8
  18594. 80081bc: f840 2d08 str.w r2, [r0, #-8]!
  18595. 80081c0: f7ff fe00 bl 8007dc4 <__lo0bits>
  18596. 80081c4: 9900 ldr r1, [sp, #0]
  18597. 80081c6: b1f0 cbz r0, 8008206 <__d2b+0x72>
  18598. 80081c8: 9a01 ldr r2, [sp, #4]
  18599. 80081ca: f1c0 0320 rsb r3, r0, #32
  18600. 80081ce: fa02 f303 lsl.w r3, r2, r3
  18601. 80081d2: 430b orrs r3, r1
  18602. 80081d4: 40c2 lsrs r2, r0
  18603. 80081d6: 617b str r3, [r7, #20]
  18604. 80081d8: 9201 str r2, [sp, #4]
  18605. 80081da: 9b01 ldr r3, [sp, #4]
  18606. 80081dc: 2b00 cmp r3, #0
  18607. 80081de: bf14 ite ne
  18608. 80081e0: 2102 movne r1, #2
  18609. 80081e2: 2101 moveq r1, #1
  18610. 80081e4: 61bb str r3, [r7, #24]
  18611. 80081e6: 6139 str r1, [r7, #16]
  18612. 80081e8: b1c4 cbz r4, 800821c <__d2b+0x88>
  18613. 80081ea: f2a4 4433 subw r4, r4, #1075 ; 0x433
  18614. 80081ee: 4404 add r4, r0
  18615. 80081f0: 6034 str r4, [r6, #0]
  18616. 80081f2: f1c0 0035 rsb r0, r0, #53 ; 0x35
  18617. 80081f6: 6028 str r0, [r5, #0]
  18618. 80081f8: 4638 mov r0, r7
  18619. 80081fa: b002 add sp, #8
  18620. 80081fc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  18621. 8008200: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  18622. 8008204: e7d5 b.n 80081b2 <__d2b+0x1e>
  18623. 8008206: 6179 str r1, [r7, #20]
  18624. 8008208: e7e7 b.n 80081da <__d2b+0x46>
  18625. 800820a: a801 add r0, sp, #4
  18626. 800820c: f7ff fdda bl 8007dc4 <__lo0bits>
  18627. 8008210: 2101 movs r1, #1
  18628. 8008212: 9b01 ldr r3, [sp, #4]
  18629. 8008214: 6139 str r1, [r7, #16]
  18630. 8008216: 617b str r3, [r7, #20]
  18631. 8008218: 3020 adds r0, #32
  18632. 800821a: e7e5 b.n 80081e8 <__d2b+0x54>
  18633. 800821c: f2a0 4032 subw r0, r0, #1074 ; 0x432
  18634. 8008220: eb07 0381 add.w r3, r7, r1, lsl #2
  18635. 8008224: 6030 str r0, [r6, #0]
  18636. 8008226: 6918 ldr r0, [r3, #16]
  18637. 8008228: f7ff fdad bl 8007d86 <__hi0bits>
  18638. 800822c: ebc0 1041 rsb r0, r0, r1, lsl #5
  18639. 8008230: e7e1 b.n 80081f6 <__d2b+0x62>
  18640. 08008232 <_calloc_r>:
  18641. 8008232: b538 push {r3, r4, r5, lr}
  18642. 8008234: fb02 f401 mul.w r4, r2, r1
  18643. 8008238: 4621 mov r1, r4
  18644. 800823a: f000 f855 bl 80082e8 <_malloc_r>
  18645. 800823e: 4605 mov r5, r0
  18646. 8008240: b118 cbz r0, 800824a <_calloc_r+0x18>
  18647. 8008242: 4622 mov r2, r4
  18648. 8008244: 2100 movs r1, #0
  18649. 8008246: f7fd fe7d bl 8005f44 <memset>
  18650. 800824a: 4628 mov r0, r5
  18651. 800824c: bd38 pop {r3, r4, r5, pc}
  18652. ...
  18653. 08008250 <_free_r>:
  18654. 8008250: b538 push {r3, r4, r5, lr}
  18655. 8008252: 4605 mov r5, r0
  18656. 8008254: 2900 cmp r1, #0
  18657. 8008256: d043 beq.n 80082e0 <_free_r+0x90>
  18658. 8008258: f851 3c04 ldr.w r3, [r1, #-4]
  18659. 800825c: 1f0c subs r4, r1, #4
  18660. 800825e: 2b00 cmp r3, #0
  18661. 8008260: bfb8 it lt
  18662. 8008262: 18e4 addlt r4, r4, r3
  18663. 8008264: f000 fa94 bl 8008790 <__malloc_lock>
  18664. 8008268: 4a1e ldr r2, [pc, #120] ; (80082e4 <_free_r+0x94>)
  18665. 800826a: 6813 ldr r3, [r2, #0]
  18666. 800826c: 4610 mov r0, r2
  18667. 800826e: b933 cbnz r3, 800827e <_free_r+0x2e>
  18668. 8008270: 6063 str r3, [r4, #4]
  18669. 8008272: 6014 str r4, [r2, #0]
  18670. 8008274: 4628 mov r0, r5
  18671. 8008276: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  18672. 800827a: f000 ba8a b.w 8008792 <__malloc_unlock>
  18673. 800827e: 42a3 cmp r3, r4
  18674. 8008280: d90b bls.n 800829a <_free_r+0x4a>
  18675. 8008282: 6821 ldr r1, [r4, #0]
  18676. 8008284: 1862 adds r2, r4, r1
  18677. 8008286: 4293 cmp r3, r2
  18678. 8008288: bf01 itttt eq
  18679. 800828a: 681a ldreq r2, [r3, #0]
  18680. 800828c: 685b ldreq r3, [r3, #4]
  18681. 800828e: 1852 addeq r2, r2, r1
  18682. 8008290: 6022 streq r2, [r4, #0]
  18683. 8008292: 6063 str r3, [r4, #4]
  18684. 8008294: 6004 str r4, [r0, #0]
  18685. 8008296: e7ed b.n 8008274 <_free_r+0x24>
  18686. 8008298: 4613 mov r3, r2
  18687. 800829a: 685a ldr r2, [r3, #4]
  18688. 800829c: b10a cbz r2, 80082a2 <_free_r+0x52>
  18689. 800829e: 42a2 cmp r2, r4
  18690. 80082a0: d9fa bls.n 8008298 <_free_r+0x48>
  18691. 80082a2: 6819 ldr r1, [r3, #0]
  18692. 80082a4: 1858 adds r0, r3, r1
  18693. 80082a6: 42a0 cmp r0, r4
  18694. 80082a8: d10b bne.n 80082c2 <_free_r+0x72>
  18695. 80082aa: 6820 ldr r0, [r4, #0]
  18696. 80082ac: 4401 add r1, r0
  18697. 80082ae: 1858 adds r0, r3, r1
  18698. 80082b0: 4282 cmp r2, r0
  18699. 80082b2: 6019 str r1, [r3, #0]
  18700. 80082b4: d1de bne.n 8008274 <_free_r+0x24>
  18701. 80082b6: 6810 ldr r0, [r2, #0]
  18702. 80082b8: 6852 ldr r2, [r2, #4]
  18703. 80082ba: 4401 add r1, r0
  18704. 80082bc: 6019 str r1, [r3, #0]
  18705. 80082be: 605a str r2, [r3, #4]
  18706. 80082c0: e7d8 b.n 8008274 <_free_r+0x24>
  18707. 80082c2: d902 bls.n 80082ca <_free_r+0x7a>
  18708. 80082c4: 230c movs r3, #12
  18709. 80082c6: 602b str r3, [r5, #0]
  18710. 80082c8: e7d4 b.n 8008274 <_free_r+0x24>
  18711. 80082ca: 6820 ldr r0, [r4, #0]
  18712. 80082cc: 1821 adds r1, r4, r0
  18713. 80082ce: 428a cmp r2, r1
  18714. 80082d0: bf01 itttt eq
  18715. 80082d2: 6811 ldreq r1, [r2, #0]
  18716. 80082d4: 6852 ldreq r2, [r2, #4]
  18717. 80082d6: 1809 addeq r1, r1, r0
  18718. 80082d8: 6021 streq r1, [r4, #0]
  18719. 80082da: 6062 str r2, [r4, #4]
  18720. 80082dc: 605c str r4, [r3, #4]
  18721. 80082de: e7c9 b.n 8008274 <_free_r+0x24>
  18722. 80082e0: bd38 pop {r3, r4, r5, pc}
  18723. 80082e2: bf00 nop
  18724. 80082e4: 20000640 .word 0x20000640
  18725. 080082e8 <_malloc_r>:
  18726. 80082e8: b570 push {r4, r5, r6, lr}
  18727. 80082ea: 1ccd adds r5, r1, #3
  18728. 80082ec: f025 0503 bic.w r5, r5, #3
  18729. 80082f0: 3508 adds r5, #8
  18730. 80082f2: 2d0c cmp r5, #12
  18731. 80082f4: bf38 it cc
  18732. 80082f6: 250c movcc r5, #12
  18733. 80082f8: 2d00 cmp r5, #0
  18734. 80082fa: 4606 mov r6, r0
  18735. 80082fc: db01 blt.n 8008302 <_malloc_r+0x1a>
  18736. 80082fe: 42a9 cmp r1, r5
  18737. 8008300: d903 bls.n 800830a <_malloc_r+0x22>
  18738. 8008302: 230c movs r3, #12
  18739. 8008304: 6033 str r3, [r6, #0]
  18740. 8008306: 2000 movs r0, #0
  18741. 8008308: bd70 pop {r4, r5, r6, pc}
  18742. 800830a: f000 fa41 bl 8008790 <__malloc_lock>
  18743. 800830e: 4a21 ldr r2, [pc, #132] ; (8008394 <_malloc_r+0xac>)
  18744. 8008310: 6814 ldr r4, [r2, #0]
  18745. 8008312: 4621 mov r1, r4
  18746. 8008314: b991 cbnz r1, 800833c <_malloc_r+0x54>
  18747. 8008316: 4c20 ldr r4, [pc, #128] ; (8008398 <_malloc_r+0xb0>)
  18748. 8008318: 6823 ldr r3, [r4, #0]
  18749. 800831a: b91b cbnz r3, 8008324 <_malloc_r+0x3c>
  18750. 800831c: 4630 mov r0, r6
  18751. 800831e: f000 f97b bl 8008618 <_sbrk_r>
  18752. 8008322: 6020 str r0, [r4, #0]
  18753. 8008324: 4629 mov r1, r5
  18754. 8008326: 4630 mov r0, r6
  18755. 8008328: f000 f976 bl 8008618 <_sbrk_r>
  18756. 800832c: 1c43 adds r3, r0, #1
  18757. 800832e: d124 bne.n 800837a <_malloc_r+0x92>
  18758. 8008330: 230c movs r3, #12
  18759. 8008332: 4630 mov r0, r6
  18760. 8008334: 6033 str r3, [r6, #0]
  18761. 8008336: f000 fa2c bl 8008792 <__malloc_unlock>
  18762. 800833a: e7e4 b.n 8008306 <_malloc_r+0x1e>
  18763. 800833c: 680b ldr r3, [r1, #0]
  18764. 800833e: 1b5b subs r3, r3, r5
  18765. 8008340: d418 bmi.n 8008374 <_malloc_r+0x8c>
  18766. 8008342: 2b0b cmp r3, #11
  18767. 8008344: d90f bls.n 8008366 <_malloc_r+0x7e>
  18768. 8008346: 600b str r3, [r1, #0]
  18769. 8008348: 18cc adds r4, r1, r3
  18770. 800834a: 50cd str r5, [r1, r3]
  18771. 800834c: 4630 mov r0, r6
  18772. 800834e: f000 fa20 bl 8008792 <__malloc_unlock>
  18773. 8008352: f104 000b add.w r0, r4, #11
  18774. 8008356: 1d23 adds r3, r4, #4
  18775. 8008358: f020 0007 bic.w r0, r0, #7
  18776. 800835c: 1ac3 subs r3, r0, r3
  18777. 800835e: d0d3 beq.n 8008308 <_malloc_r+0x20>
  18778. 8008360: 425a negs r2, r3
  18779. 8008362: 50e2 str r2, [r4, r3]
  18780. 8008364: e7d0 b.n 8008308 <_malloc_r+0x20>
  18781. 8008366: 684b ldr r3, [r1, #4]
  18782. 8008368: 428c cmp r4, r1
  18783. 800836a: bf16 itet ne
  18784. 800836c: 6063 strne r3, [r4, #4]
  18785. 800836e: 6013 streq r3, [r2, #0]
  18786. 8008370: 460c movne r4, r1
  18787. 8008372: e7eb b.n 800834c <_malloc_r+0x64>
  18788. 8008374: 460c mov r4, r1
  18789. 8008376: 6849 ldr r1, [r1, #4]
  18790. 8008378: e7cc b.n 8008314 <_malloc_r+0x2c>
  18791. 800837a: 1cc4 adds r4, r0, #3
  18792. 800837c: f024 0403 bic.w r4, r4, #3
  18793. 8008380: 42a0 cmp r0, r4
  18794. 8008382: d005 beq.n 8008390 <_malloc_r+0xa8>
  18795. 8008384: 1a21 subs r1, r4, r0
  18796. 8008386: 4630 mov r0, r6
  18797. 8008388: f000 f946 bl 8008618 <_sbrk_r>
  18798. 800838c: 3001 adds r0, #1
  18799. 800838e: d0cf beq.n 8008330 <_malloc_r+0x48>
  18800. 8008390: 6025 str r5, [r4, #0]
  18801. 8008392: e7db b.n 800834c <_malloc_r+0x64>
  18802. 8008394: 20000640 .word 0x20000640
  18803. 8008398: 20000644 .word 0x20000644
  18804. 0800839c <__sfputc_r>:
  18805. 800839c: 6893 ldr r3, [r2, #8]
  18806. 800839e: b410 push {r4}
  18807. 80083a0: 3b01 subs r3, #1
  18808. 80083a2: 2b00 cmp r3, #0
  18809. 80083a4: 6093 str r3, [r2, #8]
  18810. 80083a6: da07 bge.n 80083b8 <__sfputc_r+0x1c>
  18811. 80083a8: 6994 ldr r4, [r2, #24]
  18812. 80083aa: 42a3 cmp r3, r4
  18813. 80083ac: db01 blt.n 80083b2 <__sfputc_r+0x16>
  18814. 80083ae: 290a cmp r1, #10
  18815. 80083b0: d102 bne.n 80083b8 <__sfputc_r+0x1c>
  18816. 80083b2: bc10 pop {r4}
  18817. 80083b4: f7fe bb50 b.w 8006a58 <__swbuf_r>
  18818. 80083b8: 6813 ldr r3, [r2, #0]
  18819. 80083ba: 1c58 adds r0, r3, #1
  18820. 80083bc: 6010 str r0, [r2, #0]
  18821. 80083be: 7019 strb r1, [r3, #0]
  18822. 80083c0: 4608 mov r0, r1
  18823. 80083c2: bc10 pop {r4}
  18824. 80083c4: 4770 bx lr
  18825. 080083c6 <__sfputs_r>:
  18826. 80083c6: b5f8 push {r3, r4, r5, r6, r7, lr}
  18827. 80083c8: 4606 mov r6, r0
  18828. 80083ca: 460f mov r7, r1
  18829. 80083cc: 4614 mov r4, r2
  18830. 80083ce: 18d5 adds r5, r2, r3
  18831. 80083d0: 42ac cmp r4, r5
  18832. 80083d2: d101 bne.n 80083d8 <__sfputs_r+0x12>
  18833. 80083d4: 2000 movs r0, #0
  18834. 80083d6: e007 b.n 80083e8 <__sfputs_r+0x22>
  18835. 80083d8: 463a mov r2, r7
  18836. 80083da: f814 1b01 ldrb.w r1, [r4], #1
  18837. 80083de: 4630 mov r0, r6
  18838. 80083e0: f7ff ffdc bl 800839c <__sfputc_r>
  18839. 80083e4: 1c43 adds r3, r0, #1
  18840. 80083e6: d1f3 bne.n 80083d0 <__sfputs_r+0xa>
  18841. 80083e8: bdf8 pop {r3, r4, r5, r6, r7, pc}
  18842. ...
  18843. 080083ec <_vfiprintf_r>:
  18844. 80083ec: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  18845. 80083f0: 460c mov r4, r1
  18846. 80083f2: b09d sub sp, #116 ; 0x74
  18847. 80083f4: 4617 mov r7, r2
  18848. 80083f6: 461d mov r5, r3
  18849. 80083f8: 4606 mov r6, r0
  18850. 80083fa: b118 cbz r0, 8008404 <_vfiprintf_r+0x18>
  18851. 80083fc: 6983 ldr r3, [r0, #24]
  18852. 80083fe: b90b cbnz r3, 8008404 <_vfiprintf_r+0x18>
  18853. 8008400: f7ff fb1e bl 8007a40 <__sinit>
  18854. 8008404: 4b7c ldr r3, [pc, #496] ; (80085f8 <_vfiprintf_r+0x20c>)
  18855. 8008406: 429c cmp r4, r3
  18856. 8008408: d158 bne.n 80084bc <_vfiprintf_r+0xd0>
  18857. 800840a: 6874 ldr r4, [r6, #4]
  18858. 800840c: 89a3 ldrh r3, [r4, #12]
  18859. 800840e: 0718 lsls r0, r3, #28
  18860. 8008410: d55e bpl.n 80084d0 <_vfiprintf_r+0xe4>
  18861. 8008412: 6923 ldr r3, [r4, #16]
  18862. 8008414: 2b00 cmp r3, #0
  18863. 8008416: d05b beq.n 80084d0 <_vfiprintf_r+0xe4>
  18864. 8008418: 2300 movs r3, #0
  18865. 800841a: 9309 str r3, [sp, #36] ; 0x24
  18866. 800841c: 2320 movs r3, #32
  18867. 800841e: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  18868. 8008422: 2330 movs r3, #48 ; 0x30
  18869. 8008424: f04f 0b01 mov.w fp, #1
  18870. 8008428: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  18871. 800842c: 9503 str r5, [sp, #12]
  18872. 800842e: 46b8 mov r8, r7
  18873. 8008430: 4645 mov r5, r8
  18874. 8008432: f815 3b01 ldrb.w r3, [r5], #1
  18875. 8008436: b10b cbz r3, 800843c <_vfiprintf_r+0x50>
  18876. 8008438: 2b25 cmp r3, #37 ; 0x25
  18877. 800843a: d154 bne.n 80084e6 <_vfiprintf_r+0xfa>
  18878. 800843c: ebb8 0a07 subs.w sl, r8, r7
  18879. 8008440: d00b beq.n 800845a <_vfiprintf_r+0x6e>
  18880. 8008442: 4653 mov r3, sl
  18881. 8008444: 463a mov r2, r7
  18882. 8008446: 4621 mov r1, r4
  18883. 8008448: 4630 mov r0, r6
  18884. 800844a: f7ff ffbc bl 80083c6 <__sfputs_r>
  18885. 800844e: 3001 adds r0, #1
  18886. 8008450: f000 80c2 beq.w 80085d8 <_vfiprintf_r+0x1ec>
  18887. 8008454: 9b09 ldr r3, [sp, #36] ; 0x24
  18888. 8008456: 4453 add r3, sl
  18889. 8008458: 9309 str r3, [sp, #36] ; 0x24
  18890. 800845a: f898 3000 ldrb.w r3, [r8]
  18891. 800845e: 2b00 cmp r3, #0
  18892. 8008460: f000 80ba beq.w 80085d8 <_vfiprintf_r+0x1ec>
  18893. 8008464: 2300 movs r3, #0
  18894. 8008466: f04f 32ff mov.w r2, #4294967295
  18895. 800846a: e9cd 2305 strd r2, r3, [sp, #20]
  18896. 800846e: 9304 str r3, [sp, #16]
  18897. 8008470: 9307 str r3, [sp, #28]
  18898. 8008472: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  18899. 8008476: 931a str r3, [sp, #104] ; 0x68
  18900. 8008478: 46a8 mov r8, r5
  18901. 800847a: 2205 movs r2, #5
  18902. 800847c: f818 1b01 ldrb.w r1, [r8], #1
  18903. 8008480: 485e ldr r0, [pc, #376] ; (80085fc <_vfiprintf_r+0x210>)
  18904. 8008482: f7ff fbe1 bl 8007c48 <memchr>
  18905. 8008486: 9b04 ldr r3, [sp, #16]
  18906. 8008488: bb78 cbnz r0, 80084ea <_vfiprintf_r+0xfe>
  18907. 800848a: 06d9 lsls r1, r3, #27
  18908. 800848c: bf44 itt mi
  18909. 800848e: 2220 movmi r2, #32
  18910. 8008490: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  18911. 8008494: 071a lsls r2, r3, #28
  18912. 8008496: bf44 itt mi
  18913. 8008498: 222b movmi r2, #43 ; 0x2b
  18914. 800849a: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  18915. 800849e: 782a ldrb r2, [r5, #0]
  18916. 80084a0: 2a2a cmp r2, #42 ; 0x2a
  18917. 80084a2: d02a beq.n 80084fa <_vfiprintf_r+0x10e>
  18918. 80084a4: 46a8 mov r8, r5
  18919. 80084a6: 2000 movs r0, #0
  18920. 80084a8: 250a movs r5, #10
  18921. 80084aa: 9a07 ldr r2, [sp, #28]
  18922. 80084ac: 4641 mov r1, r8
  18923. 80084ae: f811 3b01 ldrb.w r3, [r1], #1
  18924. 80084b2: 3b30 subs r3, #48 ; 0x30
  18925. 80084b4: 2b09 cmp r3, #9
  18926. 80084b6: d969 bls.n 800858c <_vfiprintf_r+0x1a0>
  18927. 80084b8: b360 cbz r0, 8008514 <_vfiprintf_r+0x128>
  18928. 80084ba: e024 b.n 8008506 <_vfiprintf_r+0x11a>
  18929. 80084bc: 4b50 ldr r3, [pc, #320] ; (8008600 <_vfiprintf_r+0x214>)
  18930. 80084be: 429c cmp r4, r3
  18931. 80084c0: d101 bne.n 80084c6 <_vfiprintf_r+0xda>
  18932. 80084c2: 68b4 ldr r4, [r6, #8]
  18933. 80084c4: e7a2 b.n 800840c <_vfiprintf_r+0x20>
  18934. 80084c6: 4b4f ldr r3, [pc, #316] ; (8008604 <_vfiprintf_r+0x218>)
  18935. 80084c8: 429c cmp r4, r3
  18936. 80084ca: bf08 it eq
  18937. 80084cc: 68f4 ldreq r4, [r6, #12]
  18938. 80084ce: e79d b.n 800840c <_vfiprintf_r+0x20>
  18939. 80084d0: 4621 mov r1, r4
  18940. 80084d2: 4630 mov r0, r6
  18941. 80084d4: f7fe fb12 bl 8006afc <__swsetup_r>
  18942. 80084d8: 2800 cmp r0, #0
  18943. 80084da: d09d beq.n 8008418 <_vfiprintf_r+0x2c>
  18944. 80084dc: f04f 30ff mov.w r0, #4294967295
  18945. 80084e0: b01d add sp, #116 ; 0x74
  18946. 80084e2: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18947. 80084e6: 46a8 mov r8, r5
  18948. 80084e8: e7a2 b.n 8008430 <_vfiprintf_r+0x44>
  18949. 80084ea: 4a44 ldr r2, [pc, #272] ; (80085fc <_vfiprintf_r+0x210>)
  18950. 80084ec: 4645 mov r5, r8
  18951. 80084ee: 1a80 subs r0, r0, r2
  18952. 80084f0: fa0b f000 lsl.w r0, fp, r0
  18953. 80084f4: 4318 orrs r0, r3
  18954. 80084f6: 9004 str r0, [sp, #16]
  18955. 80084f8: e7be b.n 8008478 <_vfiprintf_r+0x8c>
  18956. 80084fa: 9a03 ldr r2, [sp, #12]
  18957. 80084fc: 1d11 adds r1, r2, #4
  18958. 80084fe: 6812 ldr r2, [r2, #0]
  18959. 8008500: 9103 str r1, [sp, #12]
  18960. 8008502: 2a00 cmp r2, #0
  18961. 8008504: db01 blt.n 800850a <_vfiprintf_r+0x11e>
  18962. 8008506: 9207 str r2, [sp, #28]
  18963. 8008508: e004 b.n 8008514 <_vfiprintf_r+0x128>
  18964. 800850a: 4252 negs r2, r2
  18965. 800850c: f043 0302 orr.w r3, r3, #2
  18966. 8008510: 9207 str r2, [sp, #28]
  18967. 8008512: 9304 str r3, [sp, #16]
  18968. 8008514: f898 3000 ldrb.w r3, [r8]
  18969. 8008518: 2b2e cmp r3, #46 ; 0x2e
  18970. 800851a: d10e bne.n 800853a <_vfiprintf_r+0x14e>
  18971. 800851c: f898 3001 ldrb.w r3, [r8, #1]
  18972. 8008520: 2b2a cmp r3, #42 ; 0x2a
  18973. 8008522: d138 bne.n 8008596 <_vfiprintf_r+0x1aa>
  18974. 8008524: 9b03 ldr r3, [sp, #12]
  18975. 8008526: f108 0802 add.w r8, r8, #2
  18976. 800852a: 1d1a adds r2, r3, #4
  18977. 800852c: 681b ldr r3, [r3, #0]
  18978. 800852e: 9203 str r2, [sp, #12]
  18979. 8008530: 2b00 cmp r3, #0
  18980. 8008532: bfb8 it lt
  18981. 8008534: f04f 33ff movlt.w r3, #4294967295
  18982. 8008538: 9305 str r3, [sp, #20]
  18983. 800853a: 4d33 ldr r5, [pc, #204] ; (8008608 <_vfiprintf_r+0x21c>)
  18984. 800853c: 2203 movs r2, #3
  18985. 800853e: f898 1000 ldrb.w r1, [r8]
  18986. 8008542: 4628 mov r0, r5
  18987. 8008544: f7ff fb80 bl 8007c48 <memchr>
  18988. 8008548: b140 cbz r0, 800855c <_vfiprintf_r+0x170>
  18989. 800854a: 2340 movs r3, #64 ; 0x40
  18990. 800854c: 1b40 subs r0, r0, r5
  18991. 800854e: fa03 f000 lsl.w r0, r3, r0
  18992. 8008552: 9b04 ldr r3, [sp, #16]
  18993. 8008554: f108 0801 add.w r8, r8, #1
  18994. 8008558: 4303 orrs r3, r0
  18995. 800855a: 9304 str r3, [sp, #16]
  18996. 800855c: f898 1000 ldrb.w r1, [r8]
  18997. 8008560: 2206 movs r2, #6
  18998. 8008562: 482a ldr r0, [pc, #168] ; (800860c <_vfiprintf_r+0x220>)
  18999. 8008564: f108 0701 add.w r7, r8, #1
  19000. 8008568: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  19001. 800856c: f7ff fb6c bl 8007c48 <memchr>
  19002. 8008570: 2800 cmp r0, #0
  19003. 8008572: d037 beq.n 80085e4 <_vfiprintf_r+0x1f8>
  19004. 8008574: 4b26 ldr r3, [pc, #152] ; (8008610 <_vfiprintf_r+0x224>)
  19005. 8008576: bb1b cbnz r3, 80085c0 <_vfiprintf_r+0x1d4>
  19006. 8008578: 9b03 ldr r3, [sp, #12]
  19007. 800857a: 3307 adds r3, #7
  19008. 800857c: f023 0307 bic.w r3, r3, #7
  19009. 8008580: 3308 adds r3, #8
  19010. 8008582: 9303 str r3, [sp, #12]
  19011. 8008584: 9b09 ldr r3, [sp, #36] ; 0x24
  19012. 8008586: 444b add r3, r9
  19013. 8008588: 9309 str r3, [sp, #36] ; 0x24
  19014. 800858a: e750 b.n 800842e <_vfiprintf_r+0x42>
  19015. 800858c: fb05 3202 mla r2, r5, r2, r3
  19016. 8008590: 2001 movs r0, #1
  19017. 8008592: 4688 mov r8, r1
  19018. 8008594: e78a b.n 80084ac <_vfiprintf_r+0xc0>
  19019. 8008596: 2300 movs r3, #0
  19020. 8008598: 250a movs r5, #10
  19021. 800859a: 4619 mov r1, r3
  19022. 800859c: f108 0801 add.w r8, r8, #1
  19023. 80085a0: 9305 str r3, [sp, #20]
  19024. 80085a2: 4640 mov r0, r8
  19025. 80085a4: f810 2b01 ldrb.w r2, [r0], #1
  19026. 80085a8: 3a30 subs r2, #48 ; 0x30
  19027. 80085aa: 2a09 cmp r2, #9
  19028. 80085ac: d903 bls.n 80085b6 <_vfiprintf_r+0x1ca>
  19029. 80085ae: 2b00 cmp r3, #0
  19030. 80085b0: d0c3 beq.n 800853a <_vfiprintf_r+0x14e>
  19031. 80085b2: 9105 str r1, [sp, #20]
  19032. 80085b4: e7c1 b.n 800853a <_vfiprintf_r+0x14e>
  19033. 80085b6: fb05 2101 mla r1, r5, r1, r2
  19034. 80085ba: 2301 movs r3, #1
  19035. 80085bc: 4680 mov r8, r0
  19036. 80085be: e7f0 b.n 80085a2 <_vfiprintf_r+0x1b6>
  19037. 80085c0: ab03 add r3, sp, #12
  19038. 80085c2: 9300 str r3, [sp, #0]
  19039. 80085c4: 4622 mov r2, r4
  19040. 80085c6: 4b13 ldr r3, [pc, #76] ; (8008614 <_vfiprintf_r+0x228>)
  19041. 80085c8: a904 add r1, sp, #16
  19042. 80085ca: 4630 mov r0, r6
  19043. 80085cc: f7fd fd54 bl 8006078 <_printf_float>
  19044. 80085d0: f1b0 3fff cmp.w r0, #4294967295
  19045. 80085d4: 4681 mov r9, r0
  19046. 80085d6: d1d5 bne.n 8008584 <_vfiprintf_r+0x198>
  19047. 80085d8: 89a3 ldrh r3, [r4, #12]
  19048. 80085da: 065b lsls r3, r3, #25
  19049. 80085dc: f53f af7e bmi.w 80084dc <_vfiprintf_r+0xf0>
  19050. 80085e0: 9809 ldr r0, [sp, #36] ; 0x24
  19051. 80085e2: e77d b.n 80084e0 <_vfiprintf_r+0xf4>
  19052. 80085e4: ab03 add r3, sp, #12
  19053. 80085e6: 9300 str r3, [sp, #0]
  19054. 80085e8: 4622 mov r2, r4
  19055. 80085ea: 4b0a ldr r3, [pc, #40] ; (8008614 <_vfiprintf_r+0x228>)
  19056. 80085ec: a904 add r1, sp, #16
  19057. 80085ee: 4630 mov r0, r6
  19058. 80085f0: f7fd ffee bl 80065d0 <_printf_i>
  19059. 80085f4: e7ec b.n 80085d0 <_vfiprintf_r+0x1e4>
  19060. 80085f6: bf00 nop
  19061. 80085f8: 08008c18 .word 0x08008c18
  19062. 80085fc: 08008d54 .word 0x08008d54
  19063. 8008600: 08008c38 .word 0x08008c38
  19064. 8008604: 08008bf8 .word 0x08008bf8
  19065. 8008608: 08008d5a .word 0x08008d5a
  19066. 800860c: 08008d5e .word 0x08008d5e
  19067. 8008610: 08006079 .word 0x08006079
  19068. 8008614: 080083c7 .word 0x080083c7
  19069. 08008618 <_sbrk_r>:
  19070. 8008618: b538 push {r3, r4, r5, lr}
  19071. 800861a: 2300 movs r3, #0
  19072. 800861c: 4c05 ldr r4, [pc, #20] ; (8008634 <_sbrk_r+0x1c>)
  19073. 800861e: 4605 mov r5, r0
  19074. 8008620: 4608 mov r0, r1
  19075. 8008622: 6023 str r3, [r4, #0]
  19076. 8008624: f7fd fbda bl 8005ddc <_sbrk>
  19077. 8008628: 1c43 adds r3, r0, #1
  19078. 800862a: d102 bne.n 8008632 <_sbrk_r+0x1a>
  19079. 800862c: 6823 ldr r3, [r4, #0]
  19080. 800862e: b103 cbz r3, 8008632 <_sbrk_r+0x1a>
  19081. 8008630: 602b str r3, [r5, #0]
  19082. 8008632: bd38 pop {r3, r4, r5, pc}
  19083. 8008634: 20000b94 .word 0x20000b94
  19084. 08008638 <__sread>:
  19085. 8008638: b510 push {r4, lr}
  19086. 800863a: 460c mov r4, r1
  19087. 800863c: f9b1 100e ldrsh.w r1, [r1, #14]
  19088. 8008640: f000 f8a8 bl 8008794 <_read_r>
  19089. 8008644: 2800 cmp r0, #0
  19090. 8008646: bfab itete ge
  19091. 8008648: 6d63 ldrge r3, [r4, #84] ; 0x54
  19092. 800864a: 89a3 ldrhlt r3, [r4, #12]
  19093. 800864c: 181b addge r3, r3, r0
  19094. 800864e: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  19095. 8008652: bfac ite ge
  19096. 8008654: 6563 strge r3, [r4, #84] ; 0x54
  19097. 8008656: 81a3 strhlt r3, [r4, #12]
  19098. 8008658: bd10 pop {r4, pc}
  19099. 0800865a <__swrite>:
  19100. 800865a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  19101. 800865e: 461f mov r7, r3
  19102. 8008660: 898b ldrh r3, [r1, #12]
  19103. 8008662: 4605 mov r5, r0
  19104. 8008664: 05db lsls r3, r3, #23
  19105. 8008666: 460c mov r4, r1
  19106. 8008668: 4616 mov r6, r2
  19107. 800866a: d505 bpl.n 8008678 <__swrite+0x1e>
  19108. 800866c: 2302 movs r3, #2
  19109. 800866e: 2200 movs r2, #0
  19110. 8008670: f9b1 100e ldrsh.w r1, [r1, #14]
  19111. 8008674: f000 f868 bl 8008748 <_lseek_r>
  19112. 8008678: 89a3 ldrh r3, [r4, #12]
  19113. 800867a: 4632 mov r2, r6
  19114. 800867c: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  19115. 8008680: 81a3 strh r3, [r4, #12]
  19116. 8008682: f9b4 100e ldrsh.w r1, [r4, #14]
  19117. 8008686: 463b mov r3, r7
  19118. 8008688: 4628 mov r0, r5
  19119. 800868a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  19120. 800868e: f000 b817 b.w 80086c0 <_write_r>
  19121. 08008692 <__sseek>:
  19122. 8008692: b510 push {r4, lr}
  19123. 8008694: 460c mov r4, r1
  19124. 8008696: f9b1 100e ldrsh.w r1, [r1, #14]
  19125. 800869a: f000 f855 bl 8008748 <_lseek_r>
  19126. 800869e: 1c43 adds r3, r0, #1
  19127. 80086a0: 89a3 ldrh r3, [r4, #12]
  19128. 80086a2: bf15 itete ne
  19129. 80086a4: 6560 strne r0, [r4, #84] ; 0x54
  19130. 80086a6: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  19131. 80086aa: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  19132. 80086ae: 81a3 strheq r3, [r4, #12]
  19133. 80086b0: bf18 it ne
  19134. 80086b2: 81a3 strhne r3, [r4, #12]
  19135. 80086b4: bd10 pop {r4, pc}
  19136. 080086b6 <__sclose>:
  19137. 80086b6: f9b1 100e ldrsh.w r1, [r1, #14]
  19138. 80086ba: f000 b813 b.w 80086e4 <_close_r>
  19139. ...
  19140. 080086c0 <_write_r>:
  19141. 80086c0: b538 push {r3, r4, r5, lr}
  19142. 80086c2: 4605 mov r5, r0
  19143. 80086c4: 4608 mov r0, r1
  19144. 80086c6: 4611 mov r1, r2
  19145. 80086c8: 2200 movs r2, #0
  19146. 80086ca: 4c05 ldr r4, [pc, #20] ; (80086e0 <_write_r+0x20>)
  19147. 80086cc: 6022 str r2, [r4, #0]
  19148. 80086ce: 461a mov r2, r3
  19149. 80086d0: f7fc fd34 bl 800513c <_write>
  19150. 80086d4: 1c43 adds r3, r0, #1
  19151. 80086d6: d102 bne.n 80086de <_write_r+0x1e>
  19152. 80086d8: 6823 ldr r3, [r4, #0]
  19153. 80086da: b103 cbz r3, 80086de <_write_r+0x1e>
  19154. 80086dc: 602b str r3, [r5, #0]
  19155. 80086de: bd38 pop {r3, r4, r5, pc}
  19156. 80086e0: 20000b94 .word 0x20000b94
  19157. 080086e4 <_close_r>:
  19158. 80086e4: b538 push {r3, r4, r5, lr}
  19159. 80086e6: 2300 movs r3, #0
  19160. 80086e8: 4c05 ldr r4, [pc, #20] ; (8008700 <_close_r+0x1c>)
  19161. 80086ea: 4605 mov r5, r0
  19162. 80086ec: 4608 mov r0, r1
  19163. 80086ee: 6023 str r3, [r4, #0]
  19164. 80086f0: f7fd fb43 bl 8005d7a <_close>
  19165. 80086f4: 1c43 adds r3, r0, #1
  19166. 80086f6: d102 bne.n 80086fe <_close_r+0x1a>
  19167. 80086f8: 6823 ldr r3, [r4, #0]
  19168. 80086fa: b103 cbz r3, 80086fe <_close_r+0x1a>
  19169. 80086fc: 602b str r3, [r5, #0]
  19170. 80086fe: bd38 pop {r3, r4, r5, pc}
  19171. 8008700: 20000b94 .word 0x20000b94
  19172. 08008704 <_fstat_r>:
  19173. 8008704: b538 push {r3, r4, r5, lr}
  19174. 8008706: 2300 movs r3, #0
  19175. 8008708: 4c06 ldr r4, [pc, #24] ; (8008724 <_fstat_r+0x20>)
  19176. 800870a: 4605 mov r5, r0
  19177. 800870c: 4608 mov r0, r1
  19178. 800870e: 4611 mov r1, r2
  19179. 8008710: 6023 str r3, [r4, #0]
  19180. 8008712: f7fd fb3d bl 8005d90 <_fstat>
  19181. 8008716: 1c43 adds r3, r0, #1
  19182. 8008718: d102 bne.n 8008720 <_fstat_r+0x1c>
  19183. 800871a: 6823 ldr r3, [r4, #0]
  19184. 800871c: b103 cbz r3, 8008720 <_fstat_r+0x1c>
  19185. 800871e: 602b str r3, [r5, #0]
  19186. 8008720: bd38 pop {r3, r4, r5, pc}
  19187. 8008722: bf00 nop
  19188. 8008724: 20000b94 .word 0x20000b94
  19189. 08008728 <_isatty_r>:
  19190. 8008728: b538 push {r3, r4, r5, lr}
  19191. 800872a: 2300 movs r3, #0
  19192. 800872c: 4c05 ldr r4, [pc, #20] ; (8008744 <_isatty_r+0x1c>)
  19193. 800872e: 4605 mov r5, r0
  19194. 8008730: 4608 mov r0, r1
  19195. 8008732: 6023 str r3, [r4, #0]
  19196. 8008734: f7fd fb3b bl 8005dae <_isatty>
  19197. 8008738: 1c43 adds r3, r0, #1
  19198. 800873a: d102 bne.n 8008742 <_isatty_r+0x1a>
  19199. 800873c: 6823 ldr r3, [r4, #0]
  19200. 800873e: b103 cbz r3, 8008742 <_isatty_r+0x1a>
  19201. 8008740: 602b str r3, [r5, #0]
  19202. 8008742: bd38 pop {r3, r4, r5, pc}
  19203. 8008744: 20000b94 .word 0x20000b94
  19204. 08008748 <_lseek_r>:
  19205. 8008748: b538 push {r3, r4, r5, lr}
  19206. 800874a: 4605 mov r5, r0
  19207. 800874c: 4608 mov r0, r1
  19208. 800874e: 4611 mov r1, r2
  19209. 8008750: 2200 movs r2, #0
  19210. 8008752: 4c05 ldr r4, [pc, #20] ; (8008768 <_lseek_r+0x20>)
  19211. 8008754: 6022 str r2, [r4, #0]
  19212. 8008756: 461a mov r2, r3
  19213. 8008758: f7fd fb33 bl 8005dc2 <_lseek>
  19214. 800875c: 1c43 adds r3, r0, #1
  19215. 800875e: d102 bne.n 8008766 <_lseek_r+0x1e>
  19216. 8008760: 6823 ldr r3, [r4, #0]
  19217. 8008762: b103 cbz r3, 8008766 <_lseek_r+0x1e>
  19218. 8008764: 602b str r3, [r5, #0]
  19219. 8008766: bd38 pop {r3, r4, r5, pc}
  19220. 8008768: 20000b94 .word 0x20000b94
  19221. 0800876c <__ascii_mbtowc>:
  19222. 800876c: b082 sub sp, #8
  19223. 800876e: b901 cbnz r1, 8008772 <__ascii_mbtowc+0x6>
  19224. 8008770: a901 add r1, sp, #4
  19225. 8008772: b142 cbz r2, 8008786 <__ascii_mbtowc+0x1a>
  19226. 8008774: b14b cbz r3, 800878a <__ascii_mbtowc+0x1e>
  19227. 8008776: 7813 ldrb r3, [r2, #0]
  19228. 8008778: 600b str r3, [r1, #0]
  19229. 800877a: 7812 ldrb r2, [r2, #0]
  19230. 800877c: 1c10 adds r0, r2, #0
  19231. 800877e: bf18 it ne
  19232. 8008780: 2001 movne r0, #1
  19233. 8008782: b002 add sp, #8
  19234. 8008784: 4770 bx lr
  19235. 8008786: 4610 mov r0, r2
  19236. 8008788: e7fb b.n 8008782 <__ascii_mbtowc+0x16>
  19237. 800878a: f06f 0001 mvn.w r0, #1
  19238. 800878e: e7f8 b.n 8008782 <__ascii_mbtowc+0x16>
  19239. 08008790 <__malloc_lock>:
  19240. 8008790: 4770 bx lr
  19241. 08008792 <__malloc_unlock>:
  19242. 8008792: 4770 bx lr
  19243. 08008794 <_read_r>:
  19244. 8008794: b538 push {r3, r4, r5, lr}
  19245. 8008796: 4605 mov r5, r0
  19246. 8008798: 4608 mov r0, r1
  19247. 800879a: 4611 mov r1, r2
  19248. 800879c: 2200 movs r2, #0
  19249. 800879e: 4c05 ldr r4, [pc, #20] ; (80087b4 <_read_r+0x20>)
  19250. 80087a0: 6022 str r2, [r4, #0]
  19251. 80087a2: 461a mov r2, r3
  19252. 80087a4: f7fd facc bl 8005d40 <_read>
  19253. 80087a8: 1c43 adds r3, r0, #1
  19254. 80087aa: d102 bne.n 80087b2 <_read_r+0x1e>
  19255. 80087ac: 6823 ldr r3, [r4, #0]
  19256. 80087ae: b103 cbz r3, 80087b2 <_read_r+0x1e>
  19257. 80087b0: 602b str r3, [r5, #0]
  19258. 80087b2: bd38 pop {r3, r4, r5, pc}
  19259. 80087b4: 20000b94 .word 0x20000b94
  19260. 080087b8 <__ascii_wctomb>:
  19261. 80087b8: b149 cbz r1, 80087ce <__ascii_wctomb+0x16>
  19262. 80087ba: 2aff cmp r2, #255 ; 0xff
  19263. 80087bc: bf8b itete hi
  19264. 80087be: 238a movhi r3, #138 ; 0x8a
  19265. 80087c0: 700a strbls r2, [r1, #0]
  19266. 80087c2: 6003 strhi r3, [r0, #0]
  19267. 80087c4: 2001 movls r0, #1
  19268. 80087c6: bf88 it hi
  19269. 80087c8: f04f 30ff movhi.w r0, #4294967295
  19270. 80087cc: 4770 bx lr
  19271. 80087ce: 4608 mov r0, r1
  19272. 80087d0: 4770 bx lr
  19273. ...
  19274. 080087d4 <_init>:
  19275. 80087d4: b5f8 push {r3, r4, r5, r6, r7, lr}
  19276. 80087d6: bf00 nop
  19277. 80087d8: bcf8 pop {r3, r4, r5, r6, r7}
  19278. 80087da: bc08 pop {r3}
  19279. 80087dc: 469e mov lr, r3
  19280. 80087de: 4770 bx lr
  19281. 080087e0 <_fini>:
  19282. 80087e0: b5f8 push {r3, r4, r5, r6, r7, lr}
  19283. 80087e2: bf00 nop
  19284. 80087e4: bcf8 pop {r3, r4, r5, r6, r7}
  19285. 80087e6: bc08 pop {r3}
  19286. 80087e8: 469e mov lr, r3
  19287. 80087ea: 4770 bx lr