Nesslab_200M_System.list 748 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917
  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 0000849c 080001d0 080001d0 000101d0 2**3
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 000005f8 08008670 08008670 00018670 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 08008c68 08008c68 000201dc 2**0
  11. CONTENTS
  12. 4 .ARM 00000000 08008c68 08008c68 000201dc 2**0
  13. CONTENTS
  14. 5 .preinit_array 00000000 08008c68 08008c68 000201dc 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 08008c68 08008c68 00018c68 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 08008c6c 08008c6c 00018c6c 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 000001dc 20000000 08008c70 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 00000800 200001e0 08008e4c 000201e0 2**3
  23. ALLOC
  24. 10 ._user_heap_stack 00000600 200009e0 08008e4c 000209e0 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000029 00000000 00000000 000201dc 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 0001470f 00000000 00000000 00020205 2**0
  29. CONTENTS, READONLY, DEBUGGING
  30. 13 .debug_abbrev 0000362f 00000000 00000000 00034914 2**0
  31. CONTENTS, READONLY, DEBUGGING
  32. 14 .debug_aranges 00001150 00000000 00000000 00037f48 2**3
  33. CONTENTS, READONLY, DEBUGGING
  34. 15 .debug_ranges 00000fa8 00000000 00000000 00039098 2**3
  35. CONTENTS, READONLY, DEBUGGING
  36. 16 .debug_macro 00010f03 00000000 00000000 0003a040 2**0
  37. CONTENTS, READONLY, DEBUGGING
  38. 17 .debug_line 0000f527 00000000 00000000 0004af43 2**0
  39. CONTENTS, READONLY, DEBUGGING
  40. 18 .debug_str 00058777 00000000 00000000 0005a46a 2**0
  41. CONTENTS, READONLY, DEBUGGING
  42. 19 .comment 0000007b 00000000 00000000 000b2be1 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00005458 00000000 00000000 000b2c5c 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: 08008654 .word 0x08008654
  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: 08008654 .word 0x08008654
  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 <NessLab_Init>:
  916. volatile uint8_t NessLab_TxData[200] = {0,};
  917. uint8_t Flash_DataArray[200] = {0,};
  918. uint8_t DB_Define[100];
  919. void NessLab_Init(){
  920. 8000c28: b580 push {r7, lr}
  921. 8000c2a: af00 add r7, sp, #0
  922. FLASH_Read_Func(FLASH_USER_USE_START_ADDR + 2,&DB_Define[0],104);
  923. 8000c2c: 2268 movs r2, #104 ; 0x68
  924. 8000c2e: 4906 ldr r1, [pc, #24] ; (8000c48 <NessLab_Init+0x20>)
  925. 8000c30: 4806 ldr r0, [pc, #24] ; (8000c4c <NessLab_Init+0x24>)
  926. 8000c32: f000 fecb bl 80019cc <FLASH_Read_Func>
  927. HAL_GPIO_WritePin(PAU_RESET_GPIO_Port,PAU_RESET_Pin, GPIO_PIN_SET);
  928. 8000c36: 2201 movs r2, #1
  929. 8000c38: f44f 4180 mov.w r1, #16384 ; 0x4000
  930. 8000c3c: 4804 ldr r0, [pc, #16] ; (8000c50 <NessLab_Init+0x28>)
  931. 8000c3e: f002 fc5c bl 80034fa <HAL_GPIO_WritePin>
  932. }
  933. 8000c42: bf00 nop
  934. 8000c44: bd80 pop {r7, pc}
  935. 8000c46: bf00 nop
  936. 8000c48: 20000518 .word 0x20000518
  937. 8000c4c: 0800ff3a .word 0x0800ff3a
  938. 8000c50: 40010c00 .word 0x40010c00
  939. 8000c54: 00000000 .word 0x00000000
  940. 08000c58 <Round_Function>:
  941. double Round_Function(double value){
  942. 8000c58: b590 push {r4, r7, lr}
  943. 8000c5a: b085 sub sp, #20
  944. 8000c5c: af00 add r7, sp, #0
  945. 8000c5e: e9c7 0100 strd r0, r1, [r7]
  946. double val = value * 100;
  947. 8000c62: f04f 0200 mov.w r2, #0
  948. 8000c66: 4b2a ldr r3, [pc, #168] ; (8000d10 <Round_Function+0xb8>)
  949. 8000c68: e9d7 0100 ldrd r0, r1, [r7]
  950. 8000c6c: f7ff fc94 bl 8000598 <__aeabi_dmul>
  951. 8000c70: 4603 mov r3, r0
  952. 8000c72: 460c mov r4, r1
  953. 8000c74: e9c7 3402 strd r3, r4, [r7, #8]
  954. val = (int)(val + 0.5);
  955. 8000c78: f04f 0200 mov.w r2, #0
  956. 8000c7c: 4b25 ldr r3, [pc, #148] ; (8000d14 <Round_Function+0xbc>)
  957. 8000c7e: e9d7 0102 ldrd r0, r1, [r7, #8]
  958. 8000c82: f7ff fad3 bl 800022c <__adddf3>
  959. 8000c86: 4603 mov r3, r0
  960. 8000c88: 460c mov r4, r1
  961. 8000c8a: 4618 mov r0, r3
  962. 8000c8c: 4621 mov r1, r4
  963. 8000c8e: f7ff ff33 bl 8000af8 <__aeabi_d2iz>
  964. 8000c92: 4603 mov r3, r0
  965. 8000c94: 4618 mov r0, r3
  966. 8000c96: f7ff fc15 bl 80004c4 <__aeabi_i2d>
  967. 8000c9a: 4603 mov r3, r0
  968. 8000c9c: 460c mov r4, r1
  969. 8000c9e: e9c7 3402 strd r3, r4, [r7, #8]
  970. val *= 0.1;
  971. 8000ca2: a319 add r3, pc, #100 ; (adr r3, 8000d08 <Round_Function+0xb0>)
  972. 8000ca4: e9d3 2300 ldrd r2, r3, [r3]
  973. 8000ca8: e9d7 0102 ldrd r0, r1, [r7, #8]
  974. 8000cac: f7ff fc74 bl 8000598 <__aeabi_dmul>
  975. 8000cb0: 4603 mov r3, r0
  976. 8000cb2: 460c mov r4, r1
  977. 8000cb4: e9c7 3402 strd r3, r4, [r7, #8]
  978. val = (int)(val + 0.5);
  979. 8000cb8: f04f 0200 mov.w r2, #0
  980. 8000cbc: 4b15 ldr r3, [pc, #84] ; (8000d14 <Round_Function+0xbc>)
  981. 8000cbe: e9d7 0102 ldrd r0, r1, [r7, #8]
  982. 8000cc2: f7ff fab3 bl 800022c <__adddf3>
  983. 8000cc6: 4603 mov r3, r0
  984. 8000cc8: 460c mov r4, r1
  985. 8000cca: 4618 mov r0, r3
  986. 8000ccc: 4621 mov r1, r4
  987. 8000cce: f7ff ff13 bl 8000af8 <__aeabi_d2iz>
  988. 8000cd2: 4603 mov r3, r0
  989. 8000cd4: 4618 mov r0, r3
  990. 8000cd6: f7ff fbf5 bl 80004c4 <__aeabi_i2d>
  991. 8000cda: 4603 mov r3, r0
  992. 8000cdc: 460c mov r4, r1
  993. 8000cde: e9c7 3402 strd r3, r4, [r7, #8]
  994. val *= 0.1;
  995. 8000ce2: a309 add r3, pc, #36 ; (adr r3, 8000d08 <Round_Function+0xb0>)
  996. 8000ce4: e9d3 2300 ldrd r2, r3, [r3]
  997. 8000ce8: e9d7 0102 ldrd r0, r1, [r7, #8]
  998. 8000cec: f7ff fc54 bl 8000598 <__aeabi_dmul>
  999. 8000cf0: 4603 mov r3, r0
  1000. 8000cf2: 460c mov r4, r1
  1001. 8000cf4: e9c7 3402 strd r3, r4, [r7, #8]
  1002. return val;
  1003. 8000cf8: e9d7 3402 ldrd r3, r4, [r7, #8]
  1004. }
  1005. 8000cfc: 4618 mov r0, r3
  1006. 8000cfe: 4621 mov r1, r4
  1007. 8000d00: 3714 adds r7, #20
  1008. 8000d02: 46bd mov sp, r7
  1009. 8000d04: bd90 pop {r4, r7, pc}
  1010. 8000d06: bf00 nop
  1011. 8000d08: 9999999a .word 0x9999999a
  1012. 8000d0c: 3fb99999 .word 0x3fb99999
  1013. 8000d10: 40590000 .word 0x40590000
  1014. 8000d14: 3fe00000 .word 0x3fe00000
  1015. 08000d18 <Absolute_value_Convert>:
  1016. uint16_t Absolute_value_Convert(int16_t val){
  1017. 8000d18: b480 push {r7}
  1018. 8000d1a: b083 sub sp, #12
  1019. 8000d1c: af00 add r7, sp, #0
  1020. 8000d1e: 4603 mov r3, r0
  1021. 8000d20: 80fb strh r3, [r7, #6]
  1022. if(val < 0)
  1023. 8000d22: f9b7 3006 ldrsh.w r3, [r7, #6]
  1024. 8000d26: 2b00 cmp r3, #0
  1025. 8000d28: da03 bge.n 8000d32 <Absolute_value_Convert+0x1a>
  1026. val *= -1;
  1027. 8000d2a: 88fb ldrh r3, [r7, #6]
  1028. 8000d2c: 425b negs r3, r3
  1029. 8000d2e: b29b uxth r3, r3
  1030. 8000d30: 80fb strh r3, [r7, #6]
  1031. return val;
  1032. 8000d32: 88fb ldrh r3, [r7, #6]
  1033. }
  1034. 8000d34: 4618 mov r0, r3
  1035. 8000d36: 370c adds r7, #12
  1036. 8000d38: 46bd mov sp, r7
  1037. 8000d3a: bc80 pop {r7}
  1038. 8000d3c: 4770 bx lr
  1039. ...
  1040. 08000d40 <NessLab_Adc_Convert_db>:
  1041. uint8_t NessLab_Adc_Convert_db() // ?占쏙옙湲고븿?占쏙옙
  1042. {
  1043. 8000d40: b590 push {r4, r7, lr}
  1044. 8000d42: b08b sub sp, #44 ; 0x2c
  1045. 8000d44: af00 add r7, sp, #0
  1046. double CurrAdc = (float)((Currstatus.DownLink_Forward_Det_H << 8 | Currstatus.DownLink_Forward_Det_L)*0.001);
  1047. 8000d46: 4b4c ldr r3, [pc, #304] ; (8000e78 <NessLab_Adc_Convert_db+0x138>)
  1048. 8000d48: 79db ldrb r3, [r3, #7]
  1049. 8000d4a: 021b lsls r3, r3, #8
  1050. 8000d4c: 4a4a ldr r2, [pc, #296] ; (8000e78 <NessLab_Adc_Convert_db+0x138>)
  1051. 8000d4e: 7a12 ldrb r2, [r2, #8]
  1052. 8000d50: 4313 orrs r3, r2
  1053. 8000d52: 4618 mov r0, r3
  1054. 8000d54: f7ff fbb6 bl 80004c4 <__aeabi_i2d>
  1055. 8000d58: a345 add r3, pc, #276 ; (adr r3, 8000e70 <NessLab_Adc_Convert_db+0x130>)
  1056. 8000d5a: e9d3 2300 ldrd r2, r3, [r3]
  1057. 8000d5e: f7ff fc1b bl 8000598 <__aeabi_dmul>
  1058. 8000d62: 4603 mov r3, r0
  1059. 8000d64: 460c mov r4, r1
  1060. 8000d66: 4618 mov r0, r3
  1061. 8000d68: 4621 mov r1, r4
  1062. 8000d6a: f7ff ff0d bl 8000b88 <__aeabi_d2f>
  1063. 8000d6e: 4603 mov r3, r0
  1064. 8000d70: 4618 mov r0, r3
  1065. 8000d72: f7ff fbb9 bl 80004e8 <__aeabi_f2d>
  1066. 8000d76: 4603 mov r3, r0
  1067. 8000d78: 460c mov r4, r1
  1068. 8000d7a: e9c7 3406 strd r3, r4, [r7, #24]
  1069. double TableVal = 0;
  1070. 8000d7e: f04f 0300 mov.w r3, #0
  1071. 8000d82: f04f 0400 mov.w r4, #0
  1072. 8000d86: e9c7 3404 strd r3, r4, [r7, #16]
  1073. float ret = 0;
  1074. 8000d8a: f04f 0300 mov.w r3, #0
  1075. 8000d8e: 60fb str r3, [r7, #12]
  1076. int16_t calc_val = 0,Prev_calc_val = 3300 ;
  1077. 8000d90: 2300 movs r3, #0
  1078. 8000d92: 817b strh r3, [r7, #10]
  1079. 8000d94: f640 43e4 movw r3, #3300 ; 0xce4
  1080. 8000d98: 84fb strh r3, [r7, #38] ; 0x26
  1081. uint8_t Curr_DB = 0 ;
  1082. 8000d9a: 2300 movs r3, #0
  1083. 8000d9c: f887 3025 strb.w r3, [r7, #37] ; 0x25
  1084. uint16_t CurrAdc_Temp = 0,TableVal_Temp = 0;
  1085. 8000da0: 2300 movs r3, #0
  1086. 8000da2: 813b strh r3, [r7, #8]
  1087. 8000da4: 2300 movs r3, #0
  1088. 8000da6: 80fb strh r3, [r7, #6]
  1089. ret = Round_Function(CurrAdc);
  1090. 8000da8: e9d7 0106 ldrd r0, r1, [r7, #24]
  1091. 8000dac: f7ff ff54 bl 8000c58 <Round_Function>
  1092. 8000db0: 4603 mov r3, r0
  1093. 8000db2: 460c mov r4, r1
  1094. 8000db4: 4618 mov r0, r3
  1095. 8000db6: 4621 mov r1, r4
  1096. 8000db8: f7ff fee6 bl 8000b88 <__aeabi_d2f>
  1097. 8000dbc: 4603 mov r3, r0
  1098. 8000dbe: 60fb str r3, [r7, #12]
  1099. // CurrAdc *= 1000;
  1100. CurrAdc_Temp = CurrAdc * 1000;
  1101. 8000dc0: f04f 0200 mov.w r2, #0
  1102. 8000dc4: 4b2d ldr r3, [pc, #180] ; (8000e7c <NessLab_Adc_Convert_db+0x13c>)
  1103. 8000dc6: e9d7 0106 ldrd r0, r1, [r7, #24]
  1104. 8000dca: f7ff fbe5 bl 8000598 <__aeabi_dmul>
  1105. 8000dce: 4603 mov r3, r0
  1106. 8000dd0: 460c mov r4, r1
  1107. 8000dd2: 4618 mov r0, r3
  1108. 8000dd4: 4621 mov r1, r4
  1109. 8000dd6: f7ff feb7 bl 8000b48 <__aeabi_d2uiz>
  1110. 8000dda: 4603 mov r3, r0
  1111. 8000ddc: 813b strh r3, [r7, #8]
  1112. // CurrAdc_Temp = 155;
  1113. // CurrAdc_Temp = 156;
  1114. for(int i = 0; i <= 50; i++){
  1115. 8000dde: 2300 movs r3, #0
  1116. 8000de0: 623b str r3, [r7, #32]
  1117. 8000de2: e03a b.n 8000e5a <NessLab_Adc_Convert_db+0x11a>
  1118. TableVal_Temp = ((DB_Define[i * 2] << 8 | DB_Define[(i * 2)+ 1]));
  1119. 8000de4: 6a3b ldr r3, [r7, #32]
  1120. 8000de6: 005b lsls r3, r3, #1
  1121. 8000de8: 4a25 ldr r2, [pc, #148] ; (8000e80 <NessLab_Adc_Convert_db+0x140>)
  1122. 8000dea: 5cd3 ldrb r3, [r2, r3]
  1123. 8000dec: 021b lsls r3, r3, #8
  1124. 8000dee: b21a sxth r2, r3
  1125. 8000df0: 6a3b ldr r3, [r7, #32]
  1126. 8000df2: 005b lsls r3, r3, #1
  1127. 8000df4: 3301 adds r3, #1
  1128. 8000df6: 4922 ldr r1, [pc, #136] ; (8000e80 <NessLab_Adc_Convert_db+0x140>)
  1129. 8000df8: 5ccb ldrb r3, [r1, r3]
  1130. 8000dfa: b21b sxth r3, r3
  1131. 8000dfc: 4313 orrs r3, r2
  1132. 8000dfe: b21b sxth r3, r3
  1133. 8000e00: 80fb strh r3, [r7, #6]
  1134. if(TableVal_Temp == 0)
  1135. 8000e02: 88fb ldrh r3, [r7, #6]
  1136. 8000e04: 2b00 cmp r3, #0
  1137. 8000e06: d024 beq.n 8000e52 <NessLab_Adc_Convert_db+0x112>
  1138. continue;
  1139. calc_val = CurrAdc_Temp - TableVal_Temp;
  1140. 8000e08: 893a ldrh r2, [r7, #8]
  1141. 8000e0a: 88fb ldrh r3, [r7, #6]
  1142. 8000e0c: 1ad3 subs r3, r2, r3
  1143. 8000e0e: b29b uxth r3, r3
  1144. 8000e10: 817b strh r3, [r7, #10]
  1145. calc_val = Absolute_value_Convert(calc_val);
  1146. 8000e12: f9b7 300a ldrsh.w r3, [r7, #10]
  1147. 8000e16: 4618 mov r0, r3
  1148. 8000e18: f7ff ff7e bl 8000d18 <Absolute_value_Convert>
  1149. 8000e1c: 4603 mov r3, r0
  1150. 8000e1e: 817b strh r3, [r7, #10]
  1151. // printf("%d - %d calc_val : %d \r\n",CurrAdc_Temp,TableVal_Temp,calc_val);
  1152. if(Prev_calc_val > calc_val && TableVal_Temp != 0){
  1153. 8000e20: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26
  1154. 8000e24: f9b7 300a ldrsh.w r3, [r7, #10]
  1155. 8000e28: 429a cmp r2, r3
  1156. 8000e2a: dd13 ble.n 8000e54 <NessLab_Adc_Convert_db+0x114>
  1157. 8000e2c: 88fb ldrh r3, [r7, #6]
  1158. 8000e2e: 2b00 cmp r3, #0
  1159. 8000e30: d010 beq.n 8000e54 <NessLab_Adc_Convert_db+0x114>
  1160. Prev_calc_val = calc_val;
  1161. 8000e32: 897b ldrh r3, [r7, #10]
  1162. 8000e34: 84fb strh r3, [r7, #38] ; 0x26
  1163. if(CurrAdc_Temp < TableVal_Temp)
  1164. 8000e36: 893a ldrh r2, [r7, #8]
  1165. 8000e38: 88fb ldrh r3, [r7, #6]
  1166. 8000e3a: 429a cmp r2, r3
  1167. 8000e3c: d203 bcs.n 8000e46 <NessLab_Adc_Convert_db+0x106>
  1168. Curr_DB = i;
  1169. 8000e3e: 6a3b ldr r3, [r7, #32]
  1170. 8000e40: f887 3025 strb.w r3, [r7, #37] ; 0x25
  1171. 8000e44: e006 b.n 8000e54 <NessLab_Adc_Convert_db+0x114>
  1172. else
  1173. Curr_DB = i + 1;
  1174. 8000e46: 6a3b ldr r3, [r7, #32]
  1175. 8000e48: b2db uxtb r3, r3
  1176. 8000e4a: 3301 adds r3, #1
  1177. 8000e4c: f887 3025 strb.w r3, [r7, #37] ; 0x25
  1178. 8000e50: e000 b.n 8000e54 <NessLab_Adc_Convert_db+0x114>
  1179. continue;
  1180. 8000e52: bf00 nop
  1181. for(int i = 0; i <= 50; i++){
  1182. 8000e54: 6a3b ldr r3, [r7, #32]
  1183. 8000e56: 3301 adds r3, #1
  1184. 8000e58: 623b str r3, [r7, #32]
  1185. 8000e5a: 6a3b ldr r3, [r7, #32]
  1186. 8000e5c: 2b32 cmp r3, #50 ; 0x32
  1187. 8000e5e: ddc1 ble.n 8000de4 <NessLab_Adc_Convert_db+0xa4>
  1188. }
  1189. }
  1190. // DB_Define[]
  1191. // printf("Curr Db : %d \r\n",Curr_DB);
  1192. return Curr_DB;
  1193. 8000e60: f897 3025 ldrb.w r3, [r7, #37] ; 0x25
  1194. }
  1195. 8000e64: 4618 mov r0, r3
  1196. 8000e66: 372c adds r7, #44 ; 0x2c
  1197. 8000e68: 46bd mov sp, r7
  1198. 8000e6a: bd90 pop {r4, r7, pc}
  1199. 8000e6c: f3af 8000 nop.w
  1200. 8000e70: d2f1a9fc .word 0xd2f1a9fc
  1201. 8000e74: 3f50624d .word 0x3f50624d
  1202. 8000e78: 2000057c .word 0x2000057c
  1203. 8000e7c: 408f4000 .word 0x408f4000
  1204. 8000e80: 20000518 .word 0x20000518
  1205. 08000e84 <NessLab_Operate>:
  1206. void NessLab_Operate(uint8_t* data){
  1207. 8000e84: b580 push {r7, lr}
  1208. 8000e86: b086 sub sp, #24
  1209. 8000e88: af00 add r7, sp, #0
  1210. 8000e8a: 6078 str r0, [r7, #4]
  1211. uint8_t datatype = data[NessLab_MsgID0];
  1212. 8000e8c: 687b ldr r3, [r7, #4]
  1213. 8000e8e: 789b ldrb r3, [r3, #2]
  1214. 8000e90: 73fb strb r3, [r7, #15]
  1215. uint8_t UartLength = 0;
  1216. 8000e92: 2300 movs r3, #0
  1217. 8000e94: 75fb strb r3, [r7, #23]
  1218. static uint16_t MSG_SNCnt = 0;
  1219. switch(datatype){
  1220. 8000e96: 7bfb ldrb r3, [r7, #15]
  1221. 8000e98: 2bcb cmp r3, #203 ; 0xcb
  1222. 8000e9a: d049 beq.n 8000f30 <NessLab_Operate+0xac>
  1223. 8000e9c: 2bcb cmp r3, #203 ; 0xcb
  1224. 8000e9e: dc04 bgt.n 8000eaa <NessLab_Operate+0x26>
  1225. 8000ea0: 2b65 cmp r3, #101 ; 0x65
  1226. 8000ea2: d008 beq.n 8000eb6 <NessLab_Operate+0x32>
  1227. 8000ea4: 2bc9 cmp r3, #201 ; 0xc9
  1228. 8000ea6: d030 beq.n 8000f0a <NessLab_Operate+0x86>
  1229. 8000ea8: e08f b.n 8000fca <NessLab_Operate+0x146>
  1230. 8000eaa: 2bcd cmp r3, #205 ; 0xcd
  1231. 8000eac: d07f beq.n 8000fae <NessLab_Operate+0x12a>
  1232. 8000eae: 2bce cmp r3, #206 ; 0xce
  1233. 8000eb0: f000 8084 beq.w 8000fbc <NessLab_Operate+0x138>
  1234. 8000eb4: e089 b.n 8000fca <NessLab_Operate+0x146>
  1235. case NessLab_STATUS_REQ:
  1236. ADC_Check();
  1237. 8000eb6: f000 fba3 bl 8001600 <ADC_Check>
  1238. UartLength = NessLab_MAX_INDEX + 1;
  1239. 8000eba: 2316 movs r3, #22
  1240. 8000ebc: 75fb strb r3, [r7, #23]
  1241. MSG_SNCnt = data[NessLab_Req_MsgSN0] << 8 | data[NessLab_Req_MsgSN1];
  1242. 8000ebe: 687b ldr r3, [r7, #4]
  1243. 8000ec0: 3303 adds r3, #3
  1244. 8000ec2: 781b ldrb r3, [r3, #0]
  1245. 8000ec4: 021b lsls r3, r3, #8
  1246. 8000ec6: b21a sxth r2, r3
  1247. 8000ec8: 687b ldr r3, [r7, #4]
  1248. 8000eca: 3304 adds r3, #4
  1249. 8000ecc: 781b ldrb r3, [r3, #0]
  1250. 8000ece: b21b sxth r3, r3
  1251. 8000ed0: 4313 orrs r3, r2
  1252. 8000ed2: b21b sxth r3, r3
  1253. 8000ed4: b29a uxth r2, r3
  1254. 8000ed6: 4b41 ldr r3, [pc, #260] ; (8000fdc <NessLab_Operate+0x158>)
  1255. 8000ed8: 801a strh r2, [r3, #0]
  1256. MSG_SNCnt++;
  1257. 8000eda: 4b40 ldr r3, [pc, #256] ; (8000fdc <NessLab_Operate+0x158>)
  1258. 8000edc: 881b ldrh r3, [r3, #0]
  1259. 8000ede: 3301 adds r3, #1
  1260. 8000ee0: b29a uxth r2, r3
  1261. 8000ee2: 4b3e ldr r3, [pc, #248] ; (8000fdc <NessLab_Operate+0x158>)
  1262. 8000ee4: 801a strh r2, [r3, #0]
  1263. // if(data[NessLab_Req_Data_Cnt1] > 0)
  1264. // NessLab_TxData[NessLab_VSWR_ALARM] = 1;
  1265. // else
  1266. // NessLab_TxData[NessLab_VSWR_ALARM] = 0;
  1267. NessLab_TxData[NessLab_MsgSN0] = (uint8_t)((MSG_SNCnt & 0xFF00) >>8);//data[NessLab_Req_MsgSN0];
  1268. 8000ee6: 4b3d ldr r3, [pc, #244] ; (8000fdc <NessLab_Operate+0x158>)
  1269. 8000ee8: 881b ldrh r3, [r3, #0]
  1270. 8000eea: 0a1b lsrs r3, r3, #8
  1271. 8000eec: b29b uxth r3, r3
  1272. 8000eee: b2da uxtb r2, r3
  1273. 8000ef0: 4b3b ldr r3, [pc, #236] ; (8000fe0 <NessLab_Operate+0x15c>)
  1274. 8000ef2: 70da strb r2, [r3, #3]
  1275. NessLab_TxData[NessLab_MsgSN1] = (uint8_t)((MSG_SNCnt & 0x00FF));//data[NessLab_Req_MsgSN1] ;
  1276. 8000ef4: 4b39 ldr r3, [pc, #228] ; (8000fdc <NessLab_Operate+0x158>)
  1277. 8000ef6: 881b ldrh r3, [r3, #0]
  1278. 8000ef8: b2da uxtb r2, r3
  1279. 8000efa: 4b39 ldr r3, [pc, #228] ; (8000fe0 <NessLab_Operate+0x15c>)
  1280. 8000efc: 711a strb r2, [r3, #4]
  1281. NessLab_Frame_Set(NessLab_TxData,12,NessLab_STATUS_RES);
  1282. 8000efe: 2266 movs r2, #102 ; 0x66
  1283. 8000f00: 210c movs r1, #12
  1284. 8000f02: 4837 ldr r0, [pc, #220] ; (8000fe0 <NessLab_Operate+0x15c>)
  1285. 8000f04: f000 f882 bl 800100c <NessLab_Frame_Set>
  1286. // NessLab_TxData[14] = 1;
  1287. // NessLab_TxData[15] = 0;
  1288. // NessLab_TxData[16] = 1;
  1289. // NessLab_TxData[17] = 0;
  1290. break;
  1291. 8000f08: e05f b.n 8000fca <NessLab_Operate+0x146>
  1292. case NessLab_Table_REQ:
  1293. UartLength = NESSLAB_TABLE_LENGTH;
  1294. 8000f0a: 236e movs r3, #110 ; 0x6e
  1295. 8000f0c: 75fb strb r3, [r7, #23]
  1296. FLASH_Read_Func(FLASH_USER_USE_START_ADDR,&NessLab_TxData[NessLab_Req_Data_Cnt0],data[NessLab_DataLength]);
  1297. 8000f0e: 687b ldr r3, [r7, #4]
  1298. 8000f10: 3306 adds r3, #6
  1299. 8000f12: 781b ldrb r3, [r3, #0]
  1300. 8000f14: 461a mov r2, r3
  1301. 8000f16: 4933 ldr r1, [pc, #204] ; (8000fe4 <NessLab_Operate+0x160>)
  1302. 8000f18: 4833 ldr r0, [pc, #204] ; (8000fe8 <NessLab_Operate+0x164>)
  1303. 8000f1a: f000 fd57 bl 80019cc <FLASH_Read_Func>
  1304. NessLab_Table_Frame_Set(NessLab_TxData,102,NessLab_Table_RES);
  1305. 8000f1e: 22ca movs r2, #202 ; 0xca
  1306. 8000f20: 2166 movs r1, #102 ; 0x66
  1307. 8000f22: 482f ldr r0, [pc, #188] ; (8000fe0 <NessLab_Operate+0x15c>)
  1308. 8000f24: f000 f97e bl 8001224 <NessLab_Table_Frame_Set>
  1309. printf("NessLab_Table_REQ \r\n");
  1310. 8000f28: 4830 ldr r0, [pc, #192] ; (8000fec <NessLab_Operate+0x168>)
  1311. 8000f2a: f005 fc19 bl 8006760 <puts>
  1312. break;
  1313. 8000f2e: e04c b.n 8000fca <NessLab_Operate+0x146>
  1314. case NessLab_TableSet_REQ:
  1315. DataErase_Func(FLASH_USER_USE_START_ADDR,200);
  1316. 8000f30: 21c8 movs r1, #200 ; 0xc8
  1317. 8000f32: 482d ldr r0, [pc, #180] ; (8000fe8 <NessLab_Operate+0x164>)
  1318. 8000f34: f000 fc70 bl 8001818 <DataErase_Func>
  1319. printf("Ram Data Display \r\n");
  1320. 8000f38: 482d ldr r0, [pc, #180] ; (8000ff0 <NessLab_Operate+0x16c>)
  1321. 8000f3a: f005 fc11 bl 8006760 <puts>
  1322. for(int i = 0; i < data[NessLab_DataLength]; i++){
  1323. 8000f3e: 2300 movs r3, #0
  1324. 8000f40: 613b str r3, [r7, #16]
  1325. 8000f42: e015 b.n 8000f70 <NessLab_Operate+0xec>
  1326. Flash_DataArray[i] = data[NessLab_Data_ADC1_H + i];
  1327. 8000f44: 693b ldr r3, [r7, #16]
  1328. 8000f46: 3307 adds r3, #7
  1329. 8000f48: 461a mov r2, r3
  1330. 8000f4a: 687b ldr r3, [r7, #4]
  1331. 8000f4c: 4413 add r3, r2
  1332. 8000f4e: 7819 ldrb r1, [r3, #0]
  1333. 8000f50: 4a28 ldr r2, [pc, #160] ; (8000ff4 <NessLab_Operate+0x170>)
  1334. 8000f52: 693b ldr r3, [r7, #16]
  1335. 8000f54: 4413 add r3, r2
  1336. 8000f56: 460a mov r2, r1
  1337. 8000f58: 701a strb r2, [r3, #0]
  1338. printf("%x ",Flash_DataArray[i]);
  1339. 8000f5a: 4a26 ldr r2, [pc, #152] ; (8000ff4 <NessLab_Operate+0x170>)
  1340. 8000f5c: 693b ldr r3, [r7, #16]
  1341. 8000f5e: 4413 add r3, r2
  1342. 8000f60: 781b ldrb r3, [r3, #0]
  1343. 8000f62: 4619 mov r1, r3
  1344. 8000f64: 4824 ldr r0, [pc, #144] ; (8000ff8 <NessLab_Operate+0x174>)
  1345. 8000f66: f005 fb87 bl 8006678 <iprintf>
  1346. for(int i = 0; i < data[NessLab_DataLength]; i++){
  1347. 8000f6a: 693b ldr r3, [r7, #16]
  1348. 8000f6c: 3301 adds r3, #1
  1349. 8000f6e: 613b str r3, [r7, #16]
  1350. 8000f70: 687b ldr r3, [r7, #4]
  1351. 8000f72: 3306 adds r3, #6
  1352. 8000f74: 781b ldrb r3, [r3, #0]
  1353. 8000f76: 461a mov r2, r3
  1354. 8000f78: 693b ldr r3, [r7, #16]
  1355. 8000f7a: 4293 cmp r3, r2
  1356. 8000f7c: dbe2 blt.n 8000f44 <NessLab_Operate+0xc0>
  1357. }
  1358. FLASH_Write_Func(FLASH_USER_USE_START_ADDR,&Flash_DataArray[0],data[NessLab_DataLength]);
  1359. 8000f7e: 687b ldr r3, [r7, #4]
  1360. 8000f80: 3306 adds r3, #6
  1361. 8000f82: 781b ldrb r3, [r3, #0]
  1362. 8000f84: 461a mov r2, r3
  1363. 8000f86: 491b ldr r1, [pc, #108] ; (8000ff4 <NessLab_Operate+0x170>)
  1364. 8000f88: 4817 ldr r0, [pc, #92] ; (8000fe8 <NessLab_Operate+0x164>)
  1365. 8000f8a: f000 fc97 bl 80018bc <FLASH_Write_Func>
  1366. UartLength = NESSLAB_TABLE_LENGTH;
  1367. 8000f8e: 236e movs r3, #110 ; 0x6e
  1368. 8000f90: 75fb strb r3, [r7, #23]
  1369. NessLab_Table_Frame_Set(NessLab_TxData,104,NessLab_TableSet_RES);
  1370. 8000f92: 22cc movs r2, #204 ; 0xcc
  1371. 8000f94: 2168 movs r1, #104 ; 0x68
  1372. 8000f96: 4812 ldr r0, [pc, #72] ; (8000fe0 <NessLab_Operate+0x15c>)
  1373. 8000f98: f000 f944 bl 8001224 <NessLab_Table_Frame_Set>
  1374. FLASH_Read_Func(FLASH_USER_USE_START_ADDR + 2,&DB_Define[0],104);
  1375. 8000f9c: 2268 movs r2, #104 ; 0x68
  1376. 8000f9e: 4917 ldr r1, [pc, #92] ; (8000ffc <NessLab_Operate+0x178>)
  1377. 8000fa0: 4817 ldr r0, [pc, #92] ; (8001000 <NessLab_Operate+0x17c>)
  1378. 8000fa2: f000 fd13 bl 80019cc <FLASH_Read_Func>
  1379. // NessLab_Init();
  1380. printf("\r\nNessLab_TableSet_REQ \r\n");
  1381. 8000fa6: 4817 ldr r0, [pc, #92] ; (8001004 <NessLab_Operate+0x180>)
  1382. 8000fa8: f005 fbda bl 8006760 <puts>
  1383. break;
  1384. 8000fac: e00d b.n 8000fca <NessLab_Operate+0x146>
  1385. case NessLab_PAU_Enable_Req:
  1386. HAL_GPIO_WritePin(AMP_EN_GPIO_Port,AMP_EN_Pin, GPIO_PIN_SET);
  1387. 8000fae: 2201 movs r2, #1
  1388. 8000fb0: f44f 7180 mov.w r1, #256 ; 0x100
  1389. 8000fb4: 4814 ldr r0, [pc, #80] ; (8001008 <NessLab_Operate+0x184>)
  1390. 8000fb6: f002 faa0 bl 80034fa <HAL_GPIO_WritePin>
  1391. break;
  1392. 8000fba: e006 b.n 8000fca <NessLab_Operate+0x146>
  1393. case NessLab_PAU_Disable_Req:
  1394. HAL_GPIO_WritePin(AMP_EN_GPIO_Port,AMP_EN_Pin, GPIO_PIN_RESET);
  1395. 8000fbc: 2200 movs r2, #0
  1396. 8000fbe: f44f 7180 mov.w r1, #256 ; 0x100
  1397. 8000fc2: 4811 ldr r0, [pc, #68] ; (8001008 <NessLab_Operate+0x184>)
  1398. 8000fc4: f002 fa99 bl 80034fa <HAL_GPIO_WritePin>
  1399. break;
  1400. 8000fc8: bf00 nop
  1401. }
  1402. Uart1_Data_Send(&NessLab_TxData[NessLab_Header0], UartLength);
  1403. 8000fca: 7dfb ldrb r3, [r7, #23]
  1404. 8000fcc: 4619 mov r1, r3
  1405. 8000fce: 4804 ldr r0, [pc, #16] ; (8000fe0 <NessLab_Operate+0x15c>)
  1406. 8000fd0: f000 fe82 bl 8001cd8 <Uart1_Data_Send>
  1407. }
  1408. 8000fd4: bf00 nop
  1409. 8000fd6: 3718 adds r7, #24
  1410. 8000fd8: 46bd mov sp, r7
  1411. 8000fda: bd80 pop {r7, pc}
  1412. 8000fdc: 2000038c .word 0x2000038c
  1413. 8000fe0: 200001fc .word 0x200001fc
  1414. 8000fe4: 20000203 .word 0x20000203
  1415. 8000fe8: 0800ff38 .word 0x0800ff38
  1416. 8000fec: 08008670 .word 0x08008670
  1417. 8000ff0: 08008684 .word 0x08008684
  1418. 8000ff4: 200002c4 .word 0x200002c4
  1419. 8000ff8: 08008698 .word 0x08008698
  1420. 8000ffc: 20000518 .word 0x20000518
  1421. 8001000: 0800ff3a .word 0x0800ff3a
  1422. 8001004: 0800869c .word 0x0800869c
  1423. 8001008: 40010800 .word 0x40010800
  1424. 0800100c <NessLab_Frame_Set>:
  1425. 7e 7e 66 00 02 00 0c 04 20 00 00 00 00 00 00 00 00 00 68 7e 7e 0a
  1426. */
  1427. void NessLab_Frame_Set(uint8_t* data,uint8_t size){
  1428. 800100c: b590 push {r4, r7, lr}
  1429. 800100e: b083 sub sp, #12
  1430. 8001010: af00 add r7, sp, #0
  1431. 8001012: 6078 str r0, [r7, #4]
  1432. 8001014: 460b mov r3, r1
  1433. 8001016: 70fb strb r3, [r7, #3]
  1434. data[NessLab_Header0] = 0x7E;
  1435. 8001018: 687b ldr r3, [r7, #4]
  1436. 800101a: 227e movs r2, #126 ; 0x7e
  1437. 800101c: 701a strb r2, [r3, #0]
  1438. data[NessLab_Header1] = 0x7E;
  1439. 800101e: 687b ldr r3, [r7, #4]
  1440. 8001020: 3301 adds r3, #1
  1441. 8001022: 227e movs r2, #126 ; 0x7e
  1442. 8001024: 701a strb r2, [r3, #0]
  1443. data[NessLab_MsgID0] = NessLab_STATUS_RES;// ID
  1444. 8001026: 687b ldr r3, [r7, #4]
  1445. 8001028: 3302 adds r3, #2
  1446. 800102a: 2266 movs r2, #102 ; 0x66
  1447. 800102c: 701a strb r2, [r3, #0]
  1448. // data[NessLab_MsgSN0] = 0; // SEQ NUMBER
  1449. // data[NessLab_MsgSN1] = 0; // SEQ NUMBER
  1450. data[NessLab_Reserve0] = 0; // NessLab_Reserve0
  1451. 800102e: 687b ldr r3, [r7, #4]
  1452. 8001030: 3305 adds r3, #5
  1453. 8001032: 2200 movs r2, #0
  1454. 8001034: 701a strb r2, [r3, #0]
  1455. data[NessLab_DataLength] = size; // Nesslab Size
  1456. 8001036: 687b ldr r3, [r7, #4]
  1457. 8001038: 3306 adds r3, #6
  1458. 800103a: 78fa ldrb r2, [r7, #3]
  1459. 800103c: 701a strb r2, [r3, #0]
  1460. data[NessLab_Data_ADC1_H] = Currstatus.DownLink_Forward_Det_H;//(uint8_t)((ADC1value[0] & 0xFF00) >> 8);
  1461. 800103e: 687b ldr r3, [r7, #4]
  1462. 8001040: 3307 adds r3, #7
  1463. 8001042: 4a49 ldr r2, [pc, #292] ; (8001168 <NessLab_Frame_Set+0x15c>)
  1464. 8001044: 79d2 ldrb r2, [r2, #7]
  1465. 8001046: 701a strb r2, [r3, #0]
  1466. data[NessLab_Data_ADC1_L] = Currstatus.DownLink_Forward_Det_L;//(uint8_t)(ADC1value[0] & 0x00FF);
  1467. 8001048: 687b ldr r3, [r7, #4]
  1468. 800104a: 3308 adds r3, #8
  1469. 800104c: 4a46 ldr r2, [pc, #280] ; (8001168 <NessLab_Frame_Set+0x15c>)
  1470. 800104e: 7a12 ldrb r2, [r2, #8]
  1471. 8001050: 701a strb r2, [r3, #0]
  1472. data[NessLab_Data_ADC1_Table_Value] = NessLab_Adc_Convert_db();
  1473. 8001052: 687b ldr r3, [r7, #4]
  1474. 8001054: f103 0409 add.w r4, r3, #9
  1475. 8001058: f7ff fe72 bl 8000d40 <NessLab_Adc_Convert_db>
  1476. 800105c: 4603 mov r3, r0
  1477. 800105e: 7023 strb r3, [r4, #0]
  1478. if(DC_FAIL_ALARM_CNT > 3000)
  1479. 8001060: 4b42 ldr r3, [pc, #264] ; (800116c <NessLab_Frame_Set+0x160>)
  1480. 8001062: 681b ldr r3, [r3, #0]
  1481. 8001064: f640 32b8 movw r2, #3000 ; 0xbb8
  1482. 8001068: 4293 cmp r3, r2
  1483. 800106a: d904 bls.n 8001076 <NessLab_Frame_Set+0x6a>
  1484. data[NessLab_DC_FAIL_ALARM] = 1;
  1485. 800106c: 687b ldr r3, [r7, #4]
  1486. 800106e: 330a adds r3, #10
  1487. 8001070: 2201 movs r2, #1
  1488. 8001072: 701a strb r2, [r3, #0]
  1489. 8001074: e003 b.n 800107e <NessLab_Frame_Set+0x72>
  1490. else
  1491. data[NessLab_DC_FAIL_ALARM] = 0;
  1492. 8001076: 687b ldr r3, [r7, #4]
  1493. 8001078: 330a adds r3, #10
  1494. 800107a: 2200 movs r2, #0
  1495. 800107c: 701a strb r2, [r3, #0]
  1496. if(OVER_INPUT_ALARM_CNT > 3000)
  1497. 800107e: 4b3c ldr r3, [pc, #240] ; (8001170 <NessLab_Frame_Set+0x164>)
  1498. 8001080: 681b ldr r3, [r3, #0]
  1499. 8001082: f640 32b8 movw r2, #3000 ; 0xbb8
  1500. 8001086: 4293 cmp r3, r2
  1501. 8001088: d904 bls.n 8001094 <NessLab_Frame_Set+0x88>
  1502. data[NessLab_Over_Input_Alarm] = 1;
  1503. 800108a: 687b ldr r3, [r7, #4]
  1504. 800108c: 330e adds r3, #14
  1505. 800108e: 2201 movs r2, #1
  1506. 8001090: 701a strb r2, [r3, #0]
  1507. 8001092: e003 b.n 800109c <NessLab_Frame_Set+0x90>
  1508. else
  1509. data[NessLab_Over_Input_Alarm] = 0;
  1510. 8001094: 687b ldr r3, [r7, #4]
  1511. 8001096: 330e adds r3, #14
  1512. 8001098: 2200 movs r2, #0
  1513. 800109a: 701a strb r2, [r3, #0]
  1514. if(OVER_TEMP_ALARM_CNT > 3000)
  1515. 800109c: 4b35 ldr r3, [pc, #212] ; (8001174 <NessLab_Frame_Set+0x168>)
  1516. 800109e: 681b ldr r3, [r3, #0]
  1517. 80010a0: f640 32b8 movw r2, #3000 ; 0xbb8
  1518. 80010a4: 4293 cmp r3, r2
  1519. 80010a6: d904 bls.n 80010b2 <NessLab_Frame_Set+0xa6>
  1520. data[NessLab_Over_Temp_Alarm] = 1;
  1521. 80010a8: 687b ldr r3, [r7, #4]
  1522. 80010aa: 330f adds r3, #15
  1523. 80010ac: 2201 movs r2, #1
  1524. 80010ae: 701a strb r2, [r3, #0]
  1525. 80010b0: e003 b.n 80010ba <NessLab_Frame_Set+0xae>
  1526. else
  1527. data[NessLab_Over_Temp_Alarm] = 0;
  1528. 80010b2: 687b ldr r3, [r7, #4]
  1529. 80010b4: 330f adds r3, #15
  1530. 80010b6: 2200 movs r2, #0
  1531. 80010b8: 701a strb r2, [r3, #0]
  1532. if(ALC_ALARM_CNT > 3000)
  1533. 80010ba: 4b2f ldr r3, [pc, #188] ; (8001178 <NessLab_Frame_Set+0x16c>)
  1534. 80010bc: 681b ldr r3, [r3, #0]
  1535. 80010be: f640 32b8 movw r2, #3000 ; 0xbb8
  1536. 80010c2: 4293 cmp r3, r2
  1537. 80010c4: d904 bls.n 80010d0 <NessLab_Frame_Set+0xc4>
  1538. data[NessLab_ALC_ALARM] = 1;
  1539. 80010c6: 687b ldr r3, [r7, #4]
  1540. 80010c8: 3311 adds r3, #17
  1541. 80010ca: 2201 movs r2, #1
  1542. 80010cc: 701a strb r2, [r3, #0]
  1543. 80010ce: e003 b.n 80010d8 <NessLab_Frame_Set+0xcc>
  1544. else
  1545. data[NessLab_ALC_ALARM] = 0;
  1546. 80010d0: 687b ldr r3, [r7, #4]
  1547. 80010d2: 3311 adds r3, #17
  1548. 80010d4: 2200 movs r2, #0
  1549. 80010d6: 701a strb r2, [r3, #0]
  1550. if(OVER_POWER_ALARM_CNT > 3000)
  1551. 80010d8: 4b28 ldr r3, [pc, #160] ; (800117c <NessLab_Frame_Set+0x170>)
  1552. 80010da: 681b ldr r3, [r3, #0]
  1553. 80010dc: f640 32b8 movw r2, #3000 ; 0xbb8
  1554. 80010e0: 4293 cmp r3, r2
  1555. 80010e2: d904 bls.n 80010ee <NessLab_Frame_Set+0xe2>
  1556. data[NessLab_Over_Power_Alarm] = 1;
  1557. 80010e4: 687b ldr r3, [r7, #4]
  1558. 80010e6: 330c adds r3, #12
  1559. 80010e8: 2201 movs r2, #1
  1560. 80010ea: 701a strb r2, [r3, #0]
  1561. 80010ec: e003 b.n 80010f6 <NessLab_Frame_Set+0xea>
  1562. else
  1563. data[NessLab_Over_Power_Alarm] = 0;
  1564. 80010ee: 687b ldr r3, [r7, #4]
  1565. 80010f0: 330c adds r3, #12
  1566. 80010f2: 2200 movs r2, #0
  1567. 80010f4: 701a strb r2, [r3, #0]
  1568. if(VSWR_ALARM_CNT > 3000)
  1569. 80010f6: 4b22 ldr r3, [pc, #136] ; (8001180 <NessLab_Frame_Set+0x174>)
  1570. 80010f8: 681b ldr r3, [r3, #0]
  1571. 80010fa: f640 32b8 movw r2, #3000 ; 0xbb8
  1572. 80010fe: 4293 cmp r3, r2
  1573. 8001100: d904 bls.n 800110c <NessLab_Frame_Set+0x100>
  1574. data[NessLab_VSWR_ALARM] = 1;
  1575. 8001102: 687b ldr r3, [r7, #4]
  1576. 8001104: 330d adds r3, #13
  1577. 8001106: 2201 movs r2, #1
  1578. 8001108: 701a strb r2, [r3, #0]
  1579. 800110a: e003 b.n 8001114 <NessLab_Frame_Set+0x108>
  1580. else
  1581. data[NessLab_VSWR_ALARM] = 0;
  1582. 800110c: 687b ldr r3, [r7, #4]
  1583. 800110e: 330d adds r3, #13
  1584. 8001110: 2200 movs r2, #0
  1585. 8001112: 701a strb r2, [r3, #0]
  1586. data[NessLab_DownLink_Status] = 0;
  1587. 8001114: 687b ldr r3, [r7, #4]
  1588. 8001116: 330b adds r3, #11
  1589. 8001118: 2200 movs r2, #0
  1590. 800111a: 701a strb r2, [r3, #0]
  1591. data[NessLab_Temp_Monitor] = Currstatus.Temp_Monitor;
  1592. 800111c: 687b ldr r3, [r7, #4]
  1593. 800111e: 3310 adds r3, #16
  1594. 8001120: 4a11 ldr r2, [pc, #68] ; (8001168 <NessLab_Frame_Set+0x15c>)
  1595. 8001122: 7c52 ldrb r2, [r2, #17]
  1596. 8001124: 701a strb r2, [r3, #0]
  1597. data[NessLab_ChecksumVal] = NessLab_Checksum(&data[NessLab_MsgID0], NessLab_MAX_INDEX - 5);
  1598. 8001126: 687b ldr r3, [r7, #4]
  1599. 8001128: 1c9a adds r2, r3, #2
  1600. 800112a: 687b ldr r3, [r7, #4]
  1601. 800112c: f103 0412 add.w r4, r3, #18
  1602. 8001130: 2110 movs r1, #16
  1603. 8001132: 4610 mov r0, r2
  1604. 8001134: f000 fb1a bl 800176c <NessLab_Checksum>
  1605. 8001138: 4603 mov r3, r0
  1606. 800113a: 7023 strb r3, [r4, #0]
  1607. /* Exception Header Tail Checksum */
  1608. data[NessLab_Tail0] = 0x7E;
  1609. 800113c: 687b ldr r3, [r7, #4]
  1610. 800113e: 3313 adds r3, #19
  1611. 8001140: 227e movs r2, #126 ; 0x7e
  1612. 8001142: 701a strb r2, [r3, #0]
  1613. data[NessLab_Tail1] = 0x7E;
  1614. 8001144: 687b ldr r3, [r7, #4]
  1615. 8001146: 3314 adds r3, #20
  1616. 8001148: 227e movs r2, #126 ; 0x7e
  1617. 800114a: 701a strb r2, [r3, #0]
  1618. data[NessLab_Tail1 + 1] = 0x0A;
  1619. 800114c: 687b ldr r3, [r7, #4]
  1620. 800114e: 3315 adds r3, #21
  1621. 8001150: 220a movs r2, #10
  1622. 8001152: 701a strb r2, [r3, #0]
  1623. NessLab_Protocol_LastCheck(&data[NessLab_MsgID0],16);
  1624. 8001154: 687b ldr r3, [r7, #4]
  1625. 8001156: 3302 adds r3, #2
  1626. 8001158: 2110 movs r1, #16
  1627. 800115a: 4618 mov r0, r3
  1628. 800115c: f000 f812 bl 8001184 <NessLab_Protocol_LastCheck>
  1629. }
  1630. 8001160: bf00 nop
  1631. 8001162: 370c adds r7, #12
  1632. 8001164: 46bd mov sp, r7
  1633. 8001166: bd90 pop {r4, r7, pc}
  1634. 8001168: 2000057c .word 0x2000057c
  1635. 800116c: 200004f0 .word 0x200004f0
  1636. 8001170: 200004f4 .word 0x200004f4
  1637. 8001174: 200004f8 .word 0x200004f8
  1638. 8001178: 200004fc .word 0x200004fc
  1639. 800117c: 20000500 .word 0x20000500
  1640. 8001180: 20000504 .word 0x20000504
  1641. 08001184 <NessLab_Protocol_LastCheck>:
  1642. void NessLab_Protocol_LastCheck(uint8_t* data,uint8_t size){
  1643. 8001184: b480 push {r7}
  1644. 8001186: b085 sub sp, #20
  1645. 8001188: af00 add r7, sp, #0
  1646. 800118a: 6078 str r0, [r7, #4]
  1647. 800118c: 460b mov r3, r1
  1648. 800118e: 70fb strb r3, [r7, #3]
  1649. int cnt = NessLab_MsgID0;
  1650. 8001190: 2302 movs r3, #2
  1651. 8001192: 60fb str r3, [r7, #12]
  1652. for(int i = cnt; i < 17; i++){
  1653. 8001194: 68fb ldr r3, [r7, #12]
  1654. 8001196: 60bb str r3, [r7, #8]
  1655. 8001198: e03b b.n 8001212 <NessLab_Protocol_LastCheck+0x8e>
  1656. if(data[i] == 0x7e){
  1657. 800119a: 68bb ldr r3, [r7, #8]
  1658. 800119c: 687a ldr r2, [r7, #4]
  1659. 800119e: 4413 add r3, r2
  1660. 80011a0: 781b ldrb r3, [r3, #0]
  1661. 80011a2: 2b7e cmp r3, #126 ; 0x7e
  1662. 80011a4: d110 bne.n 80011c8 <NessLab_Protocol_LastCheck+0x44>
  1663. data[cnt++] = 0x7d;
  1664. 80011a6: 68fb ldr r3, [r7, #12]
  1665. 80011a8: 1c5a adds r2, r3, #1
  1666. 80011aa: 60fa str r2, [r7, #12]
  1667. 80011ac: 461a mov r2, r3
  1668. 80011ae: 687b ldr r3, [r7, #4]
  1669. 80011b0: 4413 add r3, r2
  1670. 80011b2: 227d movs r2, #125 ; 0x7d
  1671. 80011b4: 701a strb r2, [r3, #0]
  1672. data[cnt++] = 0x5e;
  1673. 80011b6: 68fb ldr r3, [r7, #12]
  1674. 80011b8: 1c5a adds r2, r3, #1
  1675. 80011ba: 60fa str r2, [r7, #12]
  1676. 80011bc: 461a mov r2, r3
  1677. 80011be: 687b ldr r3, [r7, #4]
  1678. 80011c0: 4413 add r3, r2
  1679. 80011c2: 225e movs r2, #94 ; 0x5e
  1680. 80011c4: 701a strb r2, [r3, #0]
  1681. 80011c6: e021 b.n 800120c <NessLab_Protocol_LastCheck+0x88>
  1682. }
  1683. else if(data[i] == 0x7d){
  1684. 80011c8: 68bb ldr r3, [r7, #8]
  1685. 80011ca: 687a ldr r2, [r7, #4]
  1686. 80011cc: 4413 add r3, r2
  1687. 80011ce: 781b ldrb r3, [r3, #0]
  1688. 80011d0: 2b7d cmp r3, #125 ; 0x7d
  1689. 80011d2: d110 bne.n 80011f6 <NessLab_Protocol_LastCheck+0x72>
  1690. data[cnt++] = 0x7d;
  1691. 80011d4: 68fb ldr r3, [r7, #12]
  1692. 80011d6: 1c5a adds r2, r3, #1
  1693. 80011d8: 60fa str r2, [r7, #12]
  1694. 80011da: 461a mov r2, r3
  1695. 80011dc: 687b ldr r3, [r7, #4]
  1696. 80011de: 4413 add r3, r2
  1697. 80011e0: 227d movs r2, #125 ; 0x7d
  1698. 80011e2: 701a strb r2, [r3, #0]
  1699. data[cnt++] = 0x5d;
  1700. 80011e4: 68fb ldr r3, [r7, #12]
  1701. 80011e6: 1c5a adds r2, r3, #1
  1702. 80011e8: 60fa str r2, [r7, #12]
  1703. 80011ea: 461a mov r2, r3
  1704. 80011ec: 687b ldr r3, [r7, #4]
  1705. 80011ee: 4413 add r3, r2
  1706. 80011f0: 225d movs r2, #93 ; 0x5d
  1707. 80011f2: 701a strb r2, [r3, #0]
  1708. 80011f4: e00a b.n 800120c <NessLab_Protocol_LastCheck+0x88>
  1709. }else{
  1710. data[i++] = data[i];
  1711. 80011f6: 68bb ldr r3, [r7, #8]
  1712. 80011f8: 687a ldr r2, [r7, #4]
  1713. 80011fa: 441a add r2, r3
  1714. 80011fc: 68bb ldr r3, [r7, #8]
  1715. 80011fe: 1c59 adds r1, r3, #1
  1716. 8001200: 60b9 str r1, [r7, #8]
  1717. 8001202: 4619 mov r1, r3
  1718. 8001204: 687b ldr r3, [r7, #4]
  1719. 8001206: 440b add r3, r1
  1720. 8001208: 7812 ldrb r2, [r2, #0]
  1721. 800120a: 701a strb r2, [r3, #0]
  1722. for(int i = cnt; i < 17; i++){
  1723. 800120c: 68bb ldr r3, [r7, #8]
  1724. 800120e: 3301 adds r3, #1
  1725. 8001210: 60bb str r3, [r7, #8]
  1726. 8001212: 68bb ldr r3, [r7, #8]
  1727. 8001214: 2b10 cmp r3, #16
  1728. 8001216: ddc0 ble.n 800119a <NessLab_Protocol_LastCheck+0x16>
  1729. }
  1730. }
  1731. }
  1732. 8001218: bf00 nop
  1733. 800121a: 3714 adds r7, #20
  1734. 800121c: 46bd mov sp, r7
  1735. 800121e: bc80 pop {r7}
  1736. 8001220: 4770 bx lr
  1737. ...
  1738. 08001224 <NessLab_Table_Frame_Set>:
  1739. void NessLab_Table_Frame_Set(uint8_t* data,uint8_t size,uint8_t mode){
  1740. 8001224: b590 push {r4, r7, lr}
  1741. 8001226: b087 sub sp, #28
  1742. 8001228: af00 add r7, sp, #0
  1743. 800122a: 6078 str r0, [r7, #4]
  1744. 800122c: 460b mov r3, r1
  1745. 800122e: 70fb strb r3, [r7, #3]
  1746. 8001230: 4613 mov r3, r2
  1747. 8001232: 70bb strb r3, [r7, #2]
  1748. uint32_t i = 0;
  1749. 8001234: 2300 movs r3, #0
  1750. 8001236: 617b str r3, [r7, #20]
  1751. uint32_t CurrApiAddress = 0;
  1752. 8001238: 2300 movs r3, #0
  1753. 800123a: 60fb str r3, [r7, #12]
  1754. CurrApiAddress = FLASH_USER_USE_START_ADDR;
  1755. 800123c: 4b33 ldr r3, [pc, #204] ; (800130c <NessLab_Table_Frame_Set+0xe8>)
  1756. 800123e: 60fb str r3, [r7, #12]
  1757. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  1758. 8001240: 68fb ldr r3, [r7, #12]
  1759. 8001242: 60bb str r3, [r7, #8]
  1760. uint8_t* pdata;
  1761. data[i++] = 0x7E;
  1762. 8001244: 697b ldr r3, [r7, #20]
  1763. 8001246: 1c5a adds r2, r3, #1
  1764. 8001248: 617a str r2, [r7, #20]
  1765. 800124a: 687a ldr r2, [r7, #4]
  1766. 800124c: 4413 add r3, r2
  1767. 800124e: 227e movs r2, #126 ; 0x7e
  1768. 8001250: 701a strb r2, [r3, #0]
  1769. data[i++] = 0x7E;
  1770. 8001252: 697b ldr r3, [r7, #20]
  1771. 8001254: 1c5a adds r2, r3, #1
  1772. 8001256: 617a str r2, [r7, #20]
  1773. 8001258: 687a ldr r2, [r7, #4]
  1774. 800125a: 4413 add r3, r2
  1775. 800125c: 227e movs r2, #126 ; 0x7e
  1776. 800125e: 701a strb r2, [r3, #0]
  1777. data[i++] = mode;// ID
  1778. 8001260: 697b ldr r3, [r7, #20]
  1779. 8001262: 1c5a adds r2, r3, #1
  1780. 8001264: 617a str r2, [r7, #20]
  1781. 8001266: 687a ldr r2, [r7, #4]
  1782. 8001268: 4413 add r3, r2
  1783. 800126a: 78ba ldrb r2, [r7, #2]
  1784. 800126c: 701a strb r2, [r3, #0]
  1785. data[i++] = 0; // SEQ NUMBER
  1786. 800126e: 697b ldr r3, [r7, #20]
  1787. 8001270: 1c5a adds r2, r3, #1
  1788. 8001272: 617a str r2, [r7, #20]
  1789. 8001274: 687a ldr r2, [r7, #4]
  1790. 8001276: 4413 add r3, r2
  1791. 8001278: 2200 movs r2, #0
  1792. 800127a: 701a strb r2, [r3, #0]
  1793. data[i++] = 0; // SEQ NUMBER
  1794. 800127c: 697b ldr r3, [r7, #20]
  1795. 800127e: 1c5a adds r2, r3, #1
  1796. 8001280: 617a str r2, [r7, #20]
  1797. 8001282: 687a ldr r2, [r7, #4]
  1798. 8001284: 4413 add r3, r2
  1799. 8001286: 2200 movs r2, #0
  1800. 8001288: 701a strb r2, [r3, #0]
  1801. data[i++] = 0; // NessLab_Reserve0
  1802. 800128a: 697b ldr r3, [r7, #20]
  1803. 800128c: 1c5a adds r2, r3, #1
  1804. 800128e: 617a str r2, [r7, #20]
  1805. 8001290: 687a ldr r2, [r7, #4]
  1806. 8001292: 4413 add r3, r2
  1807. 8001294: 2200 movs r2, #0
  1808. 8001296: 701a strb r2, [r3, #0]
  1809. data[i++] = size; // Nesslab Size
  1810. 8001298: 697b ldr r3, [r7, #20]
  1811. 800129a: 1c5a adds r2, r3, #1
  1812. 800129c: 617a str r2, [r7, #20]
  1813. 800129e: 687a ldr r2, [r7, #4]
  1814. 80012a0: 4413 add r3, r2
  1815. 80012a2: 78fa ldrb r2, [r7, #3]
  1816. 80012a4: 701a strb r2, [r3, #0]
  1817. // NessLab_TalbleFlash_Read(&data[NessLab_DataLength + 1],100);
  1818. for(int a = 0; a < size; a++){
  1819. 80012a6: 2300 movs r3, #0
  1820. 80012a8: 613b str r3, [r7, #16]
  1821. 80012aa: e00c b.n 80012c6 <NessLab_Table_Frame_Set+0xa2>
  1822. data[i++] = Currdata[a];
  1823. 80012ac: 693b ldr r3, [r7, #16]
  1824. 80012ae: 68ba ldr r2, [r7, #8]
  1825. 80012b0: 441a add r2, r3
  1826. 80012b2: 697b ldr r3, [r7, #20]
  1827. 80012b4: 1c59 adds r1, r3, #1
  1828. 80012b6: 6179 str r1, [r7, #20]
  1829. 80012b8: 6879 ldr r1, [r7, #4]
  1830. 80012ba: 440b add r3, r1
  1831. 80012bc: 7812 ldrb r2, [r2, #0]
  1832. 80012be: 701a strb r2, [r3, #0]
  1833. for(int a = 0; a < size; a++){
  1834. 80012c0: 693b ldr r3, [r7, #16]
  1835. 80012c2: 3301 adds r3, #1
  1836. 80012c4: 613b str r3, [r7, #16]
  1837. 80012c6: 78fb ldrb r3, [r7, #3]
  1838. 80012c8: 693a ldr r2, [r7, #16]
  1839. 80012ca: 429a cmp r2, r3
  1840. 80012cc: dbee blt.n 80012ac <NessLab_Table_Frame_Set+0x88>
  1841. // printf("%02x ",Currdata[i]);
  1842. }
  1843. data[i++] = NessLab_Checksum(&data[NessLab_MsgID0], 100 + 5);
  1844. 80012ce: 687b ldr r3, [r7, #4]
  1845. 80012d0: 1c98 adds r0, r3, #2
  1846. 80012d2: 697b ldr r3, [r7, #20]
  1847. 80012d4: 1c5a adds r2, r3, #1
  1848. 80012d6: 617a str r2, [r7, #20]
  1849. 80012d8: 687a ldr r2, [r7, #4]
  1850. 80012da: 18d4 adds r4, r2, r3
  1851. 80012dc: 2169 movs r1, #105 ; 0x69
  1852. 80012de: f000 fa45 bl 800176c <NessLab_Checksum>
  1853. 80012e2: 4603 mov r3, r0
  1854. 80012e4: 7023 strb r3, [r4, #0]
  1855. /* Exception Header Tail Checksum */
  1856. data[i++] = 0x7E;
  1857. 80012e6: 697b ldr r3, [r7, #20]
  1858. 80012e8: 1c5a adds r2, r3, #1
  1859. 80012ea: 617a str r2, [r7, #20]
  1860. 80012ec: 687a ldr r2, [r7, #4]
  1861. 80012ee: 4413 add r3, r2
  1862. 80012f0: 227e movs r2, #126 ; 0x7e
  1863. 80012f2: 701a strb r2, [r3, #0]
  1864. data[i++] = 0x7E;
  1865. 80012f4: 697b ldr r3, [r7, #20]
  1866. 80012f6: 1c5a adds r2, r3, #1
  1867. 80012f8: 617a str r2, [r7, #20]
  1868. 80012fa: 687a ldr r2, [r7, #4]
  1869. 80012fc: 4413 add r3, r2
  1870. 80012fe: 227e movs r2, #126 ; 0x7e
  1871. 8001300: 701a strb r2, [r3, #0]
  1872. }
  1873. 8001302: bf00 nop
  1874. 8001304: 371c adds r7, #28
  1875. 8001306: 46bd mov sp, r7
  1876. 8001308: bd90 pop {r4, r7, pc}
  1877. 800130a: bf00 nop
  1878. 800130c: 0800ff38 .word 0x0800ff38
  1879. 08001310 <NessLab_PAU_Enable>:
  1880. void NessLab_Status_Check(){
  1881. //HAL_GPIO_ReadPin(, GPIO_Pin)
  1882. }
  1883. void NessLab_PAU_Enable(){
  1884. 8001310: b598 push {r3, r4, r7, lr}
  1885. 8001312: af00 add r7, sp, #0
  1886. #if 1
  1887. if( HAL_GPIO_ReadPin(PAU_EN_GPIO_Port, PAU_EN_Pin) != HAL_GPIO_ReadPin(AMP_EN_GPIO_Port, AMP_EN_Pin) ){
  1888. 8001314: f44f 4100 mov.w r1, #32768 ; 0x8000
  1889. 8001318: 4817 ldr r0, [pc, #92] ; (8001378 <NessLab_PAU_Enable+0x68>)
  1890. 800131a: f002 f8d7 bl 80034cc <HAL_GPIO_ReadPin>
  1891. 800131e: 4603 mov r3, r0
  1892. 8001320: 461c mov r4, r3
  1893. 8001322: f44f 7180 mov.w r1, #256 ; 0x100
  1894. 8001326: 4815 ldr r0, [pc, #84] ; (800137c <NessLab_PAU_Enable+0x6c>)
  1895. 8001328: f002 f8d0 bl 80034cc <HAL_GPIO_ReadPin>
  1896. 800132c: 4603 mov r3, r0
  1897. 800132e: 429c cmp r4, r3
  1898. 8001330: d01f beq.n 8001372 <NessLab_PAU_Enable+0x62>
  1899. HAL_GPIO_WritePin(AMP_EN_GPIO_Port,AMP_EN_Pin, HAL_GPIO_ReadPin(PAU_EN_GPIO_Port, PAU_EN_Pin));
  1900. 8001332: f44f 4100 mov.w r1, #32768 ; 0x8000
  1901. 8001336: 4810 ldr r0, [pc, #64] ; (8001378 <NessLab_PAU_Enable+0x68>)
  1902. 8001338: f002 f8c8 bl 80034cc <HAL_GPIO_ReadPin>
  1903. 800133c: 4603 mov r3, r0
  1904. 800133e: 461a mov r2, r3
  1905. 8001340: f44f 7180 mov.w r1, #256 ; 0x100
  1906. 8001344: 480d ldr r0, [pc, #52] ; (800137c <NessLab_PAU_Enable+0x6c>)
  1907. 8001346: f002 f8d8 bl 80034fa <HAL_GPIO_WritePin>
  1908. printf("HAL_GPIO_ReadPin(PAU_EN_GPIO_Port, PAU_EN_Pin) : %d \r\n",HAL_GPIO_ReadPin(PAU_EN_GPIO_Port, PAU_EN_Pin));
  1909. 800134a: f44f 4100 mov.w r1, #32768 ; 0x8000
  1910. 800134e: 480a ldr r0, [pc, #40] ; (8001378 <NessLab_PAU_Enable+0x68>)
  1911. 8001350: f002 f8bc bl 80034cc <HAL_GPIO_ReadPin>
  1912. 8001354: 4603 mov r3, r0
  1913. 8001356: 4619 mov r1, r3
  1914. 8001358: 4809 ldr r0, [pc, #36] ; (8001380 <NessLab_PAU_Enable+0x70>)
  1915. 800135a: f005 f98d bl 8006678 <iprintf>
  1916. printf("AMP_EN_GPIO_Port : %d \r\n",HAL_GPIO_ReadPin(AMP_EN_GPIO_Port, AMP_EN_Pin));
  1917. 800135e: f44f 7180 mov.w r1, #256 ; 0x100
  1918. 8001362: 4806 ldr r0, [pc, #24] ; (800137c <NessLab_PAU_Enable+0x6c>)
  1919. 8001364: f002 f8b2 bl 80034cc <HAL_GPIO_ReadPin>
  1920. 8001368: 4603 mov r3, r0
  1921. 800136a: 4619 mov r1, r3
  1922. 800136c: 4805 ldr r0, [pc, #20] ; (8001384 <NessLab_PAU_Enable+0x74>)
  1923. 800136e: f005 f983 bl 8006678 <iprintf>
  1924. #else
  1925. HAL_GPIO_WritePin(AMP_EN_GPIO_Port,AMP_EN_Pin, 0);
  1926. printf("AMP_EN_GPIO_Port : %d \r\n",HAL_GPIO_ReadPin(AMP_EN_GPIO_Port, AMP_EN_Pin));
  1927. #endif
  1928. }
  1929. 8001372: bf00 nop
  1930. 8001374: bd98 pop {r3, r4, r7, pc}
  1931. 8001376: bf00 nop
  1932. 8001378: 40010c00 .word 0x40010c00
  1933. 800137c: 40010800 .word 0x40010800
  1934. 8001380: 080086b8 .word 0x080086b8
  1935. 8001384: 080086f0 .word 0x080086f0
  1936. 08001388 <NessLab_GPIO_Operate>:
  1937. void NessLab_GPIO_Operate(){
  1938. 8001388: b580 push {r7, lr}
  1939. 800138a: af00 add r7, sp, #0
  1940. NessLab_PAU_Enable();
  1941. 800138c: f7ff ffc0 bl 8001310 <NessLab_PAU_Enable>
  1942. }
  1943. 8001390: bf00 nop
  1944. 8001392: bd80 pop {r7, pc}
  1945. 8001394: 0000 movs r0, r0
  1946. ...
  1947. 08001398 <ADC_Value_Get>:
  1948. * ADC 0 :DL TX
  1949. * ADC 1 :DL RX
  1950. * ADC 2 :TEMP
  1951. * */
  1952. void ADC_Value_Get(){
  1953. 8001398: b590 push {r4, r7, lr}
  1954. 800139a: b083 sub sp, #12
  1955. 800139c: af00 add r7, sp, #0
  1956. uint16_t CalcRet = 0 ;
  1957. 800139e: 2300 movs r3, #0
  1958. 80013a0: 80fb strh r3, [r7, #6]
  1959. uint16_t Tx_Det_Volt = ((ADC1value[0] * (3.3 / 4095))* 1000);
  1960. 80013a2: 4b31 ldr r3, [pc, #196] ; (8001468 <ADC_Value_Get+0xd0>)
  1961. 80013a4: 881b ldrh r3, [r3, #0]
  1962. 80013a6: b29b uxth r3, r3
  1963. 80013a8: 4618 mov r0, r3
  1964. 80013aa: f7ff f88b bl 80004c4 <__aeabi_i2d>
  1965. 80013ae: a32c add r3, pc, #176 ; (adr r3, 8001460 <ADC_Value_Get+0xc8>)
  1966. 80013b0: e9d3 2300 ldrd r2, r3, [r3]
  1967. 80013b4: f7ff f8f0 bl 8000598 <__aeabi_dmul>
  1968. 80013b8: 4603 mov r3, r0
  1969. 80013ba: 460c mov r4, r1
  1970. 80013bc: 4618 mov r0, r3
  1971. 80013be: 4621 mov r1, r4
  1972. 80013c0: f04f 0200 mov.w r2, #0
  1973. 80013c4: 4b29 ldr r3, [pc, #164] ; (800146c <ADC_Value_Get+0xd4>)
  1974. 80013c6: f7ff f8e7 bl 8000598 <__aeabi_dmul>
  1975. 80013ca: 4603 mov r3, r0
  1976. 80013cc: 460c mov r4, r1
  1977. 80013ce: 4618 mov r0, r3
  1978. 80013d0: 4621 mov r1, r4
  1979. 80013d2: f7ff fbb9 bl 8000b48 <__aeabi_d2uiz>
  1980. 80013d6: 4603 mov r3, r0
  1981. 80013d8: 80bb strh r3, [r7, #4]
  1982. uint16_t Rx_Det_Volt = ((ADC1value[1] * (3.3 / 4095))* 1000);
  1983. 80013da: 4b23 ldr r3, [pc, #140] ; (8001468 <ADC_Value_Get+0xd0>)
  1984. 80013dc: 885b ldrh r3, [r3, #2]
  1985. 80013de: b29b uxth r3, r3
  1986. 80013e0: 4618 mov r0, r3
  1987. 80013e2: f7ff f86f bl 80004c4 <__aeabi_i2d>
  1988. 80013e6: a31e add r3, pc, #120 ; (adr r3, 8001460 <ADC_Value_Get+0xc8>)
  1989. 80013e8: e9d3 2300 ldrd r2, r3, [r3]
  1990. 80013ec: f7ff f8d4 bl 8000598 <__aeabi_dmul>
  1991. 80013f0: 4603 mov r3, r0
  1992. 80013f2: 460c mov r4, r1
  1993. 80013f4: 4618 mov r0, r3
  1994. 80013f6: 4621 mov r1, r4
  1995. 80013f8: f04f 0200 mov.w r2, #0
  1996. 80013fc: 4b1b ldr r3, [pc, #108] ; (800146c <ADC_Value_Get+0xd4>)
  1997. 80013fe: f7ff f8cb bl 8000598 <__aeabi_dmul>
  1998. 8001402: 4603 mov r3, r0
  1999. 8001404: 460c mov r4, r1
  2000. 8001406: 4618 mov r0, r3
  2001. 8001408: 4621 mov r1, r4
  2002. 800140a: f7ff fb9d bl 8000b48 <__aeabi_d2uiz>
  2003. 800140e: 4603 mov r3, r0
  2004. 8001410: 807b strh r3, [r7, #2]
  2005. int8_t Real_Temperature = ADC_Convert_Temperature((ADC1value[2] * (3.3 / 4095)));
  2006. 8001412: 4b15 ldr r3, [pc, #84] ; (8001468 <ADC_Value_Get+0xd0>)
  2007. 8001414: 889b ldrh r3, [r3, #4]
  2008. 8001416: b29b uxth r3, r3
  2009. 8001418: 4618 mov r0, r3
  2010. 800141a: f7ff f853 bl 80004c4 <__aeabi_i2d>
  2011. 800141e: a310 add r3, pc, #64 ; (adr r3, 8001460 <ADC_Value_Get+0xc8>)
  2012. 8001420: e9d3 2300 ldrd r2, r3, [r3]
  2013. 8001424: f7ff f8b8 bl 8000598 <__aeabi_dmul>
  2014. 8001428: 4603 mov r3, r0
  2015. 800142a: 460c mov r4, r1
  2016. 800142c: 4618 mov r0, r3
  2017. 800142e: 4621 mov r1, r4
  2018. 8001430: f000 f834 bl 800149c <ADC_Convert_Temperature>
  2019. 8001434: 4603 mov r3, r0
  2020. 8001436: 707b strb r3, [r7, #1]
  2021. // Currstatus.DownLink_Forward_Det_H = ((Tx_Det_Volt & 0xFF00) >> 8);
  2022. // Currstatus.DownLink_Forward_Det_L = (Tx_Det_Volt & 0x00FF);
  2023. // printf("Tx_Det_Volt : %d \r\n",Tx_Det_Volt);
  2024. /*DL RX Calc*/
  2025. Currstatus.DownLink_Reverse_Det_H = ((Rx_Det_Volt & 0xFF00) >> 8);
  2026. 8001438: 887b ldrh r3, [r7, #2]
  2027. 800143a: 0a1b lsrs r3, r3, #8
  2028. 800143c: b29b uxth r3, r3
  2029. 800143e: b2da uxtb r2, r3
  2030. 8001440: 4b0b ldr r3, [pc, #44] ; (8001470 <ADC_Value_Get+0xd8>)
  2031. 8001442: 725a strb r2, [r3, #9]
  2032. Currstatus.DownLink_Reverse_Det_L = (Rx_Det_Volt & 0x00FF);
  2033. 8001444: 887b ldrh r3, [r7, #2]
  2034. 8001446: b2da uxtb r2, r3
  2035. 8001448: 4b09 ldr r3, [pc, #36] ; (8001470 <ADC_Value_Get+0xd8>)
  2036. 800144a: 729a strb r2, [r3, #10]
  2037. /*Temp Calc*/
  2038. Currstatus.Temp_Monitor = Real_Temperature;
  2039. 800144c: 787a ldrb r2, [r7, #1]
  2040. 800144e: 4b08 ldr r3, [pc, #32] ; (8001470 <ADC_Value_Get+0xd8>)
  2041. 8001450: 745a strb r2, [r3, #17]
  2042. }
  2043. 8001452: bf00 nop
  2044. 8001454: 370c adds r7, #12
  2045. 8001456: 46bd mov sp, r7
  2046. 8001458: bd90 pop {r4, r7, pc}
  2047. 800145a: bf00 nop
  2048. 800145c: f3af 8000 nop.w
  2049. 8001460: e734d9b4 .word 0xe734d9b4
  2050. 8001464: 3f4a680c .word 0x3f4a680c
  2051. 8001468: 20000594 .word 0x20000594
  2052. 800146c: 408f4000 .word 0x408f4000
  2053. 8001470: 2000057c .word 0x2000057c
  2054. 08001474 <ADC_Initialize>:
  2055. void ADC_Initialize(){
  2056. 8001474: b580 push {r7, lr}
  2057. 8001476: af00 add r7, sp, #0
  2058. while(!(HAL_ADCEx_Calibration_Start(&hadc1)==HAL_OK));
  2059. 8001478: bf00 nop
  2060. 800147a: 4806 ldr r0, [pc, #24] ; (8001494 <ADC_Initialize+0x20>)
  2061. 800147c: f001 f8e2 bl 8002644 <HAL_ADCEx_Calibration_Start>
  2062. 8001480: 4603 mov r3, r0
  2063. 8001482: 2b00 cmp r3, #0
  2064. 8001484: d1f9 bne.n 800147a <ADC_Initialize+0x6>
  2065. HAL_ADC_Start_DMA(&hadc1, (uint16_t*)ADC1value,(uint32_t) 3);
  2066. 8001486: 2203 movs r2, #3
  2067. 8001488: 4903 ldr r1, [pc, #12] ; (8001498 <ADC_Initialize+0x24>)
  2068. 800148a: 4802 ldr r0, [pc, #8] ; (8001494 <ADC_Initialize+0x20>)
  2069. 800148c: f000 fd78 bl 8001f80 <HAL_ADC_Start_DMA>
  2070. }
  2071. 8001490: bf00 nop
  2072. 8001492: bd80 pop {r7, pc}
  2073. 8001494: 200008a8 .word 0x200008a8
  2074. 8001498: 20000594 .word 0x20000594
  2075. 0800149c <ADC_Convert_Temperature>:
  2076. uint8_t ADC_Convert_Temperature(double val){
  2077. 800149c: b590 push {r4, r7, lr}
  2078. 800149e: b087 sub sp, #28
  2079. 80014a0: af00 add r7, sp, #0
  2080. 80014a2: e9c7 0100 strd r0, r1, [r7]
  2081. int16_t ref_0temp = 500;
  2082. 80014a6: f44f 73fa mov.w r3, #500 ; 0x1f4
  2083. 80014aa: 817b strh r3, [r7, #10]
  2084. int16_t ret = val * 1000;
  2085. 80014ac: f04f 0200 mov.w r2, #0
  2086. 80014b0: 4b21 ldr r3, [pc, #132] ; (8001538 <ADC_Convert_Temperature+0x9c>)
  2087. 80014b2: e9d7 0100 ldrd r0, r1, [r7]
  2088. 80014b6: f7ff f86f bl 8000598 <__aeabi_dmul>
  2089. 80014ba: 4603 mov r3, r0
  2090. 80014bc: 460c mov r4, r1
  2091. 80014be: 4618 mov r0, r3
  2092. 80014c0: 4621 mov r1, r4
  2093. 80014c2: f7ff fb19 bl 8000af8 <__aeabi_d2iz>
  2094. 80014c6: 4603 mov r3, r0
  2095. 80014c8: 813b strh r3, [r7, #8]
  2096. int8_t cnt = 0;
  2097. 80014ca: 2300 movs r3, #0
  2098. 80014cc: 75fb strb r3, [r7, #23]
  2099. // printf("ret : %d \r\n", ret);
  2100. if( ret - ref_0temp > 0){
  2101. 80014ce: f9b7 2008 ldrsh.w r2, [r7, #8]
  2102. 80014d2: f9b7 300a ldrsh.w r3, [r7, #10]
  2103. 80014d6: 1ad3 subs r3, r2, r3
  2104. 80014d8: 2b00 cmp r3, #0
  2105. 80014da: dd14 ble.n 8001506 <ADC_Convert_Temperature+0x6a>
  2106. for(int i = 0; i < ret - ref_0temp; i += 10){
  2107. 80014dc: 2300 movs r3, #0
  2108. 80014de: 613b str r3, [r7, #16]
  2109. 80014e0: e008 b.n 80014f4 <ADC_Convert_Temperature+0x58>
  2110. cnt++;
  2111. 80014e2: f997 3017 ldrsb.w r3, [r7, #23]
  2112. 80014e6: b2db uxtb r3, r3
  2113. 80014e8: 3301 adds r3, #1
  2114. 80014ea: b2db uxtb r3, r3
  2115. 80014ec: 75fb strb r3, [r7, #23]
  2116. for(int i = 0; i < ret - ref_0temp; i += 10){
  2117. 80014ee: 693b ldr r3, [r7, #16]
  2118. 80014f0: 330a adds r3, #10
  2119. 80014f2: 613b str r3, [r7, #16]
  2120. 80014f4: f9b7 2008 ldrsh.w r2, [r7, #8]
  2121. 80014f8: f9b7 300a ldrsh.w r3, [r7, #10]
  2122. 80014fc: 1ad3 subs r3, r2, r3
  2123. 80014fe: 693a ldr r2, [r7, #16]
  2124. 8001500: 429a cmp r2, r3
  2125. 8001502: dbee blt.n 80014e2 <ADC_Convert_Temperature+0x46>
  2126. 8001504: e013 b.n 800152e <ADC_Convert_Temperature+0x92>
  2127. }
  2128. }else{
  2129. for(int i = 0; i > ret - ref_0temp; i -= 10){
  2130. 8001506: 2300 movs r3, #0
  2131. 8001508: 60fb str r3, [r7, #12]
  2132. 800150a: e008 b.n 800151e <ADC_Convert_Temperature+0x82>
  2133. cnt--;
  2134. 800150c: f997 3017 ldrsb.w r3, [r7, #23]
  2135. 8001510: b2db uxtb r3, r3
  2136. 8001512: 3b01 subs r3, #1
  2137. 8001514: b2db uxtb r3, r3
  2138. 8001516: 75fb strb r3, [r7, #23]
  2139. for(int i = 0; i > ret - ref_0temp; i -= 10){
  2140. 8001518: 68fb ldr r3, [r7, #12]
  2141. 800151a: 3b0a subs r3, #10
  2142. 800151c: 60fb str r3, [r7, #12]
  2143. 800151e: f9b7 2008 ldrsh.w r2, [r7, #8]
  2144. 8001522: f9b7 300a ldrsh.w r3, [r7, #10]
  2145. 8001526: 1ad3 subs r3, r2, r3
  2146. 8001528: 68fa ldr r2, [r7, #12]
  2147. 800152a: 429a cmp r2, r3
  2148. 800152c: dcee bgt.n 800150c <ADC_Convert_Temperature+0x70>
  2149. }
  2150. }
  2151. // printf("Temp : %d\r\n",cnt);
  2152. return cnt;
  2153. 800152e: 7dfb ldrb r3, [r7, #23]
  2154. }
  2155. 8001530: 4618 mov r0, r3
  2156. 8001532: 371c adds r7, #28
  2157. 8001534: 46bd mov sp, r7
  2158. 8001536: bd90 pop {r4, r7, pc}
  2159. 8001538: 408f4000 .word 0x408f4000
  2160. 0800153c <SumFunc>:
  2161. uint32_t SumFunc(uint32_t* data,uint16_t size){
  2162. 800153c: b480 push {r7}
  2163. 800153e: b085 sub sp, #20
  2164. 8001540: af00 add r7, sp, #0
  2165. 8001542: 6078 str r0, [r7, #4]
  2166. 8001544: 460b mov r3, r1
  2167. 8001546: 807b strh r3, [r7, #2]
  2168. uint32_t ret = 0;
  2169. 8001548: 2300 movs r3, #0
  2170. 800154a: 60fb str r3, [r7, #12]
  2171. for (uint16_t i = 0; i < size; i++) // 배열의 요소 개수만큼 반복
  2172. 800154c: 2300 movs r3, #0
  2173. 800154e: 817b strh r3, [r7, #10]
  2174. 8001550: e00a b.n 8001568 <SumFunc+0x2c>
  2175. {
  2176. ret += data[i]; // sum과 배열의 요소를 더해서 다시 sum에 저장
  2177. 8001552: 897b ldrh r3, [r7, #10]
  2178. 8001554: 009b lsls r3, r3, #2
  2179. 8001556: 687a ldr r2, [r7, #4]
  2180. 8001558: 4413 add r3, r2
  2181. 800155a: 681b ldr r3, [r3, #0]
  2182. 800155c: 68fa ldr r2, [r7, #12]
  2183. 800155e: 4413 add r3, r2
  2184. 8001560: 60fb str r3, [r7, #12]
  2185. for (uint16_t i = 0; i < size; i++) // 배열의 요소 개수만큼 반복
  2186. 8001562: 897b ldrh r3, [r7, #10]
  2187. 8001564: 3301 adds r3, #1
  2188. 8001566: 817b strh r3, [r7, #10]
  2189. 8001568: 897a ldrh r2, [r7, #10]
  2190. 800156a: 887b ldrh r3, [r7, #2]
  2191. 800156c: 429a cmp r2, r3
  2192. 800156e: d3f0 bcc.n 8001552 <SumFunc+0x16>
  2193. // printf("ret : %d data[%d] \r\n",ret,i,data[i]);
  2194. }
  2195. return ret;
  2196. 8001570: 68fb ldr r3, [r7, #12]
  2197. }
  2198. 8001572: 4618 mov r0, r3
  2199. 8001574: 3714 adds r7, #20
  2200. 8001576: 46bd mov sp, r7
  2201. 8001578: bc80 pop {r7}
  2202. 800157a: 4770 bx lr
  2203. 0800157c <DascendigFunc>:
  2204. void DascendigFunc(int32_t* src,uint32_t size ){
  2205. 800157c: b480 push {r7}
  2206. 800157e: b087 sub sp, #28
  2207. 8001580: af00 add r7, sp, #0
  2208. 8001582: 6078 str r0, [r7, #4]
  2209. 8001584: 6039 str r1, [r7, #0]
  2210. int32_t temp;
  2211. for(int i = 0 ; i < size - 1 ; i ++) {
  2212. 8001586: 2300 movs r3, #0
  2213. 8001588: 617b str r3, [r7, #20]
  2214. 800158a: e02f b.n 80015ec <DascendigFunc+0x70>
  2215. for(int j = i+1 ; j < size ; j ++) {
  2216. 800158c: 697b ldr r3, [r7, #20]
  2217. 800158e: 3301 adds r3, #1
  2218. 8001590: 613b str r3, [r7, #16]
  2219. 8001592: e024 b.n 80015de <DascendigFunc+0x62>
  2220. if(src[i] < src[j]) {
  2221. 8001594: 697b ldr r3, [r7, #20]
  2222. 8001596: 009b lsls r3, r3, #2
  2223. 8001598: 687a ldr r2, [r7, #4]
  2224. 800159a: 4413 add r3, r2
  2225. 800159c: 681a ldr r2, [r3, #0]
  2226. 800159e: 693b ldr r3, [r7, #16]
  2227. 80015a0: 009b lsls r3, r3, #2
  2228. 80015a2: 6879 ldr r1, [r7, #4]
  2229. 80015a4: 440b add r3, r1
  2230. 80015a6: 681b ldr r3, [r3, #0]
  2231. 80015a8: 429a cmp r2, r3
  2232. 80015aa: da15 bge.n 80015d8 <DascendigFunc+0x5c>
  2233. temp = src[j];
  2234. 80015ac: 693b ldr r3, [r7, #16]
  2235. 80015ae: 009b lsls r3, r3, #2
  2236. 80015b0: 687a ldr r2, [r7, #4]
  2237. 80015b2: 4413 add r3, r2
  2238. 80015b4: 681b ldr r3, [r3, #0]
  2239. 80015b6: 60fb str r3, [r7, #12]
  2240. src[j] = src[i];
  2241. 80015b8: 697b ldr r3, [r7, #20]
  2242. 80015ba: 009b lsls r3, r3, #2
  2243. 80015bc: 687a ldr r2, [r7, #4]
  2244. 80015be: 441a add r2, r3
  2245. 80015c0: 693b ldr r3, [r7, #16]
  2246. 80015c2: 009b lsls r3, r3, #2
  2247. 80015c4: 6879 ldr r1, [r7, #4]
  2248. 80015c6: 440b add r3, r1
  2249. 80015c8: 6812 ldr r2, [r2, #0]
  2250. 80015ca: 601a str r2, [r3, #0]
  2251. src[i] = temp;
  2252. 80015cc: 697b ldr r3, [r7, #20]
  2253. 80015ce: 009b lsls r3, r3, #2
  2254. 80015d0: 687a ldr r2, [r7, #4]
  2255. 80015d2: 4413 add r3, r2
  2256. 80015d4: 68fa ldr r2, [r7, #12]
  2257. 80015d6: 601a str r2, [r3, #0]
  2258. for(int j = i+1 ; j < size ; j ++) {
  2259. 80015d8: 693b ldr r3, [r7, #16]
  2260. 80015da: 3301 adds r3, #1
  2261. 80015dc: 613b str r3, [r7, #16]
  2262. 80015de: 693b ldr r3, [r7, #16]
  2263. 80015e0: 683a ldr r2, [r7, #0]
  2264. 80015e2: 429a cmp r2, r3
  2265. 80015e4: d8d6 bhi.n 8001594 <DascendigFunc+0x18>
  2266. for(int i = 0 ; i < size - 1 ; i ++) {
  2267. 80015e6: 697b ldr r3, [r7, #20]
  2268. 80015e8: 3301 adds r3, #1
  2269. 80015ea: 617b str r3, [r7, #20]
  2270. 80015ec: 683b ldr r3, [r7, #0]
  2271. 80015ee: 1e5a subs r2, r3, #1
  2272. 80015f0: 697b ldr r3, [r7, #20]
  2273. 80015f2: 429a cmp r2, r3
  2274. 80015f4: d8ca bhi.n 800158c <DascendigFunc+0x10>
  2275. // printf("temp");
  2276. }
  2277. }
  2278. }
  2279. }
  2280. 80015f6: bf00 nop
  2281. 80015f8: 371c adds r7, #28
  2282. 80015fa: 46bd mov sp, r7
  2283. 80015fc: bc80 pop {r7}
  2284. 80015fe: 4770 bx lr
  2285. 08001600 <ADC_Check>:
  2286. #define Percent100 5
  2287. void ADC_Check(){
  2288. 8001600: b580 push {r7, lr}
  2289. 8001602: b082 sub sp, #8
  2290. 8001604: af00 add r7, sp, #0
  2291. float tempval = 0;
  2292. 8001606: f04f 0300 mov.w r3, #0
  2293. 800160a: 607b str r3, [r7, #4]
  2294. Currstatus.DownLink_Forward_Det_H
  2295. = (((uint16_t)tempval & 0xFF00) >> 8);
  2296. Currstatus.DownLink_Forward_Det_L
  2297. = (((uint16_t)tempval & 0x00FF) );
  2298. #endif // PYJ.2020.09.09_END --
  2299. ADC_Value_Get();
  2300. 800160c: f7ff fec4 bl 8001398 <ADC_Value_Get>
  2301. // Currstatus.Temp_Monitor = ADC_Convert_Temperature((ADC1value[2]/1000));
  2302. // printf("Currstatus.DownLink_Forward_Det : %d \r\n",Currstatus.DownLink_Forward_Det_H << 8 | Currstatus.DownLink_Forward_Det_L);
  2303. }
  2304. 8001610: bf00 nop
  2305. 8001612: 3708 adds r7, #8
  2306. 8001614: 46bd mov sp, r7
  2307. 8001616: bd80 pop {r7, pc}
  2308. 08001618 <ADC_TDD_Arrange>:
  2309. void ADC_TDD_Arrange(){
  2310. 8001618: b580 push {r7, lr}
  2311. 800161a: b082 sub sp, #8
  2312. 800161c: af00 add r7, sp, #0
  2313. uint32_t ADC1_Average_value = 0;
  2314. 800161e: 2300 movs r3, #0
  2315. 8001620: 603b str r3, [r7, #0]
  2316. if(TDD_125ms_Cnt > ADC_DATA_CYCLE)
  2317. 8001622: 4b1b ldr r3, [pc, #108] ; (8001690 <ADC_TDD_Arrange+0x78>)
  2318. 8001624: 681b ldr r3, [r3, #0]
  2319. 8001626: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8
  2320. 800162a: d92d bls.n 8001688 <ADC_TDD_Arrange+0x70>
  2321. {
  2322. // printf("================TotalCnt %d =================\r\n",TotalCnt);
  2323. #if 1 // PYJ.2020.09.09_BEGIN --
  2324. DascendigFunc(&ADC1_Arrage_Ret[0],ADC_AVERAGECNT);
  2325. 800162c: 2132 movs r1, #50 ; 0x32
  2326. 800162e: 4819 ldr r0, [pc, #100] ; (8001694 <ADC_TDD_Arrange+0x7c>)
  2327. 8001630: f7ff ffa4 bl 800157c <DascendigFunc>
  2328. // for(int i = 0; i < 100; i++){/*ADC Data Dascending Complete*/
  2329. // printf("ADC1_Arrage_Ret[%d] : %d \r\n",i,ADC1_Arrage_Ret[i]);
  2330. // }
  2331. ADC1_Average_value = SumFunc(&ADC1_Arrage_Ret[0],Percent100);
  2332. 8001634: 2105 movs r1, #5
  2333. 8001636: 4817 ldr r0, [pc, #92] ; (8001694 <ADC_TDD_Arrange+0x7c>)
  2334. 8001638: f7ff ff80 bl 800153c <SumFunc>
  2335. 800163c: 6038 str r0, [r7, #0]
  2336. // printf("ADC1_Average_value Sum : %d \r\n",ADC1_Average_value);
  2337. ADC1_Average_value /=Percent100;
  2338. 800163e: 683b ldr r3, [r7, #0]
  2339. 8001640: 4a15 ldr r2, [pc, #84] ; (8001698 <ADC_TDD_Arrange+0x80>)
  2340. 8001642: fba2 2303 umull r2, r3, r2, r3
  2341. 8001646: 089b lsrs r3, r3, #2
  2342. 8001648: 603b str r3, [r7, #0]
  2343. // printf("ADC1_Average_value : %d \r\n",ADC1_Average_value);
  2344. for(int i = 0; i < ADC_AVERAGECNT; i++){
  2345. 800164a: 2300 movs r3, #0
  2346. 800164c: 607b str r3, [r7, #4]
  2347. 800164e: e007 b.n 8001660 <ADC_TDD_Arrange+0x48>
  2348. ADC1_Arrage_Ret[i] = 0;
  2349. 8001650: 4a10 ldr r2, [pc, #64] ; (8001694 <ADC_TDD_Arrange+0x7c>)
  2350. 8001652: 687b ldr r3, [r7, #4]
  2351. 8001654: 2100 movs r1, #0
  2352. 8001656: f842 1023 str.w r1, [r2, r3, lsl #2]
  2353. for(int i = 0; i < ADC_AVERAGECNT; i++){
  2354. 800165a: 687b ldr r3, [r7, #4]
  2355. 800165c: 3301 adds r3, #1
  2356. 800165e: 607b str r3, [r7, #4]
  2357. 8001660: 687b ldr r3, [r7, #4]
  2358. 8001662: 2b31 cmp r3, #49 ; 0x31
  2359. 8001664: ddf4 ble.n 8001650 <ADC_TDD_Arrange+0x38>
  2360. }
  2361. Currstatus.DownLink_Forward_Det_H
  2362. = (((uint16_t)ADC1_Average_value & 0xFF00) >> 8);
  2363. 8001666: 683b ldr r3, [r7, #0]
  2364. 8001668: b29b uxth r3, r3
  2365. 800166a: 0a1b lsrs r3, r3, #8
  2366. 800166c: b29b uxth r3, r3
  2367. 800166e: b2da uxtb r2, r3
  2368. 8001670: 4b0a ldr r3, [pc, #40] ; (800169c <ADC_TDD_Arrange+0x84>)
  2369. 8001672: 71da strb r2, [r3, #7]
  2370. Currstatus.DownLink_Forward_Det_L
  2371. = (((uint16_t)ADC1_Average_value & 0x00FF) );
  2372. 8001674: 683b ldr r3, [r7, #0]
  2373. 8001676: b2da uxtb r2, r3
  2374. 8001678: 4b08 ldr r3, [pc, #32] ; (800169c <ADC_TDD_Arrange+0x84>)
  2375. 800167a: 721a strb r2, [r3, #8]
  2376. ADC1_Arrage_Ret[i] = ADC1_Arrage[i];
  2377. }
  2378. #endif // PYJ.2020.09.09_END --
  2379. TotalCnt = 0;
  2380. 800167c: 4b08 ldr r3, [pc, #32] ; (80016a0 <ADC_TDD_Arrange+0x88>)
  2381. 800167e: 2200 movs r2, #0
  2382. 8001680: 601a str r2, [r3, #0]
  2383. TDD_125ms_Cnt = 0;
  2384. 8001682: 4b03 ldr r3, [pc, #12] ; (8001690 <ADC_TDD_Arrange+0x78>)
  2385. 8001684: 2200 movs r2, #0
  2386. 8001686: 601a str r2, [r3, #0]
  2387. }
  2388. }
  2389. 8001688: bf00 nop
  2390. 800168a: 3708 adds r7, #8
  2391. 800168c: 46bd mov sp, r7
  2392. 800168e: bd80 pop {r7, pc}
  2393. 8001690: 20000508 .word 0x20000508
  2394. 8001694: 200003f4 .word 0x200003f4
  2395. 8001698: cccccccd .word 0xcccccccd
  2396. 800169c: 2000057c .word 0x2000057c
  2397. 80016a0: 200004c0 .word 0x200004c0
  2398. 080016a4 <HAL_ADC_ConvCpltCallback>:
  2399. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
  2400. {
  2401. 80016a4: b580 push {r7, lr}
  2402. 80016a6: b084 sub sp, #16
  2403. 80016a8: af00 add r7, sp, #0
  2404. 80016aa: 6078 str r0, [r7, #4]
  2405. if(hadc->Instance == hadc1.Instance && TDD_125ms_Cnt < 125)
  2406. 80016ac: 687b ldr r3, [r7, #4]
  2407. 80016ae: 681a ldr r2, [r3, #0]
  2408. 80016b0: 4b27 ldr r3, [pc, #156] ; (8001750 <HAL_ADC_ConvCpltCallback+0xac>)
  2409. 80016b2: 681b ldr r3, [r3, #0]
  2410. 80016b4: 429a cmp r2, r3
  2411. 80016b6: d147 bne.n 8001748 <HAL_ADC_ConvCpltCallback+0xa4>
  2412. 80016b8: 4b26 ldr r3, [pc, #152] ; (8001754 <HAL_ADC_ConvCpltCallback+0xb0>)
  2413. 80016ba: 681b ldr r3, [r3, #0]
  2414. 80016bc: 2b7c cmp r3, #124 ; 0x7c
  2415. 80016be: d843 bhi.n 8001748 <HAL_ADC_ConvCpltCallback+0xa4>
  2416. {
  2417. ADC1_Arrage[adc1cnt] = ADC1value[0];
  2418. 80016c0: 4b25 ldr r3, [pc, #148] ; (8001758 <HAL_ADC_ConvCpltCallback+0xb4>)
  2419. 80016c2: 881b ldrh r3, [r3, #0]
  2420. 80016c4: 461a mov r2, r3
  2421. 80016c6: 4b25 ldr r3, [pc, #148] ; (800175c <HAL_ADC_ConvCpltCallback+0xb8>)
  2422. 80016c8: 881b ldrh r3, [r3, #0]
  2423. 80016ca: b299 uxth r1, r3
  2424. 80016cc: 4b24 ldr r3, [pc, #144] ; (8001760 <HAL_ADC_ConvCpltCallback+0xbc>)
  2425. 80016ce: f823 1012 strh.w r1, [r3, r2, lsl #1]
  2426. // for(int i = 0; i < 2; i++){
  2427. // printf("ADC1value[%d] : %d , %f\r\n",i,ADC1value[i],(float)((ADC1value[i]) *3.3 /4095));
  2428. // }
  2429. adc1cnt++;
  2430. 80016d2: 4b21 ldr r3, [pc, #132] ; (8001758 <HAL_ADC_ConvCpltCallback+0xb4>)
  2431. 80016d4: 881b ldrh r3, [r3, #0]
  2432. 80016d6: 3301 adds r3, #1
  2433. 80016d8: b29a uxth r2, r3
  2434. 80016da: 4b1f ldr r3, [pc, #124] ; (8001758 <HAL_ADC_ConvCpltCallback+0xb4>)
  2435. 80016dc: 801a strh r2, [r3, #0]
  2436. if(adc1cnt == ADC_AVERAGECNT){
  2437. 80016de: 4b1e ldr r3, [pc, #120] ; (8001758 <HAL_ADC_ConvCpltCallback+0xb4>)
  2438. 80016e0: 881b ldrh r3, [r3, #0]
  2439. 80016e2: 2b32 cmp r3, #50 ; 0x32
  2440. 80016e4: d130 bne.n 8001748 <HAL_ADC_ConvCpltCallback+0xa4>
  2441. // DascendigFunc(&ADC1_Arrage[0],ADC_AVERAGECNT);
  2442. adc1cnt = 0;
  2443. 80016e6: 4b1c ldr r3, [pc, #112] ; (8001758 <HAL_ADC_ConvCpltCallback+0xb4>)
  2444. 80016e8: 2200 movs r2, #0
  2445. 80016ea: 801a strh r2, [r3, #0]
  2446. TotalCnt++;
  2447. 80016ec: 4b1d ldr r3, [pc, #116] ; (8001764 <HAL_ADC_ConvCpltCallback+0xc0>)
  2448. 80016ee: 681b ldr r3, [r3, #0]
  2449. 80016f0: 3301 adds r3, #1
  2450. 80016f2: 4a1c ldr r2, [pc, #112] ; (8001764 <HAL_ADC_ConvCpltCallback+0xc0>)
  2451. 80016f4: 6013 str r3, [r2, #0]
  2452. if(TotalCnt > 2)
  2453. 80016f6: 4b1b ldr r3, [pc, #108] ; (8001764 <HAL_ADC_ConvCpltCallback+0xc0>)
  2454. 80016f8: 681b ldr r3, [r3, #0]
  2455. 80016fa: 2b02 cmp r3, #2
  2456. 80016fc: d902 bls.n 8001704 <HAL_ADC_ConvCpltCallback+0x60>
  2457. TotalCnt = 2;
  2458. 80016fe: 4b19 ldr r3, [pc, #100] ; (8001764 <HAL_ADC_ConvCpltCallback+0xc0>)
  2459. 8001700: 2202 movs r2, #2
  2460. 8001702: 601a str r2, [r3, #0]
  2461. for(int i = 0; i < ADC_AVERAGECNT; i++){/*ADC Data Dascending Complete*/
  2462. 8001704: 2300 movs r3, #0
  2463. 8001706: 60fb str r3, [r7, #12]
  2464. 8001708: e017 b.n 800173a <HAL_ADC_ConvCpltCallback+0x96>
  2465. if(ADC1_Arrage_Ret[i] <= ADC1_Arrage[i])
  2466. 800170a: 4a17 ldr r2, [pc, #92] ; (8001768 <HAL_ADC_ConvCpltCallback+0xc4>)
  2467. 800170c: 68fb ldr r3, [r7, #12]
  2468. 800170e: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  2469. 8001712: 4913 ldr r1, [pc, #76] ; (8001760 <HAL_ADC_ConvCpltCallback+0xbc>)
  2470. 8001714: 68fa ldr r2, [r7, #12]
  2471. 8001716: f831 2012 ldrh.w r2, [r1, r2, lsl #1]
  2472. 800171a: b292 uxth r2, r2
  2473. 800171c: 4293 cmp r3, r2
  2474. 800171e: d809 bhi.n 8001734 <HAL_ADC_ConvCpltCallback+0x90>
  2475. ADC1_Arrage_Ret[i] = ADC1_Arrage[i];
  2476. 8001720: 4a0f ldr r2, [pc, #60] ; (8001760 <HAL_ADC_ConvCpltCallback+0xbc>)
  2477. 8001722: 68fb ldr r3, [r7, #12]
  2478. 8001724: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  2479. 8001728: b29b uxth r3, r3
  2480. 800172a: 4619 mov r1, r3
  2481. 800172c: 4a0e ldr r2, [pc, #56] ; (8001768 <HAL_ADC_ConvCpltCallback+0xc4>)
  2482. 800172e: 68fb ldr r3, [r7, #12]
  2483. 8001730: f842 1023 str.w r1, [r2, r3, lsl #2]
  2484. for(int i = 0; i < ADC_AVERAGECNT; i++){/*ADC Data Dascending Complete*/
  2485. 8001734: 68fb ldr r3, [r7, #12]
  2486. 8001736: 3301 adds r3, #1
  2487. 8001738: 60fb str r3, [r7, #12]
  2488. 800173a: 68fb ldr r3, [r7, #12]
  2489. 800173c: 2b31 cmp r3, #49 ; 0x31
  2490. 800173e: dde4 ble.n 800170a <HAL_ADC_ConvCpltCallback+0x66>
  2491. }
  2492. DascendigFunc(&ADC1_Arrage_Ret[0],ADC_AVERAGECNT);
  2493. 8001740: 2132 movs r1, #50 ; 0x32
  2494. 8001742: 4809 ldr r0, [pc, #36] ; (8001768 <HAL_ADC_ConvCpltCallback+0xc4>)
  2495. 8001744: f7ff ff1a bl 800157c <DascendigFunc>
  2496. // ADC1valuearray[i][adc1cnt] = ADC1value[i];
  2497. // }
  2498. // adc1cnt++;
  2499. // }
  2500. }
  2501. }
  2502. 8001748: bf00 nop
  2503. 800174a: 3710 adds r7, #16
  2504. 800174c: 46bd mov sp, r7
  2505. 800174e: bd80 pop {r7, pc}
  2506. 8001750: 200008a8 .word 0x200008a8
  2507. 8001754: 20000508 .word 0x20000508
  2508. 8001758: 200004bc .word 0x200004bc
  2509. 800175c: 20000594 .word 0x20000594
  2510. 8001760: 20000390 .word 0x20000390
  2511. 8001764: 200004c0 .word 0x200004c0
  2512. 8001768: 200003f4 .word 0x200003f4
  2513. 0800176c <NessLab_Checksum>:
  2514. crcret ^ ~0U;
  2515. return (crcret == checksum ? CHECKSUM_ERROR : NO_ERROR);
  2516. }
  2517. uint8_t NessLab_Checksum(uint8_t *data,uint8_t size){
  2518. 800176c: b480 push {r7}
  2519. 800176e: b085 sub sp, #20
  2520. 8001770: af00 add r7, sp, #0
  2521. 8001772: 6078 str r0, [r7, #4]
  2522. 8001774: 460b mov r3, r1
  2523. 8001776: 70fb strb r3, [r7, #3]
  2524. uint16_t ret = 0;
  2525. 8001778: 2300 movs r3, #0
  2526. 800177a: 81fb strh r3, [r7, #14]
  2527. // printf("Crc Process : ");
  2528. for(int i = 0; i < size; i++){
  2529. 800177c: 2300 movs r3, #0
  2530. 800177e: 60bb str r3, [r7, #8]
  2531. 8001780: e00c b.n 800179c <NessLab_Checksum+0x30>
  2532. ret = ((ret + data[i]) & 0xFF);
  2533. 8001782: 68bb ldr r3, [r7, #8]
  2534. 8001784: 687a ldr r2, [r7, #4]
  2535. 8001786: 4413 add r3, r2
  2536. 8001788: 781b ldrb r3, [r3, #0]
  2537. 800178a: b29a uxth r2, r3
  2538. 800178c: 89fb ldrh r3, [r7, #14]
  2539. 800178e: 4413 add r3, r2
  2540. 8001790: b29b uxth r3, r3
  2541. 8001792: b2db uxtb r3, r3
  2542. 8001794: 81fb strh r3, [r7, #14]
  2543. for(int i = 0; i < size; i++){
  2544. 8001796: 68bb ldr r3, [r7, #8]
  2545. 8001798: 3301 adds r3, #1
  2546. 800179a: 60bb str r3, [r7, #8]
  2547. 800179c: 78fb ldrb r3, [r7, #3]
  2548. 800179e: 68ba ldr r2, [r7, #8]
  2549. 80017a0: 429a cmp r2, r3
  2550. 80017a2: dbee blt.n 8001782 <NessLab_Checksum+0x16>
  2551. // printf(" %x + %x \r\n",ret,data[i]);
  2552. }
  2553. // printf("Result : ");
  2554. ret = (~ret) + 1;
  2555. 80017a4: 89fb ldrh r3, [r7, #14]
  2556. 80017a6: 425b negs r3, r3
  2557. 80017a8: 81fb strh r3, [r7, #14]
  2558. // printf("ret [i] : %x \r\n",ret);
  2559. return (uint8_t)(ret & 0x00FF);
  2560. 80017aa: 89fb ldrh r3, [r7, #14]
  2561. 80017ac: b2db uxtb r3, r3
  2562. }
  2563. 80017ae: 4618 mov r0, r3
  2564. 80017b0: 3714 adds r7, #20
  2565. 80017b2: 46bd mov sp, r7
  2566. 80017b4: bc80 pop {r7}
  2567. 80017b6: 4770 bx lr
  2568. 080017b8 <NessLab_CheckSum_Check>:
  2569. bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum){
  2570. 80017b8: b480 push {r7}
  2571. 80017ba: b085 sub sp, #20
  2572. 80017bc: af00 add r7, sp, #0
  2573. 80017be: 6078 str r0, [r7, #4]
  2574. 80017c0: 460b mov r3, r1
  2575. 80017c2: 70fb strb r3, [r7, #3]
  2576. 80017c4: 4613 mov r3, r2
  2577. 80017c6: 70bb strb r3, [r7, #2]
  2578. uint8_t dataret = 0;
  2579. 80017c8: 2300 movs r3, #0
  2580. 80017ca: 73fb strb r3, [r7, #15]
  2581. bool ret = false;
  2582. 80017cc: 2300 movs r3, #0
  2583. 80017ce: 73bb strb r3, [r7, #14]
  2584. // printf("size : %d \r\n",size);
  2585. for(int i = 0; i < size; i++){
  2586. 80017d0: 2300 movs r3, #0
  2587. 80017d2: 60bb str r3, [r7, #8]
  2588. 80017d4: e009 b.n 80017ea <NessLab_CheckSum_Check+0x32>
  2589. dataret += data[i];
  2590. 80017d6: 68bb ldr r3, [r7, #8]
  2591. 80017d8: 687a ldr r2, [r7, #4]
  2592. 80017da: 4413 add r3, r2
  2593. 80017dc: 781a ldrb r2, [r3, #0]
  2594. 80017de: 7bfb ldrb r3, [r7, #15]
  2595. 80017e0: 4413 add r3, r2
  2596. 80017e2: 73fb strb r3, [r7, #15]
  2597. for(int i = 0; i < size; i++){
  2598. 80017e4: 68bb ldr r3, [r7, #8]
  2599. 80017e6: 3301 adds r3, #1
  2600. 80017e8: 60bb str r3, [r7, #8]
  2601. 80017ea: 78fb ldrb r3, [r7, #3]
  2602. 80017ec: 68ba ldr r2, [r7, #8]
  2603. 80017ee: 429a cmp r2, r3
  2604. 80017f0: dbf1 blt.n 80017d6 <NessLab_CheckSum_Check+0x1e>
  2605. // printf("data [i] : %x \r\n",data[i]);
  2606. }
  2607. dataret = (~dataret) + 1;
  2608. 80017f2: 7bfb ldrb r3, [r7, #15]
  2609. 80017f4: 425b negs r3, r3
  2610. 80017f6: 73fb strb r3, [r7, #15]
  2611. // printf("\r\ndataret : %x /// checksum : %x \r\n",dataret,checksum);
  2612. if(dataret != checksum){
  2613. 80017f8: 7bfa ldrb r2, [r7, #15]
  2614. 80017fa: 78bb ldrb r3, [r7, #2]
  2615. 80017fc: 429a cmp r2, r3
  2616. 80017fe: d002 beq.n 8001806 <NessLab_CheckSum_Check+0x4e>
  2617. ret = false;
  2618. 8001800: 2300 movs r3, #0
  2619. 8001802: 73bb strb r3, [r7, #14]
  2620. 8001804: e001 b.n 800180a <NessLab_CheckSum_Check+0x52>
  2621. }else{
  2622. ret = true;
  2623. 8001806: 2301 movs r3, #1
  2624. 8001808: 73bb strb r3, [r7, #14]
  2625. }
  2626. return ret;
  2627. 800180a: 7bbb ldrb r3, [r7, #14]
  2628. }
  2629. 800180c: 4618 mov r0, r3
  2630. 800180e: 3714 adds r7, #20
  2631. 8001810: 46bd mov sp, r7
  2632. 8001812: bc80 pop {r7}
  2633. 8001814: 4770 bx lr
  2634. ...
  2635. 08001818 <DataErase_Func>:
  2636. __set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
  2637. jump_to_app();
  2638. }
  2639. bool EraseInit = false;
  2640. void DataErase_Func(uint32_t User_Address,uint32_t size){
  2641. 8001818: b580 push {r7, lr}
  2642. 800181a: b082 sub sp, #8
  2643. 800181c: af00 add r7, sp, #0
  2644. 800181e: 6078 str r0, [r7, #4]
  2645. 8001820: 6039 str r1, [r7, #0]
  2646. static FLASH_EraseInitTypeDef EraseInitStruct;
  2647. static uint32_t PAGEError = 0;
  2648. HAL_FLASH_Unlock();
  2649. 8001822: f001 fb69 bl 8002ef8 <HAL_FLASH_Unlock>
  2650. EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
  2651. 8001826: 4b1b ldr r3, [pc, #108] ; (8001894 <DataErase_Func+0x7c>)
  2652. 8001828: 2200 movs r2, #0
  2653. 800182a: 601a str r2, [r3, #0]
  2654. EraseInitStruct.PageAddress = FLASH_USER_USE_START_ADDR;
  2655. 800182c: 4b19 ldr r3, [pc, #100] ; (8001894 <DataErase_Func+0x7c>)
  2656. 800182e: 4a1a ldr r2, [pc, #104] ; (8001898 <DataErase_Func+0x80>)
  2657. 8001830: 609a str r2, [r3, #8]
  2658. EraseInitStruct.NbPages = ((FLASH_USER_END_ADDR - FLASH_USER_USE_START_ADDR) / FLASH_PAGE_SIZE) + 1;
  2659. 8001832: 4b18 ldr r3, [pc, #96] ; (8001894 <DataErase_Func+0x7c>)
  2660. 8001834: 2201 movs r2, #1
  2661. 8001836: 60da str r2, [r3, #12]
  2662. UserAddress = User_Address;
  2663. 8001838: 4a18 ldr r2, [pc, #96] ; (800189c <DataErase_Func+0x84>)
  2664. 800183a: 687b ldr r3, [r7, #4]
  2665. 800183c: 6013 str r3, [r2, #0]
  2666. printf("NbPages : %x \r\n",EraseInitStruct.NbPages );
  2667. 800183e: 4b15 ldr r3, [pc, #84] ; (8001894 <DataErase_Func+0x7c>)
  2668. 8001840: 68db ldr r3, [r3, #12]
  2669. 8001842: 4619 mov r1, r3
  2670. 8001844: 4816 ldr r0, [pc, #88] ; (80018a0 <DataErase_Func+0x88>)
  2671. 8001846: f004 ff17 bl 8006678 <iprintf>
  2672. printf("EraseInitStruct.PageAddress : %x \r\n",EraseInitStruct.PageAddress);
  2673. 800184a: 4b12 ldr r3, [pc, #72] ; (8001894 <DataErase_Func+0x7c>)
  2674. 800184c: 689b ldr r3, [r3, #8]
  2675. 800184e: 4619 mov r1, r3
  2676. 8001850: 4814 ldr r0, [pc, #80] ; (80018a4 <DataErase_Func+0x8c>)
  2677. 8001852: f004 ff11 bl 8006678 <iprintf>
  2678. printf("Erase Start\r\n");
  2679. 8001856: 4814 ldr r0, [pc, #80] ; (80018a8 <DataErase_Func+0x90>)
  2680. 8001858: f004 ff82 bl 8006760 <puts>
  2681. if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
  2682. 800185c: 4913 ldr r1, [pc, #76] ; (80018ac <DataErase_Func+0x94>)
  2683. 800185e: 480d ldr r0, [pc, #52] ; (8001894 <DataErase_Func+0x7c>)
  2684. 8001860: f001 fc32 bl 80030c8 <HAL_FLASHEx_Erase>
  2685. 8001864: 4603 mov r3, r0
  2686. 8001866: 2b00 cmp r3, #0
  2687. 8001868: d007 beq.n 800187a <DataErase_Func+0x62>
  2688. */
  2689. /* Infinite loop */
  2690. while (1)
  2691. {
  2692. /* Make LED2 blink (100ms on, 2s off) to indicate error in Erase operation */
  2693. printf("HAL_FLASHEx_Erase Error\r\n");
  2694. 800186a: 4811 ldr r0, [pc, #68] ; (80018b0 <DataErase_Func+0x98>)
  2695. 800186c: f004 ff78 bl 8006760 <puts>
  2696. HAL_Delay(2000);
  2697. 8001870: f44f 60fa mov.w r0, #2000 ; 0x7d0
  2698. 8001874: f000 fa8a bl 8001d8c <HAL_Delay>
  2699. printf("HAL_FLASHEx_Erase Error\r\n");
  2700. 8001878: e7f7 b.n 800186a <DataErase_Func+0x52>
  2701. }
  2702. }
  2703. EraseInit = true;
  2704. 800187a: 4b0e ldr r3, [pc, #56] ; (80018b4 <DataErase_Func+0x9c>)
  2705. 800187c: 2201 movs r2, #1
  2706. 800187e: 701a strb r2, [r3, #0]
  2707. printf("Erase End\r\n");
  2708. 8001880: 480d ldr r0, [pc, #52] ; (80018b8 <DataErase_Func+0xa0>)
  2709. 8001882: f004 ff6d bl 8006760 <puts>
  2710. HAL_FLASH_Lock();
  2711. 8001886: f001 fb5d bl 8002f44 <HAL_FLASH_Lock>
  2712. }
  2713. 800188a: bf00 nop
  2714. 800188c: 3708 adds r7, #8
  2715. 800188e: 46bd mov sp, r7
  2716. 8001890: bd80 pop {r7, pc}
  2717. 8001892: bf00 nop
  2718. 8001894: 200004cc .word 0x200004cc
  2719. 8001898: 0800ff38 .word 0x0800ff38
  2720. 800189c: 200004c4 .word 0x200004c4
  2721. 80018a0: 08008728 .word 0x08008728
  2722. 80018a4: 08008738 .word 0x08008738
  2723. 80018a8: 0800875c .word 0x0800875c
  2724. 80018ac: 200004dc .word 0x200004dc
  2725. 80018b0: 0800876c .word 0x0800876c
  2726. 80018b4: 200004c8 .word 0x200004c8
  2727. 80018b8: 08008788 .word 0x08008788
  2728. 080018bc <FLASH_Write_Func>:
  2729. uint8_t FLASH_Write_Func(uint32_t User_Address,uint8_t* data,uint32_t size){
  2730. 80018bc: b590 push {r4, r7, lr}
  2731. 80018be: b08b sub sp, #44 ; 0x2c
  2732. 80018c0: af00 add r7, sp, #0
  2733. 80018c2: 60f8 str r0, [r7, #12]
  2734. 80018c4: 60b9 str r1, [r7, #8]
  2735. 80018c6: 607a str r2, [r7, #4]
  2736. //static FLASH_EraseInitTypeDef EraseInitStruct;
  2737. //static uint32_t PAGEError = 0;
  2738. static uint32_t DownloadIndex;
  2739. static __IO uint32_t data32 = 0 , MemoryProgramStatus = 0;
  2740. int dataindex = 0;
  2741. 80018c8: 2300 movs r3, #0
  2742. 80018ca: 623b str r3, [r7, #32]
  2743. uint32_t writedata = 0;
  2744. 80018cc: 2300 movs r3, #0
  2745. 80018ce: 61fb str r3, [r7, #28]
  2746. uint32_t CurrApiAddress = 0;
  2747. 80018d0: 2300 movs r3, #0
  2748. 80018d2: 61bb str r3, [r7, #24]
  2749. uint8_t ret = 0;
  2750. 80018d4: 2300 movs r3, #0
  2751. 80018d6: 75fb strb r3, [r7, #23]
  2752. CurrApiAddress = User_Address;
  2753. 80018d8: 68fb ldr r3, [r7, #12]
  2754. 80018da: 61bb str r3, [r7, #24]
  2755. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  2756. 80018dc: 69bb ldr r3, [r7, #24]
  2757. 80018de: 613b str r3, [r7, #16]
  2758. printf("HAL_FLASH_Program Start\r\n");
  2759. 80018e0: 4833 ldr r0, [pc, #204] ; (80019b0 <FLASH_Write_Func+0xf4>)
  2760. 80018e2: f004 ff3d bl 8006760 <puts>
  2761. DownloadIndex += size;
  2762. 80018e6: 4b33 ldr r3, [pc, #204] ; (80019b4 <FLASH_Write_Func+0xf8>)
  2763. 80018e8: 681a ldr r2, [r3, #0]
  2764. 80018ea: 687b ldr r3, [r7, #4]
  2765. 80018ec: 4413 add r3, r2
  2766. 80018ee: 4a31 ldr r2, [pc, #196] ; (80019b4 <FLASH_Write_Func+0xf8>)
  2767. 80018f0: 6013 str r3, [r2, #0]
  2768. printf("User_Address : %x \r\n",UserAddress);
  2769. 80018f2: 4b31 ldr r3, [pc, #196] ; (80019b8 <FLASH_Write_Func+0xfc>)
  2770. 80018f4: 681b ldr r3, [r3, #0]
  2771. 80018f6: 4619 mov r1, r3
  2772. 80018f8: 4830 ldr r0, [pc, #192] ; (80019bc <FLASH_Write_Func+0x100>)
  2773. 80018fa: f004 febd bl 8006678 <iprintf>
  2774. HAL_FLASH_Unlock();
  2775. 80018fe: f001 fafb bl 8002ef8 <HAL_FLASH_Unlock>
  2776. for(int downindex = 0; downindex < size; downindex+=4)
  2777. 8001902: 2300 movs r3, #0
  2778. 8001904: 627b str r3, [r7, #36] ; 0x24
  2779. 8001906: e041 b.n 800198c <FLASH_Write_Func+0xd0>
  2780. {
  2781. writedata = data[downindex + 0] ;
  2782. 8001908: 6a7b ldr r3, [r7, #36] ; 0x24
  2783. 800190a: 68ba ldr r2, [r7, #8]
  2784. 800190c: 4413 add r3, r2
  2785. 800190e: 781b ldrb r3, [r3, #0]
  2786. 8001910: 61fb str r3, [r7, #28]
  2787. writedata += data[downindex + 1] << 8 ;
  2788. 8001912: 6a7b ldr r3, [r7, #36] ; 0x24
  2789. 8001914: 3301 adds r3, #1
  2790. 8001916: 68ba ldr r2, [r7, #8]
  2791. 8001918: 4413 add r3, r2
  2792. 800191a: 781b ldrb r3, [r3, #0]
  2793. 800191c: 021b lsls r3, r3, #8
  2794. 800191e: 461a mov r2, r3
  2795. 8001920: 69fb ldr r3, [r7, #28]
  2796. 8001922: 4413 add r3, r2
  2797. 8001924: 61fb str r3, [r7, #28]
  2798. writedata += data[downindex + 2] << 16;
  2799. 8001926: 6a7b ldr r3, [r7, #36] ; 0x24
  2800. 8001928: 3302 adds r3, #2
  2801. 800192a: 68ba ldr r2, [r7, #8]
  2802. 800192c: 4413 add r3, r2
  2803. 800192e: 781b ldrb r3, [r3, #0]
  2804. 8001930: 041b lsls r3, r3, #16
  2805. 8001932: 461a mov r2, r3
  2806. 8001934: 69fb ldr r3, [r7, #28]
  2807. 8001936: 4413 add r3, r2
  2808. 8001938: 61fb str r3, [r7, #28]
  2809. writedata += data[downindex + 3] << 24;
  2810. 800193a: 6a7b ldr r3, [r7, #36] ; 0x24
  2811. 800193c: 3303 adds r3, #3
  2812. 800193e: 68ba ldr r2, [r7, #8]
  2813. 8001940: 4413 add r3, r2
  2814. 8001942: 781b ldrb r3, [r3, #0]
  2815. 8001944: 061b lsls r3, r3, #24
  2816. 8001946: 461a mov r2, r3
  2817. 8001948: 69fb ldr r3, [r7, #28]
  2818. 800194a: 4413 add r3, r2
  2819. 800194c: 61fb str r3, [r7, #28]
  2820. if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, UserAddress,writedata) == HAL_OK)
  2821. 800194e: 4b1a ldr r3, [pc, #104] ; (80019b8 <FLASH_Write_Func+0xfc>)
  2822. 8001950: 6819 ldr r1, [r3, #0]
  2823. 8001952: 69fb ldr r3, [r7, #28]
  2824. 8001954: f04f 0400 mov.w r4, #0
  2825. 8001958: 461a mov r2, r3
  2826. 800195a: 4623 mov r3, r4
  2827. 800195c: 2002 movs r0, #2
  2828. 800195e: f001 fa5b bl 8002e18 <HAL_FLASH_Program>
  2829. 8001962: 4603 mov r3, r0
  2830. 8001964: 2b00 cmp r3, #0
  2831. 8001966: d105 bne.n 8001974 <FLASH_Write_Func+0xb8>
  2832. {
  2833. UserAddress += 4;
  2834. 8001968: 4b13 ldr r3, [pc, #76] ; (80019b8 <FLASH_Write_Func+0xfc>)
  2835. 800196a: 681b ldr r3, [r3, #0]
  2836. 800196c: 3304 adds r3, #4
  2837. 800196e: 4a12 ldr r2, [pc, #72] ; (80019b8 <FLASH_Write_Func+0xfc>)
  2838. 8001970: 6013 str r3, [r2, #0]
  2839. 8001972: e008 b.n 8001986 <FLASH_Write_Func+0xca>
  2840. }
  2841. else
  2842. {
  2843. printf("HAL_FLASH_Program Error\r\n");
  2844. 8001974: 4812 ldr r0, [pc, #72] ; (80019c0 <FLASH_Write_Func+0x104>)
  2845. 8001976: f004 fef3 bl 8006760 <puts>
  2846. printf("Flash Failed %x \r\n",UserAddress);
  2847. 800197a: 4b0f ldr r3, [pc, #60] ; (80019b8 <FLASH_Write_Func+0xfc>)
  2848. 800197c: 681b ldr r3, [r3, #0]
  2849. 800197e: 4619 mov r1, r3
  2850. 8001980: 4810 ldr r0, [pc, #64] ; (80019c4 <FLASH_Write_Func+0x108>)
  2851. 8001982: f004 fe79 bl 8006678 <iprintf>
  2852. for(int downindex = 0; downindex < size; downindex+=4)
  2853. 8001986: 6a7b ldr r3, [r7, #36] ; 0x24
  2854. 8001988: 3304 adds r3, #4
  2855. 800198a: 627b str r3, [r7, #36] ; 0x24
  2856. 800198c: 6a7b ldr r3, [r7, #36] ; 0x24
  2857. 800198e: 687a ldr r2, [r7, #4]
  2858. 8001990: 429a cmp r2, r3
  2859. 8001992: d8b9 bhi.n 8001908 <FLASH_Write_Func+0x4c>
  2860. }
  2861. }
  2862. printf("HAL_FLASH_Program END %x \r\n",UserAddress);
  2863. 8001994: 4b08 ldr r3, [pc, #32] ; (80019b8 <FLASH_Write_Func+0xfc>)
  2864. 8001996: 681b ldr r3, [r3, #0]
  2865. 8001998: 4619 mov r1, r3
  2866. 800199a: 480b ldr r0, [pc, #44] ; (80019c8 <FLASH_Write_Func+0x10c>)
  2867. 800199c: f004 fe6c bl 8006678 <iprintf>
  2868. /* Lock the Flash to disable the flash control register access (recommended
  2869. to protect the FLASH memory against possible unwanted operation) *********/
  2870. HAL_FLASH_Lock();
  2871. 80019a0: f001 fad0 bl 8002f44 <HAL_FLASH_Lock>
  2872. return 0;
  2873. 80019a4: 2300 movs r3, #0
  2874. /* Check if the programmed data is OK
  2875. MemoryProgramStatus = 0: data programmed correctly
  2876. MemoryProgramStatus != 0: number of words not programmed correctly ******/
  2877. }
  2878. 80019a6: 4618 mov r0, r3
  2879. 80019a8: 372c adds r7, #44 ; 0x2c
  2880. 80019aa: 46bd mov sp, r7
  2881. 80019ac: bd90 pop {r4, r7, pc}
  2882. 80019ae: bf00 nop
  2883. 80019b0: 08008794 .word 0x08008794
  2884. 80019b4: 200004e0 .word 0x200004e0
  2885. 80019b8: 200004c4 .word 0x200004c4
  2886. 80019bc: 080087b0 .word 0x080087b0
  2887. 80019c0: 080087c8 .word 0x080087c8
  2888. 80019c4: 080087e4 .word 0x080087e4
  2889. 80019c8: 080087f8 .word 0x080087f8
  2890. 080019cc <FLASH_Read_Func>:
  2891. void FLASH_Read_Func(uint32_t User_Address,uint8_t* dst,uint32_t size){
  2892. 80019cc: b580 push {r7, lr}
  2893. 80019ce: b088 sub sp, #32
  2894. 80019d0: af00 add r7, sp, #0
  2895. 80019d2: 60f8 str r0, [r7, #12]
  2896. 80019d4: 60b9 str r1, [r7, #8]
  2897. 80019d6: 607a str r2, [r7, #4]
  2898. uint32_t CurrApiAddress = 0;
  2899. 80019d8: 2300 movs r3, #0
  2900. 80019da: 61bb str r3, [r7, #24]
  2901. uint32_t i = 0;
  2902. 80019dc: 2300 movs r3, #0
  2903. 80019de: 617b str r3, [r7, #20]
  2904. //uint8_t ret = 0;
  2905. CurrApiAddress = User_Address;
  2906. 80019e0: 68fb ldr r3, [r7, #12]
  2907. 80019e2: 61bb str r3, [r7, #24]
  2908. uint8_t* Currdata = (uint8_t*)CurrApiAddress;
  2909. 80019e4: 69bb ldr r3, [r7, #24]
  2910. 80019e6: 613b str r3, [r7, #16]
  2911. printf("Flash Read size : %d \r\n",size);
  2912. 80019e8: 6879 ldr r1, [r7, #4]
  2913. 80019ea: 4810 ldr r0, [pc, #64] ; (8001a2c <FLASH_Read_Func+0x60>)
  2914. 80019ec: f004 fe44 bl 8006678 <iprintf>
  2915. for(int i = 0; i < size; i++){
  2916. 80019f0: 2300 movs r3, #0
  2917. 80019f2: 61fb str r3, [r7, #28]
  2918. 80019f4: e012 b.n 8001a1c <FLASH_Read_Func+0x50>
  2919. dst[i] = Currdata[i];
  2920. 80019f6: 69fb ldr r3, [r7, #28]
  2921. 80019f8: 693a ldr r2, [r7, #16]
  2922. 80019fa: 441a add r2, r3
  2923. 80019fc: 69fb ldr r3, [r7, #28]
  2924. 80019fe: 68b9 ldr r1, [r7, #8]
  2925. 8001a00: 440b add r3, r1
  2926. 8001a02: 7812 ldrb r2, [r2, #0]
  2927. 8001a04: 701a strb r2, [r3, #0]
  2928. printf("%02x ",dst[i]);
  2929. 8001a06: 69fb ldr r3, [r7, #28]
  2930. 8001a08: 68ba ldr r2, [r7, #8]
  2931. 8001a0a: 4413 add r3, r2
  2932. 8001a0c: 781b ldrb r3, [r3, #0]
  2933. 8001a0e: 4619 mov r1, r3
  2934. 8001a10: 4807 ldr r0, [pc, #28] ; (8001a30 <FLASH_Read_Func+0x64>)
  2935. 8001a12: f004 fe31 bl 8006678 <iprintf>
  2936. for(int i = 0; i < size; i++){
  2937. 8001a16: 69fb ldr r3, [r7, #28]
  2938. 8001a18: 3301 adds r3, #1
  2939. 8001a1a: 61fb str r3, [r7, #28]
  2940. 8001a1c: 69fb ldr r3, [r7, #28]
  2941. 8001a1e: 687a ldr r2, [r7, #4]
  2942. 8001a20: 429a cmp r2, r3
  2943. 8001a22: d8e8 bhi.n 80019f6 <FLASH_Read_Func+0x2a>
  2944. }
  2945. }
  2946. 8001a24: bf00 nop
  2947. 8001a26: 3720 adds r7, #32
  2948. 8001a28: 46bd mov sp, r7
  2949. 8001a2a: bd80 pop {r7, pc}
  2950. 8001a2c: 08008818 .word 0x08008818
  2951. 8001a30: 08008830 .word 0x08008830
  2952. 08001a34 <LedTimerCnt_Get>:
  2953. #include "main.h"
  2954. #include "led.h"
  2955. volatile uint32_t LED_TimerCnt = 0;
  2956. uint32_t LedTimerCnt_Get(){
  2957. 8001a34: b480 push {r7}
  2958. 8001a36: af00 add r7, sp, #0
  2959. return LED_TimerCnt;
  2960. 8001a38: 4b02 ldr r3, [pc, #8] ; (8001a44 <LedTimerCnt_Get+0x10>)
  2961. 8001a3a: 681b ldr r3, [r3, #0]
  2962. }
  2963. 8001a3c: 4618 mov r0, r3
  2964. 8001a3e: 46bd mov sp, r7
  2965. 8001a40: bc80 pop {r7}
  2966. 8001a42: 4770 bx lr
  2967. 8001a44: 200004e4 .word 0x200004e4
  2968. 08001a48 <LedTimerCnt_Set>:
  2969. void LedTimerCnt_Set(uint32_t val){
  2970. 8001a48: b480 push {r7}
  2971. 8001a4a: b083 sub sp, #12
  2972. 8001a4c: af00 add r7, sp, #0
  2973. 8001a4e: 6078 str r0, [r7, #4]
  2974. LED_TimerCnt = val;
  2975. 8001a50: 4a03 ldr r2, [pc, #12] ; (8001a60 <LedTimerCnt_Set+0x18>)
  2976. 8001a52: 687b ldr r3, [r7, #4]
  2977. 8001a54: 6013 str r3, [r2, #0]
  2978. }
  2979. 8001a56: bf00 nop
  2980. 8001a58: 370c adds r7, #12
  2981. 8001a5a: 46bd mov sp, r7
  2982. 8001a5c: bc80 pop {r7}
  2983. 8001a5e: 4770 bx lr
  2984. 8001a60: 200004e4 .word 0x200004e4
  2985. 08001a64 <Boot_LED_Toggle>:
  2986. void Boot_LED_Toggle(){ /*LED Check*/
  2987. 8001a64: b580 push {r7, lr}
  2988. 8001a66: b082 sub sp, #8
  2989. 8001a68: af00 add r7, sp, #0
  2990. uint32_t Led_Cnt = LedTimerCnt_Get();
  2991. 8001a6a: f7ff ffe3 bl 8001a34 <LedTimerCnt_Get>
  2992. 8001a6e: 6078 str r0, [r7, #4]
  2993. if(Led_Cnt >= LED_TOGGLE_CNT_REF){
  2994. 8001a70: 687b ldr r3, [r7, #4]
  2995. 8001a72: f5b3 7ffa cmp.w r3, #500 ; 0x1f4
  2996. 8001a76: d307 bcc.n 8001a88 <Boot_LED_Toggle+0x24>
  2997. HAL_GPIO_TogglePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin);
  2998. 8001a78: f44f 4100 mov.w r1, #32768 ; 0x8000
  2999. 8001a7c: 4804 ldr r0, [pc, #16] ; (8001a90 <Boot_LED_Toggle+0x2c>)
  3000. 8001a7e: f001 fd54 bl 800352a <HAL_GPIO_TogglePin>
  3001. LedTimerCnt_Set(0);
  3002. 8001a82: 2000 movs r0, #0
  3003. 8001a84: f7ff ffe0 bl 8001a48 <LedTimerCnt_Set>
  3004. }
  3005. }
  3006. 8001a88: bf00 nop
  3007. 8001a8a: 3708 adds r7, #8
  3008. 8001a8c: 46bd mov sp, r7
  3009. 8001a8e: bd80 pop {r7, pc}
  3010. 8001a90: 40011000 .word 0x40011000
  3011. 08001a94 <InitUartQueue>:
  3012. extern bool Bluecell_Operate(uint8_t* data);
  3013. extern void MBIC_Operate(uint8_t * data);
  3014. extern bool NessLab_CheckSum_Check(uint8_t* data,uint8_t size,uint8_t checksum);
  3015. void InitUartQueue(pUARTQUEUE pQueue)
  3016. {
  3017. 8001a94: b580 push {r7, lr}
  3018. 8001a96: b082 sub sp, #8
  3019. 8001a98: af00 add r7, sp, #0
  3020. 8001a9a: 6078 str r0, [r7, #4]
  3021. pQueue->data = pQueue->head = pQueue->tail = 0;
  3022. 8001a9c: 687b ldr r3, [r7, #4]
  3023. 8001a9e: 2200 movs r2, #0
  3024. 8001aa0: 605a str r2, [r3, #4]
  3025. 8001aa2: 687b ldr r3, [r7, #4]
  3026. 8001aa4: 685a ldr r2, [r3, #4]
  3027. 8001aa6: 687b ldr r3, [r7, #4]
  3028. 8001aa8: 601a str r2, [r3, #0]
  3029. 8001aaa: 687b ldr r3, [r7, #4]
  3030. 8001aac: 681a ldr r2, [r3, #0]
  3031. 8001aae: 687b ldr r3, [r7, #4]
  3032. 8001ab0: 609a str r2, [r3, #8]
  3033. uart_hal_tx.output_p = uart_hal_tx.input_p = 0;
  3034. 8001ab2: 2100 movs r1, #0
  3035. 8001ab4: 4b08 ldr r3, [pc, #32] ; (8001ad8 <InitUartQueue+0x44>)
  3036. 8001ab6: 460a mov r2, r1
  3037. 8001ab8: f8a3 2080 strh.w r2, [r3, #128] ; 0x80
  3038. 8001abc: 4b06 ldr r3, [pc, #24] ; (8001ad8 <InitUartQueue+0x44>)
  3039. 8001abe: 460a mov r2, r1
  3040. 8001ac0: f8a3 2082 strh.w r2, [r3, #130] ; 0x82
  3041. // HAL_UART_Receive_IT(&huart2,rxBuf,5);
  3042. if (HAL_UART_Receive_IT(&hMain, MainQueue.Buffer, 1) != HAL_OK)
  3043. 8001ac4: 2201 movs r2, #1
  3044. 8001ac6: 4905 ldr r1, [pc, #20] ; (8001adc <InitUartQueue+0x48>)
  3045. 8001ac8: 4805 ldr r0, [pc, #20] ; (8001ae0 <InitUartQueue+0x4c>)
  3046. 8001aca: f002 fd93 bl 80045f4 <HAL_UART_Receive_IT>
  3047. // {
  3048. //// _Error_Handler(__FILE__, __LINE__);
  3049. // }
  3050. //HAL_UART_Receive_DMA(&hTerminal, TerminalQueue.Buffer, 1);
  3051. //HAL_UART_Receive_IT(hTerminal, pQueue->Buffer + pQueue->head, 1);
  3052. }
  3053. 8001ace: bf00 nop
  3054. 8001ad0: 3708 adds r7, #8
  3055. 8001ad2: 46bd mov sp, r7
  3056. 8001ad4: bd80 pop {r7, pc}
  3057. 8001ad6: bf00 nop
  3058. 8001ad8: 20000734 .word 0x20000734
  3059. 8001adc: 20000628 .word 0x20000628
  3060. 8001ae0: 200008d8 .word 0x200008d8
  3061. 08001ae4 <HAL_UART_RxCpltCallback>:
  3062. void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
  3063. {
  3064. 8001ae4: b580 push {r7, lr}
  3065. 8001ae6: b084 sub sp, #16
  3066. 8001ae8: af00 add r7, sp, #0
  3067. 8001aea: 6078 str r0, [r7, #4]
  3068. // UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);
  3069. pUARTQUEUE pQueue;
  3070. // printf("Function : %s : \r\n",__func__);
  3071. //printf("%02x ",uart_buf[i]);
  3072. UartRxTimerCnt = 0;
  3073. 8001aec: 4b15 ldr r3, [pc, #84] ; (8001b44 <HAL_UART_RxCpltCallback+0x60>)
  3074. 8001aee: 2200 movs r2, #0
  3075. 8001af0: 601a str r2, [r3, #0]
  3076. pQueue = &MainQueue;
  3077. 8001af2: 4b15 ldr r3, [pc, #84] ; (8001b48 <HAL_UART_RxCpltCallback+0x64>)
  3078. 8001af4: 60fb str r3, [r7, #12]
  3079. pQueue->head++;
  3080. 8001af6: 68fb ldr r3, [r7, #12]
  3081. 8001af8: 681b ldr r3, [r3, #0]
  3082. 8001afa: 1c5a adds r2, r3, #1
  3083. 8001afc: 68fb ldr r3, [r7, #12]
  3084. 8001afe: 601a str r2, [r3, #0]
  3085. if (pQueue->head >= QUEUE_BUFFER_LENGTH) pQueue->head = 0;
  3086. 8001b00: 68fb ldr r3, [r7, #12]
  3087. 8001b02: 681b ldr r3, [r3, #0]
  3088. 8001b04: 2b7f cmp r3, #127 ; 0x7f
  3089. 8001b06: dd02 ble.n 8001b0e <HAL_UART_RxCpltCallback+0x2a>
  3090. 8001b08: 68fb ldr r3, [r7, #12]
  3091. 8001b0a: 2200 movs r2, #0
  3092. 8001b0c: 601a str r2, [r3, #0]
  3093. pQueue->data++;
  3094. 8001b0e: 68fb ldr r3, [r7, #12]
  3095. 8001b10: 689b ldr r3, [r3, #8]
  3096. 8001b12: 1c5a adds r2, r3, #1
  3097. 8001b14: 68fb ldr r3, [r7, #12]
  3098. 8001b16: 609a str r2, [r3, #8]
  3099. if (pQueue->data >= QUEUE_BUFFER_LENGTH)
  3100. 8001b18: 68fb ldr r3, [r7, #12]
  3101. 8001b1a: 689b ldr r3, [r3, #8]
  3102. 8001b1c: 2b7f cmp r3, #127 ; 0x7f
  3103. 8001b1e: dd02 ble.n 8001b26 <HAL_UART_RxCpltCallback+0x42>
  3104. GetDataFromUartQueue(huart);
  3105. 8001b20: 6878 ldr r0, [r7, #4]
  3106. 8001b22: f000 f815 bl 8001b50 <GetDataFromUartQueue>
  3107. HAL_UART_Receive_IT(&hMain, pQueue->Buffer + pQueue->head, 1);
  3108. 8001b26: 68fb ldr r3, [r7, #12]
  3109. 8001b28: 330c adds r3, #12
  3110. 8001b2a: 68fa ldr r2, [r7, #12]
  3111. 8001b2c: 6812 ldr r2, [r2, #0]
  3112. 8001b2e: 4413 add r3, r2
  3113. 8001b30: 2201 movs r2, #1
  3114. 8001b32: 4619 mov r1, r3
  3115. 8001b34: 4805 ldr r0, [pc, #20] ; (8001b4c <HAL_UART_RxCpltCallback+0x68>)
  3116. 8001b36: f002 fd5d bl 80045f4 <HAL_UART_Receive_IT>
  3117. // HAL_UART_Receive_DMA(&hTest, pQueue->Buffer + pQueue->head, 1);
  3118. // Set_UartRcv(true);
  3119. }
  3120. 8001b3a: bf00 nop
  3121. 8001b3c: 3710 adds r7, #16
  3122. 8001b3e: 46bd mov sp, r7
  3123. 8001b40: bd80 pop {r7, pc}
  3124. 8001b42: bf00 nop
  3125. 8001b44: 200004ec .word 0x200004ec
  3126. 8001b48: 2000061c .word 0x2000061c
  3127. 8001b4c: 200008d8 .word 0x200008d8
  3128. 08001b50 <GetDataFromUartQueue>:
  3129. // HAL_UART_Receive_DMA(&hTerminal, pQueue->Buffer + pQueue->head, 10);
  3130. }
  3131. void GetDataFromUartQueue(UART_HandleTypeDef *huart)
  3132. {
  3133. 8001b50: b580 push {r7, lr}
  3134. 8001b52: b086 sub sp, #24
  3135. 8001b54: af00 add r7, sp, #0
  3136. 8001b56: 6078 str r0, [r7, #4]
  3137. volatile static int cnt;
  3138. bool ret = 0;
  3139. 8001b58: 2300 movs r3, #0
  3140. 8001b5a: 75fb strb r3, [r7, #23]
  3141. /* bool chksumret = 0;
  3142. uint16_t Length = 0;
  3143. uint16_t CrcChk = 0;
  3144. UART_HandleTypeDef *dst = (huart->Instance == USART2 ? &hTest:&hTerminal);*/
  3145. // UART_HandleTypeDef *dst = &hTerminal;
  3146. pUARTQUEUE pQueue = &MainQueue;
  3147. 8001b5c: 4b48 ldr r3, [pc, #288] ; (8001c80 <GetDataFromUartQueue+0x130>)
  3148. 8001b5e: 60fb str r3, [r7, #12]
  3149. // if (HAL_UART_Transmit(dst, pQueue->Buffer + pQueue->tail, 1, 3000) != HAL_OK)
  3150. // {
  3151. // _Error_Handler(__FILE__, __LINE__);
  3152. // }
  3153. uart_buf[cnt++] = *(pQueue->Buffer + pQueue->tail);
  3154. 8001b60: 68fb ldr r3, [r7, #12]
  3155. 8001b62: 330c adds r3, #12
  3156. 8001b64: 68fa ldr r2, [r7, #12]
  3157. 8001b66: 6852 ldr r2, [r2, #4]
  3158. 8001b68: 441a add r2, r3
  3159. 8001b6a: 4b46 ldr r3, [pc, #280] ; (8001c84 <GetDataFromUartQueue+0x134>)
  3160. 8001b6c: 681b ldr r3, [r3, #0]
  3161. 8001b6e: 1c59 adds r1, r3, #1
  3162. 8001b70: 4844 ldr r0, [pc, #272] ; (8001c84 <GetDataFromUartQueue+0x134>)
  3163. 8001b72: 6001 str r1, [r0, #0]
  3164. 8001b74: 7811 ldrb r1, [r2, #0]
  3165. 8001b76: 4a44 ldr r2, [pc, #272] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3166. 8001b78: 54d1 strb r1, [r2, r3]
  3167. //#ifdef DEBUG_PRINT
  3168. // printf("%02x ",*(pQueue->Buffer + pQueue->tail)) ;
  3169. //#endif /* DEBUG_PRINT */
  3170. pQueue->tail++;
  3171. 8001b7a: 68fb ldr r3, [r7, #12]
  3172. 8001b7c: 685b ldr r3, [r3, #4]
  3173. 8001b7e: 1c5a adds r2, r3, #1
  3174. 8001b80: 68fb ldr r3, [r7, #12]
  3175. 8001b82: 605a str r2, [r3, #4]
  3176. if (pQueue->tail >= QUEUE_BUFFER_LENGTH) pQueue->tail = 0;
  3177. 8001b84: 68fb ldr r3, [r7, #12]
  3178. 8001b86: 685b ldr r3, [r3, #4]
  3179. 8001b88: 2b7f cmp r3, #127 ; 0x7f
  3180. 8001b8a: dd02 ble.n 8001b92 <GetDataFromUartQueue+0x42>
  3181. 8001b8c: 68fb ldr r3, [r7, #12]
  3182. 8001b8e: 2200 movs r2, #0
  3183. 8001b90: 605a str r2, [r3, #4]
  3184. pQueue->data--;
  3185. 8001b92: 68fb ldr r3, [r7, #12]
  3186. 8001b94: 689b ldr r3, [r3, #8]
  3187. 8001b96: 1e5a subs r2, r3, #1
  3188. 8001b98: 68fb ldr r3, [r7, #12]
  3189. 8001b9a: 609a str r2, [r3, #8]
  3190. if(pQueue->data == 0){
  3191. 8001b9c: 68fb ldr r3, [r7, #12]
  3192. 8001b9e: 689b ldr r3, [r3, #8]
  3193. 8001ba0: 2b00 cmp r3, #0
  3194. 8001ba2: d169 bne.n 8001c78 <GetDataFromUartQueue+0x128>
  3195. // printf("data cnt zero !!! \r\n");
  3196. //RF_Ctrl_Main(&uart_buf[Header]);
  3197. // HAL_UART_Transmit(dst, &temp_buf[BLUECELL_HEADER00], 11, 3000);
  3198. #if 1// PYJ.2019.07.15_BEGIN --
  3199. printf("\r\n[RX]");
  3200. 8001ba4: 4839 ldr r0, [pc, #228] ; (8001c8c <GetDataFromUartQueue+0x13c>)
  3201. 8001ba6: f004 fd67 bl 8006678 <iprintf>
  3202. for(int i = 0; i < cnt; i++){
  3203. 8001baa: 2300 movs r3, #0
  3204. 8001bac: 613b str r3, [r7, #16]
  3205. 8001bae: e00b b.n 8001bc8 <GetDataFromUartQueue+0x78>
  3206. printf("%02x ",uart_buf[i]);
  3207. 8001bb0: 4a35 ldr r2, [pc, #212] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3208. 8001bb2: 693b ldr r3, [r7, #16]
  3209. 8001bb4: 4413 add r3, r2
  3210. 8001bb6: 781b ldrb r3, [r3, #0]
  3211. 8001bb8: b2db uxtb r3, r3
  3212. 8001bba: 4619 mov r1, r3
  3213. 8001bbc: 4834 ldr r0, [pc, #208] ; (8001c90 <GetDataFromUartQueue+0x140>)
  3214. 8001bbe: f004 fd5b bl 8006678 <iprintf>
  3215. for(int i = 0; i < cnt; i++){
  3216. 8001bc2: 693b ldr r3, [r7, #16]
  3217. 8001bc4: 3301 adds r3, #1
  3218. 8001bc6: 613b str r3, [r7, #16]
  3219. 8001bc8: 4b2e ldr r3, [pc, #184] ; (8001c84 <GetDataFromUartQueue+0x134>)
  3220. 8001bca: 681b ldr r3, [r3, #0]
  3221. 8001bcc: 693a ldr r2, [r7, #16]
  3222. 8001bce: 429a cmp r2, r3
  3223. 8001bd0: dbee blt.n 8001bb0 <GetDataFromUartQueue+0x60>
  3224. }
  3225. printf("\r\n");
  3226. 8001bd2: 4830 ldr r0, [pc, #192] ; (8001c94 <GetDataFromUartQueue+0x144>)
  3227. 8001bd4: f004 fdc4 bl 8006760 <puts>
  3228. // 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]);
  3229. // printf(ANSI_COLOR_GREEN"\r\n CNT : %d \r\n"ANSI_COLOR_RESET,cnt);
  3230. #endif // PYJ.2019.07.15_END --
  3231. if(uart_buf[NessLab_Req_MsgID0] == NessLab_Table_REQ)
  3232. 8001bd8: 4b2b ldr r3, [pc, #172] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3233. 8001bda: 789b ldrb r3, [r3, #2]
  3234. 8001bdc: b2db uxtb r3, r3
  3235. 8001bde: 2bc9 cmp r3, #201 ; 0xc9
  3236. 8001be0: d10c bne.n 8001bfc <GetDataFromUartQueue+0xac>
  3237. ret = NessLab_CheckSum_Check(&uart_buf[NessLab_Req_MsgID0],uart_buf[NessLab_Req_DataLength] ,uart_buf[NessLab_Req_ChecksumVal]);
  3238. 8001be2: 4b29 ldr r3, [pc, #164] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3239. 8001be4: 799b ldrb r3, [r3, #6]
  3240. 8001be6: b2d9 uxtb r1, r3
  3241. 8001be8: 4b27 ldr r3, [pc, #156] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3242. 8001bea: 7a5b ldrb r3, [r3, #9]
  3243. 8001bec: b2db uxtb r3, r3
  3244. 8001bee: 461a mov r2, r3
  3245. 8001bf0: 4829 ldr r0, [pc, #164] ; (8001c98 <GetDataFromUartQueue+0x148>)
  3246. 8001bf2: f7ff fde1 bl 80017b8 <NessLab_CheckSum_Check>
  3247. 8001bf6: 4603 mov r3, r0
  3248. 8001bf8: 75fb strb r3, [r7, #23]
  3249. 8001bfa: e011 b.n 8001c20 <GetDataFromUartQueue+0xd0>
  3250. else
  3251. 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]);
  3252. 8001bfc: 4b22 ldr r3, [pc, #136] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3253. 8001bfe: 799b ldrb r3, [r3, #6]
  3254. 8001c00: b2db uxtb r3, r3
  3255. 8001c02: 3305 adds r3, #5
  3256. 8001c04: b2d9 uxtb r1, r3
  3257. 8001c06: 4b20 ldr r3, [pc, #128] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3258. 8001c08: 799b ldrb r3, [r3, #6]
  3259. 8001c0a: b2db uxtb r3, r3
  3260. 8001c0c: 3307 adds r3, #7
  3261. 8001c0e: 4a1e ldr r2, [pc, #120] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3262. 8001c10: 5cd3 ldrb r3, [r2, r3]
  3263. 8001c12: b2db uxtb r3, r3
  3264. 8001c14: 461a mov r2, r3
  3265. 8001c16: 4820 ldr r0, [pc, #128] ; (8001c98 <GetDataFromUartQueue+0x148>)
  3266. 8001c18: f7ff fdce bl 80017b8 <NessLab_CheckSum_Check>
  3267. 8001c1c: 4603 mov r3, r0
  3268. 8001c1e: 75fb strb r3, [r7, #23]
  3269. if(ret == true){
  3270. 8001c20: 7dfb ldrb r3, [r7, #23]
  3271. 8001c22: 2b00 cmp r3, #0
  3272. 8001c24: d003 beq.n 8001c2e <GetDataFromUartQueue+0xde>
  3273. NessLab_Operate(&uart_buf[0]);
  3274. 8001c26: 4818 ldr r0, [pc, #96] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3275. 8001c28: f7ff f92c bl 8000e84 <NessLab_Operate>
  3276. 8001c2c: e01c b.n 8001c68 <GetDataFromUartQueue+0x118>
  3277. // printf("Checksum OK \r\n");
  3278. }else{
  3279. printf("Checksum Error \r\n");
  3280. 8001c2e: 481b ldr r0, [pc, #108] ; (8001c9c <GetDataFromUartQueue+0x14c>)
  3281. 8001c30: f004 fd96 bl 8006760 <puts>
  3282. printf("uart_buf[NessLab_Req_DataLength] : %x \r\n",uart_buf[NessLab_Req_DataLength]);
  3283. 8001c34: 4b14 ldr r3, [pc, #80] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3284. 8001c36: 799b ldrb r3, [r3, #6]
  3285. 8001c38: b2db uxtb r3, r3
  3286. 8001c3a: 4619 mov r1, r3
  3287. 8001c3c: 4818 ldr r0, [pc, #96] ; (8001ca0 <GetDataFromUartQueue+0x150>)
  3288. 8001c3e: f004 fd1b bl 8006678 <iprintf>
  3289. printf("NessLab_Req_DataLength : %d \r\n",NessLab_Req_DataLength);
  3290. 8001c42: 2106 movs r1, #6
  3291. 8001c44: 4817 ldr r0, [pc, #92] ; (8001ca4 <GetDataFromUartQueue+0x154>)
  3292. 8001c46: f004 fd17 bl 8006678 <iprintf>
  3293. 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]);
  3294. 8001c4a: 4b0f ldr r3, [pc, #60] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3295. 8001c4c: 799b ldrb r3, [r3, #6]
  3296. 8001c4e: b2db uxtb r3, r3
  3297. 8001c50: 1dd9 adds r1, r3, #7
  3298. 8001c52: 4b0d ldr r3, [pc, #52] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3299. 8001c54: 799b ldrb r3, [r3, #6]
  3300. 8001c56: b2db uxtb r3, r3
  3301. 8001c58: 3307 adds r3, #7
  3302. 8001c5a: 4a0b ldr r2, [pc, #44] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3303. 8001c5c: 5cd3 ldrb r3, [r2, r3]
  3304. 8001c5e: b2db uxtb r3, r3
  3305. 8001c60: 461a mov r2, r3
  3306. 8001c62: 4811 ldr r0, [pc, #68] ; (8001ca8 <GetDataFromUartQueue+0x158>)
  3307. 8001c64: f004 fd08 bl 8006678 <iprintf>
  3308. }
  3309. memset(uart_buf,0x00,QUEUE_BUFFER_LENGTH);
  3310. 8001c68: 2280 movs r2, #128 ; 0x80
  3311. 8001c6a: 2100 movs r1, #0
  3312. 8001c6c: 4806 ldr r0, [pc, #24] ; (8001c88 <GetDataFromUartQueue+0x138>)
  3313. 8001c6e: f004 f8ab bl 8005dc8 <memset>
  3314. cnt = 0;
  3315. 8001c72: 4b04 ldr r3, [pc, #16] ; (8001c84 <GetDataFromUartQueue+0x134>)
  3316. 8001c74: 2200 movs r2, #0
  3317. 8001c76: 601a str r2, [r3, #0]
  3318. }
  3319. }
  3320. 8001c78: bf00 nop
  3321. 8001c7a: 3718 adds r7, #24
  3322. 8001c7c: 46bd mov sp, r7
  3323. 8001c7e: bd80 pop {r7, pc}
  3324. 8001c80: 2000061c .word 0x2000061c
  3325. 8001c84: 200004e8 .word 0x200004e8
  3326. 8001c88: 2000059c .word 0x2000059c
  3327. 8001c8c: 08008848 .word 0x08008848
  3328. 8001c90: 08008850 .word 0x08008850
  3329. 8001c94: 08008858 .word 0x08008858
  3330. 8001c98: 2000059e .word 0x2000059e
  3331. 8001c9c: 0800885c .word 0x0800885c
  3332. 8001ca0: 08008870 .word 0x08008870
  3333. 8001ca4: 0800889c .word 0x0800889c
  3334. 8001ca8: 080088bc .word 0x080088bc
  3335. 08001cac <Uart_Check>:
  3336. void Uart_Check(void){
  3337. 8001cac: b580 push {r7, lr}
  3338. 8001cae: af00 add r7, sp, #0
  3339. if (MainQueue.data > 0 && UartRxTimerCnt > 100)
  3340. 8001cb0: 4b06 ldr r3, [pc, #24] ; (8001ccc <Uart_Check+0x20>)
  3341. 8001cb2: 689b ldr r3, [r3, #8]
  3342. 8001cb4: 2b00 cmp r3, #0
  3343. 8001cb6: dd06 ble.n 8001cc6 <Uart_Check+0x1a>
  3344. 8001cb8: 4b05 ldr r3, [pc, #20] ; (8001cd0 <Uart_Check+0x24>)
  3345. 8001cba: 681b ldr r3, [r3, #0]
  3346. 8001cbc: 2b64 cmp r3, #100 ; 0x64
  3347. 8001cbe: d902 bls.n 8001cc6 <Uart_Check+0x1a>
  3348. GetDataFromUartQueue(&hMain);
  3349. 8001cc0: 4804 ldr r0, [pc, #16] ; (8001cd4 <Uart_Check+0x28>)
  3350. 8001cc2: f7ff ff45 bl 8001b50 <GetDataFromUartQueue>
  3351. }
  3352. 8001cc6: bf00 nop
  3353. 8001cc8: bd80 pop {r7, pc}
  3354. 8001cca: bf00 nop
  3355. 8001ccc: 2000061c .word 0x2000061c
  3356. 8001cd0: 200004ec .word 0x200004ec
  3357. 8001cd4: 200008d8 .word 0x200008d8
  3358. 08001cd8 <Uart1_Data_Send>:
  3359. void Uart1_Data_Send(uint8_t* data,uint16_t size){
  3360. 8001cd8: b580 push {r7, lr}
  3361. 8001cda: b084 sub sp, #16
  3362. 8001cdc: af00 add r7, sp, #0
  3363. 8001cde: 6078 str r0, [r7, #4]
  3364. 8001ce0: 460b mov r3, r1
  3365. 8001ce2: 807b strh r3, [r7, #2]
  3366. HAL_UART_Transmit_DMA(&hMain, &data[0],size);
  3367. 8001ce4: 887b ldrh r3, [r7, #2]
  3368. 8001ce6: 461a mov r2, r3
  3369. 8001ce8: 6879 ldr r1, [r7, #4]
  3370. 8001cea: 480f ldr r0, [pc, #60] ; (8001d28 <Uart1_Data_Send+0x50>)
  3371. 8001cec: f002 fcd6 bl 800469c <HAL_UART_Transmit_DMA>
  3372. //HAL_UART_Transmit_IT(&hTerminal, &data[0],size);
  3373. // printf("data[278] : %x \r\n",data[278]);
  3374. //// HAL_Delay(1);
  3375. #if 1 // PYJ.2020.07.19_BEGIN --
  3376. printf("\r\n [TX] : ");
  3377. 8001cf0: 480e ldr r0, [pc, #56] ; (8001d2c <Uart1_Data_Send+0x54>)
  3378. 8001cf2: f004 fcc1 bl 8006678 <iprintf>
  3379. for(int i = 0; i< size; i++)
  3380. 8001cf6: 2300 movs r3, #0
  3381. 8001cf8: 60fb str r3, [r7, #12]
  3382. 8001cfa: e00a b.n 8001d12 <Uart1_Data_Send+0x3a>
  3383. printf("%02x ",data[i]);
  3384. 8001cfc: 68fb ldr r3, [r7, #12]
  3385. 8001cfe: 687a ldr r2, [r7, #4]
  3386. 8001d00: 4413 add r3, r2
  3387. 8001d02: 781b ldrb r3, [r3, #0]
  3388. 8001d04: 4619 mov r1, r3
  3389. 8001d06: 480a ldr r0, [pc, #40] ; (8001d30 <Uart1_Data_Send+0x58>)
  3390. 8001d08: f004 fcb6 bl 8006678 <iprintf>
  3391. for(int i = 0; i< size; i++)
  3392. 8001d0c: 68fb ldr r3, [r7, #12]
  3393. 8001d0e: 3301 adds r3, #1
  3394. 8001d10: 60fb str r3, [r7, #12]
  3395. 8001d12: 887b ldrh r3, [r7, #2]
  3396. 8001d14: 68fa ldr r2, [r7, #12]
  3397. 8001d16: 429a cmp r2, r3
  3398. 8001d18: dbf0 blt.n 8001cfc <Uart1_Data_Send+0x24>
  3399. // printf("};\r\n\tCOUNT : %d \r\n",size);
  3400. printf("\r\n");
  3401. 8001d1a: 4806 ldr r0, [pc, #24] ; (8001d34 <Uart1_Data_Send+0x5c>)
  3402. 8001d1c: f004 fd20 bl 8006760 <puts>
  3403. // data[i] = 0;
  3404. // }
  3405. // printf("};\r\n\tCOUNT : %d \r\n",size);
  3406. // printf("\r\n");
  3407. }
  3408. 8001d20: bf00 nop
  3409. 8001d22: 3710 adds r7, #16
  3410. 8001d24: 46bd mov sp, r7
  3411. 8001d26: bd80 pop {r7, pc}
  3412. 8001d28: 200008d8 .word 0x200008d8
  3413. 8001d2c: 080088d8 .word 0x080088d8
  3414. 8001d30: 08008850 .word 0x08008850
  3415. 8001d34: 08008858 .word 0x08008858
  3416. 08001d38 <HAL_Init>:
  3417. * need to ensure that the SysTick time base is always set to 1 millisecond
  3418. * to have correct HAL operation.
  3419. * @retval HAL status
  3420. */
  3421. HAL_StatusTypeDef HAL_Init(void)
  3422. {
  3423. 8001d38: b580 push {r7, lr}
  3424. 8001d3a: af00 add r7, sp, #0
  3425. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  3426. #endif
  3427. #endif /* PREFETCH_ENABLE */
  3428. /* Set Interrupt Group Priority */
  3429. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  3430. 8001d3c: 2003 movs r0, #3
  3431. 8001d3e: f000 fdd1 bl 80028e4 <HAL_NVIC_SetPriorityGrouping>
  3432. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  3433. HAL_InitTick(TICK_INT_PRIORITY);
  3434. 8001d42: 2000 movs r0, #0
  3435. 8001d44: f003 fe74 bl 8005a30 <HAL_InitTick>
  3436. /* Init the low level hardware */
  3437. HAL_MspInit();
  3438. 8001d48: f003 fcde bl 8005708 <HAL_MspInit>
  3439. /* Return function status */
  3440. return HAL_OK;
  3441. 8001d4c: 2300 movs r3, #0
  3442. }
  3443. 8001d4e: 4618 mov r0, r3
  3444. 8001d50: bd80 pop {r7, pc}
  3445. ...
  3446. 08001d54 <HAL_IncTick>:
  3447. * @note This function is declared as __weak to be overwritten in case of other
  3448. * implementations in user file.
  3449. * @retval None
  3450. */
  3451. __weak void HAL_IncTick(void)
  3452. {
  3453. 8001d54: b480 push {r7}
  3454. 8001d56: af00 add r7, sp, #0
  3455. uwTick += uwTickFreq;
  3456. 8001d58: 4b05 ldr r3, [pc, #20] ; (8001d70 <HAL_IncTick+0x1c>)
  3457. 8001d5a: 781b ldrb r3, [r3, #0]
  3458. 8001d5c: 461a mov r2, r3
  3459. 8001d5e: 4b05 ldr r3, [pc, #20] ; (8001d74 <HAL_IncTick+0x20>)
  3460. 8001d60: 681b ldr r3, [r3, #0]
  3461. 8001d62: 4413 add r3, r2
  3462. 8001d64: 4a03 ldr r2, [pc, #12] ; (8001d74 <HAL_IncTick+0x20>)
  3463. 8001d66: 6013 str r3, [r2, #0]
  3464. }
  3465. 8001d68: bf00 nop
  3466. 8001d6a: 46bd mov sp, r7
  3467. 8001d6c: bc80 pop {r7}
  3468. 8001d6e: 4770 bx lr
  3469. 8001d70: 20000004 .word 0x20000004
  3470. 8001d74: 200007b8 .word 0x200007b8
  3471. 08001d78 <HAL_GetTick>:
  3472. * @note This function is declared as __weak to be overwritten in case of other
  3473. * implementations in user file.
  3474. * @retval tick value
  3475. */
  3476. __weak uint32_t HAL_GetTick(void)
  3477. {
  3478. 8001d78: b480 push {r7}
  3479. 8001d7a: af00 add r7, sp, #0
  3480. return uwTick;
  3481. 8001d7c: 4b02 ldr r3, [pc, #8] ; (8001d88 <HAL_GetTick+0x10>)
  3482. 8001d7e: 681b ldr r3, [r3, #0]
  3483. }
  3484. 8001d80: 4618 mov r0, r3
  3485. 8001d82: 46bd mov sp, r7
  3486. 8001d84: bc80 pop {r7}
  3487. 8001d86: 4770 bx lr
  3488. 8001d88: 200007b8 .word 0x200007b8
  3489. 08001d8c <HAL_Delay>:
  3490. * implementations in user file.
  3491. * @param Delay specifies the delay time length, in milliseconds.
  3492. * @retval None
  3493. */
  3494. __weak void HAL_Delay(uint32_t Delay)
  3495. {
  3496. 8001d8c: b580 push {r7, lr}
  3497. 8001d8e: b084 sub sp, #16
  3498. 8001d90: af00 add r7, sp, #0
  3499. 8001d92: 6078 str r0, [r7, #4]
  3500. uint32_t tickstart = HAL_GetTick();
  3501. 8001d94: f7ff fff0 bl 8001d78 <HAL_GetTick>
  3502. 8001d98: 60b8 str r0, [r7, #8]
  3503. uint32_t wait = Delay;
  3504. 8001d9a: 687b ldr r3, [r7, #4]
  3505. 8001d9c: 60fb str r3, [r7, #12]
  3506. /* Add a freq to guarantee minimum wait */
  3507. if (wait < HAL_MAX_DELAY)
  3508. 8001d9e: 68fb ldr r3, [r7, #12]
  3509. 8001da0: f1b3 3fff cmp.w r3, #4294967295
  3510. 8001da4: d005 beq.n 8001db2 <HAL_Delay+0x26>
  3511. {
  3512. wait += (uint32_t)(uwTickFreq);
  3513. 8001da6: 4b09 ldr r3, [pc, #36] ; (8001dcc <HAL_Delay+0x40>)
  3514. 8001da8: 781b ldrb r3, [r3, #0]
  3515. 8001daa: 461a mov r2, r3
  3516. 8001dac: 68fb ldr r3, [r7, #12]
  3517. 8001dae: 4413 add r3, r2
  3518. 8001db0: 60fb str r3, [r7, #12]
  3519. }
  3520. while ((HAL_GetTick() - tickstart) < wait)
  3521. 8001db2: bf00 nop
  3522. 8001db4: f7ff ffe0 bl 8001d78 <HAL_GetTick>
  3523. 8001db8: 4602 mov r2, r0
  3524. 8001dba: 68bb ldr r3, [r7, #8]
  3525. 8001dbc: 1ad3 subs r3, r2, r3
  3526. 8001dbe: 68fa ldr r2, [r7, #12]
  3527. 8001dc0: 429a cmp r2, r3
  3528. 8001dc2: d8f7 bhi.n 8001db4 <HAL_Delay+0x28>
  3529. {
  3530. }
  3531. }
  3532. 8001dc4: bf00 nop
  3533. 8001dc6: 3710 adds r7, #16
  3534. 8001dc8: 46bd mov sp, r7
  3535. 8001dca: bd80 pop {r7, pc}
  3536. 8001dcc: 20000004 .word 0x20000004
  3537. 08001dd0 <HAL_ADC_Init>:
  3538. * of structure "ADC_InitTypeDef".
  3539. * @param hadc: ADC handle
  3540. * @retval HAL status
  3541. */
  3542. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
  3543. {
  3544. 8001dd0: b580 push {r7, lr}
  3545. 8001dd2: b086 sub sp, #24
  3546. 8001dd4: af00 add r7, sp, #0
  3547. 8001dd6: 6078 str r0, [r7, #4]
  3548. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3549. 8001dd8: 2300 movs r3, #0
  3550. 8001dda: 75fb strb r3, [r7, #23]
  3551. uint32_t tmp_cr1 = 0U;
  3552. 8001ddc: 2300 movs r3, #0
  3553. 8001dde: 613b str r3, [r7, #16]
  3554. uint32_t tmp_cr2 = 0U;
  3555. 8001de0: 2300 movs r3, #0
  3556. 8001de2: 60bb str r3, [r7, #8]
  3557. uint32_t tmp_sqr1 = 0U;
  3558. 8001de4: 2300 movs r3, #0
  3559. 8001de6: 60fb str r3, [r7, #12]
  3560. /* Check ADC handle */
  3561. if(hadc == NULL)
  3562. 8001de8: 687b ldr r3, [r7, #4]
  3563. 8001dea: 2b00 cmp r3, #0
  3564. 8001dec: d101 bne.n 8001df2 <HAL_ADC_Init+0x22>
  3565. {
  3566. return HAL_ERROR;
  3567. 8001dee: 2301 movs r3, #1
  3568. 8001df0: e0be b.n 8001f70 <HAL_ADC_Init+0x1a0>
  3569. assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign));
  3570. assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode));
  3571. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  3572. assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
  3573. if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  3574. 8001df2: 687b ldr r3, [r7, #4]
  3575. 8001df4: 689b ldr r3, [r3, #8]
  3576. 8001df6: 2b00 cmp r3, #0
  3577. /* Refer to header of this file for more details on clock enabling */
  3578. /* procedure. */
  3579. /* Actions performed only if ADC is coming from state reset: */
  3580. /* - Initialization of ADC MSP */
  3581. if (hadc->State == HAL_ADC_STATE_RESET)
  3582. 8001df8: 687b ldr r3, [r7, #4]
  3583. 8001dfa: 6a9b ldr r3, [r3, #40] ; 0x28
  3584. 8001dfc: 2b00 cmp r3, #0
  3585. 8001dfe: d109 bne.n 8001e14 <HAL_ADC_Init+0x44>
  3586. {
  3587. /* Initialize ADC error code */
  3588. ADC_CLEAR_ERRORCODE(hadc);
  3589. 8001e00: 687b ldr r3, [r7, #4]
  3590. 8001e02: 2200 movs r2, #0
  3591. 8001e04: 62da str r2, [r3, #44] ; 0x2c
  3592. /* Allocate lock resource and initialize it */
  3593. hadc->Lock = HAL_UNLOCKED;
  3594. 8001e06: 687b ldr r3, [r7, #4]
  3595. 8001e08: 2200 movs r2, #0
  3596. 8001e0a: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3597. /* Init the low level hardware */
  3598. hadc->MspInitCallback(hadc);
  3599. #else
  3600. /* Init the low level hardware */
  3601. HAL_ADC_MspInit(hadc);
  3602. 8001e0e: 6878 ldr r0, [r7, #4]
  3603. 8001e10: f003 fcac bl 800576c <HAL_ADC_MspInit>
  3604. /* Stop potential conversion on going, on regular and injected groups */
  3605. /* Disable ADC peripheral */
  3606. /* Note: In case of ADC already enabled, precaution to not launch an */
  3607. /* unwanted conversion while modifying register CR2 by writing 1 to */
  3608. /* bit ADON. */
  3609. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  3610. 8001e14: 6878 ldr r0, [r7, #4]
  3611. 8001e16: f000 fb75 bl 8002504 <ADC_ConversionStop_Disable>
  3612. 8001e1a: 4603 mov r3, r0
  3613. 8001e1c: 75fb strb r3, [r7, #23]
  3614. /* Configuration of ADC parameters if previous preliminary actions are */
  3615. /* correctly completed. */
  3616. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) &&
  3617. 8001e1e: 687b ldr r3, [r7, #4]
  3618. 8001e20: 6a9b ldr r3, [r3, #40] ; 0x28
  3619. 8001e22: f003 0310 and.w r3, r3, #16
  3620. 8001e26: 2b00 cmp r3, #0
  3621. 8001e28: f040 8099 bne.w 8001f5e <HAL_ADC_Init+0x18e>
  3622. 8001e2c: 7dfb ldrb r3, [r7, #23]
  3623. 8001e2e: 2b00 cmp r3, #0
  3624. 8001e30: f040 8095 bne.w 8001f5e <HAL_ADC_Init+0x18e>
  3625. (tmp_hal_status == HAL_OK) )
  3626. {
  3627. /* Set ADC state */
  3628. ADC_STATE_CLR_SET(hadc->State,
  3629. 8001e34: 687b ldr r3, [r7, #4]
  3630. 8001e36: 6a9b ldr r3, [r3, #40] ; 0x28
  3631. 8001e38: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  3632. 8001e3c: f023 0302 bic.w r3, r3, #2
  3633. 8001e40: f043 0202 orr.w r2, r3, #2
  3634. 8001e44: 687b ldr r3, [r7, #4]
  3635. 8001e46: 629a str r2, [r3, #40] ; 0x28
  3636. /* - continuous conversion mode */
  3637. /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */
  3638. /* HAL_ADC_Start_xxx functions because if set in this function, */
  3639. /* a conversion on injected group would start a conversion also on */
  3640. /* regular group after ADC enabling. */
  3641. tmp_cr2 |= (hadc->Init.DataAlign |
  3642. 8001e48: 687b ldr r3, [r7, #4]
  3643. 8001e4a: 685a ldr r2, [r3, #4]
  3644. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  3645. 8001e4c: 687b ldr r3, [r7, #4]
  3646. 8001e4e: 69db ldr r3, [r3, #28]
  3647. tmp_cr2 |= (hadc->Init.DataAlign |
  3648. 8001e50: 431a orrs r2, r3
  3649. ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
  3650. 8001e52: 687b ldr r3, [r7, #4]
  3651. 8001e54: 7b1b ldrb r3, [r3, #12]
  3652. 8001e56: 005b lsls r3, r3, #1
  3653. ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) |
  3654. 8001e58: 4313 orrs r3, r2
  3655. tmp_cr2 |= (hadc->Init.DataAlign |
  3656. 8001e5a: 68ba ldr r2, [r7, #8]
  3657. 8001e5c: 4313 orrs r3, r2
  3658. 8001e5e: 60bb str r3, [r7, #8]
  3659. /* Configuration of ADC: */
  3660. /* - scan mode */
  3661. /* - discontinuous mode disable/enable */
  3662. /* - discontinuous mode number of conversions */
  3663. tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode));
  3664. 8001e60: 687b ldr r3, [r7, #4]
  3665. 8001e62: 689b ldr r3, [r3, #8]
  3666. 8001e64: f5b3 7f80 cmp.w r3, #256 ; 0x100
  3667. 8001e68: d003 beq.n 8001e72 <HAL_ADC_Init+0xa2>
  3668. 8001e6a: 687b ldr r3, [r7, #4]
  3669. 8001e6c: 689b ldr r3, [r3, #8]
  3670. 8001e6e: 2b01 cmp r3, #1
  3671. 8001e70: d102 bne.n 8001e78 <HAL_ADC_Init+0xa8>
  3672. 8001e72: f44f 7380 mov.w r3, #256 ; 0x100
  3673. 8001e76: e000 b.n 8001e7a <HAL_ADC_Init+0xaa>
  3674. 8001e78: 2300 movs r3, #0
  3675. 8001e7a: 693a ldr r2, [r7, #16]
  3676. 8001e7c: 4313 orrs r3, r2
  3677. 8001e7e: 613b str r3, [r7, #16]
  3678. /* Enable discontinuous mode only if continuous mode is disabled */
  3679. /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
  3680. /* discontinuous is set anyway, but will have no effect on ADC HW. */
  3681. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  3682. 8001e80: 687b ldr r3, [r7, #4]
  3683. 8001e82: 7d1b ldrb r3, [r3, #20]
  3684. 8001e84: 2b01 cmp r3, #1
  3685. 8001e86: d119 bne.n 8001ebc <HAL_ADC_Init+0xec>
  3686. {
  3687. if (hadc->Init.ContinuousConvMode == DISABLE)
  3688. 8001e88: 687b ldr r3, [r7, #4]
  3689. 8001e8a: 7b1b ldrb r3, [r3, #12]
  3690. 8001e8c: 2b00 cmp r3, #0
  3691. 8001e8e: d109 bne.n 8001ea4 <HAL_ADC_Init+0xd4>
  3692. {
  3693. /* Enable the selected ADC regular discontinuous mode */
  3694. /* Set the number of channels to be converted in discontinuous mode */
  3695. SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
  3696. 8001e90: 687b ldr r3, [r7, #4]
  3697. 8001e92: 699b ldr r3, [r3, #24]
  3698. 8001e94: 3b01 subs r3, #1
  3699. 8001e96: 035a lsls r2, r3, #13
  3700. 8001e98: 693b ldr r3, [r7, #16]
  3701. 8001e9a: 4313 orrs r3, r2
  3702. 8001e9c: f443 6300 orr.w r3, r3, #2048 ; 0x800
  3703. 8001ea0: 613b str r3, [r7, #16]
  3704. 8001ea2: e00b b.n 8001ebc <HAL_ADC_Init+0xec>
  3705. {
  3706. /* ADC regular group settings continuous and sequencer discontinuous*/
  3707. /* cannot be enabled simultaneously. */
  3708. /* Update ADC state machine to error */
  3709. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  3710. 8001ea4: 687b ldr r3, [r7, #4]
  3711. 8001ea6: 6a9b ldr r3, [r3, #40] ; 0x28
  3712. 8001ea8: f043 0220 orr.w r2, r3, #32
  3713. 8001eac: 687b ldr r3, [r7, #4]
  3714. 8001eae: 629a str r2, [r3, #40] ; 0x28
  3715. /* Set ADC error code to ADC IP internal error */
  3716. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  3717. 8001eb0: 687b ldr r3, [r7, #4]
  3718. 8001eb2: 6adb ldr r3, [r3, #44] ; 0x2c
  3719. 8001eb4: f043 0201 orr.w r2, r3, #1
  3720. 8001eb8: 687b ldr r3, [r7, #4]
  3721. 8001eba: 62da str r2, [r3, #44] ; 0x2c
  3722. }
  3723. }
  3724. /* Update ADC configuration register CR1 with previous settings */
  3725. MODIFY_REG(hadc->Instance->CR1,
  3726. 8001ebc: 687b ldr r3, [r7, #4]
  3727. 8001ebe: 681b ldr r3, [r3, #0]
  3728. 8001ec0: 685b ldr r3, [r3, #4]
  3729. 8001ec2: f423 4169 bic.w r1, r3, #59648 ; 0xe900
  3730. 8001ec6: 687b ldr r3, [r7, #4]
  3731. 8001ec8: 681b ldr r3, [r3, #0]
  3732. 8001eca: 693a ldr r2, [r7, #16]
  3733. 8001ecc: 430a orrs r2, r1
  3734. 8001ece: 605a str r2, [r3, #4]
  3735. ADC_CR1_DISCEN |
  3736. ADC_CR1_DISCNUM ,
  3737. tmp_cr1 );
  3738. /* Update ADC configuration register CR2 with previous settings */
  3739. MODIFY_REG(hadc->Instance->CR2,
  3740. 8001ed0: 687b ldr r3, [r7, #4]
  3741. 8001ed2: 681b ldr r3, [r3, #0]
  3742. 8001ed4: 689a ldr r2, [r3, #8]
  3743. 8001ed6: 4b28 ldr r3, [pc, #160] ; (8001f78 <HAL_ADC_Init+0x1a8>)
  3744. 8001ed8: 4013 ands r3, r2
  3745. 8001eda: 687a ldr r2, [r7, #4]
  3746. 8001edc: 6812 ldr r2, [r2, #0]
  3747. 8001ede: 68b9 ldr r1, [r7, #8]
  3748. 8001ee0: 430b orrs r3, r1
  3749. 8001ee2: 6093 str r3, [r2, #8]
  3750. /* Note: Scan mode is present by hardware on this device and, if */
  3751. /* disabled, discards automatically nb of conversions. Anyway, nb of */
  3752. /* conversions is forced to 0x00 for alignment over all STM32 devices. */
  3753. /* - if scan mode is enabled, regular channels sequence length is set to */
  3754. /* parameter "NbrOfConversion" */
  3755. if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
  3756. 8001ee4: 687b ldr r3, [r7, #4]
  3757. 8001ee6: 689b ldr r3, [r3, #8]
  3758. 8001ee8: f5b3 7f80 cmp.w r3, #256 ; 0x100
  3759. 8001eec: d003 beq.n 8001ef6 <HAL_ADC_Init+0x126>
  3760. 8001eee: 687b ldr r3, [r7, #4]
  3761. 8001ef0: 689b ldr r3, [r3, #8]
  3762. 8001ef2: 2b01 cmp r3, #1
  3763. 8001ef4: d104 bne.n 8001f00 <HAL_ADC_Init+0x130>
  3764. {
  3765. tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion);
  3766. 8001ef6: 687b ldr r3, [r7, #4]
  3767. 8001ef8: 691b ldr r3, [r3, #16]
  3768. 8001efa: 3b01 subs r3, #1
  3769. 8001efc: 051b lsls r3, r3, #20
  3770. 8001efe: 60fb str r3, [r7, #12]
  3771. }
  3772. MODIFY_REG(hadc->Instance->SQR1,
  3773. 8001f00: 687b ldr r3, [r7, #4]
  3774. 8001f02: 681b ldr r3, [r3, #0]
  3775. 8001f04: 6adb ldr r3, [r3, #44] ; 0x2c
  3776. 8001f06: f423 0170 bic.w r1, r3, #15728640 ; 0xf00000
  3777. 8001f0a: 687b ldr r3, [r7, #4]
  3778. 8001f0c: 681b ldr r3, [r3, #0]
  3779. 8001f0e: 68fa ldr r2, [r7, #12]
  3780. 8001f10: 430a orrs r2, r1
  3781. 8001f12: 62da str r2, [r3, #44] ; 0x2c
  3782. /* ensure of no potential problem of ADC core IP clocking. */
  3783. /* Check through register CR2 (excluding bits set in other functions: */
  3784. /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */
  3785. /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */
  3786. /* measurement path bit (TSVREFE). */
  3787. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  3788. 8001f14: 687b ldr r3, [r7, #4]
  3789. 8001f16: 681b ldr r3, [r3, #0]
  3790. 8001f18: 689a ldr r2, [r3, #8]
  3791. 8001f1a: 4b18 ldr r3, [pc, #96] ; (8001f7c <HAL_ADC_Init+0x1ac>)
  3792. 8001f1c: 4013 ands r3, r2
  3793. 8001f1e: 68ba ldr r2, [r7, #8]
  3794. 8001f20: 429a cmp r2, r3
  3795. 8001f22: d10b bne.n 8001f3c <HAL_ADC_Init+0x16c>
  3796. ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL |
  3797. ADC_CR2_TSVREFE ))
  3798. == tmp_cr2)
  3799. {
  3800. /* Set ADC error code to none */
  3801. ADC_CLEAR_ERRORCODE(hadc);
  3802. 8001f24: 687b ldr r3, [r7, #4]
  3803. 8001f26: 2200 movs r2, #0
  3804. 8001f28: 62da str r2, [r3, #44] ; 0x2c
  3805. /* Set the ADC state */
  3806. ADC_STATE_CLR_SET(hadc->State,
  3807. 8001f2a: 687b ldr r3, [r7, #4]
  3808. 8001f2c: 6a9b ldr r3, [r3, #40] ; 0x28
  3809. 8001f2e: f023 0303 bic.w r3, r3, #3
  3810. 8001f32: f043 0201 orr.w r2, r3, #1
  3811. 8001f36: 687b ldr r3, [r7, #4]
  3812. 8001f38: 629a str r2, [r3, #40] ; 0x28
  3813. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  3814. 8001f3a: e018 b.n 8001f6e <HAL_ADC_Init+0x19e>
  3815. HAL_ADC_STATE_READY);
  3816. }
  3817. else
  3818. {
  3819. /* Update ADC state machine to error */
  3820. ADC_STATE_CLR_SET(hadc->State,
  3821. 8001f3c: 687b ldr r3, [r7, #4]
  3822. 8001f3e: 6a9b ldr r3, [r3, #40] ; 0x28
  3823. 8001f40: f023 0312 bic.w r3, r3, #18
  3824. 8001f44: f043 0210 orr.w r2, r3, #16
  3825. 8001f48: 687b ldr r3, [r7, #4]
  3826. 8001f4a: 629a str r2, [r3, #40] ; 0x28
  3827. HAL_ADC_STATE_BUSY_INTERNAL,
  3828. HAL_ADC_STATE_ERROR_INTERNAL);
  3829. /* Set ADC error code to ADC IP internal error */
  3830. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  3831. 8001f4c: 687b ldr r3, [r7, #4]
  3832. 8001f4e: 6adb ldr r3, [r3, #44] ; 0x2c
  3833. 8001f50: f043 0201 orr.w r2, r3, #1
  3834. 8001f54: 687b ldr r3, [r7, #4]
  3835. 8001f56: 62da str r2, [r3, #44] ; 0x2c
  3836. tmp_hal_status = HAL_ERROR;
  3837. 8001f58: 2301 movs r3, #1
  3838. 8001f5a: 75fb strb r3, [r7, #23]
  3839. if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA |
  3840. 8001f5c: e007 b.n 8001f6e <HAL_ADC_Init+0x19e>
  3841. }
  3842. else
  3843. {
  3844. /* Update ADC state machine to error */
  3845. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  3846. 8001f5e: 687b ldr r3, [r7, #4]
  3847. 8001f60: 6a9b ldr r3, [r3, #40] ; 0x28
  3848. 8001f62: f043 0210 orr.w r2, r3, #16
  3849. 8001f66: 687b ldr r3, [r7, #4]
  3850. 8001f68: 629a str r2, [r3, #40] ; 0x28
  3851. tmp_hal_status = HAL_ERROR;
  3852. 8001f6a: 2301 movs r3, #1
  3853. 8001f6c: 75fb strb r3, [r7, #23]
  3854. }
  3855. /* Return function status */
  3856. return tmp_hal_status;
  3857. 8001f6e: 7dfb ldrb r3, [r7, #23]
  3858. }
  3859. 8001f70: 4618 mov r0, r3
  3860. 8001f72: 3718 adds r7, #24
  3861. 8001f74: 46bd mov sp, r7
  3862. 8001f76: bd80 pop {r7, pc}
  3863. 8001f78: ffe1f7fd .word 0xffe1f7fd
  3864. 8001f7c: ff1f0efe .word 0xff1f0efe
  3865. 08001f80 <HAL_ADC_Start_DMA>:
  3866. * @param pData: The destination Buffer address.
  3867. * @param Length: The length of data to be transferred from ADC peripheral to memory.
  3868. * @retval None
  3869. */
  3870. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
  3871. {
  3872. 8001f80: b580 push {r7, lr}
  3873. 8001f82: b086 sub sp, #24
  3874. 8001f84: af00 add r7, sp, #0
  3875. 8001f86: 60f8 str r0, [r7, #12]
  3876. 8001f88: 60b9 str r1, [r7, #8]
  3877. 8001f8a: 607a str r2, [r7, #4]
  3878. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  3879. 8001f8c: 2300 movs r3, #0
  3880. 8001f8e: 75fb strb r3, [r7, #23]
  3881. /* If multimode is enabled, dedicated function multimode conversion */
  3882. /* start DMA must be used. */
  3883. if(ADC_MULTIMODE_IS_ENABLE(hadc) == RESET)
  3884. {
  3885. /* Process locked */
  3886. __HAL_LOCK(hadc);
  3887. 8001f90: 68fb ldr r3, [r7, #12]
  3888. 8001f92: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  3889. 8001f96: 2b01 cmp r3, #1
  3890. 8001f98: d101 bne.n 8001f9e <HAL_ADC_Start_DMA+0x1e>
  3891. 8001f9a: 2302 movs r3, #2
  3892. 8001f9c: e080 b.n 80020a0 <HAL_ADC_Start_DMA+0x120>
  3893. 8001f9e: 68fb ldr r3, [r7, #12]
  3894. 8001fa0: 2201 movs r2, #1
  3895. 8001fa2: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3896. /* Enable the ADC peripheral */
  3897. tmp_hal_status = ADC_Enable(hadc);
  3898. 8001fa6: 68f8 ldr r0, [r7, #12]
  3899. 8001fa8: f000 fa5a bl 8002460 <ADC_Enable>
  3900. 8001fac: 4603 mov r3, r0
  3901. 8001fae: 75fb strb r3, [r7, #23]
  3902. /* Start conversion if ADC is effectively enabled */
  3903. if (tmp_hal_status == HAL_OK)
  3904. 8001fb0: 7dfb ldrb r3, [r7, #23]
  3905. 8001fb2: 2b00 cmp r3, #0
  3906. 8001fb4: d16f bne.n 8002096 <HAL_ADC_Start_DMA+0x116>
  3907. {
  3908. /* Set ADC state */
  3909. /* - Clear state bitfield related to regular group conversion results */
  3910. /* - Set state bitfield related to regular operation */
  3911. ADC_STATE_CLR_SET(hadc->State,
  3912. 8001fb6: 68fb ldr r3, [r7, #12]
  3913. 8001fb8: 6a9b ldr r3, [r3, #40] ; 0x28
  3914. 8001fba: f423 6370 bic.w r3, r3, #3840 ; 0xf00
  3915. 8001fbe: f023 0301 bic.w r3, r3, #1
  3916. 8001fc2: f443 7280 orr.w r2, r3, #256 ; 0x100
  3917. 8001fc6: 68fb ldr r3, [r7, #12]
  3918. 8001fc8: 629a str r2, [r3, #40] ; 0x28
  3919. /* for all cases of multimode: independent mode, multimode ADC master */
  3920. /* or multimode ADC slave (for devices with several ADCs): */
  3921. if (ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc))
  3922. {
  3923. /* Set ADC state (ADC independent or master) */
  3924. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  3925. 8001fca: 68fb ldr r3, [r7, #12]
  3926. 8001fcc: 6a9b ldr r3, [r3, #40] ; 0x28
  3927. 8001fce: f423 1280 bic.w r2, r3, #1048576 ; 0x100000
  3928. 8001fd2: 68fb ldr r3, [r7, #12]
  3929. 8001fd4: 629a str r2, [r3, #40] ; 0x28
  3930. /* If conversions on group regular are also triggering group injected, */
  3931. /* update ADC state. */
  3932. if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
  3933. 8001fd6: 68fb ldr r3, [r7, #12]
  3934. 8001fd8: 681b ldr r3, [r3, #0]
  3935. 8001fda: 685b ldr r3, [r3, #4]
  3936. 8001fdc: f403 6380 and.w r3, r3, #1024 ; 0x400
  3937. 8001fe0: 2b00 cmp r3, #0
  3938. 8001fe2: d007 beq.n 8001ff4 <HAL_ADC_Start_DMA+0x74>
  3939. {
  3940. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  3941. 8001fe4: 68fb ldr r3, [r7, #12]
  3942. 8001fe6: 6a9b ldr r3, [r3, #40] ; 0x28
  3943. 8001fe8: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  3944. 8001fec: f443 5280 orr.w r2, r3, #4096 ; 0x1000
  3945. 8001ff0: 68fb ldr r3, [r7, #12]
  3946. 8001ff2: 629a str r2, [r3, #40] ; 0x28
  3947. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  3948. }
  3949. }
  3950. /* State machine update: Check if an injected conversion is ongoing */
  3951. if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  3952. 8001ff4: 68fb ldr r3, [r7, #12]
  3953. 8001ff6: 6a9b ldr r3, [r3, #40] ; 0x28
  3954. 8001ff8: f403 5380 and.w r3, r3, #4096 ; 0x1000
  3955. 8001ffc: 2b00 cmp r3, #0
  3956. 8001ffe: d006 beq.n 800200e <HAL_ADC_Start_DMA+0x8e>
  3957. {
  3958. /* Reset ADC error code fields related to conversions on group regular */
  3959. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  3960. 8002000: 68fb ldr r3, [r7, #12]
  3961. 8002002: 6adb ldr r3, [r3, #44] ; 0x2c
  3962. 8002004: f023 0206 bic.w r2, r3, #6
  3963. 8002008: 68fb ldr r3, [r7, #12]
  3964. 800200a: 62da str r2, [r3, #44] ; 0x2c
  3965. 800200c: e002 b.n 8002014 <HAL_ADC_Start_DMA+0x94>
  3966. }
  3967. else
  3968. {
  3969. /* Reset ADC all error code fields */
  3970. ADC_CLEAR_ERRORCODE(hadc);
  3971. 800200e: 68fb ldr r3, [r7, #12]
  3972. 8002010: 2200 movs r2, #0
  3973. 8002012: 62da str r2, [r3, #44] ; 0x2c
  3974. }
  3975. /* Process unlocked */
  3976. /* Unlock before starting ADC conversions: in case of potential */
  3977. /* interruption, to let the process to ADC IRQ Handler. */
  3978. __HAL_UNLOCK(hadc);
  3979. 8002014: 68fb ldr r3, [r7, #12]
  3980. 8002016: 2200 movs r2, #0
  3981. 8002018: f883 2024 strb.w r2, [r3, #36] ; 0x24
  3982. /* Set the DMA transfer complete callback */
  3983. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  3984. 800201c: 68fb ldr r3, [r7, #12]
  3985. 800201e: 6a1b ldr r3, [r3, #32]
  3986. 8002020: 4a21 ldr r2, [pc, #132] ; (80020a8 <HAL_ADC_Start_DMA+0x128>)
  3987. 8002022: 629a str r2, [r3, #40] ; 0x28
  3988. /* Set the DMA half transfer complete callback */
  3989. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  3990. 8002024: 68fb ldr r3, [r7, #12]
  3991. 8002026: 6a1b ldr r3, [r3, #32]
  3992. 8002028: 4a20 ldr r2, [pc, #128] ; (80020ac <HAL_ADC_Start_DMA+0x12c>)
  3993. 800202a: 62da str r2, [r3, #44] ; 0x2c
  3994. /* Set the DMA error callback */
  3995. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  3996. 800202c: 68fb ldr r3, [r7, #12]
  3997. 800202e: 6a1b ldr r3, [r3, #32]
  3998. 8002030: 4a1f ldr r2, [pc, #124] ; (80020b0 <HAL_ADC_Start_DMA+0x130>)
  3999. 8002032: 631a str r2, [r3, #48] ; 0x30
  4000. /* start (in case of SW start): */
  4001. /* Clear regular group conversion flag and overrun flag */
  4002. /* (To ensure of no unknown state from potential previous ADC */
  4003. /* operations) */
  4004. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC);
  4005. 8002034: 68fb ldr r3, [r7, #12]
  4006. 8002036: 681b ldr r3, [r3, #0]
  4007. 8002038: f06f 0202 mvn.w r2, #2
  4008. 800203c: 601a str r2, [r3, #0]
  4009. /* Enable ADC DMA mode */
  4010. SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA);
  4011. 800203e: 68fb ldr r3, [r7, #12]
  4012. 8002040: 681b ldr r3, [r3, #0]
  4013. 8002042: 689a ldr r2, [r3, #8]
  4014. 8002044: 68fb ldr r3, [r7, #12]
  4015. 8002046: 681b ldr r3, [r3, #0]
  4016. 8002048: f442 7280 orr.w r2, r2, #256 ; 0x100
  4017. 800204c: 609a str r2, [r3, #8]
  4018. /* Start the DMA channel */
  4019. HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  4020. 800204e: 68fb ldr r3, [r7, #12]
  4021. 8002050: 6a18 ldr r0, [r3, #32]
  4022. 8002052: 68fb ldr r3, [r7, #12]
  4023. 8002054: 681b ldr r3, [r3, #0]
  4024. 8002056: 334c adds r3, #76 ; 0x4c
  4025. 8002058: 4619 mov r1, r3
  4026. 800205a: 68ba ldr r2, [r7, #8]
  4027. 800205c: 687b ldr r3, [r7, #4]
  4028. 800205e: f000 fcd1 bl 8002a04 <HAL_DMA_Start_IT>
  4029. /* Enable conversion of regular group. */
  4030. /* If software start has been selected, conversion starts immediately. */
  4031. /* If external trigger has been selected, conversion will start at next */
  4032. /* trigger event. */
  4033. if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
  4034. 8002062: 68fb ldr r3, [r7, #12]
  4035. 8002064: 681b ldr r3, [r3, #0]
  4036. 8002066: 689b ldr r3, [r3, #8]
  4037. 8002068: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4038. 800206c: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4039. 8002070: d108 bne.n 8002084 <HAL_ADC_Start_DMA+0x104>
  4040. {
  4041. /* Start ADC conversion on regular group with SW start */
  4042. SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG));
  4043. 8002072: 68fb ldr r3, [r7, #12]
  4044. 8002074: 681b ldr r3, [r3, #0]
  4045. 8002076: 689a ldr r2, [r3, #8]
  4046. 8002078: 68fb ldr r3, [r7, #12]
  4047. 800207a: 681b ldr r3, [r3, #0]
  4048. 800207c: f442 02a0 orr.w r2, r2, #5242880 ; 0x500000
  4049. 8002080: 609a str r2, [r3, #8]
  4050. 8002082: e00c b.n 800209e <HAL_ADC_Start_DMA+0x11e>
  4051. }
  4052. else
  4053. {
  4054. /* Start ADC conversion on regular group with external trigger */
  4055. SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG);
  4056. 8002084: 68fb ldr r3, [r7, #12]
  4057. 8002086: 681b ldr r3, [r3, #0]
  4058. 8002088: 689a ldr r2, [r3, #8]
  4059. 800208a: 68fb ldr r3, [r7, #12]
  4060. 800208c: 681b ldr r3, [r3, #0]
  4061. 800208e: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  4062. 8002092: 609a str r2, [r3, #8]
  4063. 8002094: e003 b.n 800209e <HAL_ADC_Start_DMA+0x11e>
  4064. }
  4065. }
  4066. else
  4067. {
  4068. /* Process unlocked */
  4069. __HAL_UNLOCK(hadc);
  4070. 8002096: 68fb ldr r3, [r7, #12]
  4071. 8002098: 2200 movs r2, #0
  4072. 800209a: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4073. {
  4074. tmp_hal_status = HAL_ERROR;
  4075. }
  4076. /* Return function status */
  4077. return tmp_hal_status;
  4078. 800209e: 7dfb ldrb r3, [r7, #23]
  4079. }
  4080. 80020a0: 4618 mov r0, r3
  4081. 80020a2: 3718 adds r7, #24
  4082. 80020a4: 46bd mov sp, r7
  4083. 80020a6: bd80 pop {r7, pc}
  4084. 80020a8: 08002579 .word 0x08002579
  4085. 80020ac: 080025f5 .word 0x080025f5
  4086. 80020b0: 08002611 .word 0x08002611
  4087. 080020b4 <HAL_ADC_IRQHandler>:
  4088. * @brief Handles ADC interrupt request
  4089. * @param hadc: ADC handle
  4090. * @retval None
  4091. */
  4092. void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc)
  4093. {
  4094. 80020b4: b580 push {r7, lr}
  4095. 80020b6: b082 sub sp, #8
  4096. 80020b8: af00 add r7, sp, #0
  4097. 80020ba: 6078 str r0, [r7, #4]
  4098. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  4099. assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion));
  4100. /* ========== Check End of Conversion flag for regular group ========== */
  4101. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOC))
  4102. 80020bc: 687b ldr r3, [r7, #4]
  4103. 80020be: 681b ldr r3, [r3, #0]
  4104. 80020c0: 685b ldr r3, [r3, #4]
  4105. 80020c2: f003 0320 and.w r3, r3, #32
  4106. 80020c6: 2b20 cmp r3, #32
  4107. 80020c8: d140 bne.n 800214c <HAL_ADC_IRQHandler+0x98>
  4108. {
  4109. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC) )
  4110. 80020ca: 687b ldr r3, [r7, #4]
  4111. 80020cc: 681b ldr r3, [r3, #0]
  4112. 80020ce: 681b ldr r3, [r3, #0]
  4113. 80020d0: f003 0302 and.w r3, r3, #2
  4114. 80020d4: 2b02 cmp r3, #2
  4115. 80020d6: d139 bne.n 800214c <HAL_ADC_IRQHandler+0x98>
  4116. {
  4117. /* Update state machine on conversion status if not in error state */
  4118. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  4119. 80020d8: 687b ldr r3, [r7, #4]
  4120. 80020da: 6a9b ldr r3, [r3, #40] ; 0x28
  4121. 80020dc: f003 0310 and.w r3, r3, #16
  4122. 80020e0: 2b00 cmp r3, #0
  4123. 80020e2: d105 bne.n 80020f0 <HAL_ADC_IRQHandler+0x3c>
  4124. {
  4125. /* Set ADC state */
  4126. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  4127. 80020e4: 687b ldr r3, [r7, #4]
  4128. 80020e6: 6a9b ldr r3, [r3, #40] ; 0x28
  4129. 80020e8: f443 7200 orr.w r2, r3, #512 ; 0x200
  4130. 80020ec: 687b ldr r3, [r7, #4]
  4131. 80020ee: 629a str r2, [r3, #40] ; 0x28
  4132. /* Determine whether any further conversion upcoming on group regular */
  4133. /* by external trigger, continuous mode or scan sequence on going. */
  4134. /* Note: On STM32F1 devices, in case of sequencer enabled */
  4135. /* (several ranks selected), end of conversion flag is raised */
  4136. /* at the end of the sequence. */
  4137. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4138. 80020f0: 687b ldr r3, [r7, #4]
  4139. 80020f2: 681b ldr r3, [r3, #0]
  4140. 80020f4: 689b ldr r3, [r3, #8]
  4141. 80020f6: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4142. 80020fa: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4143. 80020fe: d11d bne.n 800213c <HAL_ADC_IRQHandler+0x88>
  4144. (hadc->Init.ContinuousConvMode == DISABLE) )
  4145. 8002100: 687b ldr r3, [r7, #4]
  4146. 8002102: 7b1b ldrb r3, [r3, #12]
  4147. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4148. 8002104: 2b00 cmp r3, #0
  4149. 8002106: d119 bne.n 800213c <HAL_ADC_IRQHandler+0x88>
  4150. {
  4151. /* Disable ADC end of conversion interrupt on group regular */
  4152. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
  4153. 8002108: 687b ldr r3, [r7, #4]
  4154. 800210a: 681b ldr r3, [r3, #0]
  4155. 800210c: 685a ldr r2, [r3, #4]
  4156. 800210e: 687b ldr r3, [r7, #4]
  4157. 8002110: 681b ldr r3, [r3, #0]
  4158. 8002112: f022 0220 bic.w r2, r2, #32
  4159. 8002116: 605a str r2, [r3, #4]
  4160. /* Set ADC state */
  4161. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  4162. 8002118: 687b ldr r3, [r7, #4]
  4163. 800211a: 6a9b ldr r3, [r3, #40] ; 0x28
  4164. 800211c: f423 7280 bic.w r2, r3, #256 ; 0x100
  4165. 8002120: 687b ldr r3, [r7, #4]
  4166. 8002122: 629a str r2, [r3, #40] ; 0x28
  4167. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  4168. 8002124: 687b ldr r3, [r7, #4]
  4169. 8002126: 6a9b ldr r3, [r3, #40] ; 0x28
  4170. 8002128: f403 5380 and.w r3, r3, #4096 ; 0x1000
  4171. 800212c: 2b00 cmp r3, #0
  4172. 800212e: d105 bne.n 800213c <HAL_ADC_IRQHandler+0x88>
  4173. {
  4174. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4175. 8002130: 687b ldr r3, [r7, #4]
  4176. 8002132: 6a9b ldr r3, [r3, #40] ; 0x28
  4177. 8002134: f043 0201 orr.w r2, r3, #1
  4178. 8002138: 687b ldr r3, [r7, #4]
  4179. 800213a: 629a str r2, [r3, #40] ; 0x28
  4180. /* Conversion complete callback */
  4181. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4182. hadc->ConvCpltCallback(hadc);
  4183. #else
  4184. HAL_ADC_ConvCpltCallback(hadc);
  4185. 800213c: 6878 ldr r0, [r7, #4]
  4186. 800213e: f7ff fab1 bl 80016a4 <HAL_ADC_ConvCpltCallback>
  4187. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4188. /* Clear regular group conversion flag */
  4189. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC);
  4190. 8002142: 687b ldr r3, [r7, #4]
  4191. 8002144: 681b ldr r3, [r3, #0]
  4192. 8002146: f06f 0212 mvn.w r2, #18
  4193. 800214a: 601a str r2, [r3, #0]
  4194. }
  4195. }
  4196. /* ========== Check End of Conversion flag for injected group ========== */
  4197. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_JEOC))
  4198. 800214c: 687b ldr r3, [r7, #4]
  4199. 800214e: 681b ldr r3, [r3, #0]
  4200. 8002150: 685b ldr r3, [r3, #4]
  4201. 8002152: f003 0380 and.w r3, r3, #128 ; 0x80
  4202. 8002156: 2b80 cmp r3, #128 ; 0x80
  4203. 8002158: d14f bne.n 80021fa <HAL_ADC_IRQHandler+0x146>
  4204. {
  4205. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC))
  4206. 800215a: 687b ldr r3, [r7, #4]
  4207. 800215c: 681b ldr r3, [r3, #0]
  4208. 800215e: 681b ldr r3, [r3, #0]
  4209. 8002160: f003 0304 and.w r3, r3, #4
  4210. 8002164: 2b04 cmp r3, #4
  4211. 8002166: d148 bne.n 80021fa <HAL_ADC_IRQHandler+0x146>
  4212. {
  4213. /* Update state machine on conversion status if not in error state */
  4214. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  4215. 8002168: 687b ldr r3, [r7, #4]
  4216. 800216a: 6a9b ldr r3, [r3, #40] ; 0x28
  4217. 800216c: f003 0310 and.w r3, r3, #16
  4218. 8002170: 2b00 cmp r3, #0
  4219. 8002172: d105 bne.n 8002180 <HAL_ADC_IRQHandler+0xcc>
  4220. {
  4221. /* Set ADC state */
  4222. SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC);
  4223. 8002174: 687b ldr r3, [r7, #4]
  4224. 8002176: 6a9b ldr r3, [r3, #40] ; 0x28
  4225. 8002178: f443 5200 orr.w r2, r3, #8192 ; 0x2000
  4226. 800217c: 687b ldr r3, [r7, #4]
  4227. 800217e: 629a str r2, [r3, #40] ; 0x28
  4228. /* conversion from group regular (same conditions as group regular */
  4229. /* interruption disabling above). */
  4230. /* Note: On STM32F1 devices, in case of sequencer enabled */
  4231. /* (several ranks selected), end of conversion flag is raised */
  4232. /* at the end of the sequence. */
  4233. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  4234. 8002180: 687b ldr r3, [r7, #4]
  4235. 8002182: 681b ldr r3, [r3, #0]
  4236. 8002184: 689b ldr r3, [r3, #8]
  4237. 8002186: f403 43e0 and.w r3, r3, #28672 ; 0x7000
  4238. 800218a: f5b3 4fe0 cmp.w r3, #28672 ; 0x7000
  4239. 800218e: d012 beq.n 80021b6 <HAL_ADC_IRQHandler+0x102>
  4240. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  4241. 8002190: 687b ldr r3, [r7, #4]
  4242. 8002192: 681b ldr r3, [r3, #0]
  4243. 8002194: 685b ldr r3, [r3, #4]
  4244. 8002196: f403 6380 and.w r3, r3, #1024 ; 0x400
  4245. if(ADC_IS_SOFTWARE_START_INJECTED(hadc) ||
  4246. 800219a: 2b00 cmp r3, #0
  4247. 800219c: d125 bne.n 80021ea <HAL_ADC_IRQHandler+0x136>
  4248. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4249. 800219e: 687b ldr r3, [r7, #4]
  4250. 80021a0: 681b ldr r3, [r3, #0]
  4251. 80021a2: 689b ldr r3, [r3, #8]
  4252. 80021a4: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4253. (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) &&
  4254. 80021a8: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4255. 80021ac: d11d bne.n 80021ea <HAL_ADC_IRQHandler+0x136>
  4256. (hadc->Init.ContinuousConvMode == DISABLE) ) ) )
  4257. 80021ae: 687b ldr r3, [r7, #4]
  4258. 80021b0: 7b1b ldrb r3, [r3, #12]
  4259. (ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4260. 80021b2: 2b00 cmp r3, #0
  4261. 80021b4: d119 bne.n 80021ea <HAL_ADC_IRQHandler+0x136>
  4262. {
  4263. /* Disable ADC end of conversion interrupt on group injected */
  4264. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC);
  4265. 80021b6: 687b ldr r3, [r7, #4]
  4266. 80021b8: 681b ldr r3, [r3, #0]
  4267. 80021ba: 685a ldr r2, [r3, #4]
  4268. 80021bc: 687b ldr r3, [r7, #4]
  4269. 80021be: 681b ldr r3, [r3, #0]
  4270. 80021c0: f022 0280 bic.w r2, r2, #128 ; 0x80
  4271. 80021c4: 605a str r2, [r3, #4]
  4272. /* Set ADC state */
  4273. CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY);
  4274. 80021c6: 687b ldr r3, [r7, #4]
  4275. 80021c8: 6a9b ldr r3, [r3, #40] ; 0x28
  4276. 80021ca: f423 5280 bic.w r2, r3, #4096 ; 0x1000
  4277. 80021ce: 687b ldr r3, [r7, #4]
  4278. 80021d0: 629a str r2, [r3, #40] ; 0x28
  4279. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY))
  4280. 80021d2: 687b ldr r3, [r7, #4]
  4281. 80021d4: 6a9b ldr r3, [r3, #40] ; 0x28
  4282. 80021d6: f403 7380 and.w r3, r3, #256 ; 0x100
  4283. 80021da: 2b00 cmp r3, #0
  4284. 80021dc: d105 bne.n 80021ea <HAL_ADC_IRQHandler+0x136>
  4285. {
  4286. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4287. 80021de: 687b ldr r3, [r7, #4]
  4288. 80021e0: 6a9b ldr r3, [r3, #40] ; 0x28
  4289. 80021e2: f043 0201 orr.w r2, r3, #1
  4290. 80021e6: 687b ldr r3, [r7, #4]
  4291. 80021e8: 629a str r2, [r3, #40] ; 0x28
  4292. /* Conversion complete callback */
  4293. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4294. hadc->InjectedConvCpltCallback(hadc);
  4295. #else
  4296. HAL_ADCEx_InjectedConvCpltCallback(hadc);
  4297. 80021ea: 6878 ldr r0, [r7, #4]
  4298. 80021ec: f000 fac6 bl 800277c <HAL_ADCEx_InjectedConvCpltCallback>
  4299. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4300. /* Clear injected group conversion flag */
  4301. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC));
  4302. 80021f0: 687b ldr r3, [r7, #4]
  4303. 80021f2: 681b ldr r3, [r3, #0]
  4304. 80021f4: f06f 020c mvn.w r2, #12
  4305. 80021f8: 601a str r2, [r3, #0]
  4306. }
  4307. }
  4308. /* ========== Check Analog watchdog flags ========== */
  4309. if(__HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_AWD))
  4310. 80021fa: 687b ldr r3, [r7, #4]
  4311. 80021fc: 681b ldr r3, [r3, #0]
  4312. 80021fe: 685b ldr r3, [r3, #4]
  4313. 8002200: f003 0340 and.w r3, r3, #64 ; 0x40
  4314. 8002204: 2b40 cmp r3, #64 ; 0x40
  4315. 8002206: d114 bne.n 8002232 <HAL_ADC_IRQHandler+0x17e>
  4316. {
  4317. if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD))
  4318. 8002208: 687b ldr r3, [r7, #4]
  4319. 800220a: 681b ldr r3, [r3, #0]
  4320. 800220c: 681b ldr r3, [r3, #0]
  4321. 800220e: f003 0301 and.w r3, r3, #1
  4322. 8002212: 2b01 cmp r3, #1
  4323. 8002214: d10d bne.n 8002232 <HAL_ADC_IRQHandler+0x17e>
  4324. {
  4325. /* Set ADC state */
  4326. SET_BIT(hadc->State, HAL_ADC_STATE_AWD1);
  4327. 8002216: 687b ldr r3, [r7, #4]
  4328. 8002218: 6a9b ldr r3, [r3, #40] ; 0x28
  4329. 800221a: f443 3280 orr.w r2, r3, #65536 ; 0x10000
  4330. 800221e: 687b ldr r3, [r7, #4]
  4331. 8002220: 629a str r2, [r3, #40] ; 0x28
  4332. /* Level out of window callback */
  4333. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  4334. hadc->LevelOutOfWindowCallback(hadc);
  4335. #else
  4336. HAL_ADC_LevelOutOfWindowCallback(hadc);
  4337. 8002222: 6878 ldr r0, [r7, #4]
  4338. 8002224: f000 f812 bl 800224c <HAL_ADC_LevelOutOfWindowCallback>
  4339. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4340. /* Clear the ADC analog watchdog flag */
  4341. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD);
  4342. 8002228: 687b ldr r3, [r7, #4]
  4343. 800222a: 681b ldr r3, [r3, #0]
  4344. 800222c: f06f 0201 mvn.w r2, #1
  4345. 8002230: 601a str r2, [r3, #0]
  4346. }
  4347. }
  4348. }
  4349. 8002232: bf00 nop
  4350. 8002234: 3708 adds r7, #8
  4351. 8002236: 46bd mov sp, r7
  4352. 8002238: bd80 pop {r7, pc}
  4353. 0800223a <HAL_ADC_ConvHalfCpltCallback>:
  4354. * @brief Conversion DMA half-transfer callback in non blocking mode
  4355. * @param hadc: ADC handle
  4356. * @retval None
  4357. */
  4358. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
  4359. {
  4360. 800223a: b480 push {r7}
  4361. 800223c: b083 sub sp, #12
  4362. 800223e: af00 add r7, sp, #0
  4363. 8002240: 6078 str r0, [r7, #4]
  4364. /* Prevent unused argument(s) compilation warning */
  4365. UNUSED(hadc);
  4366. /* NOTE : This function should not be modified. When the callback is needed,
  4367. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  4368. */
  4369. }
  4370. 8002242: bf00 nop
  4371. 8002244: 370c adds r7, #12
  4372. 8002246: 46bd mov sp, r7
  4373. 8002248: bc80 pop {r7}
  4374. 800224a: 4770 bx lr
  4375. 0800224c <HAL_ADC_LevelOutOfWindowCallback>:
  4376. * @brief Analog watchdog callback in non blocking mode.
  4377. * @param hadc: ADC handle
  4378. * @retval None
  4379. */
  4380. __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc)
  4381. {
  4382. 800224c: b480 push {r7}
  4383. 800224e: b083 sub sp, #12
  4384. 8002250: af00 add r7, sp, #0
  4385. 8002252: 6078 str r0, [r7, #4]
  4386. /* Prevent unused argument(s) compilation warning */
  4387. UNUSED(hadc);
  4388. /* NOTE : This function should not be modified. When the callback is needed,
  4389. function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file.
  4390. */
  4391. }
  4392. 8002254: bf00 nop
  4393. 8002256: 370c adds r7, #12
  4394. 8002258: 46bd mov sp, r7
  4395. 800225a: bc80 pop {r7}
  4396. 800225c: 4770 bx lr
  4397. 0800225e <HAL_ADC_ErrorCallback>:
  4398. * (ADC conversion with interruption or transfer by DMA)
  4399. * @param hadc: ADC handle
  4400. * @retval None
  4401. */
  4402. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  4403. {
  4404. 800225e: b480 push {r7}
  4405. 8002260: b083 sub sp, #12
  4406. 8002262: af00 add r7, sp, #0
  4407. 8002264: 6078 str r0, [r7, #4]
  4408. /* Prevent unused argument(s) compilation warning */
  4409. UNUSED(hadc);
  4410. /* NOTE : This function should not be modified. When the callback is needed,
  4411. function HAL_ADC_ErrorCallback must be implemented in the user file.
  4412. */
  4413. }
  4414. 8002266: bf00 nop
  4415. 8002268: 370c adds r7, #12
  4416. 800226a: 46bd mov sp, r7
  4417. 800226c: bc80 pop {r7}
  4418. 800226e: 4770 bx lr
  4419. 08002270 <HAL_ADC_ConfigChannel>:
  4420. * @param hadc: ADC handle
  4421. * @param sConfig: Structure of ADC channel for regular group.
  4422. * @retval HAL status
  4423. */
  4424. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
  4425. {
  4426. 8002270: b480 push {r7}
  4427. 8002272: b085 sub sp, #20
  4428. 8002274: af00 add r7, sp, #0
  4429. 8002276: 6078 str r0, [r7, #4]
  4430. 8002278: 6039 str r1, [r7, #0]
  4431. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4432. 800227a: 2300 movs r3, #0
  4433. 800227c: 73fb strb r3, [r7, #15]
  4434. __IO uint32_t wait_loop_index = 0U;
  4435. 800227e: 2300 movs r3, #0
  4436. 8002280: 60bb str r3, [r7, #8]
  4437. assert_param(IS_ADC_CHANNEL(sConfig->Channel));
  4438. assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
  4439. assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
  4440. /* Process locked */
  4441. __HAL_LOCK(hadc);
  4442. 8002282: 687b ldr r3, [r7, #4]
  4443. 8002284: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  4444. 8002288: 2b01 cmp r3, #1
  4445. 800228a: d101 bne.n 8002290 <HAL_ADC_ConfigChannel+0x20>
  4446. 800228c: 2302 movs r3, #2
  4447. 800228e: e0dc b.n 800244a <HAL_ADC_ConfigChannel+0x1da>
  4448. 8002290: 687b ldr r3, [r7, #4]
  4449. 8002292: 2201 movs r2, #1
  4450. 8002294: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4451. /* Regular sequence configuration */
  4452. /* For Rank 1 to 6 */
  4453. if (sConfig->Rank < 7U)
  4454. 8002298: 683b ldr r3, [r7, #0]
  4455. 800229a: 685b ldr r3, [r3, #4]
  4456. 800229c: 2b06 cmp r3, #6
  4457. 800229e: d81c bhi.n 80022da <HAL_ADC_ConfigChannel+0x6a>
  4458. {
  4459. MODIFY_REG(hadc->Instance->SQR3 ,
  4460. 80022a0: 687b ldr r3, [r7, #4]
  4461. 80022a2: 681b ldr r3, [r3, #0]
  4462. 80022a4: 6b59 ldr r1, [r3, #52] ; 0x34
  4463. 80022a6: 683b ldr r3, [r7, #0]
  4464. 80022a8: 685a ldr r2, [r3, #4]
  4465. 80022aa: 4613 mov r3, r2
  4466. 80022ac: 009b lsls r3, r3, #2
  4467. 80022ae: 4413 add r3, r2
  4468. 80022b0: 3b05 subs r3, #5
  4469. 80022b2: 221f movs r2, #31
  4470. 80022b4: fa02 f303 lsl.w r3, r2, r3
  4471. 80022b8: 43db mvns r3, r3
  4472. 80022ba: 4019 ands r1, r3
  4473. 80022bc: 683b ldr r3, [r7, #0]
  4474. 80022be: 6818 ldr r0, [r3, #0]
  4475. 80022c0: 683b ldr r3, [r7, #0]
  4476. 80022c2: 685a ldr r2, [r3, #4]
  4477. 80022c4: 4613 mov r3, r2
  4478. 80022c6: 009b lsls r3, r3, #2
  4479. 80022c8: 4413 add r3, r2
  4480. 80022ca: 3b05 subs r3, #5
  4481. 80022cc: fa00 f203 lsl.w r2, r0, r3
  4482. 80022d0: 687b ldr r3, [r7, #4]
  4483. 80022d2: 681b ldr r3, [r3, #0]
  4484. 80022d4: 430a orrs r2, r1
  4485. 80022d6: 635a str r2, [r3, #52] ; 0x34
  4486. 80022d8: e03c b.n 8002354 <HAL_ADC_ConfigChannel+0xe4>
  4487. ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) ,
  4488. ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
  4489. }
  4490. /* For Rank 7 to 12 */
  4491. else if (sConfig->Rank < 13U)
  4492. 80022da: 683b ldr r3, [r7, #0]
  4493. 80022dc: 685b ldr r3, [r3, #4]
  4494. 80022de: 2b0c cmp r3, #12
  4495. 80022e0: d81c bhi.n 800231c <HAL_ADC_ConfigChannel+0xac>
  4496. {
  4497. MODIFY_REG(hadc->Instance->SQR2 ,
  4498. 80022e2: 687b ldr r3, [r7, #4]
  4499. 80022e4: 681b ldr r3, [r3, #0]
  4500. 80022e6: 6b19 ldr r1, [r3, #48] ; 0x30
  4501. 80022e8: 683b ldr r3, [r7, #0]
  4502. 80022ea: 685a ldr r2, [r3, #4]
  4503. 80022ec: 4613 mov r3, r2
  4504. 80022ee: 009b lsls r3, r3, #2
  4505. 80022f0: 4413 add r3, r2
  4506. 80022f2: 3b23 subs r3, #35 ; 0x23
  4507. 80022f4: 221f movs r2, #31
  4508. 80022f6: fa02 f303 lsl.w r3, r2, r3
  4509. 80022fa: 43db mvns r3, r3
  4510. 80022fc: 4019 ands r1, r3
  4511. 80022fe: 683b ldr r3, [r7, #0]
  4512. 8002300: 6818 ldr r0, [r3, #0]
  4513. 8002302: 683b ldr r3, [r7, #0]
  4514. 8002304: 685a ldr r2, [r3, #4]
  4515. 8002306: 4613 mov r3, r2
  4516. 8002308: 009b lsls r3, r3, #2
  4517. 800230a: 4413 add r3, r2
  4518. 800230c: 3b23 subs r3, #35 ; 0x23
  4519. 800230e: fa00 f203 lsl.w r2, r0, r3
  4520. 8002312: 687b ldr r3, [r7, #4]
  4521. 8002314: 681b ldr r3, [r3, #0]
  4522. 8002316: 430a orrs r2, r1
  4523. 8002318: 631a str r2, [r3, #48] ; 0x30
  4524. 800231a: e01b b.n 8002354 <HAL_ADC_ConfigChannel+0xe4>
  4525. ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
  4526. }
  4527. /* For Rank 13 to 16 */
  4528. else
  4529. {
  4530. MODIFY_REG(hadc->Instance->SQR1 ,
  4531. 800231c: 687b ldr r3, [r7, #4]
  4532. 800231e: 681b ldr r3, [r3, #0]
  4533. 8002320: 6ad9 ldr r1, [r3, #44] ; 0x2c
  4534. 8002322: 683b ldr r3, [r7, #0]
  4535. 8002324: 685a ldr r2, [r3, #4]
  4536. 8002326: 4613 mov r3, r2
  4537. 8002328: 009b lsls r3, r3, #2
  4538. 800232a: 4413 add r3, r2
  4539. 800232c: 3b41 subs r3, #65 ; 0x41
  4540. 800232e: 221f movs r2, #31
  4541. 8002330: fa02 f303 lsl.w r3, r2, r3
  4542. 8002334: 43db mvns r3, r3
  4543. 8002336: 4019 ands r1, r3
  4544. 8002338: 683b ldr r3, [r7, #0]
  4545. 800233a: 6818 ldr r0, [r3, #0]
  4546. 800233c: 683b ldr r3, [r7, #0]
  4547. 800233e: 685a ldr r2, [r3, #4]
  4548. 8002340: 4613 mov r3, r2
  4549. 8002342: 009b lsls r3, r3, #2
  4550. 8002344: 4413 add r3, r2
  4551. 8002346: 3b41 subs r3, #65 ; 0x41
  4552. 8002348: fa00 f203 lsl.w r2, r0, r3
  4553. 800234c: 687b ldr r3, [r7, #4]
  4554. 800234e: 681b ldr r3, [r3, #0]
  4555. 8002350: 430a orrs r2, r1
  4556. 8002352: 62da str r2, [r3, #44] ; 0x2c
  4557. }
  4558. /* Channel sampling time configuration */
  4559. /* For channels 10 to 17 */
  4560. if (sConfig->Channel >= ADC_CHANNEL_10)
  4561. 8002354: 683b ldr r3, [r7, #0]
  4562. 8002356: 681b ldr r3, [r3, #0]
  4563. 8002358: 2b09 cmp r3, #9
  4564. 800235a: d91c bls.n 8002396 <HAL_ADC_ConfigChannel+0x126>
  4565. {
  4566. MODIFY_REG(hadc->Instance->SMPR1 ,
  4567. 800235c: 687b ldr r3, [r7, #4]
  4568. 800235e: 681b ldr r3, [r3, #0]
  4569. 8002360: 68d9 ldr r1, [r3, #12]
  4570. 8002362: 683b ldr r3, [r7, #0]
  4571. 8002364: 681a ldr r2, [r3, #0]
  4572. 8002366: 4613 mov r3, r2
  4573. 8002368: 005b lsls r3, r3, #1
  4574. 800236a: 4413 add r3, r2
  4575. 800236c: 3b1e subs r3, #30
  4576. 800236e: 2207 movs r2, #7
  4577. 8002370: fa02 f303 lsl.w r3, r2, r3
  4578. 8002374: 43db mvns r3, r3
  4579. 8002376: 4019 ands r1, r3
  4580. 8002378: 683b ldr r3, [r7, #0]
  4581. 800237a: 6898 ldr r0, [r3, #8]
  4582. 800237c: 683b ldr r3, [r7, #0]
  4583. 800237e: 681a ldr r2, [r3, #0]
  4584. 8002380: 4613 mov r3, r2
  4585. 8002382: 005b lsls r3, r3, #1
  4586. 8002384: 4413 add r3, r2
  4587. 8002386: 3b1e subs r3, #30
  4588. 8002388: fa00 f203 lsl.w r2, r0, r3
  4589. 800238c: 687b ldr r3, [r7, #4]
  4590. 800238e: 681b ldr r3, [r3, #0]
  4591. 8002390: 430a orrs r2, r1
  4592. 8002392: 60da str r2, [r3, #12]
  4593. 8002394: e019 b.n 80023ca <HAL_ADC_ConfigChannel+0x15a>
  4594. ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) ,
  4595. ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
  4596. }
  4597. else /* For channels 0 to 9 */
  4598. {
  4599. MODIFY_REG(hadc->Instance->SMPR2 ,
  4600. 8002396: 687b ldr r3, [r7, #4]
  4601. 8002398: 681b ldr r3, [r3, #0]
  4602. 800239a: 6919 ldr r1, [r3, #16]
  4603. 800239c: 683b ldr r3, [r7, #0]
  4604. 800239e: 681a ldr r2, [r3, #0]
  4605. 80023a0: 4613 mov r3, r2
  4606. 80023a2: 005b lsls r3, r3, #1
  4607. 80023a4: 4413 add r3, r2
  4608. 80023a6: 2207 movs r2, #7
  4609. 80023a8: fa02 f303 lsl.w r3, r2, r3
  4610. 80023ac: 43db mvns r3, r3
  4611. 80023ae: 4019 ands r1, r3
  4612. 80023b0: 683b ldr r3, [r7, #0]
  4613. 80023b2: 6898 ldr r0, [r3, #8]
  4614. 80023b4: 683b ldr r3, [r7, #0]
  4615. 80023b6: 681a ldr r2, [r3, #0]
  4616. 80023b8: 4613 mov r3, r2
  4617. 80023ba: 005b lsls r3, r3, #1
  4618. 80023bc: 4413 add r3, r2
  4619. 80023be: fa00 f203 lsl.w r2, r0, r3
  4620. 80023c2: 687b ldr r3, [r7, #4]
  4621. 80023c4: 681b ldr r3, [r3, #0]
  4622. 80023c6: 430a orrs r2, r1
  4623. 80023c8: 611a str r2, [r3, #16]
  4624. ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
  4625. }
  4626. /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
  4627. /* and VREFINT measurement path. */
  4628. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  4629. 80023ca: 683b ldr r3, [r7, #0]
  4630. 80023cc: 681b ldr r3, [r3, #0]
  4631. 80023ce: 2b10 cmp r3, #16
  4632. 80023d0: d003 beq.n 80023da <HAL_ADC_ConfigChannel+0x16a>
  4633. (sConfig->Channel == ADC_CHANNEL_VREFINT) )
  4634. 80023d2: 683b ldr r3, [r7, #0]
  4635. 80023d4: 681b ldr r3, [r3, #0]
  4636. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  4637. 80023d6: 2b11 cmp r3, #17
  4638. 80023d8: d132 bne.n 8002440 <HAL_ADC_ConfigChannel+0x1d0>
  4639. {
  4640. /* For STM32F1 devices with several ADC: Only ADC1 can access internal */
  4641. /* measurement channels (VrefInt/TempSensor). If these channels are */
  4642. /* intended to be set on other ADC instances, an error is reported. */
  4643. if (hadc->Instance == ADC1)
  4644. 80023da: 687b ldr r3, [r7, #4]
  4645. 80023dc: 681b ldr r3, [r3, #0]
  4646. 80023de: 4a1d ldr r2, [pc, #116] ; (8002454 <HAL_ADC_ConfigChannel+0x1e4>)
  4647. 80023e0: 4293 cmp r3, r2
  4648. 80023e2: d125 bne.n 8002430 <HAL_ADC_ConfigChannel+0x1c0>
  4649. {
  4650. if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET)
  4651. 80023e4: 687b ldr r3, [r7, #4]
  4652. 80023e6: 681b ldr r3, [r3, #0]
  4653. 80023e8: 689b ldr r3, [r3, #8]
  4654. 80023ea: f403 0300 and.w r3, r3, #8388608 ; 0x800000
  4655. 80023ee: 2b00 cmp r3, #0
  4656. 80023f0: d126 bne.n 8002440 <HAL_ADC_ConfigChannel+0x1d0>
  4657. {
  4658. SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE);
  4659. 80023f2: 687b ldr r3, [r7, #4]
  4660. 80023f4: 681b ldr r3, [r3, #0]
  4661. 80023f6: 689a ldr r2, [r3, #8]
  4662. 80023f8: 687b ldr r3, [r7, #4]
  4663. 80023fa: 681b ldr r3, [r3, #0]
  4664. 80023fc: f442 0200 orr.w r2, r2, #8388608 ; 0x800000
  4665. 8002400: 609a str r2, [r3, #8]
  4666. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR))
  4667. 8002402: 683b ldr r3, [r7, #0]
  4668. 8002404: 681b ldr r3, [r3, #0]
  4669. 8002406: 2b10 cmp r3, #16
  4670. 8002408: d11a bne.n 8002440 <HAL_ADC_ConfigChannel+0x1d0>
  4671. {
  4672. /* Delay for temperature sensor stabilization time */
  4673. /* Compute number of CPU cycles to wait for */
  4674. wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U));
  4675. 800240a: 4b13 ldr r3, [pc, #76] ; (8002458 <HAL_ADC_ConfigChannel+0x1e8>)
  4676. 800240c: 681b ldr r3, [r3, #0]
  4677. 800240e: 4a13 ldr r2, [pc, #76] ; (800245c <HAL_ADC_ConfigChannel+0x1ec>)
  4678. 8002410: fba2 2303 umull r2, r3, r2, r3
  4679. 8002414: 0c9a lsrs r2, r3, #18
  4680. 8002416: 4613 mov r3, r2
  4681. 8002418: 009b lsls r3, r3, #2
  4682. 800241a: 4413 add r3, r2
  4683. 800241c: 005b lsls r3, r3, #1
  4684. 800241e: 60bb str r3, [r7, #8]
  4685. while(wait_loop_index != 0U)
  4686. 8002420: e002 b.n 8002428 <HAL_ADC_ConfigChannel+0x1b8>
  4687. {
  4688. wait_loop_index--;
  4689. 8002422: 68bb ldr r3, [r7, #8]
  4690. 8002424: 3b01 subs r3, #1
  4691. 8002426: 60bb str r3, [r7, #8]
  4692. while(wait_loop_index != 0U)
  4693. 8002428: 68bb ldr r3, [r7, #8]
  4694. 800242a: 2b00 cmp r3, #0
  4695. 800242c: d1f9 bne.n 8002422 <HAL_ADC_ConfigChannel+0x1b2>
  4696. 800242e: e007 b.n 8002440 <HAL_ADC_ConfigChannel+0x1d0>
  4697. }
  4698. }
  4699. else
  4700. {
  4701. /* Update ADC state machine to error */
  4702. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  4703. 8002430: 687b ldr r3, [r7, #4]
  4704. 8002432: 6a9b ldr r3, [r3, #40] ; 0x28
  4705. 8002434: f043 0220 orr.w r2, r3, #32
  4706. 8002438: 687b ldr r3, [r7, #4]
  4707. 800243a: 629a str r2, [r3, #40] ; 0x28
  4708. tmp_hal_status = HAL_ERROR;
  4709. 800243c: 2301 movs r3, #1
  4710. 800243e: 73fb strb r3, [r7, #15]
  4711. }
  4712. }
  4713. /* Process unlocked */
  4714. __HAL_UNLOCK(hadc);
  4715. 8002440: 687b ldr r3, [r7, #4]
  4716. 8002442: 2200 movs r2, #0
  4717. 8002444: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4718. /* Return function status */
  4719. return tmp_hal_status;
  4720. 8002448: 7bfb ldrb r3, [r7, #15]
  4721. }
  4722. 800244a: 4618 mov r0, r3
  4723. 800244c: 3714 adds r7, #20
  4724. 800244e: 46bd mov sp, r7
  4725. 8002450: bc80 pop {r7}
  4726. 8002452: 4770 bx lr
  4727. 8002454: 40012400 .word 0x40012400
  4728. 8002458: 20000008 .word 0x20000008
  4729. 800245c: 431bde83 .word 0x431bde83
  4730. 08002460 <ADC_Enable>:
  4731. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  4732. * @param hadc: ADC handle
  4733. * @retval HAL status.
  4734. */
  4735. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
  4736. {
  4737. 8002460: b580 push {r7, lr}
  4738. 8002462: b084 sub sp, #16
  4739. 8002464: af00 add r7, sp, #0
  4740. 8002466: 6078 str r0, [r7, #4]
  4741. uint32_t tickstart = 0U;
  4742. 8002468: 2300 movs r3, #0
  4743. 800246a: 60fb str r3, [r7, #12]
  4744. __IO uint32_t wait_loop_index = 0U;
  4745. 800246c: 2300 movs r3, #0
  4746. 800246e: 60bb str r3, [r7, #8]
  4747. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  4748. /* enabling phase not yet completed: flag ADC ready not yet set). */
  4749. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  4750. /* causes: ADC clock not running, ...). */
  4751. if (ADC_IS_ENABLE(hadc) == RESET)
  4752. 8002470: 687b ldr r3, [r7, #4]
  4753. 8002472: 681b ldr r3, [r3, #0]
  4754. 8002474: 689b ldr r3, [r3, #8]
  4755. 8002476: f003 0301 and.w r3, r3, #1
  4756. 800247a: 2b01 cmp r3, #1
  4757. 800247c: d039 beq.n 80024f2 <ADC_Enable+0x92>
  4758. {
  4759. /* Enable the Peripheral */
  4760. __HAL_ADC_ENABLE(hadc);
  4761. 800247e: 687b ldr r3, [r7, #4]
  4762. 8002480: 681b ldr r3, [r3, #0]
  4763. 8002482: 689a ldr r2, [r3, #8]
  4764. 8002484: 687b ldr r3, [r7, #4]
  4765. 8002486: 681b ldr r3, [r3, #0]
  4766. 8002488: f042 0201 orr.w r2, r2, #1
  4767. 800248c: 609a str r2, [r3, #8]
  4768. /* Delay for ADC stabilization time */
  4769. /* Compute number of CPU cycles to wait for */
  4770. wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U));
  4771. 800248e: 4b1b ldr r3, [pc, #108] ; (80024fc <ADC_Enable+0x9c>)
  4772. 8002490: 681b ldr r3, [r3, #0]
  4773. 8002492: 4a1b ldr r2, [pc, #108] ; (8002500 <ADC_Enable+0xa0>)
  4774. 8002494: fba2 2303 umull r2, r3, r2, r3
  4775. 8002498: 0c9b lsrs r3, r3, #18
  4776. 800249a: 60bb str r3, [r7, #8]
  4777. while(wait_loop_index != 0U)
  4778. 800249c: e002 b.n 80024a4 <ADC_Enable+0x44>
  4779. {
  4780. wait_loop_index--;
  4781. 800249e: 68bb ldr r3, [r7, #8]
  4782. 80024a0: 3b01 subs r3, #1
  4783. 80024a2: 60bb str r3, [r7, #8]
  4784. while(wait_loop_index != 0U)
  4785. 80024a4: 68bb ldr r3, [r7, #8]
  4786. 80024a6: 2b00 cmp r3, #0
  4787. 80024a8: d1f9 bne.n 800249e <ADC_Enable+0x3e>
  4788. }
  4789. /* Get tick count */
  4790. tickstart = HAL_GetTick();
  4791. 80024aa: f7ff fc65 bl 8001d78 <HAL_GetTick>
  4792. 80024ae: 60f8 str r0, [r7, #12]
  4793. /* Wait for ADC effectively enabled */
  4794. while(ADC_IS_ENABLE(hadc) == RESET)
  4795. 80024b0: e018 b.n 80024e4 <ADC_Enable+0x84>
  4796. {
  4797. if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  4798. 80024b2: f7ff fc61 bl 8001d78 <HAL_GetTick>
  4799. 80024b6: 4602 mov r2, r0
  4800. 80024b8: 68fb ldr r3, [r7, #12]
  4801. 80024ba: 1ad3 subs r3, r2, r3
  4802. 80024bc: 2b02 cmp r3, #2
  4803. 80024be: d911 bls.n 80024e4 <ADC_Enable+0x84>
  4804. {
  4805. /* Update ADC state machine to error */
  4806. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  4807. 80024c0: 687b ldr r3, [r7, #4]
  4808. 80024c2: 6a9b ldr r3, [r3, #40] ; 0x28
  4809. 80024c4: f043 0210 orr.w r2, r3, #16
  4810. 80024c8: 687b ldr r3, [r7, #4]
  4811. 80024ca: 629a str r2, [r3, #40] ; 0x28
  4812. /* Set ADC error code to ADC IP internal error */
  4813. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4814. 80024cc: 687b ldr r3, [r7, #4]
  4815. 80024ce: 6adb ldr r3, [r3, #44] ; 0x2c
  4816. 80024d0: f043 0201 orr.w r2, r3, #1
  4817. 80024d4: 687b ldr r3, [r7, #4]
  4818. 80024d6: 62da str r2, [r3, #44] ; 0x2c
  4819. /* Process unlocked */
  4820. __HAL_UNLOCK(hadc);
  4821. 80024d8: 687b ldr r3, [r7, #4]
  4822. 80024da: 2200 movs r2, #0
  4823. 80024dc: f883 2024 strb.w r2, [r3, #36] ; 0x24
  4824. return HAL_ERROR;
  4825. 80024e0: 2301 movs r3, #1
  4826. 80024e2: e007 b.n 80024f4 <ADC_Enable+0x94>
  4827. while(ADC_IS_ENABLE(hadc) == RESET)
  4828. 80024e4: 687b ldr r3, [r7, #4]
  4829. 80024e6: 681b ldr r3, [r3, #0]
  4830. 80024e8: 689b ldr r3, [r3, #8]
  4831. 80024ea: f003 0301 and.w r3, r3, #1
  4832. 80024ee: 2b01 cmp r3, #1
  4833. 80024f0: d1df bne.n 80024b2 <ADC_Enable+0x52>
  4834. }
  4835. }
  4836. }
  4837. /* Return HAL status */
  4838. return HAL_OK;
  4839. 80024f2: 2300 movs r3, #0
  4840. }
  4841. 80024f4: 4618 mov r0, r3
  4842. 80024f6: 3710 adds r7, #16
  4843. 80024f8: 46bd mov sp, r7
  4844. 80024fa: bd80 pop {r7, pc}
  4845. 80024fc: 20000008 .word 0x20000008
  4846. 8002500: 431bde83 .word 0x431bde83
  4847. 08002504 <ADC_ConversionStop_Disable>:
  4848. * stopped to disable the ADC.
  4849. * @param hadc: ADC handle
  4850. * @retval HAL status.
  4851. */
  4852. HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
  4853. {
  4854. 8002504: b580 push {r7, lr}
  4855. 8002506: b084 sub sp, #16
  4856. 8002508: af00 add r7, sp, #0
  4857. 800250a: 6078 str r0, [r7, #4]
  4858. uint32_t tickstart = 0U;
  4859. 800250c: 2300 movs r3, #0
  4860. 800250e: 60fb str r3, [r7, #12]
  4861. /* Verification if ADC is not already disabled */
  4862. if (ADC_IS_ENABLE(hadc) != RESET)
  4863. 8002510: 687b ldr r3, [r7, #4]
  4864. 8002512: 681b ldr r3, [r3, #0]
  4865. 8002514: 689b ldr r3, [r3, #8]
  4866. 8002516: f003 0301 and.w r3, r3, #1
  4867. 800251a: 2b01 cmp r3, #1
  4868. 800251c: d127 bne.n 800256e <ADC_ConversionStop_Disable+0x6a>
  4869. {
  4870. /* Disable the ADC peripheral */
  4871. __HAL_ADC_DISABLE(hadc);
  4872. 800251e: 687b ldr r3, [r7, #4]
  4873. 8002520: 681b ldr r3, [r3, #0]
  4874. 8002522: 689a ldr r2, [r3, #8]
  4875. 8002524: 687b ldr r3, [r7, #4]
  4876. 8002526: 681b ldr r3, [r3, #0]
  4877. 8002528: f022 0201 bic.w r2, r2, #1
  4878. 800252c: 609a str r2, [r3, #8]
  4879. /* Get tick count */
  4880. tickstart = HAL_GetTick();
  4881. 800252e: f7ff fc23 bl 8001d78 <HAL_GetTick>
  4882. 8002532: 60f8 str r0, [r7, #12]
  4883. /* Wait for ADC effectively disabled */
  4884. while(ADC_IS_ENABLE(hadc) != RESET)
  4885. 8002534: e014 b.n 8002560 <ADC_ConversionStop_Disable+0x5c>
  4886. {
  4887. if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  4888. 8002536: f7ff fc1f bl 8001d78 <HAL_GetTick>
  4889. 800253a: 4602 mov r2, r0
  4890. 800253c: 68fb ldr r3, [r7, #12]
  4891. 800253e: 1ad3 subs r3, r2, r3
  4892. 8002540: 2b02 cmp r3, #2
  4893. 8002542: d90d bls.n 8002560 <ADC_ConversionStop_Disable+0x5c>
  4894. {
  4895. /* Update ADC state machine to error */
  4896. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  4897. 8002544: 687b ldr r3, [r7, #4]
  4898. 8002546: 6a9b ldr r3, [r3, #40] ; 0x28
  4899. 8002548: f043 0210 orr.w r2, r3, #16
  4900. 800254c: 687b ldr r3, [r7, #4]
  4901. 800254e: 629a str r2, [r3, #40] ; 0x28
  4902. /* Set ADC error code to ADC IP internal error */
  4903. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4904. 8002550: 687b ldr r3, [r7, #4]
  4905. 8002552: 6adb ldr r3, [r3, #44] ; 0x2c
  4906. 8002554: f043 0201 orr.w r2, r3, #1
  4907. 8002558: 687b ldr r3, [r7, #4]
  4908. 800255a: 62da str r2, [r3, #44] ; 0x2c
  4909. return HAL_ERROR;
  4910. 800255c: 2301 movs r3, #1
  4911. 800255e: e007 b.n 8002570 <ADC_ConversionStop_Disable+0x6c>
  4912. while(ADC_IS_ENABLE(hadc) != RESET)
  4913. 8002560: 687b ldr r3, [r7, #4]
  4914. 8002562: 681b ldr r3, [r3, #0]
  4915. 8002564: 689b ldr r3, [r3, #8]
  4916. 8002566: f003 0301 and.w r3, r3, #1
  4917. 800256a: 2b01 cmp r3, #1
  4918. 800256c: d0e3 beq.n 8002536 <ADC_ConversionStop_Disable+0x32>
  4919. }
  4920. }
  4921. }
  4922. /* Return HAL status */
  4923. return HAL_OK;
  4924. 800256e: 2300 movs r3, #0
  4925. }
  4926. 8002570: 4618 mov r0, r3
  4927. 8002572: 3710 adds r7, #16
  4928. 8002574: 46bd mov sp, r7
  4929. 8002576: bd80 pop {r7, pc}
  4930. 08002578 <ADC_DMAConvCplt>:
  4931. * @brief DMA transfer complete callback.
  4932. * @param hdma: pointer to DMA handle.
  4933. * @retval None
  4934. */
  4935. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  4936. {
  4937. 8002578: b580 push {r7, lr}
  4938. 800257a: b084 sub sp, #16
  4939. 800257c: af00 add r7, sp, #0
  4940. 800257e: 6078 str r0, [r7, #4]
  4941. /* Retrieve ADC handle corresponding to current DMA handle */
  4942. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  4943. 8002580: 687b ldr r3, [r7, #4]
  4944. 8002582: 6a5b ldr r3, [r3, #36] ; 0x24
  4945. 8002584: 60fb str r3, [r7, #12]
  4946. /* Update state machine on conversion status if not in error state */
  4947. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
  4948. 8002586: 68fb ldr r3, [r7, #12]
  4949. 8002588: 6a9b ldr r3, [r3, #40] ; 0x28
  4950. 800258a: f003 0350 and.w r3, r3, #80 ; 0x50
  4951. 800258e: 2b00 cmp r3, #0
  4952. 8002590: d127 bne.n 80025e2 <ADC_DMAConvCplt+0x6a>
  4953. {
  4954. /* Update ADC state machine */
  4955. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  4956. 8002592: 68fb ldr r3, [r7, #12]
  4957. 8002594: 6a9b ldr r3, [r3, #40] ; 0x28
  4958. 8002596: f443 7200 orr.w r2, r3, #512 ; 0x200
  4959. 800259a: 68fb ldr r3, [r7, #12]
  4960. 800259c: 629a str r2, [r3, #40] ; 0x28
  4961. /* Determine whether any further conversion upcoming on group regular */
  4962. /* by external trigger, continuous mode or scan sequence on going. */
  4963. /* Note: On STM32F1 devices, in case of sequencer enabled */
  4964. /* (several ranks selected), end of conversion flag is raised */
  4965. /* at the end of the sequence. */
  4966. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4967. 800259e: 68fb ldr r3, [r7, #12]
  4968. 80025a0: 681b ldr r3, [r3, #0]
  4969. 80025a2: 689b ldr r3, [r3, #8]
  4970. 80025a4: f403 2360 and.w r3, r3, #917504 ; 0xe0000
  4971. 80025a8: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000
  4972. 80025ac: d115 bne.n 80025da <ADC_DMAConvCplt+0x62>
  4973. (hadc->Init.ContinuousConvMode == DISABLE) )
  4974. 80025ae: 68fb ldr r3, [r7, #12]
  4975. 80025b0: 7b1b ldrb r3, [r3, #12]
  4976. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  4977. 80025b2: 2b00 cmp r3, #0
  4978. 80025b4: d111 bne.n 80025da <ADC_DMAConvCplt+0x62>
  4979. {
  4980. /* Set ADC state */
  4981. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  4982. 80025b6: 68fb ldr r3, [r7, #12]
  4983. 80025b8: 6a9b ldr r3, [r3, #40] ; 0x28
  4984. 80025ba: f423 7280 bic.w r2, r3, #256 ; 0x100
  4985. 80025be: 68fb ldr r3, [r7, #12]
  4986. 80025c0: 629a str r2, [r3, #40] ; 0x28
  4987. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  4988. 80025c2: 68fb ldr r3, [r7, #12]
  4989. 80025c4: 6a9b ldr r3, [r3, #40] ; 0x28
  4990. 80025c6: f403 5380 and.w r3, r3, #4096 ; 0x1000
  4991. 80025ca: 2b00 cmp r3, #0
  4992. 80025cc: d105 bne.n 80025da <ADC_DMAConvCplt+0x62>
  4993. {
  4994. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  4995. 80025ce: 68fb ldr r3, [r7, #12]
  4996. 80025d0: 6a9b ldr r3, [r3, #40] ; 0x28
  4997. 80025d2: f043 0201 orr.w r2, r3, #1
  4998. 80025d6: 68fb ldr r3, [r7, #12]
  4999. 80025d8: 629a str r2, [r3, #40] ; 0x28
  5000. /* Conversion complete callback */
  5001. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  5002. hadc->ConvCpltCallback(hadc);
  5003. #else
  5004. HAL_ADC_ConvCpltCallback(hadc);
  5005. 80025da: 68f8 ldr r0, [r7, #12]
  5006. 80025dc: f7ff f862 bl 80016a4 <HAL_ADC_ConvCpltCallback>
  5007. else
  5008. {
  5009. /* Call DMA error callback */
  5010. hadc->DMA_Handle->XferErrorCallback(hdma);
  5011. }
  5012. }
  5013. 80025e0: e004 b.n 80025ec <ADC_DMAConvCplt+0x74>
  5014. hadc->DMA_Handle->XferErrorCallback(hdma);
  5015. 80025e2: 68fb ldr r3, [r7, #12]
  5016. 80025e4: 6a1b ldr r3, [r3, #32]
  5017. 80025e6: 6b1b ldr r3, [r3, #48] ; 0x30
  5018. 80025e8: 6878 ldr r0, [r7, #4]
  5019. 80025ea: 4798 blx r3
  5020. }
  5021. 80025ec: bf00 nop
  5022. 80025ee: 3710 adds r7, #16
  5023. 80025f0: 46bd mov sp, r7
  5024. 80025f2: bd80 pop {r7, pc}
  5025. 080025f4 <ADC_DMAHalfConvCplt>:
  5026. * @brief DMA half transfer complete callback.
  5027. * @param hdma: pointer to DMA handle.
  5028. * @retval None
  5029. */
  5030. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  5031. {
  5032. 80025f4: b580 push {r7, lr}
  5033. 80025f6: b084 sub sp, #16
  5034. 80025f8: af00 add r7, sp, #0
  5035. 80025fa: 6078 str r0, [r7, #4]
  5036. /* Retrieve ADC handle corresponding to current DMA handle */
  5037. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  5038. 80025fc: 687b ldr r3, [r7, #4]
  5039. 80025fe: 6a5b ldr r3, [r3, #36] ; 0x24
  5040. 8002600: 60fb str r3, [r7, #12]
  5041. /* Half conversion callback */
  5042. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  5043. hadc->ConvHalfCpltCallback(hadc);
  5044. #else
  5045. HAL_ADC_ConvHalfCpltCallback(hadc);
  5046. 8002602: 68f8 ldr r0, [r7, #12]
  5047. 8002604: f7ff fe19 bl 800223a <HAL_ADC_ConvHalfCpltCallback>
  5048. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  5049. }
  5050. 8002608: bf00 nop
  5051. 800260a: 3710 adds r7, #16
  5052. 800260c: 46bd mov sp, r7
  5053. 800260e: bd80 pop {r7, pc}
  5054. 08002610 <ADC_DMAError>:
  5055. * @brief DMA error callback
  5056. * @param hdma: pointer to DMA handle.
  5057. * @retval None
  5058. */
  5059. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  5060. {
  5061. 8002610: b580 push {r7, lr}
  5062. 8002612: b084 sub sp, #16
  5063. 8002614: af00 add r7, sp, #0
  5064. 8002616: 6078 str r0, [r7, #4]
  5065. /* Retrieve ADC handle corresponding to current DMA handle */
  5066. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  5067. 8002618: 687b ldr r3, [r7, #4]
  5068. 800261a: 6a5b ldr r3, [r3, #36] ; 0x24
  5069. 800261c: 60fb str r3, [r7, #12]
  5070. /* Set ADC state */
  5071. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  5072. 800261e: 68fb ldr r3, [r7, #12]
  5073. 8002620: 6a9b ldr r3, [r3, #40] ; 0x28
  5074. 8002622: f043 0240 orr.w r2, r3, #64 ; 0x40
  5075. 8002626: 68fb ldr r3, [r7, #12]
  5076. 8002628: 629a str r2, [r3, #40] ; 0x28
  5077. /* Set ADC error code to DMA error */
  5078. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  5079. 800262a: 68fb ldr r3, [r7, #12]
  5080. 800262c: 6adb ldr r3, [r3, #44] ; 0x2c
  5081. 800262e: f043 0204 orr.w r2, r3, #4
  5082. 8002632: 68fb ldr r3, [r7, #12]
  5083. 8002634: 62da str r2, [r3, #44] ; 0x2c
  5084. /* Error callback */
  5085. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  5086. hadc->ErrorCallback(hadc);
  5087. #else
  5088. HAL_ADC_ErrorCallback(hadc);
  5089. 8002636: 68f8 ldr r0, [r7, #12]
  5090. 8002638: f7ff fe11 bl 800225e <HAL_ADC_ErrorCallback>
  5091. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  5092. }
  5093. 800263c: bf00 nop
  5094. 800263e: 3710 adds r7, #16
  5095. 8002640: 46bd mov sp, r7
  5096. 8002642: bd80 pop {r7, pc}
  5097. 08002644 <HAL_ADCEx_Calibration_Start>:
  5098. * the completion of this function.
  5099. * @param hadc: ADC handle
  5100. * @retval HAL status
  5101. */
  5102. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc)
  5103. {
  5104. 8002644: b590 push {r4, r7, lr}
  5105. 8002646: b087 sub sp, #28
  5106. 8002648: af00 add r7, sp, #0
  5107. 800264a: 6078 str r0, [r7, #4]
  5108. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  5109. 800264c: 2300 movs r3, #0
  5110. 800264e: 75fb strb r3, [r7, #23]
  5111. uint32_t tickstart;
  5112. __IO uint32_t wait_loop_index = 0U;
  5113. 8002650: 2300 movs r3, #0
  5114. 8002652: 60fb str r3, [r7, #12]
  5115. /* Check the parameters */
  5116. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  5117. /* Process locked */
  5118. __HAL_LOCK(hadc);
  5119. 8002654: 687b ldr r3, [r7, #4]
  5120. 8002656: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  5121. 800265a: 2b01 cmp r3, #1
  5122. 800265c: d101 bne.n 8002662 <HAL_ADCEx_Calibration_Start+0x1e>
  5123. 800265e: 2302 movs r3, #2
  5124. 8002660: e086 b.n 8002770 <HAL_ADCEx_Calibration_Start+0x12c>
  5125. 8002662: 687b ldr r3, [r7, #4]
  5126. 8002664: 2201 movs r2, #1
  5127. 8002666: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5128. /* 1. Calibration prerequisite: */
  5129. /* - ADC must be disabled for at least two ADC clock cycles in disable */
  5130. /* mode before ADC enable */
  5131. /* Stop potential conversion on going, on regular and injected groups */
  5132. /* Disable ADC peripheral */
  5133. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  5134. 800266a: 6878 ldr r0, [r7, #4]
  5135. 800266c: f7ff ff4a bl 8002504 <ADC_ConversionStop_Disable>
  5136. 8002670: 4603 mov r3, r0
  5137. 8002672: 75fb strb r3, [r7, #23]
  5138. /* Check if ADC is effectively disabled */
  5139. if (tmp_hal_status == HAL_OK)
  5140. 8002674: 7dfb ldrb r3, [r7, #23]
  5141. 8002676: 2b00 cmp r3, #0
  5142. 8002678: d175 bne.n 8002766 <HAL_ADCEx_Calibration_Start+0x122>
  5143. {
  5144. /* Set ADC state */
  5145. ADC_STATE_CLR_SET(hadc->State,
  5146. 800267a: 687b ldr r3, [r7, #4]
  5147. 800267c: 6a9b ldr r3, [r3, #40] ; 0x28
  5148. 800267e: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  5149. 8002682: f023 0302 bic.w r3, r3, #2
  5150. 8002686: f043 0202 orr.w r2, r3, #2
  5151. 800268a: 687b ldr r3, [r7, #4]
  5152. 800268c: 629a str r2, [r3, #40] ; 0x28
  5153. /* Hardware prerequisite: delay before starting the calibration. */
  5154. /* - Computation of CPU clock cycles corresponding to ADC clock cycles. */
  5155. /* - Wait for the expected ADC clock cycles delay */
  5156. wait_loop_index = ((SystemCoreClock
  5157. / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC))
  5158. 800268e: 4b3a ldr r3, [pc, #232] ; (8002778 <HAL_ADCEx_Calibration_Start+0x134>)
  5159. 8002690: 681c ldr r4, [r3, #0]
  5160. 8002692: 2002 movs r0, #2
  5161. 8002694: f001 fc20 bl 8003ed8 <HAL_RCCEx_GetPeriphCLKFreq>
  5162. 8002698: 4603 mov r3, r0
  5163. 800269a: fbb4 f3f3 udiv r3, r4, r3
  5164. * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES );
  5165. 800269e: 005b lsls r3, r3, #1
  5166. wait_loop_index = ((SystemCoreClock
  5167. 80026a0: 60fb str r3, [r7, #12]
  5168. while(wait_loop_index != 0U)
  5169. 80026a2: e002 b.n 80026aa <HAL_ADCEx_Calibration_Start+0x66>
  5170. {
  5171. wait_loop_index--;
  5172. 80026a4: 68fb ldr r3, [r7, #12]
  5173. 80026a6: 3b01 subs r3, #1
  5174. 80026a8: 60fb str r3, [r7, #12]
  5175. while(wait_loop_index != 0U)
  5176. 80026aa: 68fb ldr r3, [r7, #12]
  5177. 80026ac: 2b00 cmp r3, #0
  5178. 80026ae: d1f9 bne.n 80026a4 <HAL_ADCEx_Calibration_Start+0x60>
  5179. }
  5180. /* 2. Enable the ADC peripheral */
  5181. ADC_Enable(hadc);
  5182. 80026b0: 6878 ldr r0, [r7, #4]
  5183. 80026b2: f7ff fed5 bl 8002460 <ADC_Enable>
  5184. /* 3. Resets ADC calibration registers */
  5185. SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL);
  5186. 80026b6: 687b ldr r3, [r7, #4]
  5187. 80026b8: 681b ldr r3, [r3, #0]
  5188. 80026ba: 689a ldr r2, [r3, #8]
  5189. 80026bc: 687b ldr r3, [r7, #4]
  5190. 80026be: 681b ldr r3, [r3, #0]
  5191. 80026c0: f042 0208 orr.w r2, r2, #8
  5192. 80026c4: 609a str r2, [r3, #8]
  5193. tickstart = HAL_GetTick();
  5194. 80026c6: f7ff fb57 bl 8001d78 <HAL_GetTick>
  5195. 80026ca: 6138 str r0, [r7, #16]
  5196. /* Wait for calibration reset completion */
  5197. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  5198. 80026cc: e014 b.n 80026f8 <HAL_ADCEx_Calibration_Start+0xb4>
  5199. {
  5200. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  5201. 80026ce: f7ff fb53 bl 8001d78 <HAL_GetTick>
  5202. 80026d2: 4602 mov r2, r0
  5203. 80026d4: 693b ldr r3, [r7, #16]
  5204. 80026d6: 1ad3 subs r3, r2, r3
  5205. 80026d8: 2b0a cmp r3, #10
  5206. 80026da: d90d bls.n 80026f8 <HAL_ADCEx_Calibration_Start+0xb4>
  5207. {
  5208. /* Update ADC state machine to error */
  5209. ADC_STATE_CLR_SET(hadc->State,
  5210. 80026dc: 687b ldr r3, [r7, #4]
  5211. 80026de: 6a9b ldr r3, [r3, #40] ; 0x28
  5212. 80026e0: f023 0312 bic.w r3, r3, #18
  5213. 80026e4: f043 0210 orr.w r2, r3, #16
  5214. 80026e8: 687b ldr r3, [r7, #4]
  5215. 80026ea: 629a str r2, [r3, #40] ; 0x28
  5216. HAL_ADC_STATE_BUSY_INTERNAL,
  5217. HAL_ADC_STATE_ERROR_INTERNAL);
  5218. /* Process unlocked */
  5219. __HAL_UNLOCK(hadc);
  5220. 80026ec: 687b ldr r3, [r7, #4]
  5221. 80026ee: 2200 movs r2, #0
  5222. 80026f0: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5223. return HAL_ERROR;
  5224. 80026f4: 2301 movs r3, #1
  5225. 80026f6: e03b b.n 8002770 <HAL_ADCEx_Calibration_Start+0x12c>
  5226. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL))
  5227. 80026f8: 687b ldr r3, [r7, #4]
  5228. 80026fa: 681b ldr r3, [r3, #0]
  5229. 80026fc: 689b ldr r3, [r3, #8]
  5230. 80026fe: f003 0308 and.w r3, r3, #8
  5231. 8002702: 2b00 cmp r3, #0
  5232. 8002704: d1e3 bne.n 80026ce <HAL_ADCEx_Calibration_Start+0x8a>
  5233. }
  5234. }
  5235. /* 4. Start ADC calibration */
  5236. SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL);
  5237. 8002706: 687b ldr r3, [r7, #4]
  5238. 8002708: 681b ldr r3, [r3, #0]
  5239. 800270a: 689a ldr r2, [r3, #8]
  5240. 800270c: 687b ldr r3, [r7, #4]
  5241. 800270e: 681b ldr r3, [r3, #0]
  5242. 8002710: f042 0204 orr.w r2, r2, #4
  5243. 8002714: 609a str r2, [r3, #8]
  5244. tickstart = HAL_GetTick();
  5245. 8002716: f7ff fb2f bl 8001d78 <HAL_GetTick>
  5246. 800271a: 6138 str r0, [r7, #16]
  5247. /* Wait for calibration completion */
  5248. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  5249. 800271c: e014 b.n 8002748 <HAL_ADCEx_Calibration_Start+0x104>
  5250. {
  5251. if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT)
  5252. 800271e: f7ff fb2b bl 8001d78 <HAL_GetTick>
  5253. 8002722: 4602 mov r2, r0
  5254. 8002724: 693b ldr r3, [r7, #16]
  5255. 8002726: 1ad3 subs r3, r2, r3
  5256. 8002728: 2b0a cmp r3, #10
  5257. 800272a: d90d bls.n 8002748 <HAL_ADCEx_Calibration_Start+0x104>
  5258. {
  5259. /* Update ADC state machine to error */
  5260. ADC_STATE_CLR_SET(hadc->State,
  5261. 800272c: 687b ldr r3, [r7, #4]
  5262. 800272e: 6a9b ldr r3, [r3, #40] ; 0x28
  5263. 8002730: f023 0312 bic.w r3, r3, #18
  5264. 8002734: f043 0210 orr.w r2, r3, #16
  5265. 8002738: 687b ldr r3, [r7, #4]
  5266. 800273a: 629a str r2, [r3, #40] ; 0x28
  5267. HAL_ADC_STATE_BUSY_INTERNAL,
  5268. HAL_ADC_STATE_ERROR_INTERNAL);
  5269. /* Process unlocked */
  5270. __HAL_UNLOCK(hadc);
  5271. 800273c: 687b ldr r3, [r7, #4]
  5272. 800273e: 2200 movs r2, #0
  5273. 8002740: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5274. return HAL_ERROR;
  5275. 8002744: 2301 movs r3, #1
  5276. 8002746: e013 b.n 8002770 <HAL_ADCEx_Calibration_Start+0x12c>
  5277. while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL))
  5278. 8002748: 687b ldr r3, [r7, #4]
  5279. 800274a: 681b ldr r3, [r3, #0]
  5280. 800274c: 689b ldr r3, [r3, #8]
  5281. 800274e: f003 0304 and.w r3, r3, #4
  5282. 8002752: 2b00 cmp r3, #0
  5283. 8002754: d1e3 bne.n 800271e <HAL_ADCEx_Calibration_Start+0xda>
  5284. }
  5285. }
  5286. /* Set ADC state */
  5287. ADC_STATE_CLR_SET(hadc->State,
  5288. 8002756: 687b ldr r3, [r7, #4]
  5289. 8002758: 6a9b ldr r3, [r3, #40] ; 0x28
  5290. 800275a: f023 0303 bic.w r3, r3, #3
  5291. 800275e: f043 0201 orr.w r2, r3, #1
  5292. 8002762: 687b ldr r3, [r7, #4]
  5293. 8002764: 629a str r2, [r3, #40] ; 0x28
  5294. HAL_ADC_STATE_BUSY_INTERNAL,
  5295. HAL_ADC_STATE_READY);
  5296. }
  5297. /* Process unlocked */
  5298. __HAL_UNLOCK(hadc);
  5299. 8002766: 687b ldr r3, [r7, #4]
  5300. 8002768: 2200 movs r2, #0
  5301. 800276a: f883 2024 strb.w r2, [r3, #36] ; 0x24
  5302. /* Return function status */
  5303. return tmp_hal_status;
  5304. 800276e: 7dfb ldrb r3, [r7, #23]
  5305. }
  5306. 8002770: 4618 mov r0, r3
  5307. 8002772: 371c adds r7, #28
  5308. 8002774: 46bd mov sp, r7
  5309. 8002776: bd90 pop {r4, r7, pc}
  5310. 8002778: 20000008 .word 0x20000008
  5311. 0800277c <HAL_ADCEx_InjectedConvCpltCallback>:
  5312. * @brief Injected conversion complete callback in non blocking mode
  5313. * @param hadc: ADC handle
  5314. * @retval None
  5315. */
  5316. __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc)
  5317. {
  5318. 800277c: b480 push {r7}
  5319. 800277e: b083 sub sp, #12
  5320. 8002780: af00 add r7, sp, #0
  5321. 8002782: 6078 str r0, [r7, #4]
  5322. /* Prevent unused argument(s) compilation warning */
  5323. UNUSED(hadc);
  5324. /* NOTE : This function Should not be modified, when the callback is needed,
  5325. the HAL_ADCEx_InjectedConvCpltCallback could be implemented in the user file
  5326. */
  5327. }
  5328. 8002784: bf00 nop
  5329. 8002786: 370c adds r7, #12
  5330. 8002788: 46bd mov sp, r7
  5331. 800278a: bc80 pop {r7}
  5332. 800278c: 4770 bx lr
  5333. ...
  5334. 08002790 <__NVIC_SetPriorityGrouping>:
  5335. In case of a conflict between priority grouping and available
  5336. priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
  5337. \param [in] PriorityGroup Priority grouping field.
  5338. */
  5339. __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  5340. {
  5341. 8002790: b480 push {r7}
  5342. 8002792: b085 sub sp, #20
  5343. 8002794: af00 add r7, sp, #0
  5344. 8002796: 6078 str r0, [r7, #4]
  5345. uint32_t reg_value;
  5346. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  5347. 8002798: 687b ldr r3, [r7, #4]
  5348. 800279a: f003 0307 and.w r3, r3, #7
  5349. 800279e: 60fb str r3, [r7, #12]
  5350. reg_value = SCB->AIRCR; /* read old register configuration */
  5351. 80027a0: 4b0c ldr r3, [pc, #48] ; (80027d4 <__NVIC_SetPriorityGrouping+0x44>)
  5352. 80027a2: 68db ldr r3, [r3, #12]
  5353. 80027a4: 60bb str r3, [r7, #8]
  5354. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  5355. 80027a6: 68ba ldr r2, [r7, #8]
  5356. 80027a8: f64f 03ff movw r3, #63743 ; 0xf8ff
  5357. 80027ac: 4013 ands r3, r2
  5358. 80027ae: 60bb str r3, [r7, #8]
  5359. reg_value = (reg_value |
  5360. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  5361. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  5362. 80027b0: 68fb ldr r3, [r7, #12]
  5363. 80027b2: 021a lsls r2, r3, #8
  5364. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  5365. 80027b4: 68bb ldr r3, [r7, #8]
  5366. 80027b6: 4313 orrs r3, r2
  5367. reg_value = (reg_value |
  5368. 80027b8: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  5369. 80027bc: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  5370. 80027c0: 60bb str r3, [r7, #8]
  5371. SCB->AIRCR = reg_value;
  5372. 80027c2: 4a04 ldr r2, [pc, #16] ; (80027d4 <__NVIC_SetPriorityGrouping+0x44>)
  5373. 80027c4: 68bb ldr r3, [r7, #8]
  5374. 80027c6: 60d3 str r3, [r2, #12]
  5375. }
  5376. 80027c8: bf00 nop
  5377. 80027ca: 3714 adds r7, #20
  5378. 80027cc: 46bd mov sp, r7
  5379. 80027ce: bc80 pop {r7}
  5380. 80027d0: 4770 bx lr
  5381. 80027d2: bf00 nop
  5382. 80027d4: e000ed00 .word 0xe000ed00
  5383. 080027d8 <__NVIC_GetPriorityGrouping>:
  5384. \brief Get Priority Grouping
  5385. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  5386. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  5387. */
  5388. __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
  5389. {
  5390. 80027d8: b480 push {r7}
  5391. 80027da: af00 add r7, sp, #0
  5392. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  5393. 80027dc: 4b04 ldr r3, [pc, #16] ; (80027f0 <__NVIC_GetPriorityGrouping+0x18>)
  5394. 80027de: 68db ldr r3, [r3, #12]
  5395. 80027e0: 0a1b lsrs r3, r3, #8
  5396. 80027e2: f003 0307 and.w r3, r3, #7
  5397. }
  5398. 80027e6: 4618 mov r0, r3
  5399. 80027e8: 46bd mov sp, r7
  5400. 80027ea: bc80 pop {r7}
  5401. 80027ec: 4770 bx lr
  5402. 80027ee: bf00 nop
  5403. 80027f0: e000ed00 .word 0xe000ed00
  5404. 080027f4 <__NVIC_EnableIRQ>:
  5405. \details Enables a device specific interrupt in the NVIC interrupt controller.
  5406. \param [in] IRQn Device specific interrupt number.
  5407. \note IRQn must not be negative.
  5408. */
  5409. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  5410. {
  5411. 80027f4: b480 push {r7}
  5412. 80027f6: b083 sub sp, #12
  5413. 80027f8: af00 add r7, sp, #0
  5414. 80027fa: 4603 mov r3, r0
  5415. 80027fc: 71fb strb r3, [r7, #7]
  5416. if ((int32_t)(IRQn) >= 0)
  5417. 80027fe: f997 3007 ldrsb.w r3, [r7, #7]
  5418. 8002802: 2b00 cmp r3, #0
  5419. 8002804: db0b blt.n 800281e <__NVIC_EnableIRQ+0x2a>
  5420. {
  5421. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  5422. 8002806: 79fb ldrb r3, [r7, #7]
  5423. 8002808: f003 021f and.w r2, r3, #31
  5424. 800280c: 4906 ldr r1, [pc, #24] ; (8002828 <__NVIC_EnableIRQ+0x34>)
  5425. 800280e: f997 3007 ldrsb.w r3, [r7, #7]
  5426. 8002812: 095b lsrs r3, r3, #5
  5427. 8002814: 2001 movs r0, #1
  5428. 8002816: fa00 f202 lsl.w r2, r0, r2
  5429. 800281a: f841 2023 str.w r2, [r1, r3, lsl #2]
  5430. }
  5431. }
  5432. 800281e: bf00 nop
  5433. 8002820: 370c adds r7, #12
  5434. 8002822: 46bd mov sp, r7
  5435. 8002824: bc80 pop {r7}
  5436. 8002826: 4770 bx lr
  5437. 8002828: e000e100 .word 0xe000e100
  5438. 0800282c <__NVIC_SetPriority>:
  5439. \param [in] IRQn Interrupt number.
  5440. \param [in] priority Priority to set.
  5441. \note The priority cannot be set for every processor exception.
  5442. */
  5443. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  5444. {
  5445. 800282c: b480 push {r7}
  5446. 800282e: b083 sub sp, #12
  5447. 8002830: af00 add r7, sp, #0
  5448. 8002832: 4603 mov r3, r0
  5449. 8002834: 6039 str r1, [r7, #0]
  5450. 8002836: 71fb strb r3, [r7, #7]
  5451. if ((int32_t)(IRQn) >= 0)
  5452. 8002838: f997 3007 ldrsb.w r3, [r7, #7]
  5453. 800283c: 2b00 cmp r3, #0
  5454. 800283e: db0a blt.n 8002856 <__NVIC_SetPriority+0x2a>
  5455. {
  5456. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  5457. 8002840: 683b ldr r3, [r7, #0]
  5458. 8002842: b2da uxtb r2, r3
  5459. 8002844: 490c ldr r1, [pc, #48] ; (8002878 <__NVIC_SetPriority+0x4c>)
  5460. 8002846: f997 3007 ldrsb.w r3, [r7, #7]
  5461. 800284a: 0112 lsls r2, r2, #4
  5462. 800284c: b2d2 uxtb r2, r2
  5463. 800284e: 440b add r3, r1
  5464. 8002850: f883 2300 strb.w r2, [r3, #768] ; 0x300
  5465. }
  5466. else
  5467. {
  5468. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  5469. }
  5470. }
  5471. 8002854: e00a b.n 800286c <__NVIC_SetPriority+0x40>
  5472. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  5473. 8002856: 683b ldr r3, [r7, #0]
  5474. 8002858: b2da uxtb r2, r3
  5475. 800285a: 4908 ldr r1, [pc, #32] ; (800287c <__NVIC_SetPriority+0x50>)
  5476. 800285c: 79fb ldrb r3, [r7, #7]
  5477. 800285e: f003 030f and.w r3, r3, #15
  5478. 8002862: 3b04 subs r3, #4
  5479. 8002864: 0112 lsls r2, r2, #4
  5480. 8002866: b2d2 uxtb r2, r2
  5481. 8002868: 440b add r3, r1
  5482. 800286a: 761a strb r2, [r3, #24]
  5483. }
  5484. 800286c: bf00 nop
  5485. 800286e: 370c adds r7, #12
  5486. 8002870: 46bd mov sp, r7
  5487. 8002872: bc80 pop {r7}
  5488. 8002874: 4770 bx lr
  5489. 8002876: bf00 nop
  5490. 8002878: e000e100 .word 0xe000e100
  5491. 800287c: e000ed00 .word 0xe000ed00
  5492. 08002880 <NVIC_EncodePriority>:
  5493. \param [in] PreemptPriority Preemptive priority value (starting from 0).
  5494. \param [in] SubPriority Subpriority value (starting from 0).
  5495. \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
  5496. */
  5497. __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
  5498. {
  5499. 8002880: b480 push {r7}
  5500. 8002882: b089 sub sp, #36 ; 0x24
  5501. 8002884: af00 add r7, sp, #0
  5502. 8002886: 60f8 str r0, [r7, #12]
  5503. 8002888: 60b9 str r1, [r7, #8]
  5504. 800288a: 607a str r2, [r7, #4]
  5505. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  5506. 800288c: 68fb ldr r3, [r7, #12]
  5507. 800288e: f003 0307 and.w r3, r3, #7
  5508. 8002892: 61fb str r3, [r7, #28]
  5509. uint32_t PreemptPriorityBits;
  5510. uint32_t SubPriorityBits;
  5511. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  5512. 8002894: 69fb ldr r3, [r7, #28]
  5513. 8002896: f1c3 0307 rsb r3, r3, #7
  5514. 800289a: 2b04 cmp r3, #4
  5515. 800289c: bf28 it cs
  5516. 800289e: 2304 movcs r3, #4
  5517. 80028a0: 61bb str r3, [r7, #24]
  5518. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  5519. 80028a2: 69fb ldr r3, [r7, #28]
  5520. 80028a4: 3304 adds r3, #4
  5521. 80028a6: 2b06 cmp r3, #6
  5522. 80028a8: d902 bls.n 80028b0 <NVIC_EncodePriority+0x30>
  5523. 80028aa: 69fb ldr r3, [r7, #28]
  5524. 80028ac: 3b03 subs r3, #3
  5525. 80028ae: e000 b.n 80028b2 <NVIC_EncodePriority+0x32>
  5526. 80028b0: 2300 movs r3, #0
  5527. 80028b2: 617b str r3, [r7, #20]
  5528. return (
  5529. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  5530. 80028b4: f04f 32ff mov.w r2, #4294967295
  5531. 80028b8: 69bb ldr r3, [r7, #24]
  5532. 80028ba: fa02 f303 lsl.w r3, r2, r3
  5533. 80028be: 43da mvns r2, r3
  5534. 80028c0: 68bb ldr r3, [r7, #8]
  5535. 80028c2: 401a ands r2, r3
  5536. 80028c4: 697b ldr r3, [r7, #20]
  5537. 80028c6: 409a lsls r2, r3
  5538. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  5539. 80028c8: f04f 31ff mov.w r1, #4294967295
  5540. 80028cc: 697b ldr r3, [r7, #20]
  5541. 80028ce: fa01 f303 lsl.w r3, r1, r3
  5542. 80028d2: 43d9 mvns r1, r3
  5543. 80028d4: 687b ldr r3, [r7, #4]
  5544. 80028d6: 400b ands r3, r1
  5545. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  5546. 80028d8: 4313 orrs r3, r2
  5547. );
  5548. }
  5549. 80028da: 4618 mov r0, r3
  5550. 80028dc: 3724 adds r7, #36 ; 0x24
  5551. 80028de: 46bd mov sp, r7
  5552. 80028e0: bc80 pop {r7}
  5553. 80028e2: 4770 bx lr
  5554. 080028e4 <HAL_NVIC_SetPriorityGrouping>:
  5555. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  5556. * The pending IRQ priority will be managed only by the subpriority.
  5557. * @retval None
  5558. */
  5559. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  5560. {
  5561. 80028e4: b580 push {r7, lr}
  5562. 80028e6: b082 sub sp, #8
  5563. 80028e8: af00 add r7, sp, #0
  5564. 80028ea: 6078 str r0, [r7, #4]
  5565. /* Check the parameters */
  5566. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  5567. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  5568. NVIC_SetPriorityGrouping(PriorityGroup);
  5569. 80028ec: 6878 ldr r0, [r7, #4]
  5570. 80028ee: f7ff ff4f bl 8002790 <__NVIC_SetPriorityGrouping>
  5571. }
  5572. 80028f2: bf00 nop
  5573. 80028f4: 3708 adds r7, #8
  5574. 80028f6: 46bd mov sp, r7
  5575. 80028f8: bd80 pop {r7, pc}
  5576. 080028fa <HAL_NVIC_SetPriority>:
  5577. * This parameter can be a value between 0 and 15
  5578. * A lower priority value indicates a higher priority.
  5579. * @retval None
  5580. */
  5581. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  5582. {
  5583. 80028fa: b580 push {r7, lr}
  5584. 80028fc: b086 sub sp, #24
  5585. 80028fe: af00 add r7, sp, #0
  5586. 8002900: 4603 mov r3, r0
  5587. 8002902: 60b9 str r1, [r7, #8]
  5588. 8002904: 607a str r2, [r7, #4]
  5589. 8002906: 73fb strb r3, [r7, #15]
  5590. uint32_t prioritygroup = 0x00U;
  5591. 8002908: 2300 movs r3, #0
  5592. 800290a: 617b str r3, [r7, #20]
  5593. /* Check the parameters */
  5594. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  5595. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  5596. prioritygroup = NVIC_GetPriorityGrouping();
  5597. 800290c: f7ff ff64 bl 80027d8 <__NVIC_GetPriorityGrouping>
  5598. 8002910: 6178 str r0, [r7, #20]
  5599. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  5600. 8002912: 687a ldr r2, [r7, #4]
  5601. 8002914: 68b9 ldr r1, [r7, #8]
  5602. 8002916: 6978 ldr r0, [r7, #20]
  5603. 8002918: f7ff ffb2 bl 8002880 <NVIC_EncodePriority>
  5604. 800291c: 4602 mov r2, r0
  5605. 800291e: f997 300f ldrsb.w r3, [r7, #15]
  5606. 8002922: 4611 mov r1, r2
  5607. 8002924: 4618 mov r0, r3
  5608. 8002926: f7ff ff81 bl 800282c <__NVIC_SetPriority>
  5609. }
  5610. 800292a: bf00 nop
  5611. 800292c: 3718 adds r7, #24
  5612. 800292e: 46bd mov sp, r7
  5613. 8002930: bd80 pop {r7, pc}
  5614. 08002932 <HAL_NVIC_EnableIRQ>:
  5615. * This parameter can be an enumerator of IRQn_Type enumeration
  5616. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f10xxx.h))
  5617. * @retval None
  5618. */
  5619. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  5620. {
  5621. 8002932: b580 push {r7, lr}
  5622. 8002934: b082 sub sp, #8
  5623. 8002936: af00 add r7, sp, #0
  5624. 8002938: 4603 mov r3, r0
  5625. 800293a: 71fb strb r3, [r7, #7]
  5626. /* Check the parameters */
  5627. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  5628. /* Enable interrupt */
  5629. NVIC_EnableIRQ(IRQn);
  5630. 800293c: f997 3007 ldrsb.w r3, [r7, #7]
  5631. 8002940: 4618 mov r0, r3
  5632. 8002942: f7ff ff57 bl 80027f4 <__NVIC_EnableIRQ>
  5633. }
  5634. 8002946: bf00 nop
  5635. 8002948: 3708 adds r7, #8
  5636. 800294a: 46bd mov sp, r7
  5637. 800294c: bd80 pop {r7, pc}
  5638. ...
  5639. 08002950 <HAL_DMA_Init>:
  5640. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  5641. * the configuration information for the specified DMA Channel.
  5642. * @retval HAL status
  5643. */
  5644. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  5645. {
  5646. 8002950: b480 push {r7}
  5647. 8002952: b085 sub sp, #20
  5648. 8002954: af00 add r7, sp, #0
  5649. 8002956: 6078 str r0, [r7, #4]
  5650. uint32_t tmp = 0U;
  5651. 8002958: 2300 movs r3, #0
  5652. 800295a: 60fb str r3, [r7, #12]
  5653. /* Check the DMA handle allocation */
  5654. if(hdma == NULL)
  5655. 800295c: 687b ldr r3, [r7, #4]
  5656. 800295e: 2b00 cmp r3, #0
  5657. 8002960: d101 bne.n 8002966 <HAL_DMA_Init+0x16>
  5658. {
  5659. return HAL_ERROR;
  5660. 8002962: 2301 movs r3, #1
  5661. 8002964: e043 b.n 80029ee <HAL_DMA_Init+0x9e>
  5662. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2;
  5663. hdma->DmaBaseAddress = DMA2;
  5664. }
  5665. #else
  5666. /* DMA1 */
  5667. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2;
  5668. 8002966: 687b ldr r3, [r7, #4]
  5669. 8002968: 681b ldr r3, [r3, #0]
  5670. 800296a: 461a mov r2, r3
  5671. 800296c: 4b22 ldr r3, [pc, #136] ; (80029f8 <HAL_DMA_Init+0xa8>)
  5672. 800296e: 4413 add r3, r2
  5673. 8002970: 4a22 ldr r2, [pc, #136] ; (80029fc <HAL_DMA_Init+0xac>)
  5674. 8002972: fba2 2303 umull r2, r3, r2, r3
  5675. 8002976: 091b lsrs r3, r3, #4
  5676. 8002978: 009a lsls r2, r3, #2
  5677. 800297a: 687b ldr r3, [r7, #4]
  5678. 800297c: 641a str r2, [r3, #64] ; 0x40
  5679. hdma->DmaBaseAddress = DMA1;
  5680. 800297e: 687b ldr r3, [r7, #4]
  5681. 8002980: 4a1f ldr r2, [pc, #124] ; (8002a00 <HAL_DMA_Init+0xb0>)
  5682. 8002982: 63da str r2, [r3, #60] ; 0x3c
  5683. #endif /* DMA2 */
  5684. /* Change DMA peripheral state */
  5685. hdma->State = HAL_DMA_STATE_BUSY;
  5686. 8002984: 687b ldr r3, [r7, #4]
  5687. 8002986: 2202 movs r2, #2
  5688. 8002988: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5689. /* Get the CR register value */
  5690. tmp = hdma->Instance->CCR;
  5691. 800298c: 687b ldr r3, [r7, #4]
  5692. 800298e: 681b ldr r3, [r3, #0]
  5693. 8002990: 681b ldr r3, [r3, #0]
  5694. 8002992: 60fb str r3, [r7, #12]
  5695. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */
  5696. tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \
  5697. 8002994: 68fb ldr r3, [r7, #12]
  5698. 8002996: f423 537f bic.w r3, r3, #16320 ; 0x3fc0
  5699. 800299a: f023 0330 bic.w r3, r3, #48 ; 0x30
  5700. 800299e: 60fb str r3, [r7, #12]
  5701. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \
  5702. DMA_CCR_DIR));
  5703. /* Prepare the DMA Channel configuration */
  5704. tmp |= hdma->Init.Direction |
  5705. 80029a0: 687b ldr r3, [r7, #4]
  5706. 80029a2: 685a ldr r2, [r3, #4]
  5707. hdma->Init.PeriphInc | hdma->Init.MemInc |
  5708. 80029a4: 687b ldr r3, [r7, #4]
  5709. 80029a6: 689b ldr r3, [r3, #8]
  5710. tmp |= hdma->Init.Direction |
  5711. 80029a8: 431a orrs r2, r3
  5712. hdma->Init.PeriphInc | hdma->Init.MemInc |
  5713. 80029aa: 687b ldr r3, [r7, #4]
  5714. 80029ac: 68db ldr r3, [r3, #12]
  5715. 80029ae: 431a orrs r2, r3
  5716. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  5717. 80029b0: 687b ldr r3, [r7, #4]
  5718. 80029b2: 691b ldr r3, [r3, #16]
  5719. hdma->Init.PeriphInc | hdma->Init.MemInc |
  5720. 80029b4: 431a orrs r2, r3
  5721. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  5722. 80029b6: 687b ldr r3, [r7, #4]
  5723. 80029b8: 695b ldr r3, [r3, #20]
  5724. 80029ba: 431a orrs r2, r3
  5725. hdma->Init.Mode | hdma->Init.Priority;
  5726. 80029bc: 687b ldr r3, [r7, #4]
  5727. 80029be: 699b ldr r3, [r3, #24]
  5728. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  5729. 80029c0: 431a orrs r2, r3
  5730. hdma->Init.Mode | hdma->Init.Priority;
  5731. 80029c2: 687b ldr r3, [r7, #4]
  5732. 80029c4: 69db ldr r3, [r3, #28]
  5733. 80029c6: 4313 orrs r3, r2
  5734. tmp |= hdma->Init.Direction |
  5735. 80029c8: 68fa ldr r2, [r7, #12]
  5736. 80029ca: 4313 orrs r3, r2
  5737. 80029cc: 60fb str r3, [r7, #12]
  5738. /* Write to DMA Channel CR register */
  5739. hdma->Instance->CCR = tmp;
  5740. 80029ce: 687b ldr r3, [r7, #4]
  5741. 80029d0: 681b ldr r3, [r3, #0]
  5742. 80029d2: 68fa ldr r2, [r7, #12]
  5743. 80029d4: 601a str r2, [r3, #0]
  5744. /* Initialise the error code */
  5745. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  5746. 80029d6: 687b ldr r3, [r7, #4]
  5747. 80029d8: 2200 movs r2, #0
  5748. 80029da: 639a str r2, [r3, #56] ; 0x38
  5749. /* Initialize the DMA state*/
  5750. hdma->State = HAL_DMA_STATE_READY;
  5751. 80029dc: 687b ldr r3, [r7, #4]
  5752. 80029de: 2201 movs r2, #1
  5753. 80029e0: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5754. /* Allocate lock resource and initialize it */
  5755. hdma->Lock = HAL_UNLOCKED;
  5756. 80029e4: 687b ldr r3, [r7, #4]
  5757. 80029e6: 2200 movs r2, #0
  5758. 80029e8: f883 2020 strb.w r2, [r3, #32]
  5759. return HAL_OK;
  5760. 80029ec: 2300 movs r3, #0
  5761. }
  5762. 80029ee: 4618 mov r0, r3
  5763. 80029f0: 3714 adds r7, #20
  5764. 80029f2: 46bd mov sp, r7
  5765. 80029f4: bc80 pop {r7}
  5766. 80029f6: 4770 bx lr
  5767. 80029f8: bffdfff8 .word 0xbffdfff8
  5768. 80029fc: cccccccd .word 0xcccccccd
  5769. 8002a00: 40020000 .word 0x40020000
  5770. 08002a04 <HAL_DMA_Start_IT>:
  5771. * @param DstAddress: The destination memory Buffer address
  5772. * @param DataLength: The length of data to be transferred from source to destination
  5773. * @retval HAL status
  5774. */
  5775. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  5776. {
  5777. 8002a04: b580 push {r7, lr}
  5778. 8002a06: b086 sub sp, #24
  5779. 8002a08: af00 add r7, sp, #0
  5780. 8002a0a: 60f8 str r0, [r7, #12]
  5781. 8002a0c: 60b9 str r1, [r7, #8]
  5782. 8002a0e: 607a str r2, [r7, #4]
  5783. 8002a10: 603b str r3, [r7, #0]
  5784. HAL_StatusTypeDef status = HAL_OK;
  5785. 8002a12: 2300 movs r3, #0
  5786. 8002a14: 75fb strb r3, [r7, #23]
  5787. /* Check the parameters */
  5788. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  5789. /* Process locked */
  5790. __HAL_LOCK(hdma);
  5791. 8002a16: 68fb ldr r3, [r7, #12]
  5792. 8002a18: f893 3020 ldrb.w r3, [r3, #32]
  5793. 8002a1c: 2b01 cmp r3, #1
  5794. 8002a1e: d101 bne.n 8002a24 <HAL_DMA_Start_IT+0x20>
  5795. 8002a20: 2302 movs r3, #2
  5796. 8002a22: e04a b.n 8002aba <HAL_DMA_Start_IT+0xb6>
  5797. 8002a24: 68fb ldr r3, [r7, #12]
  5798. 8002a26: 2201 movs r2, #1
  5799. 8002a28: f883 2020 strb.w r2, [r3, #32]
  5800. if(HAL_DMA_STATE_READY == hdma->State)
  5801. 8002a2c: 68fb ldr r3, [r7, #12]
  5802. 8002a2e: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5803. 8002a32: 2b01 cmp r3, #1
  5804. 8002a34: d13a bne.n 8002aac <HAL_DMA_Start_IT+0xa8>
  5805. {
  5806. /* Change DMA peripheral state */
  5807. hdma->State = HAL_DMA_STATE_BUSY;
  5808. 8002a36: 68fb ldr r3, [r7, #12]
  5809. 8002a38: 2202 movs r2, #2
  5810. 8002a3a: f883 2021 strb.w r2, [r3, #33] ; 0x21
  5811. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  5812. 8002a3e: 68fb ldr r3, [r7, #12]
  5813. 8002a40: 2200 movs r2, #0
  5814. 8002a42: 639a str r2, [r3, #56] ; 0x38
  5815. /* Disable the peripheral */
  5816. __HAL_DMA_DISABLE(hdma);
  5817. 8002a44: 68fb ldr r3, [r7, #12]
  5818. 8002a46: 681b ldr r3, [r3, #0]
  5819. 8002a48: 681a ldr r2, [r3, #0]
  5820. 8002a4a: 68fb ldr r3, [r7, #12]
  5821. 8002a4c: 681b ldr r3, [r3, #0]
  5822. 8002a4e: f022 0201 bic.w r2, r2, #1
  5823. 8002a52: 601a str r2, [r3, #0]
  5824. /* Configure the source, destination address and the data length & clear flags*/
  5825. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  5826. 8002a54: 683b ldr r3, [r7, #0]
  5827. 8002a56: 687a ldr r2, [r7, #4]
  5828. 8002a58: 68b9 ldr r1, [r7, #8]
  5829. 8002a5a: 68f8 ldr r0, [r7, #12]
  5830. 8002a5c: f000 f9ae bl 8002dbc <DMA_SetConfig>
  5831. /* Enable the transfer complete interrupt */
  5832. /* Enable the transfer Error interrupt */
  5833. if(NULL != hdma->XferHalfCpltCallback)
  5834. 8002a60: 68fb ldr r3, [r7, #12]
  5835. 8002a62: 6adb ldr r3, [r3, #44] ; 0x2c
  5836. 8002a64: 2b00 cmp r3, #0
  5837. 8002a66: d008 beq.n 8002a7a <HAL_DMA_Start_IT+0x76>
  5838. {
  5839. /* Enable the Half transfer complete interrupt as well */
  5840. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  5841. 8002a68: 68fb ldr r3, [r7, #12]
  5842. 8002a6a: 681b ldr r3, [r3, #0]
  5843. 8002a6c: 681a ldr r2, [r3, #0]
  5844. 8002a6e: 68fb ldr r3, [r7, #12]
  5845. 8002a70: 681b ldr r3, [r3, #0]
  5846. 8002a72: f042 020e orr.w r2, r2, #14
  5847. 8002a76: 601a str r2, [r3, #0]
  5848. 8002a78: e00f b.n 8002a9a <HAL_DMA_Start_IT+0x96>
  5849. }
  5850. else
  5851. {
  5852. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  5853. 8002a7a: 68fb ldr r3, [r7, #12]
  5854. 8002a7c: 681b ldr r3, [r3, #0]
  5855. 8002a7e: 681a ldr r2, [r3, #0]
  5856. 8002a80: 68fb ldr r3, [r7, #12]
  5857. 8002a82: 681b ldr r3, [r3, #0]
  5858. 8002a84: f022 0204 bic.w r2, r2, #4
  5859. 8002a88: 601a str r2, [r3, #0]
  5860. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  5861. 8002a8a: 68fb ldr r3, [r7, #12]
  5862. 8002a8c: 681b ldr r3, [r3, #0]
  5863. 8002a8e: 681a ldr r2, [r3, #0]
  5864. 8002a90: 68fb ldr r3, [r7, #12]
  5865. 8002a92: 681b ldr r3, [r3, #0]
  5866. 8002a94: f042 020a orr.w r2, r2, #10
  5867. 8002a98: 601a str r2, [r3, #0]
  5868. }
  5869. /* Enable the Peripheral */
  5870. __HAL_DMA_ENABLE(hdma);
  5871. 8002a9a: 68fb ldr r3, [r7, #12]
  5872. 8002a9c: 681b ldr r3, [r3, #0]
  5873. 8002a9e: 681a ldr r2, [r3, #0]
  5874. 8002aa0: 68fb ldr r3, [r7, #12]
  5875. 8002aa2: 681b ldr r3, [r3, #0]
  5876. 8002aa4: f042 0201 orr.w r2, r2, #1
  5877. 8002aa8: 601a str r2, [r3, #0]
  5878. 8002aaa: e005 b.n 8002ab8 <HAL_DMA_Start_IT+0xb4>
  5879. }
  5880. else
  5881. {
  5882. /* Process Unlocked */
  5883. __HAL_UNLOCK(hdma);
  5884. 8002aac: 68fb ldr r3, [r7, #12]
  5885. 8002aae: 2200 movs r2, #0
  5886. 8002ab0: f883 2020 strb.w r2, [r3, #32]
  5887. /* Remain BUSY */
  5888. status = HAL_BUSY;
  5889. 8002ab4: 2302 movs r3, #2
  5890. 8002ab6: 75fb strb r3, [r7, #23]
  5891. }
  5892. return status;
  5893. 8002ab8: 7dfb ldrb r3, [r7, #23]
  5894. }
  5895. 8002aba: 4618 mov r0, r3
  5896. 8002abc: 3718 adds r7, #24
  5897. 8002abe: 46bd mov sp, r7
  5898. 8002ac0: bd80 pop {r7, pc}
  5899. ...
  5900. 08002ac4 <HAL_DMA_Abort_IT>:
  5901. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  5902. * the configuration information for the specified DMA Channel.
  5903. * @retval HAL status
  5904. */
  5905. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  5906. {
  5907. 8002ac4: b580 push {r7, lr}
  5908. 8002ac6: b084 sub sp, #16
  5909. 8002ac8: af00 add r7, sp, #0
  5910. 8002aca: 6078 str r0, [r7, #4]
  5911. HAL_StatusTypeDef status = HAL_OK;
  5912. 8002acc: 2300 movs r3, #0
  5913. 8002ace: 73fb strb r3, [r7, #15]
  5914. if(HAL_DMA_STATE_BUSY != hdma->State)
  5915. 8002ad0: 687b ldr r3, [r7, #4]
  5916. 8002ad2: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5917. 8002ad6: 2b02 cmp r3, #2
  5918. 8002ad8: d005 beq.n 8002ae6 <HAL_DMA_Abort_IT+0x22>
  5919. {
  5920. /* no transfer ongoing */
  5921. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  5922. 8002ada: 687b ldr r3, [r7, #4]
  5923. 8002adc: 2204 movs r2, #4
  5924. 8002ade: 639a str r2, [r3, #56] ; 0x38
  5925. status = HAL_ERROR;
  5926. 8002ae0: 2301 movs r3, #1
  5927. 8002ae2: 73fb strb r3, [r7, #15]
  5928. 8002ae4: e051 b.n 8002b8a <HAL_DMA_Abort_IT+0xc6>
  5929. }
  5930. else
  5931. {
  5932. /* Disable DMA IT */
  5933. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  5934. 8002ae6: 687b ldr r3, [r7, #4]
  5935. 8002ae8: 681b ldr r3, [r3, #0]
  5936. 8002aea: 681a ldr r2, [r3, #0]
  5937. 8002aec: 687b ldr r3, [r7, #4]
  5938. 8002aee: 681b ldr r3, [r3, #0]
  5939. 8002af0: f022 020e bic.w r2, r2, #14
  5940. 8002af4: 601a str r2, [r3, #0]
  5941. /* Disable the channel */
  5942. __HAL_DMA_DISABLE(hdma);
  5943. 8002af6: 687b ldr r3, [r7, #4]
  5944. 8002af8: 681b ldr r3, [r3, #0]
  5945. 8002afa: 681a ldr r2, [r3, #0]
  5946. 8002afc: 687b ldr r3, [r7, #4]
  5947. 8002afe: 681b ldr r3, [r3, #0]
  5948. 8002b00: f022 0201 bic.w r2, r2, #1
  5949. 8002b04: 601a str r2, [r3, #0]
  5950. /* Clear all flags */
  5951. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma));
  5952. 8002b06: 687b ldr r3, [r7, #4]
  5953. 8002b08: 681b ldr r3, [r3, #0]
  5954. 8002b0a: 4a22 ldr r2, [pc, #136] ; (8002b94 <HAL_DMA_Abort_IT+0xd0>)
  5955. 8002b0c: 4293 cmp r3, r2
  5956. 8002b0e: d029 beq.n 8002b64 <HAL_DMA_Abort_IT+0xa0>
  5957. 8002b10: 687b ldr r3, [r7, #4]
  5958. 8002b12: 681b ldr r3, [r3, #0]
  5959. 8002b14: 4a20 ldr r2, [pc, #128] ; (8002b98 <HAL_DMA_Abort_IT+0xd4>)
  5960. 8002b16: 4293 cmp r3, r2
  5961. 8002b18: d022 beq.n 8002b60 <HAL_DMA_Abort_IT+0x9c>
  5962. 8002b1a: 687b ldr r3, [r7, #4]
  5963. 8002b1c: 681b ldr r3, [r3, #0]
  5964. 8002b1e: 4a1f ldr r2, [pc, #124] ; (8002b9c <HAL_DMA_Abort_IT+0xd8>)
  5965. 8002b20: 4293 cmp r3, r2
  5966. 8002b22: d01a beq.n 8002b5a <HAL_DMA_Abort_IT+0x96>
  5967. 8002b24: 687b ldr r3, [r7, #4]
  5968. 8002b26: 681b ldr r3, [r3, #0]
  5969. 8002b28: 4a1d ldr r2, [pc, #116] ; (8002ba0 <HAL_DMA_Abort_IT+0xdc>)
  5970. 8002b2a: 4293 cmp r3, r2
  5971. 8002b2c: d012 beq.n 8002b54 <HAL_DMA_Abort_IT+0x90>
  5972. 8002b2e: 687b ldr r3, [r7, #4]
  5973. 8002b30: 681b ldr r3, [r3, #0]
  5974. 8002b32: 4a1c ldr r2, [pc, #112] ; (8002ba4 <HAL_DMA_Abort_IT+0xe0>)
  5975. 8002b34: 4293 cmp r3, r2
  5976. 8002b36: d00a beq.n 8002b4e <HAL_DMA_Abort_IT+0x8a>
  5977. 8002b38: 687b ldr r3, [r7, #4]
  5978. 8002b3a: 681b ldr r3, [r3, #0]
  5979. 8002b3c: 4a1a ldr r2, [pc, #104] ; (8002ba8 <HAL_DMA_Abort_IT+0xe4>)
  5980. 8002b3e: 4293 cmp r3, r2
  5981. 8002b40: d102 bne.n 8002b48 <HAL_DMA_Abort_IT+0x84>
  5982. 8002b42: f44f 1380 mov.w r3, #1048576 ; 0x100000
  5983. 8002b46: e00e b.n 8002b66 <HAL_DMA_Abort_IT+0xa2>
  5984. 8002b48: f04f 7380 mov.w r3, #16777216 ; 0x1000000
  5985. 8002b4c: e00b b.n 8002b66 <HAL_DMA_Abort_IT+0xa2>
  5986. 8002b4e: f44f 3380 mov.w r3, #65536 ; 0x10000
  5987. 8002b52: e008 b.n 8002b66 <HAL_DMA_Abort_IT+0xa2>
  5988. 8002b54: f44f 5380 mov.w r3, #4096 ; 0x1000
  5989. 8002b58: e005 b.n 8002b66 <HAL_DMA_Abort_IT+0xa2>
  5990. 8002b5a: f44f 7380 mov.w r3, #256 ; 0x100
  5991. 8002b5e: e002 b.n 8002b66 <HAL_DMA_Abort_IT+0xa2>
  5992. 8002b60: 2310 movs r3, #16
  5993. 8002b62: e000 b.n 8002b66 <HAL_DMA_Abort_IT+0xa2>
  5994. 8002b64: 2301 movs r3, #1
  5995. 8002b66: 4a11 ldr r2, [pc, #68] ; (8002bac <HAL_DMA_Abort_IT+0xe8>)
  5996. 8002b68: 6053 str r3, [r2, #4]
  5997. /* Change the DMA state */
  5998. hdma->State = HAL_DMA_STATE_READY;
  5999. 8002b6a: 687b ldr r3, [r7, #4]
  6000. 8002b6c: 2201 movs r2, #1
  6001. 8002b6e: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6002. /* Process Unlocked */
  6003. __HAL_UNLOCK(hdma);
  6004. 8002b72: 687b ldr r3, [r7, #4]
  6005. 8002b74: 2200 movs r2, #0
  6006. 8002b76: f883 2020 strb.w r2, [r3, #32]
  6007. /* Call User Abort callback */
  6008. if(hdma->XferAbortCallback != NULL)
  6009. 8002b7a: 687b ldr r3, [r7, #4]
  6010. 8002b7c: 6b5b ldr r3, [r3, #52] ; 0x34
  6011. 8002b7e: 2b00 cmp r3, #0
  6012. 8002b80: d003 beq.n 8002b8a <HAL_DMA_Abort_IT+0xc6>
  6013. {
  6014. hdma->XferAbortCallback(hdma);
  6015. 8002b82: 687b ldr r3, [r7, #4]
  6016. 8002b84: 6b5b ldr r3, [r3, #52] ; 0x34
  6017. 8002b86: 6878 ldr r0, [r7, #4]
  6018. 8002b88: 4798 blx r3
  6019. }
  6020. }
  6021. return status;
  6022. 8002b8a: 7bfb ldrb r3, [r7, #15]
  6023. }
  6024. 8002b8c: 4618 mov r0, r3
  6025. 8002b8e: 3710 adds r7, #16
  6026. 8002b90: 46bd mov sp, r7
  6027. 8002b92: bd80 pop {r7, pc}
  6028. 8002b94: 40020008 .word 0x40020008
  6029. 8002b98: 4002001c .word 0x4002001c
  6030. 8002b9c: 40020030 .word 0x40020030
  6031. 8002ba0: 40020044 .word 0x40020044
  6032. 8002ba4: 40020058 .word 0x40020058
  6033. 8002ba8: 4002006c .word 0x4002006c
  6034. 8002bac: 40020000 .word 0x40020000
  6035. 08002bb0 <HAL_DMA_IRQHandler>:
  6036. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  6037. * the configuration information for the specified DMA Channel.
  6038. * @retval None
  6039. */
  6040. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  6041. {
  6042. 8002bb0: b580 push {r7, lr}
  6043. 8002bb2: b084 sub sp, #16
  6044. 8002bb4: af00 add r7, sp, #0
  6045. 8002bb6: 6078 str r0, [r7, #4]
  6046. uint32_t flag_it = hdma->DmaBaseAddress->ISR;
  6047. 8002bb8: 687b ldr r3, [r7, #4]
  6048. 8002bba: 6bdb ldr r3, [r3, #60] ; 0x3c
  6049. 8002bbc: 681b ldr r3, [r3, #0]
  6050. 8002bbe: 60fb str r3, [r7, #12]
  6051. uint32_t source_it = hdma->Instance->CCR;
  6052. 8002bc0: 687b ldr r3, [r7, #4]
  6053. 8002bc2: 681b ldr r3, [r3, #0]
  6054. 8002bc4: 681b ldr r3, [r3, #0]
  6055. 8002bc6: 60bb str r3, [r7, #8]
  6056. /* Half Transfer Complete Interrupt management ******************************/
  6057. if (((flag_it & (DMA_FLAG_HT1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_HT) != RESET))
  6058. 8002bc8: 687b ldr r3, [r7, #4]
  6059. 8002bca: 6c1b ldr r3, [r3, #64] ; 0x40
  6060. 8002bcc: 2204 movs r2, #4
  6061. 8002bce: 409a lsls r2, r3
  6062. 8002bd0: 68fb ldr r3, [r7, #12]
  6063. 8002bd2: 4013 ands r3, r2
  6064. 8002bd4: 2b00 cmp r3, #0
  6065. 8002bd6: d04f beq.n 8002c78 <HAL_DMA_IRQHandler+0xc8>
  6066. 8002bd8: 68bb ldr r3, [r7, #8]
  6067. 8002bda: f003 0304 and.w r3, r3, #4
  6068. 8002bde: 2b00 cmp r3, #0
  6069. 8002be0: d04a beq.n 8002c78 <HAL_DMA_IRQHandler+0xc8>
  6070. {
  6071. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  6072. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  6073. 8002be2: 687b ldr r3, [r7, #4]
  6074. 8002be4: 681b ldr r3, [r3, #0]
  6075. 8002be6: 681b ldr r3, [r3, #0]
  6076. 8002be8: f003 0320 and.w r3, r3, #32
  6077. 8002bec: 2b00 cmp r3, #0
  6078. 8002bee: d107 bne.n 8002c00 <HAL_DMA_IRQHandler+0x50>
  6079. {
  6080. /* Disable the half transfer interrupt */
  6081. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  6082. 8002bf0: 687b ldr r3, [r7, #4]
  6083. 8002bf2: 681b ldr r3, [r3, #0]
  6084. 8002bf4: 681a ldr r2, [r3, #0]
  6085. 8002bf6: 687b ldr r3, [r7, #4]
  6086. 8002bf8: 681b ldr r3, [r3, #0]
  6087. 8002bfa: f022 0204 bic.w r2, r2, #4
  6088. 8002bfe: 601a str r2, [r3, #0]
  6089. }
  6090. /* Clear the half transfer complete flag */
  6091. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma));
  6092. 8002c00: 687b ldr r3, [r7, #4]
  6093. 8002c02: 681b ldr r3, [r3, #0]
  6094. 8002c04: 4a66 ldr r2, [pc, #408] ; (8002da0 <HAL_DMA_IRQHandler+0x1f0>)
  6095. 8002c06: 4293 cmp r3, r2
  6096. 8002c08: d029 beq.n 8002c5e <HAL_DMA_IRQHandler+0xae>
  6097. 8002c0a: 687b ldr r3, [r7, #4]
  6098. 8002c0c: 681b ldr r3, [r3, #0]
  6099. 8002c0e: 4a65 ldr r2, [pc, #404] ; (8002da4 <HAL_DMA_IRQHandler+0x1f4>)
  6100. 8002c10: 4293 cmp r3, r2
  6101. 8002c12: d022 beq.n 8002c5a <HAL_DMA_IRQHandler+0xaa>
  6102. 8002c14: 687b ldr r3, [r7, #4]
  6103. 8002c16: 681b ldr r3, [r3, #0]
  6104. 8002c18: 4a63 ldr r2, [pc, #396] ; (8002da8 <HAL_DMA_IRQHandler+0x1f8>)
  6105. 8002c1a: 4293 cmp r3, r2
  6106. 8002c1c: d01a beq.n 8002c54 <HAL_DMA_IRQHandler+0xa4>
  6107. 8002c1e: 687b ldr r3, [r7, #4]
  6108. 8002c20: 681b ldr r3, [r3, #0]
  6109. 8002c22: 4a62 ldr r2, [pc, #392] ; (8002dac <HAL_DMA_IRQHandler+0x1fc>)
  6110. 8002c24: 4293 cmp r3, r2
  6111. 8002c26: d012 beq.n 8002c4e <HAL_DMA_IRQHandler+0x9e>
  6112. 8002c28: 687b ldr r3, [r7, #4]
  6113. 8002c2a: 681b ldr r3, [r3, #0]
  6114. 8002c2c: 4a60 ldr r2, [pc, #384] ; (8002db0 <HAL_DMA_IRQHandler+0x200>)
  6115. 8002c2e: 4293 cmp r3, r2
  6116. 8002c30: d00a beq.n 8002c48 <HAL_DMA_IRQHandler+0x98>
  6117. 8002c32: 687b ldr r3, [r7, #4]
  6118. 8002c34: 681b ldr r3, [r3, #0]
  6119. 8002c36: 4a5f ldr r2, [pc, #380] ; (8002db4 <HAL_DMA_IRQHandler+0x204>)
  6120. 8002c38: 4293 cmp r3, r2
  6121. 8002c3a: d102 bne.n 8002c42 <HAL_DMA_IRQHandler+0x92>
  6122. 8002c3c: f44f 0380 mov.w r3, #4194304 ; 0x400000
  6123. 8002c40: e00e b.n 8002c60 <HAL_DMA_IRQHandler+0xb0>
  6124. 8002c42: f04f 6380 mov.w r3, #67108864 ; 0x4000000
  6125. 8002c46: e00b b.n 8002c60 <HAL_DMA_IRQHandler+0xb0>
  6126. 8002c48: f44f 2380 mov.w r3, #262144 ; 0x40000
  6127. 8002c4c: e008 b.n 8002c60 <HAL_DMA_IRQHandler+0xb0>
  6128. 8002c4e: f44f 4380 mov.w r3, #16384 ; 0x4000
  6129. 8002c52: e005 b.n 8002c60 <HAL_DMA_IRQHandler+0xb0>
  6130. 8002c54: f44f 6380 mov.w r3, #1024 ; 0x400
  6131. 8002c58: e002 b.n 8002c60 <HAL_DMA_IRQHandler+0xb0>
  6132. 8002c5a: 2340 movs r3, #64 ; 0x40
  6133. 8002c5c: e000 b.n 8002c60 <HAL_DMA_IRQHandler+0xb0>
  6134. 8002c5e: 2304 movs r3, #4
  6135. 8002c60: 4a55 ldr r2, [pc, #340] ; (8002db8 <HAL_DMA_IRQHandler+0x208>)
  6136. 8002c62: 6053 str r3, [r2, #4]
  6137. /* DMA peripheral state is not updated in Half Transfer */
  6138. /* but in Transfer Complete case */
  6139. if(hdma->XferHalfCpltCallback != NULL)
  6140. 8002c64: 687b ldr r3, [r7, #4]
  6141. 8002c66: 6adb ldr r3, [r3, #44] ; 0x2c
  6142. 8002c68: 2b00 cmp r3, #0
  6143. 8002c6a: f000 8094 beq.w 8002d96 <HAL_DMA_IRQHandler+0x1e6>
  6144. {
  6145. /* Half transfer callback */
  6146. hdma->XferHalfCpltCallback(hdma);
  6147. 8002c6e: 687b ldr r3, [r7, #4]
  6148. 8002c70: 6adb ldr r3, [r3, #44] ; 0x2c
  6149. 8002c72: 6878 ldr r0, [r7, #4]
  6150. 8002c74: 4798 blx r3
  6151. if(hdma->XferHalfCpltCallback != NULL)
  6152. 8002c76: e08e b.n 8002d96 <HAL_DMA_IRQHandler+0x1e6>
  6153. }
  6154. }
  6155. /* Transfer Complete Interrupt management ***********************************/
  6156. else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET))
  6157. 8002c78: 687b ldr r3, [r7, #4]
  6158. 8002c7a: 6c1b ldr r3, [r3, #64] ; 0x40
  6159. 8002c7c: 2202 movs r2, #2
  6160. 8002c7e: 409a lsls r2, r3
  6161. 8002c80: 68fb ldr r3, [r7, #12]
  6162. 8002c82: 4013 ands r3, r2
  6163. 8002c84: 2b00 cmp r3, #0
  6164. 8002c86: d056 beq.n 8002d36 <HAL_DMA_IRQHandler+0x186>
  6165. 8002c88: 68bb ldr r3, [r7, #8]
  6166. 8002c8a: f003 0302 and.w r3, r3, #2
  6167. 8002c8e: 2b00 cmp r3, #0
  6168. 8002c90: d051 beq.n 8002d36 <HAL_DMA_IRQHandler+0x186>
  6169. {
  6170. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  6171. 8002c92: 687b ldr r3, [r7, #4]
  6172. 8002c94: 681b ldr r3, [r3, #0]
  6173. 8002c96: 681b ldr r3, [r3, #0]
  6174. 8002c98: f003 0320 and.w r3, r3, #32
  6175. 8002c9c: 2b00 cmp r3, #0
  6176. 8002c9e: d10b bne.n 8002cb8 <HAL_DMA_IRQHandler+0x108>
  6177. {
  6178. /* Disable the transfer complete and error interrupt */
  6179. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  6180. 8002ca0: 687b ldr r3, [r7, #4]
  6181. 8002ca2: 681b ldr r3, [r3, #0]
  6182. 8002ca4: 681a ldr r2, [r3, #0]
  6183. 8002ca6: 687b ldr r3, [r7, #4]
  6184. 8002ca8: 681b ldr r3, [r3, #0]
  6185. 8002caa: f022 020a bic.w r2, r2, #10
  6186. 8002cae: 601a str r2, [r3, #0]
  6187. /* Change the DMA state */
  6188. hdma->State = HAL_DMA_STATE_READY;
  6189. 8002cb0: 687b ldr r3, [r7, #4]
  6190. 8002cb2: 2201 movs r2, #1
  6191. 8002cb4: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6192. }
  6193. /* Clear the transfer complete flag */
  6194. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_TC_FLAG_INDEX(hdma));
  6195. 8002cb8: 687b ldr r3, [r7, #4]
  6196. 8002cba: 681b ldr r3, [r3, #0]
  6197. 8002cbc: 4a38 ldr r2, [pc, #224] ; (8002da0 <HAL_DMA_IRQHandler+0x1f0>)
  6198. 8002cbe: 4293 cmp r3, r2
  6199. 8002cc0: d029 beq.n 8002d16 <HAL_DMA_IRQHandler+0x166>
  6200. 8002cc2: 687b ldr r3, [r7, #4]
  6201. 8002cc4: 681b ldr r3, [r3, #0]
  6202. 8002cc6: 4a37 ldr r2, [pc, #220] ; (8002da4 <HAL_DMA_IRQHandler+0x1f4>)
  6203. 8002cc8: 4293 cmp r3, r2
  6204. 8002cca: d022 beq.n 8002d12 <HAL_DMA_IRQHandler+0x162>
  6205. 8002ccc: 687b ldr r3, [r7, #4]
  6206. 8002cce: 681b ldr r3, [r3, #0]
  6207. 8002cd0: 4a35 ldr r2, [pc, #212] ; (8002da8 <HAL_DMA_IRQHandler+0x1f8>)
  6208. 8002cd2: 4293 cmp r3, r2
  6209. 8002cd4: d01a beq.n 8002d0c <HAL_DMA_IRQHandler+0x15c>
  6210. 8002cd6: 687b ldr r3, [r7, #4]
  6211. 8002cd8: 681b ldr r3, [r3, #0]
  6212. 8002cda: 4a34 ldr r2, [pc, #208] ; (8002dac <HAL_DMA_IRQHandler+0x1fc>)
  6213. 8002cdc: 4293 cmp r3, r2
  6214. 8002cde: d012 beq.n 8002d06 <HAL_DMA_IRQHandler+0x156>
  6215. 8002ce0: 687b ldr r3, [r7, #4]
  6216. 8002ce2: 681b ldr r3, [r3, #0]
  6217. 8002ce4: 4a32 ldr r2, [pc, #200] ; (8002db0 <HAL_DMA_IRQHandler+0x200>)
  6218. 8002ce6: 4293 cmp r3, r2
  6219. 8002ce8: d00a beq.n 8002d00 <HAL_DMA_IRQHandler+0x150>
  6220. 8002cea: 687b ldr r3, [r7, #4]
  6221. 8002cec: 681b ldr r3, [r3, #0]
  6222. 8002cee: 4a31 ldr r2, [pc, #196] ; (8002db4 <HAL_DMA_IRQHandler+0x204>)
  6223. 8002cf0: 4293 cmp r3, r2
  6224. 8002cf2: d102 bne.n 8002cfa <HAL_DMA_IRQHandler+0x14a>
  6225. 8002cf4: f44f 1300 mov.w r3, #2097152 ; 0x200000
  6226. 8002cf8: e00e b.n 8002d18 <HAL_DMA_IRQHandler+0x168>
  6227. 8002cfa: f04f 7300 mov.w r3, #33554432 ; 0x2000000
  6228. 8002cfe: e00b b.n 8002d18 <HAL_DMA_IRQHandler+0x168>
  6229. 8002d00: f44f 3300 mov.w r3, #131072 ; 0x20000
  6230. 8002d04: e008 b.n 8002d18 <HAL_DMA_IRQHandler+0x168>
  6231. 8002d06: f44f 5300 mov.w r3, #8192 ; 0x2000
  6232. 8002d0a: e005 b.n 8002d18 <HAL_DMA_IRQHandler+0x168>
  6233. 8002d0c: f44f 7300 mov.w r3, #512 ; 0x200
  6234. 8002d10: e002 b.n 8002d18 <HAL_DMA_IRQHandler+0x168>
  6235. 8002d12: 2320 movs r3, #32
  6236. 8002d14: e000 b.n 8002d18 <HAL_DMA_IRQHandler+0x168>
  6237. 8002d16: 2302 movs r3, #2
  6238. 8002d18: 4a27 ldr r2, [pc, #156] ; (8002db8 <HAL_DMA_IRQHandler+0x208>)
  6239. 8002d1a: 6053 str r3, [r2, #4]
  6240. /* Process Unlocked */
  6241. __HAL_UNLOCK(hdma);
  6242. 8002d1c: 687b ldr r3, [r7, #4]
  6243. 8002d1e: 2200 movs r2, #0
  6244. 8002d20: f883 2020 strb.w r2, [r3, #32]
  6245. if(hdma->XferCpltCallback != NULL)
  6246. 8002d24: 687b ldr r3, [r7, #4]
  6247. 8002d26: 6a9b ldr r3, [r3, #40] ; 0x28
  6248. 8002d28: 2b00 cmp r3, #0
  6249. 8002d2a: d034 beq.n 8002d96 <HAL_DMA_IRQHandler+0x1e6>
  6250. {
  6251. /* Transfer complete callback */
  6252. hdma->XferCpltCallback(hdma);
  6253. 8002d2c: 687b ldr r3, [r7, #4]
  6254. 8002d2e: 6a9b ldr r3, [r3, #40] ; 0x28
  6255. 8002d30: 6878 ldr r0, [r7, #4]
  6256. 8002d32: 4798 blx r3
  6257. if(hdma->XferCpltCallback != NULL)
  6258. 8002d34: e02f b.n 8002d96 <HAL_DMA_IRQHandler+0x1e6>
  6259. }
  6260. }
  6261. /* Transfer Error Interrupt management **************************************/
  6262. else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE)))
  6263. 8002d36: 687b ldr r3, [r7, #4]
  6264. 8002d38: 6c1b ldr r3, [r3, #64] ; 0x40
  6265. 8002d3a: 2208 movs r2, #8
  6266. 8002d3c: 409a lsls r2, r3
  6267. 8002d3e: 68fb ldr r3, [r7, #12]
  6268. 8002d40: 4013 ands r3, r2
  6269. 8002d42: 2b00 cmp r3, #0
  6270. 8002d44: d028 beq.n 8002d98 <HAL_DMA_IRQHandler+0x1e8>
  6271. 8002d46: 68bb ldr r3, [r7, #8]
  6272. 8002d48: f003 0308 and.w r3, r3, #8
  6273. 8002d4c: 2b00 cmp r3, #0
  6274. 8002d4e: d023 beq.n 8002d98 <HAL_DMA_IRQHandler+0x1e8>
  6275. {
  6276. /* When a DMA transfer error occurs */
  6277. /* A hardware clear of its EN bits is performed */
  6278. /* Disable ALL DMA IT */
  6279. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  6280. 8002d50: 687b ldr r3, [r7, #4]
  6281. 8002d52: 681b ldr r3, [r3, #0]
  6282. 8002d54: 681a ldr r2, [r3, #0]
  6283. 8002d56: 687b ldr r3, [r7, #4]
  6284. 8002d58: 681b ldr r3, [r3, #0]
  6285. 8002d5a: f022 020e bic.w r2, r2, #14
  6286. 8002d5e: 601a str r2, [r3, #0]
  6287. /* Clear all flags */
  6288. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  6289. 8002d60: 687b ldr r3, [r7, #4]
  6290. 8002d62: 6c1a ldr r2, [r3, #64] ; 0x40
  6291. 8002d64: 687b ldr r3, [r7, #4]
  6292. 8002d66: 6bdb ldr r3, [r3, #60] ; 0x3c
  6293. 8002d68: 2101 movs r1, #1
  6294. 8002d6a: fa01 f202 lsl.w r2, r1, r2
  6295. 8002d6e: 605a str r2, [r3, #4]
  6296. /* Update error code */
  6297. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  6298. 8002d70: 687b ldr r3, [r7, #4]
  6299. 8002d72: 2201 movs r2, #1
  6300. 8002d74: 639a str r2, [r3, #56] ; 0x38
  6301. /* Change the DMA state */
  6302. hdma->State = HAL_DMA_STATE_READY;
  6303. 8002d76: 687b ldr r3, [r7, #4]
  6304. 8002d78: 2201 movs r2, #1
  6305. 8002d7a: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6306. /* Process Unlocked */
  6307. __HAL_UNLOCK(hdma);
  6308. 8002d7e: 687b ldr r3, [r7, #4]
  6309. 8002d80: 2200 movs r2, #0
  6310. 8002d82: f883 2020 strb.w r2, [r3, #32]
  6311. if (hdma->XferErrorCallback != NULL)
  6312. 8002d86: 687b ldr r3, [r7, #4]
  6313. 8002d88: 6b1b ldr r3, [r3, #48] ; 0x30
  6314. 8002d8a: 2b00 cmp r3, #0
  6315. 8002d8c: d004 beq.n 8002d98 <HAL_DMA_IRQHandler+0x1e8>
  6316. {
  6317. /* Transfer error callback */
  6318. hdma->XferErrorCallback(hdma);
  6319. 8002d8e: 687b ldr r3, [r7, #4]
  6320. 8002d90: 6b1b ldr r3, [r3, #48] ; 0x30
  6321. 8002d92: 6878 ldr r0, [r7, #4]
  6322. 8002d94: 4798 blx r3
  6323. }
  6324. }
  6325. return;
  6326. 8002d96: bf00 nop
  6327. 8002d98: bf00 nop
  6328. }
  6329. 8002d9a: 3710 adds r7, #16
  6330. 8002d9c: 46bd mov sp, r7
  6331. 8002d9e: bd80 pop {r7, pc}
  6332. 8002da0: 40020008 .word 0x40020008
  6333. 8002da4: 4002001c .word 0x4002001c
  6334. 8002da8: 40020030 .word 0x40020030
  6335. 8002dac: 40020044 .word 0x40020044
  6336. 8002db0: 40020058 .word 0x40020058
  6337. 8002db4: 4002006c .word 0x4002006c
  6338. 8002db8: 40020000 .word 0x40020000
  6339. 08002dbc <DMA_SetConfig>:
  6340. * @param DstAddress: The destination memory Buffer address
  6341. * @param DataLength: The length of data to be transferred from source to destination
  6342. * @retval HAL status
  6343. */
  6344. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  6345. {
  6346. 8002dbc: b480 push {r7}
  6347. 8002dbe: b085 sub sp, #20
  6348. 8002dc0: af00 add r7, sp, #0
  6349. 8002dc2: 60f8 str r0, [r7, #12]
  6350. 8002dc4: 60b9 str r1, [r7, #8]
  6351. 8002dc6: 607a str r2, [r7, #4]
  6352. 8002dc8: 603b str r3, [r7, #0]
  6353. /* Clear all flags */
  6354. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex);
  6355. 8002dca: 68fb ldr r3, [r7, #12]
  6356. 8002dcc: 6c1a ldr r2, [r3, #64] ; 0x40
  6357. 8002dce: 68fb ldr r3, [r7, #12]
  6358. 8002dd0: 6bdb ldr r3, [r3, #60] ; 0x3c
  6359. 8002dd2: 2101 movs r1, #1
  6360. 8002dd4: fa01 f202 lsl.w r2, r1, r2
  6361. 8002dd8: 605a str r2, [r3, #4]
  6362. /* Configure DMA Channel data length */
  6363. hdma->Instance->CNDTR = DataLength;
  6364. 8002dda: 68fb ldr r3, [r7, #12]
  6365. 8002ddc: 681b ldr r3, [r3, #0]
  6366. 8002dde: 683a ldr r2, [r7, #0]
  6367. 8002de0: 605a str r2, [r3, #4]
  6368. /* Memory to Peripheral */
  6369. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  6370. 8002de2: 68fb ldr r3, [r7, #12]
  6371. 8002de4: 685b ldr r3, [r3, #4]
  6372. 8002de6: 2b10 cmp r3, #16
  6373. 8002de8: d108 bne.n 8002dfc <DMA_SetConfig+0x40>
  6374. {
  6375. /* Configure DMA Channel destination address */
  6376. hdma->Instance->CPAR = DstAddress;
  6377. 8002dea: 68fb ldr r3, [r7, #12]
  6378. 8002dec: 681b ldr r3, [r3, #0]
  6379. 8002dee: 687a ldr r2, [r7, #4]
  6380. 8002df0: 609a str r2, [r3, #8]
  6381. /* Configure DMA Channel source address */
  6382. hdma->Instance->CMAR = SrcAddress;
  6383. 8002df2: 68fb ldr r3, [r7, #12]
  6384. 8002df4: 681b ldr r3, [r3, #0]
  6385. 8002df6: 68ba ldr r2, [r7, #8]
  6386. 8002df8: 60da str r2, [r3, #12]
  6387. hdma->Instance->CPAR = SrcAddress;
  6388. /* Configure DMA Channel destination address */
  6389. hdma->Instance->CMAR = DstAddress;
  6390. }
  6391. }
  6392. 8002dfa: e007 b.n 8002e0c <DMA_SetConfig+0x50>
  6393. hdma->Instance->CPAR = SrcAddress;
  6394. 8002dfc: 68fb ldr r3, [r7, #12]
  6395. 8002dfe: 681b ldr r3, [r3, #0]
  6396. 8002e00: 68ba ldr r2, [r7, #8]
  6397. 8002e02: 609a str r2, [r3, #8]
  6398. hdma->Instance->CMAR = DstAddress;
  6399. 8002e04: 68fb ldr r3, [r7, #12]
  6400. 8002e06: 681b ldr r3, [r3, #0]
  6401. 8002e08: 687a ldr r2, [r7, #4]
  6402. 8002e0a: 60da str r2, [r3, #12]
  6403. }
  6404. 8002e0c: bf00 nop
  6405. 8002e0e: 3714 adds r7, #20
  6406. 8002e10: 46bd mov sp, r7
  6407. 8002e12: bc80 pop {r7}
  6408. 8002e14: 4770 bx lr
  6409. ...
  6410. 08002e18 <HAL_FLASH_Program>:
  6411. * @param Data: Specifies the data to be programmed
  6412. *
  6413. * @retval HAL_StatusTypeDef HAL Status
  6414. */
  6415. HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  6416. {
  6417. 8002e18: b5f0 push {r4, r5, r6, r7, lr}
  6418. 8002e1a: b087 sub sp, #28
  6419. 8002e1c: af00 add r7, sp, #0
  6420. 8002e1e: 60f8 str r0, [r7, #12]
  6421. 8002e20: 60b9 str r1, [r7, #8]
  6422. 8002e22: e9c7 2300 strd r2, r3, [r7]
  6423. HAL_StatusTypeDef status = HAL_ERROR;
  6424. 8002e26: 2301 movs r3, #1
  6425. 8002e28: 75fb strb r3, [r7, #23]
  6426. uint8_t index = 0;
  6427. 8002e2a: 2300 movs r3, #0
  6428. 8002e2c: 75bb strb r3, [r7, #22]
  6429. uint8_t nbiterations = 0;
  6430. 8002e2e: 2300 movs r3, #0
  6431. 8002e30: 757b strb r3, [r7, #21]
  6432. /* Process Locked */
  6433. __HAL_LOCK(&pFlash);
  6434. 8002e32: 4b2f ldr r3, [pc, #188] ; (8002ef0 <HAL_FLASH_Program+0xd8>)
  6435. 8002e34: 7e1b ldrb r3, [r3, #24]
  6436. 8002e36: 2b01 cmp r3, #1
  6437. 8002e38: d101 bne.n 8002e3e <HAL_FLASH_Program+0x26>
  6438. 8002e3a: 2302 movs r3, #2
  6439. 8002e3c: e054 b.n 8002ee8 <HAL_FLASH_Program+0xd0>
  6440. 8002e3e: 4b2c ldr r3, [pc, #176] ; (8002ef0 <HAL_FLASH_Program+0xd8>)
  6441. 8002e40: 2201 movs r2, #1
  6442. 8002e42: 761a strb r2, [r3, #24]
  6443. #if defined(FLASH_BANK2_END)
  6444. if(Address <= FLASH_BANK1_END)
  6445. {
  6446. #endif /* FLASH_BANK2_END */
  6447. /* Wait for last operation to be completed */
  6448. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  6449. 8002e44: f24c 3050 movw r0, #50000 ; 0xc350
  6450. 8002e48: f000 f8a8 bl 8002f9c <FLASH_WaitForLastOperation>
  6451. 8002e4c: 4603 mov r3, r0
  6452. 8002e4e: 75fb strb r3, [r7, #23]
  6453. /* Wait for last operation to be completed */
  6454. status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE);
  6455. }
  6456. #endif /* FLASH_BANK2_END */
  6457. if(status == HAL_OK)
  6458. 8002e50: 7dfb ldrb r3, [r7, #23]
  6459. 8002e52: 2b00 cmp r3, #0
  6460. 8002e54: d144 bne.n 8002ee0 <HAL_FLASH_Program+0xc8>
  6461. {
  6462. if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  6463. 8002e56: 68fb ldr r3, [r7, #12]
  6464. 8002e58: 2b01 cmp r3, #1
  6465. 8002e5a: d102 bne.n 8002e62 <HAL_FLASH_Program+0x4a>
  6466. {
  6467. /* Program halfword (16-bit) at a specified address. */
  6468. nbiterations = 1U;
  6469. 8002e5c: 2301 movs r3, #1
  6470. 8002e5e: 757b strb r3, [r7, #21]
  6471. 8002e60: e007 b.n 8002e72 <HAL_FLASH_Program+0x5a>
  6472. }
  6473. else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  6474. 8002e62: 68fb ldr r3, [r7, #12]
  6475. 8002e64: 2b02 cmp r3, #2
  6476. 8002e66: d102 bne.n 8002e6e <HAL_FLASH_Program+0x56>
  6477. {
  6478. /* Program word (32-bit = 2*16-bit) at a specified address. */
  6479. nbiterations = 2U;
  6480. 8002e68: 2302 movs r3, #2
  6481. 8002e6a: 757b strb r3, [r7, #21]
  6482. 8002e6c: e001 b.n 8002e72 <HAL_FLASH_Program+0x5a>
  6483. }
  6484. else
  6485. {
  6486. /* Program double word (64-bit = 4*16-bit) at a specified address. */
  6487. nbiterations = 4U;
  6488. 8002e6e: 2304 movs r3, #4
  6489. 8002e70: 757b strb r3, [r7, #21]
  6490. }
  6491. for (index = 0U; index < nbiterations; index++)
  6492. 8002e72: 2300 movs r3, #0
  6493. 8002e74: 75bb strb r3, [r7, #22]
  6494. 8002e76: e02d b.n 8002ed4 <HAL_FLASH_Program+0xbc>
  6495. {
  6496. FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index)));
  6497. 8002e78: 7dbb ldrb r3, [r7, #22]
  6498. 8002e7a: 005a lsls r2, r3, #1
  6499. 8002e7c: 68bb ldr r3, [r7, #8]
  6500. 8002e7e: eb02 0c03 add.w ip, r2, r3
  6501. 8002e82: 7dbb ldrb r3, [r7, #22]
  6502. 8002e84: 0119 lsls r1, r3, #4
  6503. 8002e86: e9d7 2300 ldrd r2, r3, [r7]
  6504. 8002e8a: f1c1 0620 rsb r6, r1, #32
  6505. 8002e8e: f1a1 0020 sub.w r0, r1, #32
  6506. 8002e92: fa22 f401 lsr.w r4, r2, r1
  6507. 8002e96: fa03 f606 lsl.w r6, r3, r6
  6508. 8002e9a: 4334 orrs r4, r6
  6509. 8002e9c: fa23 f000 lsr.w r0, r3, r0
  6510. 8002ea0: 4304 orrs r4, r0
  6511. 8002ea2: fa23 f501 lsr.w r5, r3, r1
  6512. 8002ea6: b2a3 uxth r3, r4
  6513. 8002ea8: 4619 mov r1, r3
  6514. 8002eaa: 4660 mov r0, ip
  6515. 8002eac: f000 f85a bl 8002f64 <FLASH_Program_HalfWord>
  6516. #if defined(FLASH_BANK2_END)
  6517. if(Address <= FLASH_BANK1_END)
  6518. {
  6519. #endif /* FLASH_BANK2_END */
  6520. /* Wait for last operation to be completed */
  6521. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  6522. 8002eb0: f24c 3050 movw r0, #50000 ; 0xc350
  6523. 8002eb4: f000 f872 bl 8002f9c <FLASH_WaitForLastOperation>
  6524. 8002eb8: 4603 mov r3, r0
  6525. 8002eba: 75fb strb r3, [r7, #23]
  6526. /* If the program operation is completed, disable the PG Bit */
  6527. CLEAR_BIT(FLASH->CR, FLASH_CR_PG);
  6528. 8002ebc: 4b0d ldr r3, [pc, #52] ; (8002ef4 <HAL_FLASH_Program+0xdc>)
  6529. 8002ebe: 691b ldr r3, [r3, #16]
  6530. 8002ec0: 4a0c ldr r2, [pc, #48] ; (8002ef4 <HAL_FLASH_Program+0xdc>)
  6531. 8002ec2: f023 0301 bic.w r3, r3, #1
  6532. 8002ec6: 6113 str r3, [r2, #16]
  6533. /* If the program operation is completed, disable the PG Bit */
  6534. CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG);
  6535. }
  6536. #endif /* FLASH_BANK2_END */
  6537. /* In case of error, stop programation procedure */
  6538. if (status != HAL_OK)
  6539. 8002ec8: 7dfb ldrb r3, [r7, #23]
  6540. 8002eca: 2b00 cmp r3, #0
  6541. 8002ecc: d107 bne.n 8002ede <HAL_FLASH_Program+0xc6>
  6542. for (index = 0U; index < nbiterations; index++)
  6543. 8002ece: 7dbb ldrb r3, [r7, #22]
  6544. 8002ed0: 3301 adds r3, #1
  6545. 8002ed2: 75bb strb r3, [r7, #22]
  6546. 8002ed4: 7dba ldrb r2, [r7, #22]
  6547. 8002ed6: 7d7b ldrb r3, [r7, #21]
  6548. 8002ed8: 429a cmp r2, r3
  6549. 8002eda: d3cd bcc.n 8002e78 <HAL_FLASH_Program+0x60>
  6550. 8002edc: e000 b.n 8002ee0 <HAL_FLASH_Program+0xc8>
  6551. {
  6552. break;
  6553. 8002ede: bf00 nop
  6554. }
  6555. }
  6556. }
  6557. /* Process Unlocked */
  6558. __HAL_UNLOCK(&pFlash);
  6559. 8002ee0: 4b03 ldr r3, [pc, #12] ; (8002ef0 <HAL_FLASH_Program+0xd8>)
  6560. 8002ee2: 2200 movs r2, #0
  6561. 8002ee4: 761a strb r2, [r3, #24]
  6562. return status;
  6563. 8002ee6: 7dfb ldrb r3, [r7, #23]
  6564. }
  6565. 8002ee8: 4618 mov r0, r3
  6566. 8002eea: 371c adds r7, #28
  6567. 8002eec: 46bd mov sp, r7
  6568. 8002eee: bdf0 pop {r4, r5, r6, r7, pc}
  6569. 8002ef0: 200007c0 .word 0x200007c0
  6570. 8002ef4: 40022000 .word 0x40022000
  6571. 08002ef8 <HAL_FLASH_Unlock>:
  6572. /**
  6573. * @brief Unlock the FLASH control register access
  6574. * @retval HAL Status
  6575. */
  6576. HAL_StatusTypeDef HAL_FLASH_Unlock(void)
  6577. {
  6578. 8002ef8: b480 push {r7}
  6579. 8002efa: b083 sub sp, #12
  6580. 8002efc: af00 add r7, sp, #0
  6581. HAL_StatusTypeDef status = HAL_OK;
  6582. 8002efe: 2300 movs r3, #0
  6583. 8002f00: 71fb strb r3, [r7, #7]
  6584. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  6585. 8002f02: 4b0d ldr r3, [pc, #52] ; (8002f38 <HAL_FLASH_Unlock+0x40>)
  6586. 8002f04: 691b ldr r3, [r3, #16]
  6587. 8002f06: f003 0380 and.w r3, r3, #128 ; 0x80
  6588. 8002f0a: 2b00 cmp r3, #0
  6589. 8002f0c: d00d beq.n 8002f2a <HAL_FLASH_Unlock+0x32>
  6590. {
  6591. /* Authorize the FLASH Registers access */
  6592. WRITE_REG(FLASH->KEYR, FLASH_KEY1);
  6593. 8002f0e: 4b0a ldr r3, [pc, #40] ; (8002f38 <HAL_FLASH_Unlock+0x40>)
  6594. 8002f10: 4a0a ldr r2, [pc, #40] ; (8002f3c <HAL_FLASH_Unlock+0x44>)
  6595. 8002f12: 605a str r2, [r3, #4]
  6596. WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  6597. 8002f14: 4b08 ldr r3, [pc, #32] ; (8002f38 <HAL_FLASH_Unlock+0x40>)
  6598. 8002f16: 4a0a ldr r2, [pc, #40] ; (8002f40 <HAL_FLASH_Unlock+0x48>)
  6599. 8002f18: 605a str r2, [r3, #4]
  6600. /* Verify Flash is unlocked */
  6601. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  6602. 8002f1a: 4b07 ldr r3, [pc, #28] ; (8002f38 <HAL_FLASH_Unlock+0x40>)
  6603. 8002f1c: 691b ldr r3, [r3, #16]
  6604. 8002f1e: f003 0380 and.w r3, r3, #128 ; 0x80
  6605. 8002f22: 2b00 cmp r3, #0
  6606. 8002f24: d001 beq.n 8002f2a <HAL_FLASH_Unlock+0x32>
  6607. {
  6608. status = HAL_ERROR;
  6609. 8002f26: 2301 movs r3, #1
  6610. 8002f28: 71fb strb r3, [r7, #7]
  6611. status = HAL_ERROR;
  6612. }
  6613. }
  6614. #endif /* FLASH_BANK2_END */
  6615. return status;
  6616. 8002f2a: 79fb ldrb r3, [r7, #7]
  6617. }
  6618. 8002f2c: 4618 mov r0, r3
  6619. 8002f2e: 370c adds r7, #12
  6620. 8002f30: 46bd mov sp, r7
  6621. 8002f32: bc80 pop {r7}
  6622. 8002f34: 4770 bx lr
  6623. 8002f36: bf00 nop
  6624. 8002f38: 40022000 .word 0x40022000
  6625. 8002f3c: 45670123 .word 0x45670123
  6626. 8002f40: cdef89ab .word 0xcdef89ab
  6627. 08002f44 <HAL_FLASH_Lock>:
  6628. /**
  6629. * @brief Locks the FLASH control register access
  6630. * @retval HAL Status
  6631. */
  6632. HAL_StatusTypeDef HAL_FLASH_Lock(void)
  6633. {
  6634. 8002f44: b480 push {r7}
  6635. 8002f46: af00 add r7, sp, #0
  6636. /* Set the LOCK Bit to lock the FLASH Registers access */
  6637. SET_BIT(FLASH->CR, FLASH_CR_LOCK);
  6638. 8002f48: 4b05 ldr r3, [pc, #20] ; (8002f60 <HAL_FLASH_Lock+0x1c>)
  6639. 8002f4a: 691b ldr r3, [r3, #16]
  6640. 8002f4c: 4a04 ldr r2, [pc, #16] ; (8002f60 <HAL_FLASH_Lock+0x1c>)
  6641. 8002f4e: f043 0380 orr.w r3, r3, #128 ; 0x80
  6642. 8002f52: 6113 str r3, [r2, #16]
  6643. #if defined(FLASH_BANK2_END)
  6644. /* Set the LOCK Bit to lock the FLASH BANK2 Registers access */
  6645. SET_BIT(FLASH->CR2, FLASH_CR2_LOCK);
  6646. #endif /* FLASH_BANK2_END */
  6647. return HAL_OK;
  6648. 8002f54: 2300 movs r3, #0
  6649. }
  6650. 8002f56: 4618 mov r0, r3
  6651. 8002f58: 46bd mov sp, r7
  6652. 8002f5a: bc80 pop {r7}
  6653. 8002f5c: 4770 bx lr
  6654. 8002f5e: bf00 nop
  6655. 8002f60: 40022000 .word 0x40022000
  6656. 08002f64 <FLASH_Program_HalfWord>:
  6657. * @param Address specify the address to be programmed.
  6658. * @param Data specify the data to be programmed.
  6659. * @retval None
  6660. */
  6661. static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data)
  6662. {
  6663. 8002f64: b480 push {r7}
  6664. 8002f66: b083 sub sp, #12
  6665. 8002f68: af00 add r7, sp, #0
  6666. 8002f6a: 6078 str r0, [r7, #4]
  6667. 8002f6c: 460b mov r3, r1
  6668. 8002f6e: 807b strh r3, [r7, #2]
  6669. /* Clean the error context */
  6670. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  6671. 8002f70: 4b08 ldr r3, [pc, #32] ; (8002f94 <FLASH_Program_HalfWord+0x30>)
  6672. 8002f72: 2200 movs r2, #0
  6673. 8002f74: 61da str r2, [r3, #28]
  6674. #if defined(FLASH_BANK2_END)
  6675. if(Address <= FLASH_BANK1_END)
  6676. {
  6677. #endif /* FLASH_BANK2_END */
  6678. /* Proceed to program the new data */
  6679. SET_BIT(FLASH->CR, FLASH_CR_PG);
  6680. 8002f76: 4b08 ldr r3, [pc, #32] ; (8002f98 <FLASH_Program_HalfWord+0x34>)
  6681. 8002f78: 691b ldr r3, [r3, #16]
  6682. 8002f7a: 4a07 ldr r2, [pc, #28] ; (8002f98 <FLASH_Program_HalfWord+0x34>)
  6683. 8002f7c: f043 0301 orr.w r3, r3, #1
  6684. 8002f80: 6113 str r3, [r2, #16]
  6685. SET_BIT(FLASH->CR2, FLASH_CR2_PG);
  6686. }
  6687. #endif /* FLASH_BANK2_END */
  6688. /* Write data in the address */
  6689. *(__IO uint16_t*)Address = Data;
  6690. 8002f82: 687b ldr r3, [r7, #4]
  6691. 8002f84: 887a ldrh r2, [r7, #2]
  6692. 8002f86: 801a strh r2, [r3, #0]
  6693. }
  6694. 8002f88: bf00 nop
  6695. 8002f8a: 370c adds r7, #12
  6696. 8002f8c: 46bd mov sp, r7
  6697. 8002f8e: bc80 pop {r7}
  6698. 8002f90: 4770 bx lr
  6699. 8002f92: bf00 nop
  6700. 8002f94: 200007c0 .word 0x200007c0
  6701. 8002f98: 40022000 .word 0x40022000
  6702. 08002f9c <FLASH_WaitForLastOperation>:
  6703. * @brief Wait for a FLASH operation to complete.
  6704. * @param Timeout maximum flash operation timeout
  6705. * @retval HAL Status
  6706. */
  6707. HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout)
  6708. {
  6709. 8002f9c: b580 push {r7, lr}
  6710. 8002f9e: b084 sub sp, #16
  6711. 8002fa0: af00 add r7, sp, #0
  6712. 8002fa2: 6078 str r0, [r7, #4]
  6713. /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
  6714. Even if the FLASH operation fails, the BUSY flag will be reset and an error
  6715. flag will be set */
  6716. uint32_t tickstart = HAL_GetTick();
  6717. 8002fa4: f7fe fee8 bl 8001d78 <HAL_GetTick>
  6718. 8002fa8: 60f8 str r0, [r7, #12]
  6719. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  6720. 8002faa: e010 b.n 8002fce <FLASH_WaitForLastOperation+0x32>
  6721. {
  6722. if (Timeout != HAL_MAX_DELAY)
  6723. 8002fac: 687b ldr r3, [r7, #4]
  6724. 8002fae: f1b3 3fff cmp.w r3, #4294967295
  6725. 8002fb2: d00c beq.n 8002fce <FLASH_WaitForLastOperation+0x32>
  6726. {
  6727. if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
  6728. 8002fb4: 687b ldr r3, [r7, #4]
  6729. 8002fb6: 2b00 cmp r3, #0
  6730. 8002fb8: d007 beq.n 8002fca <FLASH_WaitForLastOperation+0x2e>
  6731. 8002fba: f7fe fedd bl 8001d78 <HAL_GetTick>
  6732. 8002fbe: 4602 mov r2, r0
  6733. 8002fc0: 68fb ldr r3, [r7, #12]
  6734. 8002fc2: 1ad3 subs r3, r2, r3
  6735. 8002fc4: 687a ldr r2, [r7, #4]
  6736. 8002fc6: 429a cmp r2, r3
  6737. 8002fc8: d201 bcs.n 8002fce <FLASH_WaitForLastOperation+0x32>
  6738. {
  6739. return HAL_TIMEOUT;
  6740. 8002fca: 2303 movs r3, #3
  6741. 8002fcc: e025 b.n 800301a <FLASH_WaitForLastOperation+0x7e>
  6742. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  6743. 8002fce: 4b15 ldr r3, [pc, #84] ; (8003024 <FLASH_WaitForLastOperation+0x88>)
  6744. 8002fd0: 68db ldr r3, [r3, #12]
  6745. 8002fd2: f003 0301 and.w r3, r3, #1
  6746. 8002fd6: 2b00 cmp r3, #0
  6747. 8002fd8: d1e8 bne.n 8002fac <FLASH_WaitForLastOperation+0x10>
  6748. }
  6749. }
  6750. }
  6751. /* Check FLASH End of Operation flag */
  6752. if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP))
  6753. 8002fda: 4b12 ldr r3, [pc, #72] ; (8003024 <FLASH_WaitForLastOperation+0x88>)
  6754. 8002fdc: 68db ldr r3, [r3, #12]
  6755. 8002fde: f003 0320 and.w r3, r3, #32
  6756. 8002fe2: 2b00 cmp r3, #0
  6757. 8002fe4: d002 beq.n 8002fec <FLASH_WaitForLastOperation+0x50>
  6758. {
  6759. /* Clear FLASH End of Operation pending bit */
  6760. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  6761. 8002fe6: 4b0f ldr r3, [pc, #60] ; (8003024 <FLASH_WaitForLastOperation+0x88>)
  6762. 8002fe8: 2220 movs r2, #32
  6763. 8002fea: 60da str r2, [r3, #12]
  6764. }
  6765. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  6766. 8002fec: 4b0d ldr r3, [pc, #52] ; (8003024 <FLASH_WaitForLastOperation+0x88>)
  6767. 8002fee: 68db ldr r3, [r3, #12]
  6768. 8002ff0: f003 0310 and.w r3, r3, #16
  6769. 8002ff4: 2b00 cmp r3, #0
  6770. 8002ff6: d10b bne.n 8003010 <FLASH_WaitForLastOperation+0x74>
  6771. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  6772. 8002ff8: 4b0a ldr r3, [pc, #40] ; (8003024 <FLASH_WaitForLastOperation+0x88>)
  6773. 8002ffa: 69db ldr r3, [r3, #28]
  6774. 8002ffc: f003 0301 and.w r3, r3, #1
  6775. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  6776. 8003000: 2b00 cmp r3, #0
  6777. 8003002: d105 bne.n 8003010 <FLASH_WaitForLastOperation+0x74>
  6778. __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  6779. 8003004: 4b07 ldr r3, [pc, #28] ; (8003024 <FLASH_WaitForLastOperation+0x88>)
  6780. 8003006: 68db ldr r3, [r3, #12]
  6781. 8003008: f003 0304 and.w r3, r3, #4
  6782. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  6783. 800300c: 2b00 cmp r3, #0
  6784. 800300e: d003 beq.n 8003018 <FLASH_WaitForLastOperation+0x7c>
  6785. {
  6786. /*Save the error code*/
  6787. FLASH_SetErrorCode();
  6788. 8003010: f000 f80a bl 8003028 <FLASH_SetErrorCode>
  6789. return HAL_ERROR;
  6790. 8003014: 2301 movs r3, #1
  6791. 8003016: e000 b.n 800301a <FLASH_WaitForLastOperation+0x7e>
  6792. }
  6793. /* There is no error flag set */
  6794. return HAL_OK;
  6795. 8003018: 2300 movs r3, #0
  6796. }
  6797. 800301a: 4618 mov r0, r3
  6798. 800301c: 3710 adds r7, #16
  6799. 800301e: 46bd mov sp, r7
  6800. 8003020: bd80 pop {r7, pc}
  6801. 8003022: bf00 nop
  6802. 8003024: 40022000 .word 0x40022000
  6803. 08003028 <FLASH_SetErrorCode>:
  6804. /**
  6805. * @brief Set the specific FLASH error flag.
  6806. * @retval None
  6807. */
  6808. static void FLASH_SetErrorCode(void)
  6809. {
  6810. 8003028: b480 push {r7}
  6811. 800302a: b083 sub sp, #12
  6812. 800302c: af00 add r7, sp, #0
  6813. uint32_t flags = 0U;
  6814. 800302e: 2300 movs r3, #0
  6815. 8003030: 607b str r3, [r7, #4]
  6816. #if defined(FLASH_BANK2_END)
  6817. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2))
  6818. #else
  6819. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR))
  6820. 8003032: 4b23 ldr r3, [pc, #140] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6821. 8003034: 68db ldr r3, [r3, #12]
  6822. 8003036: f003 0310 and.w r3, r3, #16
  6823. 800303a: 2b00 cmp r3, #0
  6824. 800303c: d009 beq.n 8003052 <FLASH_SetErrorCode+0x2a>
  6825. #endif /* FLASH_BANK2_END */
  6826. {
  6827. pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
  6828. 800303e: 4b21 ldr r3, [pc, #132] ; (80030c4 <FLASH_SetErrorCode+0x9c>)
  6829. 8003040: 69db ldr r3, [r3, #28]
  6830. 8003042: f043 0302 orr.w r3, r3, #2
  6831. 8003046: 4a1f ldr r2, [pc, #124] ; (80030c4 <FLASH_SetErrorCode+0x9c>)
  6832. 8003048: 61d3 str r3, [r2, #28]
  6833. #if defined(FLASH_BANK2_END)
  6834. flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2;
  6835. #else
  6836. flags |= FLASH_FLAG_WRPERR;
  6837. 800304a: 687b ldr r3, [r7, #4]
  6838. 800304c: f043 0310 orr.w r3, r3, #16
  6839. 8003050: 607b str r3, [r7, #4]
  6840. #endif /* FLASH_BANK2_END */
  6841. }
  6842. #if defined(FLASH_BANK2_END)
  6843. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
  6844. #else
  6845. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  6846. 8003052: 4b1b ldr r3, [pc, #108] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6847. 8003054: 68db ldr r3, [r3, #12]
  6848. 8003056: f003 0304 and.w r3, r3, #4
  6849. 800305a: 2b00 cmp r3, #0
  6850. 800305c: d009 beq.n 8003072 <FLASH_SetErrorCode+0x4a>
  6851. #endif /* FLASH_BANK2_END */
  6852. {
  6853. pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG;
  6854. 800305e: 4b19 ldr r3, [pc, #100] ; (80030c4 <FLASH_SetErrorCode+0x9c>)
  6855. 8003060: 69db ldr r3, [r3, #28]
  6856. 8003062: f043 0301 orr.w r3, r3, #1
  6857. 8003066: 4a17 ldr r2, [pc, #92] ; (80030c4 <FLASH_SetErrorCode+0x9c>)
  6858. 8003068: 61d3 str r3, [r2, #28]
  6859. #if defined(FLASH_BANK2_END)
  6860. flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2;
  6861. #else
  6862. flags |= FLASH_FLAG_PGERR;
  6863. 800306a: 687b ldr r3, [r7, #4]
  6864. 800306c: f043 0304 orr.w r3, r3, #4
  6865. 8003070: 607b str r3, [r7, #4]
  6866. #endif /* FLASH_BANK2_END */
  6867. }
  6868. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR))
  6869. 8003072: 4b13 ldr r3, [pc, #76] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6870. 8003074: 69db ldr r3, [r3, #28]
  6871. 8003076: f003 0301 and.w r3, r3, #1
  6872. 800307a: 2b00 cmp r3, #0
  6873. 800307c: d00b beq.n 8003096 <FLASH_SetErrorCode+0x6e>
  6874. {
  6875. pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV;
  6876. 800307e: 4b11 ldr r3, [pc, #68] ; (80030c4 <FLASH_SetErrorCode+0x9c>)
  6877. 8003080: 69db ldr r3, [r3, #28]
  6878. 8003082: f043 0304 orr.w r3, r3, #4
  6879. 8003086: 4a0f ldr r2, [pc, #60] ; (80030c4 <FLASH_SetErrorCode+0x9c>)
  6880. 8003088: 61d3 str r3, [r2, #28]
  6881. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
  6882. 800308a: 4b0d ldr r3, [pc, #52] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6883. 800308c: 69db ldr r3, [r3, #28]
  6884. 800308e: 4a0c ldr r2, [pc, #48] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6885. 8003090: f023 0301 bic.w r3, r3, #1
  6886. 8003094: 61d3 str r3, [r2, #28]
  6887. }
  6888. /* Clear FLASH error pending bits */
  6889. __HAL_FLASH_CLEAR_FLAG(flags);
  6890. 8003096: 687b ldr r3, [r7, #4]
  6891. 8003098: f240 1201 movw r2, #257 ; 0x101
  6892. 800309c: 4293 cmp r3, r2
  6893. 800309e: d106 bne.n 80030ae <FLASH_SetErrorCode+0x86>
  6894. 80030a0: 4b07 ldr r3, [pc, #28] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6895. 80030a2: 69db ldr r3, [r3, #28]
  6896. 80030a4: 4a06 ldr r2, [pc, #24] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6897. 80030a6: f023 0301 bic.w r3, r3, #1
  6898. 80030aa: 61d3 str r3, [r2, #28]
  6899. }
  6900. 80030ac: e002 b.n 80030b4 <FLASH_SetErrorCode+0x8c>
  6901. __HAL_FLASH_CLEAR_FLAG(flags);
  6902. 80030ae: 4a04 ldr r2, [pc, #16] ; (80030c0 <FLASH_SetErrorCode+0x98>)
  6903. 80030b0: 687b ldr r3, [r7, #4]
  6904. 80030b2: 60d3 str r3, [r2, #12]
  6905. }
  6906. 80030b4: bf00 nop
  6907. 80030b6: 370c adds r7, #12
  6908. 80030b8: 46bd mov sp, r7
  6909. 80030ba: bc80 pop {r7}
  6910. 80030bc: 4770 bx lr
  6911. 80030be: bf00 nop
  6912. 80030c0: 40022000 .word 0x40022000
  6913. 80030c4: 200007c0 .word 0x200007c0
  6914. 080030c8 <HAL_FLASHEx_Erase>:
  6915. * (0xFFFFFFFF means that all the pages have been correctly erased)
  6916. *
  6917. * @retval HAL_StatusTypeDef HAL Status
  6918. */
  6919. HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)
  6920. {
  6921. 80030c8: b580 push {r7, lr}
  6922. 80030ca: b084 sub sp, #16
  6923. 80030cc: af00 add r7, sp, #0
  6924. 80030ce: 6078 str r0, [r7, #4]
  6925. 80030d0: 6039 str r1, [r7, #0]
  6926. HAL_StatusTypeDef status = HAL_ERROR;
  6927. 80030d2: 2301 movs r3, #1
  6928. 80030d4: 73fb strb r3, [r7, #15]
  6929. uint32_t address = 0U;
  6930. 80030d6: 2300 movs r3, #0
  6931. 80030d8: 60bb str r3, [r7, #8]
  6932. /* Process Locked */
  6933. __HAL_LOCK(&pFlash);
  6934. 80030da: 4b2f ldr r3, [pc, #188] ; (8003198 <HAL_FLASHEx_Erase+0xd0>)
  6935. 80030dc: 7e1b ldrb r3, [r3, #24]
  6936. 80030de: 2b01 cmp r3, #1
  6937. 80030e0: d101 bne.n 80030e6 <HAL_FLASHEx_Erase+0x1e>
  6938. 80030e2: 2302 movs r3, #2
  6939. 80030e4: e053 b.n 800318e <HAL_FLASHEx_Erase+0xc6>
  6940. 80030e6: 4b2c ldr r3, [pc, #176] ; (8003198 <HAL_FLASHEx_Erase+0xd0>)
  6941. 80030e8: 2201 movs r2, #1
  6942. 80030ea: 761a strb r2, [r3, #24]
  6943. /* Check the parameters */
  6944. assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase));
  6945. if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE)
  6946. 80030ec: 687b ldr r3, [r7, #4]
  6947. 80030ee: 681b ldr r3, [r3, #0]
  6948. 80030f0: 2b02 cmp r3, #2
  6949. 80030f2: d116 bne.n 8003122 <HAL_FLASHEx_Erase+0x5a>
  6950. else
  6951. #endif /* FLASH_BANK2_END */
  6952. {
  6953. /* Mass Erase requested for Bank1 */
  6954. /* Wait for last operation to be completed */
  6955. if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK)
  6956. 80030f4: f24c 3050 movw r0, #50000 ; 0xc350
  6957. 80030f8: f7ff ff50 bl 8002f9c <FLASH_WaitForLastOperation>
  6958. 80030fc: 4603 mov r3, r0
  6959. 80030fe: 2b00 cmp r3, #0
  6960. 8003100: d141 bne.n 8003186 <HAL_FLASHEx_Erase+0xbe>
  6961. {
  6962. /*Mass erase to be done*/
  6963. FLASH_MassErase(FLASH_BANK_1);
  6964. 8003102: 2001 movs r0, #1
  6965. 8003104: f000 f84c bl 80031a0 <FLASH_MassErase>
  6966. /* Wait for last operation to be completed */
  6967. status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  6968. 8003108: f24c 3050 movw r0, #50000 ; 0xc350
  6969. 800310c: f7ff ff46 bl 8002f9c <FLASH_WaitForLastOperation>
  6970. 8003110: 4603 mov r3, r0
  6971. 8003112: 73fb strb r3, [r7, #15]
  6972. /* If the erase operation is completed, disable the MER Bit */
  6973. CLEAR_BIT(FLASH->CR, FLASH_CR_MER);
  6974. 8003114: 4b21 ldr r3, [pc, #132] ; (800319c <HAL_FLASHEx_Erase+0xd4>)
  6975. 8003116: 691b ldr r3, [r3, #16]
  6976. 8003118: 4a20 ldr r2, [pc, #128] ; (800319c <HAL_FLASHEx_Erase+0xd4>)
  6977. 800311a: f023 0304 bic.w r3, r3, #4
  6978. 800311e: 6113 str r3, [r2, #16]
  6979. 8003120: e031 b.n 8003186 <HAL_FLASHEx_Erase+0xbe>
  6980. else
  6981. #endif /* FLASH_BANK2_END */
  6982. {
  6983. /* Page Erase requested on address located on bank1 */
  6984. /* Wait for last operation to be completed */
  6985. if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK)
  6986. 8003122: f24c 3050 movw r0, #50000 ; 0xc350
  6987. 8003126: f7ff ff39 bl 8002f9c <FLASH_WaitForLastOperation>
  6988. 800312a: 4603 mov r3, r0
  6989. 800312c: 2b00 cmp r3, #0
  6990. 800312e: d12a bne.n 8003186 <HAL_FLASHEx_Erase+0xbe>
  6991. {
  6992. /*Initialization of PageError variable*/
  6993. *PageError = 0xFFFFFFFFU;
  6994. 8003130: 683b ldr r3, [r7, #0]
  6995. 8003132: f04f 32ff mov.w r2, #4294967295
  6996. 8003136: 601a str r2, [r3, #0]
  6997. /* Erase page by page to be done*/
  6998. for(address = pEraseInit->PageAddress;
  6999. 8003138: 687b ldr r3, [r7, #4]
  7000. 800313a: 689b ldr r3, [r3, #8]
  7001. 800313c: 60bb str r3, [r7, #8]
  7002. 800313e: e019 b.n 8003174 <HAL_FLASHEx_Erase+0xac>
  7003. address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress);
  7004. address += FLASH_PAGE_SIZE)
  7005. {
  7006. FLASH_PageErase(address);
  7007. 8003140: 68b8 ldr r0, [r7, #8]
  7008. 8003142: f000 f849 bl 80031d8 <FLASH_PageErase>
  7009. /* Wait for last operation to be completed */
  7010. status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  7011. 8003146: f24c 3050 movw r0, #50000 ; 0xc350
  7012. 800314a: f7ff ff27 bl 8002f9c <FLASH_WaitForLastOperation>
  7013. 800314e: 4603 mov r3, r0
  7014. 8003150: 73fb strb r3, [r7, #15]
  7015. /* If the erase operation is completed, disable the PER Bit */
  7016. CLEAR_BIT(FLASH->CR, FLASH_CR_PER);
  7017. 8003152: 4b12 ldr r3, [pc, #72] ; (800319c <HAL_FLASHEx_Erase+0xd4>)
  7018. 8003154: 691b ldr r3, [r3, #16]
  7019. 8003156: 4a11 ldr r2, [pc, #68] ; (800319c <HAL_FLASHEx_Erase+0xd4>)
  7020. 8003158: f023 0302 bic.w r3, r3, #2
  7021. 800315c: 6113 str r3, [r2, #16]
  7022. if (status != HAL_OK)
  7023. 800315e: 7bfb ldrb r3, [r7, #15]
  7024. 8003160: 2b00 cmp r3, #0
  7025. 8003162: d003 beq.n 800316c <HAL_FLASHEx_Erase+0xa4>
  7026. {
  7027. /* In case of error, stop erase procedure and return the faulty address */
  7028. *PageError = address;
  7029. 8003164: 683b ldr r3, [r7, #0]
  7030. 8003166: 68ba ldr r2, [r7, #8]
  7031. 8003168: 601a str r2, [r3, #0]
  7032. break;
  7033. 800316a: e00c b.n 8003186 <HAL_FLASHEx_Erase+0xbe>
  7034. address += FLASH_PAGE_SIZE)
  7035. 800316c: 68bb ldr r3, [r7, #8]
  7036. 800316e: f503 6380 add.w r3, r3, #1024 ; 0x400
  7037. 8003172: 60bb str r3, [r7, #8]
  7038. address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress);
  7039. 8003174: 687b ldr r3, [r7, #4]
  7040. 8003176: 68db ldr r3, [r3, #12]
  7041. 8003178: 029a lsls r2, r3, #10
  7042. 800317a: 687b ldr r3, [r7, #4]
  7043. 800317c: 689b ldr r3, [r3, #8]
  7044. 800317e: 4413 add r3, r2
  7045. for(address = pEraseInit->PageAddress;
  7046. 8003180: 68ba ldr r2, [r7, #8]
  7047. 8003182: 429a cmp r2, r3
  7048. 8003184: d3dc bcc.n 8003140 <HAL_FLASHEx_Erase+0x78>
  7049. }
  7050. }
  7051. }
  7052. /* Process Unlocked */
  7053. __HAL_UNLOCK(&pFlash);
  7054. 8003186: 4b04 ldr r3, [pc, #16] ; (8003198 <HAL_FLASHEx_Erase+0xd0>)
  7055. 8003188: 2200 movs r2, #0
  7056. 800318a: 761a strb r2, [r3, #24]
  7057. return status;
  7058. 800318c: 7bfb ldrb r3, [r7, #15]
  7059. }
  7060. 800318e: 4618 mov r0, r3
  7061. 8003190: 3710 adds r7, #16
  7062. 8003192: 46bd mov sp, r7
  7063. 8003194: bd80 pop {r7, pc}
  7064. 8003196: bf00 nop
  7065. 8003198: 200007c0 .word 0x200007c0
  7066. 800319c: 40022000 .word 0x40022000
  7067. 080031a0 <FLASH_MassErase>:
  7068. @endif
  7069. *
  7070. * @retval None
  7071. */
  7072. static void FLASH_MassErase(uint32_t Banks)
  7073. {
  7074. 80031a0: b480 push {r7}
  7075. 80031a2: b083 sub sp, #12
  7076. 80031a4: af00 add r7, sp, #0
  7077. 80031a6: 6078 str r0, [r7, #4]
  7078. /* Check the parameters */
  7079. assert_param(IS_FLASH_BANK(Banks));
  7080. /* Clean the error context */
  7081. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  7082. 80031a8: 4b09 ldr r3, [pc, #36] ; (80031d0 <FLASH_MassErase+0x30>)
  7083. 80031aa: 2200 movs r2, #0
  7084. 80031ac: 61da str r2, [r3, #28]
  7085. #if !defined(FLASH_BANK2_END)
  7086. /* Prevent unused argument(s) compilation warning */
  7087. UNUSED(Banks);
  7088. #endif /* FLASH_BANK2_END */
  7089. /* Only bank1 will be erased*/
  7090. SET_BIT(FLASH->CR, FLASH_CR_MER);
  7091. 80031ae: 4b09 ldr r3, [pc, #36] ; (80031d4 <FLASH_MassErase+0x34>)
  7092. 80031b0: 691b ldr r3, [r3, #16]
  7093. 80031b2: 4a08 ldr r2, [pc, #32] ; (80031d4 <FLASH_MassErase+0x34>)
  7094. 80031b4: f043 0304 orr.w r3, r3, #4
  7095. 80031b8: 6113 str r3, [r2, #16]
  7096. SET_BIT(FLASH->CR, FLASH_CR_STRT);
  7097. 80031ba: 4b06 ldr r3, [pc, #24] ; (80031d4 <FLASH_MassErase+0x34>)
  7098. 80031bc: 691b ldr r3, [r3, #16]
  7099. 80031be: 4a05 ldr r2, [pc, #20] ; (80031d4 <FLASH_MassErase+0x34>)
  7100. 80031c0: f043 0340 orr.w r3, r3, #64 ; 0x40
  7101. 80031c4: 6113 str r3, [r2, #16]
  7102. #if defined(FLASH_BANK2_END)
  7103. }
  7104. #endif /* FLASH_BANK2_END */
  7105. }
  7106. 80031c6: bf00 nop
  7107. 80031c8: 370c adds r7, #12
  7108. 80031ca: 46bd mov sp, r7
  7109. 80031cc: bc80 pop {r7}
  7110. 80031ce: 4770 bx lr
  7111. 80031d0: 200007c0 .word 0x200007c0
  7112. 80031d4: 40022000 .word 0x40022000
  7113. 080031d8 <FLASH_PageErase>:
  7114. * The value of this parameter depend on device used within the same series
  7115. *
  7116. * @retval None
  7117. */
  7118. void FLASH_PageErase(uint32_t PageAddress)
  7119. {
  7120. 80031d8: b480 push {r7}
  7121. 80031da: b083 sub sp, #12
  7122. 80031dc: af00 add r7, sp, #0
  7123. 80031de: 6078 str r0, [r7, #4]
  7124. /* Clean the error context */
  7125. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  7126. 80031e0: 4b0b ldr r3, [pc, #44] ; (8003210 <FLASH_PageErase+0x38>)
  7127. 80031e2: 2200 movs r2, #0
  7128. 80031e4: 61da str r2, [r3, #28]
  7129. }
  7130. else
  7131. {
  7132. #endif /* FLASH_BANK2_END */
  7133. /* Proceed to erase the page */
  7134. SET_BIT(FLASH->CR, FLASH_CR_PER);
  7135. 80031e6: 4b0b ldr r3, [pc, #44] ; (8003214 <FLASH_PageErase+0x3c>)
  7136. 80031e8: 691b ldr r3, [r3, #16]
  7137. 80031ea: 4a0a ldr r2, [pc, #40] ; (8003214 <FLASH_PageErase+0x3c>)
  7138. 80031ec: f043 0302 orr.w r3, r3, #2
  7139. 80031f0: 6113 str r3, [r2, #16]
  7140. WRITE_REG(FLASH->AR, PageAddress);
  7141. 80031f2: 4a08 ldr r2, [pc, #32] ; (8003214 <FLASH_PageErase+0x3c>)
  7142. 80031f4: 687b ldr r3, [r7, #4]
  7143. 80031f6: 6153 str r3, [r2, #20]
  7144. SET_BIT(FLASH->CR, FLASH_CR_STRT);
  7145. 80031f8: 4b06 ldr r3, [pc, #24] ; (8003214 <FLASH_PageErase+0x3c>)
  7146. 80031fa: 691b ldr r3, [r3, #16]
  7147. 80031fc: 4a05 ldr r2, [pc, #20] ; (8003214 <FLASH_PageErase+0x3c>)
  7148. 80031fe: f043 0340 orr.w r3, r3, #64 ; 0x40
  7149. 8003202: 6113 str r3, [r2, #16]
  7150. #if defined(FLASH_BANK2_END)
  7151. }
  7152. #endif /* FLASH_BANK2_END */
  7153. }
  7154. 8003204: bf00 nop
  7155. 8003206: 370c adds r7, #12
  7156. 8003208: 46bd mov sp, r7
  7157. 800320a: bc80 pop {r7}
  7158. 800320c: 4770 bx lr
  7159. 800320e: bf00 nop
  7160. 8003210: 200007c0 .word 0x200007c0
  7161. 8003214: 40022000 .word 0x40022000
  7162. 08003218 <HAL_GPIO_Init>:
  7163. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  7164. * the configuration information for the specified GPIO peripheral.
  7165. * @retval None
  7166. */
  7167. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  7168. {
  7169. 8003218: b480 push {r7}
  7170. 800321a: b08b sub sp, #44 ; 0x2c
  7171. 800321c: af00 add r7, sp, #0
  7172. 800321e: 6078 str r0, [r7, #4]
  7173. 8003220: 6039 str r1, [r7, #0]
  7174. uint32_t position = 0x00u;
  7175. 8003222: 2300 movs r3, #0
  7176. 8003224: 627b str r3, [r7, #36] ; 0x24
  7177. uint32_t ioposition;
  7178. uint32_t iocurrent;
  7179. uint32_t temp;
  7180. uint32_t config = 0x00u;
  7181. 8003226: 2300 movs r3, #0
  7182. 8003228: 623b str r3, [r7, #32]
  7183. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  7184. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  7185. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  7186. /* Configure the port pins */
  7187. while (((GPIO_Init->Pin) >> position) != 0x00u)
  7188. 800322a: e127 b.n 800347c <HAL_GPIO_Init+0x264>
  7189. {
  7190. /* Get the IO position */
  7191. ioposition = (0x01uL << position);
  7192. 800322c: 2201 movs r2, #1
  7193. 800322e: 6a7b ldr r3, [r7, #36] ; 0x24
  7194. 8003230: fa02 f303 lsl.w r3, r2, r3
  7195. 8003234: 61fb str r3, [r7, #28]
  7196. /* Get the current IO position */
  7197. iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
  7198. 8003236: 683b ldr r3, [r7, #0]
  7199. 8003238: 681b ldr r3, [r3, #0]
  7200. 800323a: 69fa ldr r2, [r7, #28]
  7201. 800323c: 4013 ands r3, r2
  7202. 800323e: 61bb str r3, [r7, #24]
  7203. if (iocurrent == ioposition)
  7204. 8003240: 69ba ldr r2, [r7, #24]
  7205. 8003242: 69fb ldr r3, [r7, #28]
  7206. 8003244: 429a cmp r2, r3
  7207. 8003246: f040 8116 bne.w 8003476 <HAL_GPIO_Init+0x25e>
  7208. {
  7209. /* Check the Alternate function parameters */
  7210. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  7211. /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */
  7212. switch (GPIO_Init->Mode)
  7213. 800324a: 683b ldr r3, [r7, #0]
  7214. 800324c: 685b ldr r3, [r3, #4]
  7215. 800324e: 2b12 cmp r3, #18
  7216. 8003250: d034 beq.n 80032bc <HAL_GPIO_Init+0xa4>
  7217. 8003252: 2b12 cmp r3, #18
  7218. 8003254: d80d bhi.n 8003272 <HAL_GPIO_Init+0x5a>
  7219. 8003256: 2b02 cmp r3, #2
  7220. 8003258: d02b beq.n 80032b2 <HAL_GPIO_Init+0x9a>
  7221. 800325a: 2b02 cmp r3, #2
  7222. 800325c: d804 bhi.n 8003268 <HAL_GPIO_Init+0x50>
  7223. 800325e: 2b00 cmp r3, #0
  7224. 8003260: d031 beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7225. 8003262: 2b01 cmp r3, #1
  7226. 8003264: d01c beq.n 80032a0 <HAL_GPIO_Init+0x88>
  7227. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  7228. break;
  7229. /* Parameters are checked with assert_param */
  7230. default:
  7231. break;
  7232. 8003266: e048 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7233. switch (GPIO_Init->Mode)
  7234. 8003268: 2b03 cmp r3, #3
  7235. 800326a: d043 beq.n 80032f4 <HAL_GPIO_Init+0xdc>
  7236. 800326c: 2b11 cmp r3, #17
  7237. 800326e: d01b beq.n 80032a8 <HAL_GPIO_Init+0x90>
  7238. break;
  7239. 8003270: e043 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7240. switch (GPIO_Init->Mode)
  7241. 8003272: 4a89 ldr r2, [pc, #548] ; (8003498 <HAL_GPIO_Init+0x280>)
  7242. 8003274: 4293 cmp r3, r2
  7243. 8003276: d026 beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7244. 8003278: 4a87 ldr r2, [pc, #540] ; (8003498 <HAL_GPIO_Init+0x280>)
  7245. 800327a: 4293 cmp r3, r2
  7246. 800327c: d806 bhi.n 800328c <HAL_GPIO_Init+0x74>
  7247. 800327e: 4a87 ldr r2, [pc, #540] ; (800349c <HAL_GPIO_Init+0x284>)
  7248. 8003280: 4293 cmp r3, r2
  7249. 8003282: d020 beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7250. 8003284: 4a86 ldr r2, [pc, #536] ; (80034a0 <HAL_GPIO_Init+0x288>)
  7251. 8003286: 4293 cmp r3, r2
  7252. 8003288: d01d beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7253. break;
  7254. 800328a: e036 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7255. switch (GPIO_Init->Mode)
  7256. 800328c: 4a85 ldr r2, [pc, #532] ; (80034a4 <HAL_GPIO_Init+0x28c>)
  7257. 800328e: 4293 cmp r3, r2
  7258. 8003290: d019 beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7259. 8003292: 4a85 ldr r2, [pc, #532] ; (80034a8 <HAL_GPIO_Init+0x290>)
  7260. 8003294: 4293 cmp r3, r2
  7261. 8003296: d016 beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7262. 8003298: 4a84 ldr r2, [pc, #528] ; (80034ac <HAL_GPIO_Init+0x294>)
  7263. 800329a: 4293 cmp r3, r2
  7264. 800329c: d013 beq.n 80032c6 <HAL_GPIO_Init+0xae>
  7265. break;
  7266. 800329e: e02c b.n 80032fa <HAL_GPIO_Init+0xe2>
  7267. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP;
  7268. 80032a0: 683b ldr r3, [r7, #0]
  7269. 80032a2: 68db ldr r3, [r3, #12]
  7270. 80032a4: 623b str r3, [r7, #32]
  7271. break;
  7272. 80032a6: e028 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7273. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD;
  7274. 80032a8: 683b ldr r3, [r7, #0]
  7275. 80032aa: 68db ldr r3, [r3, #12]
  7276. 80032ac: 3304 adds r3, #4
  7277. 80032ae: 623b str r3, [r7, #32]
  7278. break;
  7279. 80032b0: e023 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7280. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP;
  7281. 80032b2: 683b ldr r3, [r7, #0]
  7282. 80032b4: 68db ldr r3, [r3, #12]
  7283. 80032b6: 3308 adds r3, #8
  7284. 80032b8: 623b str r3, [r7, #32]
  7285. break;
  7286. 80032ba: e01e b.n 80032fa <HAL_GPIO_Init+0xe2>
  7287. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD;
  7288. 80032bc: 683b ldr r3, [r7, #0]
  7289. 80032be: 68db ldr r3, [r3, #12]
  7290. 80032c0: 330c adds r3, #12
  7291. 80032c2: 623b str r3, [r7, #32]
  7292. break;
  7293. 80032c4: e019 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7294. if (GPIO_Init->Pull == GPIO_NOPULL)
  7295. 80032c6: 683b ldr r3, [r7, #0]
  7296. 80032c8: 689b ldr r3, [r3, #8]
  7297. 80032ca: 2b00 cmp r3, #0
  7298. 80032cc: d102 bne.n 80032d4 <HAL_GPIO_Init+0xbc>
  7299. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING;
  7300. 80032ce: 2304 movs r3, #4
  7301. 80032d0: 623b str r3, [r7, #32]
  7302. break;
  7303. 80032d2: e012 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7304. else if (GPIO_Init->Pull == GPIO_PULLUP)
  7305. 80032d4: 683b ldr r3, [r7, #0]
  7306. 80032d6: 689b ldr r3, [r3, #8]
  7307. 80032d8: 2b01 cmp r3, #1
  7308. 80032da: d105 bne.n 80032e8 <HAL_GPIO_Init+0xd0>
  7309. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  7310. 80032dc: 2308 movs r3, #8
  7311. 80032de: 623b str r3, [r7, #32]
  7312. GPIOx->BSRR = ioposition;
  7313. 80032e0: 687b ldr r3, [r7, #4]
  7314. 80032e2: 69fa ldr r2, [r7, #28]
  7315. 80032e4: 611a str r2, [r3, #16]
  7316. break;
  7317. 80032e6: e008 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7318. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  7319. 80032e8: 2308 movs r3, #8
  7320. 80032ea: 623b str r3, [r7, #32]
  7321. GPIOx->BRR = ioposition;
  7322. 80032ec: 687b ldr r3, [r7, #4]
  7323. 80032ee: 69fa ldr r2, [r7, #28]
  7324. 80032f0: 615a str r2, [r3, #20]
  7325. break;
  7326. 80032f2: e002 b.n 80032fa <HAL_GPIO_Init+0xe2>
  7327. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  7328. 80032f4: 2300 movs r3, #0
  7329. 80032f6: 623b str r3, [r7, #32]
  7330. break;
  7331. 80032f8: bf00 nop
  7332. }
  7333. /* Check if the current bit belongs to first half or last half of the pin count number
  7334. in order to address CRH or CRL register*/
  7335. configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH;
  7336. 80032fa: 69bb ldr r3, [r7, #24]
  7337. 80032fc: 2bff cmp r3, #255 ; 0xff
  7338. 80032fe: d801 bhi.n 8003304 <HAL_GPIO_Init+0xec>
  7339. 8003300: 687b ldr r3, [r7, #4]
  7340. 8003302: e001 b.n 8003308 <HAL_GPIO_Init+0xf0>
  7341. 8003304: 687b ldr r3, [r7, #4]
  7342. 8003306: 3304 adds r3, #4
  7343. 8003308: 617b str r3, [r7, #20]
  7344. registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u);
  7345. 800330a: 69bb ldr r3, [r7, #24]
  7346. 800330c: 2bff cmp r3, #255 ; 0xff
  7347. 800330e: d802 bhi.n 8003316 <HAL_GPIO_Init+0xfe>
  7348. 8003310: 6a7b ldr r3, [r7, #36] ; 0x24
  7349. 8003312: 009b lsls r3, r3, #2
  7350. 8003314: e002 b.n 800331c <HAL_GPIO_Init+0x104>
  7351. 8003316: 6a7b ldr r3, [r7, #36] ; 0x24
  7352. 8003318: 3b08 subs r3, #8
  7353. 800331a: 009b lsls r3, r3, #2
  7354. 800331c: 613b str r3, [r7, #16]
  7355. /* Apply the new configuration of the pin to the register */
  7356. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  7357. 800331e: 697b ldr r3, [r7, #20]
  7358. 8003320: 681a ldr r2, [r3, #0]
  7359. 8003322: 210f movs r1, #15
  7360. 8003324: 693b ldr r3, [r7, #16]
  7361. 8003326: fa01 f303 lsl.w r3, r1, r3
  7362. 800332a: 43db mvns r3, r3
  7363. 800332c: 401a ands r2, r3
  7364. 800332e: 6a39 ldr r1, [r7, #32]
  7365. 8003330: 693b ldr r3, [r7, #16]
  7366. 8003332: fa01 f303 lsl.w r3, r1, r3
  7367. 8003336: 431a orrs r2, r3
  7368. 8003338: 697b ldr r3, [r7, #20]
  7369. 800333a: 601a str r2, [r3, #0]
  7370. /*--------------------- EXTI Mode Configuration ------------------------*/
  7371. /* Configure the External Interrupt or event for the current IO */
  7372. if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
  7373. 800333c: 683b ldr r3, [r7, #0]
  7374. 800333e: 685b ldr r3, [r3, #4]
  7375. 8003340: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  7376. 8003344: 2b00 cmp r3, #0
  7377. 8003346: f000 8096 beq.w 8003476 <HAL_GPIO_Init+0x25e>
  7378. {
  7379. /* Enable AFIO Clock */
  7380. __HAL_RCC_AFIO_CLK_ENABLE();
  7381. 800334a: 4b59 ldr r3, [pc, #356] ; (80034b0 <HAL_GPIO_Init+0x298>)
  7382. 800334c: 699b ldr r3, [r3, #24]
  7383. 800334e: 4a58 ldr r2, [pc, #352] ; (80034b0 <HAL_GPIO_Init+0x298>)
  7384. 8003350: f043 0301 orr.w r3, r3, #1
  7385. 8003354: 6193 str r3, [r2, #24]
  7386. 8003356: 4b56 ldr r3, [pc, #344] ; (80034b0 <HAL_GPIO_Init+0x298>)
  7387. 8003358: 699b ldr r3, [r3, #24]
  7388. 800335a: f003 0301 and.w r3, r3, #1
  7389. 800335e: 60bb str r3, [r7, #8]
  7390. 8003360: 68bb ldr r3, [r7, #8]
  7391. temp = AFIO->EXTICR[position >> 2u];
  7392. 8003362: 4a54 ldr r2, [pc, #336] ; (80034b4 <HAL_GPIO_Init+0x29c>)
  7393. 8003364: 6a7b ldr r3, [r7, #36] ; 0x24
  7394. 8003366: 089b lsrs r3, r3, #2
  7395. 8003368: 3302 adds r3, #2
  7396. 800336a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  7397. 800336e: 60fb str r3, [r7, #12]
  7398. CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u)));
  7399. 8003370: 6a7b ldr r3, [r7, #36] ; 0x24
  7400. 8003372: f003 0303 and.w r3, r3, #3
  7401. 8003376: 009b lsls r3, r3, #2
  7402. 8003378: 220f movs r2, #15
  7403. 800337a: fa02 f303 lsl.w r3, r2, r3
  7404. 800337e: 43db mvns r3, r3
  7405. 8003380: 68fa ldr r2, [r7, #12]
  7406. 8003382: 4013 ands r3, r2
  7407. 8003384: 60fb str r3, [r7, #12]
  7408. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u)));
  7409. 8003386: 687b ldr r3, [r7, #4]
  7410. 8003388: 4a4b ldr r2, [pc, #300] ; (80034b8 <HAL_GPIO_Init+0x2a0>)
  7411. 800338a: 4293 cmp r3, r2
  7412. 800338c: d013 beq.n 80033b6 <HAL_GPIO_Init+0x19e>
  7413. 800338e: 687b ldr r3, [r7, #4]
  7414. 8003390: 4a4a ldr r2, [pc, #296] ; (80034bc <HAL_GPIO_Init+0x2a4>)
  7415. 8003392: 4293 cmp r3, r2
  7416. 8003394: d00d beq.n 80033b2 <HAL_GPIO_Init+0x19a>
  7417. 8003396: 687b ldr r3, [r7, #4]
  7418. 8003398: 4a49 ldr r2, [pc, #292] ; (80034c0 <HAL_GPIO_Init+0x2a8>)
  7419. 800339a: 4293 cmp r3, r2
  7420. 800339c: d007 beq.n 80033ae <HAL_GPIO_Init+0x196>
  7421. 800339e: 687b ldr r3, [r7, #4]
  7422. 80033a0: 4a48 ldr r2, [pc, #288] ; (80034c4 <HAL_GPIO_Init+0x2ac>)
  7423. 80033a2: 4293 cmp r3, r2
  7424. 80033a4: d101 bne.n 80033aa <HAL_GPIO_Init+0x192>
  7425. 80033a6: 2303 movs r3, #3
  7426. 80033a8: e006 b.n 80033b8 <HAL_GPIO_Init+0x1a0>
  7427. 80033aa: 2304 movs r3, #4
  7428. 80033ac: e004 b.n 80033b8 <HAL_GPIO_Init+0x1a0>
  7429. 80033ae: 2302 movs r3, #2
  7430. 80033b0: e002 b.n 80033b8 <HAL_GPIO_Init+0x1a0>
  7431. 80033b2: 2301 movs r3, #1
  7432. 80033b4: e000 b.n 80033b8 <HAL_GPIO_Init+0x1a0>
  7433. 80033b6: 2300 movs r3, #0
  7434. 80033b8: 6a7a ldr r2, [r7, #36] ; 0x24
  7435. 80033ba: f002 0203 and.w r2, r2, #3
  7436. 80033be: 0092 lsls r2, r2, #2
  7437. 80033c0: 4093 lsls r3, r2
  7438. 80033c2: 68fa ldr r2, [r7, #12]
  7439. 80033c4: 4313 orrs r3, r2
  7440. 80033c6: 60fb str r3, [r7, #12]
  7441. AFIO->EXTICR[position >> 2u] = temp;
  7442. 80033c8: 493a ldr r1, [pc, #232] ; (80034b4 <HAL_GPIO_Init+0x29c>)
  7443. 80033ca: 6a7b ldr r3, [r7, #36] ; 0x24
  7444. 80033cc: 089b lsrs r3, r3, #2
  7445. 80033ce: 3302 adds r3, #2
  7446. 80033d0: 68fa ldr r2, [r7, #12]
  7447. 80033d2: f841 2023 str.w r2, [r1, r3, lsl #2]
  7448. /* Configure the interrupt mask */
  7449. if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
  7450. 80033d6: 683b ldr r3, [r7, #0]
  7451. 80033d8: 685b ldr r3, [r3, #4]
  7452. 80033da: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7453. 80033de: 2b00 cmp r3, #0
  7454. 80033e0: d006 beq.n 80033f0 <HAL_GPIO_Init+0x1d8>
  7455. {
  7456. SET_BIT(EXTI->IMR, iocurrent);
  7457. 80033e2: 4b39 ldr r3, [pc, #228] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7458. 80033e4: 681a ldr r2, [r3, #0]
  7459. 80033e6: 4938 ldr r1, [pc, #224] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7460. 80033e8: 69bb ldr r3, [r7, #24]
  7461. 80033ea: 4313 orrs r3, r2
  7462. 80033ec: 600b str r3, [r1, #0]
  7463. 80033ee: e006 b.n 80033fe <HAL_GPIO_Init+0x1e6>
  7464. }
  7465. else
  7466. {
  7467. CLEAR_BIT(EXTI->IMR, iocurrent);
  7468. 80033f0: 4b35 ldr r3, [pc, #212] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7469. 80033f2: 681a ldr r2, [r3, #0]
  7470. 80033f4: 69bb ldr r3, [r7, #24]
  7471. 80033f6: 43db mvns r3, r3
  7472. 80033f8: 4933 ldr r1, [pc, #204] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7473. 80033fa: 4013 ands r3, r2
  7474. 80033fc: 600b str r3, [r1, #0]
  7475. }
  7476. /* Configure the event mask */
  7477. if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
  7478. 80033fe: 683b ldr r3, [r7, #0]
  7479. 8003400: 685b ldr r3, [r3, #4]
  7480. 8003402: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7481. 8003406: 2b00 cmp r3, #0
  7482. 8003408: d006 beq.n 8003418 <HAL_GPIO_Init+0x200>
  7483. {
  7484. SET_BIT(EXTI->EMR, iocurrent);
  7485. 800340a: 4b2f ldr r3, [pc, #188] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7486. 800340c: 685a ldr r2, [r3, #4]
  7487. 800340e: 492e ldr r1, [pc, #184] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7488. 8003410: 69bb ldr r3, [r7, #24]
  7489. 8003412: 4313 orrs r3, r2
  7490. 8003414: 604b str r3, [r1, #4]
  7491. 8003416: e006 b.n 8003426 <HAL_GPIO_Init+0x20e>
  7492. }
  7493. else
  7494. {
  7495. CLEAR_BIT(EXTI->EMR, iocurrent);
  7496. 8003418: 4b2b ldr r3, [pc, #172] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7497. 800341a: 685a ldr r2, [r3, #4]
  7498. 800341c: 69bb ldr r3, [r7, #24]
  7499. 800341e: 43db mvns r3, r3
  7500. 8003420: 4929 ldr r1, [pc, #164] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7501. 8003422: 4013 ands r3, r2
  7502. 8003424: 604b str r3, [r1, #4]
  7503. }
  7504. /* Enable or disable the rising trigger */
  7505. if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
  7506. 8003426: 683b ldr r3, [r7, #0]
  7507. 8003428: 685b ldr r3, [r3, #4]
  7508. 800342a: f403 1380 and.w r3, r3, #1048576 ; 0x100000
  7509. 800342e: 2b00 cmp r3, #0
  7510. 8003430: d006 beq.n 8003440 <HAL_GPIO_Init+0x228>
  7511. {
  7512. SET_BIT(EXTI->RTSR, iocurrent);
  7513. 8003432: 4b25 ldr r3, [pc, #148] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7514. 8003434: 689a ldr r2, [r3, #8]
  7515. 8003436: 4924 ldr r1, [pc, #144] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7516. 8003438: 69bb ldr r3, [r7, #24]
  7517. 800343a: 4313 orrs r3, r2
  7518. 800343c: 608b str r3, [r1, #8]
  7519. 800343e: e006 b.n 800344e <HAL_GPIO_Init+0x236>
  7520. }
  7521. else
  7522. {
  7523. CLEAR_BIT(EXTI->RTSR, iocurrent);
  7524. 8003440: 4b21 ldr r3, [pc, #132] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7525. 8003442: 689a ldr r2, [r3, #8]
  7526. 8003444: 69bb ldr r3, [r7, #24]
  7527. 8003446: 43db mvns r3, r3
  7528. 8003448: 491f ldr r1, [pc, #124] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7529. 800344a: 4013 ands r3, r2
  7530. 800344c: 608b str r3, [r1, #8]
  7531. }
  7532. /* Enable or disable the falling trigger */
  7533. if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
  7534. 800344e: 683b ldr r3, [r7, #0]
  7535. 8003450: 685b ldr r3, [r3, #4]
  7536. 8003452: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  7537. 8003456: 2b00 cmp r3, #0
  7538. 8003458: d006 beq.n 8003468 <HAL_GPIO_Init+0x250>
  7539. {
  7540. SET_BIT(EXTI->FTSR, iocurrent);
  7541. 800345a: 4b1b ldr r3, [pc, #108] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7542. 800345c: 68da ldr r2, [r3, #12]
  7543. 800345e: 491a ldr r1, [pc, #104] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7544. 8003460: 69bb ldr r3, [r7, #24]
  7545. 8003462: 4313 orrs r3, r2
  7546. 8003464: 60cb str r3, [r1, #12]
  7547. 8003466: e006 b.n 8003476 <HAL_GPIO_Init+0x25e>
  7548. }
  7549. else
  7550. {
  7551. CLEAR_BIT(EXTI->FTSR, iocurrent);
  7552. 8003468: 4b17 ldr r3, [pc, #92] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7553. 800346a: 68da ldr r2, [r3, #12]
  7554. 800346c: 69bb ldr r3, [r7, #24]
  7555. 800346e: 43db mvns r3, r3
  7556. 8003470: 4915 ldr r1, [pc, #84] ; (80034c8 <HAL_GPIO_Init+0x2b0>)
  7557. 8003472: 4013 ands r3, r2
  7558. 8003474: 60cb str r3, [r1, #12]
  7559. }
  7560. }
  7561. }
  7562. position++;
  7563. 8003476: 6a7b ldr r3, [r7, #36] ; 0x24
  7564. 8003478: 3301 adds r3, #1
  7565. 800347a: 627b str r3, [r7, #36] ; 0x24
  7566. while (((GPIO_Init->Pin) >> position) != 0x00u)
  7567. 800347c: 683b ldr r3, [r7, #0]
  7568. 800347e: 681a ldr r2, [r3, #0]
  7569. 8003480: 6a7b ldr r3, [r7, #36] ; 0x24
  7570. 8003482: fa22 f303 lsr.w r3, r2, r3
  7571. 8003486: 2b00 cmp r3, #0
  7572. 8003488: f47f aed0 bne.w 800322c <HAL_GPIO_Init+0x14>
  7573. }
  7574. }
  7575. 800348c: bf00 nop
  7576. 800348e: 372c adds r7, #44 ; 0x2c
  7577. 8003490: 46bd mov sp, r7
  7578. 8003492: bc80 pop {r7}
  7579. 8003494: 4770 bx lr
  7580. 8003496: bf00 nop
  7581. 8003498: 10210000 .word 0x10210000
  7582. 800349c: 10110000 .word 0x10110000
  7583. 80034a0: 10120000 .word 0x10120000
  7584. 80034a4: 10310000 .word 0x10310000
  7585. 80034a8: 10320000 .word 0x10320000
  7586. 80034ac: 10220000 .word 0x10220000
  7587. 80034b0: 40021000 .word 0x40021000
  7588. 80034b4: 40010000 .word 0x40010000
  7589. 80034b8: 40010800 .word 0x40010800
  7590. 80034bc: 40010c00 .word 0x40010c00
  7591. 80034c0: 40011000 .word 0x40011000
  7592. 80034c4: 40011400 .word 0x40011400
  7593. 80034c8: 40010400 .word 0x40010400
  7594. 080034cc <HAL_GPIO_ReadPin>:
  7595. * @param GPIO_Pin: specifies the port bit to read.
  7596. * This parameter can be GPIO_PIN_x where x can be (0..15).
  7597. * @retval The input port pin value.
  7598. */
  7599. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  7600. {
  7601. 80034cc: b480 push {r7}
  7602. 80034ce: b085 sub sp, #20
  7603. 80034d0: af00 add r7, sp, #0
  7604. 80034d2: 6078 str r0, [r7, #4]
  7605. 80034d4: 460b mov r3, r1
  7606. 80034d6: 807b strh r3, [r7, #2]
  7607. GPIO_PinState bitstatus;
  7608. /* Check the parameters */
  7609. assert_param(IS_GPIO_PIN(GPIO_Pin));
  7610. if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET)
  7611. 80034d8: 687b ldr r3, [r7, #4]
  7612. 80034da: 689a ldr r2, [r3, #8]
  7613. 80034dc: 887b ldrh r3, [r7, #2]
  7614. 80034de: 4013 ands r3, r2
  7615. 80034e0: 2b00 cmp r3, #0
  7616. 80034e2: d002 beq.n 80034ea <HAL_GPIO_ReadPin+0x1e>
  7617. {
  7618. bitstatus = GPIO_PIN_SET;
  7619. 80034e4: 2301 movs r3, #1
  7620. 80034e6: 73fb strb r3, [r7, #15]
  7621. 80034e8: e001 b.n 80034ee <HAL_GPIO_ReadPin+0x22>
  7622. }
  7623. else
  7624. {
  7625. bitstatus = GPIO_PIN_RESET;
  7626. 80034ea: 2300 movs r3, #0
  7627. 80034ec: 73fb strb r3, [r7, #15]
  7628. }
  7629. return bitstatus;
  7630. 80034ee: 7bfb ldrb r3, [r7, #15]
  7631. }
  7632. 80034f0: 4618 mov r0, r3
  7633. 80034f2: 3714 adds r7, #20
  7634. 80034f4: 46bd mov sp, r7
  7635. 80034f6: bc80 pop {r7}
  7636. 80034f8: 4770 bx lr
  7637. 080034fa <HAL_GPIO_WritePin>:
  7638. * @arg GPIO_PIN_RESET: to clear the port pin
  7639. * @arg GPIO_PIN_SET: to set the port pin
  7640. * @retval None
  7641. */
  7642. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  7643. {
  7644. 80034fa: b480 push {r7}
  7645. 80034fc: b083 sub sp, #12
  7646. 80034fe: af00 add r7, sp, #0
  7647. 8003500: 6078 str r0, [r7, #4]
  7648. 8003502: 460b mov r3, r1
  7649. 8003504: 807b strh r3, [r7, #2]
  7650. 8003506: 4613 mov r3, r2
  7651. 8003508: 707b strb r3, [r7, #1]
  7652. /* Check the parameters */
  7653. assert_param(IS_GPIO_PIN(GPIO_Pin));
  7654. assert_param(IS_GPIO_PIN_ACTION(PinState));
  7655. if (PinState != GPIO_PIN_RESET)
  7656. 800350a: 787b ldrb r3, [r7, #1]
  7657. 800350c: 2b00 cmp r3, #0
  7658. 800350e: d003 beq.n 8003518 <HAL_GPIO_WritePin+0x1e>
  7659. {
  7660. GPIOx->BSRR = GPIO_Pin;
  7661. 8003510: 887a ldrh r2, [r7, #2]
  7662. 8003512: 687b ldr r3, [r7, #4]
  7663. 8003514: 611a str r2, [r3, #16]
  7664. }
  7665. else
  7666. {
  7667. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  7668. }
  7669. }
  7670. 8003516: e003 b.n 8003520 <HAL_GPIO_WritePin+0x26>
  7671. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u;
  7672. 8003518: 887b ldrh r3, [r7, #2]
  7673. 800351a: 041a lsls r2, r3, #16
  7674. 800351c: 687b ldr r3, [r7, #4]
  7675. 800351e: 611a str r2, [r3, #16]
  7676. }
  7677. 8003520: bf00 nop
  7678. 8003522: 370c adds r7, #12
  7679. 8003524: 46bd mov sp, r7
  7680. 8003526: bc80 pop {r7}
  7681. 8003528: 4770 bx lr
  7682. 0800352a <HAL_GPIO_TogglePin>:
  7683. * @param GPIOx: where x can be (A..G depending on device used) to select the GPIO peripheral
  7684. * @param GPIO_Pin: Specifies the pins to be toggled.
  7685. * @retval None
  7686. */
  7687. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  7688. {
  7689. 800352a: b480 push {r7}
  7690. 800352c: b083 sub sp, #12
  7691. 800352e: af00 add r7, sp, #0
  7692. 8003530: 6078 str r0, [r7, #4]
  7693. 8003532: 460b mov r3, r1
  7694. 8003534: 807b strh r3, [r7, #2]
  7695. /* Check the parameters */
  7696. assert_param(IS_GPIO_PIN(GPIO_Pin));
  7697. if ((GPIOx->ODR & GPIO_Pin) != 0x00u)
  7698. 8003536: 687b ldr r3, [r7, #4]
  7699. 8003538: 68da ldr r2, [r3, #12]
  7700. 800353a: 887b ldrh r3, [r7, #2]
  7701. 800353c: 4013 ands r3, r2
  7702. 800353e: 2b00 cmp r3, #0
  7703. 8003540: d003 beq.n 800354a <HAL_GPIO_TogglePin+0x20>
  7704. {
  7705. GPIOx->BRR = (uint32_t)GPIO_Pin;
  7706. 8003542: 887a ldrh r2, [r7, #2]
  7707. 8003544: 687b ldr r3, [r7, #4]
  7708. 8003546: 615a str r2, [r3, #20]
  7709. }
  7710. else
  7711. {
  7712. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  7713. }
  7714. }
  7715. 8003548: e002 b.n 8003550 <HAL_GPIO_TogglePin+0x26>
  7716. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  7717. 800354a: 887a ldrh r2, [r7, #2]
  7718. 800354c: 687b ldr r3, [r7, #4]
  7719. 800354e: 611a str r2, [r3, #16]
  7720. }
  7721. 8003550: bf00 nop
  7722. 8003552: 370c adds r7, #12
  7723. 8003554: 46bd mov sp, r7
  7724. 8003556: bc80 pop {r7}
  7725. 8003558: 4770 bx lr
  7726. ...
  7727. 0800355c <HAL_RCC_OscConfig>:
  7728. * supported by this macro. User should request a transition to HSE Off
  7729. * first and then HSE On or HSE Bypass.
  7730. * @retval HAL status
  7731. */
  7732. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  7733. {
  7734. 800355c: b580 push {r7, lr}
  7735. 800355e: b086 sub sp, #24
  7736. 8003560: af00 add r7, sp, #0
  7737. 8003562: 6078 str r0, [r7, #4]
  7738. uint32_t tickstart;
  7739. uint32_t pll_config;
  7740. /* Check Null pointer */
  7741. if (RCC_OscInitStruct == NULL)
  7742. 8003564: 687b ldr r3, [r7, #4]
  7743. 8003566: 2b00 cmp r3, #0
  7744. 8003568: d101 bne.n 800356e <HAL_RCC_OscConfig+0x12>
  7745. {
  7746. return HAL_ERROR;
  7747. 800356a: 2301 movs r3, #1
  7748. 800356c: e26c b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  7749. /* Check the parameters */
  7750. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  7751. /*------------------------------- HSE Configuration ------------------------*/
  7752. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  7753. 800356e: 687b ldr r3, [r7, #4]
  7754. 8003570: 681b ldr r3, [r3, #0]
  7755. 8003572: f003 0301 and.w r3, r3, #1
  7756. 8003576: 2b00 cmp r3, #0
  7757. 8003578: f000 8087 beq.w 800368a <HAL_RCC_OscConfig+0x12e>
  7758. {
  7759. /* Check the parameters */
  7760. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  7761. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  7762. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  7763. 800357c: 4b92 ldr r3, [pc, #584] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7764. 800357e: 685b ldr r3, [r3, #4]
  7765. 8003580: f003 030c and.w r3, r3, #12
  7766. 8003584: 2b04 cmp r3, #4
  7767. 8003586: d00c beq.n 80035a2 <HAL_RCC_OscConfig+0x46>
  7768. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  7769. 8003588: 4b8f ldr r3, [pc, #572] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7770. 800358a: 685b ldr r3, [r3, #4]
  7771. 800358c: f003 030c and.w r3, r3, #12
  7772. 8003590: 2b08 cmp r3, #8
  7773. 8003592: d112 bne.n 80035ba <HAL_RCC_OscConfig+0x5e>
  7774. 8003594: 4b8c ldr r3, [pc, #560] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7775. 8003596: 685b ldr r3, [r3, #4]
  7776. 8003598: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7777. 800359c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  7778. 80035a0: d10b bne.n 80035ba <HAL_RCC_OscConfig+0x5e>
  7779. {
  7780. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  7781. 80035a2: 4b89 ldr r3, [pc, #548] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7782. 80035a4: 681b ldr r3, [r3, #0]
  7783. 80035a6: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7784. 80035aa: 2b00 cmp r3, #0
  7785. 80035ac: d06c beq.n 8003688 <HAL_RCC_OscConfig+0x12c>
  7786. 80035ae: 687b ldr r3, [r7, #4]
  7787. 80035b0: 685b ldr r3, [r3, #4]
  7788. 80035b2: 2b00 cmp r3, #0
  7789. 80035b4: d168 bne.n 8003688 <HAL_RCC_OscConfig+0x12c>
  7790. {
  7791. return HAL_ERROR;
  7792. 80035b6: 2301 movs r3, #1
  7793. 80035b8: e246 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  7794. }
  7795. }
  7796. else
  7797. {
  7798. /* Set the new HSE configuration ---------------------------------------*/
  7799. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  7800. 80035ba: 687b ldr r3, [r7, #4]
  7801. 80035bc: 685b ldr r3, [r3, #4]
  7802. 80035be: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  7803. 80035c2: d106 bne.n 80035d2 <HAL_RCC_OscConfig+0x76>
  7804. 80035c4: 4b80 ldr r3, [pc, #512] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7805. 80035c6: 681b ldr r3, [r3, #0]
  7806. 80035c8: 4a7f ldr r2, [pc, #508] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7807. 80035ca: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  7808. 80035ce: 6013 str r3, [r2, #0]
  7809. 80035d0: e02e b.n 8003630 <HAL_RCC_OscConfig+0xd4>
  7810. 80035d2: 687b ldr r3, [r7, #4]
  7811. 80035d4: 685b ldr r3, [r3, #4]
  7812. 80035d6: 2b00 cmp r3, #0
  7813. 80035d8: d10c bne.n 80035f4 <HAL_RCC_OscConfig+0x98>
  7814. 80035da: 4b7b ldr r3, [pc, #492] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7815. 80035dc: 681b ldr r3, [r3, #0]
  7816. 80035de: 4a7a ldr r2, [pc, #488] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7817. 80035e0: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  7818. 80035e4: 6013 str r3, [r2, #0]
  7819. 80035e6: 4b78 ldr r3, [pc, #480] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7820. 80035e8: 681b ldr r3, [r3, #0]
  7821. 80035ea: 4a77 ldr r2, [pc, #476] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7822. 80035ec: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  7823. 80035f0: 6013 str r3, [r2, #0]
  7824. 80035f2: e01d b.n 8003630 <HAL_RCC_OscConfig+0xd4>
  7825. 80035f4: 687b ldr r3, [r7, #4]
  7826. 80035f6: 685b ldr r3, [r3, #4]
  7827. 80035f8: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
  7828. 80035fc: d10c bne.n 8003618 <HAL_RCC_OscConfig+0xbc>
  7829. 80035fe: 4b72 ldr r3, [pc, #456] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7830. 8003600: 681b ldr r3, [r3, #0]
  7831. 8003602: 4a71 ldr r2, [pc, #452] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7832. 8003604: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  7833. 8003608: 6013 str r3, [r2, #0]
  7834. 800360a: 4b6f ldr r3, [pc, #444] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7835. 800360c: 681b ldr r3, [r3, #0]
  7836. 800360e: 4a6e ldr r2, [pc, #440] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7837. 8003610: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  7838. 8003614: 6013 str r3, [r2, #0]
  7839. 8003616: e00b b.n 8003630 <HAL_RCC_OscConfig+0xd4>
  7840. 8003618: 4b6b ldr r3, [pc, #428] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7841. 800361a: 681b ldr r3, [r3, #0]
  7842. 800361c: 4a6a ldr r2, [pc, #424] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7843. 800361e: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  7844. 8003622: 6013 str r3, [r2, #0]
  7845. 8003624: 4b68 ldr r3, [pc, #416] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7846. 8003626: 681b ldr r3, [r3, #0]
  7847. 8003628: 4a67 ldr r2, [pc, #412] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7848. 800362a: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  7849. 800362e: 6013 str r3, [r2, #0]
  7850. /* Check the HSE State */
  7851. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  7852. 8003630: 687b ldr r3, [r7, #4]
  7853. 8003632: 685b ldr r3, [r3, #4]
  7854. 8003634: 2b00 cmp r3, #0
  7855. 8003636: d013 beq.n 8003660 <HAL_RCC_OscConfig+0x104>
  7856. {
  7857. /* Get Start Tick */
  7858. tickstart = HAL_GetTick();
  7859. 8003638: f7fe fb9e bl 8001d78 <HAL_GetTick>
  7860. 800363c: 6138 str r0, [r7, #16]
  7861. /* Wait till HSE is ready */
  7862. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  7863. 800363e: e008 b.n 8003652 <HAL_RCC_OscConfig+0xf6>
  7864. {
  7865. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  7866. 8003640: f7fe fb9a bl 8001d78 <HAL_GetTick>
  7867. 8003644: 4602 mov r2, r0
  7868. 8003646: 693b ldr r3, [r7, #16]
  7869. 8003648: 1ad3 subs r3, r2, r3
  7870. 800364a: 2b64 cmp r3, #100 ; 0x64
  7871. 800364c: d901 bls.n 8003652 <HAL_RCC_OscConfig+0xf6>
  7872. {
  7873. return HAL_TIMEOUT;
  7874. 800364e: 2303 movs r3, #3
  7875. 8003650: e1fa b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  7876. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  7877. 8003652: 4b5d ldr r3, [pc, #372] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7878. 8003654: 681b ldr r3, [r3, #0]
  7879. 8003656: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7880. 800365a: 2b00 cmp r3, #0
  7881. 800365c: d0f0 beq.n 8003640 <HAL_RCC_OscConfig+0xe4>
  7882. 800365e: e014 b.n 800368a <HAL_RCC_OscConfig+0x12e>
  7883. }
  7884. }
  7885. else
  7886. {
  7887. /* Get Start Tick */
  7888. tickstart = HAL_GetTick();
  7889. 8003660: f7fe fb8a bl 8001d78 <HAL_GetTick>
  7890. 8003664: 6138 str r0, [r7, #16]
  7891. /* Wait till HSE is disabled */
  7892. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  7893. 8003666: e008 b.n 800367a <HAL_RCC_OscConfig+0x11e>
  7894. {
  7895. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  7896. 8003668: f7fe fb86 bl 8001d78 <HAL_GetTick>
  7897. 800366c: 4602 mov r2, r0
  7898. 800366e: 693b ldr r3, [r7, #16]
  7899. 8003670: 1ad3 subs r3, r2, r3
  7900. 8003672: 2b64 cmp r3, #100 ; 0x64
  7901. 8003674: d901 bls.n 800367a <HAL_RCC_OscConfig+0x11e>
  7902. {
  7903. return HAL_TIMEOUT;
  7904. 8003676: 2303 movs r3, #3
  7905. 8003678: e1e6 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  7906. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  7907. 800367a: 4b53 ldr r3, [pc, #332] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7908. 800367c: 681b ldr r3, [r3, #0]
  7909. 800367e: f403 3300 and.w r3, r3, #131072 ; 0x20000
  7910. 8003682: 2b00 cmp r3, #0
  7911. 8003684: d1f0 bne.n 8003668 <HAL_RCC_OscConfig+0x10c>
  7912. 8003686: e000 b.n 800368a <HAL_RCC_OscConfig+0x12e>
  7913. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  7914. 8003688: bf00 nop
  7915. }
  7916. }
  7917. }
  7918. }
  7919. /*----------------------------- HSI Configuration --------------------------*/
  7920. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  7921. 800368a: 687b ldr r3, [r7, #4]
  7922. 800368c: 681b ldr r3, [r3, #0]
  7923. 800368e: f003 0302 and.w r3, r3, #2
  7924. 8003692: 2b00 cmp r3, #0
  7925. 8003694: d063 beq.n 800375e <HAL_RCC_OscConfig+0x202>
  7926. /* Check the parameters */
  7927. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  7928. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  7929. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  7930. if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  7931. 8003696: 4b4c ldr r3, [pc, #304] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7932. 8003698: 685b ldr r3, [r3, #4]
  7933. 800369a: f003 030c and.w r3, r3, #12
  7934. 800369e: 2b00 cmp r3, #0
  7935. 80036a0: d00b beq.n 80036ba <HAL_RCC_OscConfig+0x15e>
  7936. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2)))
  7937. 80036a2: 4b49 ldr r3, [pc, #292] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7938. 80036a4: 685b ldr r3, [r3, #4]
  7939. 80036a6: f003 030c and.w r3, r3, #12
  7940. 80036aa: 2b08 cmp r3, #8
  7941. 80036ac: d11c bne.n 80036e8 <HAL_RCC_OscConfig+0x18c>
  7942. 80036ae: 4b46 ldr r3, [pc, #280] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7943. 80036b0: 685b ldr r3, [r3, #4]
  7944. 80036b2: f403 3380 and.w r3, r3, #65536 ; 0x10000
  7945. 80036b6: 2b00 cmp r3, #0
  7946. 80036b8: d116 bne.n 80036e8 <HAL_RCC_OscConfig+0x18c>
  7947. {
  7948. /* When HSI is used as system clock it will not disabled */
  7949. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  7950. 80036ba: 4b43 ldr r3, [pc, #268] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7951. 80036bc: 681b ldr r3, [r3, #0]
  7952. 80036be: f003 0302 and.w r3, r3, #2
  7953. 80036c2: 2b00 cmp r3, #0
  7954. 80036c4: d005 beq.n 80036d2 <HAL_RCC_OscConfig+0x176>
  7955. 80036c6: 687b ldr r3, [r7, #4]
  7956. 80036c8: 691b ldr r3, [r3, #16]
  7957. 80036ca: 2b01 cmp r3, #1
  7958. 80036cc: d001 beq.n 80036d2 <HAL_RCC_OscConfig+0x176>
  7959. {
  7960. return HAL_ERROR;
  7961. 80036ce: 2301 movs r3, #1
  7962. 80036d0: e1ba b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  7963. }
  7964. /* Otherwise, just the calibration is allowed */
  7965. else
  7966. {
  7967. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  7968. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  7969. 80036d2: 4b3d ldr r3, [pc, #244] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7970. 80036d4: 681b ldr r3, [r3, #0]
  7971. 80036d6: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  7972. 80036da: 687b ldr r3, [r7, #4]
  7973. 80036dc: 695b ldr r3, [r3, #20]
  7974. 80036de: 00db lsls r3, r3, #3
  7975. 80036e0: 4939 ldr r1, [pc, #228] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  7976. 80036e2: 4313 orrs r3, r2
  7977. 80036e4: 600b str r3, [r1, #0]
  7978. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  7979. 80036e6: e03a b.n 800375e <HAL_RCC_OscConfig+0x202>
  7980. }
  7981. }
  7982. else
  7983. {
  7984. /* Check the HSI State */
  7985. if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  7986. 80036e8: 687b ldr r3, [r7, #4]
  7987. 80036ea: 691b ldr r3, [r3, #16]
  7988. 80036ec: 2b00 cmp r3, #0
  7989. 80036ee: d020 beq.n 8003732 <HAL_RCC_OscConfig+0x1d6>
  7990. {
  7991. /* Enable the Internal High Speed oscillator (HSI). */
  7992. __HAL_RCC_HSI_ENABLE();
  7993. 80036f0: 4b36 ldr r3, [pc, #216] ; (80037cc <HAL_RCC_OscConfig+0x270>)
  7994. 80036f2: 2201 movs r2, #1
  7995. 80036f4: 601a str r2, [r3, #0]
  7996. /* Get Start Tick */
  7997. tickstart = HAL_GetTick();
  7998. 80036f6: f7fe fb3f bl 8001d78 <HAL_GetTick>
  7999. 80036fa: 6138 str r0, [r7, #16]
  8000. /* Wait till HSI is ready */
  8001. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  8002. 80036fc: e008 b.n 8003710 <HAL_RCC_OscConfig+0x1b4>
  8003. {
  8004. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  8005. 80036fe: f7fe fb3b bl 8001d78 <HAL_GetTick>
  8006. 8003702: 4602 mov r2, r0
  8007. 8003704: 693b ldr r3, [r7, #16]
  8008. 8003706: 1ad3 subs r3, r2, r3
  8009. 8003708: 2b02 cmp r3, #2
  8010. 800370a: d901 bls.n 8003710 <HAL_RCC_OscConfig+0x1b4>
  8011. {
  8012. return HAL_TIMEOUT;
  8013. 800370c: 2303 movs r3, #3
  8014. 800370e: e19b b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8015. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  8016. 8003710: 4b2d ldr r3, [pc, #180] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  8017. 8003712: 681b ldr r3, [r3, #0]
  8018. 8003714: f003 0302 and.w r3, r3, #2
  8019. 8003718: 2b00 cmp r3, #0
  8020. 800371a: d0f0 beq.n 80036fe <HAL_RCC_OscConfig+0x1a2>
  8021. }
  8022. }
  8023. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  8024. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  8025. 800371c: 4b2a ldr r3, [pc, #168] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  8026. 800371e: 681b ldr r3, [r3, #0]
  8027. 8003720: f023 02f8 bic.w r2, r3, #248 ; 0xf8
  8028. 8003724: 687b ldr r3, [r7, #4]
  8029. 8003726: 695b ldr r3, [r3, #20]
  8030. 8003728: 00db lsls r3, r3, #3
  8031. 800372a: 4927 ldr r1, [pc, #156] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  8032. 800372c: 4313 orrs r3, r2
  8033. 800372e: 600b str r3, [r1, #0]
  8034. 8003730: e015 b.n 800375e <HAL_RCC_OscConfig+0x202>
  8035. }
  8036. else
  8037. {
  8038. /* Disable the Internal High Speed oscillator (HSI). */
  8039. __HAL_RCC_HSI_DISABLE();
  8040. 8003732: 4b26 ldr r3, [pc, #152] ; (80037cc <HAL_RCC_OscConfig+0x270>)
  8041. 8003734: 2200 movs r2, #0
  8042. 8003736: 601a str r2, [r3, #0]
  8043. /* Get Start Tick */
  8044. tickstart = HAL_GetTick();
  8045. 8003738: f7fe fb1e bl 8001d78 <HAL_GetTick>
  8046. 800373c: 6138 str r0, [r7, #16]
  8047. /* Wait till HSI is disabled */
  8048. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  8049. 800373e: e008 b.n 8003752 <HAL_RCC_OscConfig+0x1f6>
  8050. {
  8051. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  8052. 8003740: f7fe fb1a bl 8001d78 <HAL_GetTick>
  8053. 8003744: 4602 mov r2, r0
  8054. 8003746: 693b ldr r3, [r7, #16]
  8055. 8003748: 1ad3 subs r3, r2, r3
  8056. 800374a: 2b02 cmp r3, #2
  8057. 800374c: d901 bls.n 8003752 <HAL_RCC_OscConfig+0x1f6>
  8058. {
  8059. return HAL_TIMEOUT;
  8060. 800374e: 2303 movs r3, #3
  8061. 8003750: e17a b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8062. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  8063. 8003752: 4b1d ldr r3, [pc, #116] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  8064. 8003754: 681b ldr r3, [r3, #0]
  8065. 8003756: f003 0302 and.w r3, r3, #2
  8066. 800375a: 2b00 cmp r3, #0
  8067. 800375c: d1f0 bne.n 8003740 <HAL_RCC_OscConfig+0x1e4>
  8068. }
  8069. }
  8070. }
  8071. }
  8072. /*------------------------------ LSI Configuration -------------------------*/
  8073. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  8074. 800375e: 687b ldr r3, [r7, #4]
  8075. 8003760: 681b ldr r3, [r3, #0]
  8076. 8003762: f003 0308 and.w r3, r3, #8
  8077. 8003766: 2b00 cmp r3, #0
  8078. 8003768: d03a beq.n 80037e0 <HAL_RCC_OscConfig+0x284>
  8079. {
  8080. /* Check the parameters */
  8081. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  8082. /* Check the LSI State */
  8083. if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  8084. 800376a: 687b ldr r3, [r7, #4]
  8085. 800376c: 699b ldr r3, [r3, #24]
  8086. 800376e: 2b00 cmp r3, #0
  8087. 8003770: d019 beq.n 80037a6 <HAL_RCC_OscConfig+0x24a>
  8088. {
  8089. /* Enable the Internal Low Speed oscillator (LSI). */
  8090. __HAL_RCC_LSI_ENABLE();
  8091. 8003772: 4b17 ldr r3, [pc, #92] ; (80037d0 <HAL_RCC_OscConfig+0x274>)
  8092. 8003774: 2201 movs r2, #1
  8093. 8003776: 601a str r2, [r3, #0]
  8094. /* Get Start Tick */
  8095. tickstart = HAL_GetTick();
  8096. 8003778: f7fe fafe bl 8001d78 <HAL_GetTick>
  8097. 800377c: 6138 str r0, [r7, #16]
  8098. /* Wait till LSI is ready */
  8099. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  8100. 800377e: e008 b.n 8003792 <HAL_RCC_OscConfig+0x236>
  8101. {
  8102. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  8103. 8003780: f7fe fafa bl 8001d78 <HAL_GetTick>
  8104. 8003784: 4602 mov r2, r0
  8105. 8003786: 693b ldr r3, [r7, #16]
  8106. 8003788: 1ad3 subs r3, r2, r3
  8107. 800378a: 2b02 cmp r3, #2
  8108. 800378c: d901 bls.n 8003792 <HAL_RCC_OscConfig+0x236>
  8109. {
  8110. return HAL_TIMEOUT;
  8111. 800378e: 2303 movs r3, #3
  8112. 8003790: e15a b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8113. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  8114. 8003792: 4b0d ldr r3, [pc, #52] ; (80037c8 <HAL_RCC_OscConfig+0x26c>)
  8115. 8003794: 6a5b ldr r3, [r3, #36] ; 0x24
  8116. 8003796: f003 0302 and.w r3, r3, #2
  8117. 800379a: 2b00 cmp r3, #0
  8118. 800379c: d0f0 beq.n 8003780 <HAL_RCC_OscConfig+0x224>
  8119. }
  8120. }
  8121. /* To have a fully stabilized clock in the specified range, a software delay of 1ms
  8122. should be added.*/
  8123. RCC_Delay(1);
  8124. 800379e: 2001 movs r0, #1
  8125. 80037a0: f000 fad6 bl 8003d50 <RCC_Delay>
  8126. 80037a4: e01c b.n 80037e0 <HAL_RCC_OscConfig+0x284>
  8127. }
  8128. else
  8129. {
  8130. /* Disable the Internal Low Speed oscillator (LSI). */
  8131. __HAL_RCC_LSI_DISABLE();
  8132. 80037a6: 4b0a ldr r3, [pc, #40] ; (80037d0 <HAL_RCC_OscConfig+0x274>)
  8133. 80037a8: 2200 movs r2, #0
  8134. 80037aa: 601a str r2, [r3, #0]
  8135. /* Get Start Tick */
  8136. tickstart = HAL_GetTick();
  8137. 80037ac: f7fe fae4 bl 8001d78 <HAL_GetTick>
  8138. 80037b0: 6138 str r0, [r7, #16]
  8139. /* Wait till LSI is disabled */
  8140. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  8141. 80037b2: e00f b.n 80037d4 <HAL_RCC_OscConfig+0x278>
  8142. {
  8143. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  8144. 80037b4: f7fe fae0 bl 8001d78 <HAL_GetTick>
  8145. 80037b8: 4602 mov r2, r0
  8146. 80037ba: 693b ldr r3, [r7, #16]
  8147. 80037bc: 1ad3 subs r3, r2, r3
  8148. 80037be: 2b02 cmp r3, #2
  8149. 80037c0: d908 bls.n 80037d4 <HAL_RCC_OscConfig+0x278>
  8150. {
  8151. return HAL_TIMEOUT;
  8152. 80037c2: 2303 movs r3, #3
  8153. 80037c4: e140 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8154. 80037c6: bf00 nop
  8155. 80037c8: 40021000 .word 0x40021000
  8156. 80037cc: 42420000 .word 0x42420000
  8157. 80037d0: 42420480 .word 0x42420480
  8158. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  8159. 80037d4: 4b9e ldr r3, [pc, #632] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8160. 80037d6: 6a5b ldr r3, [r3, #36] ; 0x24
  8161. 80037d8: f003 0302 and.w r3, r3, #2
  8162. 80037dc: 2b00 cmp r3, #0
  8163. 80037de: d1e9 bne.n 80037b4 <HAL_RCC_OscConfig+0x258>
  8164. }
  8165. }
  8166. }
  8167. }
  8168. /*------------------------------ LSE Configuration -------------------------*/
  8169. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  8170. 80037e0: 687b ldr r3, [r7, #4]
  8171. 80037e2: 681b ldr r3, [r3, #0]
  8172. 80037e4: f003 0304 and.w r3, r3, #4
  8173. 80037e8: 2b00 cmp r3, #0
  8174. 80037ea: f000 80a6 beq.w 800393a <HAL_RCC_OscConfig+0x3de>
  8175. {
  8176. FlagStatus pwrclkchanged = RESET;
  8177. 80037ee: 2300 movs r3, #0
  8178. 80037f0: 75fb strb r3, [r7, #23]
  8179. /* Check the parameters */
  8180. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  8181. /* Update LSE configuration in Backup Domain control register */
  8182. /* Requires to enable write access to Backup Domain of necessary */
  8183. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  8184. 80037f2: 4b97 ldr r3, [pc, #604] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8185. 80037f4: 69db ldr r3, [r3, #28]
  8186. 80037f6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  8187. 80037fa: 2b00 cmp r3, #0
  8188. 80037fc: d10d bne.n 800381a <HAL_RCC_OscConfig+0x2be>
  8189. {
  8190. __HAL_RCC_PWR_CLK_ENABLE();
  8191. 80037fe: 4b94 ldr r3, [pc, #592] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8192. 8003800: 69db ldr r3, [r3, #28]
  8193. 8003802: 4a93 ldr r2, [pc, #588] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8194. 8003804: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  8195. 8003808: 61d3 str r3, [r2, #28]
  8196. 800380a: 4b91 ldr r3, [pc, #580] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8197. 800380c: 69db ldr r3, [r3, #28]
  8198. 800380e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  8199. 8003812: 60bb str r3, [r7, #8]
  8200. 8003814: 68bb ldr r3, [r7, #8]
  8201. pwrclkchanged = SET;
  8202. 8003816: 2301 movs r3, #1
  8203. 8003818: 75fb strb r3, [r7, #23]
  8204. }
  8205. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8206. 800381a: 4b8e ldr r3, [pc, #568] ; (8003a54 <HAL_RCC_OscConfig+0x4f8>)
  8207. 800381c: 681b ldr r3, [r3, #0]
  8208. 800381e: f403 7380 and.w r3, r3, #256 ; 0x100
  8209. 8003822: 2b00 cmp r3, #0
  8210. 8003824: d118 bne.n 8003858 <HAL_RCC_OscConfig+0x2fc>
  8211. {
  8212. /* Enable write access to Backup domain */
  8213. SET_BIT(PWR->CR, PWR_CR_DBP);
  8214. 8003826: 4b8b ldr r3, [pc, #556] ; (8003a54 <HAL_RCC_OscConfig+0x4f8>)
  8215. 8003828: 681b ldr r3, [r3, #0]
  8216. 800382a: 4a8a ldr r2, [pc, #552] ; (8003a54 <HAL_RCC_OscConfig+0x4f8>)
  8217. 800382c: f443 7380 orr.w r3, r3, #256 ; 0x100
  8218. 8003830: 6013 str r3, [r2, #0]
  8219. /* Wait for Backup domain Write protection disable */
  8220. tickstart = HAL_GetTick();
  8221. 8003832: f7fe faa1 bl 8001d78 <HAL_GetTick>
  8222. 8003836: 6138 str r0, [r7, #16]
  8223. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8224. 8003838: e008 b.n 800384c <HAL_RCC_OscConfig+0x2f0>
  8225. {
  8226. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  8227. 800383a: f7fe fa9d bl 8001d78 <HAL_GetTick>
  8228. 800383e: 4602 mov r2, r0
  8229. 8003840: 693b ldr r3, [r7, #16]
  8230. 8003842: 1ad3 subs r3, r2, r3
  8231. 8003844: 2b64 cmp r3, #100 ; 0x64
  8232. 8003846: d901 bls.n 800384c <HAL_RCC_OscConfig+0x2f0>
  8233. {
  8234. return HAL_TIMEOUT;
  8235. 8003848: 2303 movs r3, #3
  8236. 800384a: e0fd b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8237. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  8238. 800384c: 4b81 ldr r3, [pc, #516] ; (8003a54 <HAL_RCC_OscConfig+0x4f8>)
  8239. 800384e: 681b ldr r3, [r3, #0]
  8240. 8003850: f403 7380 and.w r3, r3, #256 ; 0x100
  8241. 8003854: 2b00 cmp r3, #0
  8242. 8003856: d0f0 beq.n 800383a <HAL_RCC_OscConfig+0x2de>
  8243. }
  8244. }
  8245. }
  8246. /* Set the new LSE configuration -----------------------------------------*/
  8247. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  8248. 8003858: 687b ldr r3, [r7, #4]
  8249. 800385a: 68db ldr r3, [r3, #12]
  8250. 800385c: 2b01 cmp r3, #1
  8251. 800385e: d106 bne.n 800386e <HAL_RCC_OscConfig+0x312>
  8252. 8003860: 4b7b ldr r3, [pc, #492] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8253. 8003862: 6a1b ldr r3, [r3, #32]
  8254. 8003864: 4a7a ldr r2, [pc, #488] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8255. 8003866: f043 0301 orr.w r3, r3, #1
  8256. 800386a: 6213 str r3, [r2, #32]
  8257. 800386c: e02d b.n 80038ca <HAL_RCC_OscConfig+0x36e>
  8258. 800386e: 687b ldr r3, [r7, #4]
  8259. 8003870: 68db ldr r3, [r3, #12]
  8260. 8003872: 2b00 cmp r3, #0
  8261. 8003874: d10c bne.n 8003890 <HAL_RCC_OscConfig+0x334>
  8262. 8003876: 4b76 ldr r3, [pc, #472] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8263. 8003878: 6a1b ldr r3, [r3, #32]
  8264. 800387a: 4a75 ldr r2, [pc, #468] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8265. 800387c: f023 0301 bic.w r3, r3, #1
  8266. 8003880: 6213 str r3, [r2, #32]
  8267. 8003882: 4b73 ldr r3, [pc, #460] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8268. 8003884: 6a1b ldr r3, [r3, #32]
  8269. 8003886: 4a72 ldr r2, [pc, #456] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8270. 8003888: f023 0304 bic.w r3, r3, #4
  8271. 800388c: 6213 str r3, [r2, #32]
  8272. 800388e: e01c b.n 80038ca <HAL_RCC_OscConfig+0x36e>
  8273. 8003890: 687b ldr r3, [r7, #4]
  8274. 8003892: 68db ldr r3, [r3, #12]
  8275. 8003894: 2b05 cmp r3, #5
  8276. 8003896: d10c bne.n 80038b2 <HAL_RCC_OscConfig+0x356>
  8277. 8003898: 4b6d ldr r3, [pc, #436] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8278. 800389a: 6a1b ldr r3, [r3, #32]
  8279. 800389c: 4a6c ldr r2, [pc, #432] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8280. 800389e: f043 0304 orr.w r3, r3, #4
  8281. 80038a2: 6213 str r3, [r2, #32]
  8282. 80038a4: 4b6a ldr r3, [pc, #424] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8283. 80038a6: 6a1b ldr r3, [r3, #32]
  8284. 80038a8: 4a69 ldr r2, [pc, #420] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8285. 80038aa: f043 0301 orr.w r3, r3, #1
  8286. 80038ae: 6213 str r3, [r2, #32]
  8287. 80038b0: e00b b.n 80038ca <HAL_RCC_OscConfig+0x36e>
  8288. 80038b2: 4b67 ldr r3, [pc, #412] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8289. 80038b4: 6a1b ldr r3, [r3, #32]
  8290. 80038b6: 4a66 ldr r2, [pc, #408] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8291. 80038b8: f023 0301 bic.w r3, r3, #1
  8292. 80038bc: 6213 str r3, [r2, #32]
  8293. 80038be: 4b64 ldr r3, [pc, #400] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8294. 80038c0: 6a1b ldr r3, [r3, #32]
  8295. 80038c2: 4a63 ldr r2, [pc, #396] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8296. 80038c4: f023 0304 bic.w r3, r3, #4
  8297. 80038c8: 6213 str r3, [r2, #32]
  8298. /* Check the LSE State */
  8299. if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  8300. 80038ca: 687b ldr r3, [r7, #4]
  8301. 80038cc: 68db ldr r3, [r3, #12]
  8302. 80038ce: 2b00 cmp r3, #0
  8303. 80038d0: d015 beq.n 80038fe <HAL_RCC_OscConfig+0x3a2>
  8304. {
  8305. /* Get Start Tick */
  8306. tickstart = HAL_GetTick();
  8307. 80038d2: f7fe fa51 bl 8001d78 <HAL_GetTick>
  8308. 80038d6: 6138 str r0, [r7, #16]
  8309. /* Wait till LSE is ready */
  8310. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  8311. 80038d8: e00a b.n 80038f0 <HAL_RCC_OscConfig+0x394>
  8312. {
  8313. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  8314. 80038da: f7fe fa4d bl 8001d78 <HAL_GetTick>
  8315. 80038de: 4602 mov r2, r0
  8316. 80038e0: 693b ldr r3, [r7, #16]
  8317. 80038e2: 1ad3 subs r3, r2, r3
  8318. 80038e4: f241 3288 movw r2, #5000 ; 0x1388
  8319. 80038e8: 4293 cmp r3, r2
  8320. 80038ea: d901 bls.n 80038f0 <HAL_RCC_OscConfig+0x394>
  8321. {
  8322. return HAL_TIMEOUT;
  8323. 80038ec: 2303 movs r3, #3
  8324. 80038ee: e0ab b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8325. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  8326. 80038f0: 4b57 ldr r3, [pc, #348] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8327. 80038f2: 6a1b ldr r3, [r3, #32]
  8328. 80038f4: f003 0302 and.w r3, r3, #2
  8329. 80038f8: 2b00 cmp r3, #0
  8330. 80038fa: d0ee beq.n 80038da <HAL_RCC_OscConfig+0x37e>
  8331. 80038fc: e014 b.n 8003928 <HAL_RCC_OscConfig+0x3cc>
  8332. }
  8333. }
  8334. else
  8335. {
  8336. /* Get Start Tick */
  8337. tickstart = HAL_GetTick();
  8338. 80038fe: f7fe fa3b bl 8001d78 <HAL_GetTick>
  8339. 8003902: 6138 str r0, [r7, #16]
  8340. /* Wait till LSE is disabled */
  8341. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  8342. 8003904: e00a b.n 800391c <HAL_RCC_OscConfig+0x3c0>
  8343. {
  8344. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  8345. 8003906: f7fe fa37 bl 8001d78 <HAL_GetTick>
  8346. 800390a: 4602 mov r2, r0
  8347. 800390c: 693b ldr r3, [r7, #16]
  8348. 800390e: 1ad3 subs r3, r2, r3
  8349. 8003910: f241 3288 movw r2, #5000 ; 0x1388
  8350. 8003914: 4293 cmp r3, r2
  8351. 8003916: d901 bls.n 800391c <HAL_RCC_OscConfig+0x3c0>
  8352. {
  8353. return HAL_TIMEOUT;
  8354. 8003918: 2303 movs r3, #3
  8355. 800391a: e095 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8356. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  8357. 800391c: 4b4c ldr r3, [pc, #304] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8358. 800391e: 6a1b ldr r3, [r3, #32]
  8359. 8003920: f003 0302 and.w r3, r3, #2
  8360. 8003924: 2b00 cmp r3, #0
  8361. 8003926: d1ee bne.n 8003906 <HAL_RCC_OscConfig+0x3aa>
  8362. }
  8363. }
  8364. }
  8365. /* Require to disable power clock if necessary */
  8366. if (pwrclkchanged == SET)
  8367. 8003928: 7dfb ldrb r3, [r7, #23]
  8368. 800392a: 2b01 cmp r3, #1
  8369. 800392c: d105 bne.n 800393a <HAL_RCC_OscConfig+0x3de>
  8370. {
  8371. __HAL_RCC_PWR_CLK_DISABLE();
  8372. 800392e: 4b48 ldr r3, [pc, #288] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8373. 8003930: 69db ldr r3, [r3, #28]
  8374. 8003932: 4a47 ldr r2, [pc, #284] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8375. 8003934: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  8376. 8003938: 61d3 str r3, [r2, #28]
  8377. #endif /* RCC_CR_PLL2ON */
  8378. /*-------------------------------- PLL Configuration -----------------------*/
  8379. /* Check the parameters */
  8380. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  8381. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  8382. 800393a: 687b ldr r3, [r7, #4]
  8383. 800393c: 69db ldr r3, [r3, #28]
  8384. 800393e: 2b00 cmp r3, #0
  8385. 8003940: f000 8081 beq.w 8003a46 <HAL_RCC_OscConfig+0x4ea>
  8386. {
  8387. /* Check if the PLL is used as system clock or not */
  8388. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  8389. 8003944: 4b42 ldr r3, [pc, #264] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8390. 8003946: 685b ldr r3, [r3, #4]
  8391. 8003948: f003 030c and.w r3, r3, #12
  8392. 800394c: 2b08 cmp r3, #8
  8393. 800394e: d061 beq.n 8003a14 <HAL_RCC_OscConfig+0x4b8>
  8394. {
  8395. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  8396. 8003950: 687b ldr r3, [r7, #4]
  8397. 8003952: 69db ldr r3, [r3, #28]
  8398. 8003954: 2b02 cmp r3, #2
  8399. 8003956: d146 bne.n 80039e6 <HAL_RCC_OscConfig+0x48a>
  8400. /* Check the parameters */
  8401. assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
  8402. assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
  8403. /* Disable the main PLL. */
  8404. __HAL_RCC_PLL_DISABLE();
  8405. 8003958: 4b3f ldr r3, [pc, #252] ; (8003a58 <HAL_RCC_OscConfig+0x4fc>)
  8406. 800395a: 2200 movs r2, #0
  8407. 800395c: 601a str r2, [r3, #0]
  8408. /* Get Start Tick */
  8409. tickstart = HAL_GetTick();
  8410. 800395e: f7fe fa0b bl 8001d78 <HAL_GetTick>
  8411. 8003962: 6138 str r0, [r7, #16]
  8412. /* Wait till PLL is disabled */
  8413. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8414. 8003964: e008 b.n 8003978 <HAL_RCC_OscConfig+0x41c>
  8415. {
  8416. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  8417. 8003966: f7fe fa07 bl 8001d78 <HAL_GetTick>
  8418. 800396a: 4602 mov r2, r0
  8419. 800396c: 693b ldr r3, [r7, #16]
  8420. 800396e: 1ad3 subs r3, r2, r3
  8421. 8003970: 2b02 cmp r3, #2
  8422. 8003972: d901 bls.n 8003978 <HAL_RCC_OscConfig+0x41c>
  8423. {
  8424. return HAL_TIMEOUT;
  8425. 8003974: 2303 movs r3, #3
  8426. 8003976: e067 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8427. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8428. 8003978: 4b35 ldr r3, [pc, #212] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8429. 800397a: 681b ldr r3, [r3, #0]
  8430. 800397c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8431. 8003980: 2b00 cmp r3, #0
  8432. 8003982: d1f0 bne.n 8003966 <HAL_RCC_OscConfig+0x40a>
  8433. }
  8434. }
  8435. /* Configure the HSE prediv factor --------------------------------*/
  8436. /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */
  8437. if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE)
  8438. 8003984: 687b ldr r3, [r7, #4]
  8439. 8003986: 6a1b ldr r3, [r3, #32]
  8440. 8003988: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  8441. 800398c: d108 bne.n 80039a0 <HAL_RCC_OscConfig+0x444>
  8442. /* Set PREDIV1 source */
  8443. SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source);
  8444. #endif /* RCC_CFGR2_PREDIV1SRC */
  8445. /* Set PREDIV1 Value */
  8446. __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue);
  8447. 800398e: 4b30 ldr r3, [pc, #192] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8448. 8003990: 6adb ldr r3, [r3, #44] ; 0x2c
  8449. 8003992: f023 020f bic.w r2, r3, #15
  8450. 8003996: 687b ldr r3, [r7, #4]
  8451. 8003998: 689b ldr r3, [r3, #8]
  8452. 800399a: 492d ldr r1, [pc, #180] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8453. 800399c: 4313 orrs r3, r2
  8454. 800399e: 62cb str r3, [r1, #44] ; 0x2c
  8455. }
  8456. /* Configure the main PLL clock source and multiplication factors. */
  8457. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  8458. 80039a0: 4b2b ldr r3, [pc, #172] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8459. 80039a2: 685b ldr r3, [r3, #4]
  8460. 80039a4: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000
  8461. 80039a8: 687b ldr r3, [r7, #4]
  8462. 80039aa: 6a19 ldr r1, [r3, #32]
  8463. 80039ac: 687b ldr r3, [r7, #4]
  8464. 80039ae: 6a5b ldr r3, [r3, #36] ; 0x24
  8465. 80039b0: 430b orrs r3, r1
  8466. 80039b2: 4927 ldr r1, [pc, #156] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8467. 80039b4: 4313 orrs r3, r2
  8468. 80039b6: 604b str r3, [r1, #4]
  8469. RCC_OscInitStruct->PLL.PLLMUL);
  8470. /* Enable the main PLL. */
  8471. __HAL_RCC_PLL_ENABLE();
  8472. 80039b8: 4b27 ldr r3, [pc, #156] ; (8003a58 <HAL_RCC_OscConfig+0x4fc>)
  8473. 80039ba: 2201 movs r2, #1
  8474. 80039bc: 601a str r2, [r3, #0]
  8475. /* Get Start Tick */
  8476. tickstart = HAL_GetTick();
  8477. 80039be: f7fe f9db bl 8001d78 <HAL_GetTick>
  8478. 80039c2: 6138 str r0, [r7, #16]
  8479. /* Wait till PLL is ready */
  8480. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  8481. 80039c4: e008 b.n 80039d8 <HAL_RCC_OscConfig+0x47c>
  8482. {
  8483. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  8484. 80039c6: f7fe f9d7 bl 8001d78 <HAL_GetTick>
  8485. 80039ca: 4602 mov r2, r0
  8486. 80039cc: 693b ldr r3, [r7, #16]
  8487. 80039ce: 1ad3 subs r3, r2, r3
  8488. 80039d0: 2b02 cmp r3, #2
  8489. 80039d2: d901 bls.n 80039d8 <HAL_RCC_OscConfig+0x47c>
  8490. {
  8491. return HAL_TIMEOUT;
  8492. 80039d4: 2303 movs r3, #3
  8493. 80039d6: e037 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8494. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  8495. 80039d8: 4b1d ldr r3, [pc, #116] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8496. 80039da: 681b ldr r3, [r3, #0]
  8497. 80039dc: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8498. 80039e0: 2b00 cmp r3, #0
  8499. 80039e2: d0f0 beq.n 80039c6 <HAL_RCC_OscConfig+0x46a>
  8500. 80039e4: e02f b.n 8003a46 <HAL_RCC_OscConfig+0x4ea>
  8501. }
  8502. }
  8503. else
  8504. {
  8505. /* Disable the main PLL. */
  8506. __HAL_RCC_PLL_DISABLE();
  8507. 80039e6: 4b1c ldr r3, [pc, #112] ; (8003a58 <HAL_RCC_OscConfig+0x4fc>)
  8508. 80039e8: 2200 movs r2, #0
  8509. 80039ea: 601a str r2, [r3, #0]
  8510. /* Get Start Tick */
  8511. tickstart = HAL_GetTick();
  8512. 80039ec: f7fe f9c4 bl 8001d78 <HAL_GetTick>
  8513. 80039f0: 6138 str r0, [r7, #16]
  8514. /* Wait till PLL is disabled */
  8515. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8516. 80039f2: e008 b.n 8003a06 <HAL_RCC_OscConfig+0x4aa>
  8517. {
  8518. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  8519. 80039f4: f7fe f9c0 bl 8001d78 <HAL_GetTick>
  8520. 80039f8: 4602 mov r2, r0
  8521. 80039fa: 693b ldr r3, [r7, #16]
  8522. 80039fc: 1ad3 subs r3, r2, r3
  8523. 80039fe: 2b02 cmp r3, #2
  8524. 8003a00: d901 bls.n 8003a06 <HAL_RCC_OscConfig+0x4aa>
  8525. {
  8526. return HAL_TIMEOUT;
  8527. 8003a02: 2303 movs r3, #3
  8528. 8003a04: e020 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8529. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  8530. 8003a06: 4b12 ldr r3, [pc, #72] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8531. 8003a08: 681b ldr r3, [r3, #0]
  8532. 8003a0a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8533. 8003a0e: 2b00 cmp r3, #0
  8534. 8003a10: d1f0 bne.n 80039f4 <HAL_RCC_OscConfig+0x498>
  8535. 8003a12: e018 b.n 8003a46 <HAL_RCC_OscConfig+0x4ea>
  8536. }
  8537. }
  8538. else
  8539. {
  8540. /* Check if there is a request to disable the PLL used as System clock source */
  8541. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  8542. 8003a14: 687b ldr r3, [r7, #4]
  8543. 8003a16: 69db ldr r3, [r3, #28]
  8544. 8003a18: 2b01 cmp r3, #1
  8545. 8003a1a: d101 bne.n 8003a20 <HAL_RCC_OscConfig+0x4c4>
  8546. {
  8547. return HAL_ERROR;
  8548. 8003a1c: 2301 movs r3, #1
  8549. 8003a1e: e013 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8550. }
  8551. else
  8552. {
  8553. /* Do not return HAL_ERROR if request repeats the current configuration */
  8554. pll_config = RCC->CFGR;
  8555. 8003a20: 4b0b ldr r3, [pc, #44] ; (8003a50 <HAL_RCC_OscConfig+0x4f4>)
  8556. 8003a22: 685b ldr r3, [r3, #4]
  8557. 8003a24: 60fb str r3, [r7, #12]
  8558. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  8559. 8003a26: 68fb ldr r3, [r7, #12]
  8560. 8003a28: f403 3280 and.w r2, r3, #65536 ; 0x10000
  8561. 8003a2c: 687b ldr r3, [r7, #4]
  8562. 8003a2e: 6a1b ldr r3, [r3, #32]
  8563. 8003a30: 429a cmp r2, r3
  8564. 8003a32: d106 bne.n 8003a42 <HAL_RCC_OscConfig+0x4e6>
  8565. (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL))
  8566. 8003a34: 68fb ldr r3, [r7, #12]
  8567. 8003a36: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  8568. 8003a3a: 687b ldr r3, [r7, #4]
  8569. 8003a3c: 6a5b ldr r3, [r3, #36] ; 0x24
  8570. if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  8571. 8003a3e: 429a cmp r2, r3
  8572. 8003a40: d001 beq.n 8003a46 <HAL_RCC_OscConfig+0x4ea>
  8573. {
  8574. return HAL_ERROR;
  8575. 8003a42: 2301 movs r3, #1
  8576. 8003a44: e000 b.n 8003a48 <HAL_RCC_OscConfig+0x4ec>
  8577. }
  8578. }
  8579. }
  8580. }
  8581. return HAL_OK;
  8582. 8003a46: 2300 movs r3, #0
  8583. }
  8584. 8003a48: 4618 mov r0, r3
  8585. 8003a4a: 3718 adds r7, #24
  8586. 8003a4c: 46bd mov sp, r7
  8587. 8003a4e: bd80 pop {r7, pc}
  8588. 8003a50: 40021000 .word 0x40021000
  8589. 8003a54: 40007000 .word 0x40007000
  8590. 8003a58: 42420060 .word 0x42420060
  8591. 08003a5c <HAL_RCC_ClockConfig>:
  8592. * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is
  8593. * currently used as system clock source.
  8594. * @retval HAL status
  8595. */
  8596. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  8597. {
  8598. 8003a5c: b580 push {r7, lr}
  8599. 8003a5e: b084 sub sp, #16
  8600. 8003a60: af00 add r7, sp, #0
  8601. 8003a62: 6078 str r0, [r7, #4]
  8602. 8003a64: 6039 str r1, [r7, #0]
  8603. uint32_t tickstart;
  8604. /* Check Null pointer */
  8605. if (RCC_ClkInitStruct == NULL)
  8606. 8003a66: 687b ldr r3, [r7, #4]
  8607. 8003a68: 2b00 cmp r3, #0
  8608. 8003a6a: d101 bne.n 8003a70 <HAL_RCC_ClockConfig+0x14>
  8609. {
  8610. return HAL_ERROR;
  8611. 8003a6c: 2301 movs r3, #1
  8612. 8003a6e: e0a0 b.n 8003bb2 <HAL_RCC_ClockConfig+0x156>
  8613. }
  8614. }
  8615. #endif /* FLASH_ACR_LATENCY */
  8616. /*-------------------------- HCLK Configuration --------------------------*/
  8617. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  8618. 8003a70: 687b ldr r3, [r7, #4]
  8619. 8003a72: 681b ldr r3, [r3, #0]
  8620. 8003a74: f003 0302 and.w r3, r3, #2
  8621. 8003a78: 2b00 cmp r3, #0
  8622. 8003a7a: d020 beq.n 8003abe <HAL_RCC_ClockConfig+0x62>
  8623. {
  8624. /* Set the highest APBx dividers in order to ensure that we do not go through
  8625. a non-spec phase whatever we decrease or increase HCLK. */
  8626. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  8627. 8003a7c: 687b ldr r3, [r7, #4]
  8628. 8003a7e: 681b ldr r3, [r3, #0]
  8629. 8003a80: f003 0304 and.w r3, r3, #4
  8630. 8003a84: 2b00 cmp r3, #0
  8631. 8003a86: d005 beq.n 8003a94 <HAL_RCC_ClockConfig+0x38>
  8632. {
  8633. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
  8634. 8003a88: 4b4c ldr r3, [pc, #304] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8635. 8003a8a: 685b ldr r3, [r3, #4]
  8636. 8003a8c: 4a4b ldr r2, [pc, #300] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8637. 8003a8e: f443 63e0 orr.w r3, r3, #1792 ; 0x700
  8638. 8003a92: 6053 str r3, [r2, #4]
  8639. }
  8640. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  8641. 8003a94: 687b ldr r3, [r7, #4]
  8642. 8003a96: 681b ldr r3, [r3, #0]
  8643. 8003a98: f003 0308 and.w r3, r3, #8
  8644. 8003a9c: 2b00 cmp r3, #0
  8645. 8003a9e: d005 beq.n 8003aac <HAL_RCC_ClockConfig+0x50>
  8646. {
  8647. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
  8648. 8003aa0: 4b46 ldr r3, [pc, #280] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8649. 8003aa2: 685b ldr r3, [r3, #4]
  8650. 8003aa4: 4a45 ldr r2, [pc, #276] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8651. 8003aa6: f443 5360 orr.w r3, r3, #14336 ; 0x3800
  8652. 8003aaa: 6053 str r3, [r2, #4]
  8653. }
  8654. /* Set the new HCLK clock divider */
  8655. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  8656. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  8657. 8003aac: 4b43 ldr r3, [pc, #268] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8658. 8003aae: 685b ldr r3, [r3, #4]
  8659. 8003ab0: f023 02f0 bic.w r2, r3, #240 ; 0xf0
  8660. 8003ab4: 687b ldr r3, [r7, #4]
  8661. 8003ab6: 689b ldr r3, [r3, #8]
  8662. 8003ab8: 4940 ldr r1, [pc, #256] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8663. 8003aba: 4313 orrs r3, r2
  8664. 8003abc: 604b str r3, [r1, #4]
  8665. }
  8666. /*------------------------- SYSCLK Configuration ---------------------------*/
  8667. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  8668. 8003abe: 687b ldr r3, [r7, #4]
  8669. 8003ac0: 681b ldr r3, [r3, #0]
  8670. 8003ac2: f003 0301 and.w r3, r3, #1
  8671. 8003ac6: 2b00 cmp r3, #0
  8672. 8003ac8: d040 beq.n 8003b4c <HAL_RCC_ClockConfig+0xf0>
  8673. {
  8674. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  8675. /* HSE is selected as System Clock Source */
  8676. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  8677. 8003aca: 687b ldr r3, [r7, #4]
  8678. 8003acc: 685b ldr r3, [r3, #4]
  8679. 8003ace: 2b01 cmp r3, #1
  8680. 8003ad0: d107 bne.n 8003ae2 <HAL_RCC_ClockConfig+0x86>
  8681. {
  8682. /* Check the HSE ready flag */
  8683. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  8684. 8003ad2: 4b3a ldr r3, [pc, #232] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8685. 8003ad4: 681b ldr r3, [r3, #0]
  8686. 8003ad6: f403 3300 and.w r3, r3, #131072 ; 0x20000
  8687. 8003ada: 2b00 cmp r3, #0
  8688. 8003adc: d115 bne.n 8003b0a <HAL_RCC_ClockConfig+0xae>
  8689. {
  8690. return HAL_ERROR;
  8691. 8003ade: 2301 movs r3, #1
  8692. 8003ae0: e067 b.n 8003bb2 <HAL_RCC_ClockConfig+0x156>
  8693. }
  8694. }
  8695. /* PLL is selected as System Clock Source */
  8696. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  8697. 8003ae2: 687b ldr r3, [r7, #4]
  8698. 8003ae4: 685b ldr r3, [r3, #4]
  8699. 8003ae6: 2b02 cmp r3, #2
  8700. 8003ae8: d107 bne.n 8003afa <HAL_RCC_ClockConfig+0x9e>
  8701. {
  8702. /* Check the PLL ready flag */
  8703. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  8704. 8003aea: 4b34 ldr r3, [pc, #208] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8705. 8003aec: 681b ldr r3, [r3, #0]
  8706. 8003aee: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  8707. 8003af2: 2b00 cmp r3, #0
  8708. 8003af4: d109 bne.n 8003b0a <HAL_RCC_ClockConfig+0xae>
  8709. {
  8710. return HAL_ERROR;
  8711. 8003af6: 2301 movs r3, #1
  8712. 8003af8: e05b b.n 8003bb2 <HAL_RCC_ClockConfig+0x156>
  8713. }
  8714. /* HSI is selected as System Clock Source */
  8715. else
  8716. {
  8717. /* Check the HSI ready flag */
  8718. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  8719. 8003afa: 4b30 ldr r3, [pc, #192] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8720. 8003afc: 681b ldr r3, [r3, #0]
  8721. 8003afe: f003 0302 and.w r3, r3, #2
  8722. 8003b02: 2b00 cmp r3, #0
  8723. 8003b04: d101 bne.n 8003b0a <HAL_RCC_ClockConfig+0xae>
  8724. {
  8725. return HAL_ERROR;
  8726. 8003b06: 2301 movs r3, #1
  8727. 8003b08: e053 b.n 8003bb2 <HAL_RCC_ClockConfig+0x156>
  8728. }
  8729. }
  8730. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  8731. 8003b0a: 4b2c ldr r3, [pc, #176] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8732. 8003b0c: 685b ldr r3, [r3, #4]
  8733. 8003b0e: f023 0203 bic.w r2, r3, #3
  8734. 8003b12: 687b ldr r3, [r7, #4]
  8735. 8003b14: 685b ldr r3, [r3, #4]
  8736. 8003b16: 4929 ldr r1, [pc, #164] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8737. 8003b18: 4313 orrs r3, r2
  8738. 8003b1a: 604b str r3, [r1, #4]
  8739. /* Get Start Tick */
  8740. tickstart = HAL_GetTick();
  8741. 8003b1c: f7fe f92c bl 8001d78 <HAL_GetTick>
  8742. 8003b20: 60f8 str r0, [r7, #12]
  8743. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  8744. 8003b22: e00a b.n 8003b3a <HAL_RCC_ClockConfig+0xde>
  8745. {
  8746. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  8747. 8003b24: f7fe f928 bl 8001d78 <HAL_GetTick>
  8748. 8003b28: 4602 mov r2, r0
  8749. 8003b2a: 68fb ldr r3, [r7, #12]
  8750. 8003b2c: 1ad3 subs r3, r2, r3
  8751. 8003b2e: f241 3288 movw r2, #5000 ; 0x1388
  8752. 8003b32: 4293 cmp r3, r2
  8753. 8003b34: d901 bls.n 8003b3a <HAL_RCC_ClockConfig+0xde>
  8754. {
  8755. return HAL_TIMEOUT;
  8756. 8003b36: 2303 movs r3, #3
  8757. 8003b38: e03b b.n 8003bb2 <HAL_RCC_ClockConfig+0x156>
  8758. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  8759. 8003b3a: 4b20 ldr r3, [pc, #128] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8760. 8003b3c: 685b ldr r3, [r3, #4]
  8761. 8003b3e: f003 020c and.w r2, r3, #12
  8762. 8003b42: 687b ldr r3, [r7, #4]
  8763. 8003b44: 685b ldr r3, [r3, #4]
  8764. 8003b46: 009b lsls r3, r3, #2
  8765. 8003b48: 429a cmp r2, r3
  8766. 8003b4a: d1eb bne.n 8003b24 <HAL_RCC_ClockConfig+0xc8>
  8767. }
  8768. }
  8769. #endif /* FLASH_ACR_LATENCY */
  8770. /*-------------------------- PCLK1 Configuration ---------------------------*/
  8771. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  8772. 8003b4c: 687b ldr r3, [r7, #4]
  8773. 8003b4e: 681b ldr r3, [r3, #0]
  8774. 8003b50: f003 0304 and.w r3, r3, #4
  8775. 8003b54: 2b00 cmp r3, #0
  8776. 8003b56: d008 beq.n 8003b6a <HAL_RCC_ClockConfig+0x10e>
  8777. {
  8778. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  8779. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  8780. 8003b58: 4b18 ldr r3, [pc, #96] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8781. 8003b5a: 685b ldr r3, [r3, #4]
  8782. 8003b5c: f423 62e0 bic.w r2, r3, #1792 ; 0x700
  8783. 8003b60: 687b ldr r3, [r7, #4]
  8784. 8003b62: 68db ldr r3, [r3, #12]
  8785. 8003b64: 4915 ldr r1, [pc, #84] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8786. 8003b66: 4313 orrs r3, r2
  8787. 8003b68: 604b str r3, [r1, #4]
  8788. }
  8789. /*-------------------------- PCLK2 Configuration ---------------------------*/
  8790. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  8791. 8003b6a: 687b ldr r3, [r7, #4]
  8792. 8003b6c: 681b ldr r3, [r3, #0]
  8793. 8003b6e: f003 0308 and.w r3, r3, #8
  8794. 8003b72: 2b00 cmp r3, #0
  8795. 8003b74: d009 beq.n 8003b8a <HAL_RCC_ClockConfig+0x12e>
  8796. {
  8797. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
  8798. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
  8799. 8003b76: 4b11 ldr r3, [pc, #68] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8800. 8003b78: 685b ldr r3, [r3, #4]
  8801. 8003b7a: f423 5260 bic.w r2, r3, #14336 ; 0x3800
  8802. 8003b7e: 687b ldr r3, [r7, #4]
  8803. 8003b80: 691b ldr r3, [r3, #16]
  8804. 8003b82: 00db lsls r3, r3, #3
  8805. 8003b84: 490d ldr r1, [pc, #52] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8806. 8003b86: 4313 orrs r3, r2
  8807. 8003b88: 604b str r3, [r1, #4]
  8808. }
  8809. /* Update the SystemCoreClock global variable */
  8810. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos];
  8811. 8003b8a: f000 f81f bl 8003bcc <HAL_RCC_GetSysClockFreq>
  8812. 8003b8e: 4601 mov r1, r0
  8813. 8003b90: 4b0a ldr r3, [pc, #40] ; (8003bbc <HAL_RCC_ClockConfig+0x160>)
  8814. 8003b92: 685b ldr r3, [r3, #4]
  8815. 8003b94: 091b lsrs r3, r3, #4
  8816. 8003b96: f003 030f and.w r3, r3, #15
  8817. 8003b9a: 4a09 ldr r2, [pc, #36] ; (8003bc0 <HAL_RCC_ClockConfig+0x164>)
  8818. 8003b9c: 5cd3 ldrb r3, [r2, r3]
  8819. 8003b9e: fa21 f303 lsr.w r3, r1, r3
  8820. 8003ba2: 4a08 ldr r2, [pc, #32] ; (8003bc4 <HAL_RCC_ClockConfig+0x168>)
  8821. 8003ba4: 6013 str r3, [r2, #0]
  8822. /* Configure the source of time base considering new system clocks settings*/
  8823. HAL_InitTick(uwTickPrio);
  8824. 8003ba6: 4b08 ldr r3, [pc, #32] ; (8003bc8 <HAL_RCC_ClockConfig+0x16c>)
  8825. 8003ba8: 681b ldr r3, [r3, #0]
  8826. 8003baa: 4618 mov r0, r3
  8827. 8003bac: f001 ff40 bl 8005a30 <HAL_InitTick>
  8828. return HAL_OK;
  8829. 8003bb0: 2300 movs r3, #0
  8830. }
  8831. 8003bb2: 4618 mov r0, r3
  8832. 8003bb4: 3710 adds r7, #16
  8833. 8003bb6: 46bd mov sp, r7
  8834. 8003bb8: bd80 pop {r7, pc}
  8835. 8003bba: bf00 nop
  8836. 8003bbc: 40021000 .word 0x40021000
  8837. 8003bc0: 08008990 .word 0x08008990
  8838. 8003bc4: 20000008 .word 0x20000008
  8839. 8003bc8: 20000000 .word 0x20000000
  8840. 08003bcc <HAL_RCC_GetSysClockFreq>:
  8841. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  8842. *
  8843. * @retval SYSCLK frequency
  8844. */
  8845. uint32_t HAL_RCC_GetSysClockFreq(void)
  8846. {
  8847. 8003bcc: b490 push {r4, r7}
  8848. 8003bce: b08e sub sp, #56 ; 0x38
  8849. 8003bd0: af00 add r7, sp, #0
  8850. #if defined(RCC_CFGR2_PREDIV1SRC)
  8851. const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13};
  8852. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  8853. #else
  8854. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  8855. 8003bd2: 4b2b ldr r3, [pc, #172] ; (8003c80 <HAL_RCC_GetSysClockFreq+0xb4>)
  8856. 8003bd4: f107 0414 add.w r4, r7, #20
  8857. 8003bd8: cb0f ldmia r3, {r0, r1, r2, r3}
  8858. 8003bda: e884 000f stmia.w r4, {r0, r1, r2, r3}
  8859. #if defined(RCC_CFGR2_PREDIV1)
  8860. const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
  8861. 8003bde: 4b29 ldr r3, [pc, #164] ; (8003c84 <HAL_RCC_GetSysClockFreq+0xb8>)
  8862. 8003be0: 1d3c adds r4, r7, #4
  8863. 8003be2: cb0f ldmia r3, {r0, r1, r2, r3}
  8864. 8003be4: e884 000f stmia.w r4, {r0, r1, r2, r3}
  8865. #else
  8866. const uint8_t aPredivFactorTable[2] = {1, 2};
  8867. #endif /*RCC_CFGR2_PREDIV1*/
  8868. #endif
  8869. uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U;
  8870. 8003be8: 2300 movs r3, #0
  8871. 8003bea: 62fb str r3, [r7, #44] ; 0x2c
  8872. 8003bec: 2300 movs r3, #0
  8873. 8003bee: 62bb str r3, [r7, #40] ; 0x28
  8874. 8003bf0: 2300 movs r3, #0
  8875. 8003bf2: 637b str r3, [r7, #52] ; 0x34
  8876. 8003bf4: 2300 movs r3, #0
  8877. 8003bf6: 627b str r3, [r7, #36] ; 0x24
  8878. uint32_t sysclockfreq = 0U;
  8879. 8003bf8: 2300 movs r3, #0
  8880. 8003bfa: 633b str r3, [r7, #48] ; 0x30
  8881. #if defined(RCC_CFGR2_PREDIV1SRC)
  8882. uint32_t prediv2 = 0U, pll2mul = 0U;
  8883. #endif /*RCC_CFGR2_PREDIV1SRC*/
  8884. tmpreg = RCC->CFGR;
  8885. 8003bfc: 4b22 ldr r3, [pc, #136] ; (8003c88 <HAL_RCC_GetSysClockFreq+0xbc>)
  8886. 8003bfe: 685b ldr r3, [r3, #4]
  8887. 8003c00: 62fb str r3, [r7, #44] ; 0x2c
  8888. /* Get SYSCLK source -------------------------------------------------------*/
  8889. switch (tmpreg & RCC_CFGR_SWS)
  8890. 8003c02: 6afb ldr r3, [r7, #44] ; 0x2c
  8891. 8003c04: f003 030c and.w r3, r3, #12
  8892. 8003c08: 2b04 cmp r3, #4
  8893. 8003c0a: d002 beq.n 8003c12 <HAL_RCC_GetSysClockFreq+0x46>
  8894. 8003c0c: 2b08 cmp r3, #8
  8895. 8003c0e: d003 beq.n 8003c18 <HAL_RCC_GetSysClockFreq+0x4c>
  8896. 8003c10: e02c b.n 8003c6c <HAL_RCC_GetSysClockFreq+0xa0>
  8897. {
  8898. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  8899. {
  8900. sysclockfreq = HSE_VALUE;
  8901. 8003c12: 4b1e ldr r3, [pc, #120] ; (8003c8c <HAL_RCC_GetSysClockFreq+0xc0>)
  8902. 8003c14: 633b str r3, [r7, #48] ; 0x30
  8903. break;
  8904. 8003c16: e02c b.n 8003c72 <HAL_RCC_GetSysClockFreq+0xa6>
  8905. }
  8906. case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
  8907. {
  8908. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos];
  8909. 8003c18: 6afb ldr r3, [r7, #44] ; 0x2c
  8910. 8003c1a: 0c9b lsrs r3, r3, #18
  8911. 8003c1c: f003 030f and.w r3, r3, #15
  8912. 8003c20: f107 0238 add.w r2, r7, #56 ; 0x38
  8913. 8003c24: 4413 add r3, r2
  8914. 8003c26: f813 3c24 ldrb.w r3, [r3, #-36]
  8915. 8003c2a: 627b str r3, [r7, #36] ; 0x24
  8916. if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2)
  8917. 8003c2c: 6afb ldr r3, [r7, #44] ; 0x2c
  8918. 8003c2e: f403 3380 and.w r3, r3, #65536 ; 0x10000
  8919. 8003c32: 2b00 cmp r3, #0
  8920. 8003c34: d012 beq.n 8003c5c <HAL_RCC_GetSysClockFreq+0x90>
  8921. {
  8922. #if defined(RCC_CFGR2_PREDIV1)
  8923. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos];
  8924. 8003c36: 4b14 ldr r3, [pc, #80] ; (8003c88 <HAL_RCC_GetSysClockFreq+0xbc>)
  8925. 8003c38: 6adb ldr r3, [r3, #44] ; 0x2c
  8926. 8003c3a: f003 030f and.w r3, r3, #15
  8927. 8003c3e: f107 0238 add.w r2, r7, #56 ; 0x38
  8928. 8003c42: 4413 add r3, r2
  8929. 8003c44: f813 3c34 ldrb.w r3, [r3, #-52]
  8930. 8003c48: 62bb str r3, [r7, #40] ; 0x28
  8931. {
  8932. pllclk = pllclk / 2;
  8933. }
  8934. #else
  8935. /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */
  8936. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  8937. 8003c4a: 6a7b ldr r3, [r7, #36] ; 0x24
  8938. 8003c4c: 4a0f ldr r2, [pc, #60] ; (8003c8c <HAL_RCC_GetSysClockFreq+0xc0>)
  8939. 8003c4e: fb02 f203 mul.w r2, r2, r3
  8940. 8003c52: 6abb ldr r3, [r7, #40] ; 0x28
  8941. 8003c54: fbb2 f3f3 udiv r3, r2, r3
  8942. 8003c58: 637b str r3, [r7, #52] ; 0x34
  8943. 8003c5a: e004 b.n 8003c66 <HAL_RCC_GetSysClockFreq+0x9a>
  8944. #endif /*RCC_CFGR2_PREDIV1SRC*/
  8945. }
  8946. else
  8947. {
  8948. /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */
  8949. pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul);
  8950. 8003c5c: 6a7b ldr r3, [r7, #36] ; 0x24
  8951. 8003c5e: 4a0c ldr r2, [pc, #48] ; (8003c90 <HAL_RCC_GetSysClockFreq+0xc4>)
  8952. 8003c60: fb02 f303 mul.w r3, r2, r3
  8953. 8003c64: 637b str r3, [r7, #52] ; 0x34
  8954. }
  8955. sysclockfreq = pllclk;
  8956. 8003c66: 6b7b ldr r3, [r7, #52] ; 0x34
  8957. 8003c68: 633b str r3, [r7, #48] ; 0x30
  8958. break;
  8959. 8003c6a: e002 b.n 8003c72 <HAL_RCC_GetSysClockFreq+0xa6>
  8960. }
  8961. case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
  8962. default: /* HSI used as system clock */
  8963. {
  8964. sysclockfreq = HSI_VALUE;
  8965. 8003c6c: 4b07 ldr r3, [pc, #28] ; (8003c8c <HAL_RCC_GetSysClockFreq+0xc0>)
  8966. 8003c6e: 633b str r3, [r7, #48] ; 0x30
  8967. break;
  8968. 8003c70: bf00 nop
  8969. }
  8970. }
  8971. return sysclockfreq;
  8972. 8003c72: 6b3b ldr r3, [r7, #48] ; 0x30
  8973. }
  8974. 8003c74: 4618 mov r0, r3
  8975. 8003c76: 3738 adds r7, #56 ; 0x38
  8976. 8003c78: 46bd mov sp, r7
  8977. 8003c7a: bc90 pop {r4, r7}
  8978. 8003c7c: 4770 bx lr
  8979. 8003c7e: bf00 nop
  8980. 8003c80: 080088e4 .word 0x080088e4
  8981. 8003c84: 080088f4 .word 0x080088f4
  8982. 8003c88: 40021000 .word 0x40021000
  8983. 8003c8c: 007a1200 .word 0x007a1200
  8984. 8003c90: 003d0900 .word 0x003d0900
  8985. 08003c94 <HAL_RCC_GetHCLKFreq>:
  8986. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
  8987. * and updated within this function
  8988. * @retval HCLK frequency
  8989. */
  8990. uint32_t HAL_RCC_GetHCLKFreq(void)
  8991. {
  8992. 8003c94: b480 push {r7}
  8993. 8003c96: af00 add r7, sp, #0
  8994. return SystemCoreClock;
  8995. 8003c98: 4b02 ldr r3, [pc, #8] ; (8003ca4 <HAL_RCC_GetHCLKFreq+0x10>)
  8996. 8003c9a: 681b ldr r3, [r3, #0]
  8997. }
  8998. 8003c9c: 4618 mov r0, r3
  8999. 8003c9e: 46bd mov sp, r7
  9000. 8003ca0: bc80 pop {r7}
  9001. 8003ca2: 4770 bx lr
  9002. 8003ca4: 20000008 .word 0x20000008
  9003. 08003ca8 <HAL_RCC_GetPCLK1Freq>:
  9004. * @note Each time PCLK1 changes, this function must be called to update the
  9005. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  9006. * @retval PCLK1 frequency
  9007. */
  9008. uint32_t HAL_RCC_GetPCLK1Freq(void)
  9009. {
  9010. 8003ca8: b580 push {r7, lr}
  9011. 8003caa: af00 add r7, sp, #0
  9012. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  9013. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  9014. 8003cac: f7ff fff2 bl 8003c94 <HAL_RCC_GetHCLKFreq>
  9015. 8003cb0: 4601 mov r1, r0
  9016. 8003cb2: 4b05 ldr r3, [pc, #20] ; (8003cc8 <HAL_RCC_GetPCLK1Freq+0x20>)
  9017. 8003cb4: 685b ldr r3, [r3, #4]
  9018. 8003cb6: 0a1b lsrs r3, r3, #8
  9019. 8003cb8: f003 0307 and.w r3, r3, #7
  9020. 8003cbc: 4a03 ldr r2, [pc, #12] ; (8003ccc <HAL_RCC_GetPCLK1Freq+0x24>)
  9021. 8003cbe: 5cd3 ldrb r3, [r2, r3]
  9022. 8003cc0: fa21 f303 lsr.w r3, r1, r3
  9023. }
  9024. 8003cc4: 4618 mov r0, r3
  9025. 8003cc6: bd80 pop {r7, pc}
  9026. 8003cc8: 40021000 .word 0x40021000
  9027. 8003ccc: 080089a0 .word 0x080089a0
  9028. 08003cd0 <HAL_RCC_GetPCLK2Freq>:
  9029. * @note Each time PCLK2 changes, this function must be called to update the
  9030. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  9031. * @retval PCLK2 frequency
  9032. */
  9033. uint32_t HAL_RCC_GetPCLK2Freq(void)
  9034. {
  9035. 8003cd0: b580 push {r7, lr}
  9036. 8003cd2: af00 add r7, sp, #0
  9037. /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
  9038. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  9039. 8003cd4: f7ff ffde bl 8003c94 <HAL_RCC_GetHCLKFreq>
  9040. 8003cd8: 4601 mov r1, r0
  9041. 8003cda: 4b05 ldr r3, [pc, #20] ; (8003cf0 <HAL_RCC_GetPCLK2Freq+0x20>)
  9042. 8003cdc: 685b ldr r3, [r3, #4]
  9043. 8003cde: 0adb lsrs r3, r3, #11
  9044. 8003ce0: f003 0307 and.w r3, r3, #7
  9045. 8003ce4: 4a03 ldr r2, [pc, #12] ; (8003cf4 <HAL_RCC_GetPCLK2Freq+0x24>)
  9046. 8003ce6: 5cd3 ldrb r3, [r2, r3]
  9047. 8003ce8: fa21 f303 lsr.w r3, r1, r3
  9048. }
  9049. 8003cec: 4618 mov r0, r3
  9050. 8003cee: bd80 pop {r7, pc}
  9051. 8003cf0: 40021000 .word 0x40021000
  9052. 8003cf4: 080089a0 .word 0x080089a0
  9053. 08003cf8 <HAL_RCC_GetClockConfig>:
  9054. * contains the current clock configuration.
  9055. * @param pFLatency Pointer on the Flash Latency.
  9056. * @retval None
  9057. */
  9058. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  9059. {
  9060. 8003cf8: b480 push {r7}
  9061. 8003cfa: b083 sub sp, #12
  9062. 8003cfc: af00 add r7, sp, #0
  9063. 8003cfe: 6078 str r0, [r7, #4]
  9064. 8003d00: 6039 str r1, [r7, #0]
  9065. /* Check the parameters */
  9066. assert_param(RCC_ClkInitStruct != NULL);
  9067. assert_param(pFLatency != NULL);
  9068. /* Set all possible values for the Clock type parameter --------------------*/
  9069. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
  9070. 8003d02: 687b ldr r3, [r7, #4]
  9071. 8003d04: 220f movs r2, #15
  9072. 8003d06: 601a str r2, [r3, #0]
  9073. /* Get the SYSCLK configuration --------------------------------------------*/
  9074. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  9075. 8003d08: 4b10 ldr r3, [pc, #64] ; (8003d4c <HAL_RCC_GetClockConfig+0x54>)
  9076. 8003d0a: 685b ldr r3, [r3, #4]
  9077. 8003d0c: f003 0203 and.w r2, r3, #3
  9078. 8003d10: 687b ldr r3, [r7, #4]
  9079. 8003d12: 605a str r2, [r3, #4]
  9080. /* Get the HCLK configuration ----------------------------------------------*/
  9081. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
  9082. 8003d14: 4b0d ldr r3, [pc, #52] ; (8003d4c <HAL_RCC_GetClockConfig+0x54>)
  9083. 8003d16: 685b ldr r3, [r3, #4]
  9084. 8003d18: f003 02f0 and.w r2, r3, #240 ; 0xf0
  9085. 8003d1c: 687b ldr r3, [r7, #4]
  9086. 8003d1e: 609a str r2, [r3, #8]
  9087. /* Get the APB1 configuration ----------------------------------------------*/
  9088. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
  9089. 8003d20: 4b0a ldr r3, [pc, #40] ; (8003d4c <HAL_RCC_GetClockConfig+0x54>)
  9090. 8003d22: 685b ldr r3, [r3, #4]
  9091. 8003d24: f403 62e0 and.w r2, r3, #1792 ; 0x700
  9092. 8003d28: 687b ldr r3, [r7, #4]
  9093. 8003d2a: 60da str r2, [r3, #12]
  9094. /* Get the APB2 configuration ----------------------------------------------*/
  9095. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3);
  9096. 8003d2c: 4b07 ldr r3, [pc, #28] ; (8003d4c <HAL_RCC_GetClockConfig+0x54>)
  9097. 8003d2e: 685b ldr r3, [r3, #4]
  9098. 8003d30: 08db lsrs r3, r3, #3
  9099. 8003d32: f403 62e0 and.w r2, r3, #1792 ; 0x700
  9100. 8003d36: 687b ldr r3, [r7, #4]
  9101. 8003d38: 611a str r2, [r3, #16]
  9102. #if defined(FLASH_ACR_LATENCY)
  9103. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  9104. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  9105. #else
  9106. /* For VALUE lines devices, only LATENCY_0 can be set*/
  9107. *pFLatency = (uint32_t)FLASH_LATENCY_0;
  9108. 8003d3a: 683b ldr r3, [r7, #0]
  9109. 8003d3c: 2200 movs r2, #0
  9110. 8003d3e: 601a str r2, [r3, #0]
  9111. #endif
  9112. }
  9113. 8003d40: bf00 nop
  9114. 8003d42: 370c adds r7, #12
  9115. 8003d44: 46bd mov sp, r7
  9116. 8003d46: bc80 pop {r7}
  9117. 8003d48: 4770 bx lr
  9118. 8003d4a: bf00 nop
  9119. 8003d4c: 40021000 .word 0x40021000
  9120. 08003d50 <RCC_Delay>:
  9121. * @brief This function provides delay (in milliseconds) based on CPU cycles method.
  9122. * @param mdelay: specifies the delay time length, in milliseconds.
  9123. * @retval None
  9124. */
  9125. static void RCC_Delay(uint32_t mdelay)
  9126. {
  9127. 8003d50: b480 push {r7}
  9128. 8003d52: b085 sub sp, #20
  9129. 8003d54: af00 add r7, sp, #0
  9130. 8003d56: 6078 str r0, [r7, #4]
  9131. __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U);
  9132. 8003d58: 4b0a ldr r3, [pc, #40] ; (8003d84 <RCC_Delay+0x34>)
  9133. 8003d5a: 681b ldr r3, [r3, #0]
  9134. 8003d5c: 4a0a ldr r2, [pc, #40] ; (8003d88 <RCC_Delay+0x38>)
  9135. 8003d5e: fba2 2303 umull r2, r3, r2, r3
  9136. 8003d62: 0a5b lsrs r3, r3, #9
  9137. 8003d64: 687a ldr r2, [r7, #4]
  9138. 8003d66: fb02 f303 mul.w r3, r2, r3
  9139. 8003d6a: 60fb str r3, [r7, #12]
  9140. do
  9141. {
  9142. __NOP();
  9143. 8003d6c: bf00 nop
  9144. }
  9145. while (Delay --);
  9146. 8003d6e: 68fb ldr r3, [r7, #12]
  9147. 8003d70: 1e5a subs r2, r3, #1
  9148. 8003d72: 60fa str r2, [r7, #12]
  9149. 8003d74: 2b00 cmp r3, #0
  9150. 8003d76: d1f9 bne.n 8003d6c <RCC_Delay+0x1c>
  9151. }
  9152. 8003d78: bf00 nop
  9153. 8003d7a: 3714 adds r7, #20
  9154. 8003d7c: 46bd mov sp, r7
  9155. 8003d7e: bc80 pop {r7}
  9156. 8003d80: 4770 bx lr
  9157. 8003d82: bf00 nop
  9158. 8003d84: 20000008 .word 0x20000008
  9159. 8003d88: 10624dd3 .word 0x10624dd3
  9160. 08003d8c <HAL_RCCEx_PeriphCLKConfig>:
  9161. * manually disable it.
  9162. *
  9163. * @retval HAL status
  9164. */
  9165. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  9166. {
  9167. 8003d8c: b580 push {r7, lr}
  9168. 8003d8e: b086 sub sp, #24
  9169. 8003d90: af00 add r7, sp, #0
  9170. 8003d92: 6078 str r0, [r7, #4]
  9171. uint32_t tickstart = 0U, temp_reg = 0U;
  9172. 8003d94: 2300 movs r3, #0
  9173. 8003d96: 613b str r3, [r7, #16]
  9174. 8003d98: 2300 movs r3, #0
  9175. 8003d9a: 60fb str r3, [r7, #12]
  9176. /* Check the parameters */
  9177. assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection));
  9178. /*------------------------------- RTC/LCD Configuration ------------------------*/
  9179. if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC))
  9180. 8003d9c: 687b ldr r3, [r7, #4]
  9181. 8003d9e: 681b ldr r3, [r3, #0]
  9182. 8003da0: f003 0301 and.w r3, r3, #1
  9183. 8003da4: 2b00 cmp r3, #0
  9184. 8003da6: d07d beq.n 8003ea4 <HAL_RCCEx_PeriphCLKConfig+0x118>
  9185. {
  9186. /* check for RTC Parameters used to output RTCCLK */
  9187. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  9188. FlagStatus pwrclkchanged = RESET;
  9189. 8003da8: 2300 movs r3, #0
  9190. 8003daa: 75fb strb r3, [r7, #23]
  9191. /* As soon as function is called to change RTC clock source, activation of the
  9192. power domain is done. */
  9193. /* Requires to enable write access to Backup Domain of necessary */
  9194. if (__HAL_RCC_PWR_IS_CLK_DISABLED())
  9195. 8003dac: 4b47 ldr r3, [pc, #284] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9196. 8003dae: 69db ldr r3, [r3, #28]
  9197. 8003db0: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  9198. 8003db4: 2b00 cmp r3, #0
  9199. 8003db6: d10d bne.n 8003dd4 <HAL_RCCEx_PeriphCLKConfig+0x48>
  9200. {
  9201. __HAL_RCC_PWR_CLK_ENABLE();
  9202. 8003db8: 4b44 ldr r3, [pc, #272] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9203. 8003dba: 69db ldr r3, [r3, #28]
  9204. 8003dbc: 4a43 ldr r2, [pc, #268] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9205. 8003dbe: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  9206. 8003dc2: 61d3 str r3, [r2, #28]
  9207. 8003dc4: 4b41 ldr r3, [pc, #260] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9208. 8003dc6: 69db ldr r3, [r3, #28]
  9209. 8003dc8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  9210. 8003dcc: 60bb str r3, [r7, #8]
  9211. 8003dce: 68bb ldr r3, [r7, #8]
  9212. pwrclkchanged = SET;
  9213. 8003dd0: 2301 movs r3, #1
  9214. 8003dd2: 75fb strb r3, [r7, #23]
  9215. }
  9216. if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  9217. 8003dd4: 4b3e ldr r3, [pc, #248] ; (8003ed0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9218. 8003dd6: 681b ldr r3, [r3, #0]
  9219. 8003dd8: f403 7380 and.w r3, r3, #256 ; 0x100
  9220. 8003ddc: 2b00 cmp r3, #0
  9221. 8003dde: d118 bne.n 8003e12 <HAL_RCCEx_PeriphCLKConfig+0x86>
  9222. {
  9223. /* Enable write access to Backup domain */
  9224. SET_BIT(PWR->CR, PWR_CR_DBP);
  9225. 8003de0: 4b3b ldr r3, [pc, #236] ; (8003ed0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9226. 8003de2: 681b ldr r3, [r3, #0]
  9227. 8003de4: 4a3a ldr r2, [pc, #232] ; (8003ed0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9228. 8003de6: f443 7380 orr.w r3, r3, #256 ; 0x100
  9229. 8003dea: 6013 str r3, [r2, #0]
  9230. /* Wait for Backup domain Write protection disable */
  9231. tickstart = HAL_GetTick();
  9232. 8003dec: f7fd ffc4 bl 8001d78 <HAL_GetTick>
  9233. 8003df0: 6138 str r0, [r7, #16]
  9234. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  9235. 8003df2: e008 b.n 8003e06 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  9236. {
  9237. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  9238. 8003df4: f7fd ffc0 bl 8001d78 <HAL_GetTick>
  9239. 8003df8: 4602 mov r2, r0
  9240. 8003dfa: 693b ldr r3, [r7, #16]
  9241. 8003dfc: 1ad3 subs r3, r2, r3
  9242. 8003dfe: 2b64 cmp r3, #100 ; 0x64
  9243. 8003e00: d901 bls.n 8003e06 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  9244. {
  9245. return HAL_TIMEOUT;
  9246. 8003e02: 2303 movs r3, #3
  9247. 8003e04: e05e b.n 8003ec4 <HAL_RCCEx_PeriphCLKConfig+0x138>
  9248. while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  9249. 8003e06: 4b32 ldr r3, [pc, #200] ; (8003ed0 <HAL_RCCEx_PeriphCLKConfig+0x144>)
  9250. 8003e08: 681b ldr r3, [r3, #0]
  9251. 8003e0a: f403 7380 and.w r3, r3, #256 ; 0x100
  9252. 8003e0e: 2b00 cmp r3, #0
  9253. 8003e10: d0f0 beq.n 8003df4 <HAL_RCCEx_PeriphCLKConfig+0x68>
  9254. }
  9255. }
  9256. }
  9257. /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */
  9258. temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL);
  9259. 8003e12: 4b2e ldr r3, [pc, #184] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9260. 8003e14: 6a1b ldr r3, [r3, #32]
  9261. 8003e16: f403 7340 and.w r3, r3, #768 ; 0x300
  9262. 8003e1a: 60fb str r3, [r7, #12]
  9263. if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
  9264. 8003e1c: 68fb ldr r3, [r7, #12]
  9265. 8003e1e: 2b00 cmp r3, #0
  9266. 8003e20: d02e beq.n 8003e80 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  9267. 8003e22: 687b ldr r3, [r7, #4]
  9268. 8003e24: 685b ldr r3, [r3, #4]
  9269. 8003e26: f403 7340 and.w r3, r3, #768 ; 0x300
  9270. 8003e2a: 68fa ldr r2, [r7, #12]
  9271. 8003e2c: 429a cmp r2, r3
  9272. 8003e2e: d027 beq.n 8003e80 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  9273. {
  9274. /* Store the content of BDCR register before the reset of Backup Domain */
  9275. temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  9276. 8003e30: 4b26 ldr r3, [pc, #152] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9277. 8003e32: 6a1b ldr r3, [r3, #32]
  9278. 8003e34: f423 7340 bic.w r3, r3, #768 ; 0x300
  9279. 8003e38: 60fb str r3, [r7, #12]
  9280. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  9281. __HAL_RCC_BACKUPRESET_FORCE();
  9282. 8003e3a: 4b26 ldr r3, [pc, #152] ; (8003ed4 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  9283. 8003e3c: 2201 movs r2, #1
  9284. 8003e3e: 601a str r2, [r3, #0]
  9285. __HAL_RCC_BACKUPRESET_RELEASE();
  9286. 8003e40: 4b24 ldr r3, [pc, #144] ; (8003ed4 <HAL_RCCEx_PeriphCLKConfig+0x148>)
  9287. 8003e42: 2200 movs r2, #0
  9288. 8003e44: 601a str r2, [r3, #0]
  9289. /* Restore the Content of BDCR register */
  9290. RCC->BDCR = temp_reg;
  9291. 8003e46: 4a21 ldr r2, [pc, #132] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9292. 8003e48: 68fb ldr r3, [r7, #12]
  9293. 8003e4a: 6213 str r3, [r2, #32]
  9294. /* Wait for LSERDY if LSE was enabled */
  9295. if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON))
  9296. 8003e4c: 68fb ldr r3, [r7, #12]
  9297. 8003e4e: f003 0301 and.w r3, r3, #1
  9298. 8003e52: 2b00 cmp r3, #0
  9299. 8003e54: d014 beq.n 8003e80 <HAL_RCCEx_PeriphCLKConfig+0xf4>
  9300. {
  9301. /* Get Start Tick */
  9302. tickstart = HAL_GetTick();
  9303. 8003e56: f7fd ff8f bl 8001d78 <HAL_GetTick>
  9304. 8003e5a: 6138 str r0, [r7, #16]
  9305. /* Wait till LSE is ready */
  9306. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  9307. 8003e5c: e00a b.n 8003e74 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  9308. {
  9309. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  9310. 8003e5e: f7fd ff8b bl 8001d78 <HAL_GetTick>
  9311. 8003e62: 4602 mov r2, r0
  9312. 8003e64: 693b ldr r3, [r7, #16]
  9313. 8003e66: 1ad3 subs r3, r2, r3
  9314. 8003e68: f241 3288 movw r2, #5000 ; 0x1388
  9315. 8003e6c: 4293 cmp r3, r2
  9316. 8003e6e: d901 bls.n 8003e74 <HAL_RCCEx_PeriphCLKConfig+0xe8>
  9317. {
  9318. return HAL_TIMEOUT;
  9319. 8003e70: 2303 movs r3, #3
  9320. 8003e72: e027 b.n 8003ec4 <HAL_RCCEx_PeriphCLKConfig+0x138>
  9321. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  9322. 8003e74: 4b15 ldr r3, [pc, #84] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9323. 8003e76: 6a1b ldr r3, [r3, #32]
  9324. 8003e78: f003 0302 and.w r3, r3, #2
  9325. 8003e7c: 2b00 cmp r3, #0
  9326. 8003e7e: d0ee beq.n 8003e5e <HAL_RCCEx_PeriphCLKConfig+0xd2>
  9327. }
  9328. }
  9329. }
  9330. }
  9331. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  9332. 8003e80: 4b12 ldr r3, [pc, #72] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9333. 8003e82: 6a1b ldr r3, [r3, #32]
  9334. 8003e84: f423 7240 bic.w r2, r3, #768 ; 0x300
  9335. 8003e88: 687b ldr r3, [r7, #4]
  9336. 8003e8a: 685b ldr r3, [r3, #4]
  9337. 8003e8c: 490f ldr r1, [pc, #60] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9338. 8003e8e: 4313 orrs r3, r2
  9339. 8003e90: 620b str r3, [r1, #32]
  9340. /* Require to disable power clock if necessary */
  9341. if (pwrclkchanged == SET)
  9342. 8003e92: 7dfb ldrb r3, [r7, #23]
  9343. 8003e94: 2b01 cmp r3, #1
  9344. 8003e96: d105 bne.n 8003ea4 <HAL_RCCEx_PeriphCLKConfig+0x118>
  9345. {
  9346. __HAL_RCC_PWR_CLK_DISABLE();
  9347. 8003e98: 4b0c ldr r3, [pc, #48] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9348. 8003e9a: 69db ldr r3, [r3, #28]
  9349. 8003e9c: 4a0b ldr r2, [pc, #44] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9350. 8003e9e: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  9351. 8003ea2: 61d3 str r3, [r2, #28]
  9352. }
  9353. }
  9354. /*------------------------------ ADC clock Configuration ------------------*/
  9355. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  9356. 8003ea4: 687b ldr r3, [r7, #4]
  9357. 8003ea6: 681b ldr r3, [r3, #0]
  9358. 8003ea8: f003 0302 and.w r3, r3, #2
  9359. 8003eac: 2b00 cmp r3, #0
  9360. 8003eae: d008 beq.n 8003ec2 <HAL_RCCEx_PeriphCLKConfig+0x136>
  9361. {
  9362. /* Check the parameters */
  9363. assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection));
  9364. /* Configure the ADC clock source */
  9365. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  9366. 8003eb0: 4b06 ldr r3, [pc, #24] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9367. 8003eb2: 685b ldr r3, [r3, #4]
  9368. 8003eb4: f423 4240 bic.w r2, r3, #49152 ; 0xc000
  9369. 8003eb8: 687b ldr r3, [r7, #4]
  9370. 8003eba: 689b ldr r3, [r3, #8]
  9371. 8003ebc: 4903 ldr r1, [pc, #12] ; (8003ecc <HAL_RCCEx_PeriphCLKConfig+0x140>)
  9372. 8003ebe: 4313 orrs r3, r2
  9373. 8003ec0: 604b str r3, [r1, #4]
  9374. /* Configure the USB clock source */
  9375. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  9376. }
  9377. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */
  9378. return HAL_OK;
  9379. 8003ec2: 2300 movs r3, #0
  9380. }
  9381. 8003ec4: 4618 mov r0, r3
  9382. 8003ec6: 3718 adds r7, #24
  9383. 8003ec8: 46bd mov sp, r7
  9384. 8003eca: bd80 pop {r7, pc}
  9385. 8003ecc: 40021000 .word 0x40021000
  9386. 8003ed0: 40007000 .word 0x40007000
  9387. 8003ed4: 42420440 .word 0x42420440
  9388. 08003ed8 <HAL_RCCEx_GetPeriphCLKFreq>:
  9389. * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock
  9390. @endif
  9391. * @retval Frequency in Hz (0: means that no available frequency for the peripheral)
  9392. */
  9393. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk)
  9394. {
  9395. 8003ed8: b580 push {r7, lr}
  9396. 8003eda: b084 sub sp, #16
  9397. 8003edc: af00 add r7, sp, #0
  9398. 8003ede: 6078 str r0, [r7, #4]
  9399. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  9400. const uint8_t aPredivFactorTable[2] = {1, 2};
  9401. uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U;
  9402. #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG */
  9403. uint32_t temp_reg = 0U, frequency = 0U;
  9404. 8003ee0: 2300 movs r3, #0
  9405. 8003ee2: 60bb str r3, [r7, #8]
  9406. 8003ee4: 2300 movs r3, #0
  9407. 8003ee6: 60fb str r3, [r7, #12]
  9408. /* Check the parameters */
  9409. assert_param(IS_RCC_PERIPHCLOCK(PeriphClk));
  9410. switch (PeriphClk)
  9411. 8003ee8: 687b ldr r3, [r7, #4]
  9412. 8003eea: 2b01 cmp r3, #1
  9413. 8003eec: d002 beq.n 8003ef4 <HAL_RCCEx_GetPeriphCLKFreq+0x1c>
  9414. 8003eee: 2b02 cmp r3, #2
  9415. 8003ef0: d033 beq.n 8003f5a <HAL_RCCEx_GetPeriphCLKFreq+0x82>
  9416. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  9417. break;
  9418. }
  9419. default:
  9420. {
  9421. break;
  9422. 8003ef2: e041 b.n 8003f78 <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  9423. temp_reg = RCC->BDCR;
  9424. 8003ef4: 4b23 ldr r3, [pc, #140] ; (8003f84 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9425. 8003ef6: 6a1b ldr r3, [r3, #32]
  9426. 8003ef8: 60bb str r3, [r7, #8]
  9427. if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSERDY)))
  9428. 8003efa: 68bb ldr r3, [r7, #8]
  9429. 8003efc: f403 7340 and.w r3, r3, #768 ; 0x300
  9430. 8003f00: f5b3 7f80 cmp.w r3, #256 ; 0x100
  9431. 8003f04: d108 bne.n 8003f18 <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  9432. 8003f06: 68bb ldr r3, [r7, #8]
  9433. 8003f08: f003 0302 and.w r3, r3, #2
  9434. 8003f0c: 2b00 cmp r3, #0
  9435. 8003f0e: d003 beq.n 8003f18 <HAL_RCCEx_GetPeriphCLKFreq+0x40>
  9436. frequency = LSE_VALUE;
  9437. 8003f10: f44f 4300 mov.w r3, #32768 ; 0x8000
  9438. 8003f14: 60fb str r3, [r7, #12]
  9439. 8003f16: e01f b.n 8003f58 <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  9440. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY)))
  9441. 8003f18: 68bb ldr r3, [r7, #8]
  9442. 8003f1a: f403 7340 and.w r3, r3, #768 ; 0x300
  9443. 8003f1e: f5b3 7f00 cmp.w r3, #512 ; 0x200
  9444. 8003f22: d109 bne.n 8003f38 <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  9445. 8003f24: 4b17 ldr r3, [pc, #92] ; (8003f84 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9446. 8003f26: 6a5b ldr r3, [r3, #36] ; 0x24
  9447. 8003f28: f003 0302 and.w r3, r3, #2
  9448. 8003f2c: 2b00 cmp r3, #0
  9449. 8003f2e: d003 beq.n 8003f38 <HAL_RCCEx_GetPeriphCLKFreq+0x60>
  9450. frequency = LSI_VALUE;
  9451. 8003f30: f649 4340 movw r3, #40000 ; 0x9c40
  9452. 8003f34: 60fb str r3, [r7, #12]
  9453. 8003f36: e00f b.n 8003f58 <HAL_RCCEx_GetPeriphCLKFreq+0x80>
  9454. else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)))
  9455. 8003f38: 68bb ldr r3, [r7, #8]
  9456. 8003f3a: f403 7340 and.w r3, r3, #768 ; 0x300
  9457. 8003f3e: f5b3 7f40 cmp.w r3, #768 ; 0x300
  9458. 8003f42: d118 bne.n 8003f76 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9459. 8003f44: 4b0f ldr r3, [pc, #60] ; (8003f84 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9460. 8003f46: 681b ldr r3, [r3, #0]
  9461. 8003f48: f403 3300 and.w r3, r3, #131072 ; 0x20000
  9462. 8003f4c: 2b00 cmp r3, #0
  9463. 8003f4e: d012 beq.n 8003f76 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9464. frequency = HSE_VALUE / 128U;
  9465. 8003f50: f24f 4324 movw r3, #62500 ; 0xf424
  9466. 8003f54: 60fb str r3, [r7, #12]
  9467. break;
  9468. 8003f56: e00e b.n 8003f76 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9469. 8003f58: e00d b.n 8003f76 <HAL_RCCEx_GetPeriphCLKFreq+0x9e>
  9470. frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2);
  9471. 8003f5a: f7ff feb9 bl 8003cd0 <HAL_RCC_GetPCLK2Freq>
  9472. 8003f5e: 4602 mov r2, r0
  9473. 8003f60: 4b08 ldr r3, [pc, #32] ; (8003f84 <HAL_RCCEx_GetPeriphCLKFreq+0xac>)
  9474. 8003f62: 685b ldr r3, [r3, #4]
  9475. 8003f64: 0b9b lsrs r3, r3, #14
  9476. 8003f66: f003 0303 and.w r3, r3, #3
  9477. 8003f6a: 3301 adds r3, #1
  9478. 8003f6c: 005b lsls r3, r3, #1
  9479. 8003f6e: fbb2 f3f3 udiv r3, r2, r3
  9480. 8003f72: 60fb str r3, [r7, #12]
  9481. break;
  9482. 8003f74: e000 b.n 8003f78 <HAL_RCCEx_GetPeriphCLKFreq+0xa0>
  9483. break;
  9484. 8003f76: bf00 nop
  9485. }
  9486. }
  9487. return (frequency);
  9488. 8003f78: 68fb ldr r3, [r7, #12]
  9489. }
  9490. 8003f7a: 4618 mov r0, r3
  9491. 8003f7c: 3710 adds r7, #16
  9492. 8003f7e: 46bd mov sp, r7
  9493. 8003f80: bd80 pop {r7, pc}
  9494. 8003f82: bf00 nop
  9495. 8003f84: 40021000 .word 0x40021000
  9496. 08003f88 <HAL_TIM_Base_Init>:
  9497. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  9498. * @param htim TIM Base handle
  9499. * @retval HAL status
  9500. */
  9501. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  9502. {
  9503. 8003f88: b580 push {r7, lr}
  9504. 8003f8a: b082 sub sp, #8
  9505. 8003f8c: af00 add r7, sp, #0
  9506. 8003f8e: 6078 str r0, [r7, #4]
  9507. /* Check the TIM handle allocation */
  9508. if (htim == NULL)
  9509. 8003f90: 687b ldr r3, [r7, #4]
  9510. 8003f92: 2b00 cmp r3, #0
  9511. 8003f94: d101 bne.n 8003f9a <HAL_TIM_Base_Init+0x12>
  9512. {
  9513. return HAL_ERROR;
  9514. 8003f96: 2301 movs r3, #1
  9515. 8003f98: e01d b.n 8003fd6 <HAL_TIM_Base_Init+0x4e>
  9516. assert_param(IS_TIM_INSTANCE(htim->Instance));
  9517. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  9518. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  9519. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  9520. if (htim->State == HAL_TIM_STATE_RESET)
  9521. 8003f9a: 687b ldr r3, [r7, #4]
  9522. 8003f9c: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  9523. 8003fa0: b2db uxtb r3, r3
  9524. 8003fa2: 2b00 cmp r3, #0
  9525. 8003fa4: d106 bne.n 8003fb4 <HAL_TIM_Base_Init+0x2c>
  9526. {
  9527. /* Allocate lock resource and initialize it */
  9528. htim->Lock = HAL_UNLOCKED;
  9529. 8003fa6: 687b ldr r3, [r7, #4]
  9530. 8003fa8: 2200 movs r2, #0
  9531. 8003faa: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9532. }
  9533. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  9534. htim->Base_MspInitCallback(htim);
  9535. #else
  9536. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  9537. HAL_TIM_Base_MspInit(htim);
  9538. 8003fae: 6878 ldr r0, [r7, #4]
  9539. 8003fb0: f001 fc44 bl 800583c <HAL_TIM_Base_MspInit>
  9540. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9541. }
  9542. /* Set the TIM state */
  9543. htim->State = HAL_TIM_STATE_BUSY;
  9544. 8003fb4: 687b ldr r3, [r7, #4]
  9545. 8003fb6: 2202 movs r2, #2
  9546. 8003fb8: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9547. /* Set the Time Base configuration */
  9548. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  9549. 8003fbc: 687b ldr r3, [r7, #4]
  9550. 8003fbe: 681a ldr r2, [r3, #0]
  9551. 8003fc0: 687b ldr r3, [r7, #4]
  9552. 8003fc2: 3304 adds r3, #4
  9553. 8003fc4: 4619 mov r1, r3
  9554. 8003fc6: 4610 mov r0, r2
  9555. 8003fc8: f000 f958 bl 800427c <TIM_Base_SetConfig>
  9556. /* Initialize the TIM state*/
  9557. htim->State = HAL_TIM_STATE_READY;
  9558. 8003fcc: 687b ldr r3, [r7, #4]
  9559. 8003fce: 2201 movs r2, #1
  9560. 8003fd0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9561. return HAL_OK;
  9562. 8003fd4: 2300 movs r3, #0
  9563. }
  9564. 8003fd6: 4618 mov r0, r3
  9565. 8003fd8: 3708 adds r7, #8
  9566. 8003fda: 46bd mov sp, r7
  9567. 8003fdc: bd80 pop {r7, pc}
  9568. 08003fde <HAL_TIM_Base_Start_IT>:
  9569. * @brief Starts the TIM Base generation in interrupt mode.
  9570. * @param htim TIM Base handle
  9571. * @retval HAL status
  9572. */
  9573. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  9574. {
  9575. 8003fde: b480 push {r7}
  9576. 8003fe0: b085 sub sp, #20
  9577. 8003fe2: af00 add r7, sp, #0
  9578. 8003fe4: 6078 str r0, [r7, #4]
  9579. /* Check the parameters */
  9580. assert_param(IS_TIM_INSTANCE(htim->Instance));
  9581. /* Enable the TIM Update interrupt */
  9582. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  9583. 8003fe6: 687b ldr r3, [r7, #4]
  9584. 8003fe8: 681b ldr r3, [r3, #0]
  9585. 8003fea: 68da ldr r2, [r3, #12]
  9586. 8003fec: 687b ldr r3, [r7, #4]
  9587. 8003fee: 681b ldr r3, [r3, #0]
  9588. 8003ff0: f042 0201 orr.w r2, r2, #1
  9589. 8003ff4: 60da str r2, [r3, #12]
  9590. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  9591. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  9592. 8003ff6: 687b ldr r3, [r7, #4]
  9593. 8003ff8: 681b ldr r3, [r3, #0]
  9594. 8003ffa: 689b ldr r3, [r3, #8]
  9595. 8003ffc: f003 0307 and.w r3, r3, #7
  9596. 8004000: 60fb str r3, [r7, #12]
  9597. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  9598. 8004002: 68fb ldr r3, [r7, #12]
  9599. 8004004: 2b06 cmp r3, #6
  9600. 8004006: d007 beq.n 8004018 <HAL_TIM_Base_Start_IT+0x3a>
  9601. {
  9602. __HAL_TIM_ENABLE(htim);
  9603. 8004008: 687b ldr r3, [r7, #4]
  9604. 800400a: 681b ldr r3, [r3, #0]
  9605. 800400c: 681a ldr r2, [r3, #0]
  9606. 800400e: 687b ldr r3, [r7, #4]
  9607. 8004010: 681b ldr r3, [r3, #0]
  9608. 8004012: f042 0201 orr.w r2, r2, #1
  9609. 8004016: 601a str r2, [r3, #0]
  9610. }
  9611. /* Return function status */
  9612. return HAL_OK;
  9613. 8004018: 2300 movs r3, #0
  9614. }
  9615. 800401a: 4618 mov r0, r3
  9616. 800401c: 3714 adds r7, #20
  9617. 800401e: 46bd mov sp, r7
  9618. 8004020: bc80 pop {r7}
  9619. 8004022: 4770 bx lr
  9620. 08004024 <HAL_TIM_IRQHandler>:
  9621. * @brief This function handles TIM interrupts requests.
  9622. * @param htim TIM handle
  9623. * @retval None
  9624. */
  9625. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  9626. {
  9627. 8004024: b580 push {r7, lr}
  9628. 8004026: b082 sub sp, #8
  9629. 8004028: af00 add r7, sp, #0
  9630. 800402a: 6078 str r0, [r7, #4]
  9631. /* Capture compare 1 event */
  9632. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  9633. 800402c: 687b ldr r3, [r7, #4]
  9634. 800402e: 681b ldr r3, [r3, #0]
  9635. 8004030: 691b ldr r3, [r3, #16]
  9636. 8004032: f003 0302 and.w r3, r3, #2
  9637. 8004036: 2b02 cmp r3, #2
  9638. 8004038: d122 bne.n 8004080 <HAL_TIM_IRQHandler+0x5c>
  9639. {
  9640. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
  9641. 800403a: 687b ldr r3, [r7, #4]
  9642. 800403c: 681b ldr r3, [r3, #0]
  9643. 800403e: 68db ldr r3, [r3, #12]
  9644. 8004040: f003 0302 and.w r3, r3, #2
  9645. 8004044: 2b02 cmp r3, #2
  9646. 8004046: d11b bne.n 8004080 <HAL_TIM_IRQHandler+0x5c>
  9647. {
  9648. {
  9649. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  9650. 8004048: 687b ldr r3, [r7, #4]
  9651. 800404a: 681b ldr r3, [r3, #0]
  9652. 800404c: f06f 0202 mvn.w r2, #2
  9653. 8004050: 611a str r2, [r3, #16]
  9654. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  9655. 8004052: 687b ldr r3, [r7, #4]
  9656. 8004054: 2201 movs r2, #1
  9657. 8004056: 771a strb r2, [r3, #28]
  9658. /* Input capture event */
  9659. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  9660. 8004058: 687b ldr r3, [r7, #4]
  9661. 800405a: 681b ldr r3, [r3, #0]
  9662. 800405c: 699b ldr r3, [r3, #24]
  9663. 800405e: f003 0303 and.w r3, r3, #3
  9664. 8004062: 2b00 cmp r3, #0
  9665. 8004064: d003 beq.n 800406e <HAL_TIM_IRQHandler+0x4a>
  9666. {
  9667. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9668. htim->IC_CaptureCallback(htim);
  9669. #else
  9670. HAL_TIM_IC_CaptureCallback(htim);
  9671. 8004066: 6878 ldr r0, [r7, #4]
  9672. 8004068: f000 f8ed bl 8004246 <HAL_TIM_IC_CaptureCallback>
  9673. 800406c: e005 b.n 800407a <HAL_TIM_IRQHandler+0x56>
  9674. {
  9675. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9676. htim->OC_DelayElapsedCallback(htim);
  9677. htim->PWM_PulseFinishedCallback(htim);
  9678. #else
  9679. HAL_TIM_OC_DelayElapsedCallback(htim);
  9680. 800406e: 6878 ldr r0, [r7, #4]
  9681. 8004070: f000 f8e0 bl 8004234 <HAL_TIM_OC_DelayElapsedCallback>
  9682. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9683. 8004074: 6878 ldr r0, [r7, #4]
  9684. 8004076: f000 f8ef bl 8004258 <HAL_TIM_PWM_PulseFinishedCallback>
  9685. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9686. }
  9687. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9688. 800407a: 687b ldr r3, [r7, #4]
  9689. 800407c: 2200 movs r2, #0
  9690. 800407e: 771a strb r2, [r3, #28]
  9691. }
  9692. }
  9693. }
  9694. /* Capture compare 2 event */
  9695. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  9696. 8004080: 687b ldr r3, [r7, #4]
  9697. 8004082: 681b ldr r3, [r3, #0]
  9698. 8004084: 691b ldr r3, [r3, #16]
  9699. 8004086: f003 0304 and.w r3, r3, #4
  9700. 800408a: 2b04 cmp r3, #4
  9701. 800408c: d122 bne.n 80040d4 <HAL_TIM_IRQHandler+0xb0>
  9702. {
  9703. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
  9704. 800408e: 687b ldr r3, [r7, #4]
  9705. 8004090: 681b ldr r3, [r3, #0]
  9706. 8004092: 68db ldr r3, [r3, #12]
  9707. 8004094: f003 0304 and.w r3, r3, #4
  9708. 8004098: 2b04 cmp r3, #4
  9709. 800409a: d11b bne.n 80040d4 <HAL_TIM_IRQHandler+0xb0>
  9710. {
  9711. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  9712. 800409c: 687b ldr r3, [r7, #4]
  9713. 800409e: 681b ldr r3, [r3, #0]
  9714. 80040a0: f06f 0204 mvn.w r2, #4
  9715. 80040a4: 611a str r2, [r3, #16]
  9716. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  9717. 80040a6: 687b ldr r3, [r7, #4]
  9718. 80040a8: 2202 movs r2, #2
  9719. 80040aa: 771a strb r2, [r3, #28]
  9720. /* Input capture event */
  9721. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  9722. 80040ac: 687b ldr r3, [r7, #4]
  9723. 80040ae: 681b ldr r3, [r3, #0]
  9724. 80040b0: 699b ldr r3, [r3, #24]
  9725. 80040b2: f403 7340 and.w r3, r3, #768 ; 0x300
  9726. 80040b6: 2b00 cmp r3, #0
  9727. 80040b8: d003 beq.n 80040c2 <HAL_TIM_IRQHandler+0x9e>
  9728. {
  9729. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9730. htim->IC_CaptureCallback(htim);
  9731. #else
  9732. HAL_TIM_IC_CaptureCallback(htim);
  9733. 80040ba: 6878 ldr r0, [r7, #4]
  9734. 80040bc: f000 f8c3 bl 8004246 <HAL_TIM_IC_CaptureCallback>
  9735. 80040c0: e005 b.n 80040ce <HAL_TIM_IRQHandler+0xaa>
  9736. {
  9737. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9738. htim->OC_DelayElapsedCallback(htim);
  9739. htim->PWM_PulseFinishedCallback(htim);
  9740. #else
  9741. HAL_TIM_OC_DelayElapsedCallback(htim);
  9742. 80040c2: 6878 ldr r0, [r7, #4]
  9743. 80040c4: f000 f8b6 bl 8004234 <HAL_TIM_OC_DelayElapsedCallback>
  9744. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9745. 80040c8: 6878 ldr r0, [r7, #4]
  9746. 80040ca: f000 f8c5 bl 8004258 <HAL_TIM_PWM_PulseFinishedCallback>
  9747. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9748. }
  9749. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9750. 80040ce: 687b ldr r3, [r7, #4]
  9751. 80040d0: 2200 movs r2, #0
  9752. 80040d2: 771a strb r2, [r3, #28]
  9753. }
  9754. }
  9755. /* Capture compare 3 event */
  9756. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  9757. 80040d4: 687b ldr r3, [r7, #4]
  9758. 80040d6: 681b ldr r3, [r3, #0]
  9759. 80040d8: 691b ldr r3, [r3, #16]
  9760. 80040da: f003 0308 and.w r3, r3, #8
  9761. 80040de: 2b08 cmp r3, #8
  9762. 80040e0: d122 bne.n 8004128 <HAL_TIM_IRQHandler+0x104>
  9763. {
  9764. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
  9765. 80040e2: 687b ldr r3, [r7, #4]
  9766. 80040e4: 681b ldr r3, [r3, #0]
  9767. 80040e6: 68db ldr r3, [r3, #12]
  9768. 80040e8: f003 0308 and.w r3, r3, #8
  9769. 80040ec: 2b08 cmp r3, #8
  9770. 80040ee: d11b bne.n 8004128 <HAL_TIM_IRQHandler+0x104>
  9771. {
  9772. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  9773. 80040f0: 687b ldr r3, [r7, #4]
  9774. 80040f2: 681b ldr r3, [r3, #0]
  9775. 80040f4: f06f 0208 mvn.w r2, #8
  9776. 80040f8: 611a str r2, [r3, #16]
  9777. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  9778. 80040fa: 687b ldr r3, [r7, #4]
  9779. 80040fc: 2204 movs r2, #4
  9780. 80040fe: 771a strb r2, [r3, #28]
  9781. /* Input capture event */
  9782. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  9783. 8004100: 687b ldr r3, [r7, #4]
  9784. 8004102: 681b ldr r3, [r3, #0]
  9785. 8004104: 69db ldr r3, [r3, #28]
  9786. 8004106: f003 0303 and.w r3, r3, #3
  9787. 800410a: 2b00 cmp r3, #0
  9788. 800410c: d003 beq.n 8004116 <HAL_TIM_IRQHandler+0xf2>
  9789. {
  9790. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9791. htim->IC_CaptureCallback(htim);
  9792. #else
  9793. HAL_TIM_IC_CaptureCallback(htim);
  9794. 800410e: 6878 ldr r0, [r7, #4]
  9795. 8004110: f000 f899 bl 8004246 <HAL_TIM_IC_CaptureCallback>
  9796. 8004114: e005 b.n 8004122 <HAL_TIM_IRQHandler+0xfe>
  9797. {
  9798. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9799. htim->OC_DelayElapsedCallback(htim);
  9800. htim->PWM_PulseFinishedCallback(htim);
  9801. #else
  9802. HAL_TIM_OC_DelayElapsedCallback(htim);
  9803. 8004116: 6878 ldr r0, [r7, #4]
  9804. 8004118: f000 f88c bl 8004234 <HAL_TIM_OC_DelayElapsedCallback>
  9805. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9806. 800411c: 6878 ldr r0, [r7, #4]
  9807. 800411e: f000 f89b bl 8004258 <HAL_TIM_PWM_PulseFinishedCallback>
  9808. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9809. }
  9810. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9811. 8004122: 687b ldr r3, [r7, #4]
  9812. 8004124: 2200 movs r2, #0
  9813. 8004126: 771a strb r2, [r3, #28]
  9814. }
  9815. }
  9816. /* Capture compare 4 event */
  9817. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  9818. 8004128: 687b ldr r3, [r7, #4]
  9819. 800412a: 681b ldr r3, [r3, #0]
  9820. 800412c: 691b ldr r3, [r3, #16]
  9821. 800412e: f003 0310 and.w r3, r3, #16
  9822. 8004132: 2b10 cmp r3, #16
  9823. 8004134: d122 bne.n 800417c <HAL_TIM_IRQHandler+0x158>
  9824. {
  9825. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
  9826. 8004136: 687b ldr r3, [r7, #4]
  9827. 8004138: 681b ldr r3, [r3, #0]
  9828. 800413a: 68db ldr r3, [r3, #12]
  9829. 800413c: f003 0310 and.w r3, r3, #16
  9830. 8004140: 2b10 cmp r3, #16
  9831. 8004142: d11b bne.n 800417c <HAL_TIM_IRQHandler+0x158>
  9832. {
  9833. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  9834. 8004144: 687b ldr r3, [r7, #4]
  9835. 8004146: 681b ldr r3, [r3, #0]
  9836. 8004148: f06f 0210 mvn.w r2, #16
  9837. 800414c: 611a str r2, [r3, #16]
  9838. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  9839. 800414e: 687b ldr r3, [r7, #4]
  9840. 8004150: 2208 movs r2, #8
  9841. 8004152: 771a strb r2, [r3, #28]
  9842. /* Input capture event */
  9843. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  9844. 8004154: 687b ldr r3, [r7, #4]
  9845. 8004156: 681b ldr r3, [r3, #0]
  9846. 8004158: 69db ldr r3, [r3, #28]
  9847. 800415a: f403 7340 and.w r3, r3, #768 ; 0x300
  9848. 800415e: 2b00 cmp r3, #0
  9849. 8004160: d003 beq.n 800416a <HAL_TIM_IRQHandler+0x146>
  9850. {
  9851. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9852. htim->IC_CaptureCallback(htim);
  9853. #else
  9854. HAL_TIM_IC_CaptureCallback(htim);
  9855. 8004162: 6878 ldr r0, [r7, #4]
  9856. 8004164: f000 f86f bl 8004246 <HAL_TIM_IC_CaptureCallback>
  9857. 8004168: e005 b.n 8004176 <HAL_TIM_IRQHandler+0x152>
  9858. {
  9859. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9860. htim->OC_DelayElapsedCallback(htim);
  9861. htim->PWM_PulseFinishedCallback(htim);
  9862. #else
  9863. HAL_TIM_OC_DelayElapsedCallback(htim);
  9864. 800416a: 6878 ldr r0, [r7, #4]
  9865. 800416c: f000 f862 bl 8004234 <HAL_TIM_OC_DelayElapsedCallback>
  9866. HAL_TIM_PWM_PulseFinishedCallback(htim);
  9867. 8004170: 6878 ldr r0, [r7, #4]
  9868. 8004172: f000 f871 bl 8004258 <HAL_TIM_PWM_PulseFinishedCallback>
  9869. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9870. }
  9871. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  9872. 8004176: 687b ldr r3, [r7, #4]
  9873. 8004178: 2200 movs r2, #0
  9874. 800417a: 771a strb r2, [r3, #28]
  9875. }
  9876. }
  9877. /* TIM Update event */
  9878. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  9879. 800417c: 687b ldr r3, [r7, #4]
  9880. 800417e: 681b ldr r3, [r3, #0]
  9881. 8004180: 691b ldr r3, [r3, #16]
  9882. 8004182: f003 0301 and.w r3, r3, #1
  9883. 8004186: 2b01 cmp r3, #1
  9884. 8004188: d10e bne.n 80041a8 <HAL_TIM_IRQHandler+0x184>
  9885. {
  9886. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
  9887. 800418a: 687b ldr r3, [r7, #4]
  9888. 800418c: 681b ldr r3, [r3, #0]
  9889. 800418e: 68db ldr r3, [r3, #12]
  9890. 8004190: f003 0301 and.w r3, r3, #1
  9891. 8004194: 2b01 cmp r3, #1
  9892. 8004196: d107 bne.n 80041a8 <HAL_TIM_IRQHandler+0x184>
  9893. {
  9894. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  9895. 8004198: 687b ldr r3, [r7, #4]
  9896. 800419a: 681b ldr r3, [r3, #0]
  9897. 800419c: f06f 0201 mvn.w r2, #1
  9898. 80041a0: 611a str r2, [r3, #16]
  9899. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9900. htim->PeriodElapsedCallback(htim);
  9901. #else
  9902. HAL_TIM_PeriodElapsedCallback(htim);
  9903. 80041a2: 6878 ldr r0, [r7, #4]
  9904. 80041a4: f001 fa0a bl 80055bc <HAL_TIM_PeriodElapsedCallback>
  9905. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9906. }
  9907. }
  9908. /* TIM Break input event */
  9909. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET)
  9910. 80041a8: 687b ldr r3, [r7, #4]
  9911. 80041aa: 681b ldr r3, [r3, #0]
  9912. 80041ac: 691b ldr r3, [r3, #16]
  9913. 80041ae: f003 0380 and.w r3, r3, #128 ; 0x80
  9914. 80041b2: 2b80 cmp r3, #128 ; 0x80
  9915. 80041b4: d10e bne.n 80041d4 <HAL_TIM_IRQHandler+0x1b0>
  9916. {
  9917. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET)
  9918. 80041b6: 687b ldr r3, [r7, #4]
  9919. 80041b8: 681b ldr r3, [r3, #0]
  9920. 80041ba: 68db ldr r3, [r3, #12]
  9921. 80041bc: f003 0380 and.w r3, r3, #128 ; 0x80
  9922. 80041c0: 2b80 cmp r3, #128 ; 0x80
  9923. 80041c2: d107 bne.n 80041d4 <HAL_TIM_IRQHandler+0x1b0>
  9924. {
  9925. __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
  9926. 80041c4: 687b ldr r3, [r7, #4]
  9927. 80041c6: 681b ldr r3, [r3, #0]
  9928. 80041c8: f06f 0280 mvn.w r2, #128 ; 0x80
  9929. 80041cc: 611a str r2, [r3, #16]
  9930. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9931. htim->BreakCallback(htim);
  9932. #else
  9933. HAL_TIMEx_BreakCallback(htim);
  9934. 80041ce: 6878 ldr r0, [r7, #4]
  9935. 80041d0: f000 f921 bl 8004416 <HAL_TIMEx_BreakCallback>
  9936. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9937. }
  9938. }
  9939. /* TIM Trigger detection event */
  9940. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  9941. 80041d4: 687b ldr r3, [r7, #4]
  9942. 80041d6: 681b ldr r3, [r3, #0]
  9943. 80041d8: 691b ldr r3, [r3, #16]
  9944. 80041da: f003 0340 and.w r3, r3, #64 ; 0x40
  9945. 80041de: 2b40 cmp r3, #64 ; 0x40
  9946. 80041e0: d10e bne.n 8004200 <HAL_TIM_IRQHandler+0x1dc>
  9947. {
  9948. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
  9949. 80041e2: 687b ldr r3, [r7, #4]
  9950. 80041e4: 681b ldr r3, [r3, #0]
  9951. 80041e6: 68db ldr r3, [r3, #12]
  9952. 80041e8: f003 0340 and.w r3, r3, #64 ; 0x40
  9953. 80041ec: 2b40 cmp r3, #64 ; 0x40
  9954. 80041ee: d107 bne.n 8004200 <HAL_TIM_IRQHandler+0x1dc>
  9955. {
  9956. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  9957. 80041f0: 687b ldr r3, [r7, #4]
  9958. 80041f2: 681b ldr r3, [r3, #0]
  9959. 80041f4: f06f 0240 mvn.w r2, #64 ; 0x40
  9960. 80041f8: 611a str r2, [r3, #16]
  9961. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9962. htim->TriggerCallback(htim);
  9963. #else
  9964. HAL_TIM_TriggerCallback(htim);
  9965. 80041fa: 6878 ldr r0, [r7, #4]
  9966. 80041fc: f000 f835 bl 800426a <HAL_TIM_TriggerCallback>
  9967. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9968. }
  9969. }
  9970. /* TIM commutation event */
  9971. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET)
  9972. 8004200: 687b ldr r3, [r7, #4]
  9973. 8004202: 681b ldr r3, [r3, #0]
  9974. 8004204: 691b ldr r3, [r3, #16]
  9975. 8004206: f003 0320 and.w r3, r3, #32
  9976. 800420a: 2b20 cmp r3, #32
  9977. 800420c: d10e bne.n 800422c <HAL_TIM_IRQHandler+0x208>
  9978. {
  9979. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET)
  9980. 800420e: 687b ldr r3, [r7, #4]
  9981. 8004210: 681b ldr r3, [r3, #0]
  9982. 8004212: 68db ldr r3, [r3, #12]
  9983. 8004214: f003 0320 and.w r3, r3, #32
  9984. 8004218: 2b20 cmp r3, #32
  9985. 800421a: d107 bne.n 800422c <HAL_TIM_IRQHandler+0x208>
  9986. {
  9987. __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
  9988. 800421c: 687b ldr r3, [r7, #4]
  9989. 800421e: 681b ldr r3, [r3, #0]
  9990. 8004220: f06f 0220 mvn.w r2, #32
  9991. 8004224: 611a str r2, [r3, #16]
  9992. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  9993. htim->CommutationCallback(htim);
  9994. #else
  9995. HAL_TIMEx_CommutCallback(htim);
  9996. 8004226: 6878 ldr r0, [r7, #4]
  9997. 8004228: f000 f8ec bl 8004404 <HAL_TIMEx_CommutCallback>
  9998. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  9999. }
  10000. }
  10001. }
  10002. 800422c: bf00 nop
  10003. 800422e: 3708 adds r7, #8
  10004. 8004230: 46bd mov sp, r7
  10005. 8004232: bd80 pop {r7, pc}
  10006. 08004234 <HAL_TIM_OC_DelayElapsedCallback>:
  10007. * @brief Output Compare callback in non-blocking mode
  10008. * @param htim TIM OC handle
  10009. * @retval None
  10010. */
  10011. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  10012. {
  10013. 8004234: b480 push {r7}
  10014. 8004236: b083 sub sp, #12
  10015. 8004238: af00 add r7, sp, #0
  10016. 800423a: 6078 str r0, [r7, #4]
  10017. UNUSED(htim);
  10018. /* NOTE : This function should not be modified, when the callback is needed,
  10019. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  10020. */
  10021. }
  10022. 800423c: bf00 nop
  10023. 800423e: 370c adds r7, #12
  10024. 8004240: 46bd mov sp, r7
  10025. 8004242: bc80 pop {r7}
  10026. 8004244: 4770 bx lr
  10027. 08004246 <HAL_TIM_IC_CaptureCallback>:
  10028. * @brief Input Capture callback in non-blocking mode
  10029. * @param htim TIM IC handle
  10030. * @retval None
  10031. */
  10032. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  10033. {
  10034. 8004246: b480 push {r7}
  10035. 8004248: b083 sub sp, #12
  10036. 800424a: af00 add r7, sp, #0
  10037. 800424c: 6078 str r0, [r7, #4]
  10038. UNUSED(htim);
  10039. /* NOTE : This function should not be modified, when the callback is needed,
  10040. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  10041. */
  10042. }
  10043. 800424e: bf00 nop
  10044. 8004250: 370c adds r7, #12
  10045. 8004252: 46bd mov sp, r7
  10046. 8004254: bc80 pop {r7}
  10047. 8004256: 4770 bx lr
  10048. 08004258 <HAL_TIM_PWM_PulseFinishedCallback>:
  10049. * @brief PWM Pulse finished callback in non-blocking mode
  10050. * @param htim TIM handle
  10051. * @retval None
  10052. */
  10053. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  10054. {
  10055. 8004258: b480 push {r7}
  10056. 800425a: b083 sub sp, #12
  10057. 800425c: af00 add r7, sp, #0
  10058. 800425e: 6078 str r0, [r7, #4]
  10059. UNUSED(htim);
  10060. /* NOTE : This function should not be modified, when the callback is needed,
  10061. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  10062. */
  10063. }
  10064. 8004260: bf00 nop
  10065. 8004262: 370c adds r7, #12
  10066. 8004264: 46bd mov sp, r7
  10067. 8004266: bc80 pop {r7}
  10068. 8004268: 4770 bx lr
  10069. 0800426a <HAL_TIM_TriggerCallback>:
  10070. * @brief Hall Trigger detection callback in non-blocking mode
  10071. * @param htim TIM handle
  10072. * @retval None
  10073. */
  10074. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  10075. {
  10076. 800426a: b480 push {r7}
  10077. 800426c: b083 sub sp, #12
  10078. 800426e: af00 add r7, sp, #0
  10079. 8004270: 6078 str r0, [r7, #4]
  10080. UNUSED(htim);
  10081. /* NOTE : This function should not be modified, when the callback is needed,
  10082. the HAL_TIM_TriggerCallback could be implemented in the user file
  10083. */
  10084. }
  10085. 8004272: bf00 nop
  10086. 8004274: 370c adds r7, #12
  10087. 8004276: 46bd mov sp, r7
  10088. 8004278: bc80 pop {r7}
  10089. 800427a: 4770 bx lr
  10090. 0800427c <TIM_Base_SetConfig>:
  10091. * @param TIMx TIM peripheral
  10092. * @param Structure TIM Base configuration structure
  10093. * @retval None
  10094. */
  10095. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
  10096. {
  10097. 800427c: b480 push {r7}
  10098. 800427e: b085 sub sp, #20
  10099. 8004280: af00 add r7, sp, #0
  10100. 8004282: 6078 str r0, [r7, #4]
  10101. 8004284: 6039 str r1, [r7, #0]
  10102. uint32_t tmpcr1;
  10103. tmpcr1 = TIMx->CR1;
  10104. 8004286: 687b ldr r3, [r7, #4]
  10105. 8004288: 681b ldr r3, [r3, #0]
  10106. 800428a: 60fb str r3, [r7, #12]
  10107. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  10108. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  10109. 800428c: 687b ldr r3, [r7, #4]
  10110. 800428e: 4a35 ldr r2, [pc, #212] ; (8004364 <TIM_Base_SetConfig+0xe8>)
  10111. 8004290: 4293 cmp r3, r2
  10112. 8004292: d00b beq.n 80042ac <TIM_Base_SetConfig+0x30>
  10113. 8004294: 687b ldr r3, [r7, #4]
  10114. 8004296: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  10115. 800429a: d007 beq.n 80042ac <TIM_Base_SetConfig+0x30>
  10116. 800429c: 687b ldr r3, [r7, #4]
  10117. 800429e: 4a32 ldr r2, [pc, #200] ; (8004368 <TIM_Base_SetConfig+0xec>)
  10118. 80042a0: 4293 cmp r3, r2
  10119. 80042a2: d003 beq.n 80042ac <TIM_Base_SetConfig+0x30>
  10120. 80042a4: 687b ldr r3, [r7, #4]
  10121. 80042a6: 4a31 ldr r2, [pc, #196] ; (800436c <TIM_Base_SetConfig+0xf0>)
  10122. 80042a8: 4293 cmp r3, r2
  10123. 80042aa: d108 bne.n 80042be <TIM_Base_SetConfig+0x42>
  10124. {
  10125. /* Select the Counter Mode */
  10126. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  10127. 80042ac: 68fb ldr r3, [r7, #12]
  10128. 80042ae: f023 0370 bic.w r3, r3, #112 ; 0x70
  10129. 80042b2: 60fb str r3, [r7, #12]
  10130. tmpcr1 |= Structure->CounterMode;
  10131. 80042b4: 683b ldr r3, [r7, #0]
  10132. 80042b6: 685b ldr r3, [r3, #4]
  10133. 80042b8: 68fa ldr r2, [r7, #12]
  10134. 80042ba: 4313 orrs r3, r2
  10135. 80042bc: 60fb str r3, [r7, #12]
  10136. }
  10137. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  10138. 80042be: 687b ldr r3, [r7, #4]
  10139. 80042c0: 4a28 ldr r2, [pc, #160] ; (8004364 <TIM_Base_SetConfig+0xe8>)
  10140. 80042c2: 4293 cmp r3, r2
  10141. 80042c4: d017 beq.n 80042f6 <TIM_Base_SetConfig+0x7a>
  10142. 80042c6: 687b ldr r3, [r7, #4]
  10143. 80042c8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  10144. 80042cc: d013 beq.n 80042f6 <TIM_Base_SetConfig+0x7a>
  10145. 80042ce: 687b ldr r3, [r7, #4]
  10146. 80042d0: 4a25 ldr r2, [pc, #148] ; (8004368 <TIM_Base_SetConfig+0xec>)
  10147. 80042d2: 4293 cmp r3, r2
  10148. 80042d4: d00f beq.n 80042f6 <TIM_Base_SetConfig+0x7a>
  10149. 80042d6: 687b ldr r3, [r7, #4]
  10150. 80042d8: 4a24 ldr r2, [pc, #144] ; (800436c <TIM_Base_SetConfig+0xf0>)
  10151. 80042da: 4293 cmp r3, r2
  10152. 80042dc: d00b beq.n 80042f6 <TIM_Base_SetConfig+0x7a>
  10153. 80042de: 687b ldr r3, [r7, #4]
  10154. 80042e0: 4a23 ldr r2, [pc, #140] ; (8004370 <TIM_Base_SetConfig+0xf4>)
  10155. 80042e2: 4293 cmp r3, r2
  10156. 80042e4: d007 beq.n 80042f6 <TIM_Base_SetConfig+0x7a>
  10157. 80042e6: 687b ldr r3, [r7, #4]
  10158. 80042e8: 4a22 ldr r2, [pc, #136] ; (8004374 <TIM_Base_SetConfig+0xf8>)
  10159. 80042ea: 4293 cmp r3, r2
  10160. 80042ec: d003 beq.n 80042f6 <TIM_Base_SetConfig+0x7a>
  10161. 80042ee: 687b ldr r3, [r7, #4]
  10162. 80042f0: 4a21 ldr r2, [pc, #132] ; (8004378 <TIM_Base_SetConfig+0xfc>)
  10163. 80042f2: 4293 cmp r3, r2
  10164. 80042f4: d108 bne.n 8004308 <TIM_Base_SetConfig+0x8c>
  10165. {
  10166. /* Set the clock division */
  10167. tmpcr1 &= ~TIM_CR1_CKD;
  10168. 80042f6: 68fb ldr r3, [r7, #12]
  10169. 80042f8: f423 7340 bic.w r3, r3, #768 ; 0x300
  10170. 80042fc: 60fb str r3, [r7, #12]
  10171. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  10172. 80042fe: 683b ldr r3, [r7, #0]
  10173. 8004300: 68db ldr r3, [r3, #12]
  10174. 8004302: 68fa ldr r2, [r7, #12]
  10175. 8004304: 4313 orrs r3, r2
  10176. 8004306: 60fb str r3, [r7, #12]
  10177. }
  10178. /* Set the auto-reload preload */
  10179. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  10180. 8004308: 68fb ldr r3, [r7, #12]
  10181. 800430a: f023 0280 bic.w r2, r3, #128 ; 0x80
  10182. 800430e: 683b ldr r3, [r7, #0]
  10183. 8004310: 695b ldr r3, [r3, #20]
  10184. 8004312: 4313 orrs r3, r2
  10185. 8004314: 60fb str r3, [r7, #12]
  10186. TIMx->CR1 = tmpcr1;
  10187. 8004316: 687b ldr r3, [r7, #4]
  10188. 8004318: 68fa ldr r2, [r7, #12]
  10189. 800431a: 601a str r2, [r3, #0]
  10190. /* Set the Autoreload value */
  10191. TIMx->ARR = (uint32_t)Structure->Period ;
  10192. 800431c: 683b ldr r3, [r7, #0]
  10193. 800431e: 689a ldr r2, [r3, #8]
  10194. 8004320: 687b ldr r3, [r7, #4]
  10195. 8004322: 62da str r2, [r3, #44] ; 0x2c
  10196. /* Set the Prescaler value */
  10197. TIMx->PSC = Structure->Prescaler;
  10198. 8004324: 683b ldr r3, [r7, #0]
  10199. 8004326: 681a ldr r2, [r3, #0]
  10200. 8004328: 687b ldr r3, [r7, #4]
  10201. 800432a: 629a str r2, [r3, #40] ; 0x28
  10202. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  10203. 800432c: 687b ldr r3, [r7, #4]
  10204. 800432e: 4a0d ldr r2, [pc, #52] ; (8004364 <TIM_Base_SetConfig+0xe8>)
  10205. 8004330: 4293 cmp r3, r2
  10206. 8004332: d00b beq.n 800434c <TIM_Base_SetConfig+0xd0>
  10207. 8004334: 687b ldr r3, [r7, #4]
  10208. 8004336: 4a0e ldr r2, [pc, #56] ; (8004370 <TIM_Base_SetConfig+0xf4>)
  10209. 8004338: 4293 cmp r3, r2
  10210. 800433a: d007 beq.n 800434c <TIM_Base_SetConfig+0xd0>
  10211. 800433c: 687b ldr r3, [r7, #4]
  10212. 800433e: 4a0d ldr r2, [pc, #52] ; (8004374 <TIM_Base_SetConfig+0xf8>)
  10213. 8004340: 4293 cmp r3, r2
  10214. 8004342: d003 beq.n 800434c <TIM_Base_SetConfig+0xd0>
  10215. 8004344: 687b ldr r3, [r7, #4]
  10216. 8004346: 4a0c ldr r2, [pc, #48] ; (8004378 <TIM_Base_SetConfig+0xfc>)
  10217. 8004348: 4293 cmp r3, r2
  10218. 800434a: d103 bne.n 8004354 <TIM_Base_SetConfig+0xd8>
  10219. {
  10220. /* Set the Repetition Counter value */
  10221. TIMx->RCR = Structure->RepetitionCounter;
  10222. 800434c: 683b ldr r3, [r7, #0]
  10223. 800434e: 691a ldr r2, [r3, #16]
  10224. 8004350: 687b ldr r3, [r7, #4]
  10225. 8004352: 631a str r2, [r3, #48] ; 0x30
  10226. }
  10227. /* Generate an update event to reload the Prescaler
  10228. and the repetition counter (only for advanced timer) value immediately */
  10229. TIMx->EGR = TIM_EGR_UG;
  10230. 8004354: 687b ldr r3, [r7, #4]
  10231. 8004356: 2201 movs r2, #1
  10232. 8004358: 615a str r2, [r3, #20]
  10233. }
  10234. 800435a: bf00 nop
  10235. 800435c: 3714 adds r7, #20
  10236. 800435e: 46bd mov sp, r7
  10237. 8004360: bc80 pop {r7}
  10238. 8004362: 4770 bx lr
  10239. 8004364: 40012c00 .word 0x40012c00
  10240. 8004368: 40000400 .word 0x40000400
  10241. 800436c: 40000800 .word 0x40000800
  10242. 8004370: 40014000 .word 0x40014000
  10243. 8004374: 40014400 .word 0x40014400
  10244. 8004378: 40014800 .word 0x40014800
  10245. 0800437c <HAL_TIMEx_MasterConfigSynchronization>:
  10246. * mode.
  10247. * @retval HAL status
  10248. */
  10249. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  10250. TIM_MasterConfigTypeDef *sMasterConfig)
  10251. {
  10252. 800437c: b480 push {r7}
  10253. 800437e: b085 sub sp, #20
  10254. 8004380: af00 add r7, sp, #0
  10255. 8004382: 6078 str r0, [r7, #4]
  10256. 8004384: 6039 str r1, [r7, #0]
  10257. assert_param(IS_TIM_SYNCHRO_INSTANCE(htim->Instance));
  10258. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  10259. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  10260. /* Check input state */
  10261. __HAL_LOCK(htim);
  10262. 8004386: 687b ldr r3, [r7, #4]
  10263. 8004388: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  10264. 800438c: 2b01 cmp r3, #1
  10265. 800438e: d101 bne.n 8004394 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  10266. 8004390: 2302 movs r3, #2
  10267. 8004392: e032 b.n 80043fa <HAL_TIMEx_MasterConfigSynchronization+0x7e>
  10268. 8004394: 687b ldr r3, [r7, #4]
  10269. 8004396: 2201 movs r2, #1
  10270. 8004398: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10271. /* Change the handler state */
  10272. htim->State = HAL_TIM_STATE_BUSY;
  10273. 800439c: 687b ldr r3, [r7, #4]
  10274. 800439e: 2202 movs r2, #2
  10275. 80043a0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10276. /* Get the TIMx CR2 register value */
  10277. tmpcr2 = htim->Instance->CR2;
  10278. 80043a4: 687b ldr r3, [r7, #4]
  10279. 80043a6: 681b ldr r3, [r3, #0]
  10280. 80043a8: 685b ldr r3, [r3, #4]
  10281. 80043aa: 60fb str r3, [r7, #12]
  10282. /* Get the TIMx SMCR register value */
  10283. tmpsmcr = htim->Instance->SMCR;
  10284. 80043ac: 687b ldr r3, [r7, #4]
  10285. 80043ae: 681b ldr r3, [r3, #0]
  10286. 80043b0: 689b ldr r3, [r3, #8]
  10287. 80043b2: 60bb str r3, [r7, #8]
  10288. /* Reset the MMS Bits */
  10289. tmpcr2 &= ~TIM_CR2_MMS;
  10290. 80043b4: 68fb ldr r3, [r7, #12]
  10291. 80043b6: f023 0370 bic.w r3, r3, #112 ; 0x70
  10292. 80043ba: 60fb str r3, [r7, #12]
  10293. /* Select the TRGO source */
  10294. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  10295. 80043bc: 683b ldr r3, [r7, #0]
  10296. 80043be: 681b ldr r3, [r3, #0]
  10297. 80043c0: 68fa ldr r2, [r7, #12]
  10298. 80043c2: 4313 orrs r3, r2
  10299. 80043c4: 60fb str r3, [r7, #12]
  10300. /* Reset the MSM Bit */
  10301. tmpsmcr &= ~TIM_SMCR_MSM;
  10302. 80043c6: 68bb ldr r3, [r7, #8]
  10303. 80043c8: f023 0380 bic.w r3, r3, #128 ; 0x80
  10304. 80043cc: 60bb str r3, [r7, #8]
  10305. /* Set master mode */
  10306. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  10307. 80043ce: 683b ldr r3, [r7, #0]
  10308. 80043d0: 685b ldr r3, [r3, #4]
  10309. 80043d2: 68ba ldr r2, [r7, #8]
  10310. 80043d4: 4313 orrs r3, r2
  10311. 80043d6: 60bb str r3, [r7, #8]
  10312. /* Update TIMx CR2 */
  10313. htim->Instance->CR2 = tmpcr2;
  10314. 80043d8: 687b ldr r3, [r7, #4]
  10315. 80043da: 681b ldr r3, [r3, #0]
  10316. 80043dc: 68fa ldr r2, [r7, #12]
  10317. 80043de: 605a str r2, [r3, #4]
  10318. /* Update TIMx SMCR */
  10319. htim->Instance->SMCR = tmpsmcr;
  10320. 80043e0: 687b ldr r3, [r7, #4]
  10321. 80043e2: 681b ldr r3, [r3, #0]
  10322. 80043e4: 68ba ldr r2, [r7, #8]
  10323. 80043e6: 609a str r2, [r3, #8]
  10324. /* Change the htim state */
  10325. htim->State = HAL_TIM_STATE_READY;
  10326. 80043e8: 687b ldr r3, [r7, #4]
  10327. 80043ea: 2201 movs r2, #1
  10328. 80043ec: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10329. __HAL_UNLOCK(htim);
  10330. 80043f0: 687b ldr r3, [r7, #4]
  10331. 80043f2: 2200 movs r2, #0
  10332. 80043f4: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10333. return HAL_OK;
  10334. 80043f8: 2300 movs r3, #0
  10335. }
  10336. 80043fa: 4618 mov r0, r3
  10337. 80043fc: 3714 adds r7, #20
  10338. 80043fe: 46bd mov sp, r7
  10339. 8004400: bc80 pop {r7}
  10340. 8004402: 4770 bx lr
  10341. 08004404 <HAL_TIMEx_CommutCallback>:
  10342. * @brief Hall commutation changed callback in non-blocking mode
  10343. * @param htim TIM handle
  10344. * @retval None
  10345. */
  10346. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  10347. {
  10348. 8004404: b480 push {r7}
  10349. 8004406: b083 sub sp, #12
  10350. 8004408: af00 add r7, sp, #0
  10351. 800440a: 6078 str r0, [r7, #4]
  10352. UNUSED(htim);
  10353. /* NOTE : This function should not be modified, when the callback is needed,
  10354. the HAL_TIMEx_CommutCallback could be implemented in the user file
  10355. */
  10356. }
  10357. 800440c: bf00 nop
  10358. 800440e: 370c adds r7, #12
  10359. 8004410: 46bd mov sp, r7
  10360. 8004412: bc80 pop {r7}
  10361. 8004414: 4770 bx lr
  10362. 08004416 <HAL_TIMEx_BreakCallback>:
  10363. * @brief Hall Break detection callback in non-blocking mode
  10364. * @param htim TIM handle
  10365. * @retval None
  10366. */
  10367. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  10368. {
  10369. 8004416: b480 push {r7}
  10370. 8004418: b083 sub sp, #12
  10371. 800441a: af00 add r7, sp, #0
  10372. 800441c: 6078 str r0, [r7, #4]
  10373. UNUSED(htim);
  10374. /* NOTE : This function should not be modified, when the callback is needed,
  10375. the HAL_TIMEx_BreakCallback could be implemented in the user file
  10376. */
  10377. }
  10378. 800441e: bf00 nop
  10379. 8004420: 370c adds r7, #12
  10380. 8004422: 46bd mov sp, r7
  10381. 8004424: bc80 pop {r7}
  10382. 8004426: 4770 bx lr
  10383. 08004428 <HAL_UART_Init>:
  10384. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10385. * the configuration information for the specified UART module.
  10386. * @retval HAL status
  10387. */
  10388. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  10389. {
  10390. 8004428: b580 push {r7, lr}
  10391. 800442a: b082 sub sp, #8
  10392. 800442c: af00 add r7, sp, #0
  10393. 800442e: 6078 str r0, [r7, #4]
  10394. /* Check the UART handle allocation */
  10395. if (huart == NULL)
  10396. 8004430: 687b ldr r3, [r7, #4]
  10397. 8004432: 2b00 cmp r3, #0
  10398. 8004434: d101 bne.n 800443a <HAL_UART_Init+0x12>
  10399. {
  10400. return HAL_ERROR;
  10401. 8004436: 2301 movs r3, #1
  10402. 8004438: e03f b.n 80044ba <HAL_UART_Init+0x92>
  10403. assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
  10404. #if defined(USART_CR1_OVER8)
  10405. assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
  10406. #endif /* USART_CR1_OVER8 */
  10407. if (huart->gState == HAL_UART_STATE_RESET)
  10408. 800443a: 687b ldr r3, [r7, #4]
  10409. 800443c: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10410. 8004440: b2db uxtb r3, r3
  10411. 8004442: 2b00 cmp r3, #0
  10412. 8004444: d106 bne.n 8004454 <HAL_UART_Init+0x2c>
  10413. {
  10414. /* Allocate lock resource and initialize it */
  10415. huart->Lock = HAL_UNLOCKED;
  10416. 8004446: 687b ldr r3, [r7, #4]
  10417. 8004448: 2200 movs r2, #0
  10418. 800444a: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10419. /* Init the low level hardware */
  10420. huart->MspInitCallback(huart);
  10421. #else
  10422. /* Init the low level hardware : GPIO, CLOCK */
  10423. HAL_UART_MspInit(huart);
  10424. 800444e: 6878 ldr r0, [r7, #4]
  10425. 8004450: f001 fa12 bl 8005878 <HAL_UART_MspInit>
  10426. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  10427. }
  10428. huart->gState = HAL_UART_STATE_BUSY;
  10429. 8004454: 687b ldr r3, [r7, #4]
  10430. 8004456: 2224 movs r2, #36 ; 0x24
  10431. 8004458: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10432. /* Disable the peripheral */
  10433. __HAL_UART_DISABLE(huart);
  10434. 800445c: 687b ldr r3, [r7, #4]
  10435. 800445e: 681b ldr r3, [r3, #0]
  10436. 8004460: 68da ldr r2, [r3, #12]
  10437. 8004462: 687b ldr r3, [r7, #4]
  10438. 8004464: 681b ldr r3, [r3, #0]
  10439. 8004466: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  10440. 800446a: 60da str r2, [r3, #12]
  10441. /* Set the UART Communication parameters */
  10442. UART_SetConfig(huart);
  10443. 800446c: 6878 ldr r0, [r7, #4]
  10444. 800446e: f000 fc97 bl 8004da0 <UART_SetConfig>
  10445. /* In asynchronous mode, the following bits must be kept cleared:
  10446. - LINEN and CLKEN bits in the USART_CR2 register,
  10447. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  10448. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  10449. 8004472: 687b ldr r3, [r7, #4]
  10450. 8004474: 681b ldr r3, [r3, #0]
  10451. 8004476: 691a ldr r2, [r3, #16]
  10452. 8004478: 687b ldr r3, [r7, #4]
  10453. 800447a: 681b ldr r3, [r3, #0]
  10454. 800447c: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  10455. 8004480: 611a str r2, [r3, #16]
  10456. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  10457. 8004482: 687b ldr r3, [r7, #4]
  10458. 8004484: 681b ldr r3, [r3, #0]
  10459. 8004486: 695a ldr r2, [r3, #20]
  10460. 8004488: 687b ldr r3, [r7, #4]
  10461. 800448a: 681b ldr r3, [r3, #0]
  10462. 800448c: f022 022a bic.w r2, r2, #42 ; 0x2a
  10463. 8004490: 615a str r2, [r3, #20]
  10464. /* Enable the peripheral */
  10465. __HAL_UART_ENABLE(huart);
  10466. 8004492: 687b ldr r3, [r7, #4]
  10467. 8004494: 681b ldr r3, [r3, #0]
  10468. 8004496: 68da ldr r2, [r3, #12]
  10469. 8004498: 687b ldr r3, [r7, #4]
  10470. 800449a: 681b ldr r3, [r3, #0]
  10471. 800449c: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  10472. 80044a0: 60da str r2, [r3, #12]
  10473. /* Initialize the UART state */
  10474. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10475. 80044a2: 687b ldr r3, [r7, #4]
  10476. 80044a4: 2200 movs r2, #0
  10477. 80044a6: 63da str r2, [r3, #60] ; 0x3c
  10478. huart->gState = HAL_UART_STATE_READY;
  10479. 80044a8: 687b ldr r3, [r7, #4]
  10480. 80044aa: 2220 movs r2, #32
  10481. 80044ac: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10482. huart->RxState = HAL_UART_STATE_READY;
  10483. 80044b0: 687b ldr r3, [r7, #4]
  10484. 80044b2: 2220 movs r2, #32
  10485. 80044b4: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10486. return HAL_OK;
  10487. 80044b8: 2300 movs r3, #0
  10488. }
  10489. 80044ba: 4618 mov r0, r3
  10490. 80044bc: 3708 adds r7, #8
  10491. 80044be: 46bd mov sp, r7
  10492. 80044c0: bd80 pop {r7, pc}
  10493. 080044c2 <HAL_UART_Transmit>:
  10494. * @param Size Amount of data elements (u8 or u16) to be sent
  10495. * @param Timeout Timeout duration
  10496. * @retval HAL status
  10497. */
  10498. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
  10499. {
  10500. 80044c2: b580 push {r7, lr}
  10501. 80044c4: b088 sub sp, #32
  10502. 80044c6: af02 add r7, sp, #8
  10503. 80044c8: 60f8 str r0, [r7, #12]
  10504. 80044ca: 60b9 str r1, [r7, #8]
  10505. 80044cc: 603b str r3, [r7, #0]
  10506. 80044ce: 4613 mov r3, r2
  10507. 80044d0: 80fb strh r3, [r7, #6]
  10508. uint16_t *tmp;
  10509. uint32_t tickstart = 0U;
  10510. 80044d2: 2300 movs r3, #0
  10511. 80044d4: 617b str r3, [r7, #20]
  10512. /* Check that a Tx process is not already ongoing */
  10513. if (huart->gState == HAL_UART_STATE_READY)
  10514. 80044d6: 68fb ldr r3, [r7, #12]
  10515. 80044d8: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10516. 80044dc: b2db uxtb r3, r3
  10517. 80044de: 2b20 cmp r3, #32
  10518. 80044e0: f040 8083 bne.w 80045ea <HAL_UART_Transmit+0x128>
  10519. {
  10520. if ((pData == NULL) || (Size == 0U))
  10521. 80044e4: 68bb ldr r3, [r7, #8]
  10522. 80044e6: 2b00 cmp r3, #0
  10523. 80044e8: d002 beq.n 80044f0 <HAL_UART_Transmit+0x2e>
  10524. 80044ea: 88fb ldrh r3, [r7, #6]
  10525. 80044ec: 2b00 cmp r3, #0
  10526. 80044ee: d101 bne.n 80044f4 <HAL_UART_Transmit+0x32>
  10527. {
  10528. return HAL_ERROR;
  10529. 80044f0: 2301 movs r3, #1
  10530. 80044f2: e07b b.n 80045ec <HAL_UART_Transmit+0x12a>
  10531. }
  10532. /* Process Locked */
  10533. __HAL_LOCK(huart);
  10534. 80044f4: 68fb ldr r3, [r7, #12]
  10535. 80044f6: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10536. 80044fa: 2b01 cmp r3, #1
  10537. 80044fc: d101 bne.n 8004502 <HAL_UART_Transmit+0x40>
  10538. 80044fe: 2302 movs r3, #2
  10539. 8004500: e074 b.n 80045ec <HAL_UART_Transmit+0x12a>
  10540. 8004502: 68fb ldr r3, [r7, #12]
  10541. 8004504: 2201 movs r2, #1
  10542. 8004506: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10543. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10544. 800450a: 68fb ldr r3, [r7, #12]
  10545. 800450c: 2200 movs r2, #0
  10546. 800450e: 63da str r2, [r3, #60] ; 0x3c
  10547. huart->gState = HAL_UART_STATE_BUSY_TX;
  10548. 8004510: 68fb ldr r3, [r7, #12]
  10549. 8004512: 2221 movs r2, #33 ; 0x21
  10550. 8004514: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10551. /* Init tickstart for timeout managment */
  10552. tickstart = HAL_GetTick();
  10553. 8004518: f7fd fc2e bl 8001d78 <HAL_GetTick>
  10554. 800451c: 6178 str r0, [r7, #20]
  10555. huart->TxXferSize = Size;
  10556. 800451e: 68fb ldr r3, [r7, #12]
  10557. 8004520: 88fa ldrh r2, [r7, #6]
  10558. 8004522: 849a strh r2, [r3, #36] ; 0x24
  10559. huart->TxXferCount = Size;
  10560. 8004524: 68fb ldr r3, [r7, #12]
  10561. 8004526: 88fa ldrh r2, [r7, #6]
  10562. 8004528: 84da strh r2, [r3, #38] ; 0x26
  10563. while (huart->TxXferCount > 0U)
  10564. 800452a: e042 b.n 80045b2 <HAL_UART_Transmit+0xf0>
  10565. {
  10566. huart->TxXferCount--;
  10567. 800452c: 68fb ldr r3, [r7, #12]
  10568. 800452e: 8cdb ldrh r3, [r3, #38] ; 0x26
  10569. 8004530: b29b uxth r3, r3
  10570. 8004532: 3b01 subs r3, #1
  10571. 8004534: b29a uxth r2, r3
  10572. 8004536: 68fb ldr r3, [r7, #12]
  10573. 8004538: 84da strh r2, [r3, #38] ; 0x26
  10574. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  10575. 800453a: 68fb ldr r3, [r7, #12]
  10576. 800453c: 689b ldr r3, [r3, #8]
  10577. 800453e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  10578. 8004542: d122 bne.n 800458a <HAL_UART_Transmit+0xc8>
  10579. {
  10580. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  10581. 8004544: 683b ldr r3, [r7, #0]
  10582. 8004546: 9300 str r3, [sp, #0]
  10583. 8004548: 697b ldr r3, [r7, #20]
  10584. 800454a: 2200 movs r2, #0
  10585. 800454c: 2180 movs r1, #128 ; 0x80
  10586. 800454e: 68f8 ldr r0, [r7, #12]
  10587. 8004550: f000 faa8 bl 8004aa4 <UART_WaitOnFlagUntilTimeout>
  10588. 8004554: 4603 mov r3, r0
  10589. 8004556: 2b00 cmp r3, #0
  10590. 8004558: d001 beq.n 800455e <HAL_UART_Transmit+0x9c>
  10591. {
  10592. return HAL_TIMEOUT;
  10593. 800455a: 2303 movs r3, #3
  10594. 800455c: e046 b.n 80045ec <HAL_UART_Transmit+0x12a>
  10595. }
  10596. tmp = (uint16_t *) pData;
  10597. 800455e: 68bb ldr r3, [r7, #8]
  10598. 8004560: 613b str r3, [r7, #16]
  10599. huart->Instance->DR = (*tmp & (uint16_t)0x01FF);
  10600. 8004562: 693b ldr r3, [r7, #16]
  10601. 8004564: 881b ldrh r3, [r3, #0]
  10602. 8004566: 461a mov r2, r3
  10603. 8004568: 68fb ldr r3, [r7, #12]
  10604. 800456a: 681b ldr r3, [r3, #0]
  10605. 800456c: f3c2 0208 ubfx r2, r2, #0, #9
  10606. 8004570: 605a str r2, [r3, #4]
  10607. if (huart->Init.Parity == UART_PARITY_NONE)
  10608. 8004572: 68fb ldr r3, [r7, #12]
  10609. 8004574: 691b ldr r3, [r3, #16]
  10610. 8004576: 2b00 cmp r3, #0
  10611. 8004578: d103 bne.n 8004582 <HAL_UART_Transmit+0xc0>
  10612. {
  10613. pData += 2U;
  10614. 800457a: 68bb ldr r3, [r7, #8]
  10615. 800457c: 3302 adds r3, #2
  10616. 800457e: 60bb str r3, [r7, #8]
  10617. 8004580: e017 b.n 80045b2 <HAL_UART_Transmit+0xf0>
  10618. }
  10619. else
  10620. {
  10621. pData += 1U;
  10622. 8004582: 68bb ldr r3, [r7, #8]
  10623. 8004584: 3301 adds r3, #1
  10624. 8004586: 60bb str r3, [r7, #8]
  10625. 8004588: e013 b.n 80045b2 <HAL_UART_Transmit+0xf0>
  10626. }
  10627. }
  10628. else
  10629. {
  10630. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  10631. 800458a: 683b ldr r3, [r7, #0]
  10632. 800458c: 9300 str r3, [sp, #0]
  10633. 800458e: 697b ldr r3, [r7, #20]
  10634. 8004590: 2200 movs r2, #0
  10635. 8004592: 2180 movs r1, #128 ; 0x80
  10636. 8004594: 68f8 ldr r0, [r7, #12]
  10637. 8004596: f000 fa85 bl 8004aa4 <UART_WaitOnFlagUntilTimeout>
  10638. 800459a: 4603 mov r3, r0
  10639. 800459c: 2b00 cmp r3, #0
  10640. 800459e: d001 beq.n 80045a4 <HAL_UART_Transmit+0xe2>
  10641. {
  10642. return HAL_TIMEOUT;
  10643. 80045a0: 2303 movs r3, #3
  10644. 80045a2: e023 b.n 80045ec <HAL_UART_Transmit+0x12a>
  10645. }
  10646. huart->Instance->DR = (*pData++ & (uint8_t)0xFF);
  10647. 80045a4: 68bb ldr r3, [r7, #8]
  10648. 80045a6: 1c5a adds r2, r3, #1
  10649. 80045a8: 60ba str r2, [r7, #8]
  10650. 80045aa: 781a ldrb r2, [r3, #0]
  10651. 80045ac: 68fb ldr r3, [r7, #12]
  10652. 80045ae: 681b ldr r3, [r3, #0]
  10653. 80045b0: 605a str r2, [r3, #4]
  10654. while (huart->TxXferCount > 0U)
  10655. 80045b2: 68fb ldr r3, [r7, #12]
  10656. 80045b4: 8cdb ldrh r3, [r3, #38] ; 0x26
  10657. 80045b6: b29b uxth r3, r3
  10658. 80045b8: 2b00 cmp r3, #0
  10659. 80045ba: d1b7 bne.n 800452c <HAL_UART_Transmit+0x6a>
  10660. }
  10661. }
  10662. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  10663. 80045bc: 683b ldr r3, [r7, #0]
  10664. 80045be: 9300 str r3, [sp, #0]
  10665. 80045c0: 697b ldr r3, [r7, #20]
  10666. 80045c2: 2200 movs r2, #0
  10667. 80045c4: 2140 movs r1, #64 ; 0x40
  10668. 80045c6: 68f8 ldr r0, [r7, #12]
  10669. 80045c8: f000 fa6c bl 8004aa4 <UART_WaitOnFlagUntilTimeout>
  10670. 80045cc: 4603 mov r3, r0
  10671. 80045ce: 2b00 cmp r3, #0
  10672. 80045d0: d001 beq.n 80045d6 <HAL_UART_Transmit+0x114>
  10673. {
  10674. return HAL_TIMEOUT;
  10675. 80045d2: 2303 movs r3, #3
  10676. 80045d4: e00a b.n 80045ec <HAL_UART_Transmit+0x12a>
  10677. }
  10678. /* At end of Tx process, restore huart->gState to Ready */
  10679. huart->gState = HAL_UART_STATE_READY;
  10680. 80045d6: 68fb ldr r3, [r7, #12]
  10681. 80045d8: 2220 movs r2, #32
  10682. 80045da: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10683. /* Process Unlocked */
  10684. __HAL_UNLOCK(huart);
  10685. 80045de: 68fb ldr r3, [r7, #12]
  10686. 80045e0: 2200 movs r2, #0
  10687. 80045e2: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10688. return HAL_OK;
  10689. 80045e6: 2300 movs r3, #0
  10690. 80045e8: e000 b.n 80045ec <HAL_UART_Transmit+0x12a>
  10691. }
  10692. else
  10693. {
  10694. return HAL_BUSY;
  10695. 80045ea: 2302 movs r3, #2
  10696. }
  10697. }
  10698. 80045ec: 4618 mov r0, r3
  10699. 80045ee: 3718 adds r7, #24
  10700. 80045f0: 46bd mov sp, r7
  10701. 80045f2: bd80 pop {r7, pc}
  10702. 080045f4 <HAL_UART_Receive_IT>:
  10703. * @param pData Pointer to data buffer (u8 or u16 data elements).
  10704. * @param Size Amount of data elements (u8 or u16) to be received.
  10705. * @retval HAL status
  10706. */
  10707. HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  10708. {
  10709. 80045f4: b480 push {r7}
  10710. 80045f6: b085 sub sp, #20
  10711. 80045f8: af00 add r7, sp, #0
  10712. 80045fa: 60f8 str r0, [r7, #12]
  10713. 80045fc: 60b9 str r1, [r7, #8]
  10714. 80045fe: 4613 mov r3, r2
  10715. 8004600: 80fb strh r3, [r7, #6]
  10716. /* Check that a Rx process is not already ongoing */
  10717. if (huart->RxState == HAL_UART_STATE_READY)
  10718. 8004602: 68fb ldr r3, [r7, #12]
  10719. 8004604: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  10720. 8004608: b2db uxtb r3, r3
  10721. 800460a: 2b20 cmp r3, #32
  10722. 800460c: d140 bne.n 8004690 <HAL_UART_Receive_IT+0x9c>
  10723. {
  10724. if ((pData == NULL) || (Size == 0U))
  10725. 800460e: 68bb ldr r3, [r7, #8]
  10726. 8004610: 2b00 cmp r3, #0
  10727. 8004612: d002 beq.n 800461a <HAL_UART_Receive_IT+0x26>
  10728. 8004614: 88fb ldrh r3, [r7, #6]
  10729. 8004616: 2b00 cmp r3, #0
  10730. 8004618: d101 bne.n 800461e <HAL_UART_Receive_IT+0x2a>
  10731. {
  10732. return HAL_ERROR;
  10733. 800461a: 2301 movs r3, #1
  10734. 800461c: e039 b.n 8004692 <HAL_UART_Receive_IT+0x9e>
  10735. }
  10736. /* Process Locked */
  10737. __HAL_LOCK(huart);
  10738. 800461e: 68fb ldr r3, [r7, #12]
  10739. 8004620: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10740. 8004624: 2b01 cmp r3, #1
  10741. 8004626: d101 bne.n 800462c <HAL_UART_Receive_IT+0x38>
  10742. 8004628: 2302 movs r3, #2
  10743. 800462a: e032 b.n 8004692 <HAL_UART_Receive_IT+0x9e>
  10744. 800462c: 68fb ldr r3, [r7, #12]
  10745. 800462e: 2201 movs r2, #1
  10746. 8004630: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10747. huart->pRxBuffPtr = pData;
  10748. 8004634: 68fb ldr r3, [r7, #12]
  10749. 8004636: 68ba ldr r2, [r7, #8]
  10750. 8004638: 629a str r2, [r3, #40] ; 0x28
  10751. huart->RxXferSize = Size;
  10752. 800463a: 68fb ldr r3, [r7, #12]
  10753. 800463c: 88fa ldrh r2, [r7, #6]
  10754. 800463e: 859a strh r2, [r3, #44] ; 0x2c
  10755. huart->RxXferCount = Size;
  10756. 8004640: 68fb ldr r3, [r7, #12]
  10757. 8004642: 88fa ldrh r2, [r7, #6]
  10758. 8004644: 85da strh r2, [r3, #46] ; 0x2e
  10759. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10760. 8004646: 68fb ldr r3, [r7, #12]
  10761. 8004648: 2200 movs r2, #0
  10762. 800464a: 63da str r2, [r3, #60] ; 0x3c
  10763. huart->RxState = HAL_UART_STATE_BUSY_RX;
  10764. 800464c: 68fb ldr r3, [r7, #12]
  10765. 800464e: 2222 movs r2, #34 ; 0x22
  10766. 8004650: f883 203a strb.w r2, [r3, #58] ; 0x3a
  10767. /* Process Unlocked */
  10768. __HAL_UNLOCK(huart);
  10769. 8004654: 68fb ldr r3, [r7, #12]
  10770. 8004656: 2200 movs r2, #0
  10771. 8004658: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10772. /* Enable the UART Parity Error Interrupt */
  10773. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  10774. 800465c: 68fb ldr r3, [r7, #12]
  10775. 800465e: 681b ldr r3, [r3, #0]
  10776. 8004660: 68da ldr r2, [r3, #12]
  10777. 8004662: 68fb ldr r3, [r7, #12]
  10778. 8004664: 681b ldr r3, [r3, #0]
  10779. 8004666: f442 7280 orr.w r2, r2, #256 ; 0x100
  10780. 800466a: 60da str r2, [r3, #12]
  10781. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  10782. __HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
  10783. 800466c: 68fb ldr r3, [r7, #12]
  10784. 800466e: 681b ldr r3, [r3, #0]
  10785. 8004670: 695a ldr r2, [r3, #20]
  10786. 8004672: 68fb ldr r3, [r7, #12]
  10787. 8004674: 681b ldr r3, [r3, #0]
  10788. 8004676: f042 0201 orr.w r2, r2, #1
  10789. 800467a: 615a str r2, [r3, #20]
  10790. /* Enable the UART Data Register not empty Interrupt */
  10791. __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE);
  10792. 800467c: 68fb ldr r3, [r7, #12]
  10793. 800467e: 681b ldr r3, [r3, #0]
  10794. 8004680: 68da ldr r2, [r3, #12]
  10795. 8004682: 68fb ldr r3, [r7, #12]
  10796. 8004684: 681b ldr r3, [r3, #0]
  10797. 8004686: f042 0220 orr.w r2, r2, #32
  10798. 800468a: 60da str r2, [r3, #12]
  10799. return HAL_OK;
  10800. 800468c: 2300 movs r3, #0
  10801. 800468e: e000 b.n 8004692 <HAL_UART_Receive_IT+0x9e>
  10802. }
  10803. else
  10804. {
  10805. return HAL_BUSY;
  10806. 8004690: 2302 movs r3, #2
  10807. }
  10808. }
  10809. 8004692: 4618 mov r0, r3
  10810. 8004694: 3714 adds r7, #20
  10811. 8004696: 46bd mov sp, r7
  10812. 8004698: bc80 pop {r7}
  10813. 800469a: 4770 bx lr
  10814. 0800469c <HAL_UART_Transmit_DMA>:
  10815. * @param pData Pointer to data buffer (u8 or u16 data elements).
  10816. * @param Size Amount of data elements (u8 or u16) to be sent
  10817. * @retval HAL status
  10818. */
  10819. HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  10820. {
  10821. 800469c: b580 push {r7, lr}
  10822. 800469e: b086 sub sp, #24
  10823. 80046a0: af00 add r7, sp, #0
  10824. 80046a2: 60f8 str r0, [r7, #12]
  10825. 80046a4: 60b9 str r1, [r7, #8]
  10826. 80046a6: 4613 mov r3, r2
  10827. 80046a8: 80fb strh r3, [r7, #6]
  10828. uint32_t *tmp;
  10829. /* Check that a Tx process is not already ongoing */
  10830. if (huart->gState == HAL_UART_STATE_READY)
  10831. 80046aa: 68fb ldr r3, [r7, #12]
  10832. 80046ac: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  10833. 80046b0: b2db uxtb r3, r3
  10834. 80046b2: 2b20 cmp r3, #32
  10835. 80046b4: d153 bne.n 800475e <HAL_UART_Transmit_DMA+0xc2>
  10836. {
  10837. if ((pData == NULL) || (Size == 0U))
  10838. 80046b6: 68bb ldr r3, [r7, #8]
  10839. 80046b8: 2b00 cmp r3, #0
  10840. 80046ba: d002 beq.n 80046c2 <HAL_UART_Transmit_DMA+0x26>
  10841. 80046bc: 88fb ldrh r3, [r7, #6]
  10842. 80046be: 2b00 cmp r3, #0
  10843. 80046c0: d101 bne.n 80046c6 <HAL_UART_Transmit_DMA+0x2a>
  10844. {
  10845. return HAL_ERROR;
  10846. 80046c2: 2301 movs r3, #1
  10847. 80046c4: e04c b.n 8004760 <HAL_UART_Transmit_DMA+0xc4>
  10848. }
  10849. /* Process Locked */
  10850. __HAL_LOCK(huart);
  10851. 80046c6: 68fb ldr r3, [r7, #12]
  10852. 80046c8: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  10853. 80046cc: 2b01 cmp r3, #1
  10854. 80046ce: d101 bne.n 80046d4 <HAL_UART_Transmit_DMA+0x38>
  10855. 80046d0: 2302 movs r3, #2
  10856. 80046d2: e045 b.n 8004760 <HAL_UART_Transmit_DMA+0xc4>
  10857. 80046d4: 68fb ldr r3, [r7, #12]
  10858. 80046d6: 2201 movs r2, #1
  10859. 80046d8: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10860. huart->pTxBuffPtr = pData;
  10861. 80046dc: 68ba ldr r2, [r7, #8]
  10862. 80046de: 68fb ldr r3, [r7, #12]
  10863. 80046e0: 621a str r2, [r3, #32]
  10864. huart->TxXferSize = Size;
  10865. 80046e2: 68fb ldr r3, [r7, #12]
  10866. 80046e4: 88fa ldrh r2, [r7, #6]
  10867. 80046e6: 849a strh r2, [r3, #36] ; 0x24
  10868. huart->TxXferCount = Size;
  10869. 80046e8: 68fb ldr r3, [r7, #12]
  10870. 80046ea: 88fa ldrh r2, [r7, #6]
  10871. 80046ec: 84da strh r2, [r3, #38] ; 0x26
  10872. huart->ErrorCode = HAL_UART_ERROR_NONE;
  10873. 80046ee: 68fb ldr r3, [r7, #12]
  10874. 80046f0: 2200 movs r2, #0
  10875. 80046f2: 63da str r2, [r3, #60] ; 0x3c
  10876. huart->gState = HAL_UART_STATE_BUSY_TX;
  10877. 80046f4: 68fb ldr r3, [r7, #12]
  10878. 80046f6: 2221 movs r2, #33 ; 0x21
  10879. 80046f8: f883 2039 strb.w r2, [r3, #57] ; 0x39
  10880. /* Set the UART DMA transfer complete callback */
  10881. huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt;
  10882. 80046fc: 68fb ldr r3, [r7, #12]
  10883. 80046fe: 6b1b ldr r3, [r3, #48] ; 0x30
  10884. 8004700: 4a19 ldr r2, [pc, #100] ; (8004768 <HAL_UART_Transmit_DMA+0xcc>)
  10885. 8004702: 629a str r2, [r3, #40] ; 0x28
  10886. /* Set the UART DMA Half transfer complete callback */
  10887. huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt;
  10888. 8004704: 68fb ldr r3, [r7, #12]
  10889. 8004706: 6b1b ldr r3, [r3, #48] ; 0x30
  10890. 8004708: 4a18 ldr r2, [pc, #96] ; (800476c <HAL_UART_Transmit_DMA+0xd0>)
  10891. 800470a: 62da str r2, [r3, #44] ; 0x2c
  10892. /* Set the DMA error callback */
  10893. huart->hdmatx->XferErrorCallback = UART_DMAError;
  10894. 800470c: 68fb ldr r3, [r7, #12]
  10895. 800470e: 6b1b ldr r3, [r3, #48] ; 0x30
  10896. 8004710: 4a17 ldr r2, [pc, #92] ; (8004770 <HAL_UART_Transmit_DMA+0xd4>)
  10897. 8004712: 631a str r2, [r3, #48] ; 0x30
  10898. /* Set the DMA abort callback */
  10899. huart->hdmatx->XferAbortCallback = NULL;
  10900. 8004714: 68fb ldr r3, [r7, #12]
  10901. 8004716: 6b1b ldr r3, [r3, #48] ; 0x30
  10902. 8004718: 2200 movs r2, #0
  10903. 800471a: 635a str r2, [r3, #52] ; 0x34
  10904. /* Enable the UART transmit DMA channel */
  10905. tmp = (uint32_t *)&pData;
  10906. 800471c: f107 0308 add.w r3, r7, #8
  10907. 8004720: 617b str r3, [r7, #20]
  10908. HAL_DMA_Start_IT(huart->hdmatx, *(uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size);
  10909. 8004722: 68fb ldr r3, [r7, #12]
  10910. 8004724: 6b18 ldr r0, [r3, #48] ; 0x30
  10911. 8004726: 697b ldr r3, [r7, #20]
  10912. 8004728: 6819 ldr r1, [r3, #0]
  10913. 800472a: 68fb ldr r3, [r7, #12]
  10914. 800472c: 681b ldr r3, [r3, #0]
  10915. 800472e: 3304 adds r3, #4
  10916. 8004730: 461a mov r2, r3
  10917. 8004732: 88fb ldrh r3, [r7, #6]
  10918. 8004734: f7fe f966 bl 8002a04 <HAL_DMA_Start_IT>
  10919. /* Clear the TC flag in the SR register by writing 0 to it */
  10920. __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC);
  10921. 8004738: 68fb ldr r3, [r7, #12]
  10922. 800473a: 681b ldr r3, [r3, #0]
  10923. 800473c: f06f 0240 mvn.w r2, #64 ; 0x40
  10924. 8004740: 601a str r2, [r3, #0]
  10925. /* Process Unlocked */
  10926. __HAL_UNLOCK(huart);
  10927. 8004742: 68fb ldr r3, [r7, #12]
  10928. 8004744: 2200 movs r2, #0
  10929. 8004746: f883 2038 strb.w r2, [r3, #56] ; 0x38
  10930. /* Enable the DMA transfer for transmit request by setting the DMAT bit
  10931. in the UART CR3 register */
  10932. SET_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  10933. 800474a: 68fb ldr r3, [r7, #12]
  10934. 800474c: 681b ldr r3, [r3, #0]
  10935. 800474e: 695a ldr r2, [r3, #20]
  10936. 8004750: 68fb ldr r3, [r7, #12]
  10937. 8004752: 681b ldr r3, [r3, #0]
  10938. 8004754: f042 0280 orr.w r2, r2, #128 ; 0x80
  10939. 8004758: 615a str r2, [r3, #20]
  10940. return HAL_OK;
  10941. 800475a: 2300 movs r3, #0
  10942. 800475c: e000 b.n 8004760 <HAL_UART_Transmit_DMA+0xc4>
  10943. }
  10944. else
  10945. {
  10946. return HAL_BUSY;
  10947. 800475e: 2302 movs r3, #2
  10948. }
  10949. }
  10950. 8004760: 4618 mov r0, r3
  10951. 8004762: 3718 adds r7, #24
  10952. 8004764: 46bd mov sp, r7
  10953. 8004766: bd80 pop {r7, pc}
  10954. 8004768: 080049a3 .word 0x080049a3
  10955. 800476c: 080049f5 .word 0x080049f5
  10956. 8004770: 08004a11 .word 0x08004a11
  10957. 08004774 <HAL_UART_IRQHandler>:
  10958. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  10959. * the configuration information for the specified UART module.
  10960. * @retval None
  10961. */
  10962. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  10963. {
  10964. 8004774: b580 push {r7, lr}
  10965. 8004776: b088 sub sp, #32
  10966. 8004778: af00 add r7, sp, #0
  10967. 800477a: 6078 str r0, [r7, #4]
  10968. uint32_t isrflags = READ_REG(huart->Instance->SR);
  10969. 800477c: 687b ldr r3, [r7, #4]
  10970. 800477e: 681b ldr r3, [r3, #0]
  10971. 8004780: 681b ldr r3, [r3, #0]
  10972. 8004782: 61fb str r3, [r7, #28]
  10973. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  10974. 8004784: 687b ldr r3, [r7, #4]
  10975. 8004786: 681b ldr r3, [r3, #0]
  10976. 8004788: 68db ldr r3, [r3, #12]
  10977. 800478a: 61bb str r3, [r7, #24]
  10978. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  10979. 800478c: 687b ldr r3, [r7, #4]
  10980. 800478e: 681b ldr r3, [r3, #0]
  10981. 8004790: 695b ldr r3, [r3, #20]
  10982. 8004792: 617b str r3, [r7, #20]
  10983. uint32_t errorflags = 0x00U;
  10984. 8004794: 2300 movs r3, #0
  10985. 8004796: 613b str r3, [r7, #16]
  10986. uint32_t dmarequest = 0x00U;
  10987. 8004798: 2300 movs r3, #0
  10988. 800479a: 60fb str r3, [r7, #12]
  10989. /* If no error occurs */
  10990. errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE));
  10991. 800479c: 69fb ldr r3, [r7, #28]
  10992. 800479e: f003 030f and.w r3, r3, #15
  10993. 80047a2: 613b str r3, [r7, #16]
  10994. if (errorflags == RESET)
  10995. 80047a4: 693b ldr r3, [r7, #16]
  10996. 80047a6: 2b00 cmp r3, #0
  10997. 80047a8: d10d bne.n 80047c6 <HAL_UART_IRQHandler+0x52>
  10998. {
  10999. /* UART in mode Receiver -------------------------------------------------*/
  11000. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  11001. 80047aa: 69fb ldr r3, [r7, #28]
  11002. 80047ac: f003 0320 and.w r3, r3, #32
  11003. 80047b0: 2b00 cmp r3, #0
  11004. 80047b2: d008 beq.n 80047c6 <HAL_UART_IRQHandler+0x52>
  11005. 80047b4: 69bb ldr r3, [r7, #24]
  11006. 80047b6: f003 0320 and.w r3, r3, #32
  11007. 80047ba: 2b00 cmp r3, #0
  11008. 80047bc: d003 beq.n 80047c6 <HAL_UART_IRQHandler+0x52>
  11009. {
  11010. UART_Receive_IT(huart);
  11011. 80047be: 6878 ldr r0, [r7, #4]
  11012. 80047c0: f000 fa6d bl 8004c9e <UART_Receive_IT>
  11013. return;
  11014. 80047c4: e0cc b.n 8004960 <HAL_UART_IRQHandler+0x1ec>
  11015. }
  11016. }
  11017. /* If some errors occur */
  11018. if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET)))
  11019. 80047c6: 693b ldr r3, [r7, #16]
  11020. 80047c8: 2b00 cmp r3, #0
  11021. 80047ca: f000 80ab beq.w 8004924 <HAL_UART_IRQHandler+0x1b0>
  11022. 80047ce: 697b ldr r3, [r7, #20]
  11023. 80047d0: f003 0301 and.w r3, r3, #1
  11024. 80047d4: 2b00 cmp r3, #0
  11025. 80047d6: d105 bne.n 80047e4 <HAL_UART_IRQHandler+0x70>
  11026. 80047d8: 69bb ldr r3, [r7, #24]
  11027. 80047da: f403 7390 and.w r3, r3, #288 ; 0x120
  11028. 80047de: 2b00 cmp r3, #0
  11029. 80047e0: f000 80a0 beq.w 8004924 <HAL_UART_IRQHandler+0x1b0>
  11030. {
  11031. /* UART parity error interrupt occurred ----------------------------------*/
  11032. if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET))
  11033. 80047e4: 69fb ldr r3, [r7, #28]
  11034. 80047e6: f003 0301 and.w r3, r3, #1
  11035. 80047ea: 2b00 cmp r3, #0
  11036. 80047ec: d00a beq.n 8004804 <HAL_UART_IRQHandler+0x90>
  11037. 80047ee: 69bb ldr r3, [r7, #24]
  11038. 80047f0: f403 7380 and.w r3, r3, #256 ; 0x100
  11039. 80047f4: 2b00 cmp r3, #0
  11040. 80047f6: d005 beq.n 8004804 <HAL_UART_IRQHandler+0x90>
  11041. {
  11042. huart->ErrorCode |= HAL_UART_ERROR_PE;
  11043. 80047f8: 687b ldr r3, [r7, #4]
  11044. 80047fa: 6bdb ldr r3, [r3, #60] ; 0x3c
  11045. 80047fc: f043 0201 orr.w r2, r3, #1
  11046. 8004800: 687b ldr r3, [r7, #4]
  11047. 8004802: 63da str r2, [r3, #60] ; 0x3c
  11048. }
  11049. /* UART noise error interrupt occurred -----------------------------------*/
  11050. if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  11051. 8004804: 69fb ldr r3, [r7, #28]
  11052. 8004806: f003 0304 and.w r3, r3, #4
  11053. 800480a: 2b00 cmp r3, #0
  11054. 800480c: d00a beq.n 8004824 <HAL_UART_IRQHandler+0xb0>
  11055. 800480e: 697b ldr r3, [r7, #20]
  11056. 8004810: f003 0301 and.w r3, r3, #1
  11057. 8004814: 2b00 cmp r3, #0
  11058. 8004816: d005 beq.n 8004824 <HAL_UART_IRQHandler+0xb0>
  11059. {
  11060. huart->ErrorCode |= HAL_UART_ERROR_NE;
  11061. 8004818: 687b ldr r3, [r7, #4]
  11062. 800481a: 6bdb ldr r3, [r3, #60] ; 0x3c
  11063. 800481c: f043 0202 orr.w r2, r3, #2
  11064. 8004820: 687b ldr r3, [r7, #4]
  11065. 8004822: 63da str r2, [r3, #60] ; 0x3c
  11066. }
  11067. /* UART frame error interrupt occurred -----------------------------------*/
  11068. if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  11069. 8004824: 69fb ldr r3, [r7, #28]
  11070. 8004826: f003 0302 and.w r3, r3, #2
  11071. 800482a: 2b00 cmp r3, #0
  11072. 800482c: d00a beq.n 8004844 <HAL_UART_IRQHandler+0xd0>
  11073. 800482e: 697b ldr r3, [r7, #20]
  11074. 8004830: f003 0301 and.w r3, r3, #1
  11075. 8004834: 2b00 cmp r3, #0
  11076. 8004836: d005 beq.n 8004844 <HAL_UART_IRQHandler+0xd0>
  11077. {
  11078. huart->ErrorCode |= HAL_UART_ERROR_FE;
  11079. 8004838: 687b ldr r3, [r7, #4]
  11080. 800483a: 6bdb ldr r3, [r3, #60] ; 0x3c
  11081. 800483c: f043 0204 orr.w r2, r3, #4
  11082. 8004840: 687b ldr r3, [r7, #4]
  11083. 8004842: 63da str r2, [r3, #60] ; 0x3c
  11084. }
  11085. /* UART Over-Run interrupt occurred --------------------------------------*/
  11086. if (((isrflags & USART_SR_ORE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  11087. 8004844: 69fb ldr r3, [r7, #28]
  11088. 8004846: f003 0308 and.w r3, r3, #8
  11089. 800484a: 2b00 cmp r3, #0
  11090. 800484c: d00a beq.n 8004864 <HAL_UART_IRQHandler+0xf0>
  11091. 800484e: 697b ldr r3, [r7, #20]
  11092. 8004850: f003 0301 and.w r3, r3, #1
  11093. 8004854: 2b00 cmp r3, #0
  11094. 8004856: d005 beq.n 8004864 <HAL_UART_IRQHandler+0xf0>
  11095. {
  11096. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  11097. 8004858: 687b ldr r3, [r7, #4]
  11098. 800485a: 6bdb ldr r3, [r3, #60] ; 0x3c
  11099. 800485c: f043 0208 orr.w r2, r3, #8
  11100. 8004860: 687b ldr r3, [r7, #4]
  11101. 8004862: 63da str r2, [r3, #60] ; 0x3c
  11102. }
  11103. /* Call UART Error Call back function if need be --------------------------*/
  11104. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  11105. 8004864: 687b ldr r3, [r7, #4]
  11106. 8004866: 6bdb ldr r3, [r3, #60] ; 0x3c
  11107. 8004868: 2b00 cmp r3, #0
  11108. 800486a: d078 beq.n 800495e <HAL_UART_IRQHandler+0x1ea>
  11109. {
  11110. /* UART in mode Receiver -----------------------------------------------*/
  11111. if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  11112. 800486c: 69fb ldr r3, [r7, #28]
  11113. 800486e: f003 0320 and.w r3, r3, #32
  11114. 8004872: 2b00 cmp r3, #0
  11115. 8004874: d007 beq.n 8004886 <HAL_UART_IRQHandler+0x112>
  11116. 8004876: 69bb ldr r3, [r7, #24]
  11117. 8004878: f003 0320 and.w r3, r3, #32
  11118. 800487c: 2b00 cmp r3, #0
  11119. 800487e: d002 beq.n 8004886 <HAL_UART_IRQHandler+0x112>
  11120. {
  11121. UART_Receive_IT(huart);
  11122. 8004880: 6878 ldr r0, [r7, #4]
  11123. 8004882: f000 fa0c bl 8004c9e <UART_Receive_IT>
  11124. }
  11125. /* If Overrun error occurs, or if any error occurs in DMA mode reception,
  11126. consider error as blocking */
  11127. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  11128. 8004886: 687b ldr r3, [r7, #4]
  11129. 8004888: 681b ldr r3, [r3, #0]
  11130. 800488a: 695b ldr r3, [r3, #20]
  11131. 800488c: f003 0340 and.w r3, r3, #64 ; 0x40
  11132. 8004890: 2b00 cmp r3, #0
  11133. 8004892: bf14 ite ne
  11134. 8004894: 2301 movne r3, #1
  11135. 8004896: 2300 moveq r3, #0
  11136. 8004898: b2db uxtb r3, r3
  11137. 800489a: 60fb str r3, [r7, #12]
  11138. if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest)
  11139. 800489c: 687b ldr r3, [r7, #4]
  11140. 800489e: 6bdb ldr r3, [r3, #60] ; 0x3c
  11141. 80048a0: f003 0308 and.w r3, r3, #8
  11142. 80048a4: 2b00 cmp r3, #0
  11143. 80048a6: d102 bne.n 80048ae <HAL_UART_IRQHandler+0x13a>
  11144. 80048a8: 68fb ldr r3, [r7, #12]
  11145. 80048aa: 2b00 cmp r3, #0
  11146. 80048ac: d031 beq.n 8004912 <HAL_UART_IRQHandler+0x19e>
  11147. {
  11148. /* Blocking error : transfer is aborted
  11149. Set the UART state ready to be able to start again the process,
  11150. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  11151. UART_EndRxTransfer(huart);
  11152. 80048ae: 6878 ldr r0, [r7, #4]
  11153. 80048b0: f000 f957 bl 8004b62 <UART_EndRxTransfer>
  11154. /* Disable the UART DMA Rx request if enabled */
  11155. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11156. 80048b4: 687b ldr r3, [r7, #4]
  11157. 80048b6: 681b ldr r3, [r3, #0]
  11158. 80048b8: 695b ldr r3, [r3, #20]
  11159. 80048ba: f003 0340 and.w r3, r3, #64 ; 0x40
  11160. 80048be: 2b00 cmp r3, #0
  11161. 80048c0: d023 beq.n 800490a <HAL_UART_IRQHandler+0x196>
  11162. {
  11163. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  11164. 80048c2: 687b ldr r3, [r7, #4]
  11165. 80048c4: 681b ldr r3, [r3, #0]
  11166. 80048c6: 695a ldr r2, [r3, #20]
  11167. 80048c8: 687b ldr r3, [r7, #4]
  11168. 80048ca: 681b ldr r3, [r3, #0]
  11169. 80048cc: f022 0240 bic.w r2, r2, #64 ; 0x40
  11170. 80048d0: 615a str r2, [r3, #20]
  11171. /* Abort the UART DMA Rx channel */
  11172. if (huart->hdmarx != NULL)
  11173. 80048d2: 687b ldr r3, [r7, #4]
  11174. 80048d4: 6b5b ldr r3, [r3, #52] ; 0x34
  11175. 80048d6: 2b00 cmp r3, #0
  11176. 80048d8: d013 beq.n 8004902 <HAL_UART_IRQHandler+0x18e>
  11177. {
  11178. /* Set the UART DMA Abort callback :
  11179. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  11180. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  11181. 80048da: 687b ldr r3, [r7, #4]
  11182. 80048dc: 6b5b ldr r3, [r3, #52] ; 0x34
  11183. 80048de: 4a22 ldr r2, [pc, #136] ; (8004968 <HAL_UART_IRQHandler+0x1f4>)
  11184. 80048e0: 635a str r2, [r3, #52] ; 0x34
  11185. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  11186. 80048e2: 687b ldr r3, [r7, #4]
  11187. 80048e4: 6b5b ldr r3, [r3, #52] ; 0x34
  11188. 80048e6: 4618 mov r0, r3
  11189. 80048e8: f7fe f8ec bl 8002ac4 <HAL_DMA_Abort_IT>
  11190. 80048ec: 4603 mov r3, r0
  11191. 80048ee: 2b00 cmp r3, #0
  11192. 80048f0: d016 beq.n 8004920 <HAL_UART_IRQHandler+0x1ac>
  11193. {
  11194. /* Call Directly XferAbortCallback function in case of error */
  11195. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  11196. 80048f2: 687b ldr r3, [r7, #4]
  11197. 80048f4: 6b5b ldr r3, [r3, #52] ; 0x34
  11198. 80048f6: 6b5b ldr r3, [r3, #52] ; 0x34
  11199. 80048f8: 687a ldr r2, [r7, #4]
  11200. 80048fa: 6b52 ldr r2, [r2, #52] ; 0x34
  11201. 80048fc: 4610 mov r0, r2
  11202. 80048fe: 4798 blx r3
  11203. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11204. 8004900: e00e b.n 8004920 <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. 8004902: 6878 ldr r0, [r7, #4]
  11212. 8004904: f000 f844 bl 8004990 <HAL_UART_ErrorCallback>
  11213. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11214. 8004908: e00a b.n 8004920 <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. 800490a: 6878 ldr r0, [r7, #4]
  11222. 800490c: f000 f840 bl 8004990 <HAL_UART_ErrorCallback>
  11223. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11224. 8004910: e006 b.n 8004920 <HAL_UART_IRQHandler+0x1ac>
  11225. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11226. /*Call registered error callback*/
  11227. huart->ErrorCallback(huart);
  11228. #else
  11229. /*Call legacy weak error callback*/
  11230. HAL_UART_ErrorCallback(huart);
  11231. 8004912: 6878 ldr r0, [r7, #4]
  11232. 8004914: f000 f83c bl 8004990 <HAL_UART_ErrorCallback>
  11233. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11234. huart->ErrorCode = HAL_UART_ERROR_NONE;
  11235. 8004918: 687b ldr r3, [r7, #4]
  11236. 800491a: 2200 movs r2, #0
  11237. 800491c: 63da str r2, [r3, #60] ; 0x3c
  11238. }
  11239. }
  11240. return;
  11241. 800491e: e01e b.n 800495e <HAL_UART_IRQHandler+0x1ea>
  11242. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  11243. 8004920: bf00 nop
  11244. return;
  11245. 8004922: e01c b.n 800495e <HAL_UART_IRQHandler+0x1ea>
  11246. } /* End if some error occurs */
  11247. /* UART in mode Transmitter ------------------------------------------------*/
  11248. if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET))
  11249. 8004924: 69fb ldr r3, [r7, #28]
  11250. 8004926: f003 0380 and.w r3, r3, #128 ; 0x80
  11251. 800492a: 2b00 cmp r3, #0
  11252. 800492c: d008 beq.n 8004940 <HAL_UART_IRQHandler+0x1cc>
  11253. 800492e: 69bb ldr r3, [r7, #24]
  11254. 8004930: f003 0380 and.w r3, r3, #128 ; 0x80
  11255. 8004934: 2b00 cmp r3, #0
  11256. 8004936: d003 beq.n 8004940 <HAL_UART_IRQHandler+0x1cc>
  11257. {
  11258. UART_Transmit_IT(huart);
  11259. 8004938: 6878 ldr r0, [r7, #4]
  11260. 800493a: f000 f943 bl 8004bc4 <UART_Transmit_IT>
  11261. return;
  11262. 800493e: e00f b.n 8004960 <HAL_UART_IRQHandler+0x1ec>
  11263. }
  11264. /* UART in mode Transmitter end --------------------------------------------*/
  11265. if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET))
  11266. 8004940: 69fb ldr r3, [r7, #28]
  11267. 8004942: f003 0340 and.w r3, r3, #64 ; 0x40
  11268. 8004946: 2b00 cmp r3, #0
  11269. 8004948: d00a beq.n 8004960 <HAL_UART_IRQHandler+0x1ec>
  11270. 800494a: 69bb ldr r3, [r7, #24]
  11271. 800494c: f003 0340 and.w r3, r3, #64 ; 0x40
  11272. 8004950: 2b00 cmp r3, #0
  11273. 8004952: d005 beq.n 8004960 <HAL_UART_IRQHandler+0x1ec>
  11274. {
  11275. UART_EndTransmit_IT(huart);
  11276. 8004954: 6878 ldr r0, [r7, #4]
  11277. 8004956: f000 f98a bl 8004c6e <UART_EndTransmit_IT>
  11278. return;
  11279. 800495a: bf00 nop
  11280. 800495c: e000 b.n 8004960 <HAL_UART_IRQHandler+0x1ec>
  11281. return;
  11282. 800495e: bf00 nop
  11283. }
  11284. }
  11285. 8004960: 3720 adds r7, #32
  11286. 8004962: 46bd mov sp, r7
  11287. 8004964: bd80 pop {r7, pc}
  11288. 8004966: bf00 nop
  11289. 8004968: 08004b9d .word 0x08004b9d
  11290. 0800496c <HAL_UART_TxCpltCallback>:
  11291. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11292. * the configuration information for the specified UART module.
  11293. * @retval None
  11294. */
  11295. __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
  11296. {
  11297. 800496c: b480 push {r7}
  11298. 800496e: b083 sub sp, #12
  11299. 8004970: af00 add r7, sp, #0
  11300. 8004972: 6078 str r0, [r7, #4]
  11301. /* Prevent unused argument(s) compilation warning */
  11302. UNUSED(huart);
  11303. /* NOTE: This function should not be modified, when the callback is needed,
  11304. the HAL_UART_TxCpltCallback could be implemented in the user file
  11305. */
  11306. }
  11307. 8004974: bf00 nop
  11308. 8004976: 370c adds r7, #12
  11309. 8004978: 46bd mov sp, r7
  11310. 800497a: bc80 pop {r7}
  11311. 800497c: 4770 bx lr
  11312. 0800497e <HAL_UART_TxHalfCpltCallback>:
  11313. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11314. * the configuration information for the specified UART module.
  11315. * @retval None
  11316. */
  11317. __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart)
  11318. {
  11319. 800497e: b480 push {r7}
  11320. 8004980: b083 sub sp, #12
  11321. 8004982: af00 add r7, sp, #0
  11322. 8004984: 6078 str r0, [r7, #4]
  11323. /* Prevent unused argument(s) compilation warning */
  11324. UNUSED(huart);
  11325. /* NOTE: This function should not be modified, when the callback is needed,
  11326. the HAL_UART_TxHalfCpltCallback could be implemented in the user file
  11327. */
  11328. }
  11329. 8004986: bf00 nop
  11330. 8004988: 370c adds r7, #12
  11331. 800498a: 46bd mov sp, r7
  11332. 800498c: bc80 pop {r7}
  11333. 800498e: 4770 bx lr
  11334. 08004990 <HAL_UART_ErrorCallback>:
  11335. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11336. * the configuration information for the specified UART module.
  11337. * @retval None
  11338. */
  11339. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  11340. {
  11341. 8004990: b480 push {r7}
  11342. 8004992: b083 sub sp, #12
  11343. 8004994: af00 add r7, sp, #0
  11344. 8004996: 6078 str r0, [r7, #4]
  11345. /* Prevent unused argument(s) compilation warning */
  11346. UNUSED(huart);
  11347. /* NOTE: This function should not be modified, when the callback is needed,
  11348. the HAL_UART_ErrorCallback could be implemented in the user file
  11349. */
  11350. }
  11351. 8004998: bf00 nop
  11352. 800499a: 370c adds r7, #12
  11353. 800499c: 46bd mov sp, r7
  11354. 800499e: bc80 pop {r7}
  11355. 80049a0: 4770 bx lr
  11356. 080049a2 <UART_DMATransmitCplt>:
  11357. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11358. * the configuration information for the specified DMA module.
  11359. * @retval None
  11360. */
  11361. static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma)
  11362. {
  11363. 80049a2: b580 push {r7, lr}
  11364. 80049a4: b084 sub sp, #16
  11365. 80049a6: af00 add r7, sp, #0
  11366. 80049a8: 6078 str r0, [r7, #4]
  11367. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11368. 80049aa: 687b ldr r3, [r7, #4]
  11369. 80049ac: 6a5b ldr r3, [r3, #36] ; 0x24
  11370. 80049ae: 60fb str r3, [r7, #12]
  11371. /* DMA Normal mode*/
  11372. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  11373. 80049b0: 687b ldr r3, [r7, #4]
  11374. 80049b2: 681b ldr r3, [r3, #0]
  11375. 80049b4: 681b ldr r3, [r3, #0]
  11376. 80049b6: f003 0320 and.w r3, r3, #32
  11377. 80049ba: 2b00 cmp r3, #0
  11378. 80049bc: d113 bne.n 80049e6 <UART_DMATransmitCplt+0x44>
  11379. {
  11380. huart->TxXferCount = 0x00U;
  11381. 80049be: 68fb ldr r3, [r7, #12]
  11382. 80049c0: 2200 movs r2, #0
  11383. 80049c2: 84da strh r2, [r3, #38] ; 0x26
  11384. /* Disable the DMA transfer for transmit request by setting the DMAT bit
  11385. in the UART CR3 register */
  11386. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT);
  11387. 80049c4: 68fb ldr r3, [r7, #12]
  11388. 80049c6: 681b ldr r3, [r3, #0]
  11389. 80049c8: 695a ldr r2, [r3, #20]
  11390. 80049ca: 68fb ldr r3, [r7, #12]
  11391. 80049cc: 681b ldr r3, [r3, #0]
  11392. 80049ce: f022 0280 bic.w r2, r2, #128 ; 0x80
  11393. 80049d2: 615a str r2, [r3, #20]
  11394. /* Enable the UART Transmit Complete Interrupt */
  11395. SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  11396. 80049d4: 68fb ldr r3, [r7, #12]
  11397. 80049d6: 681b ldr r3, [r3, #0]
  11398. 80049d8: 68da ldr r2, [r3, #12]
  11399. 80049da: 68fb ldr r3, [r7, #12]
  11400. 80049dc: 681b ldr r3, [r3, #0]
  11401. 80049de: f042 0240 orr.w r2, r2, #64 ; 0x40
  11402. 80049e2: 60da str r2, [r3, #12]
  11403. #else
  11404. /*Call legacy weak Tx complete callback*/
  11405. HAL_UART_TxCpltCallback(huart);
  11406. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11407. }
  11408. }
  11409. 80049e4: e002 b.n 80049ec <UART_DMATransmitCplt+0x4a>
  11410. HAL_UART_TxCpltCallback(huart);
  11411. 80049e6: 68f8 ldr r0, [r7, #12]
  11412. 80049e8: f7ff ffc0 bl 800496c <HAL_UART_TxCpltCallback>
  11413. }
  11414. 80049ec: bf00 nop
  11415. 80049ee: 3710 adds r7, #16
  11416. 80049f0: 46bd mov sp, r7
  11417. 80049f2: bd80 pop {r7, pc}
  11418. 080049f4 <UART_DMATxHalfCplt>:
  11419. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11420. * the configuration information for the specified DMA module.
  11421. * @retval None
  11422. */
  11423. static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma)
  11424. {
  11425. 80049f4: b580 push {r7, lr}
  11426. 80049f6: b084 sub sp, #16
  11427. 80049f8: af00 add r7, sp, #0
  11428. 80049fa: 6078 str r0, [r7, #4]
  11429. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11430. 80049fc: 687b ldr r3, [r7, #4]
  11431. 80049fe: 6a5b ldr r3, [r3, #36] ; 0x24
  11432. 8004a00: 60fb str r3, [r7, #12]
  11433. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11434. /*Call registered Tx complete callback*/
  11435. huart->TxHalfCpltCallback(huart);
  11436. #else
  11437. /*Call legacy weak Tx complete callback*/
  11438. HAL_UART_TxHalfCpltCallback(huart);
  11439. 8004a02: 68f8 ldr r0, [r7, #12]
  11440. 8004a04: f7ff ffbb bl 800497e <HAL_UART_TxHalfCpltCallback>
  11441. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11442. }
  11443. 8004a08: bf00 nop
  11444. 8004a0a: 3710 adds r7, #16
  11445. 8004a0c: 46bd mov sp, r7
  11446. 8004a0e: bd80 pop {r7, pc}
  11447. 08004a10 <UART_DMAError>:
  11448. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11449. * the configuration information for the specified DMA module.
  11450. * @retval None
  11451. */
  11452. static void UART_DMAError(DMA_HandleTypeDef *hdma)
  11453. {
  11454. 8004a10: b580 push {r7, lr}
  11455. 8004a12: b084 sub sp, #16
  11456. 8004a14: af00 add r7, sp, #0
  11457. 8004a16: 6078 str r0, [r7, #4]
  11458. uint32_t dmarequest = 0x00U;
  11459. 8004a18: 2300 movs r3, #0
  11460. 8004a1a: 60fb str r3, [r7, #12]
  11461. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11462. 8004a1c: 687b ldr r3, [r7, #4]
  11463. 8004a1e: 6a5b ldr r3, [r3, #36] ; 0x24
  11464. 8004a20: 60bb str r3, [r7, #8]
  11465. /* Stop UART DMA Tx request if ongoing */
  11466. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT);
  11467. 8004a22: 68bb ldr r3, [r7, #8]
  11468. 8004a24: 681b ldr r3, [r3, #0]
  11469. 8004a26: 695b ldr r3, [r3, #20]
  11470. 8004a28: f003 0380 and.w r3, r3, #128 ; 0x80
  11471. 8004a2c: 2b00 cmp r3, #0
  11472. 8004a2e: bf14 ite ne
  11473. 8004a30: 2301 movne r3, #1
  11474. 8004a32: 2300 moveq r3, #0
  11475. 8004a34: b2db uxtb r3, r3
  11476. 8004a36: 60fb str r3, [r7, #12]
  11477. if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest)
  11478. 8004a38: 68bb ldr r3, [r7, #8]
  11479. 8004a3a: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11480. 8004a3e: b2db uxtb r3, r3
  11481. 8004a40: 2b21 cmp r3, #33 ; 0x21
  11482. 8004a42: d108 bne.n 8004a56 <UART_DMAError+0x46>
  11483. 8004a44: 68fb ldr r3, [r7, #12]
  11484. 8004a46: 2b00 cmp r3, #0
  11485. 8004a48: d005 beq.n 8004a56 <UART_DMAError+0x46>
  11486. {
  11487. huart->TxXferCount = 0x00U;
  11488. 8004a4a: 68bb ldr r3, [r7, #8]
  11489. 8004a4c: 2200 movs r2, #0
  11490. 8004a4e: 84da strh r2, [r3, #38] ; 0x26
  11491. UART_EndTxTransfer(huart);
  11492. 8004a50: 68b8 ldr r0, [r7, #8]
  11493. 8004a52: f000 f871 bl 8004b38 <UART_EndTxTransfer>
  11494. }
  11495. /* Stop UART DMA Rx request if ongoing */
  11496. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  11497. 8004a56: 68bb ldr r3, [r7, #8]
  11498. 8004a58: 681b ldr r3, [r3, #0]
  11499. 8004a5a: 695b ldr r3, [r3, #20]
  11500. 8004a5c: f003 0340 and.w r3, r3, #64 ; 0x40
  11501. 8004a60: 2b00 cmp r3, #0
  11502. 8004a62: bf14 ite ne
  11503. 8004a64: 2301 movne r3, #1
  11504. 8004a66: 2300 moveq r3, #0
  11505. 8004a68: b2db uxtb r3, r3
  11506. 8004a6a: 60fb str r3, [r7, #12]
  11507. if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest)
  11508. 8004a6c: 68bb ldr r3, [r7, #8]
  11509. 8004a6e: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  11510. 8004a72: b2db uxtb r3, r3
  11511. 8004a74: 2b22 cmp r3, #34 ; 0x22
  11512. 8004a76: d108 bne.n 8004a8a <UART_DMAError+0x7a>
  11513. 8004a78: 68fb ldr r3, [r7, #12]
  11514. 8004a7a: 2b00 cmp r3, #0
  11515. 8004a7c: d005 beq.n 8004a8a <UART_DMAError+0x7a>
  11516. {
  11517. huart->RxXferCount = 0x00U;
  11518. 8004a7e: 68bb ldr r3, [r7, #8]
  11519. 8004a80: 2200 movs r2, #0
  11520. 8004a82: 85da strh r2, [r3, #46] ; 0x2e
  11521. UART_EndRxTransfer(huart);
  11522. 8004a84: 68b8 ldr r0, [r7, #8]
  11523. 8004a86: f000 f86c bl 8004b62 <UART_EndRxTransfer>
  11524. }
  11525. huart->ErrorCode |= HAL_UART_ERROR_DMA;
  11526. 8004a8a: 68bb ldr r3, [r7, #8]
  11527. 8004a8c: 6bdb ldr r3, [r3, #60] ; 0x3c
  11528. 8004a8e: f043 0210 orr.w r2, r3, #16
  11529. 8004a92: 68bb ldr r3, [r7, #8]
  11530. 8004a94: 63da str r2, [r3, #60] ; 0x3c
  11531. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11532. /*Call registered error callback*/
  11533. huart->ErrorCallback(huart);
  11534. #else
  11535. /*Call legacy weak error callback*/
  11536. HAL_UART_ErrorCallback(huart);
  11537. 8004a96: 68b8 ldr r0, [r7, #8]
  11538. 8004a98: f7ff ff7a bl 8004990 <HAL_UART_ErrorCallback>
  11539. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11540. }
  11541. 8004a9c: bf00 nop
  11542. 8004a9e: 3710 adds r7, #16
  11543. 8004aa0: 46bd mov sp, r7
  11544. 8004aa2: bd80 pop {r7, pc}
  11545. 08004aa4 <UART_WaitOnFlagUntilTimeout>:
  11546. * @param Tickstart Tick start value
  11547. * @param Timeout Timeout duration
  11548. * @retval HAL status
  11549. */
  11550. static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
  11551. {
  11552. 8004aa4: b580 push {r7, lr}
  11553. 8004aa6: b084 sub sp, #16
  11554. 8004aa8: af00 add r7, sp, #0
  11555. 8004aaa: 60f8 str r0, [r7, #12]
  11556. 8004aac: 60b9 str r1, [r7, #8]
  11557. 8004aae: 603b str r3, [r7, #0]
  11558. 8004ab0: 4613 mov r3, r2
  11559. 8004ab2: 71fb strb r3, [r7, #7]
  11560. /* Wait until flag is set */
  11561. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  11562. 8004ab4: e02c b.n 8004b10 <UART_WaitOnFlagUntilTimeout+0x6c>
  11563. {
  11564. /* Check for the Timeout */
  11565. if (Timeout != HAL_MAX_DELAY)
  11566. 8004ab6: 69bb ldr r3, [r7, #24]
  11567. 8004ab8: f1b3 3fff cmp.w r3, #4294967295
  11568. 8004abc: d028 beq.n 8004b10 <UART_WaitOnFlagUntilTimeout+0x6c>
  11569. {
  11570. if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout))
  11571. 8004abe: 69bb ldr r3, [r7, #24]
  11572. 8004ac0: 2b00 cmp r3, #0
  11573. 8004ac2: d007 beq.n 8004ad4 <UART_WaitOnFlagUntilTimeout+0x30>
  11574. 8004ac4: f7fd f958 bl 8001d78 <HAL_GetTick>
  11575. 8004ac8: 4602 mov r2, r0
  11576. 8004aca: 683b ldr r3, [r7, #0]
  11577. 8004acc: 1ad3 subs r3, r2, r3
  11578. 8004ace: 69ba ldr r2, [r7, #24]
  11579. 8004ad0: 429a cmp r2, r3
  11580. 8004ad2: d21d bcs.n 8004b10 <UART_WaitOnFlagUntilTimeout+0x6c>
  11581. {
  11582. /* Disable TXE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts for the interrupt process */
  11583. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE));
  11584. 8004ad4: 68fb ldr r3, [r7, #12]
  11585. 8004ad6: 681b ldr r3, [r3, #0]
  11586. 8004ad8: 68da ldr r2, [r3, #12]
  11587. 8004ada: 68fb ldr r3, [r7, #12]
  11588. 8004adc: 681b ldr r3, [r3, #0]
  11589. 8004ade: f422 72d0 bic.w r2, r2, #416 ; 0x1a0
  11590. 8004ae2: 60da str r2, [r3, #12]
  11591. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  11592. 8004ae4: 68fb ldr r3, [r7, #12]
  11593. 8004ae6: 681b ldr r3, [r3, #0]
  11594. 8004ae8: 695a ldr r2, [r3, #20]
  11595. 8004aea: 68fb ldr r3, [r7, #12]
  11596. 8004aec: 681b ldr r3, [r3, #0]
  11597. 8004aee: f022 0201 bic.w r2, r2, #1
  11598. 8004af2: 615a str r2, [r3, #20]
  11599. huart->gState = HAL_UART_STATE_READY;
  11600. 8004af4: 68fb ldr r3, [r7, #12]
  11601. 8004af6: 2220 movs r2, #32
  11602. 8004af8: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11603. huart->RxState = HAL_UART_STATE_READY;
  11604. 8004afc: 68fb ldr r3, [r7, #12]
  11605. 8004afe: 2220 movs r2, #32
  11606. 8004b00: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11607. /* Process Unlocked */
  11608. __HAL_UNLOCK(huart);
  11609. 8004b04: 68fb ldr r3, [r7, #12]
  11610. 8004b06: 2200 movs r2, #0
  11611. 8004b08: f883 2038 strb.w r2, [r3, #56] ; 0x38
  11612. return HAL_TIMEOUT;
  11613. 8004b0c: 2303 movs r3, #3
  11614. 8004b0e: e00f b.n 8004b30 <UART_WaitOnFlagUntilTimeout+0x8c>
  11615. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  11616. 8004b10: 68fb ldr r3, [r7, #12]
  11617. 8004b12: 681b ldr r3, [r3, #0]
  11618. 8004b14: 681a ldr r2, [r3, #0]
  11619. 8004b16: 68bb ldr r3, [r7, #8]
  11620. 8004b18: 4013 ands r3, r2
  11621. 8004b1a: 68ba ldr r2, [r7, #8]
  11622. 8004b1c: 429a cmp r2, r3
  11623. 8004b1e: bf0c ite eq
  11624. 8004b20: 2301 moveq r3, #1
  11625. 8004b22: 2300 movne r3, #0
  11626. 8004b24: b2db uxtb r3, r3
  11627. 8004b26: 461a mov r2, r3
  11628. 8004b28: 79fb ldrb r3, [r7, #7]
  11629. 8004b2a: 429a cmp r2, r3
  11630. 8004b2c: d0c3 beq.n 8004ab6 <UART_WaitOnFlagUntilTimeout+0x12>
  11631. }
  11632. }
  11633. }
  11634. return HAL_OK;
  11635. 8004b2e: 2300 movs r3, #0
  11636. }
  11637. 8004b30: 4618 mov r0, r3
  11638. 8004b32: 3710 adds r7, #16
  11639. 8004b34: 46bd mov sp, r7
  11640. 8004b36: bd80 pop {r7, pc}
  11641. 08004b38 <UART_EndTxTransfer>:
  11642. * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion).
  11643. * @param huart UART handle.
  11644. * @retval None
  11645. */
  11646. static void UART_EndTxTransfer(UART_HandleTypeDef *huart)
  11647. {
  11648. 8004b38: b480 push {r7}
  11649. 8004b3a: b083 sub sp, #12
  11650. 8004b3c: af00 add r7, sp, #0
  11651. 8004b3e: 6078 str r0, [r7, #4]
  11652. /* Disable TXEIE and TCIE interrupts */
  11653. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE));
  11654. 8004b40: 687b ldr r3, [r7, #4]
  11655. 8004b42: 681b ldr r3, [r3, #0]
  11656. 8004b44: 68da ldr r2, [r3, #12]
  11657. 8004b46: 687b ldr r3, [r7, #4]
  11658. 8004b48: 681b ldr r3, [r3, #0]
  11659. 8004b4a: f022 02c0 bic.w r2, r2, #192 ; 0xc0
  11660. 8004b4e: 60da str r2, [r3, #12]
  11661. /* At end of Tx process, restore huart->gState to Ready */
  11662. huart->gState = HAL_UART_STATE_READY;
  11663. 8004b50: 687b ldr r3, [r7, #4]
  11664. 8004b52: 2220 movs r2, #32
  11665. 8004b54: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11666. }
  11667. 8004b58: bf00 nop
  11668. 8004b5a: 370c adds r7, #12
  11669. 8004b5c: 46bd mov sp, r7
  11670. 8004b5e: bc80 pop {r7}
  11671. 8004b60: 4770 bx lr
  11672. 08004b62 <UART_EndRxTransfer>:
  11673. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  11674. * @param huart UART handle.
  11675. * @retval None
  11676. */
  11677. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  11678. {
  11679. 8004b62: b480 push {r7}
  11680. 8004b64: b083 sub sp, #12
  11681. 8004b66: af00 add r7, sp, #0
  11682. 8004b68: 6078 str r0, [r7, #4]
  11683. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  11684. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
  11685. 8004b6a: 687b ldr r3, [r7, #4]
  11686. 8004b6c: 681b ldr r3, [r3, #0]
  11687. 8004b6e: 68da ldr r2, [r3, #12]
  11688. 8004b70: 687b ldr r3, [r7, #4]
  11689. 8004b72: 681b ldr r3, [r3, #0]
  11690. 8004b74: f422 7290 bic.w r2, r2, #288 ; 0x120
  11691. 8004b78: 60da str r2, [r3, #12]
  11692. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  11693. 8004b7a: 687b ldr r3, [r7, #4]
  11694. 8004b7c: 681b ldr r3, [r3, #0]
  11695. 8004b7e: 695a ldr r2, [r3, #20]
  11696. 8004b80: 687b ldr r3, [r7, #4]
  11697. 8004b82: 681b ldr r3, [r3, #0]
  11698. 8004b84: f022 0201 bic.w r2, r2, #1
  11699. 8004b88: 615a str r2, [r3, #20]
  11700. /* At end of Rx process, restore huart->RxState to Ready */
  11701. huart->RxState = HAL_UART_STATE_READY;
  11702. 8004b8a: 687b ldr r3, [r7, #4]
  11703. 8004b8c: 2220 movs r2, #32
  11704. 8004b8e: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11705. }
  11706. 8004b92: bf00 nop
  11707. 8004b94: 370c adds r7, #12
  11708. 8004b96: 46bd mov sp, r7
  11709. 8004b98: bc80 pop {r7}
  11710. 8004b9a: 4770 bx lr
  11711. 08004b9c <UART_DMAAbortOnError>:
  11712. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  11713. * the configuration information for the specified DMA module.
  11714. * @retval None
  11715. */
  11716. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  11717. {
  11718. 8004b9c: b580 push {r7, lr}
  11719. 8004b9e: b084 sub sp, #16
  11720. 8004ba0: af00 add r7, sp, #0
  11721. 8004ba2: 6078 str r0, [r7, #4]
  11722. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  11723. 8004ba4: 687b ldr r3, [r7, #4]
  11724. 8004ba6: 6a5b ldr r3, [r3, #36] ; 0x24
  11725. 8004ba8: 60fb str r3, [r7, #12]
  11726. huart->RxXferCount = 0x00U;
  11727. 8004baa: 68fb ldr r3, [r7, #12]
  11728. 8004bac: 2200 movs r2, #0
  11729. 8004bae: 85da strh r2, [r3, #46] ; 0x2e
  11730. huart->TxXferCount = 0x00U;
  11731. 8004bb0: 68fb ldr r3, [r7, #12]
  11732. 8004bb2: 2200 movs r2, #0
  11733. 8004bb4: 84da strh r2, [r3, #38] ; 0x26
  11734. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11735. /*Call registered error callback*/
  11736. huart->ErrorCallback(huart);
  11737. #else
  11738. /*Call legacy weak error callback*/
  11739. HAL_UART_ErrorCallback(huart);
  11740. 8004bb6: 68f8 ldr r0, [r7, #12]
  11741. 8004bb8: f7ff feea bl 8004990 <HAL_UART_ErrorCallback>
  11742. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11743. }
  11744. 8004bbc: bf00 nop
  11745. 8004bbe: 3710 adds r7, #16
  11746. 8004bc0: 46bd mov sp, r7
  11747. 8004bc2: bd80 pop {r7, pc}
  11748. 08004bc4 <UART_Transmit_IT>:
  11749. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11750. * the configuration information for the specified UART module.
  11751. * @retval HAL status
  11752. */
  11753. static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart)
  11754. {
  11755. 8004bc4: b480 push {r7}
  11756. 8004bc6: b085 sub sp, #20
  11757. 8004bc8: af00 add r7, sp, #0
  11758. 8004bca: 6078 str r0, [r7, #4]
  11759. uint16_t *tmp;
  11760. /* Check that a Tx process is ongoing */
  11761. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  11762. 8004bcc: 687b ldr r3, [r7, #4]
  11763. 8004bce: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11764. 8004bd2: b2db uxtb r3, r3
  11765. 8004bd4: 2b21 cmp r3, #33 ; 0x21
  11766. 8004bd6: d144 bne.n 8004c62 <UART_Transmit_IT+0x9e>
  11767. {
  11768. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  11769. 8004bd8: 687b ldr r3, [r7, #4]
  11770. 8004bda: 689b ldr r3, [r3, #8]
  11771. 8004bdc: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  11772. 8004be0: d11a bne.n 8004c18 <UART_Transmit_IT+0x54>
  11773. {
  11774. tmp = (uint16_t *) huart->pTxBuffPtr;
  11775. 8004be2: 687b ldr r3, [r7, #4]
  11776. 8004be4: 6a1b ldr r3, [r3, #32]
  11777. 8004be6: 60fb str r3, [r7, #12]
  11778. huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF);
  11779. 8004be8: 68fb ldr r3, [r7, #12]
  11780. 8004bea: 881b ldrh r3, [r3, #0]
  11781. 8004bec: 461a mov r2, r3
  11782. 8004bee: 687b ldr r3, [r7, #4]
  11783. 8004bf0: 681b ldr r3, [r3, #0]
  11784. 8004bf2: f3c2 0208 ubfx r2, r2, #0, #9
  11785. 8004bf6: 605a str r2, [r3, #4]
  11786. if (huart->Init.Parity == UART_PARITY_NONE)
  11787. 8004bf8: 687b ldr r3, [r7, #4]
  11788. 8004bfa: 691b ldr r3, [r3, #16]
  11789. 8004bfc: 2b00 cmp r3, #0
  11790. 8004bfe: d105 bne.n 8004c0c <UART_Transmit_IT+0x48>
  11791. {
  11792. huart->pTxBuffPtr += 2U;
  11793. 8004c00: 687b ldr r3, [r7, #4]
  11794. 8004c02: 6a1b ldr r3, [r3, #32]
  11795. 8004c04: 1c9a adds r2, r3, #2
  11796. 8004c06: 687b ldr r3, [r7, #4]
  11797. 8004c08: 621a str r2, [r3, #32]
  11798. 8004c0a: e00e b.n 8004c2a <UART_Transmit_IT+0x66>
  11799. }
  11800. else
  11801. {
  11802. huart->pTxBuffPtr += 1U;
  11803. 8004c0c: 687b ldr r3, [r7, #4]
  11804. 8004c0e: 6a1b ldr r3, [r3, #32]
  11805. 8004c10: 1c5a adds r2, r3, #1
  11806. 8004c12: 687b ldr r3, [r7, #4]
  11807. 8004c14: 621a str r2, [r3, #32]
  11808. 8004c16: e008 b.n 8004c2a <UART_Transmit_IT+0x66>
  11809. }
  11810. }
  11811. else
  11812. {
  11813. huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF);
  11814. 8004c18: 687b ldr r3, [r7, #4]
  11815. 8004c1a: 6a1b ldr r3, [r3, #32]
  11816. 8004c1c: 1c59 adds r1, r3, #1
  11817. 8004c1e: 687a ldr r2, [r7, #4]
  11818. 8004c20: 6211 str r1, [r2, #32]
  11819. 8004c22: 781a ldrb r2, [r3, #0]
  11820. 8004c24: 687b ldr r3, [r7, #4]
  11821. 8004c26: 681b ldr r3, [r3, #0]
  11822. 8004c28: 605a str r2, [r3, #4]
  11823. }
  11824. if (--huart->TxXferCount == 0U)
  11825. 8004c2a: 687b ldr r3, [r7, #4]
  11826. 8004c2c: 8cdb ldrh r3, [r3, #38] ; 0x26
  11827. 8004c2e: b29b uxth r3, r3
  11828. 8004c30: 3b01 subs r3, #1
  11829. 8004c32: b29b uxth r3, r3
  11830. 8004c34: 687a ldr r2, [r7, #4]
  11831. 8004c36: 4619 mov r1, r3
  11832. 8004c38: 84d1 strh r1, [r2, #38] ; 0x26
  11833. 8004c3a: 2b00 cmp r3, #0
  11834. 8004c3c: d10f bne.n 8004c5e <UART_Transmit_IT+0x9a>
  11835. {
  11836. /* Disable the UART Transmit Complete Interrupt */
  11837. __HAL_UART_DISABLE_IT(huart, UART_IT_TXE);
  11838. 8004c3e: 687b ldr r3, [r7, #4]
  11839. 8004c40: 681b ldr r3, [r3, #0]
  11840. 8004c42: 68da ldr r2, [r3, #12]
  11841. 8004c44: 687b ldr r3, [r7, #4]
  11842. 8004c46: 681b ldr r3, [r3, #0]
  11843. 8004c48: f022 0280 bic.w r2, r2, #128 ; 0x80
  11844. 8004c4c: 60da str r2, [r3, #12]
  11845. /* Enable the UART Transmit Complete Interrupt */
  11846. __HAL_UART_ENABLE_IT(huart, UART_IT_TC);
  11847. 8004c4e: 687b ldr r3, [r7, #4]
  11848. 8004c50: 681b ldr r3, [r3, #0]
  11849. 8004c52: 68da ldr r2, [r3, #12]
  11850. 8004c54: 687b ldr r3, [r7, #4]
  11851. 8004c56: 681b ldr r3, [r3, #0]
  11852. 8004c58: f042 0240 orr.w r2, r2, #64 ; 0x40
  11853. 8004c5c: 60da str r2, [r3, #12]
  11854. }
  11855. return HAL_OK;
  11856. 8004c5e: 2300 movs r3, #0
  11857. 8004c60: e000 b.n 8004c64 <UART_Transmit_IT+0xa0>
  11858. }
  11859. else
  11860. {
  11861. return HAL_BUSY;
  11862. 8004c62: 2302 movs r3, #2
  11863. }
  11864. }
  11865. 8004c64: 4618 mov r0, r3
  11866. 8004c66: 3714 adds r7, #20
  11867. 8004c68: 46bd mov sp, r7
  11868. 8004c6a: bc80 pop {r7}
  11869. 8004c6c: 4770 bx lr
  11870. 08004c6e <UART_EndTransmit_IT>:
  11871. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11872. * the configuration information for the specified UART module.
  11873. * @retval HAL status
  11874. */
  11875. static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  11876. {
  11877. 8004c6e: b580 push {r7, lr}
  11878. 8004c70: b082 sub sp, #8
  11879. 8004c72: af00 add r7, sp, #0
  11880. 8004c74: 6078 str r0, [r7, #4]
  11881. /* Disable the UART Transmit Complete Interrupt */
  11882. __HAL_UART_DISABLE_IT(huart, UART_IT_TC);
  11883. 8004c76: 687b ldr r3, [r7, #4]
  11884. 8004c78: 681b ldr r3, [r3, #0]
  11885. 8004c7a: 68da ldr r2, [r3, #12]
  11886. 8004c7c: 687b ldr r3, [r7, #4]
  11887. 8004c7e: 681b ldr r3, [r3, #0]
  11888. 8004c80: f022 0240 bic.w r2, r2, #64 ; 0x40
  11889. 8004c84: 60da str r2, [r3, #12]
  11890. /* Tx process is ended, restore huart->gState to Ready */
  11891. huart->gState = HAL_UART_STATE_READY;
  11892. 8004c86: 687b ldr r3, [r7, #4]
  11893. 8004c88: 2220 movs r2, #32
  11894. 8004c8a: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11895. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  11896. /*Call registered Tx complete callback*/
  11897. huart->TxCpltCallback(huart);
  11898. #else
  11899. /*Call legacy weak Tx complete callback*/
  11900. HAL_UART_TxCpltCallback(huart);
  11901. 8004c8e: 6878 ldr r0, [r7, #4]
  11902. 8004c90: f7ff fe6c bl 800496c <HAL_UART_TxCpltCallback>
  11903. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  11904. return HAL_OK;
  11905. 8004c94: 2300 movs r3, #0
  11906. }
  11907. 8004c96: 4618 mov r0, r3
  11908. 8004c98: 3708 adds r7, #8
  11909. 8004c9a: 46bd mov sp, r7
  11910. 8004c9c: bd80 pop {r7, pc}
  11911. 08004c9e <UART_Receive_IT>:
  11912. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  11913. * the configuration information for the specified UART module.
  11914. * @retval HAL status
  11915. */
  11916. static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart)
  11917. {
  11918. 8004c9e: b580 push {r7, lr}
  11919. 8004ca0: b084 sub sp, #16
  11920. 8004ca2: af00 add r7, sp, #0
  11921. 8004ca4: 6078 str r0, [r7, #4]
  11922. uint16_t *tmp;
  11923. /* Check that a Rx process is ongoing */
  11924. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  11925. 8004ca6: 687b ldr r3, [r7, #4]
  11926. 8004ca8: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  11927. 8004cac: b2db uxtb r3, r3
  11928. 8004cae: 2b22 cmp r3, #34 ; 0x22
  11929. 8004cb0: d171 bne.n 8004d96 <UART_Receive_IT+0xf8>
  11930. {
  11931. if (huart->Init.WordLength == UART_WORDLENGTH_9B)
  11932. 8004cb2: 687b ldr r3, [r7, #4]
  11933. 8004cb4: 689b ldr r3, [r3, #8]
  11934. 8004cb6: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  11935. 8004cba: d123 bne.n 8004d04 <UART_Receive_IT+0x66>
  11936. {
  11937. tmp = (uint16_t *) huart->pRxBuffPtr;
  11938. 8004cbc: 687b ldr r3, [r7, #4]
  11939. 8004cbe: 6a9b ldr r3, [r3, #40] ; 0x28
  11940. 8004cc0: 60fb str r3, [r7, #12]
  11941. if (huart->Init.Parity == UART_PARITY_NONE)
  11942. 8004cc2: 687b ldr r3, [r7, #4]
  11943. 8004cc4: 691b ldr r3, [r3, #16]
  11944. 8004cc6: 2b00 cmp r3, #0
  11945. 8004cc8: d10e bne.n 8004ce8 <UART_Receive_IT+0x4a>
  11946. {
  11947. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF);
  11948. 8004cca: 687b ldr r3, [r7, #4]
  11949. 8004ccc: 681b ldr r3, [r3, #0]
  11950. 8004cce: 685b ldr r3, [r3, #4]
  11951. 8004cd0: b29b uxth r3, r3
  11952. 8004cd2: f3c3 0308 ubfx r3, r3, #0, #9
  11953. 8004cd6: b29a uxth r2, r3
  11954. 8004cd8: 68fb ldr r3, [r7, #12]
  11955. 8004cda: 801a strh r2, [r3, #0]
  11956. huart->pRxBuffPtr += 2U;
  11957. 8004cdc: 687b ldr r3, [r7, #4]
  11958. 8004cde: 6a9b ldr r3, [r3, #40] ; 0x28
  11959. 8004ce0: 1c9a adds r2, r3, #2
  11960. 8004ce2: 687b ldr r3, [r7, #4]
  11961. 8004ce4: 629a str r2, [r3, #40] ; 0x28
  11962. 8004ce6: e029 b.n 8004d3c <UART_Receive_IT+0x9e>
  11963. }
  11964. else
  11965. {
  11966. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x00FF);
  11967. 8004ce8: 687b ldr r3, [r7, #4]
  11968. 8004cea: 681b ldr r3, [r3, #0]
  11969. 8004cec: 685b ldr r3, [r3, #4]
  11970. 8004cee: b29b uxth r3, r3
  11971. 8004cf0: b2db uxtb r3, r3
  11972. 8004cf2: b29a uxth r2, r3
  11973. 8004cf4: 68fb ldr r3, [r7, #12]
  11974. 8004cf6: 801a strh r2, [r3, #0]
  11975. huart->pRxBuffPtr += 1U;
  11976. 8004cf8: 687b ldr r3, [r7, #4]
  11977. 8004cfa: 6a9b ldr r3, [r3, #40] ; 0x28
  11978. 8004cfc: 1c5a adds r2, r3, #1
  11979. 8004cfe: 687b ldr r3, [r7, #4]
  11980. 8004d00: 629a str r2, [r3, #40] ; 0x28
  11981. 8004d02: e01b b.n 8004d3c <UART_Receive_IT+0x9e>
  11982. }
  11983. }
  11984. else
  11985. {
  11986. if (huart->Init.Parity == UART_PARITY_NONE)
  11987. 8004d04: 687b ldr r3, [r7, #4]
  11988. 8004d06: 691b ldr r3, [r3, #16]
  11989. 8004d08: 2b00 cmp r3, #0
  11990. 8004d0a: d10a bne.n 8004d22 <UART_Receive_IT+0x84>
  11991. {
  11992. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF);
  11993. 8004d0c: 687b ldr r3, [r7, #4]
  11994. 8004d0e: 681b ldr r3, [r3, #0]
  11995. 8004d10: 6858 ldr r0, [r3, #4]
  11996. 8004d12: 687b ldr r3, [r7, #4]
  11997. 8004d14: 6a9b ldr r3, [r3, #40] ; 0x28
  11998. 8004d16: 1c59 adds r1, r3, #1
  11999. 8004d18: 687a ldr r2, [r7, #4]
  12000. 8004d1a: 6291 str r1, [r2, #40] ; 0x28
  12001. 8004d1c: b2c2 uxtb r2, r0
  12002. 8004d1e: 701a strb r2, [r3, #0]
  12003. 8004d20: e00c b.n 8004d3c <UART_Receive_IT+0x9e>
  12004. }
  12005. else
  12006. {
  12007. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F);
  12008. 8004d22: 687b ldr r3, [r7, #4]
  12009. 8004d24: 681b ldr r3, [r3, #0]
  12010. 8004d26: 685b ldr r3, [r3, #4]
  12011. 8004d28: b2da uxtb r2, r3
  12012. 8004d2a: 687b ldr r3, [r7, #4]
  12013. 8004d2c: 6a9b ldr r3, [r3, #40] ; 0x28
  12014. 8004d2e: 1c58 adds r0, r3, #1
  12015. 8004d30: 6879 ldr r1, [r7, #4]
  12016. 8004d32: 6288 str r0, [r1, #40] ; 0x28
  12017. 8004d34: f002 027f and.w r2, r2, #127 ; 0x7f
  12018. 8004d38: b2d2 uxtb r2, r2
  12019. 8004d3a: 701a strb r2, [r3, #0]
  12020. }
  12021. }
  12022. if (--huart->RxXferCount == 0U)
  12023. 8004d3c: 687b ldr r3, [r7, #4]
  12024. 8004d3e: 8ddb ldrh r3, [r3, #46] ; 0x2e
  12025. 8004d40: b29b uxth r3, r3
  12026. 8004d42: 3b01 subs r3, #1
  12027. 8004d44: b29b uxth r3, r3
  12028. 8004d46: 687a ldr r2, [r7, #4]
  12029. 8004d48: 4619 mov r1, r3
  12030. 8004d4a: 85d1 strh r1, [r2, #46] ; 0x2e
  12031. 8004d4c: 2b00 cmp r3, #0
  12032. 8004d4e: d120 bne.n 8004d92 <UART_Receive_IT+0xf4>
  12033. {
  12034. /* Disable the UART Data Register not empty Interrupt */
  12035. __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE);
  12036. 8004d50: 687b ldr r3, [r7, #4]
  12037. 8004d52: 681b ldr r3, [r3, #0]
  12038. 8004d54: 68da ldr r2, [r3, #12]
  12039. 8004d56: 687b ldr r3, [r7, #4]
  12040. 8004d58: 681b ldr r3, [r3, #0]
  12041. 8004d5a: f022 0220 bic.w r2, r2, #32
  12042. 8004d5e: 60da str r2, [r3, #12]
  12043. /* Disable the UART Parity Error Interrupt */
  12044. __HAL_UART_DISABLE_IT(huart, UART_IT_PE);
  12045. 8004d60: 687b ldr r3, [r7, #4]
  12046. 8004d62: 681b ldr r3, [r3, #0]
  12047. 8004d64: 68da ldr r2, [r3, #12]
  12048. 8004d66: 687b ldr r3, [r7, #4]
  12049. 8004d68: 681b ldr r3, [r3, #0]
  12050. 8004d6a: f422 7280 bic.w r2, r2, #256 ; 0x100
  12051. 8004d6e: 60da str r2, [r3, #12]
  12052. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  12053. __HAL_UART_DISABLE_IT(huart, UART_IT_ERR);
  12054. 8004d70: 687b ldr r3, [r7, #4]
  12055. 8004d72: 681b ldr r3, [r3, #0]
  12056. 8004d74: 695a ldr r2, [r3, #20]
  12057. 8004d76: 687b ldr r3, [r7, #4]
  12058. 8004d78: 681b ldr r3, [r3, #0]
  12059. 8004d7a: f022 0201 bic.w r2, r2, #1
  12060. 8004d7e: 615a str r2, [r3, #20]
  12061. /* Rx process is completed, restore huart->RxState to Ready */
  12062. huart->RxState = HAL_UART_STATE_READY;
  12063. 8004d80: 687b ldr r3, [r7, #4]
  12064. 8004d82: 2220 movs r2, #32
  12065. 8004d84: f883 203a strb.w r2, [r3, #58] ; 0x3a
  12066. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  12067. /*Call registered Rx complete callback*/
  12068. huart->RxCpltCallback(huart);
  12069. #else
  12070. /*Call legacy weak Rx complete callback*/
  12071. HAL_UART_RxCpltCallback(huart);
  12072. 8004d88: 6878 ldr r0, [r7, #4]
  12073. 8004d8a: f7fc feab bl 8001ae4 <HAL_UART_RxCpltCallback>
  12074. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  12075. return HAL_OK;
  12076. 8004d8e: 2300 movs r3, #0
  12077. 8004d90: e002 b.n 8004d98 <UART_Receive_IT+0xfa>
  12078. }
  12079. return HAL_OK;
  12080. 8004d92: 2300 movs r3, #0
  12081. 8004d94: e000 b.n 8004d98 <UART_Receive_IT+0xfa>
  12082. }
  12083. else
  12084. {
  12085. return HAL_BUSY;
  12086. 8004d96: 2302 movs r3, #2
  12087. }
  12088. }
  12089. 8004d98: 4618 mov r0, r3
  12090. 8004d9a: 3710 adds r7, #16
  12091. 8004d9c: 46bd mov sp, r7
  12092. 8004d9e: bd80 pop {r7, pc}
  12093. 08004da0 <UART_SetConfig>:
  12094. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  12095. * the configuration information for the specified UART module.
  12096. * @retval None
  12097. */
  12098. static void UART_SetConfig(UART_HandleTypeDef *huart)
  12099. {
  12100. 8004da0: b580 push {r7, lr}
  12101. 8004da2: b084 sub sp, #16
  12102. 8004da4: af00 add r7, sp, #0
  12103. 8004da6: 6078 str r0, [r7, #4]
  12104. assert_param(IS_UART_MODE(huart->Init.Mode));
  12105. /*-------------------------- USART CR2 Configuration -----------------------*/
  12106. /* Configure the UART Stop Bits: Set STOP[13:12] bits
  12107. according to huart->Init.StopBits value */
  12108. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  12109. 8004da8: 687b ldr r3, [r7, #4]
  12110. 8004daa: 681b ldr r3, [r3, #0]
  12111. 8004dac: 691b ldr r3, [r3, #16]
  12112. 8004dae: f423 5140 bic.w r1, r3, #12288 ; 0x3000
  12113. 8004db2: 687b ldr r3, [r7, #4]
  12114. 8004db4: 68da ldr r2, [r3, #12]
  12115. 8004db6: 687b ldr r3, [r7, #4]
  12116. 8004db8: 681b ldr r3, [r3, #0]
  12117. 8004dba: 430a orrs r2, r1
  12118. 8004dbc: 611a str r2, [r3, #16]
  12119. Set PCE and PS bits according to huart->Init.Parity value
  12120. Set TE and RE bits according to huart->Init.Mode value
  12121. Set OVER8 bit according to huart->Init.OverSampling value */
  12122. #if defined(USART_CR1_OVER8)
  12123. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  12124. 8004dbe: 687b ldr r3, [r7, #4]
  12125. 8004dc0: 689a ldr r2, [r3, #8]
  12126. 8004dc2: 687b ldr r3, [r7, #4]
  12127. 8004dc4: 691b ldr r3, [r3, #16]
  12128. 8004dc6: 431a orrs r2, r3
  12129. 8004dc8: 687b ldr r3, [r7, #4]
  12130. 8004dca: 695b ldr r3, [r3, #20]
  12131. 8004dcc: 431a orrs r2, r3
  12132. 8004dce: 687b ldr r3, [r7, #4]
  12133. 8004dd0: 69db ldr r3, [r3, #28]
  12134. 8004dd2: 4313 orrs r3, r2
  12135. 8004dd4: 60fb str r3, [r7, #12]
  12136. MODIFY_REG(huart->Instance->CR1,
  12137. 8004dd6: 687b ldr r3, [r7, #4]
  12138. 8004dd8: 681b ldr r3, [r3, #0]
  12139. 8004dda: 68db ldr r3, [r3, #12]
  12140. 8004ddc: f423 4316 bic.w r3, r3, #38400 ; 0x9600
  12141. 8004de0: f023 030c bic.w r3, r3, #12
  12142. 8004de4: 687a ldr r2, [r7, #4]
  12143. 8004de6: 6812 ldr r2, [r2, #0]
  12144. 8004de8: 68f9 ldr r1, [r7, #12]
  12145. 8004dea: 430b orrs r3, r1
  12146. 8004dec: 60d3 str r3, [r2, #12]
  12147. tmpreg);
  12148. #endif /* USART_CR1_OVER8 */
  12149. /*-------------------------- USART CR3 Configuration -----------------------*/
  12150. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  12151. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  12152. 8004dee: 687b ldr r3, [r7, #4]
  12153. 8004df0: 681b ldr r3, [r3, #0]
  12154. 8004df2: 695b ldr r3, [r3, #20]
  12155. 8004df4: f423 7140 bic.w r1, r3, #768 ; 0x300
  12156. 8004df8: 687b ldr r3, [r7, #4]
  12157. 8004dfa: 699a ldr r2, [r3, #24]
  12158. 8004dfc: 687b ldr r3, [r7, #4]
  12159. 8004dfe: 681b ldr r3, [r3, #0]
  12160. 8004e00: 430a orrs r2, r1
  12161. 8004e02: 615a str r2, [r3, #20]
  12162. #if defined(USART_CR1_OVER8)
  12163. /* Check the Over Sampling */
  12164. if(huart->Init.OverSampling == UART_OVERSAMPLING_8)
  12165. 8004e04: 687b ldr r3, [r7, #4]
  12166. 8004e06: 69db ldr r3, [r3, #28]
  12167. 8004e08: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
  12168. 8004e0c: f040 80a5 bne.w 8004f5a <UART_SetConfig+0x1ba>
  12169. {
  12170. /*-------------------------- USART BRR Configuration ---------------------*/
  12171. if(huart->Instance == USART1)
  12172. 8004e10: 687b ldr r3, [r7, #4]
  12173. 8004e12: 681b ldr r3, [r3, #0]
  12174. 8004e14: 4aa4 ldr r2, [pc, #656] ; (80050a8 <UART_SetConfig+0x308>)
  12175. 8004e16: 4293 cmp r3, r2
  12176. 8004e18: d14f bne.n 8004eba <UART_SetConfig+0x11a>
  12177. {
  12178. pclk = HAL_RCC_GetPCLK2Freq();
  12179. 8004e1a: f7fe ff59 bl 8003cd0 <HAL_RCC_GetPCLK2Freq>
  12180. 8004e1e: 60b8 str r0, [r7, #8]
  12181. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  12182. 8004e20: 68ba ldr r2, [r7, #8]
  12183. 8004e22: 4613 mov r3, r2
  12184. 8004e24: 009b lsls r3, r3, #2
  12185. 8004e26: 4413 add r3, r2
  12186. 8004e28: 009a lsls r2, r3, #2
  12187. 8004e2a: 441a add r2, r3
  12188. 8004e2c: 687b ldr r3, [r7, #4]
  12189. 8004e2e: 685b ldr r3, [r3, #4]
  12190. 8004e30: 005b lsls r3, r3, #1
  12191. 8004e32: fbb2 f3f3 udiv r3, r2, r3
  12192. 8004e36: 4a9d ldr r2, [pc, #628] ; (80050ac <UART_SetConfig+0x30c>)
  12193. 8004e38: fba2 2303 umull r2, r3, r2, r3
  12194. 8004e3c: 095b lsrs r3, r3, #5
  12195. 8004e3e: 0119 lsls r1, r3, #4
  12196. 8004e40: 68ba ldr r2, [r7, #8]
  12197. 8004e42: 4613 mov r3, r2
  12198. 8004e44: 009b lsls r3, r3, #2
  12199. 8004e46: 4413 add r3, r2
  12200. 8004e48: 009a lsls r2, r3, #2
  12201. 8004e4a: 441a add r2, r3
  12202. 8004e4c: 687b ldr r3, [r7, #4]
  12203. 8004e4e: 685b ldr r3, [r3, #4]
  12204. 8004e50: 005b lsls r3, r3, #1
  12205. 8004e52: fbb2 f2f3 udiv r2, r2, r3
  12206. 8004e56: 4b95 ldr r3, [pc, #596] ; (80050ac <UART_SetConfig+0x30c>)
  12207. 8004e58: fba3 0302 umull r0, r3, r3, r2
  12208. 8004e5c: 095b lsrs r3, r3, #5
  12209. 8004e5e: 2064 movs r0, #100 ; 0x64
  12210. 8004e60: fb00 f303 mul.w r3, r0, r3
  12211. 8004e64: 1ad3 subs r3, r2, r3
  12212. 8004e66: 00db lsls r3, r3, #3
  12213. 8004e68: 3332 adds r3, #50 ; 0x32
  12214. 8004e6a: 4a90 ldr r2, [pc, #576] ; (80050ac <UART_SetConfig+0x30c>)
  12215. 8004e6c: fba2 2303 umull r2, r3, r2, r3
  12216. 8004e70: 095b lsrs r3, r3, #5
  12217. 8004e72: 005b lsls r3, r3, #1
  12218. 8004e74: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  12219. 8004e78: 4419 add r1, r3
  12220. 8004e7a: 68ba ldr r2, [r7, #8]
  12221. 8004e7c: 4613 mov r3, r2
  12222. 8004e7e: 009b lsls r3, r3, #2
  12223. 8004e80: 4413 add r3, r2
  12224. 8004e82: 009a lsls r2, r3, #2
  12225. 8004e84: 441a add r2, r3
  12226. 8004e86: 687b ldr r3, [r7, #4]
  12227. 8004e88: 685b ldr r3, [r3, #4]
  12228. 8004e8a: 005b lsls r3, r3, #1
  12229. 8004e8c: fbb2 f2f3 udiv r2, r2, r3
  12230. 8004e90: 4b86 ldr r3, [pc, #536] ; (80050ac <UART_SetConfig+0x30c>)
  12231. 8004e92: fba3 0302 umull r0, r3, r3, r2
  12232. 8004e96: 095b lsrs r3, r3, #5
  12233. 8004e98: 2064 movs r0, #100 ; 0x64
  12234. 8004e9a: fb00 f303 mul.w r3, r0, r3
  12235. 8004e9e: 1ad3 subs r3, r2, r3
  12236. 8004ea0: 00db lsls r3, r3, #3
  12237. 8004ea2: 3332 adds r3, #50 ; 0x32
  12238. 8004ea4: 4a81 ldr r2, [pc, #516] ; (80050ac <UART_SetConfig+0x30c>)
  12239. 8004ea6: fba2 2303 umull r2, r3, r2, r3
  12240. 8004eaa: 095b lsrs r3, r3, #5
  12241. 8004eac: f003 0207 and.w r2, r3, #7
  12242. 8004eb0: 687b ldr r3, [r7, #4]
  12243. 8004eb2: 681b ldr r3, [r3, #0]
  12244. 8004eb4: 440a add r2, r1
  12245. 8004eb6: 609a str r2, [r3, #8]
  12246. {
  12247. pclk = HAL_RCC_GetPCLK1Freq();
  12248. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  12249. }
  12250. #endif /* USART_CR1_OVER8 */
  12251. }
  12252. 8004eb8: e0f1 b.n 800509e <UART_SetConfig+0x2fe>
  12253. pclk = HAL_RCC_GetPCLK1Freq();
  12254. 8004eba: f7fe fef5 bl 8003ca8 <HAL_RCC_GetPCLK1Freq>
  12255. 8004ebe: 60b8 str r0, [r7, #8]
  12256. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  12257. 8004ec0: 68ba ldr r2, [r7, #8]
  12258. 8004ec2: 4613 mov r3, r2
  12259. 8004ec4: 009b lsls r3, r3, #2
  12260. 8004ec6: 4413 add r3, r2
  12261. 8004ec8: 009a lsls r2, r3, #2
  12262. 8004eca: 441a add r2, r3
  12263. 8004ecc: 687b ldr r3, [r7, #4]
  12264. 8004ece: 685b ldr r3, [r3, #4]
  12265. 8004ed0: 005b lsls r3, r3, #1
  12266. 8004ed2: fbb2 f3f3 udiv r3, r2, r3
  12267. 8004ed6: 4a75 ldr r2, [pc, #468] ; (80050ac <UART_SetConfig+0x30c>)
  12268. 8004ed8: fba2 2303 umull r2, r3, r2, r3
  12269. 8004edc: 095b lsrs r3, r3, #5
  12270. 8004ede: 0119 lsls r1, r3, #4
  12271. 8004ee0: 68ba ldr r2, [r7, #8]
  12272. 8004ee2: 4613 mov r3, r2
  12273. 8004ee4: 009b lsls r3, r3, #2
  12274. 8004ee6: 4413 add r3, r2
  12275. 8004ee8: 009a lsls r2, r3, #2
  12276. 8004eea: 441a add r2, r3
  12277. 8004eec: 687b ldr r3, [r7, #4]
  12278. 8004eee: 685b ldr r3, [r3, #4]
  12279. 8004ef0: 005b lsls r3, r3, #1
  12280. 8004ef2: fbb2 f2f3 udiv r2, r2, r3
  12281. 8004ef6: 4b6d ldr r3, [pc, #436] ; (80050ac <UART_SetConfig+0x30c>)
  12282. 8004ef8: fba3 0302 umull r0, r3, r3, r2
  12283. 8004efc: 095b lsrs r3, r3, #5
  12284. 8004efe: 2064 movs r0, #100 ; 0x64
  12285. 8004f00: fb00 f303 mul.w r3, r0, r3
  12286. 8004f04: 1ad3 subs r3, r2, r3
  12287. 8004f06: 00db lsls r3, r3, #3
  12288. 8004f08: 3332 adds r3, #50 ; 0x32
  12289. 8004f0a: 4a68 ldr r2, [pc, #416] ; (80050ac <UART_SetConfig+0x30c>)
  12290. 8004f0c: fba2 2303 umull r2, r3, r2, r3
  12291. 8004f10: 095b lsrs r3, r3, #5
  12292. 8004f12: 005b lsls r3, r3, #1
  12293. 8004f14: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  12294. 8004f18: 4419 add r1, r3
  12295. 8004f1a: 68ba ldr r2, [r7, #8]
  12296. 8004f1c: 4613 mov r3, r2
  12297. 8004f1e: 009b lsls r3, r3, #2
  12298. 8004f20: 4413 add r3, r2
  12299. 8004f22: 009a lsls r2, r3, #2
  12300. 8004f24: 441a add r2, r3
  12301. 8004f26: 687b ldr r3, [r7, #4]
  12302. 8004f28: 685b ldr r3, [r3, #4]
  12303. 8004f2a: 005b lsls r3, r3, #1
  12304. 8004f2c: fbb2 f2f3 udiv r2, r2, r3
  12305. 8004f30: 4b5e ldr r3, [pc, #376] ; (80050ac <UART_SetConfig+0x30c>)
  12306. 8004f32: fba3 0302 umull r0, r3, r3, r2
  12307. 8004f36: 095b lsrs r3, r3, #5
  12308. 8004f38: 2064 movs r0, #100 ; 0x64
  12309. 8004f3a: fb00 f303 mul.w r3, r0, r3
  12310. 8004f3e: 1ad3 subs r3, r2, r3
  12311. 8004f40: 00db lsls r3, r3, #3
  12312. 8004f42: 3332 adds r3, #50 ; 0x32
  12313. 8004f44: 4a59 ldr r2, [pc, #356] ; (80050ac <UART_SetConfig+0x30c>)
  12314. 8004f46: fba2 2303 umull r2, r3, r2, r3
  12315. 8004f4a: 095b lsrs r3, r3, #5
  12316. 8004f4c: f003 0207 and.w r2, r3, #7
  12317. 8004f50: 687b ldr r3, [r7, #4]
  12318. 8004f52: 681b ldr r3, [r3, #0]
  12319. 8004f54: 440a add r2, r1
  12320. 8004f56: 609a str r2, [r3, #8]
  12321. }
  12322. 8004f58: e0a1 b.n 800509e <UART_SetConfig+0x2fe>
  12323. if(huart->Instance == USART1)
  12324. 8004f5a: 687b ldr r3, [r7, #4]
  12325. 8004f5c: 681b ldr r3, [r3, #0]
  12326. 8004f5e: 4a52 ldr r2, [pc, #328] ; (80050a8 <UART_SetConfig+0x308>)
  12327. 8004f60: 4293 cmp r3, r2
  12328. 8004f62: d14e bne.n 8005002 <UART_SetConfig+0x262>
  12329. pclk = HAL_RCC_GetPCLK2Freq();
  12330. 8004f64: f7fe feb4 bl 8003cd0 <HAL_RCC_GetPCLK2Freq>
  12331. 8004f68: 60b8 str r0, [r7, #8]
  12332. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  12333. 8004f6a: 68ba ldr r2, [r7, #8]
  12334. 8004f6c: 4613 mov r3, r2
  12335. 8004f6e: 009b lsls r3, r3, #2
  12336. 8004f70: 4413 add r3, r2
  12337. 8004f72: 009a lsls r2, r3, #2
  12338. 8004f74: 441a add r2, r3
  12339. 8004f76: 687b ldr r3, [r7, #4]
  12340. 8004f78: 685b ldr r3, [r3, #4]
  12341. 8004f7a: 009b lsls r3, r3, #2
  12342. 8004f7c: fbb2 f3f3 udiv r3, r2, r3
  12343. 8004f80: 4a4a ldr r2, [pc, #296] ; (80050ac <UART_SetConfig+0x30c>)
  12344. 8004f82: fba2 2303 umull r2, r3, r2, r3
  12345. 8004f86: 095b lsrs r3, r3, #5
  12346. 8004f88: 0119 lsls r1, r3, #4
  12347. 8004f8a: 68ba ldr r2, [r7, #8]
  12348. 8004f8c: 4613 mov r3, r2
  12349. 8004f8e: 009b lsls r3, r3, #2
  12350. 8004f90: 4413 add r3, r2
  12351. 8004f92: 009a lsls r2, r3, #2
  12352. 8004f94: 441a add r2, r3
  12353. 8004f96: 687b ldr r3, [r7, #4]
  12354. 8004f98: 685b ldr r3, [r3, #4]
  12355. 8004f9a: 009b lsls r3, r3, #2
  12356. 8004f9c: fbb2 f2f3 udiv r2, r2, r3
  12357. 8004fa0: 4b42 ldr r3, [pc, #264] ; (80050ac <UART_SetConfig+0x30c>)
  12358. 8004fa2: fba3 0302 umull r0, r3, r3, r2
  12359. 8004fa6: 095b lsrs r3, r3, #5
  12360. 8004fa8: 2064 movs r0, #100 ; 0x64
  12361. 8004faa: fb00 f303 mul.w r3, r0, r3
  12362. 8004fae: 1ad3 subs r3, r2, r3
  12363. 8004fb0: 011b lsls r3, r3, #4
  12364. 8004fb2: 3332 adds r3, #50 ; 0x32
  12365. 8004fb4: 4a3d ldr r2, [pc, #244] ; (80050ac <UART_SetConfig+0x30c>)
  12366. 8004fb6: fba2 2303 umull r2, r3, r2, r3
  12367. 8004fba: 095b lsrs r3, r3, #5
  12368. 8004fbc: f003 03f0 and.w r3, r3, #240 ; 0xf0
  12369. 8004fc0: 4419 add r1, r3
  12370. 8004fc2: 68ba ldr r2, [r7, #8]
  12371. 8004fc4: 4613 mov r3, r2
  12372. 8004fc6: 009b lsls r3, r3, #2
  12373. 8004fc8: 4413 add r3, r2
  12374. 8004fca: 009a lsls r2, r3, #2
  12375. 8004fcc: 441a add r2, r3
  12376. 8004fce: 687b ldr r3, [r7, #4]
  12377. 8004fd0: 685b ldr r3, [r3, #4]
  12378. 8004fd2: 009b lsls r3, r3, #2
  12379. 8004fd4: fbb2 f2f3 udiv r2, r2, r3
  12380. 8004fd8: 4b34 ldr r3, [pc, #208] ; (80050ac <UART_SetConfig+0x30c>)
  12381. 8004fda: fba3 0302 umull r0, r3, r3, r2
  12382. 8004fde: 095b lsrs r3, r3, #5
  12383. 8004fe0: 2064 movs r0, #100 ; 0x64
  12384. 8004fe2: fb00 f303 mul.w r3, r0, r3
  12385. 8004fe6: 1ad3 subs r3, r2, r3
  12386. 8004fe8: 011b lsls r3, r3, #4
  12387. 8004fea: 3332 adds r3, #50 ; 0x32
  12388. 8004fec: 4a2f ldr r2, [pc, #188] ; (80050ac <UART_SetConfig+0x30c>)
  12389. 8004fee: fba2 2303 umull r2, r3, r2, r3
  12390. 8004ff2: 095b lsrs r3, r3, #5
  12391. 8004ff4: f003 020f and.w r2, r3, #15
  12392. 8004ff8: 687b ldr r3, [r7, #4]
  12393. 8004ffa: 681b ldr r3, [r3, #0]
  12394. 8004ffc: 440a add r2, r1
  12395. 8004ffe: 609a str r2, [r3, #8]
  12396. }
  12397. 8005000: e04d b.n 800509e <UART_SetConfig+0x2fe>
  12398. pclk = HAL_RCC_GetPCLK1Freq();
  12399. 8005002: f7fe fe51 bl 8003ca8 <HAL_RCC_GetPCLK1Freq>
  12400. 8005006: 60b8 str r0, [r7, #8]
  12401. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  12402. 8005008: 68ba ldr r2, [r7, #8]
  12403. 800500a: 4613 mov r3, r2
  12404. 800500c: 009b lsls r3, r3, #2
  12405. 800500e: 4413 add r3, r2
  12406. 8005010: 009a lsls r2, r3, #2
  12407. 8005012: 441a add r2, r3
  12408. 8005014: 687b ldr r3, [r7, #4]
  12409. 8005016: 685b ldr r3, [r3, #4]
  12410. 8005018: 009b lsls r3, r3, #2
  12411. 800501a: fbb2 f3f3 udiv r3, r2, r3
  12412. 800501e: 4a23 ldr r2, [pc, #140] ; (80050ac <UART_SetConfig+0x30c>)
  12413. 8005020: fba2 2303 umull r2, r3, r2, r3
  12414. 8005024: 095b lsrs r3, r3, #5
  12415. 8005026: 0119 lsls r1, r3, #4
  12416. 8005028: 68ba ldr r2, [r7, #8]
  12417. 800502a: 4613 mov r3, r2
  12418. 800502c: 009b lsls r3, r3, #2
  12419. 800502e: 4413 add r3, r2
  12420. 8005030: 009a lsls r2, r3, #2
  12421. 8005032: 441a add r2, r3
  12422. 8005034: 687b ldr r3, [r7, #4]
  12423. 8005036: 685b ldr r3, [r3, #4]
  12424. 8005038: 009b lsls r3, r3, #2
  12425. 800503a: fbb2 f2f3 udiv r2, r2, r3
  12426. 800503e: 4b1b ldr r3, [pc, #108] ; (80050ac <UART_SetConfig+0x30c>)
  12427. 8005040: fba3 0302 umull r0, r3, r3, r2
  12428. 8005044: 095b lsrs r3, r3, #5
  12429. 8005046: 2064 movs r0, #100 ; 0x64
  12430. 8005048: fb00 f303 mul.w r3, r0, r3
  12431. 800504c: 1ad3 subs r3, r2, r3
  12432. 800504e: 011b lsls r3, r3, #4
  12433. 8005050: 3332 adds r3, #50 ; 0x32
  12434. 8005052: 4a16 ldr r2, [pc, #88] ; (80050ac <UART_SetConfig+0x30c>)
  12435. 8005054: fba2 2303 umull r2, r3, r2, r3
  12436. 8005058: 095b lsrs r3, r3, #5
  12437. 800505a: f003 03f0 and.w r3, r3, #240 ; 0xf0
  12438. 800505e: 4419 add r1, r3
  12439. 8005060: 68ba ldr r2, [r7, #8]
  12440. 8005062: 4613 mov r3, r2
  12441. 8005064: 009b lsls r3, r3, #2
  12442. 8005066: 4413 add r3, r2
  12443. 8005068: 009a lsls r2, r3, #2
  12444. 800506a: 441a add r2, r3
  12445. 800506c: 687b ldr r3, [r7, #4]
  12446. 800506e: 685b ldr r3, [r3, #4]
  12447. 8005070: 009b lsls r3, r3, #2
  12448. 8005072: fbb2 f2f3 udiv r2, r2, r3
  12449. 8005076: 4b0d ldr r3, [pc, #52] ; (80050ac <UART_SetConfig+0x30c>)
  12450. 8005078: fba3 0302 umull r0, r3, r3, r2
  12451. 800507c: 095b lsrs r3, r3, #5
  12452. 800507e: 2064 movs r0, #100 ; 0x64
  12453. 8005080: fb00 f303 mul.w r3, r0, r3
  12454. 8005084: 1ad3 subs r3, r2, r3
  12455. 8005086: 011b lsls r3, r3, #4
  12456. 8005088: 3332 adds r3, #50 ; 0x32
  12457. 800508a: 4a08 ldr r2, [pc, #32] ; (80050ac <UART_SetConfig+0x30c>)
  12458. 800508c: fba2 2303 umull r2, r3, r2, r3
  12459. 8005090: 095b lsrs r3, r3, #5
  12460. 8005092: f003 020f and.w r2, r3, #15
  12461. 8005096: 687b ldr r3, [r7, #4]
  12462. 8005098: 681b ldr r3, [r3, #0]
  12463. 800509a: 440a add r2, r1
  12464. 800509c: 609a str r2, [r3, #8]
  12465. }
  12466. 800509e: bf00 nop
  12467. 80050a0: 3710 adds r7, #16
  12468. 80050a2: 46bd mov sp, r7
  12469. 80050a4: bd80 pop {r7, pc}
  12470. 80050a6: bf00 nop
  12471. 80050a8: 40013800 .word 0x40013800
  12472. 80050ac: 51eb851f .word 0x51eb851f
  12473. 080050b0 <_write>:
  12474. /* USER CODE END PFP */
  12475. /* Private user code ---------------------------------------------------------*/
  12476. /* USER CODE BEGIN 0 */
  12477. int _write (int file, uint8_t *ptr, uint16_t len)
  12478. {
  12479. 80050b0: b580 push {r7, lr}
  12480. 80050b2: b084 sub sp, #16
  12481. 80050b4: af00 add r7, sp, #0
  12482. 80050b6: 60f8 str r0, [r7, #12]
  12483. 80050b8: 60b9 str r1, [r7, #8]
  12484. 80050ba: 4613 mov r3, r2
  12485. 80050bc: 80fb strh r3, [r7, #6]
  12486. #if 0 // PYJ.2020.06.03_BEGIN --
  12487. HAL_UART_Transmit(&hTest, ptr, len,10);
  12488. #else
  12489. HAL_UART_Transmit(&hTerminal, ptr, len,10);
  12490. 80050be: 88fa ldrh r2, [r7, #6]
  12491. 80050c0: 230a movs r3, #10
  12492. 80050c2: 68b9 ldr r1, [r7, #8]
  12493. 80050c4: 4803 ldr r0, [pc, #12] ; (80050d4 <_write+0x24>)
  12494. 80050c6: f7ff f9fc bl 80044c2 <HAL_UART_Transmit>
  12495. #endif // PYJ.2020.06.03_END --
  12496. return len;
  12497. 80050ca: 88fb ldrh r3, [r7, #6]
  12498. }
  12499. 80050cc: 4618 mov r0, r3
  12500. 80050ce: 3710 adds r7, #16
  12501. 80050d0: 46bd mov sp, r7
  12502. 80050d2: bd80 pop {r7, pc}
  12503. 80050d4: 200007e0 .word 0x200007e0
  12504. 080050d8 <main>:
  12505. /**
  12506. * @brief The application entry point.
  12507. * @retval int
  12508. */
  12509. int main(void)
  12510. {
  12511. 80050d8: b580 push {r7, lr}
  12512. 80050da: af00 add r7, sp, #0
  12513. /* USER CODE END 1 */
  12514. /* MCU Configuration--------------------------------------------------------*/
  12515. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  12516. HAL_Init();
  12517. 80050dc: f7fc fe2c bl 8001d38 <HAL_Init>
  12518. /* USER CODE BEGIN Init */
  12519. /* USER CODE END Init */
  12520. /* Configure the system clock */
  12521. SystemClock_Config();
  12522. 80050e0: f000 f84c bl 800517c <SystemClock_Config>
  12523. /* USER CODE BEGIN SysInit */
  12524. /* USER CODE END SysInit */
  12525. /* Initialize all configured peripherals */
  12526. MX_GPIO_Init();
  12527. 80050e4: f000 f9d6 bl 8005494 <MX_GPIO_Init>
  12528. MX_DMA_Init();
  12529. 80050e8: f000 f9be bl 8005468 <MX_DMA_Init>
  12530. MX_ADC1_Init();
  12531. 80050ec: f000 f8d6 bl 800529c <MX_ADC1_Init>
  12532. MX_TIM6_Init();
  12533. 80050f0: f000 f930 bl 8005354 <MX_TIM6_Init>
  12534. MX_USART1_UART_Init();
  12535. 80050f4: f000 f964 bl 80053c0 <MX_USART1_UART_Init>
  12536. MX_USART3_UART_Init();
  12537. 80050f8: f000 f98c bl 8005414 <MX_USART3_UART_Init>
  12538. /* Initialize interrupts */
  12539. MX_NVIC_Init();
  12540. 80050fc: f000 f892 bl 8005224 <MX_NVIC_Init>
  12541. /* USER CODE BEGIN 2 */
  12542. HAL_TIM_Base_Start_IT(&htim6);
  12543. 8005100: 4815 ldr r0, [pc, #84] ; (8005158 <main+0x80>)
  12544. 8005102: f7fe ff6c bl 8003fde <HAL_TIM_Base_Start_IT>
  12545. setbuf(stdout, NULL);
  12546. 8005106: 4b15 ldr r3, [pc, #84] ; (800515c <main+0x84>)
  12547. 8005108: 681b ldr r3, [r3, #0]
  12548. 800510a: 689b ldr r3, [r3, #8]
  12549. 800510c: 2100 movs r1, #0
  12550. 800510e: 4618 mov r0, r3
  12551. 8005110: f001 fb2e bl 8006770 <setbuf>
  12552. InitUartQueue(&MainQueue);
  12553. 8005114: 4812 ldr r0, [pc, #72] ; (8005160 <main+0x88>)
  12554. 8005116: f7fc fcbd bl 8001a94 <InitUartQueue>
  12555. ADC_Initialize();
  12556. 800511a: f7fc f9ab bl 8001474 <ADC_Initialize>
  12557. NessLab_Init();
  12558. 800511e: f7fb fd83 bl 8000c28 <NessLab_Init>
  12559. #if 1 // PYJ.2020.05.06_BEGIN --
  12560. printf("****************************************\r\n");
  12561. 8005122: 4810 ldr r0, [pc, #64] ; (8005164 <main+0x8c>)
  12562. 8005124: f001 fb1c bl 8006760 <puts>
  12563. printf("NESSLAB Project\r\n");
  12564. 8005128: 480f ldr r0, [pc, #60] ; (8005168 <main+0x90>)
  12565. 800512a: f001 fb19 bl 8006760 <puts>
  12566. printf("Build at %s %s\r\n", __DATE__, __TIME__);
  12567. 800512e: 4a0f ldr r2, [pc, #60] ; (800516c <main+0x94>)
  12568. 8005130: 490f ldr r1, [pc, #60] ; (8005170 <main+0x98>)
  12569. 8005132: 4810 ldr r0, [pc, #64] ; (8005174 <main+0x9c>)
  12570. 8005134: f001 faa0 bl 8006678 <iprintf>
  12571. printf("Copyright (c) 2020. BLUECELL\r\n");
  12572. 8005138: 480f ldr r0, [pc, #60] ; (8005178 <main+0xa0>)
  12573. 800513a: f001 fb11 bl 8006760 <puts>
  12574. printf("****************************************\r\n");
  12575. 800513e: 4809 ldr r0, [pc, #36] ; (8005164 <main+0x8c>)
  12576. 8005140: f001 fb0e bl 8006760 <puts>
  12577. while (1)
  12578. {
  12579. #if 1 // PYJ.2020.08.31_BEGIN --
  12580. Boot_LED_Toggle(); /*LED Check*/
  12581. 8005144: f7fc fc8e bl 8001a64 <Boot_LED_Toggle>
  12582. Uart_Check(); /*Usart Rx*/
  12583. 8005148: f7fc fdb0 bl 8001cac <Uart_Check>
  12584. NessLab_GPIO_Operate();
  12585. 800514c: f7fc f91c bl 8001388 <NessLab_GPIO_Operate>
  12586. ADC_TDD_Arrange();
  12587. 8005150: f7fc fa62 bl 8001618 <ADC_TDD_Arrange>
  12588. {
  12589. 8005154: e7f6 b.n 8005144 <main+0x6c>
  12590. 8005156: bf00 nop
  12591. 8005158: 2000095c .word 0x2000095c
  12592. 800515c: 2000000c .word 0x2000000c
  12593. 8005160: 2000061c .word 0x2000061c
  12594. 8005164: 08008904 .word 0x08008904
  12595. 8005168: 08008930 .word 0x08008930
  12596. 800516c: 08008944 .word 0x08008944
  12597. 8005170: 08008950 .word 0x08008950
  12598. 8005174: 0800895c .word 0x0800895c
  12599. 8005178: 08008970 .word 0x08008970
  12600. 0800517c <SystemClock_Config>:
  12601. /**
  12602. * @brief System Clock Configuration
  12603. * @retval None
  12604. */
  12605. void SystemClock_Config(void)
  12606. {
  12607. 800517c: b580 push {r7, lr}
  12608. 800517e: b092 sub sp, #72 ; 0x48
  12609. 8005180: af00 add r7, sp, #0
  12610. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  12611. 8005182: f107 0320 add.w r3, r7, #32
  12612. 8005186: 2228 movs r2, #40 ; 0x28
  12613. 8005188: 2100 movs r1, #0
  12614. 800518a: 4618 mov r0, r3
  12615. 800518c: f000 fe1c bl 8005dc8 <memset>
  12616. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  12617. 8005190: f107 030c add.w r3, r7, #12
  12618. 8005194: 2200 movs r2, #0
  12619. 8005196: 601a str r2, [r3, #0]
  12620. 8005198: 605a str r2, [r3, #4]
  12621. 800519a: 609a str r2, [r3, #8]
  12622. 800519c: 60da str r2, [r3, #12]
  12623. 800519e: 611a str r2, [r3, #16]
  12624. RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  12625. 80051a0: 463b mov r3, r7
  12626. 80051a2: 2200 movs r2, #0
  12627. 80051a4: 601a str r2, [r3, #0]
  12628. 80051a6: 605a str r2, [r3, #4]
  12629. 80051a8: 609a str r2, [r3, #8]
  12630. /** Initializes the CPU, AHB and APB busses clocks
  12631. */
  12632. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
  12633. 80051aa: 2302 movs r3, #2
  12634. 80051ac: 623b str r3, [r7, #32]
  12635. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  12636. 80051ae: 2301 movs r3, #1
  12637. 80051b0: 633b str r3, [r7, #48] ; 0x30
  12638. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  12639. 80051b2: 2310 movs r3, #16
  12640. 80051b4: 637b str r3, [r7, #52] ; 0x34
  12641. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  12642. 80051b6: 2302 movs r3, #2
  12643. 80051b8: 63fb str r3, [r7, #60] ; 0x3c
  12644. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI_DIV2;
  12645. 80051ba: 2300 movs r3, #0
  12646. 80051bc: 643b str r3, [r7, #64] ; 0x40
  12647. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
  12648. 80051be: f44f 1380 mov.w r3, #1048576 ; 0x100000
  12649. 80051c2: 647b str r3, [r7, #68] ; 0x44
  12650. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  12651. 80051c4: f107 0320 add.w r3, r7, #32
  12652. 80051c8: 4618 mov r0, r3
  12653. 80051ca: f7fe f9c7 bl 800355c <HAL_RCC_OscConfig>
  12654. 80051ce: 4603 mov r3, r0
  12655. 80051d0: 2b00 cmp r3, #0
  12656. 80051d2: d001 beq.n 80051d8 <SystemClock_Config+0x5c>
  12657. {
  12658. Error_Handler();
  12659. 80051d4: f000 fa92 bl 80056fc <Error_Handler>
  12660. }
  12661. /** Initializes the CPU, AHB and APB busses clocks
  12662. */
  12663. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  12664. 80051d8: 230f movs r3, #15
  12665. 80051da: 60fb str r3, [r7, #12]
  12666. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  12667. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  12668. 80051dc: 2302 movs r3, #2
  12669. 80051de: 613b str r3, [r7, #16]
  12670. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  12671. 80051e0: 2300 movs r3, #0
  12672. 80051e2: 617b str r3, [r7, #20]
  12673. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  12674. 80051e4: 2300 movs r3, #0
  12675. 80051e6: 61bb str r3, [r7, #24]
  12676. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  12677. 80051e8: 2300 movs r3, #0
  12678. 80051ea: 61fb str r3, [r7, #28]
  12679. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
  12680. 80051ec: f107 030c add.w r3, r7, #12
  12681. 80051f0: 2100 movs r1, #0
  12682. 80051f2: 4618 mov r0, r3
  12683. 80051f4: f7fe fc32 bl 8003a5c <HAL_RCC_ClockConfig>
  12684. 80051f8: 4603 mov r3, r0
  12685. 80051fa: 2b00 cmp r3, #0
  12686. 80051fc: d001 beq.n 8005202 <SystemClock_Config+0x86>
  12687. {
  12688. Error_Handler();
  12689. 80051fe: f000 fa7d bl 80056fc <Error_Handler>
  12690. }
  12691. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  12692. 8005202: 2302 movs r3, #2
  12693. 8005204: 603b str r3, [r7, #0]
  12694. PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV2;
  12695. 8005206: 2300 movs r3, #0
  12696. 8005208: 60bb str r3, [r7, #8]
  12697. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  12698. 800520a: 463b mov r3, r7
  12699. 800520c: 4618 mov r0, r3
  12700. 800520e: f7fe fdbd bl 8003d8c <HAL_RCCEx_PeriphCLKConfig>
  12701. 8005212: 4603 mov r3, r0
  12702. 8005214: 2b00 cmp r3, #0
  12703. 8005216: d001 beq.n 800521c <SystemClock_Config+0xa0>
  12704. {
  12705. Error_Handler();
  12706. 8005218: f000 fa70 bl 80056fc <Error_Handler>
  12707. }
  12708. }
  12709. 800521c: bf00 nop
  12710. 800521e: 3748 adds r7, #72 ; 0x48
  12711. 8005220: 46bd mov sp, r7
  12712. 8005222: bd80 pop {r7, pc}
  12713. 08005224 <MX_NVIC_Init>:
  12714. /**
  12715. * @brief NVIC Configuration.
  12716. * @retval None
  12717. */
  12718. static void MX_NVIC_Init(void)
  12719. {
  12720. 8005224: b580 push {r7, lr}
  12721. 8005226: af00 add r7, sp, #0
  12722. /* ADC1_IRQn interrupt configuration */
  12723. HAL_NVIC_SetPriority(ADC1_IRQn, 0, 0);
  12724. 8005228: 2200 movs r2, #0
  12725. 800522a: 2100 movs r1, #0
  12726. 800522c: 2012 movs r0, #18
  12727. 800522e: f7fd fb64 bl 80028fa <HAL_NVIC_SetPriority>
  12728. HAL_NVIC_EnableIRQ(ADC1_IRQn);
  12729. 8005232: 2012 movs r0, #18
  12730. 8005234: f7fd fb7d bl 8002932 <HAL_NVIC_EnableIRQ>
  12731. /* USART1_IRQn interrupt configuration */
  12732. HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
  12733. 8005238: 2200 movs r2, #0
  12734. 800523a: 2100 movs r1, #0
  12735. 800523c: 2025 movs r0, #37 ; 0x25
  12736. 800523e: f7fd fb5c bl 80028fa <HAL_NVIC_SetPriority>
  12737. HAL_NVIC_EnableIRQ(USART1_IRQn);
  12738. 8005242: 2025 movs r0, #37 ; 0x25
  12739. 8005244: f7fd fb75 bl 8002932 <HAL_NVIC_EnableIRQ>
  12740. /* USART3_IRQn interrupt configuration */
  12741. HAL_NVIC_SetPriority(USART3_IRQn, 0, 0);
  12742. 8005248: 2200 movs r2, #0
  12743. 800524a: 2100 movs r1, #0
  12744. 800524c: 2027 movs r0, #39 ; 0x27
  12745. 800524e: f7fd fb54 bl 80028fa <HAL_NVIC_SetPriority>
  12746. HAL_NVIC_EnableIRQ(USART3_IRQn);
  12747. 8005252: 2027 movs r0, #39 ; 0x27
  12748. 8005254: f7fd fb6d bl 8002932 <HAL_NVIC_EnableIRQ>
  12749. /* TIM6_DAC_IRQn interrupt configuration */
  12750. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 0, 0);
  12751. 8005258: 2200 movs r2, #0
  12752. 800525a: 2100 movs r1, #0
  12753. 800525c: 2036 movs r0, #54 ; 0x36
  12754. 800525e: f7fd fb4c bl 80028fa <HAL_NVIC_SetPriority>
  12755. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  12756. 8005262: 2036 movs r0, #54 ; 0x36
  12757. 8005264: f7fd fb65 bl 8002932 <HAL_NVIC_EnableIRQ>
  12758. /* DMA1_Channel2_IRQn interrupt configuration */
  12759. HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0);
  12760. 8005268: 2200 movs r2, #0
  12761. 800526a: 2100 movs r1, #0
  12762. 800526c: 200c movs r0, #12
  12763. 800526e: f7fd fb44 bl 80028fa <HAL_NVIC_SetPriority>
  12764. HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn);
  12765. 8005272: 200c movs r0, #12
  12766. 8005274: f7fd fb5d bl 8002932 <HAL_NVIC_EnableIRQ>
  12767. /* DMA1_Channel4_IRQn interrupt configuration */
  12768. HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0);
  12769. 8005278: 2200 movs r2, #0
  12770. 800527a: 2100 movs r1, #0
  12771. 800527c: 200e movs r0, #14
  12772. 800527e: f7fd fb3c bl 80028fa <HAL_NVIC_SetPriority>
  12773. HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn);
  12774. 8005282: 200e movs r0, #14
  12775. 8005284: f7fd fb55 bl 8002932 <HAL_NVIC_EnableIRQ>
  12776. /* DMA1_Channel1_IRQn interrupt configuration */
  12777. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  12778. 8005288: 2200 movs r2, #0
  12779. 800528a: 2100 movs r1, #0
  12780. 800528c: 200b movs r0, #11
  12781. 800528e: f7fd fb34 bl 80028fa <HAL_NVIC_SetPriority>
  12782. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  12783. 8005292: 200b movs r0, #11
  12784. 8005294: f7fd fb4d bl 8002932 <HAL_NVIC_EnableIRQ>
  12785. }
  12786. 8005298: bf00 nop
  12787. 800529a: bd80 pop {r7, pc}
  12788. 0800529c <MX_ADC1_Init>:
  12789. * @brief ADC1 Initialization Function
  12790. * @param None
  12791. * @retval None
  12792. */
  12793. static void MX_ADC1_Init(void)
  12794. {
  12795. 800529c: b580 push {r7, lr}
  12796. 800529e: b084 sub sp, #16
  12797. 80052a0: af00 add r7, sp, #0
  12798. /* USER CODE BEGIN ADC1_Init 0 */
  12799. /* USER CODE END ADC1_Init 0 */
  12800. ADC_ChannelConfTypeDef sConfig = {0};
  12801. 80052a2: 1d3b adds r3, r7, #4
  12802. 80052a4: 2200 movs r2, #0
  12803. 80052a6: 601a str r2, [r3, #0]
  12804. 80052a8: 605a str r2, [r3, #4]
  12805. 80052aa: 609a str r2, [r3, #8]
  12806. /* USER CODE BEGIN ADC1_Init 1 */
  12807. /* USER CODE END ADC1_Init 1 */
  12808. /** Common config
  12809. */
  12810. hadc1.Instance = ADC1;
  12811. 80052ac: 4b27 ldr r3, [pc, #156] ; (800534c <MX_ADC1_Init+0xb0>)
  12812. 80052ae: 4a28 ldr r2, [pc, #160] ; (8005350 <MX_ADC1_Init+0xb4>)
  12813. 80052b0: 601a str r2, [r3, #0]
  12814. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  12815. 80052b2: 4b26 ldr r3, [pc, #152] ; (800534c <MX_ADC1_Init+0xb0>)
  12816. 80052b4: f44f 7280 mov.w r2, #256 ; 0x100
  12817. 80052b8: 609a str r2, [r3, #8]
  12818. hadc1.Init.ContinuousConvMode = ENABLE;
  12819. 80052ba: 4b24 ldr r3, [pc, #144] ; (800534c <MX_ADC1_Init+0xb0>)
  12820. 80052bc: 2201 movs r2, #1
  12821. 80052be: 731a strb r2, [r3, #12]
  12822. hadc1.Init.DiscontinuousConvMode = DISABLE;
  12823. 80052c0: 4b22 ldr r3, [pc, #136] ; (800534c <MX_ADC1_Init+0xb0>)
  12824. 80052c2: 2200 movs r2, #0
  12825. 80052c4: 751a strb r2, [r3, #20]
  12826. hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  12827. 80052c6: 4b21 ldr r3, [pc, #132] ; (800534c <MX_ADC1_Init+0xb0>)
  12828. 80052c8: f44f 2260 mov.w r2, #917504 ; 0xe0000
  12829. 80052cc: 61da str r2, [r3, #28]
  12830. hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  12831. 80052ce: 4b1f ldr r3, [pc, #124] ; (800534c <MX_ADC1_Init+0xb0>)
  12832. 80052d0: 2200 movs r2, #0
  12833. 80052d2: 605a str r2, [r3, #4]
  12834. hadc1.Init.NbrOfConversion = 3;
  12835. 80052d4: 4b1d ldr r3, [pc, #116] ; (800534c <MX_ADC1_Init+0xb0>)
  12836. 80052d6: 2203 movs r2, #3
  12837. 80052d8: 611a str r2, [r3, #16]
  12838. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  12839. 80052da: 481c ldr r0, [pc, #112] ; (800534c <MX_ADC1_Init+0xb0>)
  12840. 80052dc: f7fc fd78 bl 8001dd0 <HAL_ADC_Init>
  12841. 80052e0: 4603 mov r3, r0
  12842. 80052e2: 2b00 cmp r3, #0
  12843. 80052e4: d001 beq.n 80052ea <MX_ADC1_Init+0x4e>
  12844. {
  12845. Error_Handler();
  12846. 80052e6: f000 fa09 bl 80056fc <Error_Handler>
  12847. }
  12848. /** Configure Regular Channel
  12849. */
  12850. sConfig.Channel = ADC_CHANNEL_0;
  12851. 80052ea: 2300 movs r3, #0
  12852. 80052ec: 607b str r3, [r7, #4]
  12853. sConfig.Rank = ADC_REGULAR_RANK_1;
  12854. 80052ee: 2301 movs r3, #1
  12855. 80052f0: 60bb str r3, [r7, #8]
  12856. sConfig.SamplingTime = ADC_SAMPLETIME_239CYCLES_5;
  12857. 80052f2: 2307 movs r3, #7
  12858. 80052f4: 60fb str r3, [r7, #12]
  12859. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12860. 80052f6: 1d3b adds r3, r7, #4
  12861. 80052f8: 4619 mov r1, r3
  12862. 80052fa: 4814 ldr r0, [pc, #80] ; (800534c <MX_ADC1_Init+0xb0>)
  12863. 80052fc: f7fc ffb8 bl 8002270 <HAL_ADC_ConfigChannel>
  12864. 8005300: 4603 mov r3, r0
  12865. 8005302: 2b00 cmp r3, #0
  12866. 8005304: d001 beq.n 800530a <MX_ADC1_Init+0x6e>
  12867. {
  12868. Error_Handler();
  12869. 8005306: f000 f9f9 bl 80056fc <Error_Handler>
  12870. }
  12871. /** Configure Regular Channel
  12872. */
  12873. sConfig.Channel = ADC_CHANNEL_1;
  12874. 800530a: 2301 movs r3, #1
  12875. 800530c: 607b str r3, [r7, #4]
  12876. sConfig.Rank = ADC_REGULAR_RANK_2;
  12877. 800530e: 2302 movs r3, #2
  12878. 8005310: 60bb str r3, [r7, #8]
  12879. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12880. 8005312: 1d3b adds r3, r7, #4
  12881. 8005314: 4619 mov r1, r3
  12882. 8005316: 480d ldr r0, [pc, #52] ; (800534c <MX_ADC1_Init+0xb0>)
  12883. 8005318: f7fc ffaa bl 8002270 <HAL_ADC_ConfigChannel>
  12884. 800531c: 4603 mov r3, r0
  12885. 800531e: 2b00 cmp r3, #0
  12886. 8005320: d001 beq.n 8005326 <MX_ADC1_Init+0x8a>
  12887. {
  12888. Error_Handler();
  12889. 8005322: f000 f9eb bl 80056fc <Error_Handler>
  12890. }
  12891. /** Configure Regular Channel
  12892. */
  12893. sConfig.Channel = ADC_CHANNEL_3;
  12894. 8005326: 2303 movs r3, #3
  12895. 8005328: 607b str r3, [r7, #4]
  12896. sConfig.Rank = ADC_REGULAR_RANK_3;
  12897. 800532a: 2303 movs r3, #3
  12898. 800532c: 60bb str r3, [r7, #8]
  12899. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  12900. 800532e: 1d3b adds r3, r7, #4
  12901. 8005330: 4619 mov r1, r3
  12902. 8005332: 4806 ldr r0, [pc, #24] ; (800534c <MX_ADC1_Init+0xb0>)
  12903. 8005334: f7fc ff9c bl 8002270 <HAL_ADC_ConfigChannel>
  12904. 8005338: 4603 mov r3, r0
  12905. 800533a: 2b00 cmp r3, #0
  12906. 800533c: d001 beq.n 8005342 <MX_ADC1_Init+0xa6>
  12907. {
  12908. Error_Handler();
  12909. 800533e: f000 f9dd bl 80056fc <Error_Handler>
  12910. }
  12911. /* USER CODE BEGIN ADC1_Init 2 */
  12912. /* USER CODE END ADC1_Init 2 */
  12913. }
  12914. 8005342: bf00 nop
  12915. 8005344: 3710 adds r7, #16
  12916. 8005346: 46bd mov sp, r7
  12917. 8005348: bd80 pop {r7, pc}
  12918. 800534a: bf00 nop
  12919. 800534c: 200008a8 .word 0x200008a8
  12920. 8005350: 40012400 .word 0x40012400
  12921. 08005354 <MX_TIM6_Init>:
  12922. * @brief TIM6 Initialization Function
  12923. * @param None
  12924. * @retval None
  12925. */
  12926. static void MX_TIM6_Init(void)
  12927. {
  12928. 8005354: b580 push {r7, lr}
  12929. 8005356: b082 sub sp, #8
  12930. 8005358: af00 add r7, sp, #0
  12931. /* USER CODE BEGIN TIM6_Init 0 */
  12932. /* USER CODE END TIM6_Init 0 */
  12933. TIM_MasterConfigTypeDef sMasterConfig = {0};
  12934. 800535a: 463b mov r3, r7
  12935. 800535c: 2200 movs r2, #0
  12936. 800535e: 601a str r2, [r3, #0]
  12937. 8005360: 605a str r2, [r3, #4]
  12938. /* USER CODE BEGIN TIM6_Init 1 */
  12939. /* USER CODE END TIM6_Init 1 */
  12940. htim6.Instance = TIM6;
  12941. 8005362: 4b15 ldr r3, [pc, #84] ; (80053b8 <MX_TIM6_Init+0x64>)
  12942. 8005364: 4a15 ldr r2, [pc, #84] ; (80053bc <MX_TIM6_Init+0x68>)
  12943. 8005366: 601a str r2, [r3, #0]
  12944. htim6.Init.Prescaler = 2400-1;
  12945. 8005368: 4b13 ldr r3, [pc, #76] ; (80053b8 <MX_TIM6_Init+0x64>)
  12946. 800536a: f640 125f movw r2, #2399 ; 0x95f
  12947. 800536e: 605a str r2, [r3, #4]
  12948. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  12949. 8005370: 4b11 ldr r3, [pc, #68] ; (80053b8 <MX_TIM6_Init+0x64>)
  12950. 8005372: 2200 movs r2, #0
  12951. 8005374: 609a str r2, [r3, #8]
  12952. htim6.Init.Period = 10;
  12953. 8005376: 4b10 ldr r3, [pc, #64] ; (80053b8 <MX_TIM6_Init+0x64>)
  12954. 8005378: 220a movs r2, #10
  12955. 800537a: 60da str r2, [r3, #12]
  12956. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  12957. 800537c: 4b0e ldr r3, [pc, #56] ; (80053b8 <MX_TIM6_Init+0x64>)
  12958. 800537e: 2200 movs r2, #0
  12959. 8005380: 619a str r2, [r3, #24]
  12960. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  12961. 8005382: 480d ldr r0, [pc, #52] ; (80053b8 <MX_TIM6_Init+0x64>)
  12962. 8005384: f7fe fe00 bl 8003f88 <HAL_TIM_Base_Init>
  12963. 8005388: 4603 mov r3, r0
  12964. 800538a: 2b00 cmp r3, #0
  12965. 800538c: d001 beq.n 8005392 <MX_TIM6_Init+0x3e>
  12966. {
  12967. Error_Handler();
  12968. 800538e: f000 f9b5 bl 80056fc <Error_Handler>
  12969. }
  12970. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  12971. 8005392: 2300 movs r3, #0
  12972. 8005394: 603b str r3, [r7, #0]
  12973. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  12974. 8005396: 2300 movs r3, #0
  12975. 8005398: 607b str r3, [r7, #4]
  12976. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  12977. 800539a: 463b mov r3, r7
  12978. 800539c: 4619 mov r1, r3
  12979. 800539e: 4806 ldr r0, [pc, #24] ; (80053b8 <MX_TIM6_Init+0x64>)
  12980. 80053a0: f7fe ffec bl 800437c <HAL_TIMEx_MasterConfigSynchronization>
  12981. 80053a4: 4603 mov r3, r0
  12982. 80053a6: 2b00 cmp r3, #0
  12983. 80053a8: d001 beq.n 80053ae <MX_TIM6_Init+0x5a>
  12984. {
  12985. Error_Handler();
  12986. 80053aa: f000 f9a7 bl 80056fc <Error_Handler>
  12987. }
  12988. /* USER CODE BEGIN TIM6_Init 2 */
  12989. /* USER CODE END TIM6_Init 2 */
  12990. }
  12991. 80053ae: bf00 nop
  12992. 80053b0: 3708 adds r7, #8
  12993. 80053b2: 46bd mov sp, r7
  12994. 80053b4: bd80 pop {r7, pc}
  12995. 80053b6: bf00 nop
  12996. 80053b8: 2000095c .word 0x2000095c
  12997. 80053bc: 40001000 .word 0x40001000
  12998. 080053c0 <MX_USART1_UART_Init>:
  12999. * @brief USART1 Initialization Function
  13000. * @param None
  13001. * @retval None
  13002. */
  13003. static void MX_USART1_UART_Init(void)
  13004. {
  13005. 80053c0: b580 push {r7, lr}
  13006. 80053c2: af00 add r7, sp, #0
  13007. /* USER CODE END USART1_Init 0 */
  13008. /* USER CODE BEGIN USART1_Init 1 */
  13009. /* USER CODE END USART1_Init 1 */
  13010. huart1.Instance = USART1;
  13011. 80053c4: 4b11 ldr r3, [pc, #68] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13012. 80053c6: 4a12 ldr r2, [pc, #72] ; (8005410 <MX_USART1_UART_Init+0x50>)
  13013. 80053c8: 601a str r2, [r3, #0]
  13014. huart1.Init.BaudRate = 115200;
  13015. 80053ca: 4b10 ldr r3, [pc, #64] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13016. 80053cc: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  13017. 80053d0: 605a str r2, [r3, #4]
  13018. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  13019. 80053d2: 4b0e ldr r3, [pc, #56] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13020. 80053d4: 2200 movs r2, #0
  13021. 80053d6: 609a str r2, [r3, #8]
  13022. huart1.Init.StopBits = UART_STOPBITS_1;
  13023. 80053d8: 4b0c ldr r3, [pc, #48] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13024. 80053da: 2200 movs r2, #0
  13025. 80053dc: 60da str r2, [r3, #12]
  13026. huart1.Init.Parity = UART_PARITY_NONE;
  13027. 80053de: 4b0b ldr r3, [pc, #44] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13028. 80053e0: 2200 movs r2, #0
  13029. 80053e2: 611a str r2, [r3, #16]
  13030. huart1.Init.Mode = UART_MODE_TX_RX;
  13031. 80053e4: 4b09 ldr r3, [pc, #36] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13032. 80053e6: 220c movs r2, #12
  13033. 80053e8: 615a str r2, [r3, #20]
  13034. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  13035. 80053ea: 4b08 ldr r3, [pc, #32] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13036. 80053ec: 2200 movs r2, #0
  13037. 80053ee: 619a str r2, [r3, #24]
  13038. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  13039. 80053f0: 4b06 ldr r3, [pc, #24] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13040. 80053f2: 2200 movs r2, #0
  13041. 80053f4: 61da str r2, [r3, #28]
  13042. if (HAL_UART_Init(&huart1) != HAL_OK)
  13043. 80053f6: 4805 ldr r0, [pc, #20] ; (800540c <MX_USART1_UART_Init+0x4c>)
  13044. 80053f8: f7ff f816 bl 8004428 <HAL_UART_Init>
  13045. 80053fc: 4603 mov r3, r0
  13046. 80053fe: 2b00 cmp r3, #0
  13047. 8005400: d001 beq.n 8005406 <MX_USART1_UART_Init+0x46>
  13048. {
  13049. Error_Handler();
  13050. 8005402: f000 f97b bl 80056fc <Error_Handler>
  13051. }
  13052. /* USER CODE BEGIN USART1_Init 2 */
  13053. /* USER CODE END USART1_Init 2 */
  13054. }
  13055. 8005406: bf00 nop
  13056. 8005408: bd80 pop {r7, pc}
  13057. 800540a: bf00 nop
  13058. 800540c: 200008d8 .word 0x200008d8
  13059. 8005410: 40013800 .word 0x40013800
  13060. 08005414 <MX_USART3_UART_Init>:
  13061. * @brief USART3 Initialization Function
  13062. * @param None
  13063. * @retval None
  13064. */
  13065. static void MX_USART3_UART_Init(void)
  13066. {
  13067. 8005414: b580 push {r7, lr}
  13068. 8005416: af00 add r7, sp, #0
  13069. /* USER CODE END USART3_Init 0 */
  13070. /* USER CODE BEGIN USART3_Init 1 */
  13071. /* USER CODE END USART3_Init 1 */
  13072. huart3.Instance = USART3;
  13073. 8005418: 4b11 ldr r3, [pc, #68] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13074. 800541a: 4a12 ldr r2, [pc, #72] ; (8005464 <MX_USART3_UART_Init+0x50>)
  13075. 800541c: 601a str r2, [r3, #0]
  13076. huart3.Init.BaudRate = 115200;
  13077. 800541e: 4b10 ldr r3, [pc, #64] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13078. 8005420: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  13079. 8005424: 605a str r2, [r3, #4]
  13080. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  13081. 8005426: 4b0e ldr r3, [pc, #56] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13082. 8005428: 2200 movs r2, #0
  13083. 800542a: 609a str r2, [r3, #8]
  13084. huart3.Init.StopBits = UART_STOPBITS_1;
  13085. 800542c: 4b0c ldr r3, [pc, #48] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13086. 800542e: 2200 movs r2, #0
  13087. 8005430: 60da str r2, [r3, #12]
  13088. huart3.Init.Parity = UART_PARITY_NONE;
  13089. 8005432: 4b0b ldr r3, [pc, #44] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13090. 8005434: 2200 movs r2, #0
  13091. 8005436: 611a str r2, [r3, #16]
  13092. huart3.Init.Mode = UART_MODE_TX_RX;
  13093. 8005438: 4b09 ldr r3, [pc, #36] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13094. 800543a: 220c movs r2, #12
  13095. 800543c: 615a str r2, [r3, #20]
  13096. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  13097. 800543e: 4b08 ldr r3, [pc, #32] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13098. 8005440: 2200 movs r2, #0
  13099. 8005442: 619a str r2, [r3, #24]
  13100. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  13101. 8005444: 4b06 ldr r3, [pc, #24] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13102. 8005446: 2200 movs r2, #0
  13103. 8005448: 61da str r2, [r3, #28]
  13104. if (HAL_UART_Init(&huart3) != HAL_OK)
  13105. 800544a: 4805 ldr r0, [pc, #20] ; (8005460 <MX_USART3_UART_Init+0x4c>)
  13106. 800544c: f7fe ffec bl 8004428 <HAL_UART_Init>
  13107. 8005450: 4603 mov r3, r0
  13108. 8005452: 2b00 cmp r3, #0
  13109. 8005454: d001 beq.n 800545a <MX_USART3_UART_Init+0x46>
  13110. {
  13111. Error_Handler();
  13112. 8005456: f000 f951 bl 80056fc <Error_Handler>
  13113. }
  13114. /* USER CODE BEGIN USART3_Init 2 */
  13115. /* USER CODE END USART3_Init 2 */
  13116. }
  13117. 800545a: bf00 nop
  13118. 800545c: bd80 pop {r7, pc}
  13119. 800545e: bf00 nop
  13120. 8005460: 200007e0 .word 0x200007e0
  13121. 8005464: 40004800 .word 0x40004800
  13122. 08005468 <MX_DMA_Init>:
  13123. /**
  13124. * Enable DMA controller clock
  13125. */
  13126. static void MX_DMA_Init(void)
  13127. {
  13128. 8005468: b480 push {r7}
  13129. 800546a: b083 sub sp, #12
  13130. 800546c: af00 add r7, sp, #0
  13131. /* DMA controller clock enable */
  13132. __HAL_RCC_DMA1_CLK_ENABLE();
  13133. 800546e: 4b08 ldr r3, [pc, #32] ; (8005490 <MX_DMA_Init+0x28>)
  13134. 8005470: 695b ldr r3, [r3, #20]
  13135. 8005472: 4a07 ldr r2, [pc, #28] ; (8005490 <MX_DMA_Init+0x28>)
  13136. 8005474: f043 0301 orr.w r3, r3, #1
  13137. 8005478: 6153 str r3, [r2, #20]
  13138. 800547a: 4b05 ldr r3, [pc, #20] ; (8005490 <MX_DMA_Init+0x28>)
  13139. 800547c: 695b ldr r3, [r3, #20]
  13140. 800547e: f003 0301 and.w r3, r3, #1
  13141. 8005482: 607b str r3, [r7, #4]
  13142. 8005484: 687b ldr r3, [r7, #4]
  13143. }
  13144. 8005486: bf00 nop
  13145. 8005488: 370c adds r7, #12
  13146. 800548a: 46bd mov sp, r7
  13147. 800548c: bc80 pop {r7}
  13148. 800548e: 4770 bx lr
  13149. 8005490: 40021000 .word 0x40021000
  13150. 08005494 <MX_GPIO_Init>:
  13151. * @brief GPIO Initialization Function
  13152. * @param None
  13153. * @retval None
  13154. */
  13155. static void MX_GPIO_Init(void)
  13156. {
  13157. 8005494: b580 push {r7, lr}
  13158. 8005496: b088 sub sp, #32
  13159. 8005498: af00 add r7, sp, #0
  13160. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13161. 800549a: f107 0310 add.w r3, r7, #16
  13162. 800549e: 2200 movs r2, #0
  13163. 80054a0: 601a str r2, [r3, #0]
  13164. 80054a2: 605a str r2, [r3, #4]
  13165. 80054a4: 609a str r2, [r3, #8]
  13166. 80054a6: 60da str r2, [r3, #12]
  13167. /* GPIO Ports Clock Enable */
  13168. __HAL_RCC_GPIOC_CLK_ENABLE();
  13169. 80054a8: 4b40 ldr r3, [pc, #256] ; (80055ac <MX_GPIO_Init+0x118>)
  13170. 80054aa: 699b ldr r3, [r3, #24]
  13171. 80054ac: 4a3f ldr r2, [pc, #252] ; (80055ac <MX_GPIO_Init+0x118>)
  13172. 80054ae: f043 0310 orr.w r3, r3, #16
  13173. 80054b2: 6193 str r3, [r2, #24]
  13174. 80054b4: 4b3d ldr r3, [pc, #244] ; (80055ac <MX_GPIO_Init+0x118>)
  13175. 80054b6: 699b ldr r3, [r3, #24]
  13176. 80054b8: f003 0310 and.w r3, r3, #16
  13177. 80054bc: 60fb str r3, [r7, #12]
  13178. 80054be: 68fb ldr r3, [r7, #12]
  13179. __HAL_RCC_GPIOA_CLK_ENABLE();
  13180. 80054c0: 4b3a ldr r3, [pc, #232] ; (80055ac <MX_GPIO_Init+0x118>)
  13181. 80054c2: 699b ldr r3, [r3, #24]
  13182. 80054c4: 4a39 ldr r2, [pc, #228] ; (80055ac <MX_GPIO_Init+0x118>)
  13183. 80054c6: f043 0304 orr.w r3, r3, #4
  13184. 80054ca: 6193 str r3, [r2, #24]
  13185. 80054cc: 4b37 ldr r3, [pc, #220] ; (80055ac <MX_GPIO_Init+0x118>)
  13186. 80054ce: 699b ldr r3, [r3, #24]
  13187. 80054d0: f003 0304 and.w r3, r3, #4
  13188. 80054d4: 60bb str r3, [r7, #8]
  13189. 80054d6: 68bb ldr r3, [r7, #8]
  13190. __HAL_RCC_GPIOB_CLK_ENABLE();
  13191. 80054d8: 4b34 ldr r3, [pc, #208] ; (80055ac <MX_GPIO_Init+0x118>)
  13192. 80054da: 699b ldr r3, [r3, #24]
  13193. 80054dc: 4a33 ldr r2, [pc, #204] ; (80055ac <MX_GPIO_Init+0x118>)
  13194. 80054de: f043 0308 orr.w r3, r3, #8
  13195. 80054e2: 6193 str r3, [r2, #24]
  13196. 80054e4: 4b31 ldr r3, [pc, #196] ; (80055ac <MX_GPIO_Init+0x118>)
  13197. 80054e6: 699b ldr r3, [r3, #24]
  13198. 80054e8: f003 0308 and.w r3, r3, #8
  13199. 80054ec: 607b str r3, [r7, #4]
  13200. 80054ee: 687b ldr r3, [r7, #4]
  13201. /*Configure GPIO pin Output Level */
  13202. HAL_GPIO_WritePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin, GPIO_PIN_RESET);
  13203. 80054f0: 2200 movs r2, #0
  13204. 80054f2: f44f 4100 mov.w r1, #32768 ; 0x8000
  13205. 80054f6: 482e ldr r0, [pc, #184] ; (80055b0 <MX_GPIO_Init+0x11c>)
  13206. 80054f8: f7fd ffff bl 80034fa <HAL_GPIO_WritePin>
  13207. /*Configure GPIO pin Output Level */
  13208. HAL_GPIO_WritePin(GPIOA, PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin, GPIO_PIN_RESET);
  13209. 80054fc: 2200 movs r2, #0
  13210. 80054fe: f44f 71e0 mov.w r1, #448 ; 0x1c0
  13211. 8005502: 482c ldr r0, [pc, #176] ; (80055b4 <MX_GPIO_Init+0x120>)
  13212. 8005504: f7fd fff9 bl 80034fa <HAL_GPIO_WritePin>
  13213. /*Configure GPIO pin Output Level */
  13214. HAL_GPIO_WritePin(GPIOB, PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin, GPIO_PIN_RESET);
  13215. 8005508: 2200 movs r2, #0
  13216. 800550a: f244 0103 movw r1, #16387 ; 0x4003
  13217. 800550e: 482a ldr r0, [pc, #168] ; (80055b8 <MX_GPIO_Init+0x124>)
  13218. 8005510: f7fd fff3 bl 80034fa <HAL_GPIO_WritePin>
  13219. /*Configure GPIO pin : BOOT_LED_Pin */
  13220. GPIO_InitStruct.Pin = BOOT_LED_Pin;
  13221. 8005514: f44f 4300 mov.w r3, #32768 ; 0x8000
  13222. 8005518: 613b str r3, [r7, #16]
  13223. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  13224. 800551a: 2301 movs r3, #1
  13225. 800551c: 617b str r3, [r7, #20]
  13226. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13227. 800551e: 2300 movs r3, #0
  13228. 8005520: 61bb str r3, [r7, #24]
  13229. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  13230. 8005522: 2302 movs r3, #2
  13231. 8005524: 61fb str r3, [r7, #28]
  13232. HAL_GPIO_Init(BOOT_LED_GPIO_Port, &GPIO_InitStruct);
  13233. 8005526: f107 0310 add.w r3, r7, #16
  13234. 800552a: 4619 mov r1, r3
  13235. 800552c: 4820 ldr r0, [pc, #128] ; (80055b0 <MX_GPIO_Init+0x11c>)
  13236. 800552e: f7fd fe73 bl 8003218 <HAL_GPIO_Init>
  13237. /*Configure GPIO pins : DC_FAIL_ALARM_Pin OVER_INPUT_ALARM_Pin OVER_TEMP_ALARM_Pin */
  13238. GPIO_InitStruct.Pin = DC_FAIL_ALARM_Pin|OVER_INPUT_ALARM_Pin|OVER_TEMP_ALARM_Pin;
  13239. 8005532: f641 0304 movw r3, #6148 ; 0x1804
  13240. 8005536: 613b str r3, [r7, #16]
  13241. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13242. 8005538: 2300 movs r3, #0
  13243. 800553a: 617b str r3, [r7, #20]
  13244. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13245. 800553c: 2300 movs r3, #0
  13246. 800553e: 61bb str r3, [r7, #24]
  13247. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13248. 8005540: f107 0310 add.w r3, r7, #16
  13249. 8005544: 4619 mov r1, r3
  13250. 8005546: 481b ldr r0, [pc, #108] ; (80055b4 <MX_GPIO_Init+0x120>)
  13251. 8005548: f7fd fe66 bl 8003218 <HAL_GPIO_Init>
  13252. /*Configure GPIO pins : PAU_RESERVED0_Pin PAU_RESERVED1_Pin AMP_EN_Pin */
  13253. GPIO_InitStruct.Pin = PAU_RESERVED0_Pin|PAU_RESERVED1_Pin|AMP_EN_Pin;
  13254. 800554c: f44f 73e0 mov.w r3, #448 ; 0x1c0
  13255. 8005550: 613b str r3, [r7, #16]
  13256. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  13257. 8005552: 2301 movs r3, #1
  13258. 8005554: 617b str r3, [r7, #20]
  13259. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13260. 8005556: 2300 movs r3, #0
  13261. 8005558: 61bb str r3, [r7, #24]
  13262. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  13263. 800555a: 2302 movs r3, #2
  13264. 800555c: 61fb str r3, [r7, #28]
  13265. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13266. 800555e: f107 0310 add.w r3, r7, #16
  13267. 8005562: 4619 mov r1, r3
  13268. 8005564: 4813 ldr r0, [pc, #76] ; (80055b4 <MX_GPIO_Init+0x120>)
  13269. 8005566: f7fd fe57 bl 8003218 <HAL_GPIO_Init>
  13270. /*Configure GPIO pins : PAU_RESERVED3_Pin PAU_RESERVED2_Pin PAU_RESET_Pin */
  13271. GPIO_InitStruct.Pin = PAU_RESERVED3_Pin|PAU_RESERVED2_Pin|PAU_RESET_Pin;
  13272. 800556a: f244 0303 movw r3, #16387 ; 0x4003
  13273. 800556e: 613b str r3, [r7, #16]
  13274. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  13275. 8005570: 2301 movs r3, #1
  13276. 8005572: 617b str r3, [r7, #20]
  13277. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13278. 8005574: 2300 movs r3, #0
  13279. 8005576: 61bb str r3, [r7, #24]
  13280. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  13281. 8005578: 2302 movs r3, #2
  13282. 800557a: 61fb str r3, [r7, #28]
  13283. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13284. 800557c: f107 0310 add.w r3, r7, #16
  13285. 8005580: 4619 mov r1, r3
  13286. 8005582: 480d ldr r0, [pc, #52] ; (80055b8 <MX_GPIO_Init+0x124>)
  13287. 8005584: f7fd fe48 bl 8003218 <HAL_GPIO_Init>
  13288. /*Configure GPIO pins : OVER_POWER_ALARM_Pin VSWR_ALARM_Pin PAU_EN_Pin ALC_ALARM_Pin */
  13289. GPIO_InitStruct.Pin = OVER_POWER_ALARM_Pin|VSWR_ALARM_Pin|PAU_EN_Pin|ALC_ALARM_Pin;
  13290. 8005588: f24b 0308 movw r3, #45064 ; 0xb008
  13291. 800558c: 613b str r3, [r7, #16]
  13292. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13293. 800558e: 2300 movs r3, #0
  13294. 8005590: 617b str r3, [r7, #20]
  13295. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13296. 8005592: 2300 movs r3, #0
  13297. 8005594: 61bb str r3, [r7, #24]
  13298. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13299. 8005596: f107 0310 add.w r3, r7, #16
  13300. 800559a: 4619 mov r1, r3
  13301. 800559c: 4806 ldr r0, [pc, #24] ; (80055b8 <MX_GPIO_Init+0x124>)
  13302. 800559e: f7fd fe3b bl 8003218 <HAL_GPIO_Init>
  13303. }
  13304. 80055a2: bf00 nop
  13305. 80055a4: 3720 adds r7, #32
  13306. 80055a6: 46bd mov sp, r7
  13307. 80055a8: bd80 pop {r7, pc}
  13308. 80055aa: bf00 nop
  13309. 80055ac: 40021000 .word 0x40021000
  13310. 80055b0: 40011000 .word 0x40011000
  13311. 80055b4: 40010800 .word 0x40010800
  13312. 80055b8: 40010c00 .word 0x40010c00
  13313. 080055bc <HAL_TIM_PeriodElapsedCallback>:
  13314. * a global variable "uwTick" used as application time base.
  13315. * @param htim : TIM handle
  13316. * @retval None
  13317. */
  13318. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  13319. {
  13320. 80055bc: b580 push {r7, lr}
  13321. 80055be: b082 sub sp, #8
  13322. 80055c0: af00 add r7, sp, #0
  13323. 80055c2: 6078 str r0, [r7, #4]
  13324. /* USER CODE BEGIN Callback 0 */
  13325. /* USER CODE END Callback 0 */
  13326. if (htim->Instance == TIM2) {
  13327. 80055c4: 687b ldr r3, [r7, #4]
  13328. 80055c6: 681b ldr r3, [r3, #0]
  13329. 80055c8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  13330. 80055cc: d101 bne.n 80055d2 <HAL_TIM_PeriodElapsedCallback+0x16>
  13331. HAL_IncTick();
  13332. 80055ce: f7fc fbc1 bl 8001d54 <HAL_IncTick>
  13333. }
  13334. /* USER CODE BEGIN Callback 1 */
  13335. if(htim->Instance == TIM6){
  13336. 80055d2: 687b ldr r3, [r7, #4]
  13337. 80055d4: 681b ldr r3, [r3, #0]
  13338. 80055d6: 4a3d ldr r2, [pc, #244] ; (80056cc <HAL_TIM_PeriodElapsedCallback+0x110>)
  13339. 80055d8: 4293 cmp r3, r2
  13340. 80055da: d172 bne.n 80056c2 <HAL_TIM_PeriodElapsedCallback+0x106>
  13341. UartRxTimerCnt++;
  13342. 80055dc: 4b3c ldr r3, [pc, #240] ; (80056d0 <HAL_TIM_PeriodElapsedCallback+0x114>)
  13343. 80055de: 681b ldr r3, [r3, #0]
  13344. 80055e0: 3301 adds r3, #1
  13345. 80055e2: 4a3b ldr r2, [pc, #236] ; (80056d0 <HAL_TIM_PeriodElapsedCallback+0x114>)
  13346. 80055e4: 6013 str r3, [r2, #0]
  13347. LED_TimerCnt++;
  13348. 80055e6: 4b3b ldr r3, [pc, #236] ; (80056d4 <HAL_TIM_PeriodElapsedCallback+0x118>)
  13349. 80055e8: 681b ldr r3, [r3, #0]
  13350. 80055ea: 3301 adds r3, #1
  13351. 80055ec: 4a39 ldr r2, [pc, #228] ; (80056d4 <HAL_TIM_PeriodElapsedCallback+0x118>)
  13352. 80055ee: 6013 str r3, [r2, #0]
  13353. TDD_125ms_Cnt++;
  13354. 80055f0: 4b39 ldr r3, [pc, #228] ; (80056d8 <HAL_TIM_PeriodElapsedCallback+0x11c>)
  13355. 80055f2: 681b ldr r3, [r3, #0]
  13356. 80055f4: 3301 adds r3, #1
  13357. 80055f6: 4a38 ldr r2, [pc, #224] ; (80056d8 <HAL_TIM_PeriodElapsedCallback+0x11c>)
  13358. 80055f8: 6013 str r3, [r2, #0]
  13359. if(HAL_GPIO_ReadPin(DC_FAIL_ALARM_GPIO_Port, DC_FAIL_ALARM_Pin) == GPIO_PIN_SET)
  13360. 80055fa: 2104 movs r1, #4
  13361. 80055fc: 4837 ldr r0, [pc, #220] ; (80056dc <HAL_TIM_PeriodElapsedCallback+0x120>)
  13362. 80055fe: f7fd ff65 bl 80034cc <HAL_GPIO_ReadPin>
  13363. 8005602: 4603 mov r3, r0
  13364. 8005604: 2b01 cmp r3, #1
  13365. 8005606: d105 bne.n 8005614 <HAL_TIM_PeriodElapsedCallback+0x58>
  13366. DC_FAIL_ALARM_CNT++;
  13367. 8005608: 4b35 ldr r3, [pc, #212] ; (80056e0 <HAL_TIM_PeriodElapsedCallback+0x124>)
  13368. 800560a: 681b ldr r3, [r3, #0]
  13369. 800560c: 3301 adds r3, #1
  13370. 800560e: 4a34 ldr r2, [pc, #208] ; (80056e0 <HAL_TIM_PeriodElapsedCallback+0x124>)
  13371. 8005610: 6013 str r3, [r2, #0]
  13372. 8005612: e002 b.n 800561a <HAL_TIM_PeriodElapsedCallback+0x5e>
  13373. else
  13374. DC_FAIL_ALARM_CNT = 0;
  13375. 8005614: 4b32 ldr r3, [pc, #200] ; (80056e0 <HAL_TIM_PeriodElapsedCallback+0x124>)
  13376. 8005616: 2200 movs r2, #0
  13377. 8005618: 601a str r2, [r3, #0]
  13378. if(HAL_GPIO_ReadPin(OVER_INPUT_ALARM_GPIO_Port, OVER_INPUT_ALARM_Pin)== GPIO_PIN_SET)
  13379. 800561a: f44f 6100 mov.w r1, #2048 ; 0x800
  13380. 800561e: 482f ldr r0, [pc, #188] ; (80056dc <HAL_TIM_PeriodElapsedCallback+0x120>)
  13381. 8005620: f7fd ff54 bl 80034cc <HAL_GPIO_ReadPin>
  13382. 8005624: 4603 mov r3, r0
  13383. 8005626: 2b01 cmp r3, #1
  13384. 8005628: d105 bne.n 8005636 <HAL_TIM_PeriodElapsedCallback+0x7a>
  13385. OVER_INPUT_ALARM_CNT++;
  13386. 800562a: 4b2e ldr r3, [pc, #184] ; (80056e4 <HAL_TIM_PeriodElapsedCallback+0x128>)
  13387. 800562c: 681b ldr r3, [r3, #0]
  13388. 800562e: 3301 adds r3, #1
  13389. 8005630: 4a2c ldr r2, [pc, #176] ; (80056e4 <HAL_TIM_PeriodElapsedCallback+0x128>)
  13390. 8005632: 6013 str r3, [r2, #0]
  13391. 8005634: e002 b.n 800563c <HAL_TIM_PeriodElapsedCallback+0x80>
  13392. else
  13393. OVER_INPUT_ALARM_CNT = 0;
  13394. 8005636: 4b2b ldr r3, [pc, #172] ; (80056e4 <HAL_TIM_PeriodElapsedCallback+0x128>)
  13395. 8005638: 2200 movs r2, #0
  13396. 800563a: 601a str r2, [r3, #0]
  13397. if(HAL_GPIO_ReadPin(OVER_TEMP_ALARM_GPIO_Port, OVER_TEMP_ALARM_Pin)== GPIO_PIN_SET)
  13398. 800563c: f44f 5180 mov.w r1, #4096 ; 0x1000
  13399. 8005640: 4826 ldr r0, [pc, #152] ; (80056dc <HAL_TIM_PeriodElapsedCallback+0x120>)
  13400. 8005642: f7fd ff43 bl 80034cc <HAL_GPIO_ReadPin>
  13401. 8005646: 4603 mov r3, r0
  13402. 8005648: 2b01 cmp r3, #1
  13403. 800564a: d105 bne.n 8005658 <HAL_TIM_PeriodElapsedCallback+0x9c>
  13404. OVER_TEMP_ALARM_CNT++;
  13405. 800564c: 4b26 ldr r3, [pc, #152] ; (80056e8 <HAL_TIM_PeriodElapsedCallback+0x12c>)
  13406. 800564e: 681b ldr r3, [r3, #0]
  13407. 8005650: 3301 adds r3, #1
  13408. 8005652: 4a25 ldr r2, [pc, #148] ; (80056e8 <HAL_TIM_PeriodElapsedCallback+0x12c>)
  13409. 8005654: 6013 str r3, [r2, #0]
  13410. 8005656: e002 b.n 800565e <HAL_TIM_PeriodElapsedCallback+0xa2>
  13411. else
  13412. OVER_TEMP_ALARM_CNT = 0;
  13413. 8005658: 4b23 ldr r3, [pc, #140] ; (80056e8 <HAL_TIM_PeriodElapsedCallback+0x12c>)
  13414. 800565a: 2200 movs r2, #0
  13415. 800565c: 601a str r2, [r3, #0]
  13416. if(HAL_GPIO_ReadPin(ALC_ALARM_GPIO_Port, ALC_ALARM_Pin)== GPIO_PIN_SET)
  13417. 800565e: 2108 movs r1, #8
  13418. 8005660: 4822 ldr r0, [pc, #136] ; (80056ec <HAL_TIM_PeriodElapsedCallback+0x130>)
  13419. 8005662: f7fd ff33 bl 80034cc <HAL_GPIO_ReadPin>
  13420. 8005666: 4603 mov r3, r0
  13421. 8005668: 2b01 cmp r3, #1
  13422. 800566a: d105 bne.n 8005678 <HAL_TIM_PeriodElapsedCallback+0xbc>
  13423. ALC_ALARM_CNT++;
  13424. 800566c: 4b20 ldr r3, [pc, #128] ; (80056f0 <HAL_TIM_PeriodElapsedCallback+0x134>)
  13425. 800566e: 681b ldr r3, [r3, #0]
  13426. 8005670: 3301 adds r3, #1
  13427. 8005672: 4a1f ldr r2, [pc, #124] ; (80056f0 <HAL_TIM_PeriodElapsedCallback+0x134>)
  13428. 8005674: 6013 str r3, [r2, #0]
  13429. 8005676: e002 b.n 800567e <HAL_TIM_PeriodElapsedCallback+0xc2>
  13430. else
  13431. ALC_ALARM_CNT = 0;
  13432. 8005678: 4b1d ldr r3, [pc, #116] ; (80056f0 <HAL_TIM_PeriodElapsedCallback+0x134>)
  13433. 800567a: 2200 movs r2, #0
  13434. 800567c: 601a str r2, [r3, #0]
  13435. if(HAL_GPIO_ReadPin(OVER_POWER_ALARM_GPIO_Port, OVER_POWER_ALARM_Pin)== GPIO_PIN_SET)
  13436. 800567e: f44f 5180 mov.w r1, #4096 ; 0x1000
  13437. 8005682: 481a ldr r0, [pc, #104] ; (80056ec <HAL_TIM_PeriodElapsedCallback+0x130>)
  13438. 8005684: f7fd ff22 bl 80034cc <HAL_GPIO_ReadPin>
  13439. 8005688: 4603 mov r3, r0
  13440. 800568a: 2b01 cmp r3, #1
  13441. 800568c: d105 bne.n 800569a <HAL_TIM_PeriodElapsedCallback+0xde>
  13442. OVER_POWER_ALARM_CNT++;
  13443. 800568e: 4b19 ldr r3, [pc, #100] ; (80056f4 <HAL_TIM_PeriodElapsedCallback+0x138>)
  13444. 8005690: 681b ldr r3, [r3, #0]
  13445. 8005692: 3301 adds r3, #1
  13446. 8005694: 4a17 ldr r2, [pc, #92] ; (80056f4 <HAL_TIM_PeriodElapsedCallback+0x138>)
  13447. 8005696: 6013 str r3, [r2, #0]
  13448. 8005698: e002 b.n 80056a0 <HAL_TIM_PeriodElapsedCallback+0xe4>
  13449. else
  13450. OVER_POWER_ALARM_CNT = 0;
  13451. 800569a: 4b16 ldr r3, [pc, #88] ; (80056f4 <HAL_TIM_PeriodElapsedCallback+0x138>)
  13452. 800569c: 2200 movs r2, #0
  13453. 800569e: 601a str r2, [r3, #0]
  13454. if(HAL_GPIO_ReadPin(VSWR_ALARM_GPIO_Port, VSWR_ALARM_Pin)== GPIO_PIN_SET)
  13455. 80056a0: f44f 5100 mov.w r1, #8192 ; 0x2000
  13456. 80056a4: 4811 ldr r0, [pc, #68] ; (80056ec <HAL_TIM_PeriodElapsedCallback+0x130>)
  13457. 80056a6: f7fd ff11 bl 80034cc <HAL_GPIO_ReadPin>
  13458. 80056aa: 4603 mov r3, r0
  13459. 80056ac: 2b01 cmp r3, #1
  13460. 80056ae: d105 bne.n 80056bc <HAL_TIM_PeriodElapsedCallback+0x100>
  13461. VSWR_ALARM_CNT++;
  13462. 80056b0: 4b11 ldr r3, [pc, #68] ; (80056f8 <HAL_TIM_PeriodElapsedCallback+0x13c>)
  13463. 80056b2: 681b ldr r3, [r3, #0]
  13464. 80056b4: 3301 adds r3, #1
  13465. 80056b6: 4a10 ldr r2, [pc, #64] ; (80056f8 <HAL_TIM_PeriodElapsedCallback+0x13c>)
  13466. 80056b8: 6013 str r3, [r2, #0]
  13467. else
  13468. VSWR_ALARM_CNT = 0;
  13469. }
  13470. /* USER CODE END Callback 1 */
  13471. }
  13472. 80056ba: e002 b.n 80056c2 <HAL_TIM_PeriodElapsedCallback+0x106>
  13473. VSWR_ALARM_CNT = 0;
  13474. 80056bc: 4b0e ldr r3, [pc, #56] ; (80056f8 <HAL_TIM_PeriodElapsedCallback+0x13c>)
  13475. 80056be: 2200 movs r2, #0
  13476. 80056c0: 601a str r2, [r3, #0]
  13477. }
  13478. 80056c2: bf00 nop
  13479. 80056c4: 3708 adds r7, #8
  13480. 80056c6: 46bd mov sp, r7
  13481. 80056c8: bd80 pop {r7, pc}
  13482. 80056ca: bf00 nop
  13483. 80056cc: 40001000 .word 0x40001000
  13484. 80056d0: 200004ec .word 0x200004ec
  13485. 80056d4: 200004e4 .word 0x200004e4
  13486. 80056d8: 20000508 .word 0x20000508
  13487. 80056dc: 40010800 .word 0x40010800
  13488. 80056e0: 200004f0 .word 0x200004f0
  13489. 80056e4: 200004f4 .word 0x200004f4
  13490. 80056e8: 200004f8 .word 0x200004f8
  13491. 80056ec: 40010c00 .word 0x40010c00
  13492. 80056f0: 200004fc .word 0x200004fc
  13493. 80056f4: 20000500 .word 0x20000500
  13494. 80056f8: 20000504 .word 0x20000504
  13495. 080056fc <Error_Handler>:
  13496. /**
  13497. * @brief This function is executed in case of error occurrence.
  13498. * @retval None
  13499. */
  13500. void Error_Handler(void)
  13501. {
  13502. 80056fc: b480 push {r7}
  13503. 80056fe: af00 add r7, sp, #0
  13504. /* USER CODE BEGIN Error_Handler_Debug */
  13505. /* User can add his own implementation to report the HAL error return state */
  13506. /* USER CODE END Error_Handler_Debug */
  13507. }
  13508. 8005700: bf00 nop
  13509. 8005702: 46bd mov sp, r7
  13510. 8005704: bc80 pop {r7}
  13511. 8005706: 4770 bx lr
  13512. 08005708 <HAL_MspInit>:
  13513. /* USER CODE END 0 */
  13514. /**
  13515. * Initializes the Global MSP.
  13516. */
  13517. void HAL_MspInit(void)
  13518. {
  13519. 8005708: b480 push {r7}
  13520. 800570a: b085 sub sp, #20
  13521. 800570c: af00 add r7, sp, #0
  13522. /* USER CODE BEGIN MspInit 0 */
  13523. /* USER CODE END MspInit 0 */
  13524. __HAL_RCC_AFIO_CLK_ENABLE();
  13525. 800570e: 4b15 ldr r3, [pc, #84] ; (8005764 <HAL_MspInit+0x5c>)
  13526. 8005710: 699b ldr r3, [r3, #24]
  13527. 8005712: 4a14 ldr r2, [pc, #80] ; (8005764 <HAL_MspInit+0x5c>)
  13528. 8005714: f043 0301 orr.w r3, r3, #1
  13529. 8005718: 6193 str r3, [r2, #24]
  13530. 800571a: 4b12 ldr r3, [pc, #72] ; (8005764 <HAL_MspInit+0x5c>)
  13531. 800571c: 699b ldr r3, [r3, #24]
  13532. 800571e: f003 0301 and.w r3, r3, #1
  13533. 8005722: 60bb str r3, [r7, #8]
  13534. 8005724: 68bb ldr r3, [r7, #8]
  13535. __HAL_RCC_PWR_CLK_ENABLE();
  13536. 8005726: 4b0f ldr r3, [pc, #60] ; (8005764 <HAL_MspInit+0x5c>)
  13537. 8005728: 69db ldr r3, [r3, #28]
  13538. 800572a: 4a0e ldr r2, [pc, #56] ; (8005764 <HAL_MspInit+0x5c>)
  13539. 800572c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  13540. 8005730: 61d3 str r3, [r2, #28]
  13541. 8005732: 4b0c ldr r3, [pc, #48] ; (8005764 <HAL_MspInit+0x5c>)
  13542. 8005734: 69db ldr r3, [r3, #28]
  13543. 8005736: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  13544. 800573a: 607b str r3, [r7, #4]
  13545. 800573c: 687b ldr r3, [r7, #4]
  13546. /* System interrupt init*/
  13547. /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled
  13548. */
  13549. __HAL_AFIO_REMAP_SWJ_NOJTAG();
  13550. 800573e: 4b0a ldr r3, [pc, #40] ; (8005768 <HAL_MspInit+0x60>)
  13551. 8005740: 685b ldr r3, [r3, #4]
  13552. 8005742: 60fb str r3, [r7, #12]
  13553. 8005744: 68fb ldr r3, [r7, #12]
  13554. 8005746: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000
  13555. 800574a: 60fb str r3, [r7, #12]
  13556. 800574c: 68fb ldr r3, [r7, #12]
  13557. 800574e: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000
  13558. 8005752: 60fb str r3, [r7, #12]
  13559. 8005754: 4a04 ldr r2, [pc, #16] ; (8005768 <HAL_MspInit+0x60>)
  13560. 8005756: 68fb ldr r3, [r7, #12]
  13561. 8005758: 6053 str r3, [r2, #4]
  13562. /* USER CODE BEGIN MspInit 1 */
  13563. /* USER CODE END MspInit 1 */
  13564. }
  13565. 800575a: bf00 nop
  13566. 800575c: 3714 adds r7, #20
  13567. 800575e: 46bd mov sp, r7
  13568. 8005760: bc80 pop {r7}
  13569. 8005762: 4770 bx lr
  13570. 8005764: 40021000 .word 0x40021000
  13571. 8005768: 40010000 .word 0x40010000
  13572. 0800576c <HAL_ADC_MspInit>:
  13573. * This function configures the hardware resources used in this example
  13574. * @param hadc: ADC handle pointer
  13575. * @retval None
  13576. */
  13577. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  13578. {
  13579. 800576c: b580 push {r7, lr}
  13580. 800576e: b088 sub sp, #32
  13581. 8005770: af00 add r7, sp, #0
  13582. 8005772: 6078 str r0, [r7, #4]
  13583. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13584. 8005774: f107 0310 add.w r3, r7, #16
  13585. 8005778: 2200 movs r2, #0
  13586. 800577a: 601a str r2, [r3, #0]
  13587. 800577c: 605a str r2, [r3, #4]
  13588. 800577e: 609a str r2, [r3, #8]
  13589. 8005780: 60da str r2, [r3, #12]
  13590. if(hadc->Instance==ADC1)
  13591. 8005782: 687b ldr r3, [r7, #4]
  13592. 8005784: 681b ldr r3, [r3, #0]
  13593. 8005786: 4a28 ldr r2, [pc, #160] ; (8005828 <HAL_ADC_MspInit+0xbc>)
  13594. 8005788: 4293 cmp r3, r2
  13595. 800578a: d149 bne.n 8005820 <HAL_ADC_MspInit+0xb4>
  13596. {
  13597. /* USER CODE BEGIN ADC1_MspInit 0 */
  13598. /* USER CODE END ADC1_MspInit 0 */
  13599. /* Peripheral clock enable */
  13600. __HAL_RCC_ADC1_CLK_ENABLE();
  13601. 800578c: 4b27 ldr r3, [pc, #156] ; (800582c <HAL_ADC_MspInit+0xc0>)
  13602. 800578e: 699b ldr r3, [r3, #24]
  13603. 8005790: 4a26 ldr r2, [pc, #152] ; (800582c <HAL_ADC_MspInit+0xc0>)
  13604. 8005792: f443 7300 orr.w r3, r3, #512 ; 0x200
  13605. 8005796: 6193 str r3, [r2, #24]
  13606. 8005798: 4b24 ldr r3, [pc, #144] ; (800582c <HAL_ADC_MspInit+0xc0>)
  13607. 800579a: 699b ldr r3, [r3, #24]
  13608. 800579c: f403 7300 and.w r3, r3, #512 ; 0x200
  13609. 80057a0: 60fb str r3, [r7, #12]
  13610. 80057a2: 68fb ldr r3, [r7, #12]
  13611. __HAL_RCC_GPIOA_CLK_ENABLE();
  13612. 80057a4: 4b21 ldr r3, [pc, #132] ; (800582c <HAL_ADC_MspInit+0xc0>)
  13613. 80057a6: 699b ldr r3, [r3, #24]
  13614. 80057a8: 4a20 ldr r2, [pc, #128] ; (800582c <HAL_ADC_MspInit+0xc0>)
  13615. 80057aa: f043 0304 orr.w r3, r3, #4
  13616. 80057ae: 6193 str r3, [r2, #24]
  13617. 80057b0: 4b1e ldr r3, [pc, #120] ; (800582c <HAL_ADC_MspInit+0xc0>)
  13618. 80057b2: 699b ldr r3, [r3, #24]
  13619. 80057b4: f003 0304 and.w r3, r3, #4
  13620. 80057b8: 60bb str r3, [r7, #8]
  13621. 80057ba: 68bb ldr r3, [r7, #8]
  13622. /**ADC1 GPIO Configuration
  13623. PA0-WKUP ------> ADC1_IN0
  13624. PA1 ------> ADC1_IN1
  13625. PA3 ------> ADC1_IN3
  13626. */
  13627. GPIO_InitStruct.Pin = DL_TX_DET_Pin|DL_RX_DET_Pin|PAU_TEMP_Pin;
  13628. 80057bc: 230b movs r3, #11
  13629. 80057be: 613b str r3, [r7, #16]
  13630. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  13631. 80057c0: 2303 movs r3, #3
  13632. 80057c2: 617b str r3, [r7, #20]
  13633. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13634. 80057c4: f107 0310 add.w r3, r7, #16
  13635. 80057c8: 4619 mov r1, r3
  13636. 80057ca: 4819 ldr r0, [pc, #100] ; (8005830 <HAL_ADC_MspInit+0xc4>)
  13637. 80057cc: f7fd fd24 bl 8003218 <HAL_GPIO_Init>
  13638. /* ADC1 DMA Init */
  13639. /* ADC1 Init */
  13640. hdma_adc1.Instance = DMA1_Channel1;
  13641. 80057d0: 4b18 ldr r3, [pc, #96] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13642. 80057d2: 4a19 ldr r2, [pc, #100] ; (8005838 <HAL_ADC_MspInit+0xcc>)
  13643. 80057d4: 601a str r2, [r3, #0]
  13644. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  13645. 80057d6: 4b17 ldr r3, [pc, #92] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13646. 80057d8: 2200 movs r2, #0
  13647. 80057da: 605a str r2, [r3, #4]
  13648. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  13649. 80057dc: 4b15 ldr r3, [pc, #84] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13650. 80057de: 2200 movs r2, #0
  13651. 80057e0: 609a str r2, [r3, #8]
  13652. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  13653. 80057e2: 4b14 ldr r3, [pc, #80] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13654. 80057e4: 2280 movs r2, #128 ; 0x80
  13655. 80057e6: 60da str r2, [r3, #12]
  13656. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  13657. 80057e8: 4b12 ldr r3, [pc, #72] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13658. 80057ea: f44f 7280 mov.w r2, #256 ; 0x100
  13659. 80057ee: 611a str r2, [r3, #16]
  13660. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  13661. 80057f0: 4b10 ldr r3, [pc, #64] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13662. 80057f2: f44f 6280 mov.w r2, #1024 ; 0x400
  13663. 80057f6: 615a str r2, [r3, #20]
  13664. hdma_adc1.Init.Mode = DMA_CIRCULAR;
  13665. 80057f8: 4b0e ldr r3, [pc, #56] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13666. 80057fa: 2220 movs r2, #32
  13667. 80057fc: 619a str r2, [r3, #24]
  13668. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  13669. 80057fe: 4b0d ldr r3, [pc, #52] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13670. 8005800: 2200 movs r2, #0
  13671. 8005802: 61da str r2, [r3, #28]
  13672. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  13673. 8005804: 480b ldr r0, [pc, #44] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13674. 8005806: f7fd f8a3 bl 8002950 <HAL_DMA_Init>
  13675. 800580a: 4603 mov r3, r0
  13676. 800580c: 2b00 cmp r3, #0
  13677. 800580e: d001 beq.n 8005814 <HAL_ADC_MspInit+0xa8>
  13678. {
  13679. Error_Handler();
  13680. 8005810: f7ff ff74 bl 80056fc <Error_Handler>
  13681. }
  13682. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  13683. 8005814: 687b ldr r3, [r7, #4]
  13684. 8005816: 4a07 ldr r2, [pc, #28] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13685. 8005818: 621a str r2, [r3, #32]
  13686. 800581a: 4a06 ldr r2, [pc, #24] ; (8005834 <HAL_ADC_MspInit+0xc8>)
  13687. 800581c: 687b ldr r3, [r7, #4]
  13688. 800581e: 6253 str r3, [r2, #36] ; 0x24
  13689. /* USER CODE BEGIN ADC1_MspInit 1 */
  13690. /* USER CODE END ADC1_MspInit 1 */
  13691. }
  13692. }
  13693. 8005820: bf00 nop
  13694. 8005822: 3720 adds r7, #32
  13695. 8005824: 46bd mov sp, r7
  13696. 8005826: bd80 pop {r7, pc}
  13697. 8005828: 40012400 .word 0x40012400
  13698. 800582c: 40021000 .word 0x40021000
  13699. 8005830: 40010800 .word 0x40010800
  13700. 8005834: 20000918 .word 0x20000918
  13701. 8005838: 40020008 .word 0x40020008
  13702. 0800583c <HAL_TIM_Base_MspInit>:
  13703. * This function configures the hardware resources used in this example
  13704. * @param htim_base: TIM_Base handle pointer
  13705. * @retval None
  13706. */
  13707. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  13708. {
  13709. 800583c: b480 push {r7}
  13710. 800583e: b085 sub sp, #20
  13711. 8005840: af00 add r7, sp, #0
  13712. 8005842: 6078 str r0, [r7, #4]
  13713. if(htim_base->Instance==TIM6)
  13714. 8005844: 687b ldr r3, [r7, #4]
  13715. 8005846: 681b ldr r3, [r3, #0]
  13716. 8005848: 4a09 ldr r2, [pc, #36] ; (8005870 <HAL_TIM_Base_MspInit+0x34>)
  13717. 800584a: 4293 cmp r3, r2
  13718. 800584c: d10b bne.n 8005866 <HAL_TIM_Base_MspInit+0x2a>
  13719. {
  13720. /* USER CODE BEGIN TIM6_MspInit 0 */
  13721. /* USER CODE END TIM6_MspInit 0 */
  13722. /* Peripheral clock enable */
  13723. __HAL_RCC_TIM6_CLK_ENABLE();
  13724. 800584e: 4b09 ldr r3, [pc, #36] ; (8005874 <HAL_TIM_Base_MspInit+0x38>)
  13725. 8005850: 69db ldr r3, [r3, #28]
  13726. 8005852: 4a08 ldr r2, [pc, #32] ; (8005874 <HAL_TIM_Base_MspInit+0x38>)
  13727. 8005854: f043 0310 orr.w r3, r3, #16
  13728. 8005858: 61d3 str r3, [r2, #28]
  13729. 800585a: 4b06 ldr r3, [pc, #24] ; (8005874 <HAL_TIM_Base_MspInit+0x38>)
  13730. 800585c: 69db ldr r3, [r3, #28]
  13731. 800585e: f003 0310 and.w r3, r3, #16
  13732. 8005862: 60fb str r3, [r7, #12]
  13733. 8005864: 68fb ldr r3, [r7, #12]
  13734. /* USER CODE BEGIN TIM6_MspInit 1 */
  13735. /* USER CODE END TIM6_MspInit 1 */
  13736. }
  13737. }
  13738. 8005866: bf00 nop
  13739. 8005868: 3714 adds r7, #20
  13740. 800586a: 46bd mov sp, r7
  13741. 800586c: bc80 pop {r7}
  13742. 800586e: 4770 bx lr
  13743. 8005870: 40001000 .word 0x40001000
  13744. 8005874: 40021000 .word 0x40021000
  13745. 08005878 <HAL_UART_MspInit>:
  13746. * This function configures the hardware resources used in this example
  13747. * @param huart: UART handle pointer
  13748. * @retval None
  13749. */
  13750. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  13751. {
  13752. 8005878: b580 push {r7, lr}
  13753. 800587a: b08a sub sp, #40 ; 0x28
  13754. 800587c: af00 add r7, sp, #0
  13755. 800587e: 6078 str r0, [r7, #4]
  13756. GPIO_InitTypeDef GPIO_InitStruct = {0};
  13757. 8005880: f107 0318 add.w r3, r7, #24
  13758. 8005884: 2200 movs r2, #0
  13759. 8005886: 601a str r2, [r3, #0]
  13760. 8005888: 605a str r2, [r3, #4]
  13761. 800588a: 609a str r2, [r3, #8]
  13762. 800588c: 60da str r2, [r3, #12]
  13763. if(huart->Instance==USART1)
  13764. 800588e: 687b ldr r3, [r7, #4]
  13765. 8005890: 681b ldr r3, [r3, #0]
  13766. 8005892: 4a5e ldr r2, [pc, #376] ; (8005a0c <HAL_UART_MspInit+0x194>)
  13767. 8005894: 4293 cmp r3, r2
  13768. 8005896: d158 bne.n 800594a <HAL_UART_MspInit+0xd2>
  13769. {
  13770. /* USER CODE BEGIN USART1_MspInit 0 */
  13771. /* USER CODE END USART1_MspInit 0 */
  13772. /* Peripheral clock enable */
  13773. __HAL_RCC_USART1_CLK_ENABLE();
  13774. 8005898: 4b5d ldr r3, [pc, #372] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13775. 800589a: 699b ldr r3, [r3, #24]
  13776. 800589c: 4a5c ldr r2, [pc, #368] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13777. 800589e: f443 4380 orr.w r3, r3, #16384 ; 0x4000
  13778. 80058a2: 6193 str r3, [r2, #24]
  13779. 80058a4: 4b5a ldr r3, [pc, #360] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13780. 80058a6: 699b ldr r3, [r3, #24]
  13781. 80058a8: f403 4380 and.w r3, r3, #16384 ; 0x4000
  13782. 80058ac: 617b str r3, [r7, #20]
  13783. 80058ae: 697b ldr r3, [r7, #20]
  13784. __HAL_RCC_GPIOA_CLK_ENABLE();
  13785. 80058b0: 4b57 ldr r3, [pc, #348] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13786. 80058b2: 699b ldr r3, [r3, #24]
  13787. 80058b4: 4a56 ldr r2, [pc, #344] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13788. 80058b6: f043 0304 orr.w r3, r3, #4
  13789. 80058ba: 6193 str r3, [r2, #24]
  13790. 80058bc: 4b54 ldr r3, [pc, #336] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13791. 80058be: 699b ldr r3, [r3, #24]
  13792. 80058c0: f003 0304 and.w r3, r3, #4
  13793. 80058c4: 613b str r3, [r7, #16]
  13794. 80058c6: 693b ldr r3, [r7, #16]
  13795. /**USART1 GPIO Configuration
  13796. PA9 ------> USART1_TX
  13797. PA10 ------> USART1_RX
  13798. */
  13799. GPIO_InitStruct.Pin = GPIO_PIN_9;
  13800. 80058c8: f44f 7300 mov.w r3, #512 ; 0x200
  13801. 80058cc: 61bb str r3, [r7, #24]
  13802. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  13803. 80058ce: 2302 movs r3, #2
  13804. 80058d0: 61fb str r3, [r7, #28]
  13805. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  13806. 80058d2: 2303 movs r3, #3
  13807. 80058d4: 627b str r3, [r7, #36] ; 0x24
  13808. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13809. 80058d6: f107 0318 add.w r3, r7, #24
  13810. 80058da: 4619 mov r1, r3
  13811. 80058dc: 484d ldr r0, [pc, #308] ; (8005a14 <HAL_UART_MspInit+0x19c>)
  13812. 80058de: f7fd fc9b bl 8003218 <HAL_GPIO_Init>
  13813. GPIO_InitStruct.Pin = GPIO_PIN_10;
  13814. 80058e2: f44f 6380 mov.w r3, #1024 ; 0x400
  13815. 80058e6: 61bb str r3, [r7, #24]
  13816. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13817. 80058e8: 2300 movs r3, #0
  13818. 80058ea: 61fb str r3, [r7, #28]
  13819. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13820. 80058ec: 2300 movs r3, #0
  13821. 80058ee: 623b str r3, [r7, #32]
  13822. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  13823. 80058f0: f107 0318 add.w r3, r7, #24
  13824. 80058f4: 4619 mov r1, r3
  13825. 80058f6: 4847 ldr r0, [pc, #284] ; (8005a14 <HAL_UART_MspInit+0x19c>)
  13826. 80058f8: f7fd fc8e bl 8003218 <HAL_GPIO_Init>
  13827. /* USART1 DMA Init */
  13828. /* USART1_TX Init */
  13829. hdma_usart1_tx.Instance = DMA1_Channel4;
  13830. 80058fc: 4b46 ldr r3, [pc, #280] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13831. 80058fe: 4a47 ldr r2, [pc, #284] ; (8005a1c <HAL_UART_MspInit+0x1a4>)
  13832. 8005900: 601a str r2, [r3, #0]
  13833. hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  13834. 8005902: 4b45 ldr r3, [pc, #276] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13835. 8005904: 2210 movs r2, #16
  13836. 8005906: 605a str r2, [r3, #4]
  13837. hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  13838. 8005908: 4b43 ldr r3, [pc, #268] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13839. 800590a: 2200 movs r2, #0
  13840. 800590c: 609a str r2, [r3, #8]
  13841. hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE;
  13842. 800590e: 4b42 ldr r3, [pc, #264] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13843. 8005910: 2280 movs r2, #128 ; 0x80
  13844. 8005912: 60da str r2, [r3, #12]
  13845. hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13846. 8005914: 4b40 ldr r3, [pc, #256] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13847. 8005916: 2200 movs r2, #0
  13848. 8005918: 611a str r2, [r3, #16]
  13849. hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13850. 800591a: 4b3f ldr r3, [pc, #252] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13851. 800591c: 2200 movs r2, #0
  13852. 800591e: 615a str r2, [r3, #20]
  13853. hdma_usart1_tx.Init.Mode = DMA_NORMAL;
  13854. 8005920: 4b3d ldr r3, [pc, #244] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13855. 8005922: 2200 movs r2, #0
  13856. 8005924: 619a str r2, [r3, #24]
  13857. hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW;
  13858. 8005926: 4b3c ldr r3, [pc, #240] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13859. 8005928: 2200 movs r2, #0
  13860. 800592a: 61da str r2, [r3, #28]
  13861. if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK)
  13862. 800592c: 483a ldr r0, [pc, #232] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13863. 800592e: f7fd f80f bl 8002950 <HAL_DMA_Init>
  13864. 8005932: 4603 mov r3, r0
  13865. 8005934: 2b00 cmp r3, #0
  13866. 8005936: d001 beq.n 800593c <HAL_UART_MspInit+0xc4>
  13867. {
  13868. Error_Handler();
  13869. 8005938: f7ff fee0 bl 80056fc <Error_Handler>
  13870. }
  13871. __HAL_LINKDMA(huart,hdmatx,hdma_usart1_tx);
  13872. 800593c: 687b ldr r3, [r7, #4]
  13873. 800593e: 4a36 ldr r2, [pc, #216] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13874. 8005940: 631a str r2, [r3, #48] ; 0x30
  13875. 8005942: 4a35 ldr r2, [pc, #212] ; (8005a18 <HAL_UART_MspInit+0x1a0>)
  13876. 8005944: 687b ldr r3, [r7, #4]
  13877. 8005946: 6253 str r3, [r2, #36] ; 0x24
  13878. /* USER CODE BEGIN USART3_MspInit 1 */
  13879. /* USER CODE END USART3_MspInit 1 */
  13880. }
  13881. }
  13882. 8005948: e05c b.n 8005a04 <HAL_UART_MspInit+0x18c>
  13883. else if(huart->Instance==USART3)
  13884. 800594a: 687b ldr r3, [r7, #4]
  13885. 800594c: 681b ldr r3, [r3, #0]
  13886. 800594e: 4a34 ldr r2, [pc, #208] ; (8005a20 <HAL_UART_MspInit+0x1a8>)
  13887. 8005950: 4293 cmp r3, r2
  13888. 8005952: d157 bne.n 8005a04 <HAL_UART_MspInit+0x18c>
  13889. __HAL_RCC_USART3_CLK_ENABLE();
  13890. 8005954: 4b2e ldr r3, [pc, #184] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13891. 8005956: 69db ldr r3, [r3, #28]
  13892. 8005958: 4a2d ldr r2, [pc, #180] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13893. 800595a: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  13894. 800595e: 61d3 str r3, [r2, #28]
  13895. 8005960: 4b2b ldr r3, [pc, #172] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13896. 8005962: 69db ldr r3, [r3, #28]
  13897. 8005964: f403 2380 and.w r3, r3, #262144 ; 0x40000
  13898. 8005968: 60fb str r3, [r7, #12]
  13899. 800596a: 68fb ldr r3, [r7, #12]
  13900. __HAL_RCC_GPIOB_CLK_ENABLE();
  13901. 800596c: 4b28 ldr r3, [pc, #160] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13902. 800596e: 699b ldr r3, [r3, #24]
  13903. 8005970: 4a27 ldr r2, [pc, #156] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13904. 8005972: f043 0308 orr.w r3, r3, #8
  13905. 8005976: 6193 str r3, [r2, #24]
  13906. 8005978: 4b25 ldr r3, [pc, #148] ; (8005a10 <HAL_UART_MspInit+0x198>)
  13907. 800597a: 699b ldr r3, [r3, #24]
  13908. 800597c: f003 0308 and.w r3, r3, #8
  13909. 8005980: 60bb str r3, [r7, #8]
  13910. 8005982: 68bb ldr r3, [r7, #8]
  13911. GPIO_InitStruct.Pin = GPIO_PIN_10;
  13912. 8005984: f44f 6380 mov.w r3, #1024 ; 0x400
  13913. 8005988: 61bb str r3, [r7, #24]
  13914. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  13915. 800598a: 2302 movs r3, #2
  13916. 800598c: 61fb str r3, [r7, #28]
  13917. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  13918. 800598e: 2303 movs r3, #3
  13919. 8005990: 627b str r3, [r7, #36] ; 0x24
  13920. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13921. 8005992: f107 0318 add.w r3, r7, #24
  13922. 8005996: 4619 mov r1, r3
  13923. 8005998: 4822 ldr r0, [pc, #136] ; (8005a24 <HAL_UART_MspInit+0x1ac>)
  13924. 800599a: f7fd fc3d bl 8003218 <HAL_GPIO_Init>
  13925. GPIO_InitStruct.Pin = GPIO_PIN_11;
  13926. 800599e: f44f 6300 mov.w r3, #2048 ; 0x800
  13927. 80059a2: 61bb str r3, [r7, #24]
  13928. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  13929. 80059a4: 2300 movs r3, #0
  13930. 80059a6: 61fb str r3, [r7, #28]
  13931. GPIO_InitStruct.Pull = GPIO_NOPULL;
  13932. 80059a8: 2300 movs r3, #0
  13933. 80059aa: 623b str r3, [r7, #32]
  13934. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  13935. 80059ac: f107 0318 add.w r3, r7, #24
  13936. 80059b0: 4619 mov r1, r3
  13937. 80059b2: 481c ldr r0, [pc, #112] ; (8005a24 <HAL_UART_MspInit+0x1ac>)
  13938. 80059b4: f7fd fc30 bl 8003218 <HAL_GPIO_Init>
  13939. hdma_usart3_tx.Instance = DMA1_Channel2;
  13940. 80059b8: 4b1b ldr r3, [pc, #108] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13941. 80059ba: 4a1c ldr r2, [pc, #112] ; (8005a2c <HAL_UART_MspInit+0x1b4>)
  13942. 80059bc: 601a str r2, [r3, #0]
  13943. hdma_usart3_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  13944. 80059be: 4b1a ldr r3, [pc, #104] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13945. 80059c0: 2210 movs r2, #16
  13946. 80059c2: 605a str r2, [r3, #4]
  13947. hdma_usart3_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  13948. 80059c4: 4b18 ldr r3, [pc, #96] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13949. 80059c6: 2200 movs r2, #0
  13950. 80059c8: 609a str r2, [r3, #8]
  13951. hdma_usart3_tx.Init.MemInc = DMA_MINC_ENABLE;
  13952. 80059ca: 4b17 ldr r3, [pc, #92] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13953. 80059cc: 2280 movs r2, #128 ; 0x80
  13954. 80059ce: 60da str r2, [r3, #12]
  13955. hdma_usart3_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  13956. 80059d0: 4b15 ldr r3, [pc, #84] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13957. 80059d2: 2200 movs r2, #0
  13958. 80059d4: 611a str r2, [r3, #16]
  13959. hdma_usart3_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  13960. 80059d6: 4b14 ldr r3, [pc, #80] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13961. 80059d8: 2200 movs r2, #0
  13962. 80059da: 615a str r2, [r3, #20]
  13963. hdma_usart3_tx.Init.Mode = DMA_NORMAL;
  13964. 80059dc: 4b12 ldr r3, [pc, #72] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13965. 80059de: 2200 movs r2, #0
  13966. 80059e0: 619a str r2, [r3, #24]
  13967. hdma_usart3_tx.Init.Priority = DMA_PRIORITY_LOW;
  13968. 80059e2: 4b11 ldr r3, [pc, #68] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13969. 80059e4: 2200 movs r2, #0
  13970. 80059e6: 61da str r2, [r3, #28]
  13971. if (HAL_DMA_Init(&hdma_usart3_tx) != HAL_OK)
  13972. 80059e8: 480f ldr r0, [pc, #60] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13973. 80059ea: f7fc ffb1 bl 8002950 <HAL_DMA_Init>
  13974. 80059ee: 4603 mov r3, r0
  13975. 80059f0: 2b00 cmp r3, #0
  13976. 80059f2: d001 beq.n 80059f8 <HAL_UART_MspInit+0x180>
  13977. Error_Handler();
  13978. 80059f4: f7ff fe82 bl 80056fc <Error_Handler>
  13979. __HAL_LINKDMA(huart,hdmatx,hdma_usart3_tx);
  13980. 80059f8: 687b ldr r3, [r7, #4]
  13981. 80059fa: 4a0b ldr r2, [pc, #44] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13982. 80059fc: 631a str r2, [r3, #48] ; 0x30
  13983. 80059fe: 4a0a ldr r2, [pc, #40] ; (8005a28 <HAL_UART_MspInit+0x1b0>)
  13984. 8005a00: 687b ldr r3, [r7, #4]
  13985. 8005a02: 6253 str r3, [r2, #36] ; 0x24
  13986. }
  13987. 8005a04: bf00 nop
  13988. 8005a06: 3728 adds r7, #40 ; 0x28
  13989. 8005a08: 46bd mov sp, r7
  13990. 8005a0a: bd80 pop {r7, pc}
  13991. 8005a0c: 40013800 .word 0x40013800
  13992. 8005a10: 40021000 .word 0x40021000
  13993. 8005a14: 40010800 .word 0x40010800
  13994. 8005a18: 20000864 .word 0x20000864
  13995. 8005a1c: 40020044 .word 0x40020044
  13996. 8005a20: 40004800 .word 0x40004800
  13997. 8005a24: 40010c00 .word 0x40010c00
  13998. 8005a28: 20000820 .word 0x20000820
  13999. 8005a2c: 4002001c .word 0x4002001c
  14000. 08005a30 <HAL_InitTick>:
  14001. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  14002. * @param TickPriority: Tick interrupt priority.
  14003. * @retval HAL status
  14004. */
  14005. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  14006. {
  14007. 8005a30: b580 push {r7, lr}
  14008. 8005a32: b08c sub sp, #48 ; 0x30
  14009. 8005a34: af00 add r7, sp, #0
  14010. 8005a36: 6078 str r0, [r7, #4]
  14011. RCC_ClkInitTypeDef clkconfig;
  14012. uint32_t uwTimclock = 0;
  14013. 8005a38: 2300 movs r3, #0
  14014. 8005a3a: 62fb str r3, [r7, #44] ; 0x2c
  14015. uint32_t uwPrescalerValue = 0;
  14016. 8005a3c: 2300 movs r3, #0
  14017. 8005a3e: 62bb str r3, [r7, #40] ; 0x28
  14018. uint32_t pFLatency;
  14019. /*Configure the TIM2 IRQ priority */
  14020. HAL_NVIC_SetPriority(TIM2_IRQn, TickPriority ,0);
  14021. 8005a40: 2200 movs r2, #0
  14022. 8005a42: 6879 ldr r1, [r7, #4]
  14023. 8005a44: 201c movs r0, #28
  14024. 8005a46: f7fc ff58 bl 80028fa <HAL_NVIC_SetPriority>
  14025. /* Enable the TIM2 global Interrupt */
  14026. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  14027. 8005a4a: 201c movs r0, #28
  14028. 8005a4c: f7fc ff71 bl 8002932 <HAL_NVIC_EnableIRQ>
  14029. /* Enable TIM2 clock */
  14030. __HAL_RCC_TIM2_CLK_ENABLE();
  14031. 8005a50: 4b1f ldr r3, [pc, #124] ; (8005ad0 <HAL_InitTick+0xa0>)
  14032. 8005a52: 69db ldr r3, [r3, #28]
  14033. 8005a54: 4a1e ldr r2, [pc, #120] ; (8005ad0 <HAL_InitTick+0xa0>)
  14034. 8005a56: f043 0301 orr.w r3, r3, #1
  14035. 8005a5a: 61d3 str r3, [r2, #28]
  14036. 8005a5c: 4b1c ldr r3, [pc, #112] ; (8005ad0 <HAL_InitTick+0xa0>)
  14037. 8005a5e: 69db ldr r3, [r3, #28]
  14038. 8005a60: f003 0301 and.w r3, r3, #1
  14039. 8005a64: 60fb str r3, [r7, #12]
  14040. 8005a66: 68fb ldr r3, [r7, #12]
  14041. /* Get clock configuration */
  14042. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  14043. 8005a68: f107 0210 add.w r2, r7, #16
  14044. 8005a6c: f107 0314 add.w r3, r7, #20
  14045. 8005a70: 4611 mov r1, r2
  14046. 8005a72: 4618 mov r0, r3
  14047. 8005a74: f7fe f940 bl 8003cf8 <HAL_RCC_GetClockConfig>
  14048. /* Compute TIM2 clock */
  14049. uwTimclock = HAL_RCC_GetPCLK1Freq();
  14050. 8005a78: f7fe f916 bl 8003ca8 <HAL_RCC_GetPCLK1Freq>
  14051. 8005a7c: 62f8 str r0, [r7, #44] ; 0x2c
  14052. /* Compute the prescaler value to have TIM2 counter clock equal to 1MHz */
  14053. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000) - 1);
  14054. 8005a7e: 6afb ldr r3, [r7, #44] ; 0x2c
  14055. 8005a80: 4a14 ldr r2, [pc, #80] ; (8005ad4 <HAL_InitTick+0xa4>)
  14056. 8005a82: fba2 2303 umull r2, r3, r2, r3
  14057. 8005a86: 0c9b lsrs r3, r3, #18
  14058. 8005a88: 3b01 subs r3, #1
  14059. 8005a8a: 62bb str r3, [r7, #40] ; 0x28
  14060. /* Initialize TIM2 */
  14061. htim2.Instance = TIM2;
  14062. 8005a8c: 4b12 ldr r3, [pc, #72] ; (8005ad8 <HAL_InitTick+0xa8>)
  14063. 8005a8e: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
  14064. 8005a92: 601a str r2, [r3, #0]
  14065. + Period = [(TIM2CLK/1000) - 1]. to have a (1/1000) s time base.
  14066. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  14067. + ClockDivision = 0
  14068. + Counter direction = Up
  14069. */
  14070. htim2.Init.Period = (1000000 / 1000) - 1;
  14071. 8005a94: 4b10 ldr r3, [pc, #64] ; (8005ad8 <HAL_InitTick+0xa8>)
  14072. 8005a96: f240 32e7 movw r2, #999 ; 0x3e7
  14073. 8005a9a: 60da str r2, [r3, #12]
  14074. htim2.Init.Prescaler = uwPrescalerValue;
  14075. 8005a9c: 4a0e ldr r2, [pc, #56] ; (8005ad8 <HAL_InitTick+0xa8>)
  14076. 8005a9e: 6abb ldr r3, [r7, #40] ; 0x28
  14077. 8005aa0: 6053 str r3, [r2, #4]
  14078. htim2.Init.ClockDivision = 0;
  14079. 8005aa2: 4b0d ldr r3, [pc, #52] ; (8005ad8 <HAL_InitTick+0xa8>)
  14080. 8005aa4: 2200 movs r2, #0
  14081. 8005aa6: 611a str r2, [r3, #16]
  14082. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  14083. 8005aa8: 4b0b ldr r3, [pc, #44] ; (8005ad8 <HAL_InitTick+0xa8>)
  14084. 8005aaa: 2200 movs r2, #0
  14085. 8005aac: 609a str r2, [r3, #8]
  14086. if(HAL_TIM_Base_Init(&htim2) == HAL_OK)
  14087. 8005aae: 480a ldr r0, [pc, #40] ; (8005ad8 <HAL_InitTick+0xa8>)
  14088. 8005ab0: f7fe fa6a bl 8003f88 <HAL_TIM_Base_Init>
  14089. 8005ab4: 4603 mov r3, r0
  14090. 8005ab6: 2b00 cmp r3, #0
  14091. 8005ab8: d104 bne.n 8005ac4 <HAL_InitTick+0x94>
  14092. {
  14093. /* Start the TIM time Base generation in interrupt mode */
  14094. return HAL_TIM_Base_Start_IT(&htim2);
  14095. 8005aba: 4807 ldr r0, [pc, #28] ; (8005ad8 <HAL_InitTick+0xa8>)
  14096. 8005abc: f7fe fa8f bl 8003fde <HAL_TIM_Base_Start_IT>
  14097. 8005ac0: 4603 mov r3, r0
  14098. 8005ac2: e000 b.n 8005ac6 <HAL_InitTick+0x96>
  14099. }
  14100. /* Return function status */
  14101. return HAL_ERROR;
  14102. 8005ac4: 2301 movs r3, #1
  14103. }
  14104. 8005ac6: 4618 mov r0, r3
  14105. 8005ac8: 3730 adds r7, #48 ; 0x30
  14106. 8005aca: 46bd mov sp, r7
  14107. 8005acc: bd80 pop {r7, pc}
  14108. 8005ace: bf00 nop
  14109. 8005ad0: 40021000 .word 0x40021000
  14110. 8005ad4: 431bde83 .word 0x431bde83
  14111. 8005ad8: 2000099c .word 0x2000099c
  14112. 08005adc <NMI_Handler>:
  14113. /******************************************************************************/
  14114. /**
  14115. * @brief This function handles Non maskable interrupt.
  14116. */
  14117. void NMI_Handler(void)
  14118. {
  14119. 8005adc: b480 push {r7}
  14120. 8005ade: af00 add r7, sp, #0
  14121. /* USER CODE END NonMaskableInt_IRQn 0 */
  14122. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  14123. /* USER CODE END NonMaskableInt_IRQn 1 */
  14124. }
  14125. 8005ae0: bf00 nop
  14126. 8005ae2: 46bd mov sp, r7
  14127. 8005ae4: bc80 pop {r7}
  14128. 8005ae6: 4770 bx lr
  14129. 08005ae8 <HardFault_Handler>:
  14130. /**
  14131. * @brief This function handles Hard fault interrupt.
  14132. */
  14133. void HardFault_Handler(void)
  14134. {
  14135. 8005ae8: b480 push {r7}
  14136. 8005aea: af00 add r7, sp, #0
  14137. /* USER CODE BEGIN HardFault_IRQn 0 */
  14138. /* USER CODE END HardFault_IRQn 0 */
  14139. while (1)
  14140. 8005aec: e7fe b.n 8005aec <HardFault_Handler+0x4>
  14141. 08005aee <MemManage_Handler>:
  14142. /**
  14143. * @brief This function handles Memory management fault.
  14144. */
  14145. void MemManage_Handler(void)
  14146. {
  14147. 8005aee: b480 push {r7}
  14148. 8005af0: af00 add r7, sp, #0
  14149. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  14150. /* USER CODE END MemoryManagement_IRQn 0 */
  14151. while (1)
  14152. 8005af2: e7fe b.n 8005af2 <MemManage_Handler+0x4>
  14153. 08005af4 <BusFault_Handler>:
  14154. /**
  14155. * @brief This function handles Prefetch fault, memory access fault.
  14156. */
  14157. void BusFault_Handler(void)
  14158. {
  14159. 8005af4: b480 push {r7}
  14160. 8005af6: af00 add r7, sp, #0
  14161. /* USER CODE BEGIN BusFault_IRQn 0 */
  14162. /* USER CODE END BusFault_IRQn 0 */
  14163. while (1)
  14164. 8005af8: e7fe b.n 8005af8 <BusFault_Handler+0x4>
  14165. 08005afa <UsageFault_Handler>:
  14166. /**
  14167. * @brief This function handles Undefined instruction or illegal state.
  14168. */
  14169. void UsageFault_Handler(void)
  14170. {
  14171. 8005afa: b480 push {r7}
  14172. 8005afc: af00 add r7, sp, #0
  14173. /* USER CODE BEGIN UsageFault_IRQn 0 */
  14174. /* USER CODE END UsageFault_IRQn 0 */
  14175. while (1)
  14176. 8005afe: e7fe b.n 8005afe <UsageFault_Handler+0x4>
  14177. 08005b00 <SVC_Handler>:
  14178. /**
  14179. * @brief This function handles System service call via SWI instruction.
  14180. */
  14181. void SVC_Handler(void)
  14182. {
  14183. 8005b00: b480 push {r7}
  14184. 8005b02: af00 add r7, sp, #0
  14185. /* USER CODE END SVCall_IRQn 0 */
  14186. /* USER CODE BEGIN SVCall_IRQn 1 */
  14187. /* USER CODE END SVCall_IRQn 1 */
  14188. }
  14189. 8005b04: bf00 nop
  14190. 8005b06: 46bd mov sp, r7
  14191. 8005b08: bc80 pop {r7}
  14192. 8005b0a: 4770 bx lr
  14193. 08005b0c <DebugMon_Handler>:
  14194. /**
  14195. * @brief This function handles Debug monitor.
  14196. */
  14197. void DebugMon_Handler(void)
  14198. {
  14199. 8005b0c: b480 push {r7}
  14200. 8005b0e: af00 add r7, sp, #0
  14201. /* USER CODE END DebugMonitor_IRQn 0 */
  14202. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  14203. /* USER CODE END DebugMonitor_IRQn 1 */
  14204. }
  14205. 8005b10: bf00 nop
  14206. 8005b12: 46bd mov sp, r7
  14207. 8005b14: bc80 pop {r7}
  14208. 8005b16: 4770 bx lr
  14209. 08005b18 <PendSV_Handler>:
  14210. /**
  14211. * @brief This function handles Pendable request for system service.
  14212. */
  14213. void PendSV_Handler(void)
  14214. {
  14215. 8005b18: b480 push {r7}
  14216. 8005b1a: af00 add r7, sp, #0
  14217. /* USER CODE END PendSV_IRQn 0 */
  14218. /* USER CODE BEGIN PendSV_IRQn 1 */
  14219. /* USER CODE END PendSV_IRQn 1 */
  14220. }
  14221. 8005b1c: bf00 nop
  14222. 8005b1e: 46bd mov sp, r7
  14223. 8005b20: bc80 pop {r7}
  14224. 8005b22: 4770 bx lr
  14225. 08005b24 <DMA1_Channel1_IRQHandler>:
  14226. /**
  14227. * @brief This function handles DMA1 channel1 global interrupt.
  14228. */
  14229. void DMA1_Channel1_IRQHandler(void)
  14230. {
  14231. 8005b24: b580 push {r7, lr}
  14232. 8005b26: af00 add r7, sp, #0
  14233. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  14234. /* USER CODE END DMA1_Channel1_IRQn 0 */
  14235. HAL_DMA_IRQHandler(&hdma_adc1);
  14236. 8005b28: 4802 ldr r0, [pc, #8] ; (8005b34 <DMA1_Channel1_IRQHandler+0x10>)
  14237. 8005b2a: f7fd f841 bl 8002bb0 <HAL_DMA_IRQHandler>
  14238. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  14239. /* USER CODE END DMA1_Channel1_IRQn 1 */
  14240. }
  14241. 8005b2e: bf00 nop
  14242. 8005b30: bd80 pop {r7, pc}
  14243. 8005b32: bf00 nop
  14244. 8005b34: 20000918 .word 0x20000918
  14245. 08005b38 <DMA1_Channel2_IRQHandler>:
  14246. /**
  14247. * @brief This function handles DMA1 channel2 global interrupt.
  14248. */
  14249. void DMA1_Channel2_IRQHandler(void)
  14250. {
  14251. 8005b38: b580 push {r7, lr}
  14252. 8005b3a: af00 add r7, sp, #0
  14253. /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
  14254. /* USER CODE END DMA1_Channel2_IRQn 0 */
  14255. HAL_DMA_IRQHandler(&hdma_usart3_tx);
  14256. 8005b3c: 4802 ldr r0, [pc, #8] ; (8005b48 <DMA1_Channel2_IRQHandler+0x10>)
  14257. 8005b3e: f7fd f837 bl 8002bb0 <HAL_DMA_IRQHandler>
  14258. /* USER CODE BEGIN DMA1_Channel2_IRQn 1 */
  14259. /* USER CODE END DMA1_Channel2_IRQn 1 */
  14260. }
  14261. 8005b42: bf00 nop
  14262. 8005b44: bd80 pop {r7, pc}
  14263. 8005b46: bf00 nop
  14264. 8005b48: 20000820 .word 0x20000820
  14265. 08005b4c <DMA1_Channel4_IRQHandler>:
  14266. /**
  14267. * @brief This function handles DMA1 channel4 global interrupt.
  14268. */
  14269. void DMA1_Channel4_IRQHandler(void)
  14270. {
  14271. 8005b4c: b580 push {r7, lr}
  14272. 8005b4e: af00 add r7, sp, #0
  14273. /* USER CODE BEGIN DMA1_Channel4_IRQn 0 */
  14274. /* USER CODE END DMA1_Channel4_IRQn 0 */
  14275. HAL_DMA_IRQHandler(&hdma_usart1_tx);
  14276. 8005b50: 4802 ldr r0, [pc, #8] ; (8005b5c <DMA1_Channel4_IRQHandler+0x10>)
  14277. 8005b52: f7fd f82d bl 8002bb0 <HAL_DMA_IRQHandler>
  14278. /* USER CODE BEGIN DMA1_Channel4_IRQn 1 */
  14279. /* USER CODE END DMA1_Channel4_IRQn 1 */
  14280. }
  14281. 8005b56: bf00 nop
  14282. 8005b58: bd80 pop {r7, pc}
  14283. 8005b5a: bf00 nop
  14284. 8005b5c: 20000864 .word 0x20000864
  14285. 08005b60 <ADC1_IRQHandler>:
  14286. /**
  14287. * @brief This function handles ADC1 global interrupt.
  14288. */
  14289. void ADC1_IRQHandler(void)
  14290. {
  14291. 8005b60: b580 push {r7, lr}
  14292. 8005b62: af00 add r7, sp, #0
  14293. /* USER CODE BEGIN ADC1_IRQn 0 */
  14294. /* USER CODE END ADC1_IRQn 0 */
  14295. HAL_ADC_IRQHandler(&hadc1);
  14296. 8005b64: 4802 ldr r0, [pc, #8] ; (8005b70 <ADC1_IRQHandler+0x10>)
  14297. 8005b66: f7fc faa5 bl 80020b4 <HAL_ADC_IRQHandler>
  14298. /* USER CODE BEGIN ADC1_IRQn 1 */
  14299. /* USER CODE END ADC1_IRQn 1 */
  14300. }
  14301. 8005b6a: bf00 nop
  14302. 8005b6c: bd80 pop {r7, pc}
  14303. 8005b6e: bf00 nop
  14304. 8005b70: 200008a8 .word 0x200008a8
  14305. 08005b74 <TIM2_IRQHandler>:
  14306. /**
  14307. * @brief This function handles TIM2 global interrupt.
  14308. */
  14309. void TIM2_IRQHandler(void)
  14310. {
  14311. 8005b74: b580 push {r7, lr}
  14312. 8005b76: af00 add r7, sp, #0
  14313. /* USER CODE BEGIN TIM2_IRQn 0 */
  14314. /* USER CODE END TIM2_IRQn 0 */
  14315. HAL_TIM_IRQHandler(&htim2);
  14316. 8005b78: 4802 ldr r0, [pc, #8] ; (8005b84 <TIM2_IRQHandler+0x10>)
  14317. 8005b7a: f7fe fa53 bl 8004024 <HAL_TIM_IRQHandler>
  14318. /* USER CODE BEGIN TIM2_IRQn 1 */
  14319. /* USER CODE END TIM2_IRQn 1 */
  14320. }
  14321. 8005b7e: bf00 nop
  14322. 8005b80: bd80 pop {r7, pc}
  14323. 8005b82: bf00 nop
  14324. 8005b84: 2000099c .word 0x2000099c
  14325. 08005b88 <USART1_IRQHandler>:
  14326. /**
  14327. * @brief This function handles USART1 global interrupt.
  14328. */
  14329. void USART1_IRQHandler(void)
  14330. {
  14331. 8005b88: b580 push {r7, lr}
  14332. 8005b8a: af00 add r7, sp, #0
  14333. /* USER CODE BEGIN USART1_IRQn 0 */
  14334. /* USER CODE END USART1_IRQn 0 */
  14335. HAL_UART_IRQHandler(&huart1);
  14336. 8005b8c: 4802 ldr r0, [pc, #8] ; (8005b98 <USART1_IRQHandler+0x10>)
  14337. 8005b8e: f7fe fdf1 bl 8004774 <HAL_UART_IRQHandler>
  14338. /* USER CODE BEGIN USART1_IRQn 1 */
  14339. /* USER CODE END USART1_IRQn 1 */
  14340. }
  14341. 8005b92: bf00 nop
  14342. 8005b94: bd80 pop {r7, pc}
  14343. 8005b96: bf00 nop
  14344. 8005b98: 200008d8 .word 0x200008d8
  14345. 08005b9c <USART3_IRQHandler>:
  14346. /**
  14347. * @brief This function handles USART3 global interrupt.
  14348. */
  14349. void USART3_IRQHandler(void)
  14350. {
  14351. 8005b9c: b580 push {r7, lr}
  14352. 8005b9e: af00 add r7, sp, #0
  14353. /* USER CODE BEGIN USART3_IRQn 0 */
  14354. /* USER CODE END USART3_IRQn 0 */
  14355. HAL_UART_IRQHandler(&huart3);
  14356. 8005ba0: 4802 ldr r0, [pc, #8] ; (8005bac <USART3_IRQHandler+0x10>)
  14357. 8005ba2: f7fe fde7 bl 8004774 <HAL_UART_IRQHandler>
  14358. /* USER CODE BEGIN USART3_IRQn 1 */
  14359. /* USER CODE END USART3_IRQn 1 */
  14360. }
  14361. 8005ba6: bf00 nop
  14362. 8005ba8: bd80 pop {r7, pc}
  14363. 8005baa: bf00 nop
  14364. 8005bac: 200007e0 .word 0x200007e0
  14365. 08005bb0 <TIM6_DAC_IRQHandler>:
  14366. /**
  14367. * @brief This function handles TIM6 global interrupt and DAC underrun error interrupts.
  14368. */
  14369. void TIM6_DAC_IRQHandler(void)
  14370. {
  14371. 8005bb0: b580 push {r7, lr}
  14372. 8005bb2: af00 add r7, sp, #0
  14373. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  14374. /* USER CODE END TIM6_DAC_IRQn 0 */
  14375. HAL_TIM_IRQHandler(&htim6);
  14376. 8005bb4: 4802 ldr r0, [pc, #8] ; (8005bc0 <TIM6_DAC_IRQHandler+0x10>)
  14377. 8005bb6: f7fe fa35 bl 8004024 <HAL_TIM_IRQHandler>
  14378. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  14379. /* USER CODE END TIM6_DAC_IRQn 1 */
  14380. }
  14381. 8005bba: bf00 nop
  14382. 8005bbc: bd80 pop {r7, pc}
  14383. 8005bbe: bf00 nop
  14384. 8005bc0: 2000095c .word 0x2000095c
  14385. 08005bc4 <_read>:
  14386. _kill(status, -1);
  14387. while (1) {} /* Make sure we hang here */
  14388. }
  14389. __attribute__((weak)) int _read(int file, char *ptr, int len)
  14390. {
  14391. 8005bc4: b580 push {r7, lr}
  14392. 8005bc6: b086 sub sp, #24
  14393. 8005bc8: af00 add r7, sp, #0
  14394. 8005bca: 60f8 str r0, [r7, #12]
  14395. 8005bcc: 60b9 str r1, [r7, #8]
  14396. 8005bce: 607a str r2, [r7, #4]
  14397. int DataIdx;
  14398. for (DataIdx = 0; DataIdx < len; DataIdx++)
  14399. 8005bd0: 2300 movs r3, #0
  14400. 8005bd2: 617b str r3, [r7, #20]
  14401. 8005bd4: e00a b.n 8005bec <_read+0x28>
  14402. {
  14403. *ptr++ = __io_getchar();
  14404. 8005bd6: f3af 8000 nop.w
  14405. 8005bda: 4601 mov r1, r0
  14406. 8005bdc: 68bb ldr r3, [r7, #8]
  14407. 8005bde: 1c5a adds r2, r3, #1
  14408. 8005be0: 60ba str r2, [r7, #8]
  14409. 8005be2: b2ca uxtb r2, r1
  14410. 8005be4: 701a strb r2, [r3, #0]
  14411. for (DataIdx = 0; DataIdx < len; DataIdx++)
  14412. 8005be6: 697b ldr r3, [r7, #20]
  14413. 8005be8: 3301 adds r3, #1
  14414. 8005bea: 617b str r3, [r7, #20]
  14415. 8005bec: 697a ldr r2, [r7, #20]
  14416. 8005bee: 687b ldr r3, [r7, #4]
  14417. 8005bf0: 429a cmp r2, r3
  14418. 8005bf2: dbf0 blt.n 8005bd6 <_read+0x12>
  14419. }
  14420. return len;
  14421. 8005bf4: 687b ldr r3, [r7, #4]
  14422. }
  14423. 8005bf6: 4618 mov r0, r3
  14424. 8005bf8: 3718 adds r7, #24
  14425. 8005bfa: 46bd mov sp, r7
  14426. 8005bfc: bd80 pop {r7, pc}
  14427. 08005bfe <_close>:
  14428. }
  14429. return len;
  14430. }
  14431. int _close(int file)
  14432. {
  14433. 8005bfe: b480 push {r7}
  14434. 8005c00: b083 sub sp, #12
  14435. 8005c02: af00 add r7, sp, #0
  14436. 8005c04: 6078 str r0, [r7, #4]
  14437. return -1;
  14438. 8005c06: f04f 33ff mov.w r3, #4294967295
  14439. }
  14440. 8005c0a: 4618 mov r0, r3
  14441. 8005c0c: 370c adds r7, #12
  14442. 8005c0e: 46bd mov sp, r7
  14443. 8005c10: bc80 pop {r7}
  14444. 8005c12: 4770 bx lr
  14445. 08005c14 <_fstat>:
  14446. int _fstat(int file, struct stat *st)
  14447. {
  14448. 8005c14: b480 push {r7}
  14449. 8005c16: b083 sub sp, #12
  14450. 8005c18: af00 add r7, sp, #0
  14451. 8005c1a: 6078 str r0, [r7, #4]
  14452. 8005c1c: 6039 str r1, [r7, #0]
  14453. st->st_mode = S_IFCHR;
  14454. 8005c1e: 683b ldr r3, [r7, #0]
  14455. 8005c20: f44f 5200 mov.w r2, #8192 ; 0x2000
  14456. 8005c24: 605a str r2, [r3, #4]
  14457. return 0;
  14458. 8005c26: 2300 movs r3, #0
  14459. }
  14460. 8005c28: 4618 mov r0, r3
  14461. 8005c2a: 370c adds r7, #12
  14462. 8005c2c: 46bd mov sp, r7
  14463. 8005c2e: bc80 pop {r7}
  14464. 8005c30: 4770 bx lr
  14465. 08005c32 <_isatty>:
  14466. int _isatty(int file)
  14467. {
  14468. 8005c32: b480 push {r7}
  14469. 8005c34: b083 sub sp, #12
  14470. 8005c36: af00 add r7, sp, #0
  14471. 8005c38: 6078 str r0, [r7, #4]
  14472. return 1;
  14473. 8005c3a: 2301 movs r3, #1
  14474. }
  14475. 8005c3c: 4618 mov r0, r3
  14476. 8005c3e: 370c adds r7, #12
  14477. 8005c40: 46bd mov sp, r7
  14478. 8005c42: bc80 pop {r7}
  14479. 8005c44: 4770 bx lr
  14480. 08005c46 <_lseek>:
  14481. int _lseek(int file, int ptr, int dir)
  14482. {
  14483. 8005c46: b480 push {r7}
  14484. 8005c48: b085 sub sp, #20
  14485. 8005c4a: af00 add r7, sp, #0
  14486. 8005c4c: 60f8 str r0, [r7, #12]
  14487. 8005c4e: 60b9 str r1, [r7, #8]
  14488. 8005c50: 607a str r2, [r7, #4]
  14489. return 0;
  14490. 8005c52: 2300 movs r3, #0
  14491. }
  14492. 8005c54: 4618 mov r0, r3
  14493. 8005c56: 3714 adds r7, #20
  14494. 8005c58: 46bd mov sp, r7
  14495. 8005c5a: bc80 pop {r7}
  14496. 8005c5c: 4770 bx lr
  14497. ...
  14498. 08005c60 <_sbrk>:
  14499. /**
  14500. _sbrk
  14501. Increase program data space. Malloc and related functions depend on this
  14502. **/
  14503. caddr_t _sbrk(int incr)
  14504. {
  14505. 8005c60: b580 push {r7, lr}
  14506. 8005c62: b084 sub sp, #16
  14507. 8005c64: af00 add r7, sp, #0
  14508. 8005c66: 6078 str r0, [r7, #4]
  14509. extern char end asm("end");
  14510. static char *heap_end;
  14511. char *prev_heap_end;
  14512. if (heap_end == 0)
  14513. 8005c68: 4b11 ldr r3, [pc, #68] ; (8005cb0 <_sbrk+0x50>)
  14514. 8005c6a: 681b ldr r3, [r3, #0]
  14515. 8005c6c: 2b00 cmp r3, #0
  14516. 8005c6e: d102 bne.n 8005c76 <_sbrk+0x16>
  14517. heap_end = &end;
  14518. 8005c70: 4b0f ldr r3, [pc, #60] ; (8005cb0 <_sbrk+0x50>)
  14519. 8005c72: 4a10 ldr r2, [pc, #64] ; (8005cb4 <_sbrk+0x54>)
  14520. 8005c74: 601a str r2, [r3, #0]
  14521. prev_heap_end = heap_end;
  14522. 8005c76: 4b0e ldr r3, [pc, #56] ; (8005cb0 <_sbrk+0x50>)
  14523. 8005c78: 681b ldr r3, [r3, #0]
  14524. 8005c7a: 60fb str r3, [r7, #12]
  14525. if (heap_end + incr > stack_ptr)
  14526. 8005c7c: 4b0c ldr r3, [pc, #48] ; (8005cb0 <_sbrk+0x50>)
  14527. 8005c7e: 681a ldr r2, [r3, #0]
  14528. 8005c80: 687b ldr r3, [r7, #4]
  14529. 8005c82: 4413 add r3, r2
  14530. 8005c84: 466a mov r2, sp
  14531. 8005c86: 4293 cmp r3, r2
  14532. 8005c88: d907 bls.n 8005c9a <_sbrk+0x3a>
  14533. {
  14534. errno = ENOMEM;
  14535. 8005c8a: f000 f873 bl 8005d74 <__errno>
  14536. 8005c8e: 4602 mov r2, r0
  14537. 8005c90: 230c movs r3, #12
  14538. 8005c92: 6013 str r3, [r2, #0]
  14539. return (caddr_t) -1;
  14540. 8005c94: f04f 33ff mov.w r3, #4294967295
  14541. 8005c98: e006 b.n 8005ca8 <_sbrk+0x48>
  14542. }
  14543. heap_end += incr;
  14544. 8005c9a: 4b05 ldr r3, [pc, #20] ; (8005cb0 <_sbrk+0x50>)
  14545. 8005c9c: 681a ldr r2, [r3, #0]
  14546. 8005c9e: 687b ldr r3, [r7, #4]
  14547. 8005ca0: 4413 add r3, r2
  14548. 8005ca2: 4a03 ldr r2, [pc, #12] ; (8005cb0 <_sbrk+0x50>)
  14549. 8005ca4: 6013 str r3, [r2, #0]
  14550. return (caddr_t) prev_heap_end;
  14551. 8005ca6: 68fb ldr r3, [r7, #12]
  14552. }
  14553. 8005ca8: 4618 mov r0, r3
  14554. 8005caa: 3710 adds r7, #16
  14555. 8005cac: 46bd mov sp, r7
  14556. 8005cae: bd80 pop {r7, pc}
  14557. 8005cb0: 2000050c .word 0x2000050c
  14558. 8005cb4: 200009e0 .word 0x200009e0
  14559. 08005cb8 <SystemInit>:
  14560. * @note This function should be used only after reset.
  14561. * @param None
  14562. * @retval None
  14563. */
  14564. void SystemInit (void)
  14565. {
  14566. 8005cb8: b480 push {r7}
  14567. 8005cba: af00 add r7, sp, #0
  14568. /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
  14569. /* Set HSION bit */
  14570. RCC->CR |= 0x00000001U;
  14571. 8005cbc: 4b17 ldr r3, [pc, #92] ; (8005d1c <SystemInit+0x64>)
  14572. 8005cbe: 681b ldr r3, [r3, #0]
  14573. 8005cc0: 4a16 ldr r2, [pc, #88] ; (8005d1c <SystemInit+0x64>)
  14574. 8005cc2: f043 0301 orr.w r3, r3, #1
  14575. 8005cc6: 6013 str r3, [r2, #0]
  14576. /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
  14577. #if !defined(STM32F105xC) && !defined(STM32F107xC)
  14578. RCC->CFGR &= 0xF8FF0000U;
  14579. 8005cc8: 4b14 ldr r3, [pc, #80] ; (8005d1c <SystemInit+0x64>)
  14580. 8005cca: 685a ldr r2, [r3, #4]
  14581. 8005ccc: 4913 ldr r1, [pc, #76] ; (8005d1c <SystemInit+0x64>)
  14582. 8005cce: 4b14 ldr r3, [pc, #80] ; (8005d20 <SystemInit+0x68>)
  14583. 8005cd0: 4013 ands r3, r2
  14584. 8005cd2: 604b str r3, [r1, #4]
  14585. #else
  14586. RCC->CFGR &= 0xF0FF0000U;
  14587. #endif /* STM32F105xC */
  14588. /* Reset HSEON, CSSON and PLLON bits */
  14589. RCC->CR &= 0xFEF6FFFFU;
  14590. 8005cd4: 4b11 ldr r3, [pc, #68] ; (8005d1c <SystemInit+0x64>)
  14591. 8005cd6: 681b ldr r3, [r3, #0]
  14592. 8005cd8: 4a10 ldr r2, [pc, #64] ; (8005d1c <SystemInit+0x64>)
  14593. 8005cda: f023 7384 bic.w r3, r3, #17301504 ; 0x1080000
  14594. 8005cde: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  14595. 8005ce2: 6013 str r3, [r2, #0]
  14596. /* Reset HSEBYP bit */
  14597. RCC->CR &= 0xFFFBFFFFU;
  14598. 8005ce4: 4b0d ldr r3, [pc, #52] ; (8005d1c <SystemInit+0x64>)
  14599. 8005ce6: 681b ldr r3, [r3, #0]
  14600. 8005ce8: 4a0c ldr r2, [pc, #48] ; (8005d1c <SystemInit+0x64>)
  14601. 8005cea: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  14602. 8005cee: 6013 str r3, [r2, #0]
  14603. /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */
  14604. RCC->CFGR &= 0xFF80FFFFU;
  14605. 8005cf0: 4b0a ldr r3, [pc, #40] ; (8005d1c <SystemInit+0x64>)
  14606. 8005cf2: 685b ldr r3, [r3, #4]
  14607. 8005cf4: 4a09 ldr r2, [pc, #36] ; (8005d1c <SystemInit+0x64>)
  14608. 8005cf6: f423 03fe bic.w r3, r3, #8323072 ; 0x7f0000
  14609. 8005cfa: 6053 str r3, [r2, #4]
  14610. /* Reset CFGR2 register */
  14611. RCC->CFGR2 = 0x00000000U;
  14612. #elif defined(STM32F100xB) || defined(STM32F100xE)
  14613. /* Disable all interrupts and clear pending bits */
  14614. RCC->CIR = 0x009F0000U;
  14615. 8005cfc: 4b07 ldr r3, [pc, #28] ; (8005d1c <SystemInit+0x64>)
  14616. 8005cfe: f44f 021f mov.w r2, #10420224 ; 0x9f0000
  14617. 8005d02: 609a str r2, [r3, #8]
  14618. /* Reset CFGR2 register */
  14619. RCC->CFGR2 = 0x00000000U;
  14620. 8005d04: 4b05 ldr r3, [pc, #20] ; (8005d1c <SystemInit+0x64>)
  14621. 8005d06: 2200 movs r2, #0
  14622. 8005d08: 62da str r2, [r3, #44] ; 0x2c
  14623. #endif
  14624. #ifdef VECT_TAB_SRAM
  14625. SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  14626. #else
  14627. SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
  14628. 8005d0a: 4b06 ldr r3, [pc, #24] ; (8005d24 <SystemInit+0x6c>)
  14629. 8005d0c: f04f 6200 mov.w r2, #134217728 ; 0x8000000
  14630. 8005d10: 609a str r2, [r3, #8]
  14631. #endif
  14632. }
  14633. 8005d12: bf00 nop
  14634. 8005d14: 46bd mov sp, r7
  14635. 8005d16: bc80 pop {r7}
  14636. 8005d18: 4770 bx lr
  14637. 8005d1a: bf00 nop
  14638. 8005d1c: 40021000 .word 0x40021000
  14639. 8005d20: f8ff0000 .word 0xf8ff0000
  14640. 8005d24: e000ed00 .word 0xe000ed00
  14641. 08005d28 <Reset_Handler>:
  14642. .weak Reset_Handler
  14643. .type Reset_Handler, %function
  14644. Reset_Handler:
  14645. /* Copy the data segment initializers from flash to SRAM */
  14646. movs r1, #0
  14647. 8005d28: 2100 movs r1, #0
  14648. b LoopCopyDataInit
  14649. 8005d2a: e003 b.n 8005d34 <LoopCopyDataInit>
  14650. 08005d2c <CopyDataInit>:
  14651. CopyDataInit:
  14652. ldr r3, =_sidata
  14653. 8005d2c: 4b0b ldr r3, [pc, #44] ; (8005d5c <LoopFillZerobss+0x14>)
  14654. ldr r3, [r3, r1]
  14655. 8005d2e: 585b ldr r3, [r3, r1]
  14656. str r3, [r0, r1]
  14657. 8005d30: 5043 str r3, [r0, r1]
  14658. adds r1, r1, #4
  14659. 8005d32: 3104 adds r1, #4
  14660. 08005d34 <LoopCopyDataInit>:
  14661. LoopCopyDataInit:
  14662. ldr r0, =_sdata
  14663. 8005d34: 480a ldr r0, [pc, #40] ; (8005d60 <LoopFillZerobss+0x18>)
  14664. ldr r3, =_edata
  14665. 8005d36: 4b0b ldr r3, [pc, #44] ; (8005d64 <LoopFillZerobss+0x1c>)
  14666. adds r2, r0, r1
  14667. 8005d38: 1842 adds r2, r0, r1
  14668. cmp r2, r3
  14669. 8005d3a: 429a cmp r2, r3
  14670. bcc CopyDataInit
  14671. 8005d3c: d3f6 bcc.n 8005d2c <CopyDataInit>
  14672. ldr r2, =_sbss
  14673. 8005d3e: 4a0a ldr r2, [pc, #40] ; (8005d68 <LoopFillZerobss+0x20>)
  14674. b LoopFillZerobss
  14675. 8005d40: e002 b.n 8005d48 <LoopFillZerobss>
  14676. 08005d42 <FillZerobss>:
  14677. /* Zero fill the bss segment. */
  14678. FillZerobss:
  14679. movs r3, #0
  14680. 8005d42: 2300 movs r3, #0
  14681. str r3, [r2], #4
  14682. 8005d44: f842 3b04 str.w r3, [r2], #4
  14683. 08005d48 <LoopFillZerobss>:
  14684. LoopFillZerobss:
  14685. ldr r3, = _ebss
  14686. 8005d48: 4b08 ldr r3, [pc, #32] ; (8005d6c <LoopFillZerobss+0x24>)
  14687. cmp r2, r3
  14688. 8005d4a: 429a cmp r2, r3
  14689. bcc FillZerobss
  14690. 8005d4c: d3f9 bcc.n 8005d42 <FillZerobss>
  14691. /* Call the clock system intitialization function.*/
  14692. bl SystemInit
  14693. 8005d4e: f7ff ffb3 bl 8005cb8 <SystemInit>
  14694. /* Call static constructors */
  14695. bl __libc_init_array
  14696. 8005d52: f000 f815 bl 8005d80 <__libc_init_array>
  14697. /* Call the application's entry point.*/
  14698. bl main
  14699. 8005d56: f7ff f9bf bl 80050d8 <main>
  14700. bx lr
  14701. 8005d5a: 4770 bx lr
  14702. ldr r3, =_sidata
  14703. 8005d5c: 08008c70 .word 0x08008c70
  14704. ldr r0, =_sdata
  14705. 8005d60: 20000000 .word 0x20000000
  14706. ldr r3, =_edata
  14707. 8005d64: 200001dc .word 0x200001dc
  14708. ldr r2, =_sbss
  14709. 8005d68: 200001e0 .word 0x200001e0
  14710. ldr r3, = _ebss
  14711. 8005d6c: 200009e0 .word 0x200009e0
  14712. 08005d70 <CEC_IRQHandler>:
  14713. * @retval : None
  14714. */
  14715. .section .text.Default_Handler,"ax",%progbits
  14716. Default_Handler:
  14717. Infinite_Loop:
  14718. b Infinite_Loop
  14719. 8005d70: e7fe b.n 8005d70 <CEC_IRQHandler>
  14720. ...
  14721. 08005d74 <__errno>:
  14722. 8005d74: 4b01 ldr r3, [pc, #4] ; (8005d7c <__errno+0x8>)
  14723. 8005d76: 6818 ldr r0, [r3, #0]
  14724. 8005d78: 4770 bx lr
  14725. 8005d7a: bf00 nop
  14726. 8005d7c: 2000000c .word 0x2000000c
  14727. 08005d80 <__libc_init_array>:
  14728. 8005d80: b570 push {r4, r5, r6, lr}
  14729. 8005d82: 2500 movs r5, #0
  14730. 8005d84: 4e0c ldr r6, [pc, #48] ; (8005db8 <__libc_init_array+0x38>)
  14731. 8005d86: 4c0d ldr r4, [pc, #52] ; (8005dbc <__libc_init_array+0x3c>)
  14732. 8005d88: 1ba4 subs r4, r4, r6
  14733. 8005d8a: 10a4 asrs r4, r4, #2
  14734. 8005d8c: 42a5 cmp r5, r4
  14735. 8005d8e: d109 bne.n 8005da4 <__libc_init_array+0x24>
  14736. 8005d90: f002 fc60 bl 8008654 <_init>
  14737. 8005d94: 2500 movs r5, #0
  14738. 8005d96: 4e0a ldr r6, [pc, #40] ; (8005dc0 <__libc_init_array+0x40>)
  14739. 8005d98: 4c0a ldr r4, [pc, #40] ; (8005dc4 <__libc_init_array+0x44>)
  14740. 8005d9a: 1ba4 subs r4, r4, r6
  14741. 8005d9c: 10a4 asrs r4, r4, #2
  14742. 8005d9e: 42a5 cmp r5, r4
  14743. 8005da0: d105 bne.n 8005dae <__libc_init_array+0x2e>
  14744. 8005da2: bd70 pop {r4, r5, r6, pc}
  14745. 8005da4: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  14746. 8005da8: 4798 blx r3
  14747. 8005daa: 3501 adds r5, #1
  14748. 8005dac: e7ee b.n 8005d8c <__libc_init_array+0xc>
  14749. 8005dae: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  14750. 8005db2: 4798 blx r3
  14751. 8005db4: 3501 adds r5, #1
  14752. 8005db6: e7f2 b.n 8005d9e <__libc_init_array+0x1e>
  14753. 8005db8: 08008c68 .word 0x08008c68
  14754. 8005dbc: 08008c68 .word 0x08008c68
  14755. 8005dc0: 08008c68 .word 0x08008c68
  14756. 8005dc4: 08008c6c .word 0x08008c6c
  14757. 08005dc8 <memset>:
  14758. 8005dc8: 4603 mov r3, r0
  14759. 8005dca: 4402 add r2, r0
  14760. 8005dcc: 4293 cmp r3, r2
  14761. 8005dce: d100 bne.n 8005dd2 <memset+0xa>
  14762. 8005dd0: 4770 bx lr
  14763. 8005dd2: f803 1b01 strb.w r1, [r3], #1
  14764. 8005dd6: e7f9 b.n 8005dcc <memset+0x4>
  14765. 08005dd8 <__cvt>:
  14766. 8005dd8: 2b00 cmp r3, #0
  14767. 8005dda: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  14768. 8005dde: 461e mov r6, r3
  14769. 8005de0: bfbb ittet lt
  14770. 8005de2: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
  14771. 8005de6: 461e movlt r6, r3
  14772. 8005de8: 2300 movge r3, #0
  14773. 8005dea: 232d movlt r3, #45 ; 0x2d
  14774. 8005dec: b088 sub sp, #32
  14775. 8005dee: 9f14 ldr r7, [sp, #80] ; 0x50
  14776. 8005df0: e9dd 1a12 ldrd r1, sl, [sp, #72] ; 0x48
  14777. 8005df4: f027 0720 bic.w r7, r7, #32
  14778. 8005df8: 2f46 cmp r7, #70 ; 0x46
  14779. 8005dfa: 4614 mov r4, r2
  14780. 8005dfc: 9d10 ldr r5, [sp, #64] ; 0x40
  14781. 8005dfe: 700b strb r3, [r1, #0]
  14782. 8005e00: d004 beq.n 8005e0c <__cvt+0x34>
  14783. 8005e02: 2f45 cmp r7, #69 ; 0x45
  14784. 8005e04: d100 bne.n 8005e08 <__cvt+0x30>
  14785. 8005e06: 3501 adds r5, #1
  14786. 8005e08: 2302 movs r3, #2
  14787. 8005e0a: e000 b.n 8005e0e <__cvt+0x36>
  14788. 8005e0c: 2303 movs r3, #3
  14789. 8005e0e: aa07 add r2, sp, #28
  14790. 8005e10: 9204 str r2, [sp, #16]
  14791. 8005e12: aa06 add r2, sp, #24
  14792. 8005e14: e9cd a202 strd sl, r2, [sp, #8]
  14793. 8005e18: e9cd 3500 strd r3, r5, [sp]
  14794. 8005e1c: 4622 mov r2, r4
  14795. 8005e1e: 4633 mov r3, r6
  14796. 8005e20: f000 feaa bl 8006b78 <_dtoa_r>
  14797. 8005e24: 2f47 cmp r7, #71 ; 0x47
  14798. 8005e26: 4680 mov r8, r0
  14799. 8005e28: d102 bne.n 8005e30 <__cvt+0x58>
  14800. 8005e2a: 9b11 ldr r3, [sp, #68] ; 0x44
  14801. 8005e2c: 07db lsls r3, r3, #31
  14802. 8005e2e: d526 bpl.n 8005e7e <__cvt+0xa6>
  14803. 8005e30: 2f46 cmp r7, #70 ; 0x46
  14804. 8005e32: eb08 0905 add.w r9, r8, r5
  14805. 8005e36: d111 bne.n 8005e5c <__cvt+0x84>
  14806. 8005e38: f898 3000 ldrb.w r3, [r8]
  14807. 8005e3c: 2b30 cmp r3, #48 ; 0x30
  14808. 8005e3e: d10a bne.n 8005e56 <__cvt+0x7e>
  14809. 8005e40: 2200 movs r2, #0
  14810. 8005e42: 2300 movs r3, #0
  14811. 8005e44: 4620 mov r0, r4
  14812. 8005e46: 4631 mov r1, r6
  14813. 8005e48: f7fa fe0e bl 8000a68 <__aeabi_dcmpeq>
  14814. 8005e4c: b918 cbnz r0, 8005e56 <__cvt+0x7e>
  14815. 8005e4e: f1c5 0501 rsb r5, r5, #1
  14816. 8005e52: f8ca 5000 str.w r5, [sl]
  14817. 8005e56: f8da 3000 ldr.w r3, [sl]
  14818. 8005e5a: 4499 add r9, r3
  14819. 8005e5c: 2200 movs r2, #0
  14820. 8005e5e: 2300 movs r3, #0
  14821. 8005e60: 4620 mov r0, r4
  14822. 8005e62: 4631 mov r1, r6
  14823. 8005e64: f7fa fe00 bl 8000a68 <__aeabi_dcmpeq>
  14824. 8005e68: b938 cbnz r0, 8005e7a <__cvt+0xa2>
  14825. 8005e6a: 2230 movs r2, #48 ; 0x30
  14826. 8005e6c: 9b07 ldr r3, [sp, #28]
  14827. 8005e6e: 454b cmp r3, r9
  14828. 8005e70: d205 bcs.n 8005e7e <__cvt+0xa6>
  14829. 8005e72: 1c59 adds r1, r3, #1
  14830. 8005e74: 9107 str r1, [sp, #28]
  14831. 8005e76: 701a strb r2, [r3, #0]
  14832. 8005e78: e7f8 b.n 8005e6c <__cvt+0x94>
  14833. 8005e7a: f8cd 901c str.w r9, [sp, #28]
  14834. 8005e7e: 4640 mov r0, r8
  14835. 8005e80: 9b07 ldr r3, [sp, #28]
  14836. 8005e82: 9a15 ldr r2, [sp, #84] ; 0x54
  14837. 8005e84: eba3 0308 sub.w r3, r3, r8
  14838. 8005e88: 6013 str r3, [r2, #0]
  14839. 8005e8a: b008 add sp, #32
  14840. 8005e8c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  14841. 08005e90 <__exponent>:
  14842. 8005e90: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  14843. 8005e92: 2900 cmp r1, #0
  14844. 8005e94: bfb4 ite lt
  14845. 8005e96: 232d movlt r3, #45 ; 0x2d
  14846. 8005e98: 232b movge r3, #43 ; 0x2b
  14847. 8005e9a: 4604 mov r4, r0
  14848. 8005e9c: bfb8 it lt
  14849. 8005e9e: 4249 neglt r1, r1
  14850. 8005ea0: 2909 cmp r1, #9
  14851. 8005ea2: f804 2b02 strb.w r2, [r4], #2
  14852. 8005ea6: 7043 strb r3, [r0, #1]
  14853. 8005ea8: dd21 ble.n 8005eee <__exponent+0x5e>
  14854. 8005eaa: f10d 0307 add.w r3, sp, #7
  14855. 8005eae: 461f mov r7, r3
  14856. 8005eb0: 260a movs r6, #10
  14857. 8005eb2: fb91 f5f6 sdiv r5, r1, r6
  14858. 8005eb6: fb06 1115 mls r1, r6, r5, r1
  14859. 8005eba: 2d09 cmp r5, #9
  14860. 8005ebc: f101 0130 add.w r1, r1, #48 ; 0x30
  14861. 8005ec0: f803 1c01 strb.w r1, [r3, #-1]
  14862. 8005ec4: f103 32ff add.w r2, r3, #4294967295
  14863. 8005ec8: 4629 mov r1, r5
  14864. 8005eca: dc09 bgt.n 8005ee0 <__exponent+0x50>
  14865. 8005ecc: 3130 adds r1, #48 ; 0x30
  14866. 8005ece: 3b02 subs r3, #2
  14867. 8005ed0: f802 1c01 strb.w r1, [r2, #-1]
  14868. 8005ed4: 42bb cmp r3, r7
  14869. 8005ed6: 4622 mov r2, r4
  14870. 8005ed8: d304 bcc.n 8005ee4 <__exponent+0x54>
  14871. 8005eda: 1a10 subs r0, r2, r0
  14872. 8005edc: b003 add sp, #12
  14873. 8005ede: bdf0 pop {r4, r5, r6, r7, pc}
  14874. 8005ee0: 4613 mov r3, r2
  14875. 8005ee2: e7e6 b.n 8005eb2 <__exponent+0x22>
  14876. 8005ee4: f813 2b01 ldrb.w r2, [r3], #1
  14877. 8005ee8: f804 2b01 strb.w r2, [r4], #1
  14878. 8005eec: e7f2 b.n 8005ed4 <__exponent+0x44>
  14879. 8005eee: 2330 movs r3, #48 ; 0x30
  14880. 8005ef0: 4419 add r1, r3
  14881. 8005ef2: 7083 strb r3, [r0, #2]
  14882. 8005ef4: 1d02 adds r2, r0, #4
  14883. 8005ef6: 70c1 strb r1, [r0, #3]
  14884. 8005ef8: e7ef b.n 8005eda <__exponent+0x4a>
  14885. ...
  14886. 08005efc <_printf_float>:
  14887. 8005efc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  14888. 8005f00: b091 sub sp, #68 ; 0x44
  14889. 8005f02: 460c mov r4, r1
  14890. 8005f04: 9f1a ldr r7, [sp, #104] ; 0x68
  14891. 8005f06: 4693 mov fp, r2
  14892. 8005f08: 461e mov r6, r3
  14893. 8005f0a: 4605 mov r5, r0
  14894. 8005f0c: f001 fd62 bl 80079d4 <_localeconv_r>
  14895. 8005f10: 6803 ldr r3, [r0, #0]
  14896. 8005f12: 4618 mov r0, r3
  14897. 8005f14: 9309 str r3, [sp, #36] ; 0x24
  14898. 8005f16: f7fa f97b bl 8000210 <strlen>
  14899. 8005f1a: 2300 movs r3, #0
  14900. 8005f1c: 930e str r3, [sp, #56] ; 0x38
  14901. 8005f1e: 683b ldr r3, [r7, #0]
  14902. 8005f20: 900a str r0, [sp, #40] ; 0x28
  14903. 8005f22: 3307 adds r3, #7
  14904. 8005f24: f023 0307 bic.w r3, r3, #7
  14905. 8005f28: f103 0208 add.w r2, r3, #8
  14906. 8005f2c: f894 8018 ldrb.w r8, [r4, #24]
  14907. 8005f30: f8d4 a000 ldr.w sl, [r4]
  14908. 8005f34: 603a str r2, [r7, #0]
  14909. 8005f36: e9d3 2300 ldrd r2, r3, [r3]
  14910. 8005f3a: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
  14911. 8005f3e: e9d4 7912 ldrd r7, r9, [r4, #72] ; 0x48
  14912. 8005f42: f029 4300 bic.w r3, r9, #2147483648 ; 0x80000000
  14913. 8005f46: 930b str r3, [sp, #44] ; 0x2c
  14914. 8005f48: f04f 32ff mov.w r2, #4294967295
  14915. 8005f4c: 4ba6 ldr r3, [pc, #664] ; (80061e8 <_printf_float+0x2ec>)
  14916. 8005f4e: 4638 mov r0, r7
  14917. 8005f50: 990b ldr r1, [sp, #44] ; 0x2c
  14918. 8005f52: f7fa fdbb bl 8000acc <__aeabi_dcmpun>
  14919. 8005f56: bb68 cbnz r0, 8005fb4 <_printf_float+0xb8>
  14920. 8005f58: f04f 32ff mov.w r2, #4294967295
  14921. 8005f5c: 4ba2 ldr r3, [pc, #648] ; (80061e8 <_printf_float+0x2ec>)
  14922. 8005f5e: 4638 mov r0, r7
  14923. 8005f60: 990b ldr r1, [sp, #44] ; 0x2c
  14924. 8005f62: f7fa fd95 bl 8000a90 <__aeabi_dcmple>
  14925. 8005f66: bb28 cbnz r0, 8005fb4 <_printf_float+0xb8>
  14926. 8005f68: 2200 movs r2, #0
  14927. 8005f6a: 2300 movs r3, #0
  14928. 8005f6c: 4638 mov r0, r7
  14929. 8005f6e: 4649 mov r1, r9
  14930. 8005f70: f7fa fd84 bl 8000a7c <__aeabi_dcmplt>
  14931. 8005f74: b110 cbz r0, 8005f7c <_printf_float+0x80>
  14932. 8005f76: 232d movs r3, #45 ; 0x2d
  14933. 8005f78: f884 3043 strb.w r3, [r4, #67] ; 0x43
  14934. 8005f7c: 4f9b ldr r7, [pc, #620] ; (80061ec <_printf_float+0x2f0>)
  14935. 8005f7e: 4b9c ldr r3, [pc, #624] ; (80061f0 <_printf_float+0x2f4>)
  14936. 8005f80: f1b8 0f47 cmp.w r8, #71 ; 0x47
  14937. 8005f84: bf98 it ls
  14938. 8005f86: 461f movls r7, r3
  14939. 8005f88: 2303 movs r3, #3
  14940. 8005f8a: f04f 0900 mov.w r9, #0
  14941. 8005f8e: 6123 str r3, [r4, #16]
  14942. 8005f90: f02a 0304 bic.w r3, sl, #4
  14943. 8005f94: 6023 str r3, [r4, #0]
  14944. 8005f96: 9600 str r6, [sp, #0]
  14945. 8005f98: 465b mov r3, fp
  14946. 8005f9a: aa0f add r2, sp, #60 ; 0x3c
  14947. 8005f9c: 4621 mov r1, r4
  14948. 8005f9e: 4628 mov r0, r5
  14949. 8005fa0: f000 f9e2 bl 8006368 <_printf_common>
  14950. 8005fa4: 3001 adds r0, #1
  14951. 8005fa6: f040 8090 bne.w 80060ca <_printf_float+0x1ce>
  14952. 8005faa: f04f 30ff mov.w r0, #4294967295
  14953. 8005fae: b011 add sp, #68 ; 0x44
  14954. 8005fb0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  14955. 8005fb4: 463a mov r2, r7
  14956. 8005fb6: 464b mov r3, r9
  14957. 8005fb8: 4638 mov r0, r7
  14958. 8005fba: 4649 mov r1, r9
  14959. 8005fbc: f7fa fd86 bl 8000acc <__aeabi_dcmpun>
  14960. 8005fc0: b110 cbz r0, 8005fc8 <_printf_float+0xcc>
  14961. 8005fc2: 4f8c ldr r7, [pc, #560] ; (80061f4 <_printf_float+0x2f8>)
  14962. 8005fc4: 4b8c ldr r3, [pc, #560] ; (80061f8 <_printf_float+0x2fc>)
  14963. 8005fc6: e7db b.n 8005f80 <_printf_float+0x84>
  14964. 8005fc8: 6863 ldr r3, [r4, #4]
  14965. 8005fca: f44a 6280 orr.w r2, sl, #1024 ; 0x400
  14966. 8005fce: 1c59 adds r1, r3, #1
  14967. 8005fd0: a80d add r0, sp, #52 ; 0x34
  14968. 8005fd2: a90e add r1, sp, #56 ; 0x38
  14969. 8005fd4: d140 bne.n 8006058 <_printf_float+0x15c>
  14970. 8005fd6: 2306 movs r3, #6
  14971. 8005fd8: 6063 str r3, [r4, #4]
  14972. 8005fda: f04f 0c00 mov.w ip, #0
  14973. 8005fde: f10d 0333 add.w r3, sp, #51 ; 0x33
  14974. 8005fe2: e9cd 2301 strd r2, r3, [sp, #4]
  14975. 8005fe6: 6863 ldr r3, [r4, #4]
  14976. 8005fe8: 6022 str r2, [r4, #0]
  14977. 8005fea: e9cd 0803 strd r0, r8, [sp, #12]
  14978. 8005fee: 9300 str r3, [sp, #0]
  14979. 8005ff0: 463a mov r2, r7
  14980. 8005ff2: 464b mov r3, r9
  14981. 8005ff4: e9cd 1c05 strd r1, ip, [sp, #20]
  14982. 8005ff8: 4628 mov r0, r5
  14983. 8005ffa: f7ff feed bl 8005dd8 <__cvt>
  14984. 8005ffe: f008 03df and.w r3, r8, #223 ; 0xdf
  14985. 8006002: 2b47 cmp r3, #71 ; 0x47
  14986. 8006004: 4607 mov r7, r0
  14987. 8006006: d109 bne.n 800601c <_printf_float+0x120>
  14988. 8006008: 9b0d ldr r3, [sp, #52] ; 0x34
  14989. 800600a: 1cd8 adds r0, r3, #3
  14990. 800600c: db02 blt.n 8006014 <_printf_float+0x118>
  14991. 800600e: 6862 ldr r2, [r4, #4]
  14992. 8006010: 4293 cmp r3, r2
  14993. 8006012: dd47 ble.n 80060a4 <_printf_float+0x1a8>
  14994. 8006014: f1a8 0802 sub.w r8, r8, #2
  14995. 8006018: fa5f f888 uxtb.w r8, r8
  14996. 800601c: f1b8 0f65 cmp.w r8, #101 ; 0x65
  14997. 8006020: 990d ldr r1, [sp, #52] ; 0x34
  14998. 8006022: d824 bhi.n 800606e <_printf_float+0x172>
  14999. 8006024: 3901 subs r1, #1
  15000. 8006026: 4642 mov r2, r8
  15001. 8006028: f104 0050 add.w r0, r4, #80 ; 0x50
  15002. 800602c: 910d str r1, [sp, #52] ; 0x34
  15003. 800602e: f7ff ff2f bl 8005e90 <__exponent>
  15004. 8006032: 9a0e ldr r2, [sp, #56] ; 0x38
  15005. 8006034: 4681 mov r9, r0
  15006. 8006036: 1813 adds r3, r2, r0
  15007. 8006038: 2a01 cmp r2, #1
  15008. 800603a: 6123 str r3, [r4, #16]
  15009. 800603c: dc02 bgt.n 8006044 <_printf_float+0x148>
  15010. 800603e: 6822 ldr r2, [r4, #0]
  15011. 8006040: 07d1 lsls r1, r2, #31
  15012. 8006042: d501 bpl.n 8006048 <_printf_float+0x14c>
  15013. 8006044: 3301 adds r3, #1
  15014. 8006046: 6123 str r3, [r4, #16]
  15015. 8006048: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
  15016. 800604c: 2b00 cmp r3, #0
  15017. 800604e: d0a2 beq.n 8005f96 <_printf_float+0x9a>
  15018. 8006050: 232d movs r3, #45 ; 0x2d
  15019. 8006052: f884 3043 strb.w r3, [r4, #67] ; 0x43
  15020. 8006056: e79e b.n 8005f96 <_printf_float+0x9a>
  15021. 8006058: f1b8 0f67 cmp.w r8, #103 ; 0x67
  15022. 800605c: f000 816e beq.w 800633c <_printf_float+0x440>
  15023. 8006060: f1b8 0f47 cmp.w r8, #71 ; 0x47
  15024. 8006064: d1b9 bne.n 8005fda <_printf_float+0xde>
  15025. 8006066: 2b00 cmp r3, #0
  15026. 8006068: d1b7 bne.n 8005fda <_printf_float+0xde>
  15027. 800606a: 2301 movs r3, #1
  15028. 800606c: e7b4 b.n 8005fd8 <_printf_float+0xdc>
  15029. 800606e: f1b8 0f66 cmp.w r8, #102 ; 0x66
  15030. 8006072: d119 bne.n 80060a8 <_printf_float+0x1ac>
  15031. 8006074: 2900 cmp r1, #0
  15032. 8006076: 6863 ldr r3, [r4, #4]
  15033. 8006078: dd0c ble.n 8006094 <_printf_float+0x198>
  15034. 800607a: 6121 str r1, [r4, #16]
  15035. 800607c: b913 cbnz r3, 8006084 <_printf_float+0x188>
  15036. 800607e: 6822 ldr r2, [r4, #0]
  15037. 8006080: 07d2 lsls r2, r2, #31
  15038. 8006082: d502 bpl.n 800608a <_printf_float+0x18e>
  15039. 8006084: 3301 adds r3, #1
  15040. 8006086: 440b add r3, r1
  15041. 8006088: 6123 str r3, [r4, #16]
  15042. 800608a: 9b0d ldr r3, [sp, #52] ; 0x34
  15043. 800608c: f04f 0900 mov.w r9, #0
  15044. 8006090: 65a3 str r3, [r4, #88] ; 0x58
  15045. 8006092: e7d9 b.n 8006048 <_printf_float+0x14c>
  15046. 8006094: b913 cbnz r3, 800609c <_printf_float+0x1a0>
  15047. 8006096: 6822 ldr r2, [r4, #0]
  15048. 8006098: 07d0 lsls r0, r2, #31
  15049. 800609a: d501 bpl.n 80060a0 <_printf_float+0x1a4>
  15050. 800609c: 3302 adds r3, #2
  15051. 800609e: e7f3 b.n 8006088 <_printf_float+0x18c>
  15052. 80060a0: 2301 movs r3, #1
  15053. 80060a2: e7f1 b.n 8006088 <_printf_float+0x18c>
  15054. 80060a4: f04f 0867 mov.w r8, #103 ; 0x67
  15055. 80060a8: e9dd 320d ldrd r3, r2, [sp, #52] ; 0x34
  15056. 80060ac: 4293 cmp r3, r2
  15057. 80060ae: db05 blt.n 80060bc <_printf_float+0x1c0>
  15058. 80060b0: 6822 ldr r2, [r4, #0]
  15059. 80060b2: 6123 str r3, [r4, #16]
  15060. 80060b4: 07d1 lsls r1, r2, #31
  15061. 80060b6: d5e8 bpl.n 800608a <_printf_float+0x18e>
  15062. 80060b8: 3301 adds r3, #1
  15063. 80060ba: e7e5 b.n 8006088 <_printf_float+0x18c>
  15064. 80060bc: 2b00 cmp r3, #0
  15065. 80060be: bfcc ite gt
  15066. 80060c0: 2301 movgt r3, #1
  15067. 80060c2: f1c3 0302 rsble r3, r3, #2
  15068. 80060c6: 4413 add r3, r2
  15069. 80060c8: e7de b.n 8006088 <_printf_float+0x18c>
  15070. 80060ca: 6823 ldr r3, [r4, #0]
  15071. 80060cc: 055a lsls r2, r3, #21
  15072. 80060ce: d407 bmi.n 80060e0 <_printf_float+0x1e4>
  15073. 80060d0: 6923 ldr r3, [r4, #16]
  15074. 80060d2: 463a mov r2, r7
  15075. 80060d4: 4659 mov r1, fp
  15076. 80060d6: 4628 mov r0, r5
  15077. 80060d8: 47b0 blx r6
  15078. 80060da: 3001 adds r0, #1
  15079. 80060dc: d129 bne.n 8006132 <_printf_float+0x236>
  15080. 80060de: e764 b.n 8005faa <_printf_float+0xae>
  15081. 80060e0: f1b8 0f65 cmp.w r8, #101 ; 0x65
  15082. 80060e4: f240 80d7 bls.w 8006296 <_printf_float+0x39a>
  15083. 80060e8: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  15084. 80060ec: 2200 movs r2, #0
  15085. 80060ee: 2300 movs r3, #0
  15086. 80060f0: f7fa fcba bl 8000a68 <__aeabi_dcmpeq>
  15087. 80060f4: b388 cbz r0, 800615a <_printf_float+0x25e>
  15088. 80060f6: 2301 movs r3, #1
  15089. 80060f8: 4a40 ldr r2, [pc, #256] ; (80061fc <_printf_float+0x300>)
  15090. 80060fa: 4659 mov r1, fp
  15091. 80060fc: 4628 mov r0, r5
  15092. 80060fe: 47b0 blx r6
  15093. 8006100: 3001 adds r0, #1
  15094. 8006102: f43f af52 beq.w 8005faa <_printf_float+0xae>
  15095. 8006106: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  15096. 800610a: 429a cmp r2, r3
  15097. 800610c: db02 blt.n 8006114 <_printf_float+0x218>
  15098. 800610e: 6823 ldr r3, [r4, #0]
  15099. 8006110: 07d8 lsls r0, r3, #31
  15100. 8006112: d50e bpl.n 8006132 <_printf_float+0x236>
  15101. 8006114: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15102. 8006118: 4659 mov r1, fp
  15103. 800611a: 4628 mov r0, r5
  15104. 800611c: 47b0 blx r6
  15105. 800611e: 3001 adds r0, #1
  15106. 8006120: f43f af43 beq.w 8005faa <_printf_float+0xae>
  15107. 8006124: 2700 movs r7, #0
  15108. 8006126: f104 081a add.w r8, r4, #26
  15109. 800612a: 9b0e ldr r3, [sp, #56] ; 0x38
  15110. 800612c: 3b01 subs r3, #1
  15111. 800612e: 42bb cmp r3, r7
  15112. 8006130: dc09 bgt.n 8006146 <_printf_float+0x24a>
  15113. 8006132: 6823 ldr r3, [r4, #0]
  15114. 8006134: 079f lsls r7, r3, #30
  15115. 8006136: f100 80fd bmi.w 8006334 <_printf_float+0x438>
  15116. 800613a: 68e0 ldr r0, [r4, #12]
  15117. 800613c: 9b0f ldr r3, [sp, #60] ; 0x3c
  15118. 800613e: 4298 cmp r0, r3
  15119. 8006140: bfb8 it lt
  15120. 8006142: 4618 movlt r0, r3
  15121. 8006144: e733 b.n 8005fae <_printf_float+0xb2>
  15122. 8006146: 2301 movs r3, #1
  15123. 8006148: 4642 mov r2, r8
  15124. 800614a: 4659 mov r1, fp
  15125. 800614c: 4628 mov r0, r5
  15126. 800614e: 47b0 blx r6
  15127. 8006150: 3001 adds r0, #1
  15128. 8006152: f43f af2a beq.w 8005faa <_printf_float+0xae>
  15129. 8006156: 3701 adds r7, #1
  15130. 8006158: e7e7 b.n 800612a <_printf_float+0x22e>
  15131. 800615a: 9b0d ldr r3, [sp, #52] ; 0x34
  15132. 800615c: 2b00 cmp r3, #0
  15133. 800615e: dc2b bgt.n 80061b8 <_printf_float+0x2bc>
  15134. 8006160: 2301 movs r3, #1
  15135. 8006162: 4a26 ldr r2, [pc, #152] ; (80061fc <_printf_float+0x300>)
  15136. 8006164: 4659 mov r1, fp
  15137. 8006166: 4628 mov r0, r5
  15138. 8006168: 47b0 blx r6
  15139. 800616a: 3001 adds r0, #1
  15140. 800616c: f43f af1d beq.w 8005faa <_printf_float+0xae>
  15141. 8006170: 9b0d ldr r3, [sp, #52] ; 0x34
  15142. 8006172: b923 cbnz r3, 800617e <_printf_float+0x282>
  15143. 8006174: 9b0e ldr r3, [sp, #56] ; 0x38
  15144. 8006176: b913 cbnz r3, 800617e <_printf_float+0x282>
  15145. 8006178: 6823 ldr r3, [r4, #0]
  15146. 800617a: 07d9 lsls r1, r3, #31
  15147. 800617c: d5d9 bpl.n 8006132 <_printf_float+0x236>
  15148. 800617e: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15149. 8006182: 4659 mov r1, fp
  15150. 8006184: 4628 mov r0, r5
  15151. 8006186: 47b0 blx r6
  15152. 8006188: 3001 adds r0, #1
  15153. 800618a: f43f af0e beq.w 8005faa <_printf_float+0xae>
  15154. 800618e: f04f 0800 mov.w r8, #0
  15155. 8006192: f104 091a add.w r9, r4, #26
  15156. 8006196: 9b0d ldr r3, [sp, #52] ; 0x34
  15157. 8006198: 425b negs r3, r3
  15158. 800619a: 4543 cmp r3, r8
  15159. 800619c: dc01 bgt.n 80061a2 <_printf_float+0x2a6>
  15160. 800619e: 9b0e ldr r3, [sp, #56] ; 0x38
  15161. 80061a0: e797 b.n 80060d2 <_printf_float+0x1d6>
  15162. 80061a2: 2301 movs r3, #1
  15163. 80061a4: 464a mov r2, r9
  15164. 80061a6: 4659 mov r1, fp
  15165. 80061a8: 4628 mov r0, r5
  15166. 80061aa: 47b0 blx r6
  15167. 80061ac: 3001 adds r0, #1
  15168. 80061ae: f43f aefc beq.w 8005faa <_printf_float+0xae>
  15169. 80061b2: f108 0801 add.w r8, r8, #1
  15170. 80061b6: e7ee b.n 8006196 <_printf_float+0x29a>
  15171. 80061b8: 9a0e ldr r2, [sp, #56] ; 0x38
  15172. 80061ba: 6da3 ldr r3, [r4, #88] ; 0x58
  15173. 80061bc: 429a cmp r2, r3
  15174. 80061be: bfa8 it ge
  15175. 80061c0: 461a movge r2, r3
  15176. 80061c2: 2a00 cmp r2, #0
  15177. 80061c4: 4690 mov r8, r2
  15178. 80061c6: dd07 ble.n 80061d8 <_printf_float+0x2dc>
  15179. 80061c8: 4613 mov r3, r2
  15180. 80061ca: 4659 mov r1, fp
  15181. 80061cc: 463a mov r2, r7
  15182. 80061ce: 4628 mov r0, r5
  15183. 80061d0: 47b0 blx r6
  15184. 80061d2: 3001 adds r0, #1
  15185. 80061d4: f43f aee9 beq.w 8005faa <_printf_float+0xae>
  15186. 80061d8: f104 031a add.w r3, r4, #26
  15187. 80061dc: f04f 0a00 mov.w sl, #0
  15188. 80061e0: ea28 78e8 bic.w r8, r8, r8, asr #31
  15189. 80061e4: 930b str r3, [sp, #44] ; 0x2c
  15190. 80061e6: e015 b.n 8006214 <_printf_float+0x318>
  15191. 80061e8: 7fefffff .word 0x7fefffff
  15192. 80061ec: 080089b0 .word 0x080089b0
  15193. 80061f0: 080089ac .word 0x080089ac
  15194. 80061f4: 080089b8 .word 0x080089b8
  15195. 80061f8: 080089b4 .word 0x080089b4
  15196. 80061fc: 080089bc .word 0x080089bc
  15197. 8006200: 2301 movs r3, #1
  15198. 8006202: 9a0b ldr r2, [sp, #44] ; 0x2c
  15199. 8006204: 4659 mov r1, fp
  15200. 8006206: 4628 mov r0, r5
  15201. 8006208: 47b0 blx r6
  15202. 800620a: 3001 adds r0, #1
  15203. 800620c: f43f aecd beq.w 8005faa <_printf_float+0xae>
  15204. 8006210: f10a 0a01 add.w sl, sl, #1
  15205. 8006214: f8d4 9058 ldr.w r9, [r4, #88] ; 0x58
  15206. 8006218: eba9 0308 sub.w r3, r9, r8
  15207. 800621c: 4553 cmp r3, sl
  15208. 800621e: dcef bgt.n 8006200 <_printf_float+0x304>
  15209. 8006220: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  15210. 8006224: 429a cmp r2, r3
  15211. 8006226: 444f add r7, r9
  15212. 8006228: db14 blt.n 8006254 <_printf_float+0x358>
  15213. 800622a: 6823 ldr r3, [r4, #0]
  15214. 800622c: 07da lsls r2, r3, #31
  15215. 800622e: d411 bmi.n 8006254 <_printf_float+0x358>
  15216. 8006230: 9b0e ldr r3, [sp, #56] ; 0x38
  15217. 8006232: 990d ldr r1, [sp, #52] ; 0x34
  15218. 8006234: eba3 0209 sub.w r2, r3, r9
  15219. 8006238: eba3 0901 sub.w r9, r3, r1
  15220. 800623c: 4591 cmp r9, r2
  15221. 800623e: bfa8 it ge
  15222. 8006240: 4691 movge r9, r2
  15223. 8006242: f1b9 0f00 cmp.w r9, #0
  15224. 8006246: dc0d bgt.n 8006264 <_printf_float+0x368>
  15225. 8006248: 2700 movs r7, #0
  15226. 800624a: ea29 79e9 bic.w r9, r9, r9, asr #31
  15227. 800624e: f104 081a add.w r8, r4, #26
  15228. 8006252: e018 b.n 8006286 <_printf_float+0x38a>
  15229. 8006254: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15230. 8006258: 4659 mov r1, fp
  15231. 800625a: 4628 mov r0, r5
  15232. 800625c: 47b0 blx r6
  15233. 800625e: 3001 adds r0, #1
  15234. 8006260: d1e6 bne.n 8006230 <_printf_float+0x334>
  15235. 8006262: e6a2 b.n 8005faa <_printf_float+0xae>
  15236. 8006264: 464b mov r3, r9
  15237. 8006266: 463a mov r2, r7
  15238. 8006268: 4659 mov r1, fp
  15239. 800626a: 4628 mov r0, r5
  15240. 800626c: 47b0 blx r6
  15241. 800626e: 3001 adds r0, #1
  15242. 8006270: d1ea bne.n 8006248 <_printf_float+0x34c>
  15243. 8006272: e69a b.n 8005faa <_printf_float+0xae>
  15244. 8006274: 2301 movs r3, #1
  15245. 8006276: 4642 mov r2, r8
  15246. 8006278: 4659 mov r1, fp
  15247. 800627a: 4628 mov r0, r5
  15248. 800627c: 47b0 blx r6
  15249. 800627e: 3001 adds r0, #1
  15250. 8006280: f43f ae93 beq.w 8005faa <_printf_float+0xae>
  15251. 8006284: 3701 adds r7, #1
  15252. 8006286: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  15253. 800628a: 1a9b subs r3, r3, r2
  15254. 800628c: eba3 0309 sub.w r3, r3, r9
  15255. 8006290: 42bb cmp r3, r7
  15256. 8006292: dcef bgt.n 8006274 <_printf_float+0x378>
  15257. 8006294: e74d b.n 8006132 <_printf_float+0x236>
  15258. 8006296: 9a0e ldr r2, [sp, #56] ; 0x38
  15259. 8006298: 2a01 cmp r2, #1
  15260. 800629a: dc01 bgt.n 80062a0 <_printf_float+0x3a4>
  15261. 800629c: 07db lsls r3, r3, #31
  15262. 800629e: d538 bpl.n 8006312 <_printf_float+0x416>
  15263. 80062a0: 2301 movs r3, #1
  15264. 80062a2: 463a mov r2, r7
  15265. 80062a4: 4659 mov r1, fp
  15266. 80062a6: 4628 mov r0, r5
  15267. 80062a8: 47b0 blx r6
  15268. 80062aa: 3001 adds r0, #1
  15269. 80062ac: f43f ae7d beq.w 8005faa <_printf_float+0xae>
  15270. 80062b0: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  15271. 80062b4: 4659 mov r1, fp
  15272. 80062b6: 4628 mov r0, r5
  15273. 80062b8: 47b0 blx r6
  15274. 80062ba: 3001 adds r0, #1
  15275. 80062bc: f107 0701 add.w r7, r7, #1
  15276. 80062c0: f43f ae73 beq.w 8005faa <_printf_float+0xae>
  15277. 80062c4: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  15278. 80062c8: 9b0e ldr r3, [sp, #56] ; 0x38
  15279. 80062ca: 2200 movs r2, #0
  15280. 80062cc: f103 38ff add.w r8, r3, #4294967295
  15281. 80062d0: 2300 movs r3, #0
  15282. 80062d2: f7fa fbc9 bl 8000a68 <__aeabi_dcmpeq>
  15283. 80062d6: b9c0 cbnz r0, 800630a <_printf_float+0x40e>
  15284. 80062d8: 4643 mov r3, r8
  15285. 80062da: 463a mov r2, r7
  15286. 80062dc: 4659 mov r1, fp
  15287. 80062de: 4628 mov r0, r5
  15288. 80062e0: 47b0 blx r6
  15289. 80062e2: 3001 adds r0, #1
  15290. 80062e4: d10d bne.n 8006302 <_printf_float+0x406>
  15291. 80062e6: e660 b.n 8005faa <_printf_float+0xae>
  15292. 80062e8: 2301 movs r3, #1
  15293. 80062ea: 4642 mov r2, r8
  15294. 80062ec: 4659 mov r1, fp
  15295. 80062ee: 4628 mov r0, r5
  15296. 80062f0: 47b0 blx r6
  15297. 80062f2: 3001 adds r0, #1
  15298. 80062f4: f43f ae59 beq.w 8005faa <_printf_float+0xae>
  15299. 80062f8: 3701 adds r7, #1
  15300. 80062fa: 9b0e ldr r3, [sp, #56] ; 0x38
  15301. 80062fc: 3b01 subs r3, #1
  15302. 80062fe: 42bb cmp r3, r7
  15303. 8006300: dcf2 bgt.n 80062e8 <_printf_float+0x3ec>
  15304. 8006302: 464b mov r3, r9
  15305. 8006304: f104 0250 add.w r2, r4, #80 ; 0x50
  15306. 8006308: e6e4 b.n 80060d4 <_printf_float+0x1d8>
  15307. 800630a: 2700 movs r7, #0
  15308. 800630c: f104 081a add.w r8, r4, #26
  15309. 8006310: e7f3 b.n 80062fa <_printf_float+0x3fe>
  15310. 8006312: 2301 movs r3, #1
  15311. 8006314: e7e1 b.n 80062da <_printf_float+0x3de>
  15312. 8006316: 2301 movs r3, #1
  15313. 8006318: 4642 mov r2, r8
  15314. 800631a: 4659 mov r1, fp
  15315. 800631c: 4628 mov r0, r5
  15316. 800631e: 47b0 blx r6
  15317. 8006320: 3001 adds r0, #1
  15318. 8006322: f43f ae42 beq.w 8005faa <_printf_float+0xae>
  15319. 8006326: 3701 adds r7, #1
  15320. 8006328: 68e3 ldr r3, [r4, #12]
  15321. 800632a: 9a0f ldr r2, [sp, #60] ; 0x3c
  15322. 800632c: 1a9b subs r3, r3, r2
  15323. 800632e: 42bb cmp r3, r7
  15324. 8006330: dcf1 bgt.n 8006316 <_printf_float+0x41a>
  15325. 8006332: e702 b.n 800613a <_printf_float+0x23e>
  15326. 8006334: 2700 movs r7, #0
  15327. 8006336: f104 0819 add.w r8, r4, #25
  15328. 800633a: e7f5 b.n 8006328 <_printf_float+0x42c>
  15329. 800633c: 2b00 cmp r3, #0
  15330. 800633e: f43f ae94 beq.w 800606a <_printf_float+0x16e>
  15331. 8006342: f04f 0c00 mov.w ip, #0
  15332. 8006346: e9cd 1c05 strd r1, ip, [sp, #20]
  15333. 800634a: f10d 0133 add.w r1, sp, #51 ; 0x33
  15334. 800634e: 6022 str r2, [r4, #0]
  15335. 8006350: e9cd 0803 strd r0, r8, [sp, #12]
  15336. 8006354: e9cd 2101 strd r2, r1, [sp, #4]
  15337. 8006358: 9300 str r3, [sp, #0]
  15338. 800635a: 463a mov r2, r7
  15339. 800635c: 464b mov r3, r9
  15340. 800635e: 4628 mov r0, r5
  15341. 8006360: f7ff fd3a bl 8005dd8 <__cvt>
  15342. 8006364: 4607 mov r7, r0
  15343. 8006366: e64f b.n 8006008 <_printf_float+0x10c>
  15344. 08006368 <_printf_common>:
  15345. 8006368: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  15346. 800636c: 4691 mov r9, r2
  15347. 800636e: 461f mov r7, r3
  15348. 8006370: 688a ldr r2, [r1, #8]
  15349. 8006372: 690b ldr r3, [r1, #16]
  15350. 8006374: 4606 mov r6, r0
  15351. 8006376: 4293 cmp r3, r2
  15352. 8006378: bfb8 it lt
  15353. 800637a: 4613 movlt r3, r2
  15354. 800637c: f8c9 3000 str.w r3, [r9]
  15355. 8006380: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  15356. 8006384: 460c mov r4, r1
  15357. 8006386: f8dd 8020 ldr.w r8, [sp, #32]
  15358. 800638a: b112 cbz r2, 8006392 <_printf_common+0x2a>
  15359. 800638c: 3301 adds r3, #1
  15360. 800638e: f8c9 3000 str.w r3, [r9]
  15361. 8006392: 6823 ldr r3, [r4, #0]
  15362. 8006394: 0699 lsls r1, r3, #26
  15363. 8006396: bf42 ittt mi
  15364. 8006398: f8d9 3000 ldrmi.w r3, [r9]
  15365. 800639c: 3302 addmi r3, #2
  15366. 800639e: f8c9 3000 strmi.w r3, [r9]
  15367. 80063a2: 6825 ldr r5, [r4, #0]
  15368. 80063a4: f015 0506 ands.w r5, r5, #6
  15369. 80063a8: d107 bne.n 80063ba <_printf_common+0x52>
  15370. 80063aa: f104 0a19 add.w sl, r4, #25
  15371. 80063ae: 68e3 ldr r3, [r4, #12]
  15372. 80063b0: f8d9 2000 ldr.w r2, [r9]
  15373. 80063b4: 1a9b subs r3, r3, r2
  15374. 80063b6: 42ab cmp r3, r5
  15375. 80063b8: dc29 bgt.n 800640e <_printf_common+0xa6>
  15376. 80063ba: f894 3043 ldrb.w r3, [r4, #67] ; 0x43
  15377. 80063be: 6822 ldr r2, [r4, #0]
  15378. 80063c0: 3300 adds r3, #0
  15379. 80063c2: bf18 it ne
  15380. 80063c4: 2301 movne r3, #1
  15381. 80063c6: 0692 lsls r2, r2, #26
  15382. 80063c8: d42e bmi.n 8006428 <_printf_common+0xc0>
  15383. 80063ca: f104 0243 add.w r2, r4, #67 ; 0x43
  15384. 80063ce: 4639 mov r1, r7
  15385. 80063d0: 4630 mov r0, r6
  15386. 80063d2: 47c0 blx r8
  15387. 80063d4: 3001 adds r0, #1
  15388. 80063d6: d021 beq.n 800641c <_printf_common+0xb4>
  15389. 80063d8: 6823 ldr r3, [r4, #0]
  15390. 80063da: 68e5 ldr r5, [r4, #12]
  15391. 80063dc: f003 0306 and.w r3, r3, #6
  15392. 80063e0: 2b04 cmp r3, #4
  15393. 80063e2: bf18 it ne
  15394. 80063e4: 2500 movne r5, #0
  15395. 80063e6: f8d9 2000 ldr.w r2, [r9]
  15396. 80063ea: f04f 0900 mov.w r9, #0
  15397. 80063ee: bf08 it eq
  15398. 80063f0: 1aad subeq r5, r5, r2
  15399. 80063f2: 68a3 ldr r3, [r4, #8]
  15400. 80063f4: 6922 ldr r2, [r4, #16]
  15401. 80063f6: bf08 it eq
  15402. 80063f8: ea25 75e5 biceq.w r5, r5, r5, asr #31
  15403. 80063fc: 4293 cmp r3, r2
  15404. 80063fe: bfc4 itt gt
  15405. 8006400: 1a9b subgt r3, r3, r2
  15406. 8006402: 18ed addgt r5, r5, r3
  15407. 8006404: 341a adds r4, #26
  15408. 8006406: 454d cmp r5, r9
  15409. 8006408: d11a bne.n 8006440 <_printf_common+0xd8>
  15410. 800640a: 2000 movs r0, #0
  15411. 800640c: e008 b.n 8006420 <_printf_common+0xb8>
  15412. 800640e: 2301 movs r3, #1
  15413. 8006410: 4652 mov r2, sl
  15414. 8006412: 4639 mov r1, r7
  15415. 8006414: 4630 mov r0, r6
  15416. 8006416: 47c0 blx r8
  15417. 8006418: 3001 adds r0, #1
  15418. 800641a: d103 bne.n 8006424 <_printf_common+0xbc>
  15419. 800641c: f04f 30ff mov.w r0, #4294967295
  15420. 8006420: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  15421. 8006424: 3501 adds r5, #1
  15422. 8006426: e7c2 b.n 80063ae <_printf_common+0x46>
  15423. 8006428: 2030 movs r0, #48 ; 0x30
  15424. 800642a: 18e1 adds r1, r4, r3
  15425. 800642c: f881 0043 strb.w r0, [r1, #67] ; 0x43
  15426. 8006430: 1c5a adds r2, r3, #1
  15427. 8006432: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  15428. 8006436: 4422 add r2, r4
  15429. 8006438: 3302 adds r3, #2
  15430. 800643a: f882 1043 strb.w r1, [r2, #67] ; 0x43
  15431. 800643e: e7c4 b.n 80063ca <_printf_common+0x62>
  15432. 8006440: 2301 movs r3, #1
  15433. 8006442: 4622 mov r2, r4
  15434. 8006444: 4639 mov r1, r7
  15435. 8006446: 4630 mov r0, r6
  15436. 8006448: 47c0 blx r8
  15437. 800644a: 3001 adds r0, #1
  15438. 800644c: d0e6 beq.n 800641c <_printf_common+0xb4>
  15439. 800644e: f109 0901 add.w r9, r9, #1
  15440. 8006452: e7d8 b.n 8006406 <_printf_common+0x9e>
  15441. 08006454 <_printf_i>:
  15442. 8006454: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  15443. 8006458: f101 0c43 add.w ip, r1, #67 ; 0x43
  15444. 800645c: 460c mov r4, r1
  15445. 800645e: 7e09 ldrb r1, [r1, #24]
  15446. 8006460: b085 sub sp, #20
  15447. 8006462: 296e cmp r1, #110 ; 0x6e
  15448. 8006464: 4617 mov r7, r2
  15449. 8006466: 4606 mov r6, r0
  15450. 8006468: 4698 mov r8, r3
  15451. 800646a: 9a0c ldr r2, [sp, #48] ; 0x30
  15452. 800646c: f000 80b3 beq.w 80065d6 <_printf_i+0x182>
  15453. 8006470: d822 bhi.n 80064b8 <_printf_i+0x64>
  15454. 8006472: 2963 cmp r1, #99 ; 0x63
  15455. 8006474: d036 beq.n 80064e4 <_printf_i+0x90>
  15456. 8006476: d80a bhi.n 800648e <_printf_i+0x3a>
  15457. 8006478: 2900 cmp r1, #0
  15458. 800647a: f000 80b9 beq.w 80065f0 <_printf_i+0x19c>
  15459. 800647e: 2958 cmp r1, #88 ; 0x58
  15460. 8006480: f000 8083 beq.w 800658a <_printf_i+0x136>
  15461. 8006484: f104 0542 add.w r5, r4, #66 ; 0x42
  15462. 8006488: f884 1042 strb.w r1, [r4, #66] ; 0x42
  15463. 800648c: e032 b.n 80064f4 <_printf_i+0xa0>
  15464. 800648e: 2964 cmp r1, #100 ; 0x64
  15465. 8006490: d001 beq.n 8006496 <_printf_i+0x42>
  15466. 8006492: 2969 cmp r1, #105 ; 0x69
  15467. 8006494: d1f6 bne.n 8006484 <_printf_i+0x30>
  15468. 8006496: 6820 ldr r0, [r4, #0]
  15469. 8006498: 6813 ldr r3, [r2, #0]
  15470. 800649a: 0605 lsls r5, r0, #24
  15471. 800649c: f103 0104 add.w r1, r3, #4
  15472. 80064a0: d52a bpl.n 80064f8 <_printf_i+0xa4>
  15473. 80064a2: 681b ldr r3, [r3, #0]
  15474. 80064a4: 6011 str r1, [r2, #0]
  15475. 80064a6: 2b00 cmp r3, #0
  15476. 80064a8: da03 bge.n 80064b2 <_printf_i+0x5e>
  15477. 80064aa: 222d movs r2, #45 ; 0x2d
  15478. 80064ac: 425b negs r3, r3
  15479. 80064ae: f884 2043 strb.w r2, [r4, #67] ; 0x43
  15480. 80064b2: 486f ldr r0, [pc, #444] ; (8006670 <_printf_i+0x21c>)
  15481. 80064b4: 220a movs r2, #10
  15482. 80064b6: e039 b.n 800652c <_printf_i+0xd8>
  15483. 80064b8: 2973 cmp r1, #115 ; 0x73
  15484. 80064ba: f000 809d beq.w 80065f8 <_printf_i+0x1a4>
  15485. 80064be: d808 bhi.n 80064d2 <_printf_i+0x7e>
  15486. 80064c0: 296f cmp r1, #111 ; 0x6f
  15487. 80064c2: d020 beq.n 8006506 <_printf_i+0xb2>
  15488. 80064c4: 2970 cmp r1, #112 ; 0x70
  15489. 80064c6: d1dd bne.n 8006484 <_printf_i+0x30>
  15490. 80064c8: 6823 ldr r3, [r4, #0]
  15491. 80064ca: f043 0320 orr.w r3, r3, #32
  15492. 80064ce: 6023 str r3, [r4, #0]
  15493. 80064d0: e003 b.n 80064da <_printf_i+0x86>
  15494. 80064d2: 2975 cmp r1, #117 ; 0x75
  15495. 80064d4: d017 beq.n 8006506 <_printf_i+0xb2>
  15496. 80064d6: 2978 cmp r1, #120 ; 0x78
  15497. 80064d8: d1d4 bne.n 8006484 <_printf_i+0x30>
  15498. 80064da: 2378 movs r3, #120 ; 0x78
  15499. 80064dc: 4865 ldr r0, [pc, #404] ; (8006674 <_printf_i+0x220>)
  15500. 80064de: f884 3045 strb.w r3, [r4, #69] ; 0x45
  15501. 80064e2: e055 b.n 8006590 <_printf_i+0x13c>
  15502. 80064e4: 6813 ldr r3, [r2, #0]
  15503. 80064e6: f104 0542 add.w r5, r4, #66 ; 0x42
  15504. 80064ea: 1d19 adds r1, r3, #4
  15505. 80064ec: 681b ldr r3, [r3, #0]
  15506. 80064ee: 6011 str r1, [r2, #0]
  15507. 80064f0: f884 3042 strb.w r3, [r4, #66] ; 0x42
  15508. 80064f4: 2301 movs r3, #1
  15509. 80064f6: e08c b.n 8006612 <_printf_i+0x1be>
  15510. 80064f8: 681b ldr r3, [r3, #0]
  15511. 80064fa: f010 0f40 tst.w r0, #64 ; 0x40
  15512. 80064fe: 6011 str r1, [r2, #0]
  15513. 8006500: bf18 it ne
  15514. 8006502: b21b sxthne r3, r3
  15515. 8006504: e7cf b.n 80064a6 <_printf_i+0x52>
  15516. 8006506: 6813 ldr r3, [r2, #0]
  15517. 8006508: 6825 ldr r5, [r4, #0]
  15518. 800650a: 1d18 adds r0, r3, #4
  15519. 800650c: 6010 str r0, [r2, #0]
  15520. 800650e: 0628 lsls r0, r5, #24
  15521. 8006510: d501 bpl.n 8006516 <_printf_i+0xc2>
  15522. 8006512: 681b ldr r3, [r3, #0]
  15523. 8006514: e002 b.n 800651c <_printf_i+0xc8>
  15524. 8006516: 0668 lsls r0, r5, #25
  15525. 8006518: d5fb bpl.n 8006512 <_printf_i+0xbe>
  15526. 800651a: 881b ldrh r3, [r3, #0]
  15527. 800651c: 296f cmp r1, #111 ; 0x6f
  15528. 800651e: bf14 ite ne
  15529. 8006520: 220a movne r2, #10
  15530. 8006522: 2208 moveq r2, #8
  15531. 8006524: 4852 ldr r0, [pc, #328] ; (8006670 <_printf_i+0x21c>)
  15532. 8006526: 2100 movs r1, #0
  15533. 8006528: f884 1043 strb.w r1, [r4, #67] ; 0x43
  15534. 800652c: 6865 ldr r5, [r4, #4]
  15535. 800652e: 2d00 cmp r5, #0
  15536. 8006530: 60a5 str r5, [r4, #8]
  15537. 8006532: f2c0 8095 blt.w 8006660 <_printf_i+0x20c>
  15538. 8006536: 6821 ldr r1, [r4, #0]
  15539. 8006538: f021 0104 bic.w r1, r1, #4
  15540. 800653c: 6021 str r1, [r4, #0]
  15541. 800653e: 2b00 cmp r3, #0
  15542. 8006540: d13d bne.n 80065be <_printf_i+0x16a>
  15543. 8006542: 2d00 cmp r5, #0
  15544. 8006544: f040 808e bne.w 8006664 <_printf_i+0x210>
  15545. 8006548: 4665 mov r5, ip
  15546. 800654a: 2a08 cmp r2, #8
  15547. 800654c: d10b bne.n 8006566 <_printf_i+0x112>
  15548. 800654e: 6823 ldr r3, [r4, #0]
  15549. 8006550: 07db lsls r3, r3, #31
  15550. 8006552: d508 bpl.n 8006566 <_printf_i+0x112>
  15551. 8006554: 6923 ldr r3, [r4, #16]
  15552. 8006556: 6862 ldr r2, [r4, #4]
  15553. 8006558: 429a cmp r2, r3
  15554. 800655a: bfde ittt le
  15555. 800655c: 2330 movle r3, #48 ; 0x30
  15556. 800655e: f805 3c01 strble.w r3, [r5, #-1]
  15557. 8006562: f105 35ff addle.w r5, r5, #4294967295
  15558. 8006566: ebac 0305 sub.w r3, ip, r5
  15559. 800656a: 6123 str r3, [r4, #16]
  15560. 800656c: f8cd 8000 str.w r8, [sp]
  15561. 8006570: 463b mov r3, r7
  15562. 8006572: aa03 add r2, sp, #12
  15563. 8006574: 4621 mov r1, r4
  15564. 8006576: 4630 mov r0, r6
  15565. 8006578: f7ff fef6 bl 8006368 <_printf_common>
  15566. 800657c: 3001 adds r0, #1
  15567. 800657e: d14d bne.n 800661c <_printf_i+0x1c8>
  15568. 8006580: f04f 30ff mov.w r0, #4294967295
  15569. 8006584: b005 add sp, #20
  15570. 8006586: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  15571. 800658a: 4839 ldr r0, [pc, #228] ; (8006670 <_printf_i+0x21c>)
  15572. 800658c: f884 1045 strb.w r1, [r4, #69] ; 0x45
  15573. 8006590: 6813 ldr r3, [r2, #0]
  15574. 8006592: 6821 ldr r1, [r4, #0]
  15575. 8006594: 1d1d adds r5, r3, #4
  15576. 8006596: 681b ldr r3, [r3, #0]
  15577. 8006598: 6015 str r5, [r2, #0]
  15578. 800659a: 060a lsls r2, r1, #24
  15579. 800659c: d50b bpl.n 80065b6 <_printf_i+0x162>
  15580. 800659e: 07ca lsls r2, r1, #31
  15581. 80065a0: bf44 itt mi
  15582. 80065a2: f041 0120 orrmi.w r1, r1, #32
  15583. 80065a6: 6021 strmi r1, [r4, #0]
  15584. 80065a8: b91b cbnz r3, 80065b2 <_printf_i+0x15e>
  15585. 80065aa: 6822 ldr r2, [r4, #0]
  15586. 80065ac: f022 0220 bic.w r2, r2, #32
  15587. 80065b0: 6022 str r2, [r4, #0]
  15588. 80065b2: 2210 movs r2, #16
  15589. 80065b4: e7b7 b.n 8006526 <_printf_i+0xd2>
  15590. 80065b6: 064d lsls r5, r1, #25
  15591. 80065b8: bf48 it mi
  15592. 80065ba: b29b uxthmi r3, r3
  15593. 80065bc: e7ef b.n 800659e <_printf_i+0x14a>
  15594. 80065be: 4665 mov r5, ip
  15595. 80065c0: fbb3 f1f2 udiv r1, r3, r2
  15596. 80065c4: fb02 3311 mls r3, r2, r1, r3
  15597. 80065c8: 5cc3 ldrb r3, [r0, r3]
  15598. 80065ca: f805 3d01 strb.w r3, [r5, #-1]!
  15599. 80065ce: 460b mov r3, r1
  15600. 80065d0: 2900 cmp r1, #0
  15601. 80065d2: d1f5 bne.n 80065c0 <_printf_i+0x16c>
  15602. 80065d4: e7b9 b.n 800654a <_printf_i+0xf6>
  15603. 80065d6: 6813 ldr r3, [r2, #0]
  15604. 80065d8: 6825 ldr r5, [r4, #0]
  15605. 80065da: 1d18 adds r0, r3, #4
  15606. 80065dc: 6961 ldr r1, [r4, #20]
  15607. 80065de: 6010 str r0, [r2, #0]
  15608. 80065e0: 0628 lsls r0, r5, #24
  15609. 80065e2: 681b ldr r3, [r3, #0]
  15610. 80065e4: d501 bpl.n 80065ea <_printf_i+0x196>
  15611. 80065e6: 6019 str r1, [r3, #0]
  15612. 80065e8: e002 b.n 80065f0 <_printf_i+0x19c>
  15613. 80065ea: 066a lsls r2, r5, #25
  15614. 80065ec: d5fb bpl.n 80065e6 <_printf_i+0x192>
  15615. 80065ee: 8019 strh r1, [r3, #0]
  15616. 80065f0: 2300 movs r3, #0
  15617. 80065f2: 4665 mov r5, ip
  15618. 80065f4: 6123 str r3, [r4, #16]
  15619. 80065f6: e7b9 b.n 800656c <_printf_i+0x118>
  15620. 80065f8: 6813 ldr r3, [r2, #0]
  15621. 80065fa: 1d19 adds r1, r3, #4
  15622. 80065fc: 6011 str r1, [r2, #0]
  15623. 80065fe: 681d ldr r5, [r3, #0]
  15624. 8006600: 6862 ldr r2, [r4, #4]
  15625. 8006602: 2100 movs r1, #0
  15626. 8006604: 4628 mov r0, r5
  15627. 8006606: f001 fa5f bl 8007ac8 <memchr>
  15628. 800660a: b108 cbz r0, 8006610 <_printf_i+0x1bc>
  15629. 800660c: 1b40 subs r0, r0, r5
  15630. 800660e: 6060 str r0, [r4, #4]
  15631. 8006610: 6863 ldr r3, [r4, #4]
  15632. 8006612: 6123 str r3, [r4, #16]
  15633. 8006614: 2300 movs r3, #0
  15634. 8006616: f884 3043 strb.w r3, [r4, #67] ; 0x43
  15635. 800661a: e7a7 b.n 800656c <_printf_i+0x118>
  15636. 800661c: 6923 ldr r3, [r4, #16]
  15637. 800661e: 462a mov r2, r5
  15638. 8006620: 4639 mov r1, r7
  15639. 8006622: 4630 mov r0, r6
  15640. 8006624: 47c0 blx r8
  15641. 8006626: 3001 adds r0, #1
  15642. 8006628: d0aa beq.n 8006580 <_printf_i+0x12c>
  15643. 800662a: 6823 ldr r3, [r4, #0]
  15644. 800662c: 079b lsls r3, r3, #30
  15645. 800662e: d413 bmi.n 8006658 <_printf_i+0x204>
  15646. 8006630: 68e0 ldr r0, [r4, #12]
  15647. 8006632: 9b03 ldr r3, [sp, #12]
  15648. 8006634: 4298 cmp r0, r3
  15649. 8006636: bfb8 it lt
  15650. 8006638: 4618 movlt r0, r3
  15651. 800663a: e7a3 b.n 8006584 <_printf_i+0x130>
  15652. 800663c: 2301 movs r3, #1
  15653. 800663e: 464a mov r2, r9
  15654. 8006640: 4639 mov r1, r7
  15655. 8006642: 4630 mov r0, r6
  15656. 8006644: 47c0 blx r8
  15657. 8006646: 3001 adds r0, #1
  15658. 8006648: d09a beq.n 8006580 <_printf_i+0x12c>
  15659. 800664a: 3501 adds r5, #1
  15660. 800664c: 68e3 ldr r3, [r4, #12]
  15661. 800664e: 9a03 ldr r2, [sp, #12]
  15662. 8006650: 1a9b subs r3, r3, r2
  15663. 8006652: 42ab cmp r3, r5
  15664. 8006654: dcf2 bgt.n 800663c <_printf_i+0x1e8>
  15665. 8006656: e7eb b.n 8006630 <_printf_i+0x1dc>
  15666. 8006658: 2500 movs r5, #0
  15667. 800665a: f104 0919 add.w r9, r4, #25
  15668. 800665e: e7f5 b.n 800664c <_printf_i+0x1f8>
  15669. 8006660: 2b00 cmp r3, #0
  15670. 8006662: d1ac bne.n 80065be <_printf_i+0x16a>
  15671. 8006664: 7803 ldrb r3, [r0, #0]
  15672. 8006666: f104 0542 add.w r5, r4, #66 ; 0x42
  15673. 800666a: f884 3042 strb.w r3, [r4, #66] ; 0x42
  15674. 800666e: e76c b.n 800654a <_printf_i+0xf6>
  15675. 8006670: 080089be .word 0x080089be
  15676. 8006674: 080089cf .word 0x080089cf
  15677. 08006678 <iprintf>:
  15678. 8006678: b40f push {r0, r1, r2, r3}
  15679. 800667a: 4b0a ldr r3, [pc, #40] ; (80066a4 <iprintf+0x2c>)
  15680. 800667c: b513 push {r0, r1, r4, lr}
  15681. 800667e: 681c ldr r4, [r3, #0]
  15682. 8006680: b124 cbz r4, 800668c <iprintf+0x14>
  15683. 8006682: 69a3 ldr r3, [r4, #24]
  15684. 8006684: b913 cbnz r3, 800668c <iprintf+0x14>
  15685. 8006686: 4620 mov r0, r4
  15686. 8006688: f001 f91a bl 80078c0 <__sinit>
  15687. 800668c: ab05 add r3, sp, #20
  15688. 800668e: 9a04 ldr r2, [sp, #16]
  15689. 8006690: 68a1 ldr r1, [r4, #8]
  15690. 8006692: 4620 mov r0, r4
  15691. 8006694: 9301 str r3, [sp, #4]
  15692. 8006696: f001 fde9 bl 800826c <_vfiprintf_r>
  15693. 800669a: b002 add sp, #8
  15694. 800669c: e8bd 4010 ldmia.w sp!, {r4, lr}
  15695. 80066a0: b004 add sp, #16
  15696. 80066a2: 4770 bx lr
  15697. 80066a4: 2000000c .word 0x2000000c
  15698. 080066a8 <_puts_r>:
  15699. 80066a8: b570 push {r4, r5, r6, lr}
  15700. 80066aa: 460e mov r6, r1
  15701. 80066ac: 4605 mov r5, r0
  15702. 80066ae: b118 cbz r0, 80066b8 <_puts_r+0x10>
  15703. 80066b0: 6983 ldr r3, [r0, #24]
  15704. 80066b2: b90b cbnz r3, 80066b8 <_puts_r+0x10>
  15705. 80066b4: f001 f904 bl 80078c0 <__sinit>
  15706. 80066b8: 69ab ldr r3, [r5, #24]
  15707. 80066ba: 68ac ldr r4, [r5, #8]
  15708. 80066bc: b913 cbnz r3, 80066c4 <_puts_r+0x1c>
  15709. 80066be: 4628 mov r0, r5
  15710. 80066c0: f001 f8fe bl 80078c0 <__sinit>
  15711. 80066c4: 4b23 ldr r3, [pc, #140] ; (8006754 <_puts_r+0xac>)
  15712. 80066c6: 429c cmp r4, r3
  15713. 80066c8: d117 bne.n 80066fa <_puts_r+0x52>
  15714. 80066ca: 686c ldr r4, [r5, #4]
  15715. 80066cc: 89a3 ldrh r3, [r4, #12]
  15716. 80066ce: 071b lsls r3, r3, #28
  15717. 80066d0: d51d bpl.n 800670e <_puts_r+0x66>
  15718. 80066d2: 6923 ldr r3, [r4, #16]
  15719. 80066d4: b1db cbz r3, 800670e <_puts_r+0x66>
  15720. 80066d6: 3e01 subs r6, #1
  15721. 80066d8: 68a3 ldr r3, [r4, #8]
  15722. 80066da: f816 1f01 ldrb.w r1, [r6, #1]!
  15723. 80066de: 3b01 subs r3, #1
  15724. 80066e0: 60a3 str r3, [r4, #8]
  15725. 80066e2: b9e9 cbnz r1, 8006720 <_puts_r+0x78>
  15726. 80066e4: 2b00 cmp r3, #0
  15727. 80066e6: da2e bge.n 8006746 <_puts_r+0x9e>
  15728. 80066e8: 4622 mov r2, r4
  15729. 80066ea: 210a movs r1, #10
  15730. 80066ec: 4628 mov r0, r5
  15731. 80066ee: f000 f8f5 bl 80068dc <__swbuf_r>
  15732. 80066f2: 3001 adds r0, #1
  15733. 80066f4: d011 beq.n 800671a <_puts_r+0x72>
  15734. 80066f6: 200a movs r0, #10
  15735. 80066f8: e011 b.n 800671e <_puts_r+0x76>
  15736. 80066fa: 4b17 ldr r3, [pc, #92] ; (8006758 <_puts_r+0xb0>)
  15737. 80066fc: 429c cmp r4, r3
  15738. 80066fe: d101 bne.n 8006704 <_puts_r+0x5c>
  15739. 8006700: 68ac ldr r4, [r5, #8]
  15740. 8006702: e7e3 b.n 80066cc <_puts_r+0x24>
  15741. 8006704: 4b15 ldr r3, [pc, #84] ; (800675c <_puts_r+0xb4>)
  15742. 8006706: 429c cmp r4, r3
  15743. 8006708: bf08 it eq
  15744. 800670a: 68ec ldreq r4, [r5, #12]
  15745. 800670c: e7de b.n 80066cc <_puts_r+0x24>
  15746. 800670e: 4621 mov r1, r4
  15747. 8006710: 4628 mov r0, r5
  15748. 8006712: f000 f935 bl 8006980 <__swsetup_r>
  15749. 8006716: 2800 cmp r0, #0
  15750. 8006718: d0dd beq.n 80066d6 <_puts_r+0x2e>
  15751. 800671a: f04f 30ff mov.w r0, #4294967295
  15752. 800671e: bd70 pop {r4, r5, r6, pc}
  15753. 8006720: 2b00 cmp r3, #0
  15754. 8006722: da04 bge.n 800672e <_puts_r+0x86>
  15755. 8006724: 69a2 ldr r2, [r4, #24]
  15756. 8006726: 429a cmp r2, r3
  15757. 8006728: dc06 bgt.n 8006738 <_puts_r+0x90>
  15758. 800672a: 290a cmp r1, #10
  15759. 800672c: d004 beq.n 8006738 <_puts_r+0x90>
  15760. 800672e: 6823 ldr r3, [r4, #0]
  15761. 8006730: 1c5a adds r2, r3, #1
  15762. 8006732: 6022 str r2, [r4, #0]
  15763. 8006734: 7019 strb r1, [r3, #0]
  15764. 8006736: e7cf b.n 80066d8 <_puts_r+0x30>
  15765. 8006738: 4622 mov r2, r4
  15766. 800673a: 4628 mov r0, r5
  15767. 800673c: f000 f8ce bl 80068dc <__swbuf_r>
  15768. 8006740: 3001 adds r0, #1
  15769. 8006742: d1c9 bne.n 80066d8 <_puts_r+0x30>
  15770. 8006744: e7e9 b.n 800671a <_puts_r+0x72>
  15771. 8006746: 200a movs r0, #10
  15772. 8006748: 6823 ldr r3, [r4, #0]
  15773. 800674a: 1c5a adds r2, r3, #1
  15774. 800674c: 6022 str r2, [r4, #0]
  15775. 800674e: 7018 strb r0, [r3, #0]
  15776. 8006750: e7e5 b.n 800671e <_puts_r+0x76>
  15777. 8006752: bf00 nop
  15778. 8006754: 08008a10 .word 0x08008a10
  15779. 8006758: 08008a30 .word 0x08008a30
  15780. 800675c: 080089f0 .word 0x080089f0
  15781. 08006760 <puts>:
  15782. 8006760: 4b02 ldr r3, [pc, #8] ; (800676c <puts+0xc>)
  15783. 8006762: 4601 mov r1, r0
  15784. 8006764: 6818 ldr r0, [r3, #0]
  15785. 8006766: f7ff bf9f b.w 80066a8 <_puts_r>
  15786. 800676a: bf00 nop
  15787. 800676c: 2000000c .word 0x2000000c
  15788. 08006770 <setbuf>:
  15789. 8006770: 2900 cmp r1, #0
  15790. 8006772: f44f 6380 mov.w r3, #1024 ; 0x400
  15791. 8006776: bf0c ite eq
  15792. 8006778: 2202 moveq r2, #2
  15793. 800677a: 2200 movne r2, #0
  15794. 800677c: f000 b800 b.w 8006780 <setvbuf>
  15795. 08006780 <setvbuf>:
  15796. 8006780: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  15797. 8006784: 461d mov r5, r3
  15798. 8006786: 4b51 ldr r3, [pc, #324] ; (80068cc <setvbuf+0x14c>)
  15799. 8006788: 4604 mov r4, r0
  15800. 800678a: 681e ldr r6, [r3, #0]
  15801. 800678c: 460f mov r7, r1
  15802. 800678e: 4690 mov r8, r2
  15803. 8006790: b126 cbz r6, 800679c <setvbuf+0x1c>
  15804. 8006792: 69b3 ldr r3, [r6, #24]
  15805. 8006794: b913 cbnz r3, 800679c <setvbuf+0x1c>
  15806. 8006796: 4630 mov r0, r6
  15807. 8006798: f001 f892 bl 80078c0 <__sinit>
  15808. 800679c: 4b4c ldr r3, [pc, #304] ; (80068d0 <setvbuf+0x150>)
  15809. 800679e: 429c cmp r4, r3
  15810. 80067a0: d152 bne.n 8006848 <setvbuf+0xc8>
  15811. 80067a2: 6874 ldr r4, [r6, #4]
  15812. 80067a4: f1b8 0f02 cmp.w r8, #2
  15813. 80067a8: d006 beq.n 80067b8 <setvbuf+0x38>
  15814. 80067aa: f1b8 0f01 cmp.w r8, #1
  15815. 80067ae: f200 8089 bhi.w 80068c4 <setvbuf+0x144>
  15816. 80067b2: 2d00 cmp r5, #0
  15817. 80067b4: f2c0 8086 blt.w 80068c4 <setvbuf+0x144>
  15818. 80067b8: 4621 mov r1, r4
  15819. 80067ba: 4630 mov r0, r6
  15820. 80067bc: f001 f816 bl 80077ec <_fflush_r>
  15821. 80067c0: 6b61 ldr r1, [r4, #52] ; 0x34
  15822. 80067c2: b141 cbz r1, 80067d6 <setvbuf+0x56>
  15823. 80067c4: f104 0344 add.w r3, r4, #68 ; 0x44
  15824. 80067c8: 4299 cmp r1, r3
  15825. 80067ca: d002 beq.n 80067d2 <setvbuf+0x52>
  15826. 80067cc: 4630 mov r0, r6
  15827. 80067ce: f001 fc7f bl 80080d0 <_free_r>
  15828. 80067d2: 2300 movs r3, #0
  15829. 80067d4: 6363 str r3, [r4, #52] ; 0x34
  15830. 80067d6: 2300 movs r3, #0
  15831. 80067d8: 61a3 str r3, [r4, #24]
  15832. 80067da: 6063 str r3, [r4, #4]
  15833. 80067dc: 89a3 ldrh r3, [r4, #12]
  15834. 80067de: 061b lsls r3, r3, #24
  15835. 80067e0: d503 bpl.n 80067ea <setvbuf+0x6a>
  15836. 80067e2: 6921 ldr r1, [r4, #16]
  15837. 80067e4: 4630 mov r0, r6
  15838. 80067e6: f001 fc73 bl 80080d0 <_free_r>
  15839. 80067ea: 89a3 ldrh r3, [r4, #12]
  15840. 80067ec: f1b8 0f02 cmp.w r8, #2
  15841. 80067f0: f423 634a bic.w r3, r3, #3232 ; 0xca0
  15842. 80067f4: f023 0303 bic.w r3, r3, #3
  15843. 80067f8: 81a3 strh r3, [r4, #12]
  15844. 80067fa: d05d beq.n 80068b8 <setvbuf+0x138>
  15845. 80067fc: ab01 add r3, sp, #4
  15846. 80067fe: 466a mov r2, sp
  15847. 8006800: 4621 mov r1, r4
  15848. 8006802: 4630 mov r0, r6
  15849. 8006804: f001 f8f4 bl 80079f0 <__swhatbuf_r>
  15850. 8006808: 89a3 ldrh r3, [r4, #12]
  15851. 800680a: 4318 orrs r0, r3
  15852. 800680c: 81a0 strh r0, [r4, #12]
  15853. 800680e: bb2d cbnz r5, 800685c <setvbuf+0xdc>
  15854. 8006810: 9d00 ldr r5, [sp, #0]
  15855. 8006812: 4628 mov r0, r5
  15856. 8006814: f001 f950 bl 8007ab8 <malloc>
  15857. 8006818: 4607 mov r7, r0
  15858. 800681a: 2800 cmp r0, #0
  15859. 800681c: d14e bne.n 80068bc <setvbuf+0x13c>
  15860. 800681e: f8dd 9000 ldr.w r9, [sp]
  15861. 8006822: 45a9 cmp r9, r5
  15862. 8006824: d13c bne.n 80068a0 <setvbuf+0x120>
  15863. 8006826: f04f 30ff mov.w r0, #4294967295
  15864. 800682a: 89a3 ldrh r3, [r4, #12]
  15865. 800682c: f043 0302 orr.w r3, r3, #2
  15866. 8006830: 81a3 strh r3, [r4, #12]
  15867. 8006832: 2300 movs r3, #0
  15868. 8006834: 60a3 str r3, [r4, #8]
  15869. 8006836: f104 0347 add.w r3, r4, #71 ; 0x47
  15870. 800683a: 6023 str r3, [r4, #0]
  15871. 800683c: 6123 str r3, [r4, #16]
  15872. 800683e: 2301 movs r3, #1
  15873. 8006840: 6163 str r3, [r4, #20]
  15874. 8006842: b003 add sp, #12
  15875. 8006844: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  15876. 8006848: 4b22 ldr r3, [pc, #136] ; (80068d4 <setvbuf+0x154>)
  15877. 800684a: 429c cmp r4, r3
  15878. 800684c: d101 bne.n 8006852 <setvbuf+0xd2>
  15879. 800684e: 68b4 ldr r4, [r6, #8]
  15880. 8006850: e7a8 b.n 80067a4 <setvbuf+0x24>
  15881. 8006852: 4b21 ldr r3, [pc, #132] ; (80068d8 <setvbuf+0x158>)
  15882. 8006854: 429c cmp r4, r3
  15883. 8006856: bf08 it eq
  15884. 8006858: 68f4 ldreq r4, [r6, #12]
  15885. 800685a: e7a3 b.n 80067a4 <setvbuf+0x24>
  15886. 800685c: 2f00 cmp r7, #0
  15887. 800685e: d0d8 beq.n 8006812 <setvbuf+0x92>
  15888. 8006860: 69b3 ldr r3, [r6, #24]
  15889. 8006862: b913 cbnz r3, 800686a <setvbuf+0xea>
  15890. 8006864: 4630 mov r0, r6
  15891. 8006866: f001 f82b bl 80078c0 <__sinit>
  15892. 800686a: f1b8 0f01 cmp.w r8, #1
  15893. 800686e: bf08 it eq
  15894. 8006870: 89a3 ldrheq r3, [r4, #12]
  15895. 8006872: 6027 str r7, [r4, #0]
  15896. 8006874: bf04 itt eq
  15897. 8006876: f043 0301 orreq.w r3, r3, #1
  15898. 800687a: 81a3 strheq r3, [r4, #12]
  15899. 800687c: 89a3 ldrh r3, [r4, #12]
  15900. 800687e: e9c4 7504 strd r7, r5, [r4, #16]
  15901. 8006882: f013 0008 ands.w r0, r3, #8
  15902. 8006886: d01b beq.n 80068c0 <setvbuf+0x140>
  15903. 8006888: f013 0001 ands.w r0, r3, #1
  15904. 800688c: f04f 0300 mov.w r3, #0
  15905. 8006890: bf1f itttt ne
  15906. 8006892: 426d negne r5, r5
  15907. 8006894: 60a3 strne r3, [r4, #8]
  15908. 8006896: 61a5 strne r5, [r4, #24]
  15909. 8006898: 4618 movne r0, r3
  15910. 800689a: bf08 it eq
  15911. 800689c: 60a5 streq r5, [r4, #8]
  15912. 800689e: e7d0 b.n 8006842 <setvbuf+0xc2>
  15913. 80068a0: 4648 mov r0, r9
  15914. 80068a2: f001 f909 bl 8007ab8 <malloc>
  15915. 80068a6: 4607 mov r7, r0
  15916. 80068a8: 2800 cmp r0, #0
  15917. 80068aa: d0bc beq.n 8006826 <setvbuf+0xa6>
  15918. 80068ac: 89a3 ldrh r3, [r4, #12]
  15919. 80068ae: 464d mov r5, r9
  15920. 80068b0: f043 0380 orr.w r3, r3, #128 ; 0x80
  15921. 80068b4: 81a3 strh r3, [r4, #12]
  15922. 80068b6: e7d3 b.n 8006860 <setvbuf+0xe0>
  15923. 80068b8: 2000 movs r0, #0
  15924. 80068ba: e7b6 b.n 800682a <setvbuf+0xaa>
  15925. 80068bc: 46a9 mov r9, r5
  15926. 80068be: e7f5 b.n 80068ac <setvbuf+0x12c>
  15927. 80068c0: 60a0 str r0, [r4, #8]
  15928. 80068c2: e7be b.n 8006842 <setvbuf+0xc2>
  15929. 80068c4: f04f 30ff mov.w r0, #4294967295
  15930. 80068c8: e7bb b.n 8006842 <setvbuf+0xc2>
  15931. 80068ca: bf00 nop
  15932. 80068cc: 2000000c .word 0x2000000c
  15933. 80068d0: 08008a10 .word 0x08008a10
  15934. 80068d4: 08008a30 .word 0x08008a30
  15935. 80068d8: 080089f0 .word 0x080089f0
  15936. 080068dc <__swbuf_r>:
  15937. 80068dc: b5f8 push {r3, r4, r5, r6, r7, lr}
  15938. 80068de: 460e mov r6, r1
  15939. 80068e0: 4614 mov r4, r2
  15940. 80068e2: 4605 mov r5, r0
  15941. 80068e4: b118 cbz r0, 80068ee <__swbuf_r+0x12>
  15942. 80068e6: 6983 ldr r3, [r0, #24]
  15943. 80068e8: b90b cbnz r3, 80068ee <__swbuf_r+0x12>
  15944. 80068ea: f000 ffe9 bl 80078c0 <__sinit>
  15945. 80068ee: 4b21 ldr r3, [pc, #132] ; (8006974 <__swbuf_r+0x98>)
  15946. 80068f0: 429c cmp r4, r3
  15947. 80068f2: d12a bne.n 800694a <__swbuf_r+0x6e>
  15948. 80068f4: 686c ldr r4, [r5, #4]
  15949. 80068f6: 69a3 ldr r3, [r4, #24]
  15950. 80068f8: 60a3 str r3, [r4, #8]
  15951. 80068fa: 89a3 ldrh r3, [r4, #12]
  15952. 80068fc: 071a lsls r2, r3, #28
  15953. 80068fe: d52e bpl.n 800695e <__swbuf_r+0x82>
  15954. 8006900: 6923 ldr r3, [r4, #16]
  15955. 8006902: b363 cbz r3, 800695e <__swbuf_r+0x82>
  15956. 8006904: 6923 ldr r3, [r4, #16]
  15957. 8006906: 6820 ldr r0, [r4, #0]
  15958. 8006908: b2f6 uxtb r6, r6
  15959. 800690a: 1ac0 subs r0, r0, r3
  15960. 800690c: 6963 ldr r3, [r4, #20]
  15961. 800690e: 4637 mov r7, r6
  15962. 8006910: 4283 cmp r3, r0
  15963. 8006912: dc04 bgt.n 800691e <__swbuf_r+0x42>
  15964. 8006914: 4621 mov r1, r4
  15965. 8006916: 4628 mov r0, r5
  15966. 8006918: f000 ff68 bl 80077ec <_fflush_r>
  15967. 800691c: bb28 cbnz r0, 800696a <__swbuf_r+0x8e>
  15968. 800691e: 68a3 ldr r3, [r4, #8]
  15969. 8006920: 3001 adds r0, #1
  15970. 8006922: 3b01 subs r3, #1
  15971. 8006924: 60a3 str r3, [r4, #8]
  15972. 8006926: 6823 ldr r3, [r4, #0]
  15973. 8006928: 1c5a adds r2, r3, #1
  15974. 800692a: 6022 str r2, [r4, #0]
  15975. 800692c: 701e strb r6, [r3, #0]
  15976. 800692e: 6963 ldr r3, [r4, #20]
  15977. 8006930: 4283 cmp r3, r0
  15978. 8006932: d004 beq.n 800693e <__swbuf_r+0x62>
  15979. 8006934: 89a3 ldrh r3, [r4, #12]
  15980. 8006936: 07db lsls r3, r3, #31
  15981. 8006938: d519 bpl.n 800696e <__swbuf_r+0x92>
  15982. 800693a: 2e0a cmp r6, #10
  15983. 800693c: d117 bne.n 800696e <__swbuf_r+0x92>
  15984. 800693e: 4621 mov r1, r4
  15985. 8006940: 4628 mov r0, r5
  15986. 8006942: f000 ff53 bl 80077ec <_fflush_r>
  15987. 8006946: b190 cbz r0, 800696e <__swbuf_r+0x92>
  15988. 8006948: e00f b.n 800696a <__swbuf_r+0x8e>
  15989. 800694a: 4b0b ldr r3, [pc, #44] ; (8006978 <__swbuf_r+0x9c>)
  15990. 800694c: 429c cmp r4, r3
  15991. 800694e: d101 bne.n 8006954 <__swbuf_r+0x78>
  15992. 8006950: 68ac ldr r4, [r5, #8]
  15993. 8006952: e7d0 b.n 80068f6 <__swbuf_r+0x1a>
  15994. 8006954: 4b09 ldr r3, [pc, #36] ; (800697c <__swbuf_r+0xa0>)
  15995. 8006956: 429c cmp r4, r3
  15996. 8006958: bf08 it eq
  15997. 800695a: 68ec ldreq r4, [r5, #12]
  15998. 800695c: e7cb b.n 80068f6 <__swbuf_r+0x1a>
  15999. 800695e: 4621 mov r1, r4
  16000. 8006960: 4628 mov r0, r5
  16001. 8006962: f000 f80d bl 8006980 <__swsetup_r>
  16002. 8006966: 2800 cmp r0, #0
  16003. 8006968: d0cc beq.n 8006904 <__swbuf_r+0x28>
  16004. 800696a: f04f 37ff mov.w r7, #4294967295
  16005. 800696e: 4638 mov r0, r7
  16006. 8006970: bdf8 pop {r3, r4, r5, r6, r7, pc}
  16007. 8006972: bf00 nop
  16008. 8006974: 08008a10 .word 0x08008a10
  16009. 8006978: 08008a30 .word 0x08008a30
  16010. 800697c: 080089f0 .word 0x080089f0
  16011. 08006980 <__swsetup_r>:
  16012. 8006980: 4b32 ldr r3, [pc, #200] ; (8006a4c <__swsetup_r+0xcc>)
  16013. 8006982: b570 push {r4, r5, r6, lr}
  16014. 8006984: 681d ldr r5, [r3, #0]
  16015. 8006986: 4606 mov r6, r0
  16016. 8006988: 460c mov r4, r1
  16017. 800698a: b125 cbz r5, 8006996 <__swsetup_r+0x16>
  16018. 800698c: 69ab ldr r3, [r5, #24]
  16019. 800698e: b913 cbnz r3, 8006996 <__swsetup_r+0x16>
  16020. 8006990: 4628 mov r0, r5
  16021. 8006992: f000 ff95 bl 80078c0 <__sinit>
  16022. 8006996: 4b2e ldr r3, [pc, #184] ; (8006a50 <__swsetup_r+0xd0>)
  16023. 8006998: 429c cmp r4, r3
  16024. 800699a: d10f bne.n 80069bc <__swsetup_r+0x3c>
  16025. 800699c: 686c ldr r4, [r5, #4]
  16026. 800699e: f9b4 300c ldrsh.w r3, [r4, #12]
  16027. 80069a2: b29a uxth r2, r3
  16028. 80069a4: 0715 lsls r5, r2, #28
  16029. 80069a6: d42c bmi.n 8006a02 <__swsetup_r+0x82>
  16030. 80069a8: 06d0 lsls r0, r2, #27
  16031. 80069aa: d411 bmi.n 80069d0 <__swsetup_r+0x50>
  16032. 80069ac: 2209 movs r2, #9
  16033. 80069ae: 6032 str r2, [r6, #0]
  16034. 80069b0: f043 0340 orr.w r3, r3, #64 ; 0x40
  16035. 80069b4: 81a3 strh r3, [r4, #12]
  16036. 80069b6: f04f 30ff mov.w r0, #4294967295
  16037. 80069ba: e03e b.n 8006a3a <__swsetup_r+0xba>
  16038. 80069bc: 4b25 ldr r3, [pc, #148] ; (8006a54 <__swsetup_r+0xd4>)
  16039. 80069be: 429c cmp r4, r3
  16040. 80069c0: d101 bne.n 80069c6 <__swsetup_r+0x46>
  16041. 80069c2: 68ac ldr r4, [r5, #8]
  16042. 80069c4: e7eb b.n 800699e <__swsetup_r+0x1e>
  16043. 80069c6: 4b24 ldr r3, [pc, #144] ; (8006a58 <__swsetup_r+0xd8>)
  16044. 80069c8: 429c cmp r4, r3
  16045. 80069ca: bf08 it eq
  16046. 80069cc: 68ec ldreq r4, [r5, #12]
  16047. 80069ce: e7e6 b.n 800699e <__swsetup_r+0x1e>
  16048. 80069d0: 0751 lsls r1, r2, #29
  16049. 80069d2: d512 bpl.n 80069fa <__swsetup_r+0x7a>
  16050. 80069d4: 6b61 ldr r1, [r4, #52] ; 0x34
  16051. 80069d6: b141 cbz r1, 80069ea <__swsetup_r+0x6a>
  16052. 80069d8: f104 0344 add.w r3, r4, #68 ; 0x44
  16053. 80069dc: 4299 cmp r1, r3
  16054. 80069de: d002 beq.n 80069e6 <__swsetup_r+0x66>
  16055. 80069e0: 4630 mov r0, r6
  16056. 80069e2: f001 fb75 bl 80080d0 <_free_r>
  16057. 80069e6: 2300 movs r3, #0
  16058. 80069e8: 6363 str r3, [r4, #52] ; 0x34
  16059. 80069ea: 89a3 ldrh r3, [r4, #12]
  16060. 80069ec: f023 0324 bic.w r3, r3, #36 ; 0x24
  16061. 80069f0: 81a3 strh r3, [r4, #12]
  16062. 80069f2: 2300 movs r3, #0
  16063. 80069f4: 6063 str r3, [r4, #4]
  16064. 80069f6: 6923 ldr r3, [r4, #16]
  16065. 80069f8: 6023 str r3, [r4, #0]
  16066. 80069fa: 89a3 ldrh r3, [r4, #12]
  16067. 80069fc: f043 0308 orr.w r3, r3, #8
  16068. 8006a00: 81a3 strh r3, [r4, #12]
  16069. 8006a02: 6923 ldr r3, [r4, #16]
  16070. 8006a04: b94b cbnz r3, 8006a1a <__swsetup_r+0x9a>
  16071. 8006a06: 89a3 ldrh r3, [r4, #12]
  16072. 8006a08: f403 7320 and.w r3, r3, #640 ; 0x280
  16073. 8006a0c: f5b3 7f00 cmp.w r3, #512 ; 0x200
  16074. 8006a10: d003 beq.n 8006a1a <__swsetup_r+0x9a>
  16075. 8006a12: 4621 mov r1, r4
  16076. 8006a14: 4630 mov r0, r6
  16077. 8006a16: f001 f80f bl 8007a38 <__smakebuf_r>
  16078. 8006a1a: 89a2 ldrh r2, [r4, #12]
  16079. 8006a1c: f012 0301 ands.w r3, r2, #1
  16080. 8006a20: d00c beq.n 8006a3c <__swsetup_r+0xbc>
  16081. 8006a22: 2300 movs r3, #0
  16082. 8006a24: 60a3 str r3, [r4, #8]
  16083. 8006a26: 6963 ldr r3, [r4, #20]
  16084. 8006a28: 425b negs r3, r3
  16085. 8006a2a: 61a3 str r3, [r4, #24]
  16086. 8006a2c: 6923 ldr r3, [r4, #16]
  16087. 8006a2e: b953 cbnz r3, 8006a46 <__swsetup_r+0xc6>
  16088. 8006a30: f9b4 300c ldrsh.w r3, [r4, #12]
  16089. 8006a34: f013 0080 ands.w r0, r3, #128 ; 0x80
  16090. 8006a38: d1ba bne.n 80069b0 <__swsetup_r+0x30>
  16091. 8006a3a: bd70 pop {r4, r5, r6, pc}
  16092. 8006a3c: 0792 lsls r2, r2, #30
  16093. 8006a3e: bf58 it pl
  16094. 8006a40: 6963 ldrpl r3, [r4, #20]
  16095. 8006a42: 60a3 str r3, [r4, #8]
  16096. 8006a44: e7f2 b.n 8006a2c <__swsetup_r+0xac>
  16097. 8006a46: 2000 movs r0, #0
  16098. 8006a48: e7f7 b.n 8006a3a <__swsetup_r+0xba>
  16099. 8006a4a: bf00 nop
  16100. 8006a4c: 2000000c .word 0x2000000c
  16101. 8006a50: 08008a10 .word 0x08008a10
  16102. 8006a54: 08008a30 .word 0x08008a30
  16103. 8006a58: 080089f0 .word 0x080089f0
  16104. 08006a5c <quorem>:
  16105. 8006a5c: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16106. 8006a60: 6903 ldr r3, [r0, #16]
  16107. 8006a62: 690c ldr r4, [r1, #16]
  16108. 8006a64: 4680 mov r8, r0
  16109. 8006a66: 42a3 cmp r3, r4
  16110. 8006a68: f2c0 8084 blt.w 8006b74 <quorem+0x118>
  16111. 8006a6c: 3c01 subs r4, #1
  16112. 8006a6e: f101 0714 add.w r7, r1, #20
  16113. 8006a72: f100 0614 add.w r6, r0, #20
  16114. 8006a76: f857 5024 ldr.w r5, [r7, r4, lsl #2]
  16115. 8006a7a: f856 0024 ldr.w r0, [r6, r4, lsl #2]
  16116. 8006a7e: 3501 adds r5, #1
  16117. 8006a80: fbb0 f5f5 udiv r5, r0, r5
  16118. 8006a84: ea4f 0c84 mov.w ip, r4, lsl #2
  16119. 8006a88: eb06 030c add.w r3, r6, ip
  16120. 8006a8c: eb07 090c add.w r9, r7, ip
  16121. 8006a90: 9301 str r3, [sp, #4]
  16122. 8006a92: b39d cbz r5, 8006afc <quorem+0xa0>
  16123. 8006a94: f04f 0a00 mov.w sl, #0
  16124. 8006a98: 4638 mov r0, r7
  16125. 8006a9a: 46b6 mov lr, r6
  16126. 8006a9c: 46d3 mov fp, sl
  16127. 8006a9e: f850 2b04 ldr.w r2, [r0], #4
  16128. 8006aa2: b293 uxth r3, r2
  16129. 8006aa4: fb05 a303 mla r3, r5, r3, sl
  16130. 8006aa8: 0c12 lsrs r2, r2, #16
  16131. 8006aaa: ea4f 4a13 mov.w sl, r3, lsr #16
  16132. 8006aae: fb05 a202 mla r2, r5, r2, sl
  16133. 8006ab2: b29b uxth r3, r3
  16134. 8006ab4: ebab 0303 sub.w r3, fp, r3
  16135. 8006ab8: f8de b000 ldr.w fp, [lr]
  16136. 8006abc: ea4f 4a12 mov.w sl, r2, lsr #16
  16137. 8006ac0: fa1f fb8b uxth.w fp, fp
  16138. 8006ac4: 445b add r3, fp
  16139. 8006ac6: fa1f fb82 uxth.w fp, r2
  16140. 8006aca: f8de 2000 ldr.w r2, [lr]
  16141. 8006ace: 4581 cmp r9, r0
  16142. 8006ad0: ebcb 4212 rsb r2, fp, r2, lsr #16
  16143. 8006ad4: eb02 4223 add.w r2, r2, r3, asr #16
  16144. 8006ad8: b29b uxth r3, r3
  16145. 8006ada: ea43 4302 orr.w r3, r3, r2, lsl #16
  16146. 8006ade: ea4f 4b22 mov.w fp, r2, asr #16
  16147. 8006ae2: f84e 3b04 str.w r3, [lr], #4
  16148. 8006ae6: d2da bcs.n 8006a9e <quorem+0x42>
  16149. 8006ae8: f856 300c ldr.w r3, [r6, ip]
  16150. 8006aec: b933 cbnz r3, 8006afc <quorem+0xa0>
  16151. 8006aee: 9b01 ldr r3, [sp, #4]
  16152. 8006af0: 3b04 subs r3, #4
  16153. 8006af2: 429e cmp r6, r3
  16154. 8006af4: 461a mov r2, r3
  16155. 8006af6: d331 bcc.n 8006b5c <quorem+0x100>
  16156. 8006af8: f8c8 4010 str.w r4, [r8, #16]
  16157. 8006afc: 4640 mov r0, r8
  16158. 8006afe: f001 fa11 bl 8007f24 <__mcmp>
  16159. 8006b02: 2800 cmp r0, #0
  16160. 8006b04: db26 blt.n 8006b54 <quorem+0xf8>
  16161. 8006b06: 4630 mov r0, r6
  16162. 8006b08: f04f 0c00 mov.w ip, #0
  16163. 8006b0c: 3501 adds r5, #1
  16164. 8006b0e: f857 1b04 ldr.w r1, [r7], #4
  16165. 8006b12: f8d0 e000 ldr.w lr, [r0]
  16166. 8006b16: b28b uxth r3, r1
  16167. 8006b18: ebac 0303 sub.w r3, ip, r3
  16168. 8006b1c: fa1f f28e uxth.w r2, lr
  16169. 8006b20: 4413 add r3, r2
  16170. 8006b22: 0c0a lsrs r2, r1, #16
  16171. 8006b24: ebc2 421e rsb r2, r2, lr, lsr #16
  16172. 8006b28: eb02 4223 add.w r2, r2, r3, asr #16
  16173. 8006b2c: b29b uxth r3, r3
  16174. 8006b2e: ea43 4302 orr.w r3, r3, r2, lsl #16
  16175. 8006b32: 45b9 cmp r9, r7
  16176. 8006b34: ea4f 4c22 mov.w ip, r2, asr #16
  16177. 8006b38: f840 3b04 str.w r3, [r0], #4
  16178. 8006b3c: d2e7 bcs.n 8006b0e <quorem+0xb2>
  16179. 8006b3e: f856 2024 ldr.w r2, [r6, r4, lsl #2]
  16180. 8006b42: eb06 0384 add.w r3, r6, r4, lsl #2
  16181. 8006b46: b92a cbnz r2, 8006b54 <quorem+0xf8>
  16182. 8006b48: 3b04 subs r3, #4
  16183. 8006b4a: 429e cmp r6, r3
  16184. 8006b4c: 461a mov r2, r3
  16185. 8006b4e: d30b bcc.n 8006b68 <quorem+0x10c>
  16186. 8006b50: f8c8 4010 str.w r4, [r8, #16]
  16187. 8006b54: 4628 mov r0, r5
  16188. 8006b56: b003 add sp, #12
  16189. 8006b58: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  16190. 8006b5c: 6812 ldr r2, [r2, #0]
  16191. 8006b5e: 3b04 subs r3, #4
  16192. 8006b60: 2a00 cmp r2, #0
  16193. 8006b62: d1c9 bne.n 8006af8 <quorem+0x9c>
  16194. 8006b64: 3c01 subs r4, #1
  16195. 8006b66: e7c4 b.n 8006af2 <quorem+0x96>
  16196. 8006b68: 6812 ldr r2, [r2, #0]
  16197. 8006b6a: 3b04 subs r3, #4
  16198. 8006b6c: 2a00 cmp r2, #0
  16199. 8006b6e: d1ef bne.n 8006b50 <quorem+0xf4>
  16200. 8006b70: 3c01 subs r4, #1
  16201. 8006b72: e7ea b.n 8006b4a <quorem+0xee>
  16202. 8006b74: 2000 movs r0, #0
  16203. 8006b76: e7ee b.n 8006b56 <quorem+0xfa>
  16204. 08006b78 <_dtoa_r>:
  16205. 8006b78: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16206. 8006b7c: 4616 mov r6, r2
  16207. 8006b7e: 461f mov r7, r3
  16208. 8006b80: 6a45 ldr r5, [r0, #36] ; 0x24
  16209. 8006b82: b095 sub sp, #84 ; 0x54
  16210. 8006b84: 4604 mov r4, r0
  16211. 8006b86: f8dd 8084 ldr.w r8, [sp, #132] ; 0x84
  16212. 8006b8a: e9cd 6702 strd r6, r7, [sp, #8]
  16213. 8006b8e: b93d cbnz r5, 8006ba0 <_dtoa_r+0x28>
  16214. 8006b90: 2010 movs r0, #16
  16215. 8006b92: f000 ff91 bl 8007ab8 <malloc>
  16216. 8006b96: 6260 str r0, [r4, #36] ; 0x24
  16217. 8006b98: e9c0 5501 strd r5, r5, [r0, #4]
  16218. 8006b9c: 6005 str r5, [r0, #0]
  16219. 8006b9e: 60c5 str r5, [r0, #12]
  16220. 8006ba0: 6a63 ldr r3, [r4, #36] ; 0x24
  16221. 8006ba2: 6819 ldr r1, [r3, #0]
  16222. 8006ba4: b151 cbz r1, 8006bbc <_dtoa_r+0x44>
  16223. 8006ba6: 685a ldr r2, [r3, #4]
  16224. 8006ba8: 2301 movs r3, #1
  16225. 8006baa: 4093 lsls r3, r2
  16226. 8006bac: 604a str r2, [r1, #4]
  16227. 8006bae: 608b str r3, [r1, #8]
  16228. 8006bb0: 4620 mov r0, r4
  16229. 8006bb2: f000 ffd6 bl 8007b62 <_Bfree>
  16230. 8006bb6: 2200 movs r2, #0
  16231. 8006bb8: 6a63 ldr r3, [r4, #36] ; 0x24
  16232. 8006bba: 601a str r2, [r3, #0]
  16233. 8006bbc: 1e3b subs r3, r7, #0
  16234. 8006bbe: bfaf iteee ge
  16235. 8006bc0: 2300 movge r3, #0
  16236. 8006bc2: 2201 movlt r2, #1
  16237. 8006bc4: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
  16238. 8006bc8: 9303 strlt r3, [sp, #12]
  16239. 8006bca: bfac ite ge
  16240. 8006bcc: f8c8 3000 strge.w r3, [r8]
  16241. 8006bd0: f8c8 2000 strlt.w r2, [r8]
  16242. 8006bd4: 4bae ldr r3, [pc, #696] ; (8006e90 <_dtoa_r+0x318>)
  16243. 8006bd6: f8dd 800c ldr.w r8, [sp, #12]
  16244. 8006bda: ea33 0308 bics.w r3, r3, r8
  16245. 8006bde: d11b bne.n 8006c18 <_dtoa_r+0xa0>
  16246. 8006be0: f242 730f movw r3, #9999 ; 0x270f
  16247. 8006be4: 9a20 ldr r2, [sp, #128] ; 0x80
  16248. 8006be6: 6013 str r3, [r2, #0]
  16249. 8006be8: 9b02 ldr r3, [sp, #8]
  16250. 8006bea: b923 cbnz r3, 8006bf6 <_dtoa_r+0x7e>
  16251. 8006bec: f3c8 0013 ubfx r0, r8, #0, #20
  16252. 8006bf0: 2800 cmp r0, #0
  16253. 8006bf2: f000 8545 beq.w 8007680 <_dtoa_r+0xb08>
  16254. 8006bf6: 9b22 ldr r3, [sp, #136] ; 0x88
  16255. 8006bf8: b953 cbnz r3, 8006c10 <_dtoa_r+0x98>
  16256. 8006bfa: 4ba6 ldr r3, [pc, #664] ; (8006e94 <_dtoa_r+0x31c>)
  16257. 8006bfc: e021 b.n 8006c42 <_dtoa_r+0xca>
  16258. 8006bfe: 4ba6 ldr r3, [pc, #664] ; (8006e98 <_dtoa_r+0x320>)
  16259. 8006c00: 9306 str r3, [sp, #24]
  16260. 8006c02: 3308 adds r3, #8
  16261. 8006c04: 9a22 ldr r2, [sp, #136] ; 0x88
  16262. 8006c06: 6013 str r3, [r2, #0]
  16263. 8006c08: 9806 ldr r0, [sp, #24]
  16264. 8006c0a: b015 add sp, #84 ; 0x54
  16265. 8006c0c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  16266. 8006c10: 4ba0 ldr r3, [pc, #640] ; (8006e94 <_dtoa_r+0x31c>)
  16267. 8006c12: 9306 str r3, [sp, #24]
  16268. 8006c14: 3303 adds r3, #3
  16269. 8006c16: e7f5 b.n 8006c04 <_dtoa_r+0x8c>
  16270. 8006c18: e9dd 6702 ldrd r6, r7, [sp, #8]
  16271. 8006c1c: 2200 movs r2, #0
  16272. 8006c1e: 2300 movs r3, #0
  16273. 8006c20: 4630 mov r0, r6
  16274. 8006c22: 4639 mov r1, r7
  16275. 8006c24: f7f9 ff20 bl 8000a68 <__aeabi_dcmpeq>
  16276. 8006c28: 4682 mov sl, r0
  16277. 8006c2a: b160 cbz r0, 8006c46 <_dtoa_r+0xce>
  16278. 8006c2c: 2301 movs r3, #1
  16279. 8006c2e: 9a20 ldr r2, [sp, #128] ; 0x80
  16280. 8006c30: 6013 str r3, [r2, #0]
  16281. 8006c32: 9b22 ldr r3, [sp, #136] ; 0x88
  16282. 8006c34: 2b00 cmp r3, #0
  16283. 8006c36: f000 8520 beq.w 800767a <_dtoa_r+0xb02>
  16284. 8006c3a: 4b98 ldr r3, [pc, #608] ; (8006e9c <_dtoa_r+0x324>)
  16285. 8006c3c: 9a22 ldr r2, [sp, #136] ; 0x88
  16286. 8006c3e: 6013 str r3, [r2, #0]
  16287. 8006c40: 3b01 subs r3, #1
  16288. 8006c42: 9306 str r3, [sp, #24]
  16289. 8006c44: e7e0 b.n 8006c08 <_dtoa_r+0x90>
  16290. 8006c46: ab12 add r3, sp, #72 ; 0x48
  16291. 8006c48: 9301 str r3, [sp, #4]
  16292. 8006c4a: ab13 add r3, sp, #76 ; 0x4c
  16293. 8006c4c: 9300 str r3, [sp, #0]
  16294. 8006c4e: 4632 mov r2, r6
  16295. 8006c50: 463b mov r3, r7
  16296. 8006c52: 4620 mov r0, r4
  16297. 8006c54: f001 f9de bl 8008014 <__d2b>
  16298. 8006c58: f3c8 550a ubfx r5, r8, #20, #11
  16299. 8006c5c: 4683 mov fp, r0
  16300. 8006c5e: 2d00 cmp r5, #0
  16301. 8006c60: d07d beq.n 8006d5e <_dtoa_r+0x1e6>
  16302. 8006c62: 46b0 mov r8, r6
  16303. 8006c64: f3c7 0313 ubfx r3, r7, #0, #20
  16304. 8006c68: f043 597f orr.w r9, r3, #1069547520 ; 0x3fc00000
  16305. 8006c6c: f449 1940 orr.w r9, r9, #3145728 ; 0x300000
  16306. 8006c70: f2a5 35ff subw r5, r5, #1023 ; 0x3ff
  16307. 8006c74: f8cd a040 str.w sl, [sp, #64] ; 0x40
  16308. 8006c78: 2200 movs r2, #0
  16309. 8006c7a: 4b89 ldr r3, [pc, #548] ; (8006ea0 <_dtoa_r+0x328>)
  16310. 8006c7c: 4640 mov r0, r8
  16311. 8006c7e: 4649 mov r1, r9
  16312. 8006c80: f7f9 fad2 bl 8000228 <__aeabi_dsub>
  16313. 8006c84: a37c add r3, pc, #496 ; (adr r3, 8006e78 <_dtoa_r+0x300>)
  16314. 8006c86: e9d3 2300 ldrd r2, r3, [r3]
  16315. 8006c8a: f7f9 fc85 bl 8000598 <__aeabi_dmul>
  16316. 8006c8e: a37c add r3, pc, #496 ; (adr r3, 8006e80 <_dtoa_r+0x308>)
  16317. 8006c90: e9d3 2300 ldrd r2, r3, [r3]
  16318. 8006c94: f7f9 faca bl 800022c <__adddf3>
  16319. 8006c98: 4606 mov r6, r0
  16320. 8006c9a: 4628 mov r0, r5
  16321. 8006c9c: 460f mov r7, r1
  16322. 8006c9e: f7f9 fc11 bl 80004c4 <__aeabi_i2d>
  16323. 8006ca2: a379 add r3, pc, #484 ; (adr r3, 8006e88 <_dtoa_r+0x310>)
  16324. 8006ca4: e9d3 2300 ldrd r2, r3, [r3]
  16325. 8006ca8: f7f9 fc76 bl 8000598 <__aeabi_dmul>
  16326. 8006cac: 4602 mov r2, r0
  16327. 8006cae: 460b mov r3, r1
  16328. 8006cb0: 4630 mov r0, r6
  16329. 8006cb2: 4639 mov r1, r7
  16330. 8006cb4: f7f9 faba bl 800022c <__adddf3>
  16331. 8006cb8: 4606 mov r6, r0
  16332. 8006cba: 460f mov r7, r1
  16333. 8006cbc: f7f9 ff1c bl 8000af8 <__aeabi_d2iz>
  16334. 8006cc0: 2200 movs r2, #0
  16335. 8006cc2: 4682 mov sl, r0
  16336. 8006cc4: 2300 movs r3, #0
  16337. 8006cc6: 4630 mov r0, r6
  16338. 8006cc8: 4639 mov r1, r7
  16339. 8006cca: f7f9 fed7 bl 8000a7c <__aeabi_dcmplt>
  16340. 8006cce: b148 cbz r0, 8006ce4 <_dtoa_r+0x16c>
  16341. 8006cd0: 4650 mov r0, sl
  16342. 8006cd2: f7f9 fbf7 bl 80004c4 <__aeabi_i2d>
  16343. 8006cd6: 4632 mov r2, r6
  16344. 8006cd8: 463b mov r3, r7
  16345. 8006cda: f7f9 fec5 bl 8000a68 <__aeabi_dcmpeq>
  16346. 8006cde: b908 cbnz r0, 8006ce4 <_dtoa_r+0x16c>
  16347. 8006ce0: f10a 3aff add.w sl, sl, #4294967295
  16348. 8006ce4: f1ba 0f16 cmp.w sl, #22
  16349. 8006ce8: d85a bhi.n 8006da0 <_dtoa_r+0x228>
  16350. 8006cea: e9dd 2302 ldrd r2, r3, [sp, #8]
  16351. 8006cee: 496d ldr r1, [pc, #436] ; (8006ea4 <_dtoa_r+0x32c>)
  16352. 8006cf0: eb01 01ca add.w r1, r1, sl, lsl #3
  16353. 8006cf4: e9d1 0100 ldrd r0, r1, [r1]
  16354. 8006cf8: f7f9 fede bl 8000ab8 <__aeabi_dcmpgt>
  16355. 8006cfc: 2800 cmp r0, #0
  16356. 8006cfe: d051 beq.n 8006da4 <_dtoa_r+0x22c>
  16357. 8006d00: 2300 movs r3, #0
  16358. 8006d02: f10a 3aff add.w sl, sl, #4294967295
  16359. 8006d06: 930d str r3, [sp, #52] ; 0x34
  16360. 8006d08: 9b12 ldr r3, [sp, #72] ; 0x48
  16361. 8006d0a: 1b5d subs r5, r3, r5
  16362. 8006d0c: 1e6b subs r3, r5, #1
  16363. 8006d0e: 9307 str r3, [sp, #28]
  16364. 8006d10: bf43 ittte mi
  16365. 8006d12: 2300 movmi r3, #0
  16366. 8006d14: f1c5 0901 rsbmi r9, r5, #1
  16367. 8006d18: 9307 strmi r3, [sp, #28]
  16368. 8006d1a: f04f 0900 movpl.w r9, #0
  16369. 8006d1e: f1ba 0f00 cmp.w sl, #0
  16370. 8006d22: db41 blt.n 8006da8 <_dtoa_r+0x230>
  16371. 8006d24: 9b07 ldr r3, [sp, #28]
  16372. 8006d26: f8cd a030 str.w sl, [sp, #48] ; 0x30
  16373. 8006d2a: 4453 add r3, sl
  16374. 8006d2c: 9307 str r3, [sp, #28]
  16375. 8006d2e: 2300 movs r3, #0
  16376. 8006d30: 9308 str r3, [sp, #32]
  16377. 8006d32: 9b1e ldr r3, [sp, #120] ; 0x78
  16378. 8006d34: 2b09 cmp r3, #9
  16379. 8006d36: f200 808f bhi.w 8006e58 <_dtoa_r+0x2e0>
  16380. 8006d3a: 2b05 cmp r3, #5
  16381. 8006d3c: bfc4 itt gt
  16382. 8006d3e: 3b04 subgt r3, #4
  16383. 8006d40: 931e strgt r3, [sp, #120] ; 0x78
  16384. 8006d42: 9b1e ldr r3, [sp, #120] ; 0x78
  16385. 8006d44: bfc8 it gt
  16386. 8006d46: 2500 movgt r5, #0
  16387. 8006d48: f1a3 0302 sub.w r3, r3, #2
  16388. 8006d4c: bfd8 it le
  16389. 8006d4e: 2501 movle r5, #1
  16390. 8006d50: 2b03 cmp r3, #3
  16391. 8006d52: f200 808d bhi.w 8006e70 <_dtoa_r+0x2f8>
  16392. 8006d56: e8df f003 tbb [pc, r3]
  16393. 8006d5a: 7d7b .short 0x7d7b
  16394. 8006d5c: 6f2f .short 0x6f2f
  16395. 8006d5e: e9dd 5312 ldrd r5, r3, [sp, #72] ; 0x48
  16396. 8006d62: 441d add r5, r3
  16397. 8006d64: f205 4032 addw r0, r5, #1074 ; 0x432
  16398. 8006d68: 2820 cmp r0, #32
  16399. 8006d6a: dd13 ble.n 8006d94 <_dtoa_r+0x21c>
  16400. 8006d6c: f1c0 0040 rsb r0, r0, #64 ; 0x40
  16401. 8006d70: 9b02 ldr r3, [sp, #8]
  16402. 8006d72: fa08 f800 lsl.w r8, r8, r0
  16403. 8006d76: f205 4012 addw r0, r5, #1042 ; 0x412
  16404. 8006d7a: fa23 f000 lsr.w r0, r3, r0
  16405. 8006d7e: ea48 0000 orr.w r0, r8, r0
  16406. 8006d82: f7f9 fb8f bl 80004a4 <__aeabi_ui2d>
  16407. 8006d86: 2301 movs r3, #1
  16408. 8006d88: 4680 mov r8, r0
  16409. 8006d8a: f1a1 79f8 sub.w r9, r1, #32505856 ; 0x1f00000
  16410. 8006d8e: 3d01 subs r5, #1
  16411. 8006d90: 9310 str r3, [sp, #64] ; 0x40
  16412. 8006d92: e771 b.n 8006c78 <_dtoa_r+0x100>
  16413. 8006d94: 9b02 ldr r3, [sp, #8]
  16414. 8006d96: f1c0 0020 rsb r0, r0, #32
  16415. 8006d9a: fa03 f000 lsl.w r0, r3, r0
  16416. 8006d9e: e7f0 b.n 8006d82 <_dtoa_r+0x20a>
  16417. 8006da0: 2301 movs r3, #1
  16418. 8006da2: e7b0 b.n 8006d06 <_dtoa_r+0x18e>
  16419. 8006da4: 900d str r0, [sp, #52] ; 0x34
  16420. 8006da6: e7af b.n 8006d08 <_dtoa_r+0x190>
  16421. 8006da8: f1ca 0300 rsb r3, sl, #0
  16422. 8006dac: 9308 str r3, [sp, #32]
  16423. 8006dae: 2300 movs r3, #0
  16424. 8006db0: eba9 090a sub.w r9, r9, sl
  16425. 8006db4: 930c str r3, [sp, #48] ; 0x30
  16426. 8006db6: e7bc b.n 8006d32 <_dtoa_r+0x1ba>
  16427. 8006db8: 2301 movs r3, #1
  16428. 8006dba: 9309 str r3, [sp, #36] ; 0x24
  16429. 8006dbc: 9b1f ldr r3, [sp, #124] ; 0x7c
  16430. 8006dbe: 2b00 cmp r3, #0
  16431. 8006dc0: dd74 ble.n 8006eac <_dtoa_r+0x334>
  16432. 8006dc2: 4698 mov r8, r3
  16433. 8006dc4: 9304 str r3, [sp, #16]
  16434. 8006dc6: 2200 movs r2, #0
  16435. 8006dc8: 6a66 ldr r6, [r4, #36] ; 0x24
  16436. 8006dca: 6072 str r2, [r6, #4]
  16437. 8006dcc: 2204 movs r2, #4
  16438. 8006dce: f102 0014 add.w r0, r2, #20
  16439. 8006dd2: 4298 cmp r0, r3
  16440. 8006dd4: 6871 ldr r1, [r6, #4]
  16441. 8006dd6: d96e bls.n 8006eb6 <_dtoa_r+0x33e>
  16442. 8006dd8: 4620 mov r0, r4
  16443. 8006dda: f000 fe8e bl 8007afa <_Balloc>
  16444. 8006dde: 6a63 ldr r3, [r4, #36] ; 0x24
  16445. 8006de0: 6030 str r0, [r6, #0]
  16446. 8006de2: 681b ldr r3, [r3, #0]
  16447. 8006de4: f1b8 0f0e cmp.w r8, #14
  16448. 8006de8: 9306 str r3, [sp, #24]
  16449. 8006dea: f200 80ed bhi.w 8006fc8 <_dtoa_r+0x450>
  16450. 8006dee: 2d00 cmp r5, #0
  16451. 8006df0: f000 80ea beq.w 8006fc8 <_dtoa_r+0x450>
  16452. 8006df4: e9dd 2302 ldrd r2, r3, [sp, #8]
  16453. 8006df8: f1ba 0f00 cmp.w sl, #0
  16454. 8006dfc: e9cd 230e strd r2, r3, [sp, #56] ; 0x38
  16455. 8006e00: dd77 ble.n 8006ef2 <_dtoa_r+0x37a>
  16456. 8006e02: 4a28 ldr r2, [pc, #160] ; (8006ea4 <_dtoa_r+0x32c>)
  16457. 8006e04: f00a 030f and.w r3, sl, #15
  16458. 8006e08: ea4f 162a mov.w r6, sl, asr #4
  16459. 8006e0c: eb02 03c3 add.w r3, r2, r3, lsl #3
  16460. 8006e10: 06f0 lsls r0, r6, #27
  16461. 8006e12: e9d3 2300 ldrd r2, r3, [r3]
  16462. 8006e16: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  16463. 8006e1a: d568 bpl.n 8006eee <_dtoa_r+0x376>
  16464. 8006e1c: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  16465. 8006e20: 4b21 ldr r3, [pc, #132] ; (8006ea8 <_dtoa_r+0x330>)
  16466. 8006e22: 2503 movs r5, #3
  16467. 8006e24: e9d3 2308 ldrd r2, r3, [r3, #32]
  16468. 8006e28: f7f9 fce0 bl 80007ec <__aeabi_ddiv>
  16469. 8006e2c: e9cd 0102 strd r0, r1, [sp, #8]
  16470. 8006e30: f006 060f and.w r6, r6, #15
  16471. 8006e34: 4f1c ldr r7, [pc, #112] ; (8006ea8 <_dtoa_r+0x330>)
  16472. 8006e36: e04f b.n 8006ed8 <_dtoa_r+0x360>
  16473. 8006e38: 2301 movs r3, #1
  16474. 8006e3a: 9309 str r3, [sp, #36] ; 0x24
  16475. 8006e3c: 9b1f ldr r3, [sp, #124] ; 0x7c
  16476. 8006e3e: 4453 add r3, sl
  16477. 8006e40: f103 0801 add.w r8, r3, #1
  16478. 8006e44: 9304 str r3, [sp, #16]
  16479. 8006e46: 4643 mov r3, r8
  16480. 8006e48: 2b01 cmp r3, #1
  16481. 8006e4a: bfb8 it lt
  16482. 8006e4c: 2301 movlt r3, #1
  16483. 8006e4e: e7ba b.n 8006dc6 <_dtoa_r+0x24e>
  16484. 8006e50: 2300 movs r3, #0
  16485. 8006e52: e7b2 b.n 8006dba <_dtoa_r+0x242>
  16486. 8006e54: 2300 movs r3, #0
  16487. 8006e56: e7f0 b.n 8006e3a <_dtoa_r+0x2c2>
  16488. 8006e58: 2501 movs r5, #1
  16489. 8006e5a: 2300 movs r3, #0
  16490. 8006e5c: 9509 str r5, [sp, #36] ; 0x24
  16491. 8006e5e: 931e str r3, [sp, #120] ; 0x78
  16492. 8006e60: f04f 33ff mov.w r3, #4294967295
  16493. 8006e64: 2200 movs r2, #0
  16494. 8006e66: 9304 str r3, [sp, #16]
  16495. 8006e68: 4698 mov r8, r3
  16496. 8006e6a: 2312 movs r3, #18
  16497. 8006e6c: 921f str r2, [sp, #124] ; 0x7c
  16498. 8006e6e: e7aa b.n 8006dc6 <_dtoa_r+0x24e>
  16499. 8006e70: 2301 movs r3, #1
  16500. 8006e72: 9309 str r3, [sp, #36] ; 0x24
  16501. 8006e74: e7f4 b.n 8006e60 <_dtoa_r+0x2e8>
  16502. 8006e76: bf00 nop
  16503. 8006e78: 636f4361 .word 0x636f4361
  16504. 8006e7c: 3fd287a7 .word 0x3fd287a7
  16505. 8006e80: 8b60c8b3 .word 0x8b60c8b3
  16506. 8006e84: 3fc68a28 .word 0x3fc68a28
  16507. 8006e88: 509f79fb .word 0x509f79fb
  16508. 8006e8c: 3fd34413 .word 0x3fd34413
  16509. 8006e90: 7ff00000 .word 0x7ff00000
  16510. 8006e94: 080089e9 .word 0x080089e9
  16511. 8006e98: 080089e0 .word 0x080089e0
  16512. 8006e9c: 080089bd .word 0x080089bd
  16513. 8006ea0: 3ff80000 .word 0x3ff80000
  16514. 8006ea4: 08008a78 .word 0x08008a78
  16515. 8006ea8: 08008a50 .word 0x08008a50
  16516. 8006eac: 2301 movs r3, #1
  16517. 8006eae: 9304 str r3, [sp, #16]
  16518. 8006eb0: 4698 mov r8, r3
  16519. 8006eb2: 461a mov r2, r3
  16520. 8006eb4: e7da b.n 8006e6c <_dtoa_r+0x2f4>
  16521. 8006eb6: 3101 adds r1, #1
  16522. 8006eb8: 6071 str r1, [r6, #4]
  16523. 8006eba: 0052 lsls r2, r2, #1
  16524. 8006ebc: e787 b.n 8006dce <_dtoa_r+0x256>
  16525. 8006ebe: 07f1 lsls r1, r6, #31
  16526. 8006ec0: d508 bpl.n 8006ed4 <_dtoa_r+0x35c>
  16527. 8006ec2: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16528. 8006ec6: e9d7 2300 ldrd r2, r3, [r7]
  16529. 8006eca: f7f9 fb65 bl 8000598 <__aeabi_dmul>
  16530. 8006ece: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16531. 8006ed2: 3501 adds r5, #1
  16532. 8006ed4: 1076 asrs r6, r6, #1
  16533. 8006ed6: 3708 adds r7, #8
  16534. 8006ed8: 2e00 cmp r6, #0
  16535. 8006eda: d1f0 bne.n 8006ebe <_dtoa_r+0x346>
  16536. 8006edc: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16537. 8006ee0: e9dd 0102 ldrd r0, r1, [sp, #8]
  16538. 8006ee4: f7f9 fc82 bl 80007ec <__aeabi_ddiv>
  16539. 8006ee8: e9cd 0102 strd r0, r1, [sp, #8]
  16540. 8006eec: e01b b.n 8006f26 <_dtoa_r+0x3ae>
  16541. 8006eee: 2502 movs r5, #2
  16542. 8006ef0: e7a0 b.n 8006e34 <_dtoa_r+0x2bc>
  16543. 8006ef2: f000 80a4 beq.w 800703e <_dtoa_r+0x4c6>
  16544. 8006ef6: e9dd 010e ldrd r0, r1, [sp, #56] ; 0x38
  16545. 8006efa: f1ca 0600 rsb r6, sl, #0
  16546. 8006efe: 4ba0 ldr r3, [pc, #640] ; (8007180 <_dtoa_r+0x608>)
  16547. 8006f00: f006 020f and.w r2, r6, #15
  16548. 8006f04: eb03 03c2 add.w r3, r3, r2, lsl #3
  16549. 8006f08: e9d3 2300 ldrd r2, r3, [r3]
  16550. 8006f0c: f7f9 fb44 bl 8000598 <__aeabi_dmul>
  16551. 8006f10: 2502 movs r5, #2
  16552. 8006f12: 2300 movs r3, #0
  16553. 8006f14: e9cd 0102 strd r0, r1, [sp, #8]
  16554. 8006f18: 4f9a ldr r7, [pc, #616] ; (8007184 <_dtoa_r+0x60c>)
  16555. 8006f1a: 1136 asrs r6, r6, #4
  16556. 8006f1c: 2e00 cmp r6, #0
  16557. 8006f1e: f040 8083 bne.w 8007028 <_dtoa_r+0x4b0>
  16558. 8006f22: 2b00 cmp r3, #0
  16559. 8006f24: d1e0 bne.n 8006ee8 <_dtoa_r+0x370>
  16560. 8006f26: 9b0d ldr r3, [sp, #52] ; 0x34
  16561. 8006f28: 2b00 cmp r3, #0
  16562. 8006f2a: f000 808a beq.w 8007042 <_dtoa_r+0x4ca>
  16563. 8006f2e: e9dd 2302 ldrd r2, r3, [sp, #8]
  16564. 8006f32: e9cd 230a strd r2, r3, [sp, #40] ; 0x28
  16565. 8006f36: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16566. 8006f3a: 2200 movs r2, #0
  16567. 8006f3c: 4b92 ldr r3, [pc, #584] ; (8007188 <_dtoa_r+0x610>)
  16568. 8006f3e: f7f9 fd9d bl 8000a7c <__aeabi_dcmplt>
  16569. 8006f42: 2800 cmp r0, #0
  16570. 8006f44: d07d beq.n 8007042 <_dtoa_r+0x4ca>
  16571. 8006f46: f1b8 0f00 cmp.w r8, #0
  16572. 8006f4a: d07a beq.n 8007042 <_dtoa_r+0x4ca>
  16573. 8006f4c: 9b04 ldr r3, [sp, #16]
  16574. 8006f4e: 2b00 cmp r3, #0
  16575. 8006f50: dd36 ble.n 8006fc0 <_dtoa_r+0x448>
  16576. 8006f52: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16577. 8006f56: 2200 movs r2, #0
  16578. 8006f58: 4b8c ldr r3, [pc, #560] ; (800718c <_dtoa_r+0x614>)
  16579. 8006f5a: f7f9 fb1d bl 8000598 <__aeabi_dmul>
  16580. 8006f5e: e9cd 0102 strd r0, r1, [sp, #8]
  16581. 8006f62: 9e04 ldr r6, [sp, #16]
  16582. 8006f64: f10a 37ff add.w r7, sl, #4294967295
  16583. 8006f68: 3501 adds r5, #1
  16584. 8006f6a: 4628 mov r0, r5
  16585. 8006f6c: f7f9 faaa bl 80004c4 <__aeabi_i2d>
  16586. 8006f70: e9dd 2302 ldrd r2, r3, [sp, #8]
  16587. 8006f74: f7f9 fb10 bl 8000598 <__aeabi_dmul>
  16588. 8006f78: 2200 movs r2, #0
  16589. 8006f7a: 4b85 ldr r3, [pc, #532] ; (8007190 <_dtoa_r+0x618>)
  16590. 8006f7c: f7f9 f956 bl 800022c <__adddf3>
  16591. 8006f80: f1a1 7550 sub.w r5, r1, #54525952 ; 0x3400000
  16592. 8006f84: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16593. 8006f88: 950b str r5, [sp, #44] ; 0x2c
  16594. 8006f8a: 2e00 cmp r6, #0
  16595. 8006f8c: d15c bne.n 8007048 <_dtoa_r+0x4d0>
  16596. 8006f8e: e9dd 0102 ldrd r0, r1, [sp, #8]
  16597. 8006f92: 2200 movs r2, #0
  16598. 8006f94: 4b7f ldr r3, [pc, #508] ; (8007194 <_dtoa_r+0x61c>)
  16599. 8006f96: f7f9 f947 bl 8000228 <__aeabi_dsub>
  16600. 8006f9a: 9a0a ldr r2, [sp, #40] ; 0x28
  16601. 8006f9c: 462b mov r3, r5
  16602. 8006f9e: e9cd 0102 strd r0, r1, [sp, #8]
  16603. 8006fa2: f7f9 fd89 bl 8000ab8 <__aeabi_dcmpgt>
  16604. 8006fa6: 2800 cmp r0, #0
  16605. 8006fa8: f040 8281 bne.w 80074ae <_dtoa_r+0x936>
  16606. 8006fac: e9dd 0102 ldrd r0, r1, [sp, #8]
  16607. 8006fb0: 9a0a ldr r2, [sp, #40] ; 0x28
  16608. 8006fb2: f105 4300 add.w r3, r5, #2147483648 ; 0x80000000
  16609. 8006fb6: f7f9 fd61 bl 8000a7c <__aeabi_dcmplt>
  16610. 8006fba: 2800 cmp r0, #0
  16611. 8006fbc: f040 8275 bne.w 80074aa <_dtoa_r+0x932>
  16612. 8006fc0: e9dd 230e ldrd r2, r3, [sp, #56] ; 0x38
  16613. 8006fc4: e9cd 2302 strd r2, r3, [sp, #8]
  16614. 8006fc8: 9b13 ldr r3, [sp, #76] ; 0x4c
  16615. 8006fca: 2b00 cmp r3, #0
  16616. 8006fcc: f2c0 814b blt.w 8007266 <_dtoa_r+0x6ee>
  16617. 8006fd0: f1ba 0f0e cmp.w sl, #14
  16618. 8006fd4: f300 8147 bgt.w 8007266 <_dtoa_r+0x6ee>
  16619. 8006fd8: 4b69 ldr r3, [pc, #420] ; (8007180 <_dtoa_r+0x608>)
  16620. 8006fda: eb03 03ca add.w r3, r3, sl, lsl #3
  16621. 8006fde: e9d3 2300 ldrd r2, r3, [r3]
  16622. 8006fe2: e9cd 2304 strd r2, r3, [sp, #16]
  16623. 8006fe6: 9b1f ldr r3, [sp, #124] ; 0x7c
  16624. 8006fe8: 2b00 cmp r3, #0
  16625. 8006fea: f280 80d7 bge.w 800719c <_dtoa_r+0x624>
  16626. 8006fee: f1b8 0f00 cmp.w r8, #0
  16627. 8006ff2: f300 80d3 bgt.w 800719c <_dtoa_r+0x624>
  16628. 8006ff6: f040 8257 bne.w 80074a8 <_dtoa_r+0x930>
  16629. 8006ffa: e9dd 0104 ldrd r0, r1, [sp, #16]
  16630. 8006ffe: 2200 movs r2, #0
  16631. 8007000: 4b64 ldr r3, [pc, #400] ; (8007194 <_dtoa_r+0x61c>)
  16632. 8007002: f7f9 fac9 bl 8000598 <__aeabi_dmul>
  16633. 8007006: e9dd 2302 ldrd r2, r3, [sp, #8]
  16634. 800700a: f7f9 fd4b bl 8000aa4 <__aeabi_dcmpge>
  16635. 800700e: 4646 mov r6, r8
  16636. 8007010: 4647 mov r7, r8
  16637. 8007012: 2800 cmp r0, #0
  16638. 8007014: f040 822d bne.w 8007472 <_dtoa_r+0x8fa>
  16639. 8007018: 9b06 ldr r3, [sp, #24]
  16640. 800701a: 9a06 ldr r2, [sp, #24]
  16641. 800701c: 1c5d adds r5, r3, #1
  16642. 800701e: 2331 movs r3, #49 ; 0x31
  16643. 8007020: f10a 0a01 add.w sl, sl, #1
  16644. 8007024: 7013 strb r3, [r2, #0]
  16645. 8007026: e228 b.n 800747a <_dtoa_r+0x902>
  16646. 8007028: 07f2 lsls r2, r6, #31
  16647. 800702a: d505 bpl.n 8007038 <_dtoa_r+0x4c0>
  16648. 800702c: e9d7 2300 ldrd r2, r3, [r7]
  16649. 8007030: f7f9 fab2 bl 8000598 <__aeabi_dmul>
  16650. 8007034: 2301 movs r3, #1
  16651. 8007036: 3501 adds r5, #1
  16652. 8007038: 1076 asrs r6, r6, #1
  16653. 800703a: 3708 adds r7, #8
  16654. 800703c: e76e b.n 8006f1c <_dtoa_r+0x3a4>
  16655. 800703e: 2502 movs r5, #2
  16656. 8007040: e771 b.n 8006f26 <_dtoa_r+0x3ae>
  16657. 8007042: 4657 mov r7, sl
  16658. 8007044: 4646 mov r6, r8
  16659. 8007046: e790 b.n 8006f6a <_dtoa_r+0x3f2>
  16660. 8007048: 4b4d ldr r3, [pc, #308] ; (8007180 <_dtoa_r+0x608>)
  16661. 800704a: eb03 03c6 add.w r3, r3, r6, lsl #3
  16662. 800704e: e953 0102 ldrd r0, r1, [r3, #-8]
  16663. 8007052: 9b09 ldr r3, [sp, #36] ; 0x24
  16664. 8007054: 2b00 cmp r3, #0
  16665. 8007056: d048 beq.n 80070ea <_dtoa_r+0x572>
  16666. 8007058: 4602 mov r2, r0
  16667. 800705a: 460b mov r3, r1
  16668. 800705c: 2000 movs r0, #0
  16669. 800705e: 494e ldr r1, [pc, #312] ; (8007198 <_dtoa_r+0x620>)
  16670. 8007060: f7f9 fbc4 bl 80007ec <__aeabi_ddiv>
  16671. 8007064: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16672. 8007068: f7f9 f8de bl 8000228 <__aeabi_dsub>
  16673. 800706c: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16674. 8007070: 9d06 ldr r5, [sp, #24]
  16675. 8007072: e9dd 0102 ldrd r0, r1, [sp, #8]
  16676. 8007076: f7f9 fd3f bl 8000af8 <__aeabi_d2iz>
  16677. 800707a: 9011 str r0, [sp, #68] ; 0x44
  16678. 800707c: f7f9 fa22 bl 80004c4 <__aeabi_i2d>
  16679. 8007080: 4602 mov r2, r0
  16680. 8007082: 460b mov r3, r1
  16681. 8007084: e9dd 0102 ldrd r0, r1, [sp, #8]
  16682. 8007088: f7f9 f8ce bl 8000228 <__aeabi_dsub>
  16683. 800708c: 9b11 ldr r3, [sp, #68] ; 0x44
  16684. 800708e: e9cd 0102 strd r0, r1, [sp, #8]
  16685. 8007092: 3330 adds r3, #48 ; 0x30
  16686. 8007094: f805 3b01 strb.w r3, [r5], #1
  16687. 8007098: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16688. 800709c: f7f9 fcee bl 8000a7c <__aeabi_dcmplt>
  16689. 80070a0: 2800 cmp r0, #0
  16690. 80070a2: d163 bne.n 800716c <_dtoa_r+0x5f4>
  16691. 80070a4: e9dd 2302 ldrd r2, r3, [sp, #8]
  16692. 80070a8: 2000 movs r0, #0
  16693. 80070aa: 4937 ldr r1, [pc, #220] ; (8007188 <_dtoa_r+0x610>)
  16694. 80070ac: f7f9 f8bc bl 8000228 <__aeabi_dsub>
  16695. 80070b0: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16696. 80070b4: f7f9 fce2 bl 8000a7c <__aeabi_dcmplt>
  16697. 80070b8: 2800 cmp r0, #0
  16698. 80070ba: f040 80b5 bne.w 8007228 <_dtoa_r+0x6b0>
  16699. 80070be: 9b06 ldr r3, [sp, #24]
  16700. 80070c0: 1aeb subs r3, r5, r3
  16701. 80070c2: 429e cmp r6, r3
  16702. 80070c4: f77f af7c ble.w 8006fc0 <_dtoa_r+0x448>
  16703. 80070c8: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16704. 80070cc: 2200 movs r2, #0
  16705. 80070ce: 4b2f ldr r3, [pc, #188] ; (800718c <_dtoa_r+0x614>)
  16706. 80070d0: f7f9 fa62 bl 8000598 <__aeabi_dmul>
  16707. 80070d4: 2200 movs r2, #0
  16708. 80070d6: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16709. 80070da: e9dd 0102 ldrd r0, r1, [sp, #8]
  16710. 80070de: 4b2b ldr r3, [pc, #172] ; (800718c <_dtoa_r+0x614>)
  16711. 80070e0: f7f9 fa5a bl 8000598 <__aeabi_dmul>
  16712. 80070e4: e9cd 0102 strd r0, r1, [sp, #8]
  16713. 80070e8: e7c3 b.n 8007072 <_dtoa_r+0x4fa>
  16714. 80070ea: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16715. 80070ee: f7f9 fa53 bl 8000598 <__aeabi_dmul>
  16716. 80070f2: 9b06 ldr r3, [sp, #24]
  16717. 80070f4: e9cd 010a strd r0, r1, [sp, #40] ; 0x28
  16718. 80070f8: 199d adds r5, r3, r6
  16719. 80070fa: 461e mov r6, r3
  16720. 80070fc: e9dd 0102 ldrd r0, r1, [sp, #8]
  16721. 8007100: f7f9 fcfa bl 8000af8 <__aeabi_d2iz>
  16722. 8007104: 9011 str r0, [sp, #68] ; 0x44
  16723. 8007106: f7f9 f9dd bl 80004c4 <__aeabi_i2d>
  16724. 800710a: 4602 mov r2, r0
  16725. 800710c: 460b mov r3, r1
  16726. 800710e: e9dd 0102 ldrd r0, r1, [sp, #8]
  16727. 8007112: f7f9 f889 bl 8000228 <__aeabi_dsub>
  16728. 8007116: 9b11 ldr r3, [sp, #68] ; 0x44
  16729. 8007118: e9cd 0102 strd r0, r1, [sp, #8]
  16730. 800711c: 3330 adds r3, #48 ; 0x30
  16731. 800711e: f806 3b01 strb.w r3, [r6], #1
  16732. 8007122: 42ae cmp r6, r5
  16733. 8007124: f04f 0200 mov.w r2, #0
  16734. 8007128: d124 bne.n 8007174 <_dtoa_r+0x5fc>
  16735. 800712a: e9dd 010a ldrd r0, r1, [sp, #40] ; 0x28
  16736. 800712e: 4b1a ldr r3, [pc, #104] ; (8007198 <_dtoa_r+0x620>)
  16737. 8007130: f7f9 f87c bl 800022c <__adddf3>
  16738. 8007134: 4602 mov r2, r0
  16739. 8007136: 460b mov r3, r1
  16740. 8007138: e9dd 0102 ldrd r0, r1, [sp, #8]
  16741. 800713c: f7f9 fcbc bl 8000ab8 <__aeabi_dcmpgt>
  16742. 8007140: 2800 cmp r0, #0
  16743. 8007142: d171 bne.n 8007228 <_dtoa_r+0x6b0>
  16744. 8007144: e9dd 230a ldrd r2, r3, [sp, #40] ; 0x28
  16745. 8007148: 2000 movs r0, #0
  16746. 800714a: 4913 ldr r1, [pc, #76] ; (8007198 <_dtoa_r+0x620>)
  16747. 800714c: f7f9 f86c bl 8000228 <__aeabi_dsub>
  16748. 8007150: 4602 mov r2, r0
  16749. 8007152: 460b mov r3, r1
  16750. 8007154: e9dd 0102 ldrd r0, r1, [sp, #8]
  16751. 8007158: f7f9 fc90 bl 8000a7c <__aeabi_dcmplt>
  16752. 800715c: 2800 cmp r0, #0
  16753. 800715e: f43f af2f beq.w 8006fc0 <_dtoa_r+0x448>
  16754. 8007162: f815 3c01 ldrb.w r3, [r5, #-1]
  16755. 8007166: 1e6a subs r2, r5, #1
  16756. 8007168: 2b30 cmp r3, #48 ; 0x30
  16757. 800716a: d001 beq.n 8007170 <_dtoa_r+0x5f8>
  16758. 800716c: 46ba mov sl, r7
  16759. 800716e: e04a b.n 8007206 <_dtoa_r+0x68e>
  16760. 8007170: 4615 mov r5, r2
  16761. 8007172: e7f6 b.n 8007162 <_dtoa_r+0x5ea>
  16762. 8007174: 4b05 ldr r3, [pc, #20] ; (800718c <_dtoa_r+0x614>)
  16763. 8007176: f7f9 fa0f bl 8000598 <__aeabi_dmul>
  16764. 800717a: e9cd 0102 strd r0, r1, [sp, #8]
  16765. 800717e: e7bd b.n 80070fc <_dtoa_r+0x584>
  16766. 8007180: 08008a78 .word 0x08008a78
  16767. 8007184: 08008a50 .word 0x08008a50
  16768. 8007188: 3ff00000 .word 0x3ff00000
  16769. 800718c: 40240000 .word 0x40240000
  16770. 8007190: 401c0000 .word 0x401c0000
  16771. 8007194: 40140000 .word 0x40140000
  16772. 8007198: 3fe00000 .word 0x3fe00000
  16773. 800719c: 9d06 ldr r5, [sp, #24]
  16774. 800719e: e9dd 6702 ldrd r6, r7, [sp, #8]
  16775. 80071a2: e9dd 2304 ldrd r2, r3, [sp, #16]
  16776. 80071a6: 4630 mov r0, r6
  16777. 80071a8: 4639 mov r1, r7
  16778. 80071aa: f7f9 fb1f bl 80007ec <__aeabi_ddiv>
  16779. 80071ae: f7f9 fca3 bl 8000af8 <__aeabi_d2iz>
  16780. 80071b2: 4681 mov r9, r0
  16781. 80071b4: f7f9 f986 bl 80004c4 <__aeabi_i2d>
  16782. 80071b8: e9dd 2304 ldrd r2, r3, [sp, #16]
  16783. 80071bc: f7f9 f9ec bl 8000598 <__aeabi_dmul>
  16784. 80071c0: 4602 mov r2, r0
  16785. 80071c2: 460b mov r3, r1
  16786. 80071c4: 4630 mov r0, r6
  16787. 80071c6: 4639 mov r1, r7
  16788. 80071c8: f7f9 f82e bl 8000228 <__aeabi_dsub>
  16789. 80071cc: f109 0630 add.w r6, r9, #48 ; 0x30
  16790. 80071d0: f805 6b01 strb.w r6, [r5], #1
  16791. 80071d4: 9e06 ldr r6, [sp, #24]
  16792. 80071d6: 4602 mov r2, r0
  16793. 80071d8: 1bae subs r6, r5, r6
  16794. 80071da: 45b0 cmp r8, r6
  16795. 80071dc: 460b mov r3, r1
  16796. 80071de: d135 bne.n 800724c <_dtoa_r+0x6d4>
  16797. 80071e0: f7f9 f824 bl 800022c <__adddf3>
  16798. 80071e4: e9dd 2304 ldrd r2, r3, [sp, #16]
  16799. 80071e8: 4606 mov r6, r0
  16800. 80071ea: 460f mov r7, r1
  16801. 80071ec: f7f9 fc64 bl 8000ab8 <__aeabi_dcmpgt>
  16802. 80071f0: b9c8 cbnz r0, 8007226 <_dtoa_r+0x6ae>
  16803. 80071f2: e9dd 2304 ldrd r2, r3, [sp, #16]
  16804. 80071f6: 4630 mov r0, r6
  16805. 80071f8: 4639 mov r1, r7
  16806. 80071fa: f7f9 fc35 bl 8000a68 <__aeabi_dcmpeq>
  16807. 80071fe: b110 cbz r0, 8007206 <_dtoa_r+0x68e>
  16808. 8007200: f019 0f01 tst.w r9, #1
  16809. 8007204: d10f bne.n 8007226 <_dtoa_r+0x6ae>
  16810. 8007206: 4659 mov r1, fp
  16811. 8007208: 4620 mov r0, r4
  16812. 800720a: f000 fcaa bl 8007b62 <_Bfree>
  16813. 800720e: 2300 movs r3, #0
  16814. 8007210: 9a20 ldr r2, [sp, #128] ; 0x80
  16815. 8007212: 702b strb r3, [r5, #0]
  16816. 8007214: f10a 0301 add.w r3, sl, #1
  16817. 8007218: 6013 str r3, [r2, #0]
  16818. 800721a: 9b22 ldr r3, [sp, #136] ; 0x88
  16819. 800721c: 2b00 cmp r3, #0
  16820. 800721e: f43f acf3 beq.w 8006c08 <_dtoa_r+0x90>
  16821. 8007222: 601d str r5, [r3, #0]
  16822. 8007224: e4f0 b.n 8006c08 <_dtoa_r+0x90>
  16823. 8007226: 4657 mov r7, sl
  16824. 8007228: f815 2c01 ldrb.w r2, [r5, #-1]
  16825. 800722c: 1e6b subs r3, r5, #1
  16826. 800722e: 2a39 cmp r2, #57 ; 0x39
  16827. 8007230: d106 bne.n 8007240 <_dtoa_r+0x6c8>
  16828. 8007232: 9a06 ldr r2, [sp, #24]
  16829. 8007234: 429a cmp r2, r3
  16830. 8007236: d107 bne.n 8007248 <_dtoa_r+0x6d0>
  16831. 8007238: 2330 movs r3, #48 ; 0x30
  16832. 800723a: 7013 strb r3, [r2, #0]
  16833. 800723c: 4613 mov r3, r2
  16834. 800723e: 3701 adds r7, #1
  16835. 8007240: 781a ldrb r2, [r3, #0]
  16836. 8007242: 3201 adds r2, #1
  16837. 8007244: 701a strb r2, [r3, #0]
  16838. 8007246: e791 b.n 800716c <_dtoa_r+0x5f4>
  16839. 8007248: 461d mov r5, r3
  16840. 800724a: e7ed b.n 8007228 <_dtoa_r+0x6b0>
  16841. 800724c: 2200 movs r2, #0
  16842. 800724e: 4b99 ldr r3, [pc, #612] ; (80074b4 <_dtoa_r+0x93c>)
  16843. 8007250: f7f9 f9a2 bl 8000598 <__aeabi_dmul>
  16844. 8007254: 2200 movs r2, #0
  16845. 8007256: 2300 movs r3, #0
  16846. 8007258: 4606 mov r6, r0
  16847. 800725a: 460f mov r7, r1
  16848. 800725c: f7f9 fc04 bl 8000a68 <__aeabi_dcmpeq>
  16849. 8007260: 2800 cmp r0, #0
  16850. 8007262: d09e beq.n 80071a2 <_dtoa_r+0x62a>
  16851. 8007264: e7cf b.n 8007206 <_dtoa_r+0x68e>
  16852. 8007266: 9a09 ldr r2, [sp, #36] ; 0x24
  16853. 8007268: 2a00 cmp r2, #0
  16854. 800726a: f000 8088 beq.w 800737e <_dtoa_r+0x806>
  16855. 800726e: 9a1e ldr r2, [sp, #120] ; 0x78
  16856. 8007270: 2a01 cmp r2, #1
  16857. 8007272: dc6d bgt.n 8007350 <_dtoa_r+0x7d8>
  16858. 8007274: 9a10 ldr r2, [sp, #64] ; 0x40
  16859. 8007276: 2a00 cmp r2, #0
  16860. 8007278: d066 beq.n 8007348 <_dtoa_r+0x7d0>
  16861. 800727a: f203 4333 addw r3, r3, #1075 ; 0x433
  16862. 800727e: 464d mov r5, r9
  16863. 8007280: 9e08 ldr r6, [sp, #32]
  16864. 8007282: 9a07 ldr r2, [sp, #28]
  16865. 8007284: 2101 movs r1, #1
  16866. 8007286: 441a add r2, r3
  16867. 8007288: 4620 mov r0, r4
  16868. 800728a: 4499 add r9, r3
  16869. 800728c: 9207 str r2, [sp, #28]
  16870. 800728e: f000 fd08 bl 8007ca2 <__i2b>
  16871. 8007292: 4607 mov r7, r0
  16872. 8007294: 2d00 cmp r5, #0
  16873. 8007296: dd0b ble.n 80072b0 <_dtoa_r+0x738>
  16874. 8007298: 9b07 ldr r3, [sp, #28]
  16875. 800729a: 2b00 cmp r3, #0
  16876. 800729c: dd08 ble.n 80072b0 <_dtoa_r+0x738>
  16877. 800729e: 42ab cmp r3, r5
  16878. 80072a0: bfa8 it ge
  16879. 80072a2: 462b movge r3, r5
  16880. 80072a4: 9a07 ldr r2, [sp, #28]
  16881. 80072a6: eba9 0903 sub.w r9, r9, r3
  16882. 80072aa: 1aed subs r5, r5, r3
  16883. 80072ac: 1ad3 subs r3, r2, r3
  16884. 80072ae: 9307 str r3, [sp, #28]
  16885. 80072b0: 9b08 ldr r3, [sp, #32]
  16886. 80072b2: b1eb cbz r3, 80072f0 <_dtoa_r+0x778>
  16887. 80072b4: 9b09 ldr r3, [sp, #36] ; 0x24
  16888. 80072b6: 2b00 cmp r3, #0
  16889. 80072b8: d065 beq.n 8007386 <_dtoa_r+0x80e>
  16890. 80072ba: b18e cbz r6, 80072e0 <_dtoa_r+0x768>
  16891. 80072bc: 4639 mov r1, r7
  16892. 80072be: 4632 mov r2, r6
  16893. 80072c0: 4620 mov r0, r4
  16894. 80072c2: f000 fd8d bl 8007de0 <__pow5mult>
  16895. 80072c6: 465a mov r2, fp
  16896. 80072c8: 4601 mov r1, r0
  16897. 80072ca: 4607 mov r7, r0
  16898. 80072cc: 4620 mov r0, r4
  16899. 80072ce: f000 fcf1 bl 8007cb4 <__multiply>
  16900. 80072d2: 4659 mov r1, fp
  16901. 80072d4: 900a str r0, [sp, #40] ; 0x28
  16902. 80072d6: 4620 mov r0, r4
  16903. 80072d8: f000 fc43 bl 8007b62 <_Bfree>
  16904. 80072dc: 9b0a ldr r3, [sp, #40] ; 0x28
  16905. 80072de: 469b mov fp, r3
  16906. 80072e0: 9b08 ldr r3, [sp, #32]
  16907. 80072e2: 1b9a subs r2, r3, r6
  16908. 80072e4: d004 beq.n 80072f0 <_dtoa_r+0x778>
  16909. 80072e6: 4659 mov r1, fp
  16910. 80072e8: 4620 mov r0, r4
  16911. 80072ea: f000 fd79 bl 8007de0 <__pow5mult>
  16912. 80072ee: 4683 mov fp, r0
  16913. 80072f0: 2101 movs r1, #1
  16914. 80072f2: 4620 mov r0, r4
  16915. 80072f4: f000 fcd5 bl 8007ca2 <__i2b>
  16916. 80072f8: 9b0c ldr r3, [sp, #48] ; 0x30
  16917. 80072fa: 4606 mov r6, r0
  16918. 80072fc: 2b00 cmp r3, #0
  16919. 80072fe: f000 81c6 beq.w 800768e <_dtoa_r+0xb16>
  16920. 8007302: 461a mov r2, r3
  16921. 8007304: 4601 mov r1, r0
  16922. 8007306: 4620 mov r0, r4
  16923. 8007308: f000 fd6a bl 8007de0 <__pow5mult>
  16924. 800730c: 9b1e ldr r3, [sp, #120] ; 0x78
  16925. 800730e: 4606 mov r6, r0
  16926. 8007310: 2b01 cmp r3, #1
  16927. 8007312: dc3e bgt.n 8007392 <_dtoa_r+0x81a>
  16928. 8007314: 9b02 ldr r3, [sp, #8]
  16929. 8007316: 2b00 cmp r3, #0
  16930. 8007318: d137 bne.n 800738a <_dtoa_r+0x812>
  16931. 800731a: 9b03 ldr r3, [sp, #12]
  16932. 800731c: f3c3 0313 ubfx r3, r3, #0, #20
  16933. 8007320: 2b00 cmp r3, #0
  16934. 8007322: d134 bne.n 800738e <_dtoa_r+0x816>
  16935. 8007324: 9b03 ldr r3, [sp, #12]
  16936. 8007326: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  16937. 800732a: 0d1b lsrs r3, r3, #20
  16938. 800732c: 051b lsls r3, r3, #20
  16939. 800732e: b12b cbz r3, 800733c <_dtoa_r+0x7c4>
  16940. 8007330: 9b07 ldr r3, [sp, #28]
  16941. 8007332: f109 0901 add.w r9, r9, #1
  16942. 8007336: 3301 adds r3, #1
  16943. 8007338: 9307 str r3, [sp, #28]
  16944. 800733a: 2301 movs r3, #1
  16945. 800733c: 9308 str r3, [sp, #32]
  16946. 800733e: 9b0c ldr r3, [sp, #48] ; 0x30
  16947. 8007340: 2b00 cmp r3, #0
  16948. 8007342: d128 bne.n 8007396 <_dtoa_r+0x81e>
  16949. 8007344: 2001 movs r0, #1
  16950. 8007346: e02e b.n 80073a6 <_dtoa_r+0x82e>
  16951. 8007348: 9b12 ldr r3, [sp, #72] ; 0x48
  16952. 800734a: f1c3 0336 rsb r3, r3, #54 ; 0x36
  16953. 800734e: e796 b.n 800727e <_dtoa_r+0x706>
  16954. 8007350: 9b08 ldr r3, [sp, #32]
  16955. 8007352: f108 36ff add.w r6, r8, #4294967295
  16956. 8007356: 42b3 cmp r3, r6
  16957. 8007358: bfb7 itett lt
  16958. 800735a: 9b08 ldrlt r3, [sp, #32]
  16959. 800735c: 1b9e subge r6, r3, r6
  16960. 800735e: 1af2 sublt r2, r6, r3
  16961. 8007360: 9b0c ldrlt r3, [sp, #48] ; 0x30
  16962. 8007362: bfbf itttt lt
  16963. 8007364: 9608 strlt r6, [sp, #32]
  16964. 8007366: 189b addlt r3, r3, r2
  16965. 8007368: 930c strlt r3, [sp, #48] ; 0x30
  16966. 800736a: 2600 movlt r6, #0
  16967. 800736c: f1b8 0f00 cmp.w r8, #0
  16968. 8007370: bfb9 ittee lt
  16969. 8007372: eba9 0508 sublt.w r5, r9, r8
  16970. 8007376: 2300 movlt r3, #0
  16971. 8007378: 464d movge r5, r9
  16972. 800737a: 4643 movge r3, r8
  16973. 800737c: e781 b.n 8007282 <_dtoa_r+0x70a>
  16974. 800737e: 9e08 ldr r6, [sp, #32]
  16975. 8007380: 464d mov r5, r9
  16976. 8007382: 9f09 ldr r7, [sp, #36] ; 0x24
  16977. 8007384: e786 b.n 8007294 <_dtoa_r+0x71c>
  16978. 8007386: 9a08 ldr r2, [sp, #32]
  16979. 8007388: e7ad b.n 80072e6 <_dtoa_r+0x76e>
  16980. 800738a: 2300 movs r3, #0
  16981. 800738c: e7d6 b.n 800733c <_dtoa_r+0x7c4>
  16982. 800738e: 9b02 ldr r3, [sp, #8]
  16983. 8007390: e7d4 b.n 800733c <_dtoa_r+0x7c4>
  16984. 8007392: 2300 movs r3, #0
  16985. 8007394: 9308 str r3, [sp, #32]
  16986. 8007396: 6933 ldr r3, [r6, #16]
  16987. 8007398: eb06 0383 add.w r3, r6, r3, lsl #2
  16988. 800739c: 6918 ldr r0, [r3, #16]
  16989. 800739e: f000 fc32 bl 8007c06 <__hi0bits>
  16990. 80073a2: f1c0 0020 rsb r0, r0, #32
  16991. 80073a6: 9b07 ldr r3, [sp, #28]
  16992. 80073a8: 4418 add r0, r3
  16993. 80073aa: f010 001f ands.w r0, r0, #31
  16994. 80073ae: d047 beq.n 8007440 <_dtoa_r+0x8c8>
  16995. 80073b0: f1c0 0320 rsb r3, r0, #32
  16996. 80073b4: 2b04 cmp r3, #4
  16997. 80073b6: dd3b ble.n 8007430 <_dtoa_r+0x8b8>
  16998. 80073b8: 9b07 ldr r3, [sp, #28]
  16999. 80073ba: f1c0 001c rsb r0, r0, #28
  17000. 80073be: 4481 add r9, r0
  17001. 80073c0: 4405 add r5, r0
  17002. 80073c2: 4403 add r3, r0
  17003. 80073c4: 9307 str r3, [sp, #28]
  17004. 80073c6: f1b9 0f00 cmp.w r9, #0
  17005. 80073ca: dd05 ble.n 80073d8 <_dtoa_r+0x860>
  17006. 80073cc: 4659 mov r1, fp
  17007. 80073ce: 464a mov r2, r9
  17008. 80073d0: 4620 mov r0, r4
  17009. 80073d2: f000 fd53 bl 8007e7c <__lshift>
  17010. 80073d6: 4683 mov fp, r0
  17011. 80073d8: 9b07 ldr r3, [sp, #28]
  17012. 80073da: 2b00 cmp r3, #0
  17013. 80073dc: dd05 ble.n 80073ea <_dtoa_r+0x872>
  17014. 80073de: 4631 mov r1, r6
  17015. 80073e0: 461a mov r2, r3
  17016. 80073e2: 4620 mov r0, r4
  17017. 80073e4: f000 fd4a bl 8007e7c <__lshift>
  17018. 80073e8: 4606 mov r6, r0
  17019. 80073ea: 9b0d ldr r3, [sp, #52] ; 0x34
  17020. 80073ec: b353 cbz r3, 8007444 <_dtoa_r+0x8cc>
  17021. 80073ee: 4631 mov r1, r6
  17022. 80073f0: 4658 mov r0, fp
  17023. 80073f2: f000 fd97 bl 8007f24 <__mcmp>
  17024. 80073f6: 2800 cmp r0, #0
  17025. 80073f8: da24 bge.n 8007444 <_dtoa_r+0x8cc>
  17026. 80073fa: 2300 movs r3, #0
  17027. 80073fc: 4659 mov r1, fp
  17028. 80073fe: 220a movs r2, #10
  17029. 8007400: 4620 mov r0, r4
  17030. 8007402: f000 fbc5 bl 8007b90 <__multadd>
  17031. 8007406: 9b09 ldr r3, [sp, #36] ; 0x24
  17032. 8007408: f10a 3aff add.w sl, sl, #4294967295
  17033. 800740c: 4683 mov fp, r0
  17034. 800740e: 2b00 cmp r3, #0
  17035. 8007410: f000 8144 beq.w 800769c <_dtoa_r+0xb24>
  17036. 8007414: 2300 movs r3, #0
  17037. 8007416: 4639 mov r1, r7
  17038. 8007418: 220a movs r2, #10
  17039. 800741a: 4620 mov r0, r4
  17040. 800741c: f000 fbb8 bl 8007b90 <__multadd>
  17041. 8007420: 9b04 ldr r3, [sp, #16]
  17042. 8007422: 4607 mov r7, r0
  17043. 8007424: 2b00 cmp r3, #0
  17044. 8007426: dc4d bgt.n 80074c4 <_dtoa_r+0x94c>
  17045. 8007428: 9b1e ldr r3, [sp, #120] ; 0x78
  17046. 800742a: 2b02 cmp r3, #2
  17047. 800742c: dd4a ble.n 80074c4 <_dtoa_r+0x94c>
  17048. 800742e: e011 b.n 8007454 <_dtoa_r+0x8dc>
  17049. 8007430: d0c9 beq.n 80073c6 <_dtoa_r+0x84e>
  17050. 8007432: 9a07 ldr r2, [sp, #28]
  17051. 8007434: 331c adds r3, #28
  17052. 8007436: 441a add r2, r3
  17053. 8007438: 4499 add r9, r3
  17054. 800743a: 441d add r5, r3
  17055. 800743c: 4613 mov r3, r2
  17056. 800743e: e7c1 b.n 80073c4 <_dtoa_r+0x84c>
  17057. 8007440: 4603 mov r3, r0
  17058. 8007442: e7f6 b.n 8007432 <_dtoa_r+0x8ba>
  17059. 8007444: f1b8 0f00 cmp.w r8, #0
  17060. 8007448: dc36 bgt.n 80074b8 <_dtoa_r+0x940>
  17061. 800744a: 9b1e ldr r3, [sp, #120] ; 0x78
  17062. 800744c: 2b02 cmp r3, #2
  17063. 800744e: dd33 ble.n 80074b8 <_dtoa_r+0x940>
  17064. 8007450: f8cd 8010 str.w r8, [sp, #16]
  17065. 8007454: 9b04 ldr r3, [sp, #16]
  17066. 8007456: b963 cbnz r3, 8007472 <_dtoa_r+0x8fa>
  17067. 8007458: 4631 mov r1, r6
  17068. 800745a: 2205 movs r2, #5
  17069. 800745c: 4620 mov r0, r4
  17070. 800745e: f000 fb97 bl 8007b90 <__multadd>
  17071. 8007462: 4601 mov r1, r0
  17072. 8007464: 4606 mov r6, r0
  17073. 8007466: 4658 mov r0, fp
  17074. 8007468: f000 fd5c bl 8007f24 <__mcmp>
  17075. 800746c: 2800 cmp r0, #0
  17076. 800746e: f73f add3 bgt.w 8007018 <_dtoa_r+0x4a0>
  17077. 8007472: 9b1f ldr r3, [sp, #124] ; 0x7c
  17078. 8007474: 9d06 ldr r5, [sp, #24]
  17079. 8007476: ea6f 0a03 mvn.w sl, r3
  17080. 800747a: f04f 0900 mov.w r9, #0
  17081. 800747e: 4631 mov r1, r6
  17082. 8007480: 4620 mov r0, r4
  17083. 8007482: f000 fb6e bl 8007b62 <_Bfree>
  17084. 8007486: 2f00 cmp r7, #0
  17085. 8007488: f43f aebd beq.w 8007206 <_dtoa_r+0x68e>
  17086. 800748c: f1b9 0f00 cmp.w r9, #0
  17087. 8007490: d005 beq.n 800749e <_dtoa_r+0x926>
  17088. 8007492: 45b9 cmp r9, r7
  17089. 8007494: d003 beq.n 800749e <_dtoa_r+0x926>
  17090. 8007496: 4649 mov r1, r9
  17091. 8007498: 4620 mov r0, r4
  17092. 800749a: f000 fb62 bl 8007b62 <_Bfree>
  17093. 800749e: 4639 mov r1, r7
  17094. 80074a0: 4620 mov r0, r4
  17095. 80074a2: f000 fb5e bl 8007b62 <_Bfree>
  17096. 80074a6: e6ae b.n 8007206 <_dtoa_r+0x68e>
  17097. 80074a8: 2600 movs r6, #0
  17098. 80074aa: 4637 mov r7, r6
  17099. 80074ac: e7e1 b.n 8007472 <_dtoa_r+0x8fa>
  17100. 80074ae: 46ba mov sl, r7
  17101. 80074b0: 4637 mov r7, r6
  17102. 80074b2: e5b1 b.n 8007018 <_dtoa_r+0x4a0>
  17103. 80074b4: 40240000 .word 0x40240000
  17104. 80074b8: 9b09 ldr r3, [sp, #36] ; 0x24
  17105. 80074ba: f8cd 8010 str.w r8, [sp, #16]
  17106. 80074be: 2b00 cmp r3, #0
  17107. 80074c0: f000 80f3 beq.w 80076aa <_dtoa_r+0xb32>
  17108. 80074c4: 2d00 cmp r5, #0
  17109. 80074c6: dd05 ble.n 80074d4 <_dtoa_r+0x95c>
  17110. 80074c8: 4639 mov r1, r7
  17111. 80074ca: 462a mov r2, r5
  17112. 80074cc: 4620 mov r0, r4
  17113. 80074ce: f000 fcd5 bl 8007e7c <__lshift>
  17114. 80074d2: 4607 mov r7, r0
  17115. 80074d4: 9b08 ldr r3, [sp, #32]
  17116. 80074d6: 2b00 cmp r3, #0
  17117. 80074d8: d04c beq.n 8007574 <_dtoa_r+0x9fc>
  17118. 80074da: 6879 ldr r1, [r7, #4]
  17119. 80074dc: 4620 mov r0, r4
  17120. 80074de: f000 fb0c bl 8007afa <_Balloc>
  17121. 80074e2: 4605 mov r5, r0
  17122. 80074e4: 693a ldr r2, [r7, #16]
  17123. 80074e6: f107 010c add.w r1, r7, #12
  17124. 80074ea: 3202 adds r2, #2
  17125. 80074ec: 0092 lsls r2, r2, #2
  17126. 80074ee: 300c adds r0, #12
  17127. 80074f0: f000 faf8 bl 8007ae4 <memcpy>
  17128. 80074f4: 2201 movs r2, #1
  17129. 80074f6: 4629 mov r1, r5
  17130. 80074f8: 4620 mov r0, r4
  17131. 80074fa: f000 fcbf bl 8007e7c <__lshift>
  17132. 80074fe: 46b9 mov r9, r7
  17133. 8007500: 4607 mov r7, r0
  17134. 8007502: 9b06 ldr r3, [sp, #24]
  17135. 8007504: 9307 str r3, [sp, #28]
  17136. 8007506: 9b02 ldr r3, [sp, #8]
  17137. 8007508: f003 0301 and.w r3, r3, #1
  17138. 800750c: 9308 str r3, [sp, #32]
  17139. 800750e: 4631 mov r1, r6
  17140. 8007510: 4658 mov r0, fp
  17141. 8007512: f7ff faa3 bl 8006a5c <quorem>
  17142. 8007516: 4649 mov r1, r9
  17143. 8007518: 4605 mov r5, r0
  17144. 800751a: f100 0830 add.w r8, r0, #48 ; 0x30
  17145. 800751e: 4658 mov r0, fp
  17146. 8007520: f000 fd00 bl 8007f24 <__mcmp>
  17147. 8007524: 463a mov r2, r7
  17148. 8007526: 9002 str r0, [sp, #8]
  17149. 8007528: 4631 mov r1, r6
  17150. 800752a: 4620 mov r0, r4
  17151. 800752c: f000 fd14 bl 8007f58 <__mdiff>
  17152. 8007530: 68c3 ldr r3, [r0, #12]
  17153. 8007532: 4602 mov r2, r0
  17154. 8007534: bb03 cbnz r3, 8007578 <_dtoa_r+0xa00>
  17155. 8007536: 4601 mov r1, r0
  17156. 8007538: 9009 str r0, [sp, #36] ; 0x24
  17157. 800753a: 4658 mov r0, fp
  17158. 800753c: f000 fcf2 bl 8007f24 <__mcmp>
  17159. 8007540: 4603 mov r3, r0
  17160. 8007542: 9a09 ldr r2, [sp, #36] ; 0x24
  17161. 8007544: 4611 mov r1, r2
  17162. 8007546: 4620 mov r0, r4
  17163. 8007548: 9309 str r3, [sp, #36] ; 0x24
  17164. 800754a: f000 fb0a bl 8007b62 <_Bfree>
  17165. 800754e: 9b09 ldr r3, [sp, #36] ; 0x24
  17166. 8007550: b9a3 cbnz r3, 800757c <_dtoa_r+0xa04>
  17167. 8007552: 9a1e ldr r2, [sp, #120] ; 0x78
  17168. 8007554: b992 cbnz r2, 800757c <_dtoa_r+0xa04>
  17169. 8007556: 9a08 ldr r2, [sp, #32]
  17170. 8007558: b982 cbnz r2, 800757c <_dtoa_r+0xa04>
  17171. 800755a: f1b8 0f39 cmp.w r8, #57 ; 0x39
  17172. 800755e: d029 beq.n 80075b4 <_dtoa_r+0xa3c>
  17173. 8007560: 9b02 ldr r3, [sp, #8]
  17174. 8007562: 2b00 cmp r3, #0
  17175. 8007564: dd01 ble.n 800756a <_dtoa_r+0x9f2>
  17176. 8007566: f105 0831 add.w r8, r5, #49 ; 0x31
  17177. 800756a: 9b07 ldr r3, [sp, #28]
  17178. 800756c: 1c5d adds r5, r3, #1
  17179. 800756e: f883 8000 strb.w r8, [r3]
  17180. 8007572: e784 b.n 800747e <_dtoa_r+0x906>
  17181. 8007574: 4638 mov r0, r7
  17182. 8007576: e7c2 b.n 80074fe <_dtoa_r+0x986>
  17183. 8007578: 2301 movs r3, #1
  17184. 800757a: e7e3 b.n 8007544 <_dtoa_r+0x9cc>
  17185. 800757c: 9a02 ldr r2, [sp, #8]
  17186. 800757e: 2a00 cmp r2, #0
  17187. 8007580: db04 blt.n 800758c <_dtoa_r+0xa14>
  17188. 8007582: d123 bne.n 80075cc <_dtoa_r+0xa54>
  17189. 8007584: 9a1e ldr r2, [sp, #120] ; 0x78
  17190. 8007586: bb0a cbnz r2, 80075cc <_dtoa_r+0xa54>
  17191. 8007588: 9a08 ldr r2, [sp, #32]
  17192. 800758a: b9fa cbnz r2, 80075cc <_dtoa_r+0xa54>
  17193. 800758c: 2b00 cmp r3, #0
  17194. 800758e: ddec ble.n 800756a <_dtoa_r+0x9f2>
  17195. 8007590: 4659 mov r1, fp
  17196. 8007592: 2201 movs r2, #1
  17197. 8007594: 4620 mov r0, r4
  17198. 8007596: f000 fc71 bl 8007e7c <__lshift>
  17199. 800759a: 4631 mov r1, r6
  17200. 800759c: 4683 mov fp, r0
  17201. 800759e: f000 fcc1 bl 8007f24 <__mcmp>
  17202. 80075a2: 2800 cmp r0, #0
  17203. 80075a4: dc03 bgt.n 80075ae <_dtoa_r+0xa36>
  17204. 80075a6: d1e0 bne.n 800756a <_dtoa_r+0x9f2>
  17205. 80075a8: f018 0f01 tst.w r8, #1
  17206. 80075ac: d0dd beq.n 800756a <_dtoa_r+0x9f2>
  17207. 80075ae: f1b8 0f39 cmp.w r8, #57 ; 0x39
  17208. 80075b2: d1d8 bne.n 8007566 <_dtoa_r+0x9ee>
  17209. 80075b4: 9b07 ldr r3, [sp, #28]
  17210. 80075b6: 9a07 ldr r2, [sp, #28]
  17211. 80075b8: 1c5d adds r5, r3, #1
  17212. 80075ba: 2339 movs r3, #57 ; 0x39
  17213. 80075bc: 7013 strb r3, [r2, #0]
  17214. 80075be: f815 3c01 ldrb.w r3, [r5, #-1]
  17215. 80075c2: 1e6a subs r2, r5, #1
  17216. 80075c4: 2b39 cmp r3, #57 ; 0x39
  17217. 80075c6: d04d beq.n 8007664 <_dtoa_r+0xaec>
  17218. 80075c8: 3301 adds r3, #1
  17219. 80075ca: e052 b.n 8007672 <_dtoa_r+0xafa>
  17220. 80075cc: 9a07 ldr r2, [sp, #28]
  17221. 80075ce: 2b00 cmp r3, #0
  17222. 80075d0: f102 0501 add.w r5, r2, #1
  17223. 80075d4: dd06 ble.n 80075e4 <_dtoa_r+0xa6c>
  17224. 80075d6: f1b8 0f39 cmp.w r8, #57 ; 0x39
  17225. 80075da: d0eb beq.n 80075b4 <_dtoa_r+0xa3c>
  17226. 80075dc: f108 0801 add.w r8, r8, #1
  17227. 80075e0: 9b07 ldr r3, [sp, #28]
  17228. 80075e2: e7c4 b.n 800756e <_dtoa_r+0x9f6>
  17229. 80075e4: 9b06 ldr r3, [sp, #24]
  17230. 80075e6: 9a04 ldr r2, [sp, #16]
  17231. 80075e8: 1aeb subs r3, r5, r3
  17232. 80075ea: 4293 cmp r3, r2
  17233. 80075ec: f805 8c01 strb.w r8, [r5, #-1]
  17234. 80075f0: d021 beq.n 8007636 <_dtoa_r+0xabe>
  17235. 80075f2: 4659 mov r1, fp
  17236. 80075f4: 2300 movs r3, #0
  17237. 80075f6: 220a movs r2, #10
  17238. 80075f8: 4620 mov r0, r4
  17239. 80075fa: f000 fac9 bl 8007b90 <__multadd>
  17240. 80075fe: 45b9 cmp r9, r7
  17241. 8007600: 4683 mov fp, r0
  17242. 8007602: f04f 0300 mov.w r3, #0
  17243. 8007606: f04f 020a mov.w r2, #10
  17244. 800760a: 4649 mov r1, r9
  17245. 800760c: 4620 mov r0, r4
  17246. 800760e: d105 bne.n 800761c <_dtoa_r+0xaa4>
  17247. 8007610: f000 fabe bl 8007b90 <__multadd>
  17248. 8007614: 4681 mov r9, r0
  17249. 8007616: 4607 mov r7, r0
  17250. 8007618: 9507 str r5, [sp, #28]
  17251. 800761a: e778 b.n 800750e <_dtoa_r+0x996>
  17252. 800761c: f000 fab8 bl 8007b90 <__multadd>
  17253. 8007620: 4639 mov r1, r7
  17254. 8007622: 4681 mov r9, r0
  17255. 8007624: 2300 movs r3, #0
  17256. 8007626: 220a movs r2, #10
  17257. 8007628: 4620 mov r0, r4
  17258. 800762a: f000 fab1 bl 8007b90 <__multadd>
  17259. 800762e: 4607 mov r7, r0
  17260. 8007630: e7f2 b.n 8007618 <_dtoa_r+0xaa0>
  17261. 8007632: f04f 0900 mov.w r9, #0
  17262. 8007636: 4659 mov r1, fp
  17263. 8007638: 2201 movs r2, #1
  17264. 800763a: 4620 mov r0, r4
  17265. 800763c: f000 fc1e bl 8007e7c <__lshift>
  17266. 8007640: 4631 mov r1, r6
  17267. 8007642: 4683 mov fp, r0
  17268. 8007644: f000 fc6e bl 8007f24 <__mcmp>
  17269. 8007648: 2800 cmp r0, #0
  17270. 800764a: dcb8 bgt.n 80075be <_dtoa_r+0xa46>
  17271. 800764c: d102 bne.n 8007654 <_dtoa_r+0xadc>
  17272. 800764e: f018 0f01 tst.w r8, #1
  17273. 8007652: d1b4 bne.n 80075be <_dtoa_r+0xa46>
  17274. 8007654: f815 3c01 ldrb.w r3, [r5, #-1]
  17275. 8007658: 1e6a subs r2, r5, #1
  17276. 800765a: 2b30 cmp r3, #48 ; 0x30
  17277. 800765c: f47f af0f bne.w 800747e <_dtoa_r+0x906>
  17278. 8007660: 4615 mov r5, r2
  17279. 8007662: e7f7 b.n 8007654 <_dtoa_r+0xadc>
  17280. 8007664: 9b06 ldr r3, [sp, #24]
  17281. 8007666: 4293 cmp r3, r2
  17282. 8007668: d105 bne.n 8007676 <_dtoa_r+0xafe>
  17283. 800766a: 2331 movs r3, #49 ; 0x31
  17284. 800766c: 9a06 ldr r2, [sp, #24]
  17285. 800766e: f10a 0a01 add.w sl, sl, #1
  17286. 8007672: 7013 strb r3, [r2, #0]
  17287. 8007674: e703 b.n 800747e <_dtoa_r+0x906>
  17288. 8007676: 4615 mov r5, r2
  17289. 8007678: e7a1 b.n 80075be <_dtoa_r+0xa46>
  17290. 800767a: 4b17 ldr r3, [pc, #92] ; (80076d8 <_dtoa_r+0xb60>)
  17291. 800767c: f7ff bae1 b.w 8006c42 <_dtoa_r+0xca>
  17292. 8007680: 9b22 ldr r3, [sp, #136] ; 0x88
  17293. 8007682: 2b00 cmp r3, #0
  17294. 8007684: f47f aabb bne.w 8006bfe <_dtoa_r+0x86>
  17295. 8007688: 4b14 ldr r3, [pc, #80] ; (80076dc <_dtoa_r+0xb64>)
  17296. 800768a: f7ff bada b.w 8006c42 <_dtoa_r+0xca>
  17297. 800768e: 9b1e ldr r3, [sp, #120] ; 0x78
  17298. 8007690: 2b01 cmp r3, #1
  17299. 8007692: f77f ae3f ble.w 8007314 <_dtoa_r+0x79c>
  17300. 8007696: 9b0c ldr r3, [sp, #48] ; 0x30
  17301. 8007698: 9308 str r3, [sp, #32]
  17302. 800769a: e653 b.n 8007344 <_dtoa_r+0x7cc>
  17303. 800769c: 9b04 ldr r3, [sp, #16]
  17304. 800769e: 2b00 cmp r3, #0
  17305. 80076a0: dc03 bgt.n 80076aa <_dtoa_r+0xb32>
  17306. 80076a2: 9b1e ldr r3, [sp, #120] ; 0x78
  17307. 80076a4: 2b02 cmp r3, #2
  17308. 80076a6: f73f aed5 bgt.w 8007454 <_dtoa_r+0x8dc>
  17309. 80076aa: 9d06 ldr r5, [sp, #24]
  17310. 80076ac: 4631 mov r1, r6
  17311. 80076ae: 4658 mov r0, fp
  17312. 80076b0: f7ff f9d4 bl 8006a5c <quorem>
  17313. 80076b4: 9b06 ldr r3, [sp, #24]
  17314. 80076b6: f100 0830 add.w r8, r0, #48 ; 0x30
  17315. 80076ba: f805 8b01 strb.w r8, [r5], #1
  17316. 80076be: 9a04 ldr r2, [sp, #16]
  17317. 80076c0: 1aeb subs r3, r5, r3
  17318. 80076c2: 429a cmp r2, r3
  17319. 80076c4: ddb5 ble.n 8007632 <_dtoa_r+0xaba>
  17320. 80076c6: 4659 mov r1, fp
  17321. 80076c8: 2300 movs r3, #0
  17322. 80076ca: 220a movs r2, #10
  17323. 80076cc: 4620 mov r0, r4
  17324. 80076ce: f000 fa5f bl 8007b90 <__multadd>
  17325. 80076d2: 4683 mov fp, r0
  17326. 80076d4: e7ea b.n 80076ac <_dtoa_r+0xb34>
  17327. 80076d6: bf00 nop
  17328. 80076d8: 080089bc .word 0x080089bc
  17329. 80076dc: 080089e0 .word 0x080089e0
  17330. 080076e0 <__sflush_r>:
  17331. 80076e0: 898a ldrh r2, [r1, #12]
  17332. 80076e2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  17333. 80076e6: 4605 mov r5, r0
  17334. 80076e8: 0710 lsls r0, r2, #28
  17335. 80076ea: 460c mov r4, r1
  17336. 80076ec: d458 bmi.n 80077a0 <__sflush_r+0xc0>
  17337. 80076ee: 684b ldr r3, [r1, #4]
  17338. 80076f0: 2b00 cmp r3, #0
  17339. 80076f2: dc05 bgt.n 8007700 <__sflush_r+0x20>
  17340. 80076f4: 6c0b ldr r3, [r1, #64] ; 0x40
  17341. 80076f6: 2b00 cmp r3, #0
  17342. 80076f8: dc02 bgt.n 8007700 <__sflush_r+0x20>
  17343. 80076fa: 2000 movs r0, #0
  17344. 80076fc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  17345. 8007700: 6ae6 ldr r6, [r4, #44] ; 0x2c
  17346. 8007702: 2e00 cmp r6, #0
  17347. 8007704: d0f9 beq.n 80076fa <__sflush_r+0x1a>
  17348. 8007706: 2300 movs r3, #0
  17349. 8007708: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  17350. 800770c: 682f ldr r7, [r5, #0]
  17351. 800770e: 6a21 ldr r1, [r4, #32]
  17352. 8007710: 602b str r3, [r5, #0]
  17353. 8007712: d032 beq.n 800777a <__sflush_r+0x9a>
  17354. 8007714: 6d60 ldr r0, [r4, #84] ; 0x54
  17355. 8007716: 89a3 ldrh r3, [r4, #12]
  17356. 8007718: 075a lsls r2, r3, #29
  17357. 800771a: d505 bpl.n 8007728 <__sflush_r+0x48>
  17358. 800771c: 6863 ldr r3, [r4, #4]
  17359. 800771e: 1ac0 subs r0, r0, r3
  17360. 8007720: 6b63 ldr r3, [r4, #52] ; 0x34
  17361. 8007722: b10b cbz r3, 8007728 <__sflush_r+0x48>
  17362. 8007724: 6c23 ldr r3, [r4, #64] ; 0x40
  17363. 8007726: 1ac0 subs r0, r0, r3
  17364. 8007728: 2300 movs r3, #0
  17365. 800772a: 4602 mov r2, r0
  17366. 800772c: 6ae6 ldr r6, [r4, #44] ; 0x2c
  17367. 800772e: 6a21 ldr r1, [r4, #32]
  17368. 8007730: 4628 mov r0, r5
  17369. 8007732: 47b0 blx r6
  17370. 8007734: 1c43 adds r3, r0, #1
  17371. 8007736: 89a3 ldrh r3, [r4, #12]
  17372. 8007738: d106 bne.n 8007748 <__sflush_r+0x68>
  17373. 800773a: 6829 ldr r1, [r5, #0]
  17374. 800773c: 291d cmp r1, #29
  17375. 800773e: d848 bhi.n 80077d2 <__sflush_r+0xf2>
  17376. 8007740: 4a29 ldr r2, [pc, #164] ; (80077e8 <__sflush_r+0x108>)
  17377. 8007742: 40ca lsrs r2, r1
  17378. 8007744: 07d6 lsls r6, r2, #31
  17379. 8007746: d544 bpl.n 80077d2 <__sflush_r+0xf2>
  17380. 8007748: 2200 movs r2, #0
  17381. 800774a: 6062 str r2, [r4, #4]
  17382. 800774c: 6922 ldr r2, [r4, #16]
  17383. 800774e: 04d9 lsls r1, r3, #19
  17384. 8007750: 6022 str r2, [r4, #0]
  17385. 8007752: d504 bpl.n 800775e <__sflush_r+0x7e>
  17386. 8007754: 1c42 adds r2, r0, #1
  17387. 8007756: d101 bne.n 800775c <__sflush_r+0x7c>
  17388. 8007758: 682b ldr r3, [r5, #0]
  17389. 800775a: b903 cbnz r3, 800775e <__sflush_r+0x7e>
  17390. 800775c: 6560 str r0, [r4, #84] ; 0x54
  17391. 800775e: 6b61 ldr r1, [r4, #52] ; 0x34
  17392. 8007760: 602f str r7, [r5, #0]
  17393. 8007762: 2900 cmp r1, #0
  17394. 8007764: d0c9 beq.n 80076fa <__sflush_r+0x1a>
  17395. 8007766: f104 0344 add.w r3, r4, #68 ; 0x44
  17396. 800776a: 4299 cmp r1, r3
  17397. 800776c: d002 beq.n 8007774 <__sflush_r+0x94>
  17398. 800776e: 4628 mov r0, r5
  17399. 8007770: f000 fcae bl 80080d0 <_free_r>
  17400. 8007774: 2000 movs r0, #0
  17401. 8007776: 6360 str r0, [r4, #52] ; 0x34
  17402. 8007778: e7c0 b.n 80076fc <__sflush_r+0x1c>
  17403. 800777a: 2301 movs r3, #1
  17404. 800777c: 4628 mov r0, r5
  17405. 800777e: 47b0 blx r6
  17406. 8007780: 1c41 adds r1, r0, #1
  17407. 8007782: d1c8 bne.n 8007716 <__sflush_r+0x36>
  17408. 8007784: 682b ldr r3, [r5, #0]
  17409. 8007786: 2b00 cmp r3, #0
  17410. 8007788: d0c5 beq.n 8007716 <__sflush_r+0x36>
  17411. 800778a: 2b1d cmp r3, #29
  17412. 800778c: d001 beq.n 8007792 <__sflush_r+0xb2>
  17413. 800778e: 2b16 cmp r3, #22
  17414. 8007790: d101 bne.n 8007796 <__sflush_r+0xb6>
  17415. 8007792: 602f str r7, [r5, #0]
  17416. 8007794: e7b1 b.n 80076fa <__sflush_r+0x1a>
  17417. 8007796: 89a3 ldrh r3, [r4, #12]
  17418. 8007798: f043 0340 orr.w r3, r3, #64 ; 0x40
  17419. 800779c: 81a3 strh r3, [r4, #12]
  17420. 800779e: e7ad b.n 80076fc <__sflush_r+0x1c>
  17421. 80077a0: 690f ldr r7, [r1, #16]
  17422. 80077a2: 2f00 cmp r7, #0
  17423. 80077a4: d0a9 beq.n 80076fa <__sflush_r+0x1a>
  17424. 80077a6: 0793 lsls r3, r2, #30
  17425. 80077a8: bf18 it ne
  17426. 80077aa: 2300 movne r3, #0
  17427. 80077ac: 680e ldr r6, [r1, #0]
  17428. 80077ae: bf08 it eq
  17429. 80077b0: 694b ldreq r3, [r1, #20]
  17430. 80077b2: eba6 0807 sub.w r8, r6, r7
  17431. 80077b6: 600f str r7, [r1, #0]
  17432. 80077b8: 608b str r3, [r1, #8]
  17433. 80077ba: f1b8 0f00 cmp.w r8, #0
  17434. 80077be: dd9c ble.n 80076fa <__sflush_r+0x1a>
  17435. 80077c0: 4643 mov r3, r8
  17436. 80077c2: 463a mov r2, r7
  17437. 80077c4: 6a21 ldr r1, [r4, #32]
  17438. 80077c6: 4628 mov r0, r5
  17439. 80077c8: 6aa6 ldr r6, [r4, #40] ; 0x28
  17440. 80077ca: 47b0 blx r6
  17441. 80077cc: 2800 cmp r0, #0
  17442. 80077ce: dc06 bgt.n 80077de <__sflush_r+0xfe>
  17443. 80077d0: 89a3 ldrh r3, [r4, #12]
  17444. 80077d2: f043 0340 orr.w r3, r3, #64 ; 0x40
  17445. 80077d6: 81a3 strh r3, [r4, #12]
  17446. 80077d8: f04f 30ff mov.w r0, #4294967295
  17447. 80077dc: e78e b.n 80076fc <__sflush_r+0x1c>
  17448. 80077de: 4407 add r7, r0
  17449. 80077e0: eba8 0800 sub.w r8, r8, r0
  17450. 80077e4: e7e9 b.n 80077ba <__sflush_r+0xda>
  17451. 80077e6: bf00 nop
  17452. 80077e8: 20400001 .word 0x20400001
  17453. 080077ec <_fflush_r>:
  17454. 80077ec: b538 push {r3, r4, r5, lr}
  17455. 80077ee: 690b ldr r3, [r1, #16]
  17456. 80077f0: 4605 mov r5, r0
  17457. 80077f2: 460c mov r4, r1
  17458. 80077f4: b1db cbz r3, 800782e <_fflush_r+0x42>
  17459. 80077f6: b118 cbz r0, 8007800 <_fflush_r+0x14>
  17460. 80077f8: 6983 ldr r3, [r0, #24]
  17461. 80077fa: b90b cbnz r3, 8007800 <_fflush_r+0x14>
  17462. 80077fc: f000 f860 bl 80078c0 <__sinit>
  17463. 8007800: 4b0c ldr r3, [pc, #48] ; (8007834 <_fflush_r+0x48>)
  17464. 8007802: 429c cmp r4, r3
  17465. 8007804: d109 bne.n 800781a <_fflush_r+0x2e>
  17466. 8007806: 686c ldr r4, [r5, #4]
  17467. 8007808: f9b4 300c ldrsh.w r3, [r4, #12]
  17468. 800780c: b17b cbz r3, 800782e <_fflush_r+0x42>
  17469. 800780e: 4621 mov r1, r4
  17470. 8007810: 4628 mov r0, r5
  17471. 8007812: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  17472. 8007816: f7ff bf63 b.w 80076e0 <__sflush_r>
  17473. 800781a: 4b07 ldr r3, [pc, #28] ; (8007838 <_fflush_r+0x4c>)
  17474. 800781c: 429c cmp r4, r3
  17475. 800781e: d101 bne.n 8007824 <_fflush_r+0x38>
  17476. 8007820: 68ac ldr r4, [r5, #8]
  17477. 8007822: e7f1 b.n 8007808 <_fflush_r+0x1c>
  17478. 8007824: 4b05 ldr r3, [pc, #20] ; (800783c <_fflush_r+0x50>)
  17479. 8007826: 429c cmp r4, r3
  17480. 8007828: bf08 it eq
  17481. 800782a: 68ec ldreq r4, [r5, #12]
  17482. 800782c: e7ec b.n 8007808 <_fflush_r+0x1c>
  17483. 800782e: 2000 movs r0, #0
  17484. 8007830: bd38 pop {r3, r4, r5, pc}
  17485. 8007832: bf00 nop
  17486. 8007834: 08008a10 .word 0x08008a10
  17487. 8007838: 08008a30 .word 0x08008a30
  17488. 800783c: 080089f0 .word 0x080089f0
  17489. 08007840 <std>:
  17490. 8007840: 2300 movs r3, #0
  17491. 8007842: b510 push {r4, lr}
  17492. 8007844: 4604 mov r4, r0
  17493. 8007846: e9c0 3300 strd r3, r3, [r0]
  17494. 800784a: 6083 str r3, [r0, #8]
  17495. 800784c: 8181 strh r1, [r0, #12]
  17496. 800784e: 6643 str r3, [r0, #100] ; 0x64
  17497. 8007850: 81c2 strh r2, [r0, #14]
  17498. 8007852: e9c0 3304 strd r3, r3, [r0, #16]
  17499. 8007856: 6183 str r3, [r0, #24]
  17500. 8007858: 4619 mov r1, r3
  17501. 800785a: 2208 movs r2, #8
  17502. 800785c: 305c adds r0, #92 ; 0x5c
  17503. 800785e: f7fe fab3 bl 8005dc8 <memset>
  17504. 8007862: 4b05 ldr r3, [pc, #20] ; (8007878 <std+0x38>)
  17505. 8007864: 6224 str r4, [r4, #32]
  17506. 8007866: 6263 str r3, [r4, #36] ; 0x24
  17507. 8007868: 4b04 ldr r3, [pc, #16] ; (800787c <std+0x3c>)
  17508. 800786a: 62a3 str r3, [r4, #40] ; 0x28
  17509. 800786c: 4b04 ldr r3, [pc, #16] ; (8007880 <std+0x40>)
  17510. 800786e: 62e3 str r3, [r4, #44] ; 0x2c
  17511. 8007870: 4b04 ldr r3, [pc, #16] ; (8007884 <std+0x44>)
  17512. 8007872: 6323 str r3, [r4, #48] ; 0x30
  17513. 8007874: bd10 pop {r4, pc}
  17514. 8007876: bf00 nop
  17515. 8007878: 080084b9 .word 0x080084b9
  17516. 800787c: 080084db .word 0x080084db
  17517. 8007880: 08008513 .word 0x08008513
  17518. 8007884: 08008537 .word 0x08008537
  17519. 08007888 <_cleanup_r>:
  17520. 8007888: 4901 ldr r1, [pc, #4] ; (8007890 <_cleanup_r+0x8>)
  17521. 800788a: f000 b885 b.w 8007998 <_fwalk_reent>
  17522. 800788e: bf00 nop
  17523. 8007890: 080077ed .word 0x080077ed
  17524. 08007894 <__sfmoreglue>:
  17525. 8007894: b570 push {r4, r5, r6, lr}
  17526. 8007896: 2568 movs r5, #104 ; 0x68
  17527. 8007898: 1e4a subs r2, r1, #1
  17528. 800789a: 4355 muls r5, r2
  17529. 800789c: 460e mov r6, r1
  17530. 800789e: f105 0174 add.w r1, r5, #116 ; 0x74
  17531. 80078a2: f000 fc61 bl 8008168 <_malloc_r>
  17532. 80078a6: 4604 mov r4, r0
  17533. 80078a8: b140 cbz r0, 80078bc <__sfmoreglue+0x28>
  17534. 80078aa: 2100 movs r1, #0
  17535. 80078ac: e9c0 1600 strd r1, r6, [r0]
  17536. 80078b0: 300c adds r0, #12
  17537. 80078b2: 60a0 str r0, [r4, #8]
  17538. 80078b4: f105 0268 add.w r2, r5, #104 ; 0x68
  17539. 80078b8: f7fe fa86 bl 8005dc8 <memset>
  17540. 80078bc: 4620 mov r0, r4
  17541. 80078be: bd70 pop {r4, r5, r6, pc}
  17542. 080078c0 <__sinit>:
  17543. 80078c0: 6983 ldr r3, [r0, #24]
  17544. 80078c2: b510 push {r4, lr}
  17545. 80078c4: 4604 mov r4, r0
  17546. 80078c6: bb33 cbnz r3, 8007916 <__sinit+0x56>
  17547. 80078c8: e9c0 3312 strd r3, r3, [r0, #72] ; 0x48
  17548. 80078cc: 6503 str r3, [r0, #80] ; 0x50
  17549. 80078ce: 4b12 ldr r3, [pc, #72] ; (8007918 <__sinit+0x58>)
  17550. 80078d0: 4a12 ldr r2, [pc, #72] ; (800791c <__sinit+0x5c>)
  17551. 80078d2: 681b ldr r3, [r3, #0]
  17552. 80078d4: 6282 str r2, [r0, #40] ; 0x28
  17553. 80078d6: 4298 cmp r0, r3
  17554. 80078d8: bf04 itt eq
  17555. 80078da: 2301 moveq r3, #1
  17556. 80078dc: 6183 streq r3, [r0, #24]
  17557. 80078de: f000 f81f bl 8007920 <__sfp>
  17558. 80078e2: 6060 str r0, [r4, #4]
  17559. 80078e4: 4620 mov r0, r4
  17560. 80078e6: f000 f81b bl 8007920 <__sfp>
  17561. 80078ea: 60a0 str r0, [r4, #8]
  17562. 80078ec: 4620 mov r0, r4
  17563. 80078ee: f000 f817 bl 8007920 <__sfp>
  17564. 80078f2: 2200 movs r2, #0
  17565. 80078f4: 60e0 str r0, [r4, #12]
  17566. 80078f6: 2104 movs r1, #4
  17567. 80078f8: 6860 ldr r0, [r4, #4]
  17568. 80078fa: f7ff ffa1 bl 8007840 <std>
  17569. 80078fe: 2201 movs r2, #1
  17570. 8007900: 2109 movs r1, #9
  17571. 8007902: 68a0 ldr r0, [r4, #8]
  17572. 8007904: f7ff ff9c bl 8007840 <std>
  17573. 8007908: 2202 movs r2, #2
  17574. 800790a: 2112 movs r1, #18
  17575. 800790c: 68e0 ldr r0, [r4, #12]
  17576. 800790e: f7ff ff97 bl 8007840 <std>
  17577. 8007912: 2301 movs r3, #1
  17578. 8007914: 61a3 str r3, [r4, #24]
  17579. 8007916: bd10 pop {r4, pc}
  17580. 8007918: 080089a8 .word 0x080089a8
  17581. 800791c: 08007889 .word 0x08007889
  17582. 08007920 <__sfp>:
  17583. 8007920: b5f8 push {r3, r4, r5, r6, r7, lr}
  17584. 8007922: 4b1b ldr r3, [pc, #108] ; (8007990 <__sfp+0x70>)
  17585. 8007924: 4607 mov r7, r0
  17586. 8007926: 681e ldr r6, [r3, #0]
  17587. 8007928: 69b3 ldr r3, [r6, #24]
  17588. 800792a: b913 cbnz r3, 8007932 <__sfp+0x12>
  17589. 800792c: 4630 mov r0, r6
  17590. 800792e: f7ff ffc7 bl 80078c0 <__sinit>
  17591. 8007932: 3648 adds r6, #72 ; 0x48
  17592. 8007934: e9d6 3401 ldrd r3, r4, [r6, #4]
  17593. 8007938: 3b01 subs r3, #1
  17594. 800793a: d503 bpl.n 8007944 <__sfp+0x24>
  17595. 800793c: 6833 ldr r3, [r6, #0]
  17596. 800793e: b133 cbz r3, 800794e <__sfp+0x2e>
  17597. 8007940: 6836 ldr r6, [r6, #0]
  17598. 8007942: e7f7 b.n 8007934 <__sfp+0x14>
  17599. 8007944: f9b4 500c ldrsh.w r5, [r4, #12]
  17600. 8007948: b16d cbz r5, 8007966 <__sfp+0x46>
  17601. 800794a: 3468 adds r4, #104 ; 0x68
  17602. 800794c: e7f4 b.n 8007938 <__sfp+0x18>
  17603. 800794e: 2104 movs r1, #4
  17604. 8007950: 4638 mov r0, r7
  17605. 8007952: f7ff ff9f bl 8007894 <__sfmoreglue>
  17606. 8007956: 6030 str r0, [r6, #0]
  17607. 8007958: 2800 cmp r0, #0
  17608. 800795a: d1f1 bne.n 8007940 <__sfp+0x20>
  17609. 800795c: 230c movs r3, #12
  17610. 800795e: 4604 mov r4, r0
  17611. 8007960: 603b str r3, [r7, #0]
  17612. 8007962: 4620 mov r0, r4
  17613. 8007964: bdf8 pop {r3, r4, r5, r6, r7, pc}
  17614. 8007966: 4b0b ldr r3, [pc, #44] ; (8007994 <__sfp+0x74>)
  17615. 8007968: 6665 str r5, [r4, #100] ; 0x64
  17616. 800796a: e9c4 5500 strd r5, r5, [r4]
  17617. 800796e: 60a5 str r5, [r4, #8]
  17618. 8007970: e9c4 3503 strd r3, r5, [r4, #12]
  17619. 8007974: e9c4 5505 strd r5, r5, [r4, #20]
  17620. 8007978: 2208 movs r2, #8
  17621. 800797a: 4629 mov r1, r5
  17622. 800797c: f104 005c add.w r0, r4, #92 ; 0x5c
  17623. 8007980: f7fe fa22 bl 8005dc8 <memset>
  17624. 8007984: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
  17625. 8007988: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
  17626. 800798c: e7e9 b.n 8007962 <__sfp+0x42>
  17627. 800798e: bf00 nop
  17628. 8007990: 080089a8 .word 0x080089a8
  17629. 8007994: ffff0001 .word 0xffff0001
  17630. 08007998 <_fwalk_reent>:
  17631. 8007998: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  17632. 800799c: 4680 mov r8, r0
  17633. 800799e: 4689 mov r9, r1
  17634. 80079a0: 2600 movs r6, #0
  17635. 80079a2: f100 0448 add.w r4, r0, #72 ; 0x48
  17636. 80079a6: b914 cbnz r4, 80079ae <_fwalk_reent+0x16>
  17637. 80079a8: 4630 mov r0, r6
  17638. 80079aa: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  17639. 80079ae: e9d4 7501 ldrd r7, r5, [r4, #4]
  17640. 80079b2: 3f01 subs r7, #1
  17641. 80079b4: d501 bpl.n 80079ba <_fwalk_reent+0x22>
  17642. 80079b6: 6824 ldr r4, [r4, #0]
  17643. 80079b8: e7f5 b.n 80079a6 <_fwalk_reent+0xe>
  17644. 80079ba: 89ab ldrh r3, [r5, #12]
  17645. 80079bc: 2b01 cmp r3, #1
  17646. 80079be: d907 bls.n 80079d0 <_fwalk_reent+0x38>
  17647. 80079c0: f9b5 300e ldrsh.w r3, [r5, #14]
  17648. 80079c4: 3301 adds r3, #1
  17649. 80079c6: d003 beq.n 80079d0 <_fwalk_reent+0x38>
  17650. 80079c8: 4629 mov r1, r5
  17651. 80079ca: 4640 mov r0, r8
  17652. 80079cc: 47c8 blx r9
  17653. 80079ce: 4306 orrs r6, r0
  17654. 80079d0: 3568 adds r5, #104 ; 0x68
  17655. 80079d2: e7ee b.n 80079b2 <_fwalk_reent+0x1a>
  17656. 080079d4 <_localeconv_r>:
  17657. 80079d4: 4b04 ldr r3, [pc, #16] ; (80079e8 <_localeconv_r+0x14>)
  17658. 80079d6: 681b ldr r3, [r3, #0]
  17659. 80079d8: 6a18 ldr r0, [r3, #32]
  17660. 80079da: 4b04 ldr r3, [pc, #16] ; (80079ec <_localeconv_r+0x18>)
  17661. 80079dc: 2800 cmp r0, #0
  17662. 80079de: bf08 it eq
  17663. 80079e0: 4618 moveq r0, r3
  17664. 80079e2: 30f0 adds r0, #240 ; 0xf0
  17665. 80079e4: 4770 bx lr
  17666. 80079e6: bf00 nop
  17667. 80079e8: 2000000c .word 0x2000000c
  17668. 80079ec: 20000070 .word 0x20000070
  17669. 080079f0 <__swhatbuf_r>:
  17670. 80079f0: b570 push {r4, r5, r6, lr}
  17671. 80079f2: 460e mov r6, r1
  17672. 80079f4: f9b1 100e ldrsh.w r1, [r1, #14]
  17673. 80079f8: b096 sub sp, #88 ; 0x58
  17674. 80079fa: 2900 cmp r1, #0
  17675. 80079fc: 4614 mov r4, r2
  17676. 80079fe: 461d mov r5, r3
  17677. 8007a00: da07 bge.n 8007a12 <__swhatbuf_r+0x22>
  17678. 8007a02: 2300 movs r3, #0
  17679. 8007a04: 602b str r3, [r5, #0]
  17680. 8007a06: 89b3 ldrh r3, [r6, #12]
  17681. 8007a08: 061a lsls r2, r3, #24
  17682. 8007a0a: d410 bmi.n 8007a2e <__swhatbuf_r+0x3e>
  17683. 8007a0c: f44f 6380 mov.w r3, #1024 ; 0x400
  17684. 8007a10: e00e b.n 8007a30 <__swhatbuf_r+0x40>
  17685. 8007a12: 466a mov r2, sp
  17686. 8007a14: f000 fdb6 bl 8008584 <_fstat_r>
  17687. 8007a18: 2800 cmp r0, #0
  17688. 8007a1a: dbf2 blt.n 8007a02 <__swhatbuf_r+0x12>
  17689. 8007a1c: 9a01 ldr r2, [sp, #4]
  17690. 8007a1e: f402 4270 and.w r2, r2, #61440 ; 0xf000
  17691. 8007a22: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  17692. 8007a26: 425a negs r2, r3
  17693. 8007a28: 415a adcs r2, r3
  17694. 8007a2a: 602a str r2, [r5, #0]
  17695. 8007a2c: e7ee b.n 8007a0c <__swhatbuf_r+0x1c>
  17696. 8007a2e: 2340 movs r3, #64 ; 0x40
  17697. 8007a30: 2000 movs r0, #0
  17698. 8007a32: 6023 str r3, [r4, #0]
  17699. 8007a34: b016 add sp, #88 ; 0x58
  17700. 8007a36: bd70 pop {r4, r5, r6, pc}
  17701. 08007a38 <__smakebuf_r>:
  17702. 8007a38: 898b ldrh r3, [r1, #12]
  17703. 8007a3a: b573 push {r0, r1, r4, r5, r6, lr}
  17704. 8007a3c: 079d lsls r5, r3, #30
  17705. 8007a3e: 4606 mov r6, r0
  17706. 8007a40: 460c mov r4, r1
  17707. 8007a42: d507 bpl.n 8007a54 <__smakebuf_r+0x1c>
  17708. 8007a44: f104 0347 add.w r3, r4, #71 ; 0x47
  17709. 8007a48: 6023 str r3, [r4, #0]
  17710. 8007a4a: 6123 str r3, [r4, #16]
  17711. 8007a4c: 2301 movs r3, #1
  17712. 8007a4e: 6163 str r3, [r4, #20]
  17713. 8007a50: b002 add sp, #8
  17714. 8007a52: bd70 pop {r4, r5, r6, pc}
  17715. 8007a54: ab01 add r3, sp, #4
  17716. 8007a56: 466a mov r2, sp
  17717. 8007a58: f7ff ffca bl 80079f0 <__swhatbuf_r>
  17718. 8007a5c: 9900 ldr r1, [sp, #0]
  17719. 8007a5e: 4605 mov r5, r0
  17720. 8007a60: 4630 mov r0, r6
  17721. 8007a62: f000 fb81 bl 8008168 <_malloc_r>
  17722. 8007a66: b948 cbnz r0, 8007a7c <__smakebuf_r+0x44>
  17723. 8007a68: f9b4 300c ldrsh.w r3, [r4, #12]
  17724. 8007a6c: 059a lsls r2, r3, #22
  17725. 8007a6e: d4ef bmi.n 8007a50 <__smakebuf_r+0x18>
  17726. 8007a70: f023 0303 bic.w r3, r3, #3
  17727. 8007a74: f043 0302 orr.w r3, r3, #2
  17728. 8007a78: 81a3 strh r3, [r4, #12]
  17729. 8007a7a: e7e3 b.n 8007a44 <__smakebuf_r+0xc>
  17730. 8007a7c: 4b0d ldr r3, [pc, #52] ; (8007ab4 <__smakebuf_r+0x7c>)
  17731. 8007a7e: 62b3 str r3, [r6, #40] ; 0x28
  17732. 8007a80: 89a3 ldrh r3, [r4, #12]
  17733. 8007a82: 6020 str r0, [r4, #0]
  17734. 8007a84: f043 0380 orr.w r3, r3, #128 ; 0x80
  17735. 8007a88: 81a3 strh r3, [r4, #12]
  17736. 8007a8a: 9b00 ldr r3, [sp, #0]
  17737. 8007a8c: 6120 str r0, [r4, #16]
  17738. 8007a8e: 6163 str r3, [r4, #20]
  17739. 8007a90: 9b01 ldr r3, [sp, #4]
  17740. 8007a92: b15b cbz r3, 8007aac <__smakebuf_r+0x74>
  17741. 8007a94: f9b4 100e ldrsh.w r1, [r4, #14]
  17742. 8007a98: 4630 mov r0, r6
  17743. 8007a9a: f000 fd85 bl 80085a8 <_isatty_r>
  17744. 8007a9e: b128 cbz r0, 8007aac <__smakebuf_r+0x74>
  17745. 8007aa0: 89a3 ldrh r3, [r4, #12]
  17746. 8007aa2: f023 0303 bic.w r3, r3, #3
  17747. 8007aa6: f043 0301 orr.w r3, r3, #1
  17748. 8007aaa: 81a3 strh r3, [r4, #12]
  17749. 8007aac: 89a3 ldrh r3, [r4, #12]
  17750. 8007aae: 431d orrs r5, r3
  17751. 8007ab0: 81a5 strh r5, [r4, #12]
  17752. 8007ab2: e7cd b.n 8007a50 <__smakebuf_r+0x18>
  17753. 8007ab4: 08007889 .word 0x08007889
  17754. 08007ab8 <malloc>:
  17755. 8007ab8: 4b02 ldr r3, [pc, #8] ; (8007ac4 <malloc+0xc>)
  17756. 8007aba: 4601 mov r1, r0
  17757. 8007abc: 6818 ldr r0, [r3, #0]
  17758. 8007abe: f000 bb53 b.w 8008168 <_malloc_r>
  17759. 8007ac2: bf00 nop
  17760. 8007ac4: 2000000c .word 0x2000000c
  17761. 08007ac8 <memchr>:
  17762. 8007ac8: b510 push {r4, lr}
  17763. 8007aca: b2c9 uxtb r1, r1
  17764. 8007acc: 4402 add r2, r0
  17765. 8007ace: 4290 cmp r0, r2
  17766. 8007ad0: 4603 mov r3, r0
  17767. 8007ad2: d101 bne.n 8007ad8 <memchr+0x10>
  17768. 8007ad4: 2300 movs r3, #0
  17769. 8007ad6: e003 b.n 8007ae0 <memchr+0x18>
  17770. 8007ad8: 781c ldrb r4, [r3, #0]
  17771. 8007ada: 3001 adds r0, #1
  17772. 8007adc: 428c cmp r4, r1
  17773. 8007ade: d1f6 bne.n 8007ace <memchr+0x6>
  17774. 8007ae0: 4618 mov r0, r3
  17775. 8007ae2: bd10 pop {r4, pc}
  17776. 08007ae4 <memcpy>:
  17777. 8007ae4: b510 push {r4, lr}
  17778. 8007ae6: 1e43 subs r3, r0, #1
  17779. 8007ae8: 440a add r2, r1
  17780. 8007aea: 4291 cmp r1, r2
  17781. 8007aec: d100 bne.n 8007af0 <memcpy+0xc>
  17782. 8007aee: bd10 pop {r4, pc}
  17783. 8007af0: f811 4b01 ldrb.w r4, [r1], #1
  17784. 8007af4: f803 4f01 strb.w r4, [r3, #1]!
  17785. 8007af8: e7f7 b.n 8007aea <memcpy+0x6>
  17786. 08007afa <_Balloc>:
  17787. 8007afa: b570 push {r4, r5, r6, lr}
  17788. 8007afc: 6a45 ldr r5, [r0, #36] ; 0x24
  17789. 8007afe: 4604 mov r4, r0
  17790. 8007b00: 460e mov r6, r1
  17791. 8007b02: b93d cbnz r5, 8007b14 <_Balloc+0x1a>
  17792. 8007b04: 2010 movs r0, #16
  17793. 8007b06: f7ff ffd7 bl 8007ab8 <malloc>
  17794. 8007b0a: 6260 str r0, [r4, #36] ; 0x24
  17795. 8007b0c: e9c0 5501 strd r5, r5, [r0, #4]
  17796. 8007b10: 6005 str r5, [r0, #0]
  17797. 8007b12: 60c5 str r5, [r0, #12]
  17798. 8007b14: 6a65 ldr r5, [r4, #36] ; 0x24
  17799. 8007b16: 68eb ldr r3, [r5, #12]
  17800. 8007b18: b183 cbz r3, 8007b3c <_Balloc+0x42>
  17801. 8007b1a: 6a63 ldr r3, [r4, #36] ; 0x24
  17802. 8007b1c: 68db ldr r3, [r3, #12]
  17803. 8007b1e: f853 0026 ldr.w r0, [r3, r6, lsl #2]
  17804. 8007b22: b9b8 cbnz r0, 8007b54 <_Balloc+0x5a>
  17805. 8007b24: 2101 movs r1, #1
  17806. 8007b26: fa01 f506 lsl.w r5, r1, r6
  17807. 8007b2a: 1d6a adds r2, r5, #5
  17808. 8007b2c: 0092 lsls r2, r2, #2
  17809. 8007b2e: 4620 mov r0, r4
  17810. 8007b30: f000 fabf bl 80080b2 <_calloc_r>
  17811. 8007b34: b160 cbz r0, 8007b50 <_Balloc+0x56>
  17812. 8007b36: e9c0 6501 strd r6, r5, [r0, #4]
  17813. 8007b3a: e00e b.n 8007b5a <_Balloc+0x60>
  17814. 8007b3c: 2221 movs r2, #33 ; 0x21
  17815. 8007b3e: 2104 movs r1, #4
  17816. 8007b40: 4620 mov r0, r4
  17817. 8007b42: f000 fab6 bl 80080b2 <_calloc_r>
  17818. 8007b46: 6a63 ldr r3, [r4, #36] ; 0x24
  17819. 8007b48: 60e8 str r0, [r5, #12]
  17820. 8007b4a: 68db ldr r3, [r3, #12]
  17821. 8007b4c: 2b00 cmp r3, #0
  17822. 8007b4e: d1e4 bne.n 8007b1a <_Balloc+0x20>
  17823. 8007b50: 2000 movs r0, #0
  17824. 8007b52: bd70 pop {r4, r5, r6, pc}
  17825. 8007b54: 6802 ldr r2, [r0, #0]
  17826. 8007b56: f843 2026 str.w r2, [r3, r6, lsl #2]
  17827. 8007b5a: 2300 movs r3, #0
  17828. 8007b5c: e9c0 3303 strd r3, r3, [r0, #12]
  17829. 8007b60: e7f7 b.n 8007b52 <_Balloc+0x58>
  17830. 08007b62 <_Bfree>:
  17831. 8007b62: b570 push {r4, r5, r6, lr}
  17832. 8007b64: 6a44 ldr r4, [r0, #36] ; 0x24
  17833. 8007b66: 4606 mov r6, r0
  17834. 8007b68: 460d mov r5, r1
  17835. 8007b6a: b93c cbnz r4, 8007b7c <_Bfree+0x1a>
  17836. 8007b6c: 2010 movs r0, #16
  17837. 8007b6e: f7ff ffa3 bl 8007ab8 <malloc>
  17838. 8007b72: 6270 str r0, [r6, #36] ; 0x24
  17839. 8007b74: e9c0 4401 strd r4, r4, [r0, #4]
  17840. 8007b78: 6004 str r4, [r0, #0]
  17841. 8007b7a: 60c4 str r4, [r0, #12]
  17842. 8007b7c: b13d cbz r5, 8007b8e <_Bfree+0x2c>
  17843. 8007b7e: 6a73 ldr r3, [r6, #36] ; 0x24
  17844. 8007b80: 686a ldr r2, [r5, #4]
  17845. 8007b82: 68db ldr r3, [r3, #12]
  17846. 8007b84: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  17847. 8007b88: 6029 str r1, [r5, #0]
  17848. 8007b8a: f843 5022 str.w r5, [r3, r2, lsl #2]
  17849. 8007b8e: bd70 pop {r4, r5, r6, pc}
  17850. 08007b90 <__multadd>:
  17851. 8007b90: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  17852. 8007b94: 461f mov r7, r3
  17853. 8007b96: 4606 mov r6, r0
  17854. 8007b98: 460c mov r4, r1
  17855. 8007b9a: 2300 movs r3, #0
  17856. 8007b9c: 690d ldr r5, [r1, #16]
  17857. 8007b9e: f101 0c14 add.w ip, r1, #20
  17858. 8007ba2: f8dc 0000 ldr.w r0, [ip]
  17859. 8007ba6: 3301 adds r3, #1
  17860. 8007ba8: b281 uxth r1, r0
  17861. 8007baa: fb02 7101 mla r1, r2, r1, r7
  17862. 8007bae: 0c00 lsrs r0, r0, #16
  17863. 8007bb0: 0c0f lsrs r7, r1, #16
  17864. 8007bb2: fb02 7000 mla r0, r2, r0, r7
  17865. 8007bb6: b289 uxth r1, r1
  17866. 8007bb8: eb01 4100 add.w r1, r1, r0, lsl #16
  17867. 8007bbc: 429d cmp r5, r3
  17868. 8007bbe: ea4f 4710 mov.w r7, r0, lsr #16
  17869. 8007bc2: f84c 1b04 str.w r1, [ip], #4
  17870. 8007bc6: dcec bgt.n 8007ba2 <__multadd+0x12>
  17871. 8007bc8: b1d7 cbz r7, 8007c00 <__multadd+0x70>
  17872. 8007bca: 68a3 ldr r3, [r4, #8]
  17873. 8007bcc: 42ab cmp r3, r5
  17874. 8007bce: dc12 bgt.n 8007bf6 <__multadd+0x66>
  17875. 8007bd0: 6861 ldr r1, [r4, #4]
  17876. 8007bd2: 4630 mov r0, r6
  17877. 8007bd4: 3101 adds r1, #1
  17878. 8007bd6: f7ff ff90 bl 8007afa <_Balloc>
  17879. 8007bda: 4680 mov r8, r0
  17880. 8007bdc: 6922 ldr r2, [r4, #16]
  17881. 8007bde: f104 010c add.w r1, r4, #12
  17882. 8007be2: 3202 adds r2, #2
  17883. 8007be4: 0092 lsls r2, r2, #2
  17884. 8007be6: 300c adds r0, #12
  17885. 8007be8: f7ff ff7c bl 8007ae4 <memcpy>
  17886. 8007bec: 4621 mov r1, r4
  17887. 8007bee: 4630 mov r0, r6
  17888. 8007bf0: f7ff ffb7 bl 8007b62 <_Bfree>
  17889. 8007bf4: 4644 mov r4, r8
  17890. 8007bf6: eb04 0385 add.w r3, r4, r5, lsl #2
  17891. 8007bfa: 3501 adds r5, #1
  17892. 8007bfc: 615f str r7, [r3, #20]
  17893. 8007bfe: 6125 str r5, [r4, #16]
  17894. 8007c00: 4620 mov r0, r4
  17895. 8007c02: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  17896. 08007c06 <__hi0bits>:
  17897. 8007c06: 0c02 lsrs r2, r0, #16
  17898. 8007c08: 0412 lsls r2, r2, #16
  17899. 8007c0a: 4603 mov r3, r0
  17900. 8007c0c: b9b2 cbnz r2, 8007c3c <__hi0bits+0x36>
  17901. 8007c0e: 0403 lsls r3, r0, #16
  17902. 8007c10: 2010 movs r0, #16
  17903. 8007c12: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
  17904. 8007c16: bf04 itt eq
  17905. 8007c18: 021b lsleq r3, r3, #8
  17906. 8007c1a: 3008 addeq r0, #8
  17907. 8007c1c: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
  17908. 8007c20: bf04 itt eq
  17909. 8007c22: 011b lsleq r3, r3, #4
  17910. 8007c24: 3004 addeq r0, #4
  17911. 8007c26: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
  17912. 8007c2a: bf04 itt eq
  17913. 8007c2c: 009b lsleq r3, r3, #2
  17914. 8007c2e: 3002 addeq r0, #2
  17915. 8007c30: 2b00 cmp r3, #0
  17916. 8007c32: db06 blt.n 8007c42 <__hi0bits+0x3c>
  17917. 8007c34: 005b lsls r3, r3, #1
  17918. 8007c36: d503 bpl.n 8007c40 <__hi0bits+0x3a>
  17919. 8007c38: 3001 adds r0, #1
  17920. 8007c3a: 4770 bx lr
  17921. 8007c3c: 2000 movs r0, #0
  17922. 8007c3e: e7e8 b.n 8007c12 <__hi0bits+0xc>
  17923. 8007c40: 2020 movs r0, #32
  17924. 8007c42: 4770 bx lr
  17925. 08007c44 <__lo0bits>:
  17926. 8007c44: 6803 ldr r3, [r0, #0]
  17927. 8007c46: 4601 mov r1, r0
  17928. 8007c48: f013 0207 ands.w r2, r3, #7
  17929. 8007c4c: d00b beq.n 8007c66 <__lo0bits+0x22>
  17930. 8007c4e: 07da lsls r2, r3, #31
  17931. 8007c50: d423 bmi.n 8007c9a <__lo0bits+0x56>
  17932. 8007c52: 0798 lsls r0, r3, #30
  17933. 8007c54: bf49 itett mi
  17934. 8007c56: 085b lsrmi r3, r3, #1
  17935. 8007c58: 089b lsrpl r3, r3, #2
  17936. 8007c5a: 2001 movmi r0, #1
  17937. 8007c5c: 600b strmi r3, [r1, #0]
  17938. 8007c5e: bf5c itt pl
  17939. 8007c60: 600b strpl r3, [r1, #0]
  17940. 8007c62: 2002 movpl r0, #2
  17941. 8007c64: 4770 bx lr
  17942. 8007c66: b298 uxth r0, r3
  17943. 8007c68: b9a8 cbnz r0, 8007c96 <__lo0bits+0x52>
  17944. 8007c6a: 2010 movs r0, #16
  17945. 8007c6c: 0c1b lsrs r3, r3, #16
  17946. 8007c6e: f013 0fff tst.w r3, #255 ; 0xff
  17947. 8007c72: bf04 itt eq
  17948. 8007c74: 0a1b lsreq r3, r3, #8
  17949. 8007c76: 3008 addeq r0, #8
  17950. 8007c78: 071a lsls r2, r3, #28
  17951. 8007c7a: bf04 itt eq
  17952. 8007c7c: 091b lsreq r3, r3, #4
  17953. 8007c7e: 3004 addeq r0, #4
  17954. 8007c80: 079a lsls r2, r3, #30
  17955. 8007c82: bf04 itt eq
  17956. 8007c84: 089b lsreq r3, r3, #2
  17957. 8007c86: 3002 addeq r0, #2
  17958. 8007c88: 07da lsls r2, r3, #31
  17959. 8007c8a: d402 bmi.n 8007c92 <__lo0bits+0x4e>
  17960. 8007c8c: 085b lsrs r3, r3, #1
  17961. 8007c8e: d006 beq.n 8007c9e <__lo0bits+0x5a>
  17962. 8007c90: 3001 adds r0, #1
  17963. 8007c92: 600b str r3, [r1, #0]
  17964. 8007c94: 4770 bx lr
  17965. 8007c96: 4610 mov r0, r2
  17966. 8007c98: e7e9 b.n 8007c6e <__lo0bits+0x2a>
  17967. 8007c9a: 2000 movs r0, #0
  17968. 8007c9c: 4770 bx lr
  17969. 8007c9e: 2020 movs r0, #32
  17970. 8007ca0: 4770 bx lr
  17971. 08007ca2 <__i2b>:
  17972. 8007ca2: b510 push {r4, lr}
  17973. 8007ca4: 460c mov r4, r1
  17974. 8007ca6: 2101 movs r1, #1
  17975. 8007ca8: f7ff ff27 bl 8007afa <_Balloc>
  17976. 8007cac: 2201 movs r2, #1
  17977. 8007cae: 6144 str r4, [r0, #20]
  17978. 8007cb0: 6102 str r2, [r0, #16]
  17979. 8007cb2: bd10 pop {r4, pc}
  17980. 08007cb4 <__multiply>:
  17981. 8007cb4: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  17982. 8007cb8: 4614 mov r4, r2
  17983. 8007cba: 690a ldr r2, [r1, #16]
  17984. 8007cbc: 6923 ldr r3, [r4, #16]
  17985. 8007cbe: 4688 mov r8, r1
  17986. 8007cc0: 429a cmp r2, r3
  17987. 8007cc2: bfbe ittt lt
  17988. 8007cc4: 460b movlt r3, r1
  17989. 8007cc6: 46a0 movlt r8, r4
  17990. 8007cc8: 461c movlt r4, r3
  17991. 8007cca: f8d8 7010 ldr.w r7, [r8, #16]
  17992. 8007cce: f8d4 9010 ldr.w r9, [r4, #16]
  17993. 8007cd2: f8d8 3008 ldr.w r3, [r8, #8]
  17994. 8007cd6: f8d8 1004 ldr.w r1, [r8, #4]
  17995. 8007cda: eb07 0609 add.w r6, r7, r9
  17996. 8007cde: 42b3 cmp r3, r6
  17997. 8007ce0: bfb8 it lt
  17998. 8007ce2: 3101 addlt r1, #1
  17999. 8007ce4: f7ff ff09 bl 8007afa <_Balloc>
  18000. 8007ce8: f100 0514 add.w r5, r0, #20
  18001. 8007cec: 462b mov r3, r5
  18002. 8007cee: 2200 movs r2, #0
  18003. 8007cf0: eb05 0e86 add.w lr, r5, r6, lsl #2
  18004. 8007cf4: 4573 cmp r3, lr
  18005. 8007cf6: d316 bcc.n 8007d26 <__multiply+0x72>
  18006. 8007cf8: f104 0214 add.w r2, r4, #20
  18007. 8007cfc: f108 0114 add.w r1, r8, #20
  18008. 8007d00: eb02 0389 add.w r3, r2, r9, lsl #2
  18009. 8007d04: eb01 0787 add.w r7, r1, r7, lsl #2
  18010. 8007d08: 9300 str r3, [sp, #0]
  18011. 8007d0a: 9b00 ldr r3, [sp, #0]
  18012. 8007d0c: 9201 str r2, [sp, #4]
  18013. 8007d0e: 4293 cmp r3, r2
  18014. 8007d10: d80c bhi.n 8007d2c <__multiply+0x78>
  18015. 8007d12: 2e00 cmp r6, #0
  18016. 8007d14: dd03 ble.n 8007d1e <__multiply+0x6a>
  18017. 8007d16: f85e 3d04 ldr.w r3, [lr, #-4]!
  18018. 8007d1a: 2b00 cmp r3, #0
  18019. 8007d1c: d05d beq.n 8007dda <__multiply+0x126>
  18020. 8007d1e: 6106 str r6, [r0, #16]
  18021. 8007d20: b003 add sp, #12
  18022. 8007d22: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18023. 8007d26: f843 2b04 str.w r2, [r3], #4
  18024. 8007d2a: e7e3 b.n 8007cf4 <__multiply+0x40>
  18025. 8007d2c: f8b2 b000 ldrh.w fp, [r2]
  18026. 8007d30: f1bb 0f00 cmp.w fp, #0
  18027. 8007d34: d023 beq.n 8007d7e <__multiply+0xca>
  18028. 8007d36: 4689 mov r9, r1
  18029. 8007d38: 46ac mov ip, r5
  18030. 8007d3a: f04f 0800 mov.w r8, #0
  18031. 8007d3e: f859 4b04 ldr.w r4, [r9], #4
  18032. 8007d42: f8dc a000 ldr.w sl, [ip]
  18033. 8007d46: b2a3 uxth r3, r4
  18034. 8007d48: fa1f fa8a uxth.w sl, sl
  18035. 8007d4c: fb0b a303 mla r3, fp, r3, sl
  18036. 8007d50: ea4f 4a14 mov.w sl, r4, lsr #16
  18037. 8007d54: f8dc 4000 ldr.w r4, [ip]
  18038. 8007d58: 4443 add r3, r8
  18039. 8007d5a: ea4f 4814 mov.w r8, r4, lsr #16
  18040. 8007d5e: fb0b 840a mla r4, fp, sl, r8
  18041. 8007d62: 46e2 mov sl, ip
  18042. 8007d64: eb04 4413 add.w r4, r4, r3, lsr #16
  18043. 8007d68: b29b uxth r3, r3
  18044. 8007d6a: ea43 4304 orr.w r3, r3, r4, lsl #16
  18045. 8007d6e: 454f cmp r7, r9
  18046. 8007d70: ea4f 4814 mov.w r8, r4, lsr #16
  18047. 8007d74: f84a 3b04 str.w r3, [sl], #4
  18048. 8007d78: d82b bhi.n 8007dd2 <__multiply+0x11e>
  18049. 8007d7a: f8cc 8004 str.w r8, [ip, #4]
  18050. 8007d7e: 9b01 ldr r3, [sp, #4]
  18051. 8007d80: 3204 adds r2, #4
  18052. 8007d82: f8b3 a002 ldrh.w sl, [r3, #2]
  18053. 8007d86: f1ba 0f00 cmp.w sl, #0
  18054. 8007d8a: d020 beq.n 8007dce <__multiply+0x11a>
  18055. 8007d8c: 4689 mov r9, r1
  18056. 8007d8e: 46a8 mov r8, r5
  18057. 8007d90: f04f 0b00 mov.w fp, #0
  18058. 8007d94: 682b ldr r3, [r5, #0]
  18059. 8007d96: f8b9 c000 ldrh.w ip, [r9]
  18060. 8007d9a: f8b8 4002 ldrh.w r4, [r8, #2]
  18061. 8007d9e: b29b uxth r3, r3
  18062. 8007da0: fb0a 440c mla r4, sl, ip, r4
  18063. 8007da4: 46c4 mov ip, r8
  18064. 8007da6: 445c add r4, fp
  18065. 8007da8: ea43 4304 orr.w r3, r3, r4, lsl #16
  18066. 8007dac: f84c 3b04 str.w r3, [ip], #4
  18067. 8007db0: f859 3b04 ldr.w r3, [r9], #4
  18068. 8007db4: f8b8 b004 ldrh.w fp, [r8, #4]
  18069. 8007db8: 0c1b lsrs r3, r3, #16
  18070. 8007dba: fb0a b303 mla r3, sl, r3, fp
  18071. 8007dbe: 454f cmp r7, r9
  18072. 8007dc0: eb03 4314 add.w r3, r3, r4, lsr #16
  18073. 8007dc4: ea4f 4b13 mov.w fp, r3, lsr #16
  18074. 8007dc8: d805 bhi.n 8007dd6 <__multiply+0x122>
  18075. 8007dca: f8c8 3004 str.w r3, [r8, #4]
  18076. 8007dce: 3504 adds r5, #4
  18077. 8007dd0: e79b b.n 8007d0a <__multiply+0x56>
  18078. 8007dd2: 46d4 mov ip, sl
  18079. 8007dd4: e7b3 b.n 8007d3e <__multiply+0x8a>
  18080. 8007dd6: 46e0 mov r8, ip
  18081. 8007dd8: e7dd b.n 8007d96 <__multiply+0xe2>
  18082. 8007dda: 3e01 subs r6, #1
  18083. 8007ddc: e799 b.n 8007d12 <__multiply+0x5e>
  18084. ...
  18085. 08007de0 <__pow5mult>:
  18086. 8007de0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  18087. 8007de4: 4615 mov r5, r2
  18088. 8007de6: f012 0203 ands.w r2, r2, #3
  18089. 8007dea: 4606 mov r6, r0
  18090. 8007dec: 460f mov r7, r1
  18091. 8007dee: d007 beq.n 8007e00 <__pow5mult+0x20>
  18092. 8007df0: 4c21 ldr r4, [pc, #132] ; (8007e78 <__pow5mult+0x98>)
  18093. 8007df2: 3a01 subs r2, #1
  18094. 8007df4: 2300 movs r3, #0
  18095. 8007df6: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  18096. 8007dfa: f7ff fec9 bl 8007b90 <__multadd>
  18097. 8007dfe: 4607 mov r7, r0
  18098. 8007e00: 10ad asrs r5, r5, #2
  18099. 8007e02: d035 beq.n 8007e70 <__pow5mult+0x90>
  18100. 8007e04: 6a74 ldr r4, [r6, #36] ; 0x24
  18101. 8007e06: b93c cbnz r4, 8007e18 <__pow5mult+0x38>
  18102. 8007e08: 2010 movs r0, #16
  18103. 8007e0a: f7ff fe55 bl 8007ab8 <malloc>
  18104. 8007e0e: 6270 str r0, [r6, #36] ; 0x24
  18105. 8007e10: e9c0 4401 strd r4, r4, [r0, #4]
  18106. 8007e14: 6004 str r4, [r0, #0]
  18107. 8007e16: 60c4 str r4, [r0, #12]
  18108. 8007e18: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
  18109. 8007e1c: f8d8 4008 ldr.w r4, [r8, #8]
  18110. 8007e20: b94c cbnz r4, 8007e36 <__pow5mult+0x56>
  18111. 8007e22: f240 2171 movw r1, #625 ; 0x271
  18112. 8007e26: 4630 mov r0, r6
  18113. 8007e28: f7ff ff3b bl 8007ca2 <__i2b>
  18114. 8007e2c: 2300 movs r3, #0
  18115. 8007e2e: 4604 mov r4, r0
  18116. 8007e30: f8c8 0008 str.w r0, [r8, #8]
  18117. 8007e34: 6003 str r3, [r0, #0]
  18118. 8007e36: f04f 0800 mov.w r8, #0
  18119. 8007e3a: 07eb lsls r3, r5, #31
  18120. 8007e3c: d50a bpl.n 8007e54 <__pow5mult+0x74>
  18121. 8007e3e: 4639 mov r1, r7
  18122. 8007e40: 4622 mov r2, r4
  18123. 8007e42: 4630 mov r0, r6
  18124. 8007e44: f7ff ff36 bl 8007cb4 <__multiply>
  18125. 8007e48: 4681 mov r9, r0
  18126. 8007e4a: 4639 mov r1, r7
  18127. 8007e4c: 4630 mov r0, r6
  18128. 8007e4e: f7ff fe88 bl 8007b62 <_Bfree>
  18129. 8007e52: 464f mov r7, r9
  18130. 8007e54: 106d asrs r5, r5, #1
  18131. 8007e56: d00b beq.n 8007e70 <__pow5mult+0x90>
  18132. 8007e58: 6820 ldr r0, [r4, #0]
  18133. 8007e5a: b938 cbnz r0, 8007e6c <__pow5mult+0x8c>
  18134. 8007e5c: 4622 mov r2, r4
  18135. 8007e5e: 4621 mov r1, r4
  18136. 8007e60: 4630 mov r0, r6
  18137. 8007e62: f7ff ff27 bl 8007cb4 <__multiply>
  18138. 8007e66: 6020 str r0, [r4, #0]
  18139. 8007e68: f8c0 8000 str.w r8, [r0]
  18140. 8007e6c: 4604 mov r4, r0
  18141. 8007e6e: e7e4 b.n 8007e3a <__pow5mult+0x5a>
  18142. 8007e70: 4638 mov r0, r7
  18143. 8007e72: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  18144. 8007e76: bf00 nop
  18145. 8007e78: 08008b40 .word 0x08008b40
  18146. 08007e7c <__lshift>:
  18147. 8007e7c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  18148. 8007e80: 460c mov r4, r1
  18149. 8007e82: 4607 mov r7, r0
  18150. 8007e84: 4616 mov r6, r2
  18151. 8007e86: 6923 ldr r3, [r4, #16]
  18152. 8007e88: ea4f 1a62 mov.w sl, r2, asr #5
  18153. 8007e8c: eb0a 0903 add.w r9, sl, r3
  18154. 8007e90: 6849 ldr r1, [r1, #4]
  18155. 8007e92: 68a3 ldr r3, [r4, #8]
  18156. 8007e94: f109 0501 add.w r5, r9, #1
  18157. 8007e98: 42ab cmp r3, r5
  18158. 8007e9a: db32 blt.n 8007f02 <__lshift+0x86>
  18159. 8007e9c: 4638 mov r0, r7
  18160. 8007e9e: f7ff fe2c bl 8007afa <_Balloc>
  18161. 8007ea2: 2300 movs r3, #0
  18162. 8007ea4: 4680 mov r8, r0
  18163. 8007ea6: 461a mov r2, r3
  18164. 8007ea8: f100 0114 add.w r1, r0, #20
  18165. 8007eac: 4553 cmp r3, sl
  18166. 8007eae: db2b blt.n 8007f08 <__lshift+0x8c>
  18167. 8007eb0: 6920 ldr r0, [r4, #16]
  18168. 8007eb2: ea2a 7aea bic.w sl, sl, sl, asr #31
  18169. 8007eb6: f104 0314 add.w r3, r4, #20
  18170. 8007eba: f016 021f ands.w r2, r6, #31
  18171. 8007ebe: eb01 018a add.w r1, r1, sl, lsl #2
  18172. 8007ec2: eb03 0c80 add.w ip, r3, r0, lsl #2
  18173. 8007ec6: d025 beq.n 8007f14 <__lshift+0x98>
  18174. 8007ec8: 2000 movs r0, #0
  18175. 8007eca: f1c2 0e20 rsb lr, r2, #32
  18176. 8007ece: 468a mov sl, r1
  18177. 8007ed0: 681e ldr r6, [r3, #0]
  18178. 8007ed2: 4096 lsls r6, r2
  18179. 8007ed4: 4330 orrs r0, r6
  18180. 8007ed6: f84a 0b04 str.w r0, [sl], #4
  18181. 8007eda: f853 0b04 ldr.w r0, [r3], #4
  18182. 8007ede: 459c cmp ip, r3
  18183. 8007ee0: fa20 f00e lsr.w r0, r0, lr
  18184. 8007ee4: d814 bhi.n 8007f10 <__lshift+0x94>
  18185. 8007ee6: 6048 str r0, [r1, #4]
  18186. 8007ee8: b108 cbz r0, 8007eee <__lshift+0x72>
  18187. 8007eea: f109 0502 add.w r5, r9, #2
  18188. 8007eee: 3d01 subs r5, #1
  18189. 8007ef0: 4638 mov r0, r7
  18190. 8007ef2: f8c8 5010 str.w r5, [r8, #16]
  18191. 8007ef6: 4621 mov r1, r4
  18192. 8007ef8: f7ff fe33 bl 8007b62 <_Bfree>
  18193. 8007efc: 4640 mov r0, r8
  18194. 8007efe: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  18195. 8007f02: 3101 adds r1, #1
  18196. 8007f04: 005b lsls r3, r3, #1
  18197. 8007f06: e7c7 b.n 8007e98 <__lshift+0x1c>
  18198. 8007f08: f841 2023 str.w r2, [r1, r3, lsl #2]
  18199. 8007f0c: 3301 adds r3, #1
  18200. 8007f0e: e7cd b.n 8007eac <__lshift+0x30>
  18201. 8007f10: 4651 mov r1, sl
  18202. 8007f12: e7dc b.n 8007ece <__lshift+0x52>
  18203. 8007f14: 3904 subs r1, #4
  18204. 8007f16: f853 2b04 ldr.w r2, [r3], #4
  18205. 8007f1a: 459c cmp ip, r3
  18206. 8007f1c: f841 2f04 str.w r2, [r1, #4]!
  18207. 8007f20: d8f9 bhi.n 8007f16 <__lshift+0x9a>
  18208. 8007f22: e7e4 b.n 8007eee <__lshift+0x72>
  18209. 08007f24 <__mcmp>:
  18210. 8007f24: 6903 ldr r3, [r0, #16]
  18211. 8007f26: 690a ldr r2, [r1, #16]
  18212. 8007f28: b530 push {r4, r5, lr}
  18213. 8007f2a: 1a9b subs r3, r3, r2
  18214. 8007f2c: d10c bne.n 8007f48 <__mcmp+0x24>
  18215. 8007f2e: 0092 lsls r2, r2, #2
  18216. 8007f30: 3014 adds r0, #20
  18217. 8007f32: 3114 adds r1, #20
  18218. 8007f34: 1884 adds r4, r0, r2
  18219. 8007f36: 4411 add r1, r2
  18220. 8007f38: f854 5d04 ldr.w r5, [r4, #-4]!
  18221. 8007f3c: f851 2d04 ldr.w r2, [r1, #-4]!
  18222. 8007f40: 4295 cmp r5, r2
  18223. 8007f42: d003 beq.n 8007f4c <__mcmp+0x28>
  18224. 8007f44: d305 bcc.n 8007f52 <__mcmp+0x2e>
  18225. 8007f46: 2301 movs r3, #1
  18226. 8007f48: 4618 mov r0, r3
  18227. 8007f4a: bd30 pop {r4, r5, pc}
  18228. 8007f4c: 42a0 cmp r0, r4
  18229. 8007f4e: d3f3 bcc.n 8007f38 <__mcmp+0x14>
  18230. 8007f50: e7fa b.n 8007f48 <__mcmp+0x24>
  18231. 8007f52: f04f 33ff mov.w r3, #4294967295
  18232. 8007f56: e7f7 b.n 8007f48 <__mcmp+0x24>
  18233. 08007f58 <__mdiff>:
  18234. 8007f58: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  18235. 8007f5c: 460d mov r5, r1
  18236. 8007f5e: 4607 mov r7, r0
  18237. 8007f60: 4611 mov r1, r2
  18238. 8007f62: 4628 mov r0, r5
  18239. 8007f64: 4614 mov r4, r2
  18240. 8007f66: f7ff ffdd bl 8007f24 <__mcmp>
  18241. 8007f6a: 1e06 subs r6, r0, #0
  18242. 8007f6c: d108 bne.n 8007f80 <__mdiff+0x28>
  18243. 8007f6e: 4631 mov r1, r6
  18244. 8007f70: 4638 mov r0, r7
  18245. 8007f72: f7ff fdc2 bl 8007afa <_Balloc>
  18246. 8007f76: 2301 movs r3, #1
  18247. 8007f78: e9c0 3604 strd r3, r6, [r0, #16]
  18248. 8007f7c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  18249. 8007f80: bfa4 itt ge
  18250. 8007f82: 4623 movge r3, r4
  18251. 8007f84: 462c movge r4, r5
  18252. 8007f86: 4638 mov r0, r7
  18253. 8007f88: 6861 ldr r1, [r4, #4]
  18254. 8007f8a: bfa6 itte ge
  18255. 8007f8c: 461d movge r5, r3
  18256. 8007f8e: 2600 movge r6, #0
  18257. 8007f90: 2601 movlt r6, #1
  18258. 8007f92: f7ff fdb2 bl 8007afa <_Balloc>
  18259. 8007f96: f04f 0e00 mov.w lr, #0
  18260. 8007f9a: 60c6 str r6, [r0, #12]
  18261. 8007f9c: 692b ldr r3, [r5, #16]
  18262. 8007f9e: 6926 ldr r6, [r4, #16]
  18263. 8007fa0: f104 0214 add.w r2, r4, #20
  18264. 8007fa4: f105 0914 add.w r9, r5, #20
  18265. 8007fa8: eb02 0786 add.w r7, r2, r6, lsl #2
  18266. 8007fac: eb09 0883 add.w r8, r9, r3, lsl #2
  18267. 8007fb0: f100 0114 add.w r1, r0, #20
  18268. 8007fb4: f852 ab04 ldr.w sl, [r2], #4
  18269. 8007fb8: f859 5b04 ldr.w r5, [r9], #4
  18270. 8007fbc: fa1f f38a uxth.w r3, sl
  18271. 8007fc0: 4473 add r3, lr
  18272. 8007fc2: b2ac uxth r4, r5
  18273. 8007fc4: 1b1b subs r3, r3, r4
  18274. 8007fc6: 0c2c lsrs r4, r5, #16
  18275. 8007fc8: ebc4 441a rsb r4, r4, sl, lsr #16
  18276. 8007fcc: eb04 4423 add.w r4, r4, r3, asr #16
  18277. 8007fd0: b29b uxth r3, r3
  18278. 8007fd2: ea4f 4e24 mov.w lr, r4, asr #16
  18279. 8007fd6: 45c8 cmp r8, r9
  18280. 8007fd8: ea43 4404 orr.w r4, r3, r4, lsl #16
  18281. 8007fdc: 4694 mov ip, r2
  18282. 8007fde: f841 4b04 str.w r4, [r1], #4
  18283. 8007fe2: d8e7 bhi.n 8007fb4 <__mdiff+0x5c>
  18284. 8007fe4: 45bc cmp ip, r7
  18285. 8007fe6: d304 bcc.n 8007ff2 <__mdiff+0x9a>
  18286. 8007fe8: f851 3d04 ldr.w r3, [r1, #-4]!
  18287. 8007fec: b183 cbz r3, 8008010 <__mdiff+0xb8>
  18288. 8007fee: 6106 str r6, [r0, #16]
  18289. 8007ff0: e7c4 b.n 8007f7c <__mdiff+0x24>
  18290. 8007ff2: f85c 4b04 ldr.w r4, [ip], #4
  18291. 8007ff6: b2a2 uxth r2, r4
  18292. 8007ff8: 4472 add r2, lr
  18293. 8007ffa: 1413 asrs r3, r2, #16
  18294. 8007ffc: eb03 4314 add.w r3, r3, r4, lsr #16
  18295. 8008000: b292 uxth r2, r2
  18296. 8008002: ea42 4203 orr.w r2, r2, r3, lsl #16
  18297. 8008006: ea4f 4e23 mov.w lr, r3, asr #16
  18298. 800800a: f841 2b04 str.w r2, [r1], #4
  18299. 800800e: e7e9 b.n 8007fe4 <__mdiff+0x8c>
  18300. 8008010: 3e01 subs r6, #1
  18301. 8008012: e7e9 b.n 8007fe8 <__mdiff+0x90>
  18302. 08008014 <__d2b>:
  18303. 8008014: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  18304. 8008018: 461c mov r4, r3
  18305. 800801a: e9dd 6508 ldrd r6, r5, [sp, #32]
  18306. 800801e: 2101 movs r1, #1
  18307. 8008020: 4690 mov r8, r2
  18308. 8008022: f7ff fd6a bl 8007afa <_Balloc>
  18309. 8008026: f3c4 0213 ubfx r2, r4, #0, #20
  18310. 800802a: f3c4 540a ubfx r4, r4, #20, #11
  18311. 800802e: 4607 mov r7, r0
  18312. 8008030: bb34 cbnz r4, 8008080 <__d2b+0x6c>
  18313. 8008032: 9201 str r2, [sp, #4]
  18314. 8008034: f1b8 0200 subs.w r2, r8, #0
  18315. 8008038: d027 beq.n 800808a <__d2b+0x76>
  18316. 800803a: a802 add r0, sp, #8
  18317. 800803c: f840 2d08 str.w r2, [r0, #-8]!
  18318. 8008040: f7ff fe00 bl 8007c44 <__lo0bits>
  18319. 8008044: 9900 ldr r1, [sp, #0]
  18320. 8008046: b1f0 cbz r0, 8008086 <__d2b+0x72>
  18321. 8008048: 9a01 ldr r2, [sp, #4]
  18322. 800804a: f1c0 0320 rsb r3, r0, #32
  18323. 800804e: fa02 f303 lsl.w r3, r2, r3
  18324. 8008052: 430b orrs r3, r1
  18325. 8008054: 40c2 lsrs r2, r0
  18326. 8008056: 617b str r3, [r7, #20]
  18327. 8008058: 9201 str r2, [sp, #4]
  18328. 800805a: 9b01 ldr r3, [sp, #4]
  18329. 800805c: 2b00 cmp r3, #0
  18330. 800805e: bf14 ite ne
  18331. 8008060: 2102 movne r1, #2
  18332. 8008062: 2101 moveq r1, #1
  18333. 8008064: 61bb str r3, [r7, #24]
  18334. 8008066: 6139 str r1, [r7, #16]
  18335. 8008068: b1c4 cbz r4, 800809c <__d2b+0x88>
  18336. 800806a: f2a4 4433 subw r4, r4, #1075 ; 0x433
  18337. 800806e: 4404 add r4, r0
  18338. 8008070: 6034 str r4, [r6, #0]
  18339. 8008072: f1c0 0035 rsb r0, r0, #53 ; 0x35
  18340. 8008076: 6028 str r0, [r5, #0]
  18341. 8008078: 4638 mov r0, r7
  18342. 800807a: b002 add sp, #8
  18343. 800807c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  18344. 8008080: f442 1280 orr.w r2, r2, #1048576 ; 0x100000
  18345. 8008084: e7d5 b.n 8008032 <__d2b+0x1e>
  18346. 8008086: 6179 str r1, [r7, #20]
  18347. 8008088: e7e7 b.n 800805a <__d2b+0x46>
  18348. 800808a: a801 add r0, sp, #4
  18349. 800808c: f7ff fdda bl 8007c44 <__lo0bits>
  18350. 8008090: 2101 movs r1, #1
  18351. 8008092: 9b01 ldr r3, [sp, #4]
  18352. 8008094: 6139 str r1, [r7, #16]
  18353. 8008096: 617b str r3, [r7, #20]
  18354. 8008098: 3020 adds r0, #32
  18355. 800809a: e7e5 b.n 8008068 <__d2b+0x54>
  18356. 800809c: f2a0 4032 subw r0, r0, #1074 ; 0x432
  18357. 80080a0: eb07 0381 add.w r3, r7, r1, lsl #2
  18358. 80080a4: 6030 str r0, [r6, #0]
  18359. 80080a6: 6918 ldr r0, [r3, #16]
  18360. 80080a8: f7ff fdad bl 8007c06 <__hi0bits>
  18361. 80080ac: ebc0 1041 rsb r0, r0, r1, lsl #5
  18362. 80080b0: e7e1 b.n 8008076 <__d2b+0x62>
  18363. 080080b2 <_calloc_r>:
  18364. 80080b2: b538 push {r3, r4, r5, lr}
  18365. 80080b4: fb02 f401 mul.w r4, r2, r1
  18366. 80080b8: 4621 mov r1, r4
  18367. 80080ba: f000 f855 bl 8008168 <_malloc_r>
  18368. 80080be: 4605 mov r5, r0
  18369. 80080c0: b118 cbz r0, 80080ca <_calloc_r+0x18>
  18370. 80080c2: 4622 mov r2, r4
  18371. 80080c4: 2100 movs r1, #0
  18372. 80080c6: f7fd fe7f bl 8005dc8 <memset>
  18373. 80080ca: 4628 mov r0, r5
  18374. 80080cc: bd38 pop {r3, r4, r5, pc}
  18375. ...
  18376. 080080d0 <_free_r>:
  18377. 80080d0: b538 push {r3, r4, r5, lr}
  18378. 80080d2: 4605 mov r5, r0
  18379. 80080d4: 2900 cmp r1, #0
  18380. 80080d6: d043 beq.n 8008160 <_free_r+0x90>
  18381. 80080d8: f851 3c04 ldr.w r3, [r1, #-4]
  18382. 80080dc: 1f0c subs r4, r1, #4
  18383. 80080de: 2b00 cmp r3, #0
  18384. 80080e0: bfb8 it lt
  18385. 80080e2: 18e4 addlt r4, r4, r3
  18386. 80080e4: f000 fa94 bl 8008610 <__malloc_lock>
  18387. 80080e8: 4a1e ldr r2, [pc, #120] ; (8008164 <_free_r+0x94>)
  18388. 80080ea: 6813 ldr r3, [r2, #0]
  18389. 80080ec: 4610 mov r0, r2
  18390. 80080ee: b933 cbnz r3, 80080fe <_free_r+0x2e>
  18391. 80080f0: 6063 str r3, [r4, #4]
  18392. 80080f2: 6014 str r4, [r2, #0]
  18393. 80080f4: 4628 mov r0, r5
  18394. 80080f6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  18395. 80080fa: f000 ba8a b.w 8008612 <__malloc_unlock>
  18396. 80080fe: 42a3 cmp r3, r4
  18397. 8008100: d90b bls.n 800811a <_free_r+0x4a>
  18398. 8008102: 6821 ldr r1, [r4, #0]
  18399. 8008104: 1862 adds r2, r4, r1
  18400. 8008106: 4293 cmp r3, r2
  18401. 8008108: bf01 itttt eq
  18402. 800810a: 681a ldreq r2, [r3, #0]
  18403. 800810c: 685b ldreq r3, [r3, #4]
  18404. 800810e: 1852 addeq r2, r2, r1
  18405. 8008110: 6022 streq r2, [r4, #0]
  18406. 8008112: 6063 str r3, [r4, #4]
  18407. 8008114: 6004 str r4, [r0, #0]
  18408. 8008116: e7ed b.n 80080f4 <_free_r+0x24>
  18409. 8008118: 4613 mov r3, r2
  18410. 800811a: 685a ldr r2, [r3, #4]
  18411. 800811c: b10a cbz r2, 8008122 <_free_r+0x52>
  18412. 800811e: 42a2 cmp r2, r4
  18413. 8008120: d9fa bls.n 8008118 <_free_r+0x48>
  18414. 8008122: 6819 ldr r1, [r3, #0]
  18415. 8008124: 1858 adds r0, r3, r1
  18416. 8008126: 42a0 cmp r0, r4
  18417. 8008128: d10b bne.n 8008142 <_free_r+0x72>
  18418. 800812a: 6820 ldr r0, [r4, #0]
  18419. 800812c: 4401 add r1, r0
  18420. 800812e: 1858 adds r0, r3, r1
  18421. 8008130: 4282 cmp r2, r0
  18422. 8008132: 6019 str r1, [r3, #0]
  18423. 8008134: d1de bne.n 80080f4 <_free_r+0x24>
  18424. 8008136: 6810 ldr r0, [r2, #0]
  18425. 8008138: 6852 ldr r2, [r2, #4]
  18426. 800813a: 4401 add r1, r0
  18427. 800813c: 6019 str r1, [r3, #0]
  18428. 800813e: 605a str r2, [r3, #4]
  18429. 8008140: e7d8 b.n 80080f4 <_free_r+0x24>
  18430. 8008142: d902 bls.n 800814a <_free_r+0x7a>
  18431. 8008144: 230c movs r3, #12
  18432. 8008146: 602b str r3, [r5, #0]
  18433. 8008148: e7d4 b.n 80080f4 <_free_r+0x24>
  18434. 800814a: 6820 ldr r0, [r4, #0]
  18435. 800814c: 1821 adds r1, r4, r0
  18436. 800814e: 428a cmp r2, r1
  18437. 8008150: bf01 itttt eq
  18438. 8008152: 6811 ldreq r1, [r2, #0]
  18439. 8008154: 6852 ldreq r2, [r2, #4]
  18440. 8008156: 1809 addeq r1, r1, r0
  18441. 8008158: 6021 streq r1, [r4, #0]
  18442. 800815a: 6062 str r2, [r4, #4]
  18443. 800815c: 605c str r4, [r3, #4]
  18444. 800815e: e7c9 b.n 80080f4 <_free_r+0x24>
  18445. 8008160: bd38 pop {r3, r4, r5, pc}
  18446. 8008162: bf00 nop
  18447. 8008164: 20000510 .word 0x20000510
  18448. 08008168 <_malloc_r>:
  18449. 8008168: b570 push {r4, r5, r6, lr}
  18450. 800816a: 1ccd adds r5, r1, #3
  18451. 800816c: f025 0503 bic.w r5, r5, #3
  18452. 8008170: 3508 adds r5, #8
  18453. 8008172: 2d0c cmp r5, #12
  18454. 8008174: bf38 it cc
  18455. 8008176: 250c movcc r5, #12
  18456. 8008178: 2d00 cmp r5, #0
  18457. 800817a: 4606 mov r6, r0
  18458. 800817c: db01 blt.n 8008182 <_malloc_r+0x1a>
  18459. 800817e: 42a9 cmp r1, r5
  18460. 8008180: d903 bls.n 800818a <_malloc_r+0x22>
  18461. 8008182: 230c movs r3, #12
  18462. 8008184: 6033 str r3, [r6, #0]
  18463. 8008186: 2000 movs r0, #0
  18464. 8008188: bd70 pop {r4, r5, r6, pc}
  18465. 800818a: f000 fa41 bl 8008610 <__malloc_lock>
  18466. 800818e: 4a21 ldr r2, [pc, #132] ; (8008214 <_malloc_r+0xac>)
  18467. 8008190: 6814 ldr r4, [r2, #0]
  18468. 8008192: 4621 mov r1, r4
  18469. 8008194: b991 cbnz r1, 80081bc <_malloc_r+0x54>
  18470. 8008196: 4c20 ldr r4, [pc, #128] ; (8008218 <_malloc_r+0xb0>)
  18471. 8008198: 6823 ldr r3, [r4, #0]
  18472. 800819a: b91b cbnz r3, 80081a4 <_malloc_r+0x3c>
  18473. 800819c: 4630 mov r0, r6
  18474. 800819e: f000 f97b bl 8008498 <_sbrk_r>
  18475. 80081a2: 6020 str r0, [r4, #0]
  18476. 80081a4: 4629 mov r1, r5
  18477. 80081a6: 4630 mov r0, r6
  18478. 80081a8: f000 f976 bl 8008498 <_sbrk_r>
  18479. 80081ac: 1c43 adds r3, r0, #1
  18480. 80081ae: d124 bne.n 80081fa <_malloc_r+0x92>
  18481. 80081b0: 230c movs r3, #12
  18482. 80081b2: 4630 mov r0, r6
  18483. 80081b4: 6033 str r3, [r6, #0]
  18484. 80081b6: f000 fa2c bl 8008612 <__malloc_unlock>
  18485. 80081ba: e7e4 b.n 8008186 <_malloc_r+0x1e>
  18486. 80081bc: 680b ldr r3, [r1, #0]
  18487. 80081be: 1b5b subs r3, r3, r5
  18488. 80081c0: d418 bmi.n 80081f4 <_malloc_r+0x8c>
  18489. 80081c2: 2b0b cmp r3, #11
  18490. 80081c4: d90f bls.n 80081e6 <_malloc_r+0x7e>
  18491. 80081c6: 600b str r3, [r1, #0]
  18492. 80081c8: 18cc adds r4, r1, r3
  18493. 80081ca: 50cd str r5, [r1, r3]
  18494. 80081cc: 4630 mov r0, r6
  18495. 80081ce: f000 fa20 bl 8008612 <__malloc_unlock>
  18496. 80081d2: f104 000b add.w r0, r4, #11
  18497. 80081d6: 1d23 adds r3, r4, #4
  18498. 80081d8: f020 0007 bic.w r0, r0, #7
  18499. 80081dc: 1ac3 subs r3, r0, r3
  18500. 80081de: d0d3 beq.n 8008188 <_malloc_r+0x20>
  18501. 80081e0: 425a negs r2, r3
  18502. 80081e2: 50e2 str r2, [r4, r3]
  18503. 80081e4: e7d0 b.n 8008188 <_malloc_r+0x20>
  18504. 80081e6: 684b ldr r3, [r1, #4]
  18505. 80081e8: 428c cmp r4, r1
  18506. 80081ea: bf16 itet ne
  18507. 80081ec: 6063 strne r3, [r4, #4]
  18508. 80081ee: 6013 streq r3, [r2, #0]
  18509. 80081f0: 460c movne r4, r1
  18510. 80081f2: e7eb b.n 80081cc <_malloc_r+0x64>
  18511. 80081f4: 460c mov r4, r1
  18512. 80081f6: 6849 ldr r1, [r1, #4]
  18513. 80081f8: e7cc b.n 8008194 <_malloc_r+0x2c>
  18514. 80081fa: 1cc4 adds r4, r0, #3
  18515. 80081fc: f024 0403 bic.w r4, r4, #3
  18516. 8008200: 42a0 cmp r0, r4
  18517. 8008202: d005 beq.n 8008210 <_malloc_r+0xa8>
  18518. 8008204: 1a21 subs r1, r4, r0
  18519. 8008206: 4630 mov r0, r6
  18520. 8008208: f000 f946 bl 8008498 <_sbrk_r>
  18521. 800820c: 3001 adds r0, #1
  18522. 800820e: d0cf beq.n 80081b0 <_malloc_r+0x48>
  18523. 8008210: 6025 str r5, [r4, #0]
  18524. 8008212: e7db b.n 80081cc <_malloc_r+0x64>
  18525. 8008214: 20000510 .word 0x20000510
  18526. 8008218: 20000514 .word 0x20000514
  18527. 0800821c <__sfputc_r>:
  18528. 800821c: 6893 ldr r3, [r2, #8]
  18529. 800821e: b410 push {r4}
  18530. 8008220: 3b01 subs r3, #1
  18531. 8008222: 2b00 cmp r3, #0
  18532. 8008224: 6093 str r3, [r2, #8]
  18533. 8008226: da07 bge.n 8008238 <__sfputc_r+0x1c>
  18534. 8008228: 6994 ldr r4, [r2, #24]
  18535. 800822a: 42a3 cmp r3, r4
  18536. 800822c: db01 blt.n 8008232 <__sfputc_r+0x16>
  18537. 800822e: 290a cmp r1, #10
  18538. 8008230: d102 bne.n 8008238 <__sfputc_r+0x1c>
  18539. 8008232: bc10 pop {r4}
  18540. 8008234: f7fe bb52 b.w 80068dc <__swbuf_r>
  18541. 8008238: 6813 ldr r3, [r2, #0]
  18542. 800823a: 1c58 adds r0, r3, #1
  18543. 800823c: 6010 str r0, [r2, #0]
  18544. 800823e: 7019 strb r1, [r3, #0]
  18545. 8008240: 4608 mov r0, r1
  18546. 8008242: bc10 pop {r4}
  18547. 8008244: 4770 bx lr
  18548. 08008246 <__sfputs_r>:
  18549. 8008246: b5f8 push {r3, r4, r5, r6, r7, lr}
  18550. 8008248: 4606 mov r6, r0
  18551. 800824a: 460f mov r7, r1
  18552. 800824c: 4614 mov r4, r2
  18553. 800824e: 18d5 adds r5, r2, r3
  18554. 8008250: 42ac cmp r4, r5
  18555. 8008252: d101 bne.n 8008258 <__sfputs_r+0x12>
  18556. 8008254: 2000 movs r0, #0
  18557. 8008256: e007 b.n 8008268 <__sfputs_r+0x22>
  18558. 8008258: 463a mov r2, r7
  18559. 800825a: f814 1b01 ldrb.w r1, [r4], #1
  18560. 800825e: 4630 mov r0, r6
  18561. 8008260: f7ff ffdc bl 800821c <__sfputc_r>
  18562. 8008264: 1c43 adds r3, r0, #1
  18563. 8008266: d1f3 bne.n 8008250 <__sfputs_r+0xa>
  18564. 8008268: bdf8 pop {r3, r4, r5, r6, r7, pc}
  18565. ...
  18566. 0800826c <_vfiprintf_r>:
  18567. 800826c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  18568. 8008270: 460c mov r4, r1
  18569. 8008272: b09d sub sp, #116 ; 0x74
  18570. 8008274: 4617 mov r7, r2
  18571. 8008276: 461d mov r5, r3
  18572. 8008278: 4606 mov r6, r0
  18573. 800827a: b118 cbz r0, 8008284 <_vfiprintf_r+0x18>
  18574. 800827c: 6983 ldr r3, [r0, #24]
  18575. 800827e: b90b cbnz r3, 8008284 <_vfiprintf_r+0x18>
  18576. 8008280: f7ff fb1e bl 80078c0 <__sinit>
  18577. 8008284: 4b7c ldr r3, [pc, #496] ; (8008478 <_vfiprintf_r+0x20c>)
  18578. 8008286: 429c cmp r4, r3
  18579. 8008288: d158 bne.n 800833c <_vfiprintf_r+0xd0>
  18580. 800828a: 6874 ldr r4, [r6, #4]
  18581. 800828c: 89a3 ldrh r3, [r4, #12]
  18582. 800828e: 0718 lsls r0, r3, #28
  18583. 8008290: d55e bpl.n 8008350 <_vfiprintf_r+0xe4>
  18584. 8008292: 6923 ldr r3, [r4, #16]
  18585. 8008294: 2b00 cmp r3, #0
  18586. 8008296: d05b beq.n 8008350 <_vfiprintf_r+0xe4>
  18587. 8008298: 2300 movs r3, #0
  18588. 800829a: 9309 str r3, [sp, #36] ; 0x24
  18589. 800829c: 2320 movs r3, #32
  18590. 800829e: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  18591. 80082a2: 2330 movs r3, #48 ; 0x30
  18592. 80082a4: f04f 0b01 mov.w fp, #1
  18593. 80082a8: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  18594. 80082ac: 9503 str r5, [sp, #12]
  18595. 80082ae: 46b8 mov r8, r7
  18596. 80082b0: 4645 mov r5, r8
  18597. 80082b2: f815 3b01 ldrb.w r3, [r5], #1
  18598. 80082b6: b10b cbz r3, 80082bc <_vfiprintf_r+0x50>
  18599. 80082b8: 2b25 cmp r3, #37 ; 0x25
  18600. 80082ba: d154 bne.n 8008366 <_vfiprintf_r+0xfa>
  18601. 80082bc: ebb8 0a07 subs.w sl, r8, r7
  18602. 80082c0: d00b beq.n 80082da <_vfiprintf_r+0x6e>
  18603. 80082c2: 4653 mov r3, sl
  18604. 80082c4: 463a mov r2, r7
  18605. 80082c6: 4621 mov r1, r4
  18606. 80082c8: 4630 mov r0, r6
  18607. 80082ca: f7ff ffbc bl 8008246 <__sfputs_r>
  18608. 80082ce: 3001 adds r0, #1
  18609. 80082d0: f000 80c2 beq.w 8008458 <_vfiprintf_r+0x1ec>
  18610. 80082d4: 9b09 ldr r3, [sp, #36] ; 0x24
  18611. 80082d6: 4453 add r3, sl
  18612. 80082d8: 9309 str r3, [sp, #36] ; 0x24
  18613. 80082da: f898 3000 ldrb.w r3, [r8]
  18614. 80082de: 2b00 cmp r3, #0
  18615. 80082e0: f000 80ba beq.w 8008458 <_vfiprintf_r+0x1ec>
  18616. 80082e4: 2300 movs r3, #0
  18617. 80082e6: f04f 32ff mov.w r2, #4294967295
  18618. 80082ea: e9cd 2305 strd r2, r3, [sp, #20]
  18619. 80082ee: 9304 str r3, [sp, #16]
  18620. 80082f0: 9307 str r3, [sp, #28]
  18621. 80082f2: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  18622. 80082f6: 931a str r3, [sp, #104] ; 0x68
  18623. 80082f8: 46a8 mov r8, r5
  18624. 80082fa: 2205 movs r2, #5
  18625. 80082fc: f818 1b01 ldrb.w r1, [r8], #1
  18626. 8008300: 485e ldr r0, [pc, #376] ; (800847c <_vfiprintf_r+0x210>)
  18627. 8008302: f7ff fbe1 bl 8007ac8 <memchr>
  18628. 8008306: 9b04 ldr r3, [sp, #16]
  18629. 8008308: bb78 cbnz r0, 800836a <_vfiprintf_r+0xfe>
  18630. 800830a: 06d9 lsls r1, r3, #27
  18631. 800830c: bf44 itt mi
  18632. 800830e: 2220 movmi r2, #32
  18633. 8008310: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  18634. 8008314: 071a lsls r2, r3, #28
  18635. 8008316: bf44 itt mi
  18636. 8008318: 222b movmi r2, #43 ; 0x2b
  18637. 800831a: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  18638. 800831e: 782a ldrb r2, [r5, #0]
  18639. 8008320: 2a2a cmp r2, #42 ; 0x2a
  18640. 8008322: d02a beq.n 800837a <_vfiprintf_r+0x10e>
  18641. 8008324: 46a8 mov r8, r5
  18642. 8008326: 2000 movs r0, #0
  18643. 8008328: 250a movs r5, #10
  18644. 800832a: 9a07 ldr r2, [sp, #28]
  18645. 800832c: 4641 mov r1, r8
  18646. 800832e: f811 3b01 ldrb.w r3, [r1], #1
  18647. 8008332: 3b30 subs r3, #48 ; 0x30
  18648. 8008334: 2b09 cmp r3, #9
  18649. 8008336: d969 bls.n 800840c <_vfiprintf_r+0x1a0>
  18650. 8008338: b360 cbz r0, 8008394 <_vfiprintf_r+0x128>
  18651. 800833a: e024 b.n 8008386 <_vfiprintf_r+0x11a>
  18652. 800833c: 4b50 ldr r3, [pc, #320] ; (8008480 <_vfiprintf_r+0x214>)
  18653. 800833e: 429c cmp r4, r3
  18654. 8008340: d101 bne.n 8008346 <_vfiprintf_r+0xda>
  18655. 8008342: 68b4 ldr r4, [r6, #8]
  18656. 8008344: e7a2 b.n 800828c <_vfiprintf_r+0x20>
  18657. 8008346: 4b4f ldr r3, [pc, #316] ; (8008484 <_vfiprintf_r+0x218>)
  18658. 8008348: 429c cmp r4, r3
  18659. 800834a: bf08 it eq
  18660. 800834c: 68f4 ldreq r4, [r6, #12]
  18661. 800834e: e79d b.n 800828c <_vfiprintf_r+0x20>
  18662. 8008350: 4621 mov r1, r4
  18663. 8008352: 4630 mov r0, r6
  18664. 8008354: f7fe fb14 bl 8006980 <__swsetup_r>
  18665. 8008358: 2800 cmp r0, #0
  18666. 800835a: d09d beq.n 8008298 <_vfiprintf_r+0x2c>
  18667. 800835c: f04f 30ff mov.w r0, #4294967295
  18668. 8008360: b01d add sp, #116 ; 0x74
  18669. 8008362: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18670. 8008366: 46a8 mov r8, r5
  18671. 8008368: e7a2 b.n 80082b0 <_vfiprintf_r+0x44>
  18672. 800836a: 4a44 ldr r2, [pc, #272] ; (800847c <_vfiprintf_r+0x210>)
  18673. 800836c: 4645 mov r5, r8
  18674. 800836e: 1a80 subs r0, r0, r2
  18675. 8008370: fa0b f000 lsl.w r0, fp, r0
  18676. 8008374: 4318 orrs r0, r3
  18677. 8008376: 9004 str r0, [sp, #16]
  18678. 8008378: e7be b.n 80082f8 <_vfiprintf_r+0x8c>
  18679. 800837a: 9a03 ldr r2, [sp, #12]
  18680. 800837c: 1d11 adds r1, r2, #4
  18681. 800837e: 6812 ldr r2, [r2, #0]
  18682. 8008380: 9103 str r1, [sp, #12]
  18683. 8008382: 2a00 cmp r2, #0
  18684. 8008384: db01 blt.n 800838a <_vfiprintf_r+0x11e>
  18685. 8008386: 9207 str r2, [sp, #28]
  18686. 8008388: e004 b.n 8008394 <_vfiprintf_r+0x128>
  18687. 800838a: 4252 negs r2, r2
  18688. 800838c: f043 0302 orr.w r3, r3, #2
  18689. 8008390: 9207 str r2, [sp, #28]
  18690. 8008392: 9304 str r3, [sp, #16]
  18691. 8008394: f898 3000 ldrb.w r3, [r8]
  18692. 8008398: 2b2e cmp r3, #46 ; 0x2e
  18693. 800839a: d10e bne.n 80083ba <_vfiprintf_r+0x14e>
  18694. 800839c: f898 3001 ldrb.w r3, [r8, #1]
  18695. 80083a0: 2b2a cmp r3, #42 ; 0x2a
  18696. 80083a2: d138 bne.n 8008416 <_vfiprintf_r+0x1aa>
  18697. 80083a4: 9b03 ldr r3, [sp, #12]
  18698. 80083a6: f108 0802 add.w r8, r8, #2
  18699. 80083aa: 1d1a adds r2, r3, #4
  18700. 80083ac: 681b ldr r3, [r3, #0]
  18701. 80083ae: 9203 str r2, [sp, #12]
  18702. 80083b0: 2b00 cmp r3, #0
  18703. 80083b2: bfb8 it lt
  18704. 80083b4: f04f 33ff movlt.w r3, #4294967295
  18705. 80083b8: 9305 str r3, [sp, #20]
  18706. 80083ba: 4d33 ldr r5, [pc, #204] ; (8008488 <_vfiprintf_r+0x21c>)
  18707. 80083bc: 2203 movs r2, #3
  18708. 80083be: f898 1000 ldrb.w r1, [r8]
  18709. 80083c2: 4628 mov r0, r5
  18710. 80083c4: f7ff fb80 bl 8007ac8 <memchr>
  18711. 80083c8: b140 cbz r0, 80083dc <_vfiprintf_r+0x170>
  18712. 80083ca: 2340 movs r3, #64 ; 0x40
  18713. 80083cc: 1b40 subs r0, r0, r5
  18714. 80083ce: fa03 f000 lsl.w r0, r3, r0
  18715. 80083d2: 9b04 ldr r3, [sp, #16]
  18716. 80083d4: f108 0801 add.w r8, r8, #1
  18717. 80083d8: 4303 orrs r3, r0
  18718. 80083da: 9304 str r3, [sp, #16]
  18719. 80083dc: f898 1000 ldrb.w r1, [r8]
  18720. 80083e0: 2206 movs r2, #6
  18721. 80083e2: 482a ldr r0, [pc, #168] ; (800848c <_vfiprintf_r+0x220>)
  18722. 80083e4: f108 0701 add.w r7, r8, #1
  18723. 80083e8: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  18724. 80083ec: f7ff fb6c bl 8007ac8 <memchr>
  18725. 80083f0: 2800 cmp r0, #0
  18726. 80083f2: d037 beq.n 8008464 <_vfiprintf_r+0x1f8>
  18727. 80083f4: 4b26 ldr r3, [pc, #152] ; (8008490 <_vfiprintf_r+0x224>)
  18728. 80083f6: bb1b cbnz r3, 8008440 <_vfiprintf_r+0x1d4>
  18729. 80083f8: 9b03 ldr r3, [sp, #12]
  18730. 80083fa: 3307 adds r3, #7
  18731. 80083fc: f023 0307 bic.w r3, r3, #7
  18732. 8008400: 3308 adds r3, #8
  18733. 8008402: 9303 str r3, [sp, #12]
  18734. 8008404: 9b09 ldr r3, [sp, #36] ; 0x24
  18735. 8008406: 444b add r3, r9
  18736. 8008408: 9309 str r3, [sp, #36] ; 0x24
  18737. 800840a: e750 b.n 80082ae <_vfiprintf_r+0x42>
  18738. 800840c: fb05 3202 mla r2, r5, r2, r3
  18739. 8008410: 2001 movs r0, #1
  18740. 8008412: 4688 mov r8, r1
  18741. 8008414: e78a b.n 800832c <_vfiprintf_r+0xc0>
  18742. 8008416: 2300 movs r3, #0
  18743. 8008418: 250a movs r5, #10
  18744. 800841a: 4619 mov r1, r3
  18745. 800841c: f108 0801 add.w r8, r8, #1
  18746. 8008420: 9305 str r3, [sp, #20]
  18747. 8008422: 4640 mov r0, r8
  18748. 8008424: f810 2b01 ldrb.w r2, [r0], #1
  18749. 8008428: 3a30 subs r2, #48 ; 0x30
  18750. 800842a: 2a09 cmp r2, #9
  18751. 800842c: d903 bls.n 8008436 <_vfiprintf_r+0x1ca>
  18752. 800842e: 2b00 cmp r3, #0
  18753. 8008430: d0c3 beq.n 80083ba <_vfiprintf_r+0x14e>
  18754. 8008432: 9105 str r1, [sp, #20]
  18755. 8008434: e7c1 b.n 80083ba <_vfiprintf_r+0x14e>
  18756. 8008436: fb05 2101 mla r1, r5, r1, r2
  18757. 800843a: 2301 movs r3, #1
  18758. 800843c: 4680 mov r8, r0
  18759. 800843e: e7f0 b.n 8008422 <_vfiprintf_r+0x1b6>
  18760. 8008440: ab03 add r3, sp, #12
  18761. 8008442: 9300 str r3, [sp, #0]
  18762. 8008444: 4622 mov r2, r4
  18763. 8008446: 4b13 ldr r3, [pc, #76] ; (8008494 <_vfiprintf_r+0x228>)
  18764. 8008448: a904 add r1, sp, #16
  18765. 800844a: 4630 mov r0, r6
  18766. 800844c: f7fd fd56 bl 8005efc <_printf_float>
  18767. 8008450: f1b0 3fff cmp.w r0, #4294967295
  18768. 8008454: 4681 mov r9, r0
  18769. 8008456: d1d5 bne.n 8008404 <_vfiprintf_r+0x198>
  18770. 8008458: 89a3 ldrh r3, [r4, #12]
  18771. 800845a: 065b lsls r3, r3, #25
  18772. 800845c: f53f af7e bmi.w 800835c <_vfiprintf_r+0xf0>
  18773. 8008460: 9809 ldr r0, [sp, #36] ; 0x24
  18774. 8008462: e77d b.n 8008360 <_vfiprintf_r+0xf4>
  18775. 8008464: ab03 add r3, sp, #12
  18776. 8008466: 9300 str r3, [sp, #0]
  18777. 8008468: 4622 mov r2, r4
  18778. 800846a: 4b0a ldr r3, [pc, #40] ; (8008494 <_vfiprintf_r+0x228>)
  18779. 800846c: a904 add r1, sp, #16
  18780. 800846e: 4630 mov r0, r6
  18781. 8008470: f7fd fff0 bl 8006454 <_printf_i>
  18782. 8008474: e7ec b.n 8008450 <_vfiprintf_r+0x1e4>
  18783. 8008476: bf00 nop
  18784. 8008478: 08008a10 .word 0x08008a10
  18785. 800847c: 08008b4c .word 0x08008b4c
  18786. 8008480: 08008a30 .word 0x08008a30
  18787. 8008484: 080089f0 .word 0x080089f0
  18788. 8008488: 08008b52 .word 0x08008b52
  18789. 800848c: 08008b56 .word 0x08008b56
  18790. 8008490: 08005efd .word 0x08005efd
  18791. 8008494: 08008247 .word 0x08008247
  18792. 08008498 <_sbrk_r>:
  18793. 8008498: b538 push {r3, r4, r5, lr}
  18794. 800849a: 2300 movs r3, #0
  18795. 800849c: 4c05 ldr r4, [pc, #20] ; (80084b4 <_sbrk_r+0x1c>)
  18796. 800849e: 4605 mov r5, r0
  18797. 80084a0: 4608 mov r0, r1
  18798. 80084a2: 6023 str r3, [r4, #0]
  18799. 80084a4: f7fd fbdc bl 8005c60 <_sbrk>
  18800. 80084a8: 1c43 adds r3, r0, #1
  18801. 80084aa: d102 bne.n 80084b2 <_sbrk_r+0x1a>
  18802. 80084ac: 6823 ldr r3, [r4, #0]
  18803. 80084ae: b103 cbz r3, 80084b2 <_sbrk_r+0x1a>
  18804. 80084b0: 602b str r3, [r5, #0]
  18805. 80084b2: bd38 pop {r3, r4, r5, pc}
  18806. 80084b4: 200009dc .word 0x200009dc
  18807. 080084b8 <__sread>:
  18808. 80084b8: b510 push {r4, lr}
  18809. 80084ba: 460c mov r4, r1
  18810. 80084bc: f9b1 100e ldrsh.w r1, [r1, #14]
  18811. 80084c0: f000 f8a8 bl 8008614 <_read_r>
  18812. 80084c4: 2800 cmp r0, #0
  18813. 80084c6: bfab itete ge
  18814. 80084c8: 6d63 ldrge r3, [r4, #84] ; 0x54
  18815. 80084ca: 89a3 ldrhlt r3, [r4, #12]
  18816. 80084cc: 181b addge r3, r3, r0
  18817. 80084ce: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  18818. 80084d2: bfac ite ge
  18819. 80084d4: 6563 strge r3, [r4, #84] ; 0x54
  18820. 80084d6: 81a3 strhlt r3, [r4, #12]
  18821. 80084d8: bd10 pop {r4, pc}
  18822. 080084da <__swrite>:
  18823. 80084da: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  18824. 80084de: 461f mov r7, r3
  18825. 80084e0: 898b ldrh r3, [r1, #12]
  18826. 80084e2: 4605 mov r5, r0
  18827. 80084e4: 05db lsls r3, r3, #23
  18828. 80084e6: 460c mov r4, r1
  18829. 80084e8: 4616 mov r6, r2
  18830. 80084ea: d505 bpl.n 80084f8 <__swrite+0x1e>
  18831. 80084ec: 2302 movs r3, #2
  18832. 80084ee: 2200 movs r2, #0
  18833. 80084f0: f9b1 100e ldrsh.w r1, [r1, #14]
  18834. 80084f4: f000 f868 bl 80085c8 <_lseek_r>
  18835. 80084f8: 89a3 ldrh r3, [r4, #12]
  18836. 80084fa: 4632 mov r2, r6
  18837. 80084fc: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  18838. 8008500: 81a3 strh r3, [r4, #12]
  18839. 8008502: f9b4 100e ldrsh.w r1, [r4, #14]
  18840. 8008506: 463b mov r3, r7
  18841. 8008508: 4628 mov r0, r5
  18842. 800850a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  18843. 800850e: f000 b817 b.w 8008540 <_write_r>
  18844. 08008512 <__sseek>:
  18845. 8008512: b510 push {r4, lr}
  18846. 8008514: 460c mov r4, r1
  18847. 8008516: f9b1 100e ldrsh.w r1, [r1, #14]
  18848. 800851a: f000 f855 bl 80085c8 <_lseek_r>
  18849. 800851e: 1c43 adds r3, r0, #1
  18850. 8008520: 89a3 ldrh r3, [r4, #12]
  18851. 8008522: bf15 itete ne
  18852. 8008524: 6560 strne r0, [r4, #84] ; 0x54
  18853. 8008526: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  18854. 800852a: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  18855. 800852e: 81a3 strheq r3, [r4, #12]
  18856. 8008530: bf18 it ne
  18857. 8008532: 81a3 strhne r3, [r4, #12]
  18858. 8008534: bd10 pop {r4, pc}
  18859. 08008536 <__sclose>:
  18860. 8008536: f9b1 100e ldrsh.w r1, [r1, #14]
  18861. 800853a: f000 b813 b.w 8008564 <_close_r>
  18862. ...
  18863. 08008540 <_write_r>:
  18864. 8008540: b538 push {r3, r4, r5, lr}
  18865. 8008542: 4605 mov r5, r0
  18866. 8008544: 4608 mov r0, r1
  18867. 8008546: 4611 mov r1, r2
  18868. 8008548: 2200 movs r2, #0
  18869. 800854a: 4c05 ldr r4, [pc, #20] ; (8008560 <_write_r+0x20>)
  18870. 800854c: 6022 str r2, [r4, #0]
  18871. 800854e: 461a mov r2, r3
  18872. 8008550: f7fc fdae bl 80050b0 <_write>
  18873. 8008554: 1c43 adds r3, r0, #1
  18874. 8008556: d102 bne.n 800855e <_write_r+0x1e>
  18875. 8008558: 6823 ldr r3, [r4, #0]
  18876. 800855a: b103 cbz r3, 800855e <_write_r+0x1e>
  18877. 800855c: 602b str r3, [r5, #0]
  18878. 800855e: bd38 pop {r3, r4, r5, pc}
  18879. 8008560: 200009dc .word 0x200009dc
  18880. 08008564 <_close_r>:
  18881. 8008564: b538 push {r3, r4, r5, lr}
  18882. 8008566: 2300 movs r3, #0
  18883. 8008568: 4c05 ldr r4, [pc, #20] ; (8008580 <_close_r+0x1c>)
  18884. 800856a: 4605 mov r5, r0
  18885. 800856c: 4608 mov r0, r1
  18886. 800856e: 6023 str r3, [r4, #0]
  18887. 8008570: f7fd fb45 bl 8005bfe <_close>
  18888. 8008574: 1c43 adds r3, r0, #1
  18889. 8008576: d102 bne.n 800857e <_close_r+0x1a>
  18890. 8008578: 6823 ldr r3, [r4, #0]
  18891. 800857a: b103 cbz r3, 800857e <_close_r+0x1a>
  18892. 800857c: 602b str r3, [r5, #0]
  18893. 800857e: bd38 pop {r3, r4, r5, pc}
  18894. 8008580: 200009dc .word 0x200009dc
  18895. 08008584 <_fstat_r>:
  18896. 8008584: b538 push {r3, r4, r5, lr}
  18897. 8008586: 2300 movs r3, #0
  18898. 8008588: 4c06 ldr r4, [pc, #24] ; (80085a4 <_fstat_r+0x20>)
  18899. 800858a: 4605 mov r5, r0
  18900. 800858c: 4608 mov r0, r1
  18901. 800858e: 4611 mov r1, r2
  18902. 8008590: 6023 str r3, [r4, #0]
  18903. 8008592: f7fd fb3f bl 8005c14 <_fstat>
  18904. 8008596: 1c43 adds r3, r0, #1
  18905. 8008598: d102 bne.n 80085a0 <_fstat_r+0x1c>
  18906. 800859a: 6823 ldr r3, [r4, #0]
  18907. 800859c: b103 cbz r3, 80085a0 <_fstat_r+0x1c>
  18908. 800859e: 602b str r3, [r5, #0]
  18909. 80085a0: bd38 pop {r3, r4, r5, pc}
  18910. 80085a2: bf00 nop
  18911. 80085a4: 200009dc .word 0x200009dc
  18912. 080085a8 <_isatty_r>:
  18913. 80085a8: b538 push {r3, r4, r5, lr}
  18914. 80085aa: 2300 movs r3, #0
  18915. 80085ac: 4c05 ldr r4, [pc, #20] ; (80085c4 <_isatty_r+0x1c>)
  18916. 80085ae: 4605 mov r5, r0
  18917. 80085b0: 4608 mov r0, r1
  18918. 80085b2: 6023 str r3, [r4, #0]
  18919. 80085b4: f7fd fb3d bl 8005c32 <_isatty>
  18920. 80085b8: 1c43 adds r3, r0, #1
  18921. 80085ba: d102 bne.n 80085c2 <_isatty_r+0x1a>
  18922. 80085bc: 6823 ldr r3, [r4, #0]
  18923. 80085be: b103 cbz r3, 80085c2 <_isatty_r+0x1a>
  18924. 80085c0: 602b str r3, [r5, #0]
  18925. 80085c2: bd38 pop {r3, r4, r5, pc}
  18926. 80085c4: 200009dc .word 0x200009dc
  18927. 080085c8 <_lseek_r>:
  18928. 80085c8: b538 push {r3, r4, r5, lr}
  18929. 80085ca: 4605 mov r5, r0
  18930. 80085cc: 4608 mov r0, r1
  18931. 80085ce: 4611 mov r1, r2
  18932. 80085d0: 2200 movs r2, #0
  18933. 80085d2: 4c05 ldr r4, [pc, #20] ; (80085e8 <_lseek_r+0x20>)
  18934. 80085d4: 6022 str r2, [r4, #0]
  18935. 80085d6: 461a mov r2, r3
  18936. 80085d8: f7fd fb35 bl 8005c46 <_lseek>
  18937. 80085dc: 1c43 adds r3, r0, #1
  18938. 80085de: d102 bne.n 80085e6 <_lseek_r+0x1e>
  18939. 80085e0: 6823 ldr r3, [r4, #0]
  18940. 80085e2: b103 cbz r3, 80085e6 <_lseek_r+0x1e>
  18941. 80085e4: 602b str r3, [r5, #0]
  18942. 80085e6: bd38 pop {r3, r4, r5, pc}
  18943. 80085e8: 200009dc .word 0x200009dc
  18944. 080085ec <__ascii_mbtowc>:
  18945. 80085ec: b082 sub sp, #8
  18946. 80085ee: b901 cbnz r1, 80085f2 <__ascii_mbtowc+0x6>
  18947. 80085f0: a901 add r1, sp, #4
  18948. 80085f2: b142 cbz r2, 8008606 <__ascii_mbtowc+0x1a>
  18949. 80085f4: b14b cbz r3, 800860a <__ascii_mbtowc+0x1e>
  18950. 80085f6: 7813 ldrb r3, [r2, #0]
  18951. 80085f8: 600b str r3, [r1, #0]
  18952. 80085fa: 7812 ldrb r2, [r2, #0]
  18953. 80085fc: 1c10 adds r0, r2, #0
  18954. 80085fe: bf18 it ne
  18955. 8008600: 2001 movne r0, #1
  18956. 8008602: b002 add sp, #8
  18957. 8008604: 4770 bx lr
  18958. 8008606: 4610 mov r0, r2
  18959. 8008608: e7fb b.n 8008602 <__ascii_mbtowc+0x16>
  18960. 800860a: f06f 0001 mvn.w r0, #1
  18961. 800860e: e7f8 b.n 8008602 <__ascii_mbtowc+0x16>
  18962. 08008610 <__malloc_lock>:
  18963. 8008610: 4770 bx lr
  18964. 08008612 <__malloc_unlock>:
  18965. 8008612: 4770 bx lr
  18966. 08008614 <_read_r>:
  18967. 8008614: b538 push {r3, r4, r5, lr}
  18968. 8008616: 4605 mov r5, r0
  18969. 8008618: 4608 mov r0, r1
  18970. 800861a: 4611 mov r1, r2
  18971. 800861c: 2200 movs r2, #0
  18972. 800861e: 4c05 ldr r4, [pc, #20] ; (8008634 <_read_r+0x20>)
  18973. 8008620: 6022 str r2, [r4, #0]
  18974. 8008622: 461a mov r2, r3
  18975. 8008624: f7fd face bl 8005bc4 <_read>
  18976. 8008628: 1c43 adds r3, r0, #1
  18977. 800862a: d102 bne.n 8008632 <_read_r+0x1e>
  18978. 800862c: 6823 ldr r3, [r4, #0]
  18979. 800862e: b103 cbz r3, 8008632 <_read_r+0x1e>
  18980. 8008630: 602b str r3, [r5, #0]
  18981. 8008632: bd38 pop {r3, r4, r5, pc}
  18982. 8008634: 200009dc .word 0x200009dc
  18983. 08008638 <__ascii_wctomb>:
  18984. 8008638: b149 cbz r1, 800864e <__ascii_wctomb+0x16>
  18985. 800863a: 2aff cmp r2, #255 ; 0xff
  18986. 800863c: bf8b itete hi
  18987. 800863e: 238a movhi r3, #138 ; 0x8a
  18988. 8008640: 700a strbls r2, [r1, #0]
  18989. 8008642: 6003 strhi r3, [r0, #0]
  18990. 8008644: 2001 movls r0, #1
  18991. 8008646: bf88 it hi
  18992. 8008648: f04f 30ff movhi.w r0, #4294967295
  18993. 800864c: 4770 bx lr
  18994. 800864e: 4608 mov r0, r1
  18995. 8008650: 4770 bx lr
  18996. ...
  18997. 08008654 <_init>:
  18998. 8008654: b5f8 push {r3, r4, r5, r6, r7, lr}
  18999. 8008656: bf00 nop
  19000. 8008658: bcf8 pop {r3, r4, r5, r6, r7}
  19001. 800865a: bc08 pop {r3}
  19002. 800865c: 469e mov lr, r3
  19003. 800865e: 4770 bx lr
  19004. 08008660 <_fini>:
  19005. 8008660: b5f8 push {r3, r4, r5, r6, r7, lr}
  19006. 8008662: bf00 nop
  19007. 8008664: bcf8 pop {r3, r4, r5, r6, r7}
  19008. 8008666: bc08 pop {r3}
  19009. 8008668: 469e mov lr, r3
  19010. 800866a: 4770 bx lr