1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704 |
- dosim-v1.elf: file format elf32-littlearm
- Sections:
- Idx Name Size VMA LMA File off Algn
- 0 .isr_vector 0000013c 08000000 08000000 00010000 2**0
- CONTENTS, ALLOC, LOAD, READONLY, DATA
- 1 .text 00009244 08000140 08000140 00010140 2**3
- CONTENTS, ALLOC, LOAD, READONLY, CODE
- 2 .rodata 0000116c 08009388 08009388 00019388 2**3
- CONTENTS, ALLOC, LOAD, READONLY, DATA
- 3 .ARM.extab 00000000 0800a4f4 0800a4f4 000201e4 2**0
- CONTENTS
- 4 .ARM 00000008 0800a4f4 0800a4f4 0001a4f4 2**2
- CONTENTS, ALLOC, LOAD, READONLY, DATA
- 5 .preinit_array 00000000 0800a4fc 0800a4fc 000201e4 2**0
- CONTENTS, ALLOC, LOAD, DATA
- 6 .init_array 00000004 0800a4fc 0800a4fc 0001a4fc 2**2
- CONTENTS, ALLOC, LOAD, DATA
- 7 .fini_array 00000004 0800a500 0800a500 0001a500 2**2
- CONTENTS, ALLOC, LOAD, DATA
- 8 .data 000001e4 20000000 0800a504 00020000 2**2
- CONTENTS, ALLOC, LOAD, DATA
- 9 .bss 000004cc 200001e4 0800a6e8 000201e4 2**2
- ALLOC
- 10 ._user_heap_stack 00000600 200006b0 0800a6e8 000206b0 2**0
- ALLOC
- 11 .ARM.attributes 00000029 00000000 00000000 000201e4 2**0
- CONTENTS, READONLY
- 12 .debug_info 00013e29 00000000 00000000 0002020d 2**0
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 13 .debug_abbrev 00002bf5 00000000 00000000 00034036 2**0
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 14 .debug_aranges 000011e0 00000000 00000000 00036c30 2**3
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 15 .debug_ranges 000010e8 00000000 00000000 00037e10 2**3
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 16 .debug_macro 000171e3 00000000 00000000 00038ef8 2**0
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 17 .debug_line 0001385e 00000000 00000000 000500db 2**0
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 18 .debug_str 0008cae7 00000000 00000000 00063939 2**0
- CONTENTS, READONLY, DEBUGGING, OCTETS
- 19 .comment 00000053 00000000 00000000 000f0420 2**0
- CONTENTS, READONLY
- 20 .debug_frame 00005d70 00000000 00000000 000f0474 2**2
- CONTENTS, READONLY, DEBUGGING, OCTETS
- Disassembly of section .text:
- 08000140 <__do_global_dtors_aux>:
- 8000140: b510 push {r4, lr}
- 8000142: 4c05 ldr r4, [pc, #20] ; (8000158 <__do_global_dtors_aux+0x18>)
- 8000144: 7823 ldrb r3, [r4, #0]
- 8000146: b933 cbnz r3, 8000156 <__do_global_dtors_aux+0x16>
- 8000148: 4b04 ldr r3, [pc, #16] ; (800015c <__do_global_dtors_aux+0x1c>)
- 800014a: b113 cbz r3, 8000152 <__do_global_dtors_aux+0x12>
- 800014c: 4804 ldr r0, [pc, #16] ; (8000160 <__do_global_dtors_aux+0x20>)
- 800014e: f3af 8000 nop.w
- 8000152: 2301 movs r3, #1
- 8000154: 7023 strb r3, [r4, #0]
- 8000156: bd10 pop {r4, pc}
- 8000158: 200001e4 .word 0x200001e4
- 800015c: 00000000 .word 0x00000000
- 8000160: 0800936c .word 0x0800936c
- 08000164 <frame_dummy>:
- 8000164: b508 push {r3, lr}
- 8000166: 4b03 ldr r3, [pc, #12] ; (8000174 <frame_dummy+0x10>)
- 8000168: b11b cbz r3, 8000172 <frame_dummy+0xe>
- 800016a: 4903 ldr r1, [pc, #12] ; (8000178 <frame_dummy+0x14>)
- 800016c: 4803 ldr r0, [pc, #12] ; (800017c <frame_dummy+0x18>)
- 800016e: f3af 8000 nop.w
- 8000172: bd08 pop {r3, pc}
- 8000174: 00000000 .word 0x00000000
- 8000178: 200001e8 .word 0x200001e8
- 800017c: 0800936c .word 0x0800936c
- 08000180 <strlen>:
- 8000180: 4603 mov r3, r0
- 8000182: f813 2b01 ldrb.w r2, [r3], #1
- 8000186: 2a00 cmp r2, #0
- 8000188: d1fb bne.n 8000182 <strlen+0x2>
- 800018a: 1a18 subs r0, r3, r0
- 800018c: 3801 subs r0, #1
- 800018e: 4770 bx lr
- 08000190 <__aeabi_drsub>:
- 8000190: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000
- 8000194: e002 b.n 800019c <__adddf3>
- 8000196: bf00 nop
- 08000198 <__aeabi_dsub>:
- 8000198: f083 4300 eor.w r3, r3, #2147483648 ; 0x80000000
- 0800019c <__adddf3>:
- 800019c: b530 push {r4, r5, lr}
- 800019e: ea4f 0441 mov.w r4, r1, lsl #1
- 80001a2: ea4f 0543 mov.w r5, r3, lsl #1
- 80001a6: ea94 0f05 teq r4, r5
- 80001aa: bf08 it eq
- 80001ac: ea90 0f02 teqeq r0, r2
- 80001b0: bf1f itttt ne
- 80001b2: ea54 0c00 orrsne.w ip, r4, r0
- 80001b6: ea55 0c02 orrsne.w ip, r5, r2
- 80001ba: ea7f 5c64 mvnsne.w ip, r4, asr #21
- 80001be: ea7f 5c65 mvnsne.w ip, r5, asr #21
- 80001c2: f000 80e2 beq.w 800038a <__adddf3+0x1ee>
- 80001c6: ea4f 5454 mov.w r4, r4, lsr #21
- 80001ca: ebd4 5555 rsbs r5, r4, r5, lsr #21
- 80001ce: bfb8 it lt
- 80001d0: 426d neglt r5, r5
- 80001d2: dd0c ble.n 80001ee <__adddf3+0x52>
- 80001d4: 442c add r4, r5
- 80001d6: ea80 0202 eor.w r2, r0, r2
- 80001da: ea81 0303 eor.w r3, r1, r3
- 80001de: ea82 0000 eor.w r0, r2, r0
- 80001e2: ea83 0101 eor.w r1, r3, r1
- 80001e6: ea80 0202 eor.w r2, r0, r2
- 80001ea: ea81 0303 eor.w r3, r1, r3
- 80001ee: 2d36 cmp r5, #54 ; 0x36
- 80001f0: bf88 it hi
- 80001f2: bd30 pophi {r4, r5, pc}
- 80001f4: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
- 80001f8: ea4f 3101 mov.w r1, r1, lsl #12
- 80001fc: f44f 1c80 mov.w ip, #1048576 ; 0x100000
- 8000200: ea4c 3111 orr.w r1, ip, r1, lsr #12
- 8000204: d002 beq.n 800020c <__adddf3+0x70>
- 8000206: 4240 negs r0, r0
- 8000208: eb61 0141 sbc.w r1, r1, r1, lsl #1
- 800020c: f013 4f00 tst.w r3, #2147483648 ; 0x80000000
- 8000210: ea4f 3303 mov.w r3, r3, lsl #12
- 8000214: ea4c 3313 orr.w r3, ip, r3, lsr #12
- 8000218: d002 beq.n 8000220 <__adddf3+0x84>
- 800021a: 4252 negs r2, r2
- 800021c: eb63 0343 sbc.w r3, r3, r3, lsl #1
- 8000220: ea94 0f05 teq r4, r5
- 8000224: f000 80a7 beq.w 8000376 <__adddf3+0x1da>
- 8000228: f1a4 0401 sub.w r4, r4, #1
- 800022c: f1d5 0e20 rsbs lr, r5, #32
- 8000230: db0d blt.n 800024e <__adddf3+0xb2>
- 8000232: fa02 fc0e lsl.w ip, r2, lr
- 8000236: fa22 f205 lsr.w r2, r2, r5
- 800023a: 1880 adds r0, r0, r2
- 800023c: f141 0100 adc.w r1, r1, #0
- 8000240: fa03 f20e lsl.w r2, r3, lr
- 8000244: 1880 adds r0, r0, r2
- 8000246: fa43 f305 asr.w r3, r3, r5
- 800024a: 4159 adcs r1, r3
- 800024c: e00e b.n 800026c <__adddf3+0xd0>
- 800024e: f1a5 0520 sub.w r5, r5, #32
- 8000252: f10e 0e20 add.w lr, lr, #32
- 8000256: 2a01 cmp r2, #1
- 8000258: fa03 fc0e lsl.w ip, r3, lr
- 800025c: bf28 it cs
- 800025e: f04c 0c02 orrcs.w ip, ip, #2
- 8000262: fa43 f305 asr.w r3, r3, r5
- 8000266: 18c0 adds r0, r0, r3
- 8000268: eb51 71e3 adcs.w r1, r1, r3, asr #31
- 800026c: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
- 8000270: d507 bpl.n 8000282 <__adddf3+0xe6>
- 8000272: f04f 0e00 mov.w lr, #0
- 8000276: f1dc 0c00 rsbs ip, ip, #0
- 800027a: eb7e 0000 sbcs.w r0, lr, r0
- 800027e: eb6e 0101 sbc.w r1, lr, r1
- 8000282: f5b1 1f80 cmp.w r1, #1048576 ; 0x100000
- 8000286: d31b bcc.n 80002c0 <__adddf3+0x124>
- 8000288: f5b1 1f00 cmp.w r1, #2097152 ; 0x200000
- 800028c: d30c bcc.n 80002a8 <__adddf3+0x10c>
- 800028e: 0849 lsrs r1, r1, #1
- 8000290: ea5f 0030 movs.w r0, r0, rrx
- 8000294: ea4f 0c3c mov.w ip, ip, rrx
- 8000298: f104 0401 add.w r4, r4, #1
- 800029c: ea4f 5244 mov.w r2, r4, lsl #21
- 80002a0: f512 0f80 cmn.w r2, #4194304 ; 0x400000
- 80002a4: f080 809a bcs.w 80003dc <__adddf3+0x240>
- 80002a8: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000
- 80002ac: bf08 it eq
- 80002ae: ea5f 0c50 movseq.w ip, r0, lsr #1
- 80002b2: f150 0000 adcs.w r0, r0, #0
- 80002b6: eb41 5104 adc.w r1, r1, r4, lsl #20
- 80002ba: ea41 0105 orr.w r1, r1, r5
- 80002be: bd30 pop {r4, r5, pc}
- 80002c0: ea5f 0c4c movs.w ip, ip, lsl #1
- 80002c4: 4140 adcs r0, r0
- 80002c6: eb41 0101 adc.w r1, r1, r1
- 80002ca: 3c01 subs r4, #1
- 80002cc: bf28 it cs
- 80002ce: f5b1 1f80 cmpcs.w r1, #1048576 ; 0x100000
- 80002d2: d2e9 bcs.n 80002a8 <__adddf3+0x10c>
- 80002d4: f091 0f00 teq r1, #0
- 80002d8: bf04 itt eq
- 80002da: 4601 moveq r1, r0
- 80002dc: 2000 moveq r0, #0
- 80002de: fab1 f381 clz r3, r1
- 80002e2: bf08 it eq
- 80002e4: 3320 addeq r3, #32
- 80002e6: f1a3 030b sub.w r3, r3, #11
- 80002ea: f1b3 0220 subs.w r2, r3, #32
- 80002ee: da0c bge.n 800030a <__adddf3+0x16e>
- 80002f0: 320c adds r2, #12
- 80002f2: dd08 ble.n 8000306 <__adddf3+0x16a>
- 80002f4: f102 0c14 add.w ip, r2, #20
- 80002f8: f1c2 020c rsb r2, r2, #12
- 80002fc: fa01 f00c lsl.w r0, r1, ip
- 8000300: fa21 f102 lsr.w r1, r1, r2
- 8000304: e00c b.n 8000320 <__adddf3+0x184>
- 8000306: f102 0214 add.w r2, r2, #20
- 800030a: bfd8 it le
- 800030c: f1c2 0c20 rsble ip, r2, #32
- 8000310: fa01 f102 lsl.w r1, r1, r2
- 8000314: fa20 fc0c lsr.w ip, r0, ip
- 8000318: bfdc itt le
- 800031a: ea41 010c orrle.w r1, r1, ip
- 800031e: 4090 lslle r0, r2
- 8000320: 1ae4 subs r4, r4, r3
- 8000322: bfa2 ittt ge
- 8000324: eb01 5104 addge.w r1, r1, r4, lsl #20
- 8000328: 4329 orrge r1, r5
- 800032a: bd30 popge {r4, r5, pc}
- 800032c: ea6f 0404 mvn.w r4, r4
- 8000330: 3c1f subs r4, #31
- 8000332: da1c bge.n 800036e <__adddf3+0x1d2>
- 8000334: 340c adds r4, #12
- 8000336: dc0e bgt.n 8000356 <__adddf3+0x1ba>
- 8000338: f104 0414 add.w r4, r4, #20
- 800033c: f1c4 0220 rsb r2, r4, #32
- 8000340: fa20 f004 lsr.w r0, r0, r4
- 8000344: fa01 f302 lsl.w r3, r1, r2
- 8000348: ea40 0003 orr.w r0, r0, r3
- 800034c: fa21 f304 lsr.w r3, r1, r4
- 8000350: ea45 0103 orr.w r1, r5, r3
- 8000354: bd30 pop {r4, r5, pc}
- 8000356: f1c4 040c rsb r4, r4, #12
- 800035a: f1c4 0220 rsb r2, r4, #32
- 800035e: fa20 f002 lsr.w r0, r0, r2
- 8000362: fa01 f304 lsl.w r3, r1, r4
- 8000366: ea40 0003 orr.w r0, r0, r3
- 800036a: 4629 mov r1, r5
- 800036c: bd30 pop {r4, r5, pc}
- 800036e: fa21 f004 lsr.w r0, r1, r4
- 8000372: 4629 mov r1, r5
- 8000374: bd30 pop {r4, r5, pc}
- 8000376: f094 0f00 teq r4, #0
- 800037a: f483 1380 eor.w r3, r3, #1048576 ; 0x100000
- 800037e: bf06 itte eq
- 8000380: f481 1180 eoreq.w r1, r1, #1048576 ; 0x100000
- 8000384: 3401 addeq r4, #1
- 8000386: 3d01 subne r5, #1
- 8000388: e74e b.n 8000228 <__adddf3+0x8c>
- 800038a: ea7f 5c64 mvns.w ip, r4, asr #21
- 800038e: bf18 it ne
- 8000390: ea7f 5c65 mvnsne.w ip, r5, asr #21
- 8000394: d029 beq.n 80003ea <__adddf3+0x24e>
- 8000396: ea94 0f05 teq r4, r5
- 800039a: bf08 it eq
- 800039c: ea90 0f02 teqeq r0, r2
- 80003a0: d005 beq.n 80003ae <__adddf3+0x212>
- 80003a2: ea54 0c00 orrs.w ip, r4, r0
- 80003a6: bf04 itt eq
- 80003a8: 4619 moveq r1, r3
- 80003aa: 4610 moveq r0, r2
- 80003ac: bd30 pop {r4, r5, pc}
- 80003ae: ea91 0f03 teq r1, r3
- 80003b2: bf1e ittt ne
- 80003b4: 2100 movne r1, #0
- 80003b6: 2000 movne r0, #0
- 80003b8: bd30 popne {r4, r5, pc}
- 80003ba: ea5f 5c54 movs.w ip, r4, lsr #21
- 80003be: d105 bne.n 80003cc <__adddf3+0x230>
- 80003c0: 0040 lsls r0, r0, #1
- 80003c2: 4149 adcs r1, r1
- 80003c4: bf28 it cs
- 80003c6: f041 4100 orrcs.w r1, r1, #2147483648 ; 0x80000000
- 80003ca: bd30 pop {r4, r5, pc}
- 80003cc: f514 0480 adds.w r4, r4, #4194304 ; 0x400000
- 80003d0: bf3c itt cc
- 80003d2: f501 1180 addcc.w r1, r1, #1048576 ; 0x100000
- 80003d6: bd30 popcc {r4, r5, pc}
- 80003d8: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
- 80003dc: f045 41fe orr.w r1, r5, #2130706432 ; 0x7f000000
- 80003e0: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000
- 80003e4: f04f 0000 mov.w r0, #0
- 80003e8: bd30 pop {r4, r5, pc}
- 80003ea: ea7f 5c64 mvns.w ip, r4, asr #21
- 80003ee: bf1a itte ne
- 80003f0: 4619 movne r1, r3
- 80003f2: 4610 movne r0, r2
- 80003f4: ea7f 5c65 mvnseq.w ip, r5, asr #21
- 80003f8: bf1c itt ne
- 80003fa: 460b movne r3, r1
- 80003fc: 4602 movne r2, r0
- 80003fe: ea50 3401 orrs.w r4, r0, r1, lsl #12
- 8000402: bf06 itte eq
- 8000404: ea52 3503 orrseq.w r5, r2, r3, lsl #12
- 8000408: ea91 0f03 teqeq r1, r3
- 800040c: f441 2100 orrne.w r1, r1, #524288 ; 0x80000
- 8000410: bd30 pop {r4, r5, pc}
- 8000412: bf00 nop
- 08000414 <__aeabi_ui2d>:
- 8000414: f090 0f00 teq r0, #0
- 8000418: bf04 itt eq
- 800041a: 2100 moveq r1, #0
- 800041c: 4770 bxeq lr
- 800041e: b530 push {r4, r5, lr}
- 8000420: f44f 6480 mov.w r4, #1024 ; 0x400
- 8000424: f104 0432 add.w r4, r4, #50 ; 0x32
- 8000428: f04f 0500 mov.w r5, #0
- 800042c: f04f 0100 mov.w r1, #0
- 8000430: e750 b.n 80002d4 <__adddf3+0x138>
- 8000432: bf00 nop
- 08000434 <__aeabi_i2d>:
- 8000434: f090 0f00 teq r0, #0
- 8000438: bf04 itt eq
- 800043a: 2100 moveq r1, #0
- 800043c: 4770 bxeq lr
- 800043e: b530 push {r4, r5, lr}
- 8000440: f44f 6480 mov.w r4, #1024 ; 0x400
- 8000444: f104 0432 add.w r4, r4, #50 ; 0x32
- 8000448: f010 4500 ands.w r5, r0, #2147483648 ; 0x80000000
- 800044c: bf48 it mi
- 800044e: 4240 negmi r0, r0
- 8000450: f04f 0100 mov.w r1, #0
- 8000454: e73e b.n 80002d4 <__adddf3+0x138>
- 8000456: bf00 nop
- 08000458 <__aeabi_f2d>:
- 8000458: 0042 lsls r2, r0, #1
- 800045a: ea4f 01e2 mov.w r1, r2, asr #3
- 800045e: ea4f 0131 mov.w r1, r1, rrx
- 8000462: ea4f 7002 mov.w r0, r2, lsl #28
- 8000466: bf1f itttt ne
- 8000468: f012 437f andsne.w r3, r2, #4278190080 ; 0xff000000
- 800046c: f093 4f7f teqne r3, #4278190080 ; 0xff000000
- 8000470: f081 5160 eorne.w r1, r1, #939524096 ; 0x38000000
- 8000474: 4770 bxne lr
- 8000476: f032 427f bics.w r2, r2, #4278190080 ; 0xff000000
- 800047a: bf08 it eq
- 800047c: 4770 bxeq lr
- 800047e: f093 4f7f teq r3, #4278190080 ; 0xff000000
- 8000482: bf04 itt eq
- 8000484: f441 2100 orreq.w r1, r1, #524288 ; 0x80000
- 8000488: 4770 bxeq lr
- 800048a: b530 push {r4, r5, lr}
- 800048c: f44f 7460 mov.w r4, #896 ; 0x380
- 8000490: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
- 8000494: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000
- 8000498: e71c b.n 80002d4 <__adddf3+0x138>
- 800049a: bf00 nop
- 0800049c <__aeabi_ul2d>:
- 800049c: ea50 0201 orrs.w r2, r0, r1
- 80004a0: bf08 it eq
- 80004a2: 4770 bxeq lr
- 80004a4: b530 push {r4, r5, lr}
- 80004a6: f04f 0500 mov.w r5, #0
- 80004aa: e00a b.n 80004c2 <__aeabi_l2d+0x16>
- 080004ac <__aeabi_l2d>:
- 80004ac: ea50 0201 orrs.w r2, r0, r1
- 80004b0: bf08 it eq
- 80004b2: 4770 bxeq lr
- 80004b4: b530 push {r4, r5, lr}
- 80004b6: f011 4500 ands.w r5, r1, #2147483648 ; 0x80000000
- 80004ba: d502 bpl.n 80004c2 <__aeabi_l2d+0x16>
- 80004bc: 4240 negs r0, r0
- 80004be: eb61 0141 sbc.w r1, r1, r1, lsl #1
- 80004c2: f44f 6480 mov.w r4, #1024 ; 0x400
- 80004c6: f104 0432 add.w r4, r4, #50 ; 0x32
- 80004ca: ea5f 5c91 movs.w ip, r1, lsr #22
- 80004ce: f43f aed8 beq.w 8000282 <__adddf3+0xe6>
- 80004d2: f04f 0203 mov.w r2, #3
- 80004d6: ea5f 0cdc movs.w ip, ip, lsr #3
- 80004da: bf18 it ne
- 80004dc: 3203 addne r2, #3
- 80004de: ea5f 0cdc movs.w ip, ip, lsr #3
- 80004e2: bf18 it ne
- 80004e4: 3203 addne r2, #3
- 80004e6: eb02 02dc add.w r2, r2, ip, lsr #3
- 80004ea: f1c2 0320 rsb r3, r2, #32
- 80004ee: fa00 fc03 lsl.w ip, r0, r3
- 80004f2: fa20 f002 lsr.w r0, r0, r2
- 80004f6: fa01 fe03 lsl.w lr, r1, r3
- 80004fa: ea40 000e orr.w r0, r0, lr
- 80004fe: fa21 f102 lsr.w r1, r1, r2
- 8000502: 4414 add r4, r2
- 8000504: e6bd b.n 8000282 <__adddf3+0xe6>
- 8000506: bf00 nop
- 08000508 <__aeabi_dmul>:
- 8000508: b570 push {r4, r5, r6, lr}
- 800050a: f04f 0cff mov.w ip, #255 ; 0xff
- 800050e: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700
- 8000512: ea1c 5411 ands.w r4, ip, r1, lsr #20
- 8000516: bf1d ittte ne
- 8000518: ea1c 5513 andsne.w r5, ip, r3, lsr #20
- 800051c: ea94 0f0c teqne r4, ip
- 8000520: ea95 0f0c teqne r5, ip
- 8000524: f000 f8de bleq 80006e4 <__aeabi_dmul+0x1dc>
- 8000528: 442c add r4, r5
- 800052a: ea81 0603 eor.w r6, r1, r3
- 800052e: ea21 514c bic.w r1, r1, ip, lsl #21
- 8000532: ea23 534c bic.w r3, r3, ip, lsl #21
- 8000536: ea50 3501 orrs.w r5, r0, r1, lsl #12
- 800053a: bf18 it ne
- 800053c: ea52 3503 orrsne.w r5, r2, r3, lsl #12
- 8000540: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
- 8000544: f443 1380 orr.w r3, r3, #1048576 ; 0x100000
- 8000548: d038 beq.n 80005bc <__aeabi_dmul+0xb4>
- 800054a: fba0 ce02 umull ip, lr, r0, r2
- 800054e: f04f 0500 mov.w r5, #0
- 8000552: fbe1 e502 umlal lr, r5, r1, r2
- 8000556: f006 4200 and.w r2, r6, #2147483648 ; 0x80000000
- 800055a: fbe0 e503 umlal lr, r5, r0, r3
- 800055e: f04f 0600 mov.w r6, #0
- 8000562: fbe1 5603 umlal r5, r6, r1, r3
- 8000566: f09c 0f00 teq ip, #0
- 800056a: bf18 it ne
- 800056c: f04e 0e01 orrne.w lr, lr, #1
- 8000570: f1a4 04ff sub.w r4, r4, #255 ; 0xff
- 8000574: f5b6 7f00 cmp.w r6, #512 ; 0x200
- 8000578: f564 7440 sbc.w r4, r4, #768 ; 0x300
- 800057c: d204 bcs.n 8000588 <__aeabi_dmul+0x80>
- 800057e: ea5f 0e4e movs.w lr, lr, lsl #1
- 8000582: 416d adcs r5, r5
- 8000584: eb46 0606 adc.w r6, r6, r6
- 8000588: ea42 21c6 orr.w r1, r2, r6, lsl #11
- 800058c: ea41 5155 orr.w r1, r1, r5, lsr #21
- 8000590: ea4f 20c5 mov.w r0, r5, lsl #11
- 8000594: ea40 505e orr.w r0, r0, lr, lsr #21
- 8000598: ea4f 2ece mov.w lr, lr, lsl #11
- 800059c: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd
- 80005a0: bf88 it hi
- 80005a2: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700
- 80005a6: d81e bhi.n 80005e6 <__aeabi_dmul+0xde>
- 80005a8: f1be 4f00 cmp.w lr, #2147483648 ; 0x80000000
- 80005ac: bf08 it eq
- 80005ae: ea5f 0e50 movseq.w lr, r0, lsr #1
- 80005b2: f150 0000 adcs.w r0, r0, #0
- 80005b6: eb41 5104 adc.w r1, r1, r4, lsl #20
- 80005ba: bd70 pop {r4, r5, r6, pc}
- 80005bc: f006 4600 and.w r6, r6, #2147483648 ; 0x80000000
- 80005c0: ea46 0101 orr.w r1, r6, r1
- 80005c4: ea40 0002 orr.w r0, r0, r2
- 80005c8: ea81 0103 eor.w r1, r1, r3
- 80005cc: ebb4 045c subs.w r4, r4, ip, lsr #1
- 80005d0: bfc2 ittt gt
- 80005d2: ebd4 050c rsbsgt r5, r4, ip
- 80005d6: ea41 5104 orrgt.w r1, r1, r4, lsl #20
- 80005da: bd70 popgt {r4, r5, r6, pc}
- 80005dc: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
- 80005e0: f04f 0e00 mov.w lr, #0
- 80005e4: 3c01 subs r4, #1
- 80005e6: f300 80ab bgt.w 8000740 <__aeabi_dmul+0x238>
- 80005ea: f114 0f36 cmn.w r4, #54 ; 0x36
- 80005ee: bfde ittt le
- 80005f0: 2000 movle r0, #0
- 80005f2: f001 4100 andle.w r1, r1, #2147483648 ; 0x80000000
- 80005f6: bd70 pople {r4, r5, r6, pc}
- 80005f8: f1c4 0400 rsb r4, r4, #0
- 80005fc: 3c20 subs r4, #32
- 80005fe: da35 bge.n 800066c <__aeabi_dmul+0x164>
- 8000600: 340c adds r4, #12
- 8000602: dc1b bgt.n 800063c <__aeabi_dmul+0x134>
- 8000604: f104 0414 add.w r4, r4, #20
- 8000608: f1c4 0520 rsb r5, r4, #32
- 800060c: fa00 f305 lsl.w r3, r0, r5
- 8000610: fa20 f004 lsr.w r0, r0, r4
- 8000614: fa01 f205 lsl.w r2, r1, r5
- 8000618: ea40 0002 orr.w r0, r0, r2
- 800061c: f001 4200 and.w r2, r1, #2147483648 ; 0x80000000
- 8000620: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000
- 8000624: eb10 70d3 adds.w r0, r0, r3, lsr #31
- 8000628: fa21 f604 lsr.w r6, r1, r4
- 800062c: eb42 0106 adc.w r1, r2, r6
- 8000630: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
- 8000634: bf08 it eq
- 8000636: ea20 70d3 biceq.w r0, r0, r3, lsr #31
- 800063a: bd70 pop {r4, r5, r6, pc}
- 800063c: f1c4 040c rsb r4, r4, #12
- 8000640: f1c4 0520 rsb r5, r4, #32
- 8000644: fa00 f304 lsl.w r3, r0, r4
- 8000648: fa20 f005 lsr.w r0, r0, r5
- 800064c: fa01 f204 lsl.w r2, r1, r4
- 8000650: ea40 0002 orr.w r0, r0, r2
- 8000654: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
- 8000658: eb10 70d3 adds.w r0, r0, r3, lsr #31
- 800065c: f141 0100 adc.w r1, r1, #0
- 8000660: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
- 8000664: bf08 it eq
- 8000666: ea20 70d3 biceq.w r0, r0, r3, lsr #31
- 800066a: bd70 pop {r4, r5, r6, pc}
- 800066c: f1c4 0520 rsb r5, r4, #32
- 8000670: fa00 f205 lsl.w r2, r0, r5
- 8000674: ea4e 0e02 orr.w lr, lr, r2
- 8000678: fa20 f304 lsr.w r3, r0, r4
- 800067c: fa01 f205 lsl.w r2, r1, r5
- 8000680: ea43 0302 orr.w r3, r3, r2
- 8000684: fa21 f004 lsr.w r0, r1, r4
- 8000688: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
- 800068c: fa21 f204 lsr.w r2, r1, r4
- 8000690: ea20 0002 bic.w r0, r0, r2
- 8000694: eb00 70d3 add.w r0, r0, r3, lsr #31
- 8000698: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
- 800069c: bf08 it eq
- 800069e: ea20 70d3 biceq.w r0, r0, r3, lsr #31
- 80006a2: bd70 pop {r4, r5, r6, pc}
- 80006a4: f094 0f00 teq r4, #0
- 80006a8: d10f bne.n 80006ca <__aeabi_dmul+0x1c2>
- 80006aa: f001 4600 and.w r6, r1, #2147483648 ; 0x80000000
- 80006ae: 0040 lsls r0, r0, #1
- 80006b0: eb41 0101 adc.w r1, r1, r1
- 80006b4: f411 1f80 tst.w r1, #1048576 ; 0x100000
- 80006b8: bf08 it eq
- 80006ba: 3c01 subeq r4, #1
- 80006bc: d0f7 beq.n 80006ae <__aeabi_dmul+0x1a6>
- 80006be: ea41 0106 orr.w r1, r1, r6
- 80006c2: f095 0f00 teq r5, #0
- 80006c6: bf18 it ne
- 80006c8: 4770 bxne lr
- 80006ca: f003 4600 and.w r6, r3, #2147483648 ; 0x80000000
- 80006ce: 0052 lsls r2, r2, #1
- 80006d0: eb43 0303 adc.w r3, r3, r3
- 80006d4: f413 1f80 tst.w r3, #1048576 ; 0x100000
- 80006d8: bf08 it eq
- 80006da: 3d01 subeq r5, #1
- 80006dc: d0f7 beq.n 80006ce <__aeabi_dmul+0x1c6>
- 80006de: ea43 0306 orr.w r3, r3, r6
- 80006e2: 4770 bx lr
- 80006e4: ea94 0f0c teq r4, ip
- 80006e8: ea0c 5513 and.w r5, ip, r3, lsr #20
- 80006ec: bf18 it ne
- 80006ee: ea95 0f0c teqne r5, ip
- 80006f2: d00c beq.n 800070e <__aeabi_dmul+0x206>
- 80006f4: ea50 0641 orrs.w r6, r0, r1, lsl #1
- 80006f8: bf18 it ne
- 80006fa: ea52 0643 orrsne.w r6, r2, r3, lsl #1
- 80006fe: d1d1 bne.n 80006a4 <__aeabi_dmul+0x19c>
- 8000700: ea81 0103 eor.w r1, r1, r3
- 8000704: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
- 8000708: f04f 0000 mov.w r0, #0
- 800070c: bd70 pop {r4, r5, r6, pc}
- 800070e: ea50 0641 orrs.w r6, r0, r1, lsl #1
- 8000712: bf06 itte eq
- 8000714: 4610 moveq r0, r2
- 8000716: 4619 moveq r1, r3
- 8000718: ea52 0643 orrsne.w r6, r2, r3, lsl #1
- 800071c: d019 beq.n 8000752 <__aeabi_dmul+0x24a>
- 800071e: ea94 0f0c teq r4, ip
- 8000722: d102 bne.n 800072a <__aeabi_dmul+0x222>
- 8000724: ea50 3601 orrs.w r6, r0, r1, lsl #12
- 8000728: d113 bne.n 8000752 <__aeabi_dmul+0x24a>
- 800072a: ea95 0f0c teq r5, ip
- 800072e: d105 bne.n 800073c <__aeabi_dmul+0x234>
- 8000730: ea52 3603 orrs.w r6, r2, r3, lsl #12
- 8000734: bf1c itt ne
- 8000736: 4610 movne r0, r2
- 8000738: 4619 movne r1, r3
- 800073a: d10a bne.n 8000752 <__aeabi_dmul+0x24a>
- 800073c: ea81 0103 eor.w r1, r1, r3
- 8000740: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
- 8000744: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000
- 8000748: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000
- 800074c: f04f 0000 mov.w r0, #0
- 8000750: bd70 pop {r4, r5, r6, pc}
- 8000752: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000
- 8000756: f441 0178 orr.w r1, r1, #16252928 ; 0xf80000
- 800075a: bd70 pop {r4, r5, r6, pc}
- 0800075c <__aeabi_ddiv>:
- 800075c: b570 push {r4, r5, r6, lr}
- 800075e: f04f 0cff mov.w ip, #255 ; 0xff
- 8000762: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700
- 8000766: ea1c 5411 ands.w r4, ip, r1, lsr #20
- 800076a: bf1d ittte ne
- 800076c: ea1c 5513 andsne.w r5, ip, r3, lsr #20
- 8000770: ea94 0f0c teqne r4, ip
- 8000774: ea95 0f0c teqne r5, ip
- 8000778: f000 f8a7 bleq 80008ca <__aeabi_ddiv+0x16e>
- 800077c: eba4 0405 sub.w r4, r4, r5
- 8000780: ea81 0e03 eor.w lr, r1, r3
- 8000784: ea52 3503 orrs.w r5, r2, r3, lsl #12
- 8000788: ea4f 3101 mov.w r1, r1, lsl #12
- 800078c: f000 8088 beq.w 80008a0 <__aeabi_ddiv+0x144>
- 8000790: ea4f 3303 mov.w r3, r3, lsl #12
- 8000794: f04f 5580 mov.w r5, #268435456 ; 0x10000000
- 8000798: ea45 1313 orr.w r3, r5, r3, lsr #4
- 800079c: ea43 6312 orr.w r3, r3, r2, lsr #24
- 80007a0: ea4f 2202 mov.w r2, r2, lsl #8
- 80007a4: ea45 1511 orr.w r5, r5, r1, lsr #4
- 80007a8: ea45 6510 orr.w r5, r5, r0, lsr #24
- 80007ac: ea4f 2600 mov.w r6, r0, lsl #8
- 80007b0: f00e 4100 and.w r1, lr, #2147483648 ; 0x80000000
- 80007b4: 429d cmp r5, r3
- 80007b6: bf08 it eq
- 80007b8: 4296 cmpeq r6, r2
- 80007ba: f144 04fd adc.w r4, r4, #253 ; 0xfd
- 80007be: f504 7440 add.w r4, r4, #768 ; 0x300
- 80007c2: d202 bcs.n 80007ca <__aeabi_ddiv+0x6e>
- 80007c4: 085b lsrs r3, r3, #1
- 80007c6: ea4f 0232 mov.w r2, r2, rrx
- 80007ca: 1ab6 subs r6, r6, r2
- 80007cc: eb65 0503 sbc.w r5, r5, r3
- 80007d0: 085b lsrs r3, r3, #1
- 80007d2: ea4f 0232 mov.w r2, r2, rrx
- 80007d6: f44f 1080 mov.w r0, #1048576 ; 0x100000
- 80007da: f44f 2c00 mov.w ip, #524288 ; 0x80000
- 80007de: ebb6 0e02 subs.w lr, r6, r2
- 80007e2: eb75 0e03 sbcs.w lr, r5, r3
- 80007e6: bf22 ittt cs
- 80007e8: 1ab6 subcs r6, r6, r2
- 80007ea: 4675 movcs r5, lr
- 80007ec: ea40 000c orrcs.w r0, r0, ip
- 80007f0: 085b lsrs r3, r3, #1
- 80007f2: ea4f 0232 mov.w r2, r2, rrx
- 80007f6: ebb6 0e02 subs.w lr, r6, r2
- 80007fa: eb75 0e03 sbcs.w lr, r5, r3
- 80007fe: bf22 ittt cs
- 8000800: 1ab6 subcs r6, r6, r2
- 8000802: 4675 movcs r5, lr
- 8000804: ea40 005c orrcs.w r0, r0, ip, lsr #1
- 8000808: 085b lsrs r3, r3, #1
- 800080a: ea4f 0232 mov.w r2, r2, rrx
- 800080e: ebb6 0e02 subs.w lr, r6, r2
- 8000812: eb75 0e03 sbcs.w lr, r5, r3
- 8000816: bf22 ittt cs
- 8000818: 1ab6 subcs r6, r6, r2
- 800081a: 4675 movcs r5, lr
- 800081c: ea40 009c orrcs.w r0, r0, ip, lsr #2
- 8000820: 085b lsrs r3, r3, #1
- 8000822: ea4f 0232 mov.w r2, r2, rrx
- 8000826: ebb6 0e02 subs.w lr, r6, r2
- 800082a: eb75 0e03 sbcs.w lr, r5, r3
- 800082e: bf22 ittt cs
- 8000830: 1ab6 subcs r6, r6, r2
- 8000832: 4675 movcs r5, lr
- 8000834: ea40 00dc orrcs.w r0, r0, ip, lsr #3
- 8000838: ea55 0e06 orrs.w lr, r5, r6
- 800083c: d018 beq.n 8000870 <__aeabi_ddiv+0x114>
- 800083e: ea4f 1505 mov.w r5, r5, lsl #4
- 8000842: ea45 7516 orr.w r5, r5, r6, lsr #28
- 8000846: ea4f 1606 mov.w r6, r6, lsl #4
- 800084a: ea4f 03c3 mov.w r3, r3, lsl #3
- 800084e: ea43 7352 orr.w r3, r3, r2, lsr #29
- 8000852: ea4f 02c2 mov.w r2, r2, lsl #3
- 8000856: ea5f 1c1c movs.w ip, ip, lsr #4
- 800085a: d1c0 bne.n 80007de <__aeabi_ddiv+0x82>
- 800085c: f411 1f80 tst.w r1, #1048576 ; 0x100000
- 8000860: d10b bne.n 800087a <__aeabi_ddiv+0x11e>
- 8000862: ea41 0100 orr.w r1, r1, r0
- 8000866: f04f 0000 mov.w r0, #0
- 800086a: f04f 4c00 mov.w ip, #2147483648 ; 0x80000000
- 800086e: e7b6 b.n 80007de <__aeabi_ddiv+0x82>
- 8000870: f411 1f80 tst.w r1, #1048576 ; 0x100000
- 8000874: bf04 itt eq
- 8000876: 4301 orreq r1, r0
- 8000878: 2000 moveq r0, #0
- 800087a: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd
- 800087e: bf88 it hi
- 8000880: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700
- 8000884: f63f aeaf bhi.w 80005e6 <__aeabi_dmul+0xde>
- 8000888: ebb5 0c03 subs.w ip, r5, r3
- 800088c: bf04 itt eq
- 800088e: ebb6 0c02 subseq.w ip, r6, r2
- 8000892: ea5f 0c50 movseq.w ip, r0, lsr #1
- 8000896: f150 0000 adcs.w r0, r0, #0
- 800089a: eb41 5104 adc.w r1, r1, r4, lsl #20
- 800089e: bd70 pop {r4, r5, r6, pc}
- 80008a0: f00e 4e00 and.w lr, lr, #2147483648 ; 0x80000000
- 80008a4: ea4e 3111 orr.w r1, lr, r1, lsr #12
- 80008a8: eb14 045c adds.w r4, r4, ip, lsr #1
- 80008ac: bfc2 ittt gt
- 80008ae: ebd4 050c rsbsgt r5, r4, ip
- 80008b2: ea41 5104 orrgt.w r1, r1, r4, lsl #20
- 80008b6: bd70 popgt {r4, r5, r6, pc}
- 80008b8: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
- 80008bc: f04f 0e00 mov.w lr, #0
- 80008c0: 3c01 subs r4, #1
- 80008c2: e690 b.n 80005e6 <__aeabi_dmul+0xde>
- 80008c4: ea45 0e06 orr.w lr, r5, r6
- 80008c8: e68d b.n 80005e6 <__aeabi_dmul+0xde>
- 80008ca: ea0c 5513 and.w r5, ip, r3, lsr #20
- 80008ce: ea94 0f0c teq r4, ip
- 80008d2: bf08 it eq
- 80008d4: ea95 0f0c teqeq r5, ip
- 80008d8: f43f af3b beq.w 8000752 <__aeabi_dmul+0x24a>
- 80008dc: ea94 0f0c teq r4, ip
- 80008e0: d10a bne.n 80008f8 <__aeabi_ddiv+0x19c>
- 80008e2: ea50 3401 orrs.w r4, r0, r1, lsl #12
- 80008e6: f47f af34 bne.w 8000752 <__aeabi_dmul+0x24a>
- 80008ea: ea95 0f0c teq r5, ip
- 80008ee: f47f af25 bne.w 800073c <__aeabi_dmul+0x234>
- 80008f2: 4610 mov r0, r2
- 80008f4: 4619 mov r1, r3
- 80008f6: e72c b.n 8000752 <__aeabi_dmul+0x24a>
- 80008f8: ea95 0f0c teq r5, ip
- 80008fc: d106 bne.n 800090c <__aeabi_ddiv+0x1b0>
- 80008fe: ea52 3503 orrs.w r5, r2, r3, lsl #12
- 8000902: f43f aefd beq.w 8000700 <__aeabi_dmul+0x1f8>
- 8000906: 4610 mov r0, r2
- 8000908: 4619 mov r1, r3
- 800090a: e722 b.n 8000752 <__aeabi_dmul+0x24a>
- 800090c: ea50 0641 orrs.w r6, r0, r1, lsl #1
- 8000910: bf18 it ne
- 8000912: ea52 0643 orrsne.w r6, r2, r3, lsl #1
- 8000916: f47f aec5 bne.w 80006a4 <__aeabi_dmul+0x19c>
- 800091a: ea50 0441 orrs.w r4, r0, r1, lsl #1
- 800091e: f47f af0d bne.w 800073c <__aeabi_dmul+0x234>
- 8000922: ea52 0543 orrs.w r5, r2, r3, lsl #1
- 8000926: f47f aeeb bne.w 8000700 <__aeabi_dmul+0x1f8>
- 800092a: e712 b.n 8000752 <__aeabi_dmul+0x24a>
- 0800092c <__gedf2>:
- 800092c: f04f 3cff mov.w ip, #4294967295 ; 0xffffffff
- 8000930: e006 b.n 8000940 <__cmpdf2+0x4>
- 8000932: bf00 nop
- 08000934 <__ledf2>:
- 8000934: f04f 0c01 mov.w ip, #1
- 8000938: e002 b.n 8000940 <__cmpdf2+0x4>
- 800093a: bf00 nop
- 0800093c <__cmpdf2>:
- 800093c: f04f 0c01 mov.w ip, #1
- 8000940: f84d cd04 str.w ip, [sp, #-4]!
- 8000944: ea4f 0c41 mov.w ip, r1, lsl #1
- 8000948: ea7f 5c6c mvns.w ip, ip, asr #21
- 800094c: ea4f 0c43 mov.w ip, r3, lsl #1
- 8000950: bf18 it ne
- 8000952: ea7f 5c6c mvnsne.w ip, ip, asr #21
- 8000956: d01b beq.n 8000990 <__cmpdf2+0x54>
- 8000958: b001 add sp, #4
- 800095a: ea50 0c41 orrs.w ip, r0, r1, lsl #1
- 800095e: bf0c ite eq
- 8000960: ea52 0c43 orrseq.w ip, r2, r3, lsl #1
- 8000964: ea91 0f03 teqne r1, r3
- 8000968: bf02 ittt eq
- 800096a: ea90 0f02 teqeq r0, r2
- 800096e: 2000 moveq r0, #0
- 8000970: 4770 bxeq lr
- 8000972: f110 0f00 cmn.w r0, #0
- 8000976: ea91 0f03 teq r1, r3
- 800097a: bf58 it pl
- 800097c: 4299 cmppl r1, r3
- 800097e: bf08 it eq
- 8000980: 4290 cmpeq r0, r2
- 8000982: bf2c ite cs
- 8000984: 17d8 asrcs r0, r3, #31
- 8000986: ea6f 70e3 mvncc.w r0, r3, asr #31
- 800098a: f040 0001 orr.w r0, r0, #1
- 800098e: 4770 bx lr
- 8000990: ea4f 0c41 mov.w ip, r1, lsl #1
- 8000994: ea7f 5c6c mvns.w ip, ip, asr #21
- 8000998: d102 bne.n 80009a0 <__cmpdf2+0x64>
- 800099a: ea50 3c01 orrs.w ip, r0, r1, lsl #12
- 800099e: d107 bne.n 80009b0 <__cmpdf2+0x74>
- 80009a0: ea4f 0c43 mov.w ip, r3, lsl #1
- 80009a4: ea7f 5c6c mvns.w ip, ip, asr #21
- 80009a8: d1d6 bne.n 8000958 <__cmpdf2+0x1c>
- 80009aa: ea52 3c03 orrs.w ip, r2, r3, lsl #12
- 80009ae: d0d3 beq.n 8000958 <__cmpdf2+0x1c>
- 80009b0: f85d 0b04 ldr.w r0, [sp], #4
- 80009b4: 4770 bx lr
- 80009b6: bf00 nop
- 080009b8 <__aeabi_cdrcmple>:
- 80009b8: 4684 mov ip, r0
- 80009ba: 4610 mov r0, r2
- 80009bc: 4662 mov r2, ip
- 80009be: 468c mov ip, r1
- 80009c0: 4619 mov r1, r3
- 80009c2: 4663 mov r3, ip
- 80009c4: e000 b.n 80009c8 <__aeabi_cdcmpeq>
- 80009c6: bf00 nop
- 080009c8 <__aeabi_cdcmpeq>:
- 80009c8: b501 push {r0, lr}
- 80009ca: f7ff ffb7 bl 800093c <__cmpdf2>
- 80009ce: 2800 cmp r0, #0
- 80009d0: bf48 it mi
- 80009d2: f110 0f00 cmnmi.w r0, #0
- 80009d6: bd01 pop {r0, pc}
- 080009d8 <__aeabi_dcmpeq>:
- 80009d8: f84d ed08 str.w lr, [sp, #-8]!
- 80009dc: f7ff fff4 bl 80009c8 <__aeabi_cdcmpeq>
- 80009e0: bf0c ite eq
- 80009e2: 2001 moveq r0, #1
- 80009e4: 2000 movne r0, #0
- 80009e6: f85d fb08 ldr.w pc, [sp], #8
- 80009ea: bf00 nop
- 080009ec <__aeabi_dcmplt>:
- 80009ec: f84d ed08 str.w lr, [sp, #-8]!
- 80009f0: f7ff ffea bl 80009c8 <__aeabi_cdcmpeq>
- 80009f4: bf34 ite cc
- 80009f6: 2001 movcc r0, #1
- 80009f8: 2000 movcs r0, #0
- 80009fa: f85d fb08 ldr.w pc, [sp], #8
- 80009fe: bf00 nop
- 08000a00 <__aeabi_dcmple>:
- 8000a00: f84d ed08 str.w lr, [sp, #-8]!
- 8000a04: f7ff ffe0 bl 80009c8 <__aeabi_cdcmpeq>
- 8000a08: bf94 ite ls
- 8000a0a: 2001 movls r0, #1
- 8000a0c: 2000 movhi r0, #0
- 8000a0e: f85d fb08 ldr.w pc, [sp], #8
- 8000a12: bf00 nop
- 08000a14 <__aeabi_dcmpge>:
- 8000a14: f84d ed08 str.w lr, [sp, #-8]!
- 8000a18: f7ff ffce bl 80009b8 <__aeabi_cdrcmple>
- 8000a1c: bf94 ite ls
- 8000a1e: 2001 movls r0, #1
- 8000a20: 2000 movhi r0, #0
- 8000a22: f85d fb08 ldr.w pc, [sp], #8
- 8000a26: bf00 nop
- 08000a28 <__aeabi_dcmpgt>:
- 8000a28: f84d ed08 str.w lr, [sp, #-8]!
- 8000a2c: f7ff ffc4 bl 80009b8 <__aeabi_cdrcmple>
- 8000a30: bf34 ite cc
- 8000a32: 2001 movcc r0, #1
- 8000a34: 2000 movcs r0, #0
- 8000a36: f85d fb08 ldr.w pc, [sp], #8
- 8000a3a: bf00 nop
- 08000a3c <__aeabi_dcmpun>:
- 8000a3c: ea4f 0c41 mov.w ip, r1, lsl #1
- 8000a40: ea7f 5c6c mvns.w ip, ip, asr #21
- 8000a44: d102 bne.n 8000a4c <__aeabi_dcmpun+0x10>
- 8000a46: ea50 3c01 orrs.w ip, r0, r1, lsl #12
- 8000a4a: d10a bne.n 8000a62 <__aeabi_dcmpun+0x26>
- 8000a4c: ea4f 0c43 mov.w ip, r3, lsl #1
- 8000a50: ea7f 5c6c mvns.w ip, ip, asr #21
- 8000a54: d102 bne.n 8000a5c <__aeabi_dcmpun+0x20>
- 8000a56: ea52 3c03 orrs.w ip, r2, r3, lsl #12
- 8000a5a: d102 bne.n 8000a62 <__aeabi_dcmpun+0x26>
- 8000a5c: f04f 0000 mov.w r0, #0
- 8000a60: 4770 bx lr
- 8000a62: f04f 0001 mov.w r0, #1
- 8000a66: 4770 bx lr
- 08000a68 <__aeabi_d2iz>:
- 8000a68: ea4f 0241 mov.w r2, r1, lsl #1
- 8000a6c: f512 1200 adds.w r2, r2, #2097152 ; 0x200000
- 8000a70: d215 bcs.n 8000a9e <__aeabi_d2iz+0x36>
- 8000a72: d511 bpl.n 8000a98 <__aeabi_d2iz+0x30>
- 8000a74: f46f 7378 mvn.w r3, #992 ; 0x3e0
- 8000a78: ebb3 5262 subs.w r2, r3, r2, asr #21
- 8000a7c: d912 bls.n 8000aa4 <__aeabi_d2iz+0x3c>
- 8000a7e: ea4f 23c1 mov.w r3, r1, lsl #11
- 8000a82: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
- 8000a86: ea43 5350 orr.w r3, r3, r0, lsr #21
- 8000a8a: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
- 8000a8e: fa23 f002 lsr.w r0, r3, r2
- 8000a92: bf18 it ne
- 8000a94: 4240 negne r0, r0
- 8000a96: 4770 bx lr
- 8000a98: f04f 0000 mov.w r0, #0
- 8000a9c: 4770 bx lr
- 8000a9e: ea50 3001 orrs.w r0, r0, r1, lsl #12
- 8000aa2: d105 bne.n 8000ab0 <__aeabi_d2iz+0x48>
- 8000aa4: f011 4000 ands.w r0, r1, #2147483648 ; 0x80000000
- 8000aa8: bf08 it eq
- 8000aaa: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000
- 8000aae: 4770 bx lr
- 8000ab0: f04f 0000 mov.w r0, #0
- 8000ab4: 4770 bx lr
- 8000ab6: bf00 nop
- 08000ab8 <__aeabi_frsub>:
- 8000ab8: f080 4000 eor.w r0, r0, #2147483648 ; 0x80000000
- 8000abc: e002 b.n 8000ac4 <__addsf3>
- 8000abe: bf00 nop
- 08000ac0 <__aeabi_fsub>:
- 8000ac0: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000
- 08000ac4 <__addsf3>:
- 8000ac4: 0042 lsls r2, r0, #1
- 8000ac6: bf1f itttt ne
- 8000ac8: ea5f 0341 movsne.w r3, r1, lsl #1
- 8000acc: ea92 0f03 teqne r2, r3
- 8000ad0: ea7f 6c22 mvnsne.w ip, r2, asr #24
- 8000ad4: ea7f 6c23 mvnsne.w ip, r3, asr #24
- 8000ad8: d06a beq.n 8000bb0 <__addsf3+0xec>
- 8000ada: ea4f 6212 mov.w r2, r2, lsr #24
- 8000ade: ebd2 6313 rsbs r3, r2, r3, lsr #24
- 8000ae2: bfc1 itttt gt
- 8000ae4: 18d2 addgt r2, r2, r3
- 8000ae6: 4041 eorgt r1, r0
- 8000ae8: 4048 eorgt r0, r1
- 8000aea: 4041 eorgt r1, r0
- 8000aec: bfb8 it lt
- 8000aee: 425b neglt r3, r3
- 8000af0: 2b19 cmp r3, #25
- 8000af2: bf88 it hi
- 8000af4: 4770 bxhi lr
- 8000af6: f010 4f00 tst.w r0, #2147483648 ; 0x80000000
- 8000afa: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
- 8000afe: f020 407f bic.w r0, r0, #4278190080 ; 0xff000000
- 8000b02: bf18 it ne
- 8000b04: 4240 negne r0, r0
- 8000b06: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
- 8000b0a: f441 0100 orr.w r1, r1, #8388608 ; 0x800000
- 8000b0e: f021 417f bic.w r1, r1, #4278190080 ; 0xff000000
- 8000b12: bf18 it ne
- 8000b14: 4249 negne r1, r1
- 8000b16: ea92 0f03 teq r2, r3
- 8000b1a: d03f beq.n 8000b9c <__addsf3+0xd8>
- 8000b1c: f1a2 0201 sub.w r2, r2, #1
- 8000b20: fa41 fc03 asr.w ip, r1, r3
- 8000b24: eb10 000c adds.w r0, r0, ip
- 8000b28: f1c3 0320 rsb r3, r3, #32
- 8000b2c: fa01 f103 lsl.w r1, r1, r3
- 8000b30: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000
- 8000b34: d502 bpl.n 8000b3c <__addsf3+0x78>
- 8000b36: 4249 negs r1, r1
- 8000b38: eb60 0040 sbc.w r0, r0, r0, lsl #1
- 8000b3c: f5b0 0f00 cmp.w r0, #8388608 ; 0x800000
- 8000b40: d313 bcc.n 8000b6a <__addsf3+0xa6>
- 8000b42: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000
- 8000b46: d306 bcc.n 8000b56 <__addsf3+0x92>
- 8000b48: 0840 lsrs r0, r0, #1
- 8000b4a: ea4f 0131 mov.w r1, r1, rrx
- 8000b4e: f102 0201 add.w r2, r2, #1
- 8000b52: 2afe cmp r2, #254 ; 0xfe
- 8000b54: d251 bcs.n 8000bfa <__addsf3+0x136>
- 8000b56: f1b1 4f00 cmp.w r1, #2147483648 ; 0x80000000
- 8000b5a: eb40 50c2 adc.w r0, r0, r2, lsl #23
- 8000b5e: bf08 it eq
- 8000b60: f020 0001 biceq.w r0, r0, #1
- 8000b64: ea40 0003 orr.w r0, r0, r3
- 8000b68: 4770 bx lr
- 8000b6a: 0049 lsls r1, r1, #1
- 8000b6c: eb40 0000 adc.w r0, r0, r0
- 8000b70: 3a01 subs r2, #1
- 8000b72: bf28 it cs
- 8000b74: f5b0 0f00 cmpcs.w r0, #8388608 ; 0x800000
- 8000b78: d2ed bcs.n 8000b56 <__addsf3+0x92>
- 8000b7a: fab0 fc80 clz ip, r0
- 8000b7e: f1ac 0c08 sub.w ip, ip, #8
- 8000b82: ebb2 020c subs.w r2, r2, ip
- 8000b86: fa00 f00c lsl.w r0, r0, ip
- 8000b8a: bfaa itet ge
- 8000b8c: eb00 50c2 addge.w r0, r0, r2, lsl #23
- 8000b90: 4252 neglt r2, r2
- 8000b92: 4318 orrge r0, r3
- 8000b94: bfbc itt lt
- 8000b96: 40d0 lsrlt r0, r2
- 8000b98: 4318 orrlt r0, r3
- 8000b9a: 4770 bx lr
- 8000b9c: f092 0f00 teq r2, #0
- 8000ba0: f481 0100 eor.w r1, r1, #8388608 ; 0x800000
- 8000ba4: bf06 itte eq
- 8000ba6: f480 0000 eoreq.w r0, r0, #8388608 ; 0x800000
- 8000baa: 3201 addeq r2, #1
- 8000bac: 3b01 subne r3, #1
- 8000bae: e7b5 b.n 8000b1c <__addsf3+0x58>
- 8000bb0: ea4f 0341 mov.w r3, r1, lsl #1
- 8000bb4: ea7f 6c22 mvns.w ip, r2, asr #24
- 8000bb8: bf18 it ne
- 8000bba: ea7f 6c23 mvnsne.w ip, r3, asr #24
- 8000bbe: d021 beq.n 8000c04 <__addsf3+0x140>
- 8000bc0: ea92 0f03 teq r2, r3
- 8000bc4: d004 beq.n 8000bd0 <__addsf3+0x10c>
- 8000bc6: f092 0f00 teq r2, #0
- 8000bca: bf08 it eq
- 8000bcc: 4608 moveq r0, r1
- 8000bce: 4770 bx lr
- 8000bd0: ea90 0f01 teq r0, r1
- 8000bd4: bf1c itt ne
- 8000bd6: 2000 movne r0, #0
- 8000bd8: 4770 bxne lr
- 8000bda: f012 4f7f tst.w r2, #4278190080 ; 0xff000000
- 8000bde: d104 bne.n 8000bea <__addsf3+0x126>
- 8000be0: 0040 lsls r0, r0, #1
- 8000be2: bf28 it cs
- 8000be4: f040 4000 orrcs.w r0, r0, #2147483648 ; 0x80000000
- 8000be8: 4770 bx lr
- 8000bea: f112 7200 adds.w r2, r2, #33554432 ; 0x2000000
- 8000bee: bf3c itt cc
- 8000bf0: f500 0000 addcc.w r0, r0, #8388608 ; 0x800000
- 8000bf4: 4770 bxcc lr
- 8000bf6: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000
- 8000bfa: f043 40fe orr.w r0, r3, #2130706432 ; 0x7f000000
- 8000bfe: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
- 8000c02: 4770 bx lr
- 8000c04: ea7f 6222 mvns.w r2, r2, asr #24
- 8000c08: bf16 itet ne
- 8000c0a: 4608 movne r0, r1
- 8000c0c: ea7f 6323 mvnseq.w r3, r3, asr #24
- 8000c10: 4601 movne r1, r0
- 8000c12: 0242 lsls r2, r0, #9
- 8000c14: bf06 itte eq
- 8000c16: ea5f 2341 movseq.w r3, r1, lsl #9
- 8000c1a: ea90 0f01 teqeq r0, r1
- 8000c1e: f440 0080 orrne.w r0, r0, #4194304 ; 0x400000
- 8000c22: 4770 bx lr
- 08000c24 <__aeabi_ui2f>:
- 8000c24: f04f 0300 mov.w r3, #0
- 8000c28: e004 b.n 8000c34 <__aeabi_i2f+0x8>
- 8000c2a: bf00 nop
- 08000c2c <__aeabi_i2f>:
- 8000c2c: f010 4300 ands.w r3, r0, #2147483648 ; 0x80000000
- 8000c30: bf48 it mi
- 8000c32: 4240 negmi r0, r0
- 8000c34: ea5f 0c00 movs.w ip, r0
- 8000c38: bf08 it eq
- 8000c3a: 4770 bxeq lr
- 8000c3c: f043 4396 orr.w r3, r3, #1258291200 ; 0x4b000000
- 8000c40: 4601 mov r1, r0
- 8000c42: f04f 0000 mov.w r0, #0
- 8000c46: e01c b.n 8000c82 <__aeabi_l2f+0x2a>
- 08000c48 <__aeabi_ul2f>:
- 8000c48: ea50 0201 orrs.w r2, r0, r1
- 8000c4c: bf08 it eq
- 8000c4e: 4770 bxeq lr
- 8000c50: f04f 0300 mov.w r3, #0
- 8000c54: e00a b.n 8000c6c <__aeabi_l2f+0x14>
- 8000c56: bf00 nop
- 08000c58 <__aeabi_l2f>:
- 8000c58: ea50 0201 orrs.w r2, r0, r1
- 8000c5c: bf08 it eq
- 8000c5e: 4770 bxeq lr
- 8000c60: f011 4300 ands.w r3, r1, #2147483648 ; 0x80000000
- 8000c64: d502 bpl.n 8000c6c <__aeabi_l2f+0x14>
- 8000c66: 4240 negs r0, r0
- 8000c68: eb61 0141 sbc.w r1, r1, r1, lsl #1
- 8000c6c: ea5f 0c01 movs.w ip, r1
- 8000c70: bf02 ittt eq
- 8000c72: 4684 moveq ip, r0
- 8000c74: 4601 moveq r1, r0
- 8000c76: 2000 moveq r0, #0
- 8000c78: f043 43b6 orr.w r3, r3, #1526726656 ; 0x5b000000
- 8000c7c: bf08 it eq
- 8000c7e: f1a3 5380 subeq.w r3, r3, #268435456 ; 0x10000000
- 8000c82: f5a3 0300 sub.w r3, r3, #8388608 ; 0x800000
- 8000c86: fabc f28c clz r2, ip
- 8000c8a: 3a08 subs r2, #8
- 8000c8c: eba3 53c2 sub.w r3, r3, r2, lsl #23
- 8000c90: db10 blt.n 8000cb4 <__aeabi_l2f+0x5c>
- 8000c92: fa01 fc02 lsl.w ip, r1, r2
- 8000c96: 4463 add r3, ip
- 8000c98: fa00 fc02 lsl.w ip, r0, r2
- 8000c9c: f1c2 0220 rsb r2, r2, #32
- 8000ca0: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000
- 8000ca4: fa20 f202 lsr.w r2, r0, r2
- 8000ca8: eb43 0002 adc.w r0, r3, r2
- 8000cac: bf08 it eq
- 8000cae: f020 0001 biceq.w r0, r0, #1
- 8000cb2: 4770 bx lr
- 8000cb4: f102 0220 add.w r2, r2, #32
- 8000cb8: fa01 fc02 lsl.w ip, r1, r2
- 8000cbc: f1c2 0220 rsb r2, r2, #32
- 8000cc0: ea50 004c orrs.w r0, r0, ip, lsl #1
- 8000cc4: fa21 f202 lsr.w r2, r1, r2
- 8000cc8: eb43 0002 adc.w r0, r3, r2
- 8000ccc: bf08 it eq
- 8000cce: ea20 70dc biceq.w r0, r0, ip, lsr #31
- 8000cd2: 4770 bx lr
- 08000cd4 <__aeabi_uldivmod>:
- 8000cd4: b953 cbnz r3, 8000cec <__aeabi_uldivmod+0x18>
- 8000cd6: b94a cbnz r2, 8000cec <__aeabi_uldivmod+0x18>
- 8000cd8: 2900 cmp r1, #0
- 8000cda: bf08 it eq
- 8000cdc: 2800 cmpeq r0, #0
- 8000cde: bf1c itt ne
- 8000ce0: f04f 31ff movne.w r1, #4294967295 ; 0xffffffff
- 8000ce4: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff
- 8000ce8: f000 b96e b.w 8000fc8 <__aeabi_idiv0>
- 8000cec: f1ad 0c08 sub.w ip, sp, #8
- 8000cf0: e96d ce04 strd ip, lr, [sp, #-16]!
- 8000cf4: f000 f806 bl 8000d04 <__udivmoddi4>
- 8000cf8: f8dd e004 ldr.w lr, [sp, #4]
- 8000cfc: e9dd 2302 ldrd r2, r3, [sp, #8]
- 8000d00: b004 add sp, #16
- 8000d02: 4770 bx lr
- 08000d04 <__udivmoddi4>:
- 8000d04: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
- 8000d08: 9e08 ldr r6, [sp, #32]
- 8000d0a: 460d mov r5, r1
- 8000d0c: 4604 mov r4, r0
- 8000d0e: 468e mov lr, r1
- 8000d10: 2b00 cmp r3, #0
- 8000d12: f040 8083 bne.w 8000e1c <__udivmoddi4+0x118>
- 8000d16: 428a cmp r2, r1
- 8000d18: 4617 mov r7, r2
- 8000d1a: d947 bls.n 8000dac <__udivmoddi4+0xa8>
- 8000d1c: fab2 f382 clz r3, r2
- 8000d20: b14b cbz r3, 8000d36 <__udivmoddi4+0x32>
- 8000d22: f1c3 0120 rsb r1, r3, #32
- 8000d26: fa05 fe03 lsl.w lr, r5, r3
- 8000d2a: fa20 f101 lsr.w r1, r0, r1
- 8000d2e: 409f lsls r7, r3
- 8000d30: ea41 0e0e orr.w lr, r1, lr
- 8000d34: 409c lsls r4, r3
- 8000d36: ea4f 4817 mov.w r8, r7, lsr #16
- 8000d3a: fbbe fcf8 udiv ip, lr, r8
- 8000d3e: fa1f f987 uxth.w r9, r7
- 8000d42: fb08 e21c mls r2, r8, ip, lr
- 8000d46: fb0c f009 mul.w r0, ip, r9
- 8000d4a: 0c21 lsrs r1, r4, #16
- 8000d4c: ea41 4202 orr.w r2, r1, r2, lsl #16
- 8000d50: 4290 cmp r0, r2
- 8000d52: d90a bls.n 8000d6a <__udivmoddi4+0x66>
- 8000d54: 18ba adds r2, r7, r2
- 8000d56: f10c 31ff add.w r1, ip, #4294967295 ; 0xffffffff
- 8000d5a: f080 8118 bcs.w 8000f8e <__udivmoddi4+0x28a>
- 8000d5e: 4290 cmp r0, r2
- 8000d60: f240 8115 bls.w 8000f8e <__udivmoddi4+0x28a>
- 8000d64: f1ac 0c02 sub.w ip, ip, #2
- 8000d68: 443a add r2, r7
- 8000d6a: 1a12 subs r2, r2, r0
- 8000d6c: fbb2 f0f8 udiv r0, r2, r8
- 8000d70: fb08 2210 mls r2, r8, r0, r2
- 8000d74: fb00 f109 mul.w r1, r0, r9
- 8000d78: b2a4 uxth r4, r4
- 8000d7a: ea44 4402 orr.w r4, r4, r2, lsl #16
- 8000d7e: 42a1 cmp r1, r4
- 8000d80: d909 bls.n 8000d96 <__udivmoddi4+0x92>
- 8000d82: 193c adds r4, r7, r4
- 8000d84: f100 32ff add.w r2, r0, #4294967295 ; 0xffffffff
- 8000d88: f080 8103 bcs.w 8000f92 <__udivmoddi4+0x28e>
- 8000d8c: 42a1 cmp r1, r4
- 8000d8e: f240 8100 bls.w 8000f92 <__udivmoddi4+0x28e>
- 8000d92: 3802 subs r0, #2
- 8000d94: 443c add r4, r7
- 8000d96: 1a64 subs r4, r4, r1
- 8000d98: 2100 movs r1, #0
- 8000d9a: ea40 400c orr.w r0, r0, ip, lsl #16
- 8000d9e: b11e cbz r6, 8000da8 <__udivmoddi4+0xa4>
- 8000da0: 2200 movs r2, #0
- 8000da2: 40dc lsrs r4, r3
- 8000da4: e9c6 4200 strd r4, r2, [r6]
- 8000da8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 8000dac: b902 cbnz r2, 8000db0 <__udivmoddi4+0xac>
- 8000dae: deff udf #255 ; 0xff
- 8000db0: fab2 f382 clz r3, r2
- 8000db4: 2b00 cmp r3, #0
- 8000db6: d14f bne.n 8000e58 <__udivmoddi4+0x154>
- 8000db8: 1a8d subs r5, r1, r2
- 8000dba: 2101 movs r1, #1
- 8000dbc: ea4f 4e12 mov.w lr, r2, lsr #16
- 8000dc0: fa1f f882 uxth.w r8, r2
- 8000dc4: fbb5 fcfe udiv ip, r5, lr
- 8000dc8: fb0e 551c mls r5, lr, ip, r5
- 8000dcc: fb08 f00c mul.w r0, r8, ip
- 8000dd0: 0c22 lsrs r2, r4, #16
- 8000dd2: ea42 4505 orr.w r5, r2, r5, lsl #16
- 8000dd6: 42a8 cmp r0, r5
- 8000dd8: d907 bls.n 8000dea <__udivmoddi4+0xe6>
- 8000dda: 197d adds r5, r7, r5
- 8000ddc: f10c 32ff add.w r2, ip, #4294967295 ; 0xffffffff
- 8000de0: d202 bcs.n 8000de8 <__udivmoddi4+0xe4>
- 8000de2: 42a8 cmp r0, r5
- 8000de4: f200 80e9 bhi.w 8000fba <__udivmoddi4+0x2b6>
- 8000de8: 4694 mov ip, r2
- 8000dea: 1a2d subs r5, r5, r0
- 8000dec: fbb5 f0fe udiv r0, r5, lr
- 8000df0: fb0e 5510 mls r5, lr, r0, r5
- 8000df4: fb08 f800 mul.w r8, r8, r0
- 8000df8: b2a4 uxth r4, r4
- 8000dfa: ea44 4405 orr.w r4, r4, r5, lsl #16
- 8000dfe: 45a0 cmp r8, r4
- 8000e00: d907 bls.n 8000e12 <__udivmoddi4+0x10e>
- 8000e02: 193c adds r4, r7, r4
- 8000e04: f100 32ff add.w r2, r0, #4294967295 ; 0xffffffff
- 8000e08: d202 bcs.n 8000e10 <__udivmoddi4+0x10c>
- 8000e0a: 45a0 cmp r8, r4
- 8000e0c: f200 80d9 bhi.w 8000fc2 <__udivmoddi4+0x2be>
- 8000e10: 4610 mov r0, r2
- 8000e12: eba4 0408 sub.w r4, r4, r8
- 8000e16: ea40 400c orr.w r0, r0, ip, lsl #16
- 8000e1a: e7c0 b.n 8000d9e <__udivmoddi4+0x9a>
- 8000e1c: 428b cmp r3, r1
- 8000e1e: d908 bls.n 8000e32 <__udivmoddi4+0x12e>
- 8000e20: 2e00 cmp r6, #0
- 8000e22: f000 80b1 beq.w 8000f88 <__udivmoddi4+0x284>
- 8000e26: 2100 movs r1, #0
- 8000e28: e9c6 0500 strd r0, r5, [r6]
- 8000e2c: 4608 mov r0, r1
- 8000e2e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 8000e32: fab3 f183 clz r1, r3
- 8000e36: 2900 cmp r1, #0
- 8000e38: d14b bne.n 8000ed2 <__udivmoddi4+0x1ce>
- 8000e3a: 42ab cmp r3, r5
- 8000e3c: d302 bcc.n 8000e44 <__udivmoddi4+0x140>
- 8000e3e: 4282 cmp r2, r0
- 8000e40: f200 80b9 bhi.w 8000fb6 <__udivmoddi4+0x2b2>
- 8000e44: 1a84 subs r4, r0, r2
- 8000e46: eb65 0303 sbc.w r3, r5, r3
- 8000e4a: 2001 movs r0, #1
- 8000e4c: 469e mov lr, r3
- 8000e4e: 2e00 cmp r6, #0
- 8000e50: d0aa beq.n 8000da8 <__udivmoddi4+0xa4>
- 8000e52: e9c6 4e00 strd r4, lr, [r6]
- 8000e56: e7a7 b.n 8000da8 <__udivmoddi4+0xa4>
- 8000e58: 409f lsls r7, r3
- 8000e5a: f1c3 0220 rsb r2, r3, #32
- 8000e5e: 40d1 lsrs r1, r2
- 8000e60: ea4f 4e17 mov.w lr, r7, lsr #16
- 8000e64: fbb1 f0fe udiv r0, r1, lr
- 8000e68: fa1f f887 uxth.w r8, r7
- 8000e6c: fb0e 1110 mls r1, lr, r0, r1
- 8000e70: fa24 f202 lsr.w r2, r4, r2
- 8000e74: 409d lsls r5, r3
- 8000e76: fb00 fc08 mul.w ip, r0, r8
- 8000e7a: 432a orrs r2, r5
- 8000e7c: 0c15 lsrs r5, r2, #16
- 8000e7e: ea45 4501 orr.w r5, r5, r1, lsl #16
- 8000e82: 45ac cmp ip, r5
- 8000e84: fa04 f403 lsl.w r4, r4, r3
- 8000e88: d909 bls.n 8000e9e <__udivmoddi4+0x19a>
- 8000e8a: 197d adds r5, r7, r5
- 8000e8c: f100 31ff add.w r1, r0, #4294967295 ; 0xffffffff
- 8000e90: f080 808f bcs.w 8000fb2 <__udivmoddi4+0x2ae>
- 8000e94: 45ac cmp ip, r5
- 8000e96: f240 808c bls.w 8000fb2 <__udivmoddi4+0x2ae>
- 8000e9a: 3802 subs r0, #2
- 8000e9c: 443d add r5, r7
- 8000e9e: eba5 050c sub.w r5, r5, ip
- 8000ea2: fbb5 f1fe udiv r1, r5, lr
- 8000ea6: fb0e 5c11 mls ip, lr, r1, r5
- 8000eaa: fb01 f908 mul.w r9, r1, r8
- 8000eae: b295 uxth r5, r2
- 8000eb0: ea45 450c orr.w r5, r5, ip, lsl #16
- 8000eb4: 45a9 cmp r9, r5
- 8000eb6: d907 bls.n 8000ec8 <__udivmoddi4+0x1c4>
- 8000eb8: 197d adds r5, r7, r5
- 8000eba: f101 32ff add.w r2, r1, #4294967295 ; 0xffffffff
- 8000ebe: d274 bcs.n 8000faa <__udivmoddi4+0x2a6>
- 8000ec0: 45a9 cmp r9, r5
- 8000ec2: d972 bls.n 8000faa <__udivmoddi4+0x2a6>
- 8000ec4: 3902 subs r1, #2
- 8000ec6: 443d add r5, r7
- 8000ec8: eba5 0509 sub.w r5, r5, r9
- 8000ecc: ea41 4100 orr.w r1, r1, r0, lsl #16
- 8000ed0: e778 b.n 8000dc4 <__udivmoddi4+0xc0>
- 8000ed2: f1c1 0720 rsb r7, r1, #32
- 8000ed6: 408b lsls r3, r1
- 8000ed8: fa22 fc07 lsr.w ip, r2, r7
- 8000edc: ea4c 0c03 orr.w ip, ip, r3
- 8000ee0: fa25 f407 lsr.w r4, r5, r7
- 8000ee4: ea4f 4e1c mov.w lr, ip, lsr #16
- 8000ee8: fbb4 f9fe udiv r9, r4, lr
- 8000eec: fa1f f88c uxth.w r8, ip
- 8000ef0: fb0e 4419 mls r4, lr, r9, r4
- 8000ef4: fa20 f307 lsr.w r3, r0, r7
- 8000ef8: fb09 fa08 mul.w sl, r9, r8
- 8000efc: 408d lsls r5, r1
- 8000efe: 431d orrs r5, r3
- 8000f00: 0c2b lsrs r3, r5, #16
- 8000f02: ea43 4404 orr.w r4, r3, r4, lsl #16
- 8000f06: 45a2 cmp sl, r4
- 8000f08: fa02 f201 lsl.w r2, r2, r1
- 8000f0c: fa00 f301 lsl.w r3, r0, r1
- 8000f10: d909 bls.n 8000f26 <__udivmoddi4+0x222>
- 8000f12: eb1c 0404 adds.w r4, ip, r4
- 8000f16: f109 30ff add.w r0, r9, #4294967295 ; 0xffffffff
- 8000f1a: d248 bcs.n 8000fae <__udivmoddi4+0x2aa>
- 8000f1c: 45a2 cmp sl, r4
- 8000f1e: d946 bls.n 8000fae <__udivmoddi4+0x2aa>
- 8000f20: f1a9 0902 sub.w r9, r9, #2
- 8000f24: 4464 add r4, ip
- 8000f26: eba4 040a sub.w r4, r4, sl
- 8000f2a: fbb4 f0fe udiv r0, r4, lr
- 8000f2e: fb0e 4410 mls r4, lr, r0, r4
- 8000f32: fb00 fa08 mul.w sl, r0, r8
- 8000f36: b2ad uxth r5, r5
- 8000f38: ea45 4404 orr.w r4, r5, r4, lsl #16
- 8000f3c: 45a2 cmp sl, r4
- 8000f3e: d908 bls.n 8000f52 <__udivmoddi4+0x24e>
- 8000f40: eb1c 0404 adds.w r4, ip, r4
- 8000f44: f100 35ff add.w r5, r0, #4294967295 ; 0xffffffff
- 8000f48: d22d bcs.n 8000fa6 <__udivmoddi4+0x2a2>
- 8000f4a: 45a2 cmp sl, r4
- 8000f4c: d92b bls.n 8000fa6 <__udivmoddi4+0x2a2>
- 8000f4e: 3802 subs r0, #2
- 8000f50: 4464 add r4, ip
- 8000f52: ea40 4009 orr.w r0, r0, r9, lsl #16
- 8000f56: fba0 8902 umull r8, r9, r0, r2
- 8000f5a: eba4 040a sub.w r4, r4, sl
- 8000f5e: 454c cmp r4, r9
- 8000f60: 46c6 mov lr, r8
- 8000f62: 464d mov r5, r9
- 8000f64: d319 bcc.n 8000f9a <__udivmoddi4+0x296>
- 8000f66: d016 beq.n 8000f96 <__udivmoddi4+0x292>
- 8000f68: b15e cbz r6, 8000f82 <__udivmoddi4+0x27e>
- 8000f6a: ebb3 020e subs.w r2, r3, lr
- 8000f6e: eb64 0405 sbc.w r4, r4, r5
- 8000f72: fa04 f707 lsl.w r7, r4, r7
- 8000f76: fa22 f301 lsr.w r3, r2, r1
- 8000f7a: 431f orrs r7, r3
- 8000f7c: 40cc lsrs r4, r1
- 8000f7e: e9c6 7400 strd r7, r4, [r6]
- 8000f82: 2100 movs r1, #0
- 8000f84: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 8000f88: 4631 mov r1, r6
- 8000f8a: 4630 mov r0, r6
- 8000f8c: e70c b.n 8000da8 <__udivmoddi4+0xa4>
- 8000f8e: 468c mov ip, r1
- 8000f90: e6eb b.n 8000d6a <__udivmoddi4+0x66>
- 8000f92: 4610 mov r0, r2
- 8000f94: e6ff b.n 8000d96 <__udivmoddi4+0x92>
- 8000f96: 4543 cmp r3, r8
- 8000f98: d2e6 bcs.n 8000f68 <__udivmoddi4+0x264>
- 8000f9a: ebb8 0e02 subs.w lr, r8, r2
- 8000f9e: eb69 050c sbc.w r5, r9, ip
- 8000fa2: 3801 subs r0, #1
- 8000fa4: e7e0 b.n 8000f68 <__udivmoddi4+0x264>
- 8000fa6: 4628 mov r0, r5
- 8000fa8: e7d3 b.n 8000f52 <__udivmoddi4+0x24e>
- 8000faa: 4611 mov r1, r2
- 8000fac: e78c b.n 8000ec8 <__udivmoddi4+0x1c4>
- 8000fae: 4681 mov r9, r0
- 8000fb0: e7b9 b.n 8000f26 <__udivmoddi4+0x222>
- 8000fb2: 4608 mov r0, r1
- 8000fb4: e773 b.n 8000e9e <__udivmoddi4+0x19a>
- 8000fb6: 4608 mov r0, r1
- 8000fb8: e749 b.n 8000e4e <__udivmoddi4+0x14a>
- 8000fba: f1ac 0c02 sub.w ip, ip, #2
- 8000fbe: 443d add r5, r7
- 8000fc0: e713 b.n 8000dea <__udivmoddi4+0xe6>
- 8000fc2: 3802 subs r0, #2
- 8000fc4: 443c add r4, r7
- 8000fc6: e724 b.n 8000e12 <__udivmoddi4+0x10e>
- 08000fc8 <__aeabi_idiv0>:
- 8000fc8: 4770 bx lr
- 8000fca: bf00 nop
- 08000fcc <HAL_COMP_TriggerCallback>:
- /* USER CODE END PFP */
- /* Private user code ---------------------------------------------------------*/
- /* USER CODE BEGIN 0 */
- void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp)
- {
- 8000fcc: b480 push {r7}
- 8000fce: b083 sub sp, #12
- 8000fd0: af00 add r7, sp, #0
- 8000fd2: 6078 str r0, [r7, #4]
- pulses++;
- 8000fd4: 4b04 ldr r3, [pc, #16] ; (8000fe8 <HAL_COMP_TriggerCallback+0x1c>)
- 8000fd6: 681b ldr r3, [r3, #0]
- 8000fd8: 3301 adds r3, #1
- 8000fda: 4a03 ldr r2, [pc, #12] ; (8000fe8 <HAL_COMP_TriggerCallback+0x1c>)
- 8000fdc: 6013 str r3, [r2, #0]
- }
- 8000fde: bf00 nop
- 8000fe0: 370c adds r7, #12
- 8000fe2: 46bd mov sp, r7
- 8000fe4: bc80 pop {r7}
- 8000fe6: 4770 bx lr
- 8000fe8: 20000200 .word 0x20000200
- 08000fec <HAL_GPIO_EXTI_Callback>:
- void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
- {
- 8000fec: b480 push {r7}
- 8000fee: b083 sub sp, #12
- 8000ff0: af00 add r7, sp, #0
- 8000ff2: 4603 mov r3, r0
- 8000ff4: 80fb strh r3, [r7, #6]
- Flags.Exti |= GPIO_Pin;
- 8000ff6: 4b06 ldr r3, [pc, #24] ; (8001010 <HAL_GPIO_EXTI_Callback+0x24>)
- 8000ff8: 895b ldrh r3, [r3, #10]
- 8000ffa: b29a uxth r2, r3
- 8000ffc: 88fb ldrh r3, [r7, #6]
- 8000ffe: 4313 orrs r3, r2
- 8001000: b29a uxth r2, r3
- 8001002: 4b03 ldr r3, [pc, #12] ; (8001010 <HAL_GPIO_EXTI_Callback+0x24>)
- 8001004: 815a strh r2, [r3, #10]
- }
- 8001006: bf00 nop
- 8001008: 370c adds r7, #12
- 800100a: 46bd mov sp, r7
- 800100c: bc80 pop {r7}
- 800100e: 4770 bx lr
- 8001010: 20000630 .word 0x20000630
- 08001014 <HAL_TIM_PeriodElapsedCallback>:
- void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
- {
- 8001014: b480 push {r7}
- 8001016: b083 sub sp, #12
- 8001018: af00 add r7, sp, #0
- 800101a: 6078 str r0, [r7, #4]
- if(htim == &htim4)
- 800101c: 687b ldr r3, [r7, #4]
- 800101e: 4a0b ldr r2, [pc, #44] ; (800104c <HAL_TIM_PeriodElapsedCallback+0x38>)
- 8001020: 4293 cmp r3, r2
- 8001022: d106 bne.n 8001032 <HAL_TIM_PeriodElapsedCallback+0x1e>
- {
- Flags.Tim4++;
- 8001024: 4b0a ldr r3, [pc, #40] ; (8001050 <HAL_TIM_PeriodElapsedCallback+0x3c>)
- 8001026: 889b ldrh r3, [r3, #4]
- 8001028: b29b uxth r3, r3
- 800102a: 3301 adds r3, #1
- 800102c: b29a uxth r2, r3
- 800102e: 4b08 ldr r3, [pc, #32] ; (8001050 <HAL_TIM_PeriodElapsedCallback+0x3c>)
- 8001030: 809a strh r2, [r3, #4]
- }
- if(htim == &htim6)
- 8001032: 687b ldr r3, [r7, #4]
- 8001034: 4a07 ldr r2, [pc, #28] ; (8001054 <HAL_TIM_PeriodElapsedCallback+0x40>)
- 8001036: 4293 cmp r3, r2
- 8001038: d102 bne.n 8001040 <HAL_TIM_PeriodElapsedCallback+0x2c>
- {
- Flags.Tim6 = 1;
- 800103a: 4b05 ldr r3, [pc, #20] ; (8001050 <HAL_TIM_PeriodElapsedCallback+0x3c>)
- 800103c: 2201 movs r2, #1
- 800103e: 80da strh r2, [r3, #6]
- }
- }
- 8001040: bf00 nop
- 8001042: 370c adds r7, #12
- 8001044: 46bd mov sp, r7
- 8001046: bc80 pop {r7}
- 8001048: 4770 bx lr
- 800104a: bf00 nop
- 800104c: 20000418 .word 0x20000418
- 8001050: 20000630 .word 0x20000630
- 8001054: 20000544 .word 0x20000544
- 08001058 <GetVcc>:
- uint32_t GetVcc(void)
- {
- 8001058: b480 push {r7}
- 800105a: af00 add r7, sp, #0
- return (VREFINT_CAL_VALUE * VREFINT_CAL_VREF / adc_meas.VREF);
- 800105c: 4b07 ldr r3, [pc, #28] ; (800107c <GetVcc+0x24>)
- 800105e: 881b ldrh r3, [r3, #0]
- 8001060: 461a mov r2, r3
- 8001062: f640 33b8 movw r3, #3000 ; 0xbb8
- 8001066: fb03 f202 mul.w r2, r3, r2
- 800106a: 4b05 ldr r3, [pc, #20] ; (8001080 <GetVcc+0x28>)
- 800106c: 689b ldr r3, [r3, #8]
- 800106e: fbb2 f3f3 udiv r3, r2, r3
- }
- 8001072: 4618 mov r0, r3
- 8001074: 46bd mov sp, r7
- 8001076: bc80 pop {r7}
- 8001078: 4770 bx lr
- 800107a: bf00 nop
- 800107c: 1ff80078 .word 0x1ff80078
- 8001080: 20000690 .word 0x20000690
- 08001084 <SetDACVoltage>:
- void SetDACVoltage(uint32_t channel, uint32_t voltage)
- {
- 8001084: b590 push {r4, r7, lr}
- 8001086: b083 sub sp, #12
- 8001088: af00 add r7, sp, #0
- 800108a: 6078 str r0, [r7, #4]
- 800108c: 6039 str r1, [r7, #0]
- HAL_DAC_SetValue(&hdac, channel, DAC_ALIGN_12B_R, (voltage * 4095UL) / GetVcc());
- 800108e: 683a ldr r2, [r7, #0]
- 8001090: 4613 mov r3, r2
- 8001092: 031b lsls r3, r3, #12
- 8001094: 1a9c subs r4, r3, r2
- 8001096: f7ff ffdf bl 8001058 <GetVcc>
- 800109a: 4603 mov r3, r0
- 800109c: fbb4 f3f3 udiv r3, r4, r3
- 80010a0: 2200 movs r2, #0
- 80010a2: 6879 ldr r1, [r7, #4]
- 80010a4: 4803 ldr r0, [pc, #12] ; (80010b4 <SetDACVoltage+0x30>)
- 80010a6: f002 f87d bl 80031a4 <HAL_DAC_SetValue>
- }
- 80010aa: bf00 nop
- 80010ac: 370c adds r7, #12
- 80010ae: 46bd mov sp, r7
- 80010b0: bd90 pop {r4, r7, pc}
- 80010b2: bf00 nop
- 80010b4: 20000530 .word 0x20000530
- 080010b8 <main>:
- /**
- * @brief The application entry point.
- * @retval int
- */
- int main(void)
- {
- 80010b8: b580 push {r7, lr}
- 80010ba: b08e sub sp, #56 ; 0x38
- 80010bc: af02 add r7, sp, #8
- /* USER CODE END 1 */
- /* MCU Configuration--------------------------------------------------------*/
- /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
- HAL_Init();
- 80010be: f001 f828 bl 8002112 <HAL_Init>
- /* USER CODE BEGIN Init */
- /* USER CODE END Init */
- /* Configure the system clock */
- SystemClock_Config();
- 80010c2: f000 f905 bl 80012d0 <SystemClock_Config>
- /* USER CODE BEGIN SysInit */
- /* USER CODE END SysInit */
- /* Initialize all configured peripherals */
- MX_DMA_Init();
- 80010c6: f000 fbe3 bl 8001890 <MX_DMA_Init>
- MX_GPIO_Init();
- 80010ca: f000 fbff bl 80018cc <MX_GPIO_Init>
- MX_ADC_Init();
- 80010ce: f000 f94f bl 8001370 <MX_ADC_Init>
- MX_DAC_Init();
- 80010d2: f000 f9eb bl 80014ac <MX_DAC_Init>
- MX_I2C2_Init();
- 80010d6: f000 fa1f bl 8001518 <MX_I2C2_Init>
- MX_COMP2_Init();
- 80010da: f000 f9bf bl 800145c <MX_COMP2_Init>
- MX_USART1_UART_Init();
- 80010de: f000 fbad bl 800183c <MX_USART1_UART_Init>
- MX_TIM6_Init();
- 80010e2: f000 fb75 bl 80017d0 <MX_TIM6_Init>
- MX_TIM4_Init();
- 80010e6: f000 fb25 bl 8001734 <MX_TIM4_Init>
- MX_TIM3_Init();
- 80010ea: f000 fa99 bl 8001620 <MX_TIM3_Init>
- MX_TIM2_Init();
- 80010ee: f000 fa41 bl 8001574 <MX_TIM2_Init>
- /* USER CODE BEGIN 2 */
- ssd1306_Init();
- 80010f2: f004 ffc1 bl 8006078 <ssd1306_Init>
- ssd1306_Fill(Black);
- 80010f6: 2000 movs r0, #0
- 80010f8: f005 f828 bl 800614c <ssd1306_Fill>
- ssd1306_UpdateScreen();
- 80010fc: f005 f848 bl 8006190 <ssd1306_UpdateScreen>
- HAL_DAC_Start(&hdac, DAC_CHANNEL_1);
- 8001100: 2100 movs r1, #0
- 8001102: 4865 ldr r0, [pc, #404] ; (8001298 <main+0x1e0>)
- 8001104: f001 fffd bl 8003102 <HAL_DAC_Start>
- HAL_DAC_Start(&hdac, DAC_CHANNEL_2);
- 8001108: 2110 movs r1, #16
- 800110a: 4863 ldr r0, [pc, #396] ; (8001298 <main+0x1e0>)
- 800110c: f001 fff9 bl 8003102 <HAL_DAC_Start>
- HAL_DAC_SetValue(&hdac, DAC_CHANNEL_1, DAC_ALIGN_12B_R, 0xB50);
- 8001110: f44f 6335 mov.w r3, #2896 ; 0xb50
- 8001114: 2200 movs r2, #0
- 8001116: 2100 movs r1, #0
- 8001118: 485f ldr r0, [pc, #380] ; (8001298 <main+0x1e0>)
- 800111a: f002 f843 bl 80031a4 <HAL_DAC_SetValue>
- HAL_DAC_SetValue(&hdac, DAC_CHANNEL_2, DAC_ALIGN_12B_R, 0x100);
- 800111e: f44f 7380 mov.w r3, #256 ; 0x100
- 8001122: 2200 movs r2, #0
- 8001124: 2110 movs r1, #16
- 8001126: 485c ldr r0, [pc, #368] ; (8001298 <main+0x1e0>)
- 8001128: f002 f83c bl 80031a4 <HAL_DAC_SetValue>
- HAL_Delay(10);
- 800112c: 200a movs r0, #10
- 800112e: f001 f85f bl 80021f0 <HAL_Delay>
- HAL_ADC_Start_DMA(&hadc, (uint32_t*)&adc_meas, 3);
- 8001132: 2203 movs r2, #3
- 8001134: 4959 ldr r1, [pc, #356] ; (800129c <main+0x1e4>)
- 8001136: 485a ldr r0, [pc, #360] ; (80012a0 <main+0x1e8>)
- 8001138: f001 f9c2 bl 80024c0 <HAL_ADC_Start_DMA>
- HAL_Delay(10);
- 800113c: 200a movs r0, #10
- 800113e: f001 f857 bl 80021f0 <HAL_Delay>
- HAL_ADC_Stop_DMA(&hadc);
- 8001142: 4857 ldr r0, [pc, #348] ; (80012a0 <main+0x1e8>)
- 8001144: f001 fa4a bl 80025dc <HAL_ADC_Stop_DMA>
- //uint32_t curr_vcc = GetVcc();
- SetDACVoltage(DAC_CHANNEL_1, 2100);
- 8001148: f640 0134 movw r1, #2100 ; 0x834
- 800114c: 2000 movs r0, #0
- 800114e: f7ff ff99 bl 8001084 <SetDACVoltage>
- SetDACVoltage(DAC_CHANNEL_2, 130);
- 8001152: 2182 movs r1, #130 ; 0x82
- 8001154: 2010 movs r0, #16
- 8001156: f7ff ff95 bl 8001084 <SetDACVoltage>
- HAL_COMP_Start_IT(&hcomp2);
- 800115a: 4852 ldr r0, [pc, #328] ; (80012a4 <main+0x1ec>)
- 800115c: f001 fe28 bl 8002db0 <HAL_COMP_Start_IT>
- HAL_TIM_Base_Start_IT(&htim6);
- 8001160: 4851 ldr r0, [pc, #324] ; (80012a8 <main+0x1f0>)
- 8001162: f003 fedb bl 8004f1c <HAL_TIM_Base_Start_IT>
- HAL_TIM_Base_Start_IT(&htim4);
- 8001166: 4851 ldr r0, [pc, #324] ; (80012ac <main+0x1f4>)
- 8001168: f003 fed8 bl 8004f1c <HAL_TIM_Base_Start_IT>
- HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_4);
- 800116c: 210c movs r1, #12
- 800116e: 4850 ldr r0, [pc, #320] ; (80012b0 <main+0x1f8>)
- 8001170: f003 ff26 bl 8004fc0 <HAL_TIM_OC_Start>
- /* USER CODE END 2 */
- /* Infinite loop */
- /* USER CODE BEGIN WHILE */
- char tempstr[32];
- uint32_t pps = 0;
- 8001174: 2300 movs r3, #0
- 8001176: 62fb str r3, [r7, #44] ; 0x2c
- uint32_t pps_avg = 0;
- 8001178: 2300 movs r3, #0
- 800117a: 62bb str r3, [r7, #40] ; 0x28
- uint32_t test = 0;
- 800117c: 2300 movs r3, #0
- 800117e: 627b str r3, [r7, #36] ; 0x24
- while (1)
- {
- if(Flags.Exti)
- 8001180: 4b4c ldr r3, [pc, #304] ; (80012b4 <main+0x1fc>)
- 8001182: 895b ldrh r3, [r3, #10]
- 8001184: b29b uxth r3, r3
- 8001186: 2b00 cmp r3, #0
- 8001188: d006 beq.n 8001198 <main+0xe0>
- {
- test = Flags.Exti;
- 800118a: 4b4a ldr r3, [pc, #296] ; (80012b4 <main+0x1fc>)
- 800118c: 895b ldrh r3, [r3, #10]
- 800118e: b29b uxth r3, r3
- 8001190: 627b str r3, [r7, #36] ; 0x24
- Flags.Exti = 0;
- 8001192: 4b48 ldr r3, [pc, #288] ; (80012b4 <main+0x1fc>)
- 8001194: 2200 movs r2, #0
- 8001196: 815a strh r2, [r3, #10]
- }
- if(Flags.Tim6)
- 8001198: 4b46 ldr r3, [pc, #280] ; (80012b4 <main+0x1fc>)
- 800119a: 88db ldrh r3, [r3, #6]
- 800119c: b29b uxth r3, r3
- 800119e: 2b00 cmp r3, #0
- 80011a0: d044 beq.n 800122c <main+0x174>
- {
- Flags.Tim6 = 0;
- 80011a2: 4b44 ldr r3, [pc, #272] ; (80012b4 <main+0x1fc>)
- 80011a4: 2200 movs r2, #0
- 80011a6: 80da strh r2, [r3, #6]
- HAL_ADC_Stop_DMA(&hadc);
- 80011a8: 483d ldr r0, [pc, #244] ; (80012a0 <main+0x1e8>)
- 80011aa: f001 fa17 bl 80025dc <HAL_ADC_Stop_DMA>
- if((pps / pps_avg > 2) || (pps_avg / pps > 2))
- 80011ae: 6afa ldr r2, [r7, #44] ; 0x2c
- 80011b0: 6abb ldr r3, [r7, #40] ; 0x28
- 80011b2: fbb2 f3f3 udiv r3, r2, r3
- 80011b6: 2b02 cmp r3, #2
- 80011b8: d805 bhi.n 80011c6 <main+0x10e>
- 80011ba: 6aba ldr r2, [r7, #40] ; 0x28
- 80011bc: 6afb ldr r3, [r7, #44] ; 0x2c
- 80011be: fbb2 f3f3 udiv r3, r2, r3
- 80011c2: 2b02 cmp r3, #2
- 80011c4: d902 bls.n 80011cc <main+0x114>
- {
- pps_avg = pps;
- 80011c6: 6afb ldr r3, [r7, #44] ; 0x2c
- 80011c8: 62bb str r3, [r7, #40] ; 0x28
- 80011ca: e004 b.n 80011d6 <main+0x11e>
- }
- else
- {
- pps_avg = (pps + pps_avg) / 2;
- 80011cc: 6afa ldr r2, [r7, #44] ; 0x2c
- 80011ce: 6abb ldr r3, [r7, #40] ; 0x28
- 80011d0: 4413 add r3, r2
- 80011d2: 085b lsrs r3, r3, #1
- 80011d4: 62bb str r3, [r7, #40] ; 0x28
- }
- sprintf(tempstr, "%5.2f uSv/h", (float)pps_avg / 100.0);
- 80011d6: 6ab8 ldr r0, [r7, #40] ; 0x28
- 80011d8: f7ff fd24 bl 8000c24 <__aeabi_ui2f>
- 80011dc: 4603 mov r3, r0
- 80011de: 4618 mov r0, r3
- 80011e0: f7ff f93a bl 8000458 <__aeabi_f2d>
- 80011e4: f04f 0200 mov.w r2, #0
- 80011e8: 4b33 ldr r3, [pc, #204] ; (80012b8 <main+0x200>)
- 80011ea: f7ff fab7 bl 800075c <__aeabi_ddiv>
- 80011ee: 4602 mov r2, r0
- 80011f0: 460b mov r3, r1
- 80011f2: 4638 mov r0, r7
- 80011f4: 4931 ldr r1, [pc, #196] ; (80012bc <main+0x204>)
- 80011f6: f005 fea7 bl 8006f48 <siprintf>
- ssd1306_DrawRectangle(0, 0, SSD1306_WIDTH - 1, SSD1306_HEIGHT - 1, White);
- 80011fa: 2301 movs r3, #1
- 80011fc: 9300 str r3, [sp, #0]
- 80011fe: 231f movs r3, #31
- 8001200: 227f movs r2, #127 ; 0x7f
- 8001202: 2100 movs r1, #0
- 8001204: 2000 movs r0, #0
- 8001206: f005 f97d bl 8006504 <ssd1306_DrawRectangle>
- ssd1306_SetCursor(1, 7);
- 800120a: 2107 movs r1, #7
- 800120c: 2001 movs r0, #1
- 800120e: f005 f8f5 bl 80063fc <ssd1306_SetCursor>
- ssd1306_WriteString(tempstr, Font_11x18, White);
- 8001212: 4a2b ldr r2, [pc, #172] ; (80012c0 <main+0x208>)
- 8001214: 4638 mov r0, r7
- 8001216: 2301 movs r3, #1
- 8001218: ca06 ldmia r2, {r1, r2}
- 800121a: f005 f8c9 bl 80063b0 <ssd1306_WriteString>
- ssd1306_UpdateScreen();
- 800121e: f004 ffb7 bl 8006190 <ssd1306_UpdateScreen>
- HAL_ADC_Start_DMA(&hadc, (uint32_t*)&adc_meas, 3);
- 8001222: 2203 movs r2, #3
- 8001224: 491d ldr r1, [pc, #116] ; (800129c <main+0x1e4>)
- 8001226: 481e ldr r0, [pc, #120] ; (80012a0 <main+0x1e8>)
- 8001228: f001 f94a bl 80024c0 <HAL_ADC_Start_DMA>
- }
- if(pulses > 50 || Flags.Tim4 > 3)
- 800122c: 4b25 ldr r3, [pc, #148] ; (80012c4 <main+0x20c>)
- 800122e: 681b ldr r3, [r3, #0]
- 8001230: 2b32 cmp r3, #50 ; 0x32
- 8001232: d804 bhi.n 800123e <main+0x186>
- 8001234: 4b1f ldr r3, [pc, #124] ; (80012b4 <main+0x1fc>)
- 8001236: 889b ldrh r3, [r3, #4]
- 8001238: b29b uxth r3, r3
- 800123a: 2b03 cmp r3, #3
- 800123c: d9a0 bls.n 8001180 <main+0xc8>
- {
- uint32_t elapsed = htim4.Instance->CNT + (Flags.Tim4 * 50000);
- 800123e: 4b1b ldr r3, [pc, #108] ; (80012ac <main+0x1f4>)
- 8001240: 681b ldr r3, [r3, #0]
- 8001242: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001244: 4a1b ldr r2, [pc, #108] ; (80012b4 <main+0x1fc>)
- 8001246: 8892 ldrh r2, [r2, #4]
- 8001248: b292 uxth r2, r2
- 800124a: 4611 mov r1, r2
- 800124c: f24c 3250 movw r2, #50000 ; 0xc350
- 8001250: fb02 f201 mul.w r2, r2, r1
- 8001254: 4413 add r3, r2
- 8001256: 623b str r3, [r7, #32]
- HAL_TIM_Base_Stop(&htim4);
- 8001258: 4814 ldr r0, [pc, #80] ; (80012ac <main+0x1f4>)
- 800125a: f003 fe41 bl 8004ee0 <HAL_TIM_Base_Stop>
- pps = (pulses * 100000) / elapsed;
- 800125e: 4b19 ldr r3, [pc, #100] ; (80012c4 <main+0x20c>)
- 8001260: 681b ldr r3, [r3, #0]
- 8001262: 4a19 ldr r2, [pc, #100] ; (80012c8 <main+0x210>)
- 8001264: fb02 f203 mul.w r2, r2, r3
- 8001268: 6a3b ldr r3, [r7, #32]
- 800126a: fbb2 f3f3 udiv r3, r2, r3
- 800126e: 62fb str r3, [r7, #44] ; 0x2c
- pulses = 0;
- 8001270: 4b14 ldr r3, [pc, #80] ; (80012c4 <main+0x20c>)
- 8001272: 2200 movs r2, #0
- 8001274: 601a str r2, [r3, #0]
- Flags.Tim4 = 0;
- 8001276: 4b0f ldr r3, [pc, #60] ; (80012b4 <main+0x1fc>)
- 8001278: 2200 movs r2, #0
- 800127a: 809a strh r2, [r3, #4]
- htim4.Instance->CNT = 0;
- 800127c: 4b0b ldr r3, [pc, #44] ; (80012ac <main+0x1f4>)
- 800127e: 681b ldr r3, [r3, #0]
- 8001280: 2200 movs r2, #0
- 8001282: 625a str r2, [r3, #36] ; 0x24
- HAL_TIM_Base_Start(&htim4);
- 8001284: 4809 ldr r0, [pc, #36] ; (80012ac <main+0x1f4>)
- 8001286: f003 fde1 bl 8004e4c <HAL_TIM_Base_Start>
- HAL_TIM_Base_Stop(&htim2);
- 800128a: 4810 ldr r0, [pc, #64] ; (80012cc <main+0x214>)
- 800128c: f003 fe28 bl 8004ee0 <HAL_TIM_Base_Stop>
- HAL_TIM_Base_Start(&htim2);
- 8001290: 480e ldr r0, [pc, #56] ; (80012cc <main+0x214>)
- 8001292: f003 fddb bl 8004e4c <HAL_TIM_Base_Start>
- if(Flags.Exti)
- 8001296: e773 b.n 8001180 <main+0xc8>
- 8001298: 20000530 .word 0x20000530
- 800129c: 20000690 .word 0x20000690
- 80012a0: 2000063c .word 0x2000063c
- 80012a4: 20000584 .word 0x20000584
- 80012a8: 20000544 .word 0x20000544
- 80012ac: 20000418 .word 0x20000418
- 80012b0: 200004ac .word 0x200004ac
- 80012b4: 20000630 .word 0x20000630
- 80012b8: 40590000 .word 0x40590000
- 80012bc: 08009388 .word 0x08009388
- 80012c0: 2000000c .word 0x2000000c
- 80012c4: 20000200 .word 0x20000200
- 80012c8: 000186a0 .word 0x000186a0
- 80012cc: 200005ac .word 0x200005ac
- 080012d0 <SystemClock_Config>:
- /**
- * @brief System Clock Configuration
- * @retval None
- */
- void SystemClock_Config(void)
- {
- 80012d0: b580 push {r7, lr}
- 80012d2: b092 sub sp, #72 ; 0x48
- 80012d4: af00 add r7, sp, #0
- RCC_OscInitTypeDef RCC_OscInitStruct = {0};
- 80012d6: f107 0314 add.w r3, r7, #20
- 80012da: 2234 movs r2, #52 ; 0x34
- 80012dc: 2100 movs r1, #0
- 80012de: 4618 mov r0, r3
- 80012e0: f005 f9ca bl 8006678 <memset>
- RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
- 80012e4: 463b mov r3, r7
- 80012e6: 2200 movs r2, #0
- 80012e8: 601a str r2, [r3, #0]
- 80012ea: 605a str r2, [r3, #4]
- 80012ec: 609a str r2, [r3, #8]
- 80012ee: 60da str r2, [r3, #12]
- 80012f0: 611a str r2, [r3, #16]
- /** Configure the main internal regulator output voltage
- */
- __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
- 80012f2: 4b1e ldr r3, [pc, #120] ; (800136c <SystemClock_Config+0x9c>)
- 80012f4: 681b ldr r3, [r3, #0]
- 80012f6: f423 53c0 bic.w r3, r3, #6144 ; 0x1800
- 80012fa: 4a1c ldr r2, [pc, #112] ; (800136c <SystemClock_Config+0x9c>)
- 80012fc: f443 6300 orr.w r3, r3, #2048 ; 0x800
- 8001300: 6013 str r3, [r2, #0]
- /** Initializes the RCC Oscillators according to the specified parameters
- * in the RCC_OscInitTypeDef structure.
- */
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;
- 8001302: 2303 movs r3, #3
- 8001304: 617b str r3, [r7, #20]
- RCC_OscInitStruct.HSEState = RCC_HSE_ON;
- 8001306: 2301 movs r3, #1
- 8001308: 61bb str r3, [r7, #24]
- RCC_OscInitStruct.HSIState = RCC_HSI_ON;
- 800130a: 2301 movs r3, #1
- 800130c: 623b str r3, [r7, #32]
- RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
- 800130e: 2310 movs r3, #16
- 8001310: 627b str r3, [r7, #36] ; 0x24
- RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
- 8001312: 2302 movs r3, #2
- 8001314: 63bb str r3, [r7, #56] ; 0x38
- RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
- 8001316: f44f 3380 mov.w r3, #65536 ; 0x10000
- 800131a: 63fb str r3, [r7, #60] ; 0x3c
- RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
- 800131c: f44f 1380 mov.w r3, #1048576 ; 0x100000
- 8001320: 643b str r3, [r7, #64] ; 0x40
- RCC_OscInitStruct.PLL.PLLDIV = RCC_PLL_DIV3;
- 8001322: f44f 0300 mov.w r3, #8388608 ; 0x800000
- 8001326: 647b str r3, [r7, #68] ; 0x44
- if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
- 8001328: f107 0314 add.w r3, r7, #20
- 800132c: 4618 mov r0, r3
- 800132e: f002 ff89 bl 8004244 <HAL_RCC_OscConfig>
- 8001332: 4603 mov r3, r0
- 8001334: 2b00 cmp r3, #0
- 8001336: d001 beq.n 800133c <SystemClock_Config+0x6c>
- {
- Error_Handler();
- 8001338: f000 fb60 bl 80019fc <Error_Handler>
- }
- /** Initializes the CPU, AHB and APB buses clocks
- */
- RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
- 800133c: 230f movs r3, #15
- 800133e: 603b str r3, [r7, #0]
- |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
- RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
- 8001340: 2303 movs r3, #3
- 8001342: 607b str r3, [r7, #4]
- RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
- 8001344: 2300 movs r3, #0
- 8001346: 60bb str r3, [r7, #8]
- RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
- 8001348: 2300 movs r3, #0
- 800134a: 60fb str r3, [r7, #12]
- RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
- 800134c: 2300 movs r3, #0
- 800134e: 613b str r3, [r7, #16]
- if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
- 8001350: 463b mov r3, r7
- 8001352: 2101 movs r1, #1
- 8001354: 4618 mov r0, r3
- 8001356: f003 faa5 bl 80048a4 <HAL_RCC_ClockConfig>
- 800135a: 4603 mov r3, r0
- 800135c: 2b00 cmp r3, #0
- 800135e: d001 beq.n 8001364 <SystemClock_Config+0x94>
- {
- Error_Handler();
- 8001360: f000 fb4c bl 80019fc <Error_Handler>
- }
- }
- 8001364: bf00 nop
- 8001366: 3748 adds r7, #72 ; 0x48
- 8001368: 46bd mov sp, r7
- 800136a: bd80 pop {r7, pc}
- 800136c: 40007000 .word 0x40007000
- 08001370 <MX_ADC_Init>:
- * @brief ADC Initialization Function
- * @param None
- * @retval None
- */
- static void MX_ADC_Init(void)
- {
- 8001370: b580 push {r7, lr}
- 8001372: b084 sub sp, #16
- 8001374: af00 add r7, sp, #0
- /* USER CODE BEGIN ADC_Init 0 */
- /* USER CODE END ADC_Init 0 */
- ADC_ChannelConfTypeDef sConfig = {0};
- 8001376: 1d3b adds r3, r7, #4
- 8001378: 2200 movs r2, #0
- 800137a: 601a str r2, [r3, #0]
- 800137c: 605a str r2, [r3, #4]
- 800137e: 609a str r2, [r3, #8]
- /* USER CODE BEGIN ADC_Init 1 */
- /* USER CODE END ADC_Init 1 */
- /** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
- */
- hadc.Instance = ADC1;
- 8001380: 4b34 ldr r3, [pc, #208] ; (8001454 <MX_ADC_Init+0xe4>)
- 8001382: 4a35 ldr r2, [pc, #212] ; (8001458 <MX_ADC_Init+0xe8>)
- 8001384: 601a str r2, [r3, #0]
- hadc.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
- 8001386: 4b33 ldr r3, [pc, #204] ; (8001454 <MX_ADC_Init+0xe4>)
- 8001388: 2200 movs r2, #0
- 800138a: 605a str r2, [r3, #4]
- hadc.Init.Resolution = ADC_RESOLUTION_12B;
- 800138c: 4b31 ldr r3, [pc, #196] ; (8001454 <MX_ADC_Init+0xe4>)
- 800138e: 2200 movs r2, #0
- 8001390: 609a str r2, [r3, #8]
- hadc.Init.DataAlign = ADC_DATAALIGN_RIGHT;
- 8001392: 4b30 ldr r3, [pc, #192] ; (8001454 <MX_ADC_Init+0xe4>)
- 8001394: 2200 movs r2, #0
- 8001396: 60da str r2, [r3, #12]
- hadc.Init.ScanConvMode = ADC_SCAN_ENABLE;
- 8001398: 4b2e ldr r3, [pc, #184] ; (8001454 <MX_ADC_Init+0xe4>)
- 800139a: f44f 7280 mov.w r2, #256 ; 0x100
- 800139e: 611a str r2, [r3, #16]
- hadc.Init.EOCSelection = ADC_EOC_SEQ_CONV;
- 80013a0: 4b2c ldr r3, [pc, #176] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013a2: 2200 movs r2, #0
- 80013a4: 615a str r2, [r3, #20]
- hadc.Init.LowPowerAutoWait = ADC_AUTOWAIT_DISABLE;
- 80013a6: 4b2b ldr r3, [pc, #172] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013a8: 2200 movs r2, #0
- 80013aa: 619a str r2, [r3, #24]
- hadc.Init.LowPowerAutoPowerOff = ADC_AUTOPOWEROFF_DISABLE;
- 80013ac: 4b29 ldr r3, [pc, #164] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013ae: 2200 movs r2, #0
- 80013b0: 61da str r2, [r3, #28]
- hadc.Init.ChannelsBank = ADC_CHANNELS_BANK_A;
- 80013b2: 4b28 ldr r3, [pc, #160] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013b4: 2200 movs r2, #0
- 80013b6: 621a str r2, [r3, #32]
- hadc.Init.ContinuousConvMode = DISABLE;
- 80013b8: 4b26 ldr r3, [pc, #152] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013ba: 2200 movs r2, #0
- 80013bc: f883 2024 strb.w r2, [r3, #36] ; 0x24
- hadc.Init.NbrOfConversion = 3;
- 80013c0: 4b24 ldr r3, [pc, #144] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013c2: 2203 movs r2, #3
- 80013c4: 629a str r2, [r3, #40] ; 0x28
- hadc.Init.DiscontinuousConvMode = DISABLE;
- 80013c6: 4b23 ldr r3, [pc, #140] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013c8: 2200 movs r2, #0
- 80013ca: f883 202c strb.w r2, [r3, #44] ; 0x2c
- hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START;
- 80013ce: 4b21 ldr r3, [pc, #132] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013d0: 2210 movs r2, #16
- 80013d2: 635a str r2, [r3, #52] ; 0x34
- hadc.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
- 80013d4: 4b1f ldr r3, [pc, #124] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013d6: 2200 movs r2, #0
- 80013d8: 639a str r2, [r3, #56] ; 0x38
- hadc.Init.DMAContinuousRequests = DISABLE;
- 80013da: 4b1e ldr r3, [pc, #120] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013dc: 2200 movs r2, #0
- 80013de: f883 203c strb.w r2, [r3, #60] ; 0x3c
- if (HAL_ADC_Init(&hadc) != HAL_OK)
- 80013e2: 481c ldr r0, [pc, #112] ; (8001454 <MX_ADC_Init+0xe4>)
- 80013e4: f000 ff26 bl 8002234 <HAL_ADC_Init>
- 80013e8: 4603 mov r3, r0
- 80013ea: 2b00 cmp r3, #0
- 80013ec: d001 beq.n 80013f2 <MX_ADC_Init+0x82>
- {
- Error_Handler();
- 80013ee: f000 fb05 bl 80019fc <Error_Handler>
- }
- /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
- */
- sConfig.Channel = ADC_CHANNEL_0;
- 80013f2: 2300 movs r3, #0
- 80013f4: 607b str r3, [r7, #4]
- sConfig.Rank = ADC_REGULAR_RANK_1;
- 80013f6: 2301 movs r3, #1
- 80013f8: 60bb str r3, [r7, #8]
- sConfig.SamplingTime = ADC_SAMPLETIME_48CYCLES;
- 80013fa: 2304 movs r3, #4
- 80013fc: 60fb str r3, [r7, #12]
- if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
- 80013fe: 1d3b adds r3, r7, #4
- 8001400: 4619 mov r1, r3
- 8001402: 4814 ldr r0, [pc, #80] ; (8001454 <MX_ADC_Init+0xe4>)
- 8001404: f001 f956 bl 80026b4 <HAL_ADC_ConfigChannel>
- 8001408: 4603 mov r3, r0
- 800140a: 2b00 cmp r3, #0
- 800140c: d001 beq.n 8001412 <MX_ADC_Init+0xa2>
- {
- Error_Handler();
- 800140e: f000 faf5 bl 80019fc <Error_Handler>
- }
- /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
- */
- sConfig.Channel = ADC_CHANNEL_TEMPSENSOR;
- 8001412: 2310 movs r3, #16
- 8001414: 607b str r3, [r7, #4]
- sConfig.Rank = ADC_REGULAR_RANK_2;
- 8001416: 2302 movs r3, #2
- 8001418: 60bb str r3, [r7, #8]
- if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
- 800141a: 1d3b adds r3, r7, #4
- 800141c: 4619 mov r1, r3
- 800141e: 480d ldr r0, [pc, #52] ; (8001454 <MX_ADC_Init+0xe4>)
- 8001420: f001 f948 bl 80026b4 <HAL_ADC_ConfigChannel>
- 8001424: 4603 mov r3, r0
- 8001426: 2b00 cmp r3, #0
- 8001428: d001 beq.n 800142e <MX_ADC_Init+0xbe>
- {
- Error_Handler();
- 800142a: f000 fae7 bl 80019fc <Error_Handler>
- }
- /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
- */
- sConfig.Channel = ADC_CHANNEL_VREFINT;
- 800142e: 2311 movs r3, #17
- 8001430: 607b str r3, [r7, #4]
- sConfig.Rank = ADC_REGULAR_RANK_3;
- 8001432: 2303 movs r3, #3
- 8001434: 60bb str r3, [r7, #8]
- if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
- 8001436: 1d3b adds r3, r7, #4
- 8001438: 4619 mov r1, r3
- 800143a: 4806 ldr r0, [pc, #24] ; (8001454 <MX_ADC_Init+0xe4>)
- 800143c: f001 f93a bl 80026b4 <HAL_ADC_ConfigChannel>
- 8001440: 4603 mov r3, r0
- 8001442: 2b00 cmp r3, #0
- 8001444: d001 beq.n 800144a <MX_ADC_Init+0xda>
- {
- Error_Handler();
- 8001446: f000 fad9 bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN ADC_Init 2 */
- /* USER CODE END ADC_Init 2 */
- }
- 800144a: bf00 nop
- 800144c: 3710 adds r7, #16
- 800144e: 46bd mov sp, r7
- 8001450: bd80 pop {r7, pc}
- 8001452: bf00 nop
- 8001454: 2000063c .word 0x2000063c
- 8001458: 40012400 .word 0x40012400
- 0800145c <MX_COMP2_Init>:
- * @brief COMP2 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_COMP2_Init(void)
- {
- 800145c: b580 push {r7, lr}
- 800145e: af00 add r7, sp, #0
- /* USER CODE END COMP2_Init 0 */
- /* USER CODE BEGIN COMP2_Init 1 */
- /* USER CODE END COMP2_Init 1 */
- hcomp2.Instance = COMP2;
- 8001460: 4b10 ldr r3, [pc, #64] ; (80014a4 <MX_COMP2_Init+0x48>)
- 8001462: 4a11 ldr r2, [pc, #68] ; (80014a8 <MX_COMP2_Init+0x4c>)
- 8001464: 601a str r2, [r3, #0]
- hcomp2.Init.InvertingInput = COMP_INVERTINGINPUT_DAC2;
- 8001466: 4b0f ldr r3, [pc, #60] ; (80014a4 <MX_COMP2_Init+0x48>)
- 8001468: f44f 12e0 mov.w r2, #1835008 ; 0x1c0000
- 800146c: 605a str r2, [r3, #4]
- hcomp2.Init.NonInvertingInput = COMP_NONINVERTINGINPUT_PB5;
- 800146e: 4b0d ldr r3, [pc, #52] ; (80014a4 <MX_COMP2_Init+0x48>)
- 8001470: 2220 movs r2, #32
- 8001472: 609a str r2, [r3, #8]
- hcomp2.Init.Output = COMP_OUTPUT_NONE;
- 8001474: 4b0b ldr r3, [pc, #44] ; (80014a4 <MX_COMP2_Init+0x48>)
- 8001476: f44f 0260 mov.w r2, #14680064 ; 0xe00000
- 800147a: 60da str r2, [r3, #12]
- hcomp2.Init.Mode = COMP_MODE_HIGHSPEED;
- 800147c: 4b09 ldr r3, [pc, #36] ; (80014a4 <MX_COMP2_Init+0x48>)
- 800147e: f44f 5280 mov.w r2, #4096 ; 0x1000
- 8001482: 611a str r2, [r3, #16]
- hcomp2.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
- 8001484: 4b07 ldr r3, [pc, #28] ; (80014a4 <MX_COMP2_Init+0x48>)
- 8001486: 2200 movs r2, #0
- 8001488: 615a str r2, [r3, #20]
- hcomp2.Init.TriggerMode = COMP_TRIGGERMODE_IT_RISING;
- 800148a: 4b06 ldr r3, [pc, #24] ; (80014a4 <MX_COMP2_Init+0x48>)
- 800148c: 2201 movs r2, #1
- 800148e: 619a str r2, [r3, #24]
- if (HAL_COMP_Init(&hcomp2) != HAL_OK)
- 8001490: 4804 ldr r0, [pc, #16] ; (80014a4 <MX_COMP2_Init+0x48>)
- 8001492: f001 fb79 bl 8002b88 <HAL_COMP_Init>
- 8001496: 4603 mov r3, r0
- 8001498: 2b00 cmp r3, #0
- 800149a: d001 beq.n 80014a0 <MX_COMP2_Init+0x44>
- {
- Error_Handler();
- 800149c: f000 faae bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN COMP2_Init 2 */
- /* USER CODE END COMP2_Init 2 */
- }
- 80014a0: bf00 nop
- 80014a2: bd80 pop {r7, pc}
- 80014a4: 20000584 .word 0x20000584
- 80014a8: 40007c01 .word 0x40007c01
- 080014ac <MX_DAC_Init>:
- * @brief DAC Initialization Function
- * @param None
- * @retval None
- */
- static void MX_DAC_Init(void)
- {
- 80014ac: b580 push {r7, lr}
- 80014ae: b082 sub sp, #8
- 80014b0: af00 add r7, sp, #0
- /* USER CODE BEGIN DAC_Init 0 */
- /* USER CODE END DAC_Init 0 */
- DAC_ChannelConfTypeDef sConfig = {0};
- 80014b2: 463b mov r3, r7
- 80014b4: 2200 movs r2, #0
- 80014b6: 601a str r2, [r3, #0]
- 80014b8: 605a str r2, [r3, #4]
- /* USER CODE BEGIN DAC_Init 1 */
- /* USER CODE END DAC_Init 1 */
- /** DAC Initialization
- */
- hdac.Instance = DAC;
- 80014ba: 4b15 ldr r3, [pc, #84] ; (8001510 <MX_DAC_Init+0x64>)
- 80014bc: 4a15 ldr r2, [pc, #84] ; (8001514 <MX_DAC_Init+0x68>)
- 80014be: 601a str r2, [r3, #0]
- if (HAL_DAC_Init(&hdac) != HAL_OK)
- 80014c0: 4813 ldr r0, [pc, #76] ; (8001510 <MX_DAC_Init+0x64>)
- 80014c2: f001 fdfc bl 80030be <HAL_DAC_Init>
- 80014c6: 4603 mov r3, r0
- 80014c8: 2b00 cmp r3, #0
- 80014ca: d001 beq.n 80014d0 <MX_DAC_Init+0x24>
- {
- Error_Handler();
- 80014cc: f000 fa96 bl 80019fc <Error_Handler>
- }
- /** DAC channel OUT1 config
- */
- sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
- 80014d0: 2300 movs r3, #0
- 80014d2: 603b str r3, [r7, #0]
- sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
- 80014d4: 2300 movs r3, #0
- 80014d6: 607b str r3, [r7, #4]
- if (HAL_DAC_ConfigChannel(&hdac, &sConfig, DAC_CHANNEL_1) != HAL_OK)
- 80014d8: 463b mov r3, r7
- 80014da: 2200 movs r2, #0
- 80014dc: 4619 mov r1, r3
- 80014de: 480c ldr r0, [pc, #48] ; (8001510 <MX_DAC_Init+0x64>)
- 80014e0: f001 fe84 bl 80031ec <HAL_DAC_ConfigChannel>
- 80014e4: 4603 mov r3, r0
- 80014e6: 2b00 cmp r3, #0
- 80014e8: d001 beq.n 80014ee <MX_DAC_Init+0x42>
- {
- Error_Handler();
- 80014ea: f000 fa87 bl 80019fc <Error_Handler>
- }
- /** DAC channel OUT2 config
- */
- sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_DISABLE;
- 80014ee: 2302 movs r3, #2
- 80014f0: 607b str r3, [r7, #4]
- if (HAL_DAC_ConfigChannel(&hdac, &sConfig, DAC_CHANNEL_2) != HAL_OK)
- 80014f2: 463b mov r3, r7
- 80014f4: 2210 movs r2, #16
- 80014f6: 4619 mov r1, r3
- 80014f8: 4805 ldr r0, [pc, #20] ; (8001510 <MX_DAC_Init+0x64>)
- 80014fa: f001 fe77 bl 80031ec <HAL_DAC_ConfigChannel>
- 80014fe: 4603 mov r3, r0
- 8001500: 2b00 cmp r3, #0
- 8001502: d001 beq.n 8001508 <MX_DAC_Init+0x5c>
- {
- Error_Handler();
- 8001504: f000 fa7a bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN DAC_Init 2 */
- /* USER CODE END DAC_Init 2 */
- }
- 8001508: bf00 nop
- 800150a: 3708 adds r7, #8
- 800150c: 46bd mov sp, r7
- 800150e: bd80 pop {r7, pc}
- 8001510: 20000530 .word 0x20000530
- 8001514: 40007400 .word 0x40007400
- 08001518 <MX_I2C2_Init>:
- * @brief I2C2 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_I2C2_Init(void)
- {
- 8001518: b580 push {r7, lr}
- 800151a: af00 add r7, sp, #0
- /* USER CODE END I2C2_Init 0 */
- /* USER CODE BEGIN I2C2_Init 1 */
- /* USER CODE END I2C2_Init 1 */
- hi2c2.Instance = I2C2;
- 800151c: 4b12 ldr r3, [pc, #72] ; (8001568 <MX_I2C2_Init+0x50>)
- 800151e: 4a13 ldr r2, [pc, #76] ; (800156c <MX_I2C2_Init+0x54>)
- 8001520: 601a str r2, [r3, #0]
- hi2c2.Init.ClockSpeed = 100000;
- 8001522: 4b11 ldr r3, [pc, #68] ; (8001568 <MX_I2C2_Init+0x50>)
- 8001524: 4a12 ldr r2, [pc, #72] ; (8001570 <MX_I2C2_Init+0x58>)
- 8001526: 605a str r2, [r3, #4]
- hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2;
- 8001528: 4b0f ldr r3, [pc, #60] ; (8001568 <MX_I2C2_Init+0x50>)
- 800152a: 2200 movs r2, #0
- 800152c: 609a str r2, [r3, #8]
- hi2c2.Init.OwnAddress1 = 0;
- 800152e: 4b0e ldr r3, [pc, #56] ; (8001568 <MX_I2C2_Init+0x50>)
- 8001530: 2200 movs r2, #0
- 8001532: 60da str r2, [r3, #12]
- hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
- 8001534: 4b0c ldr r3, [pc, #48] ; (8001568 <MX_I2C2_Init+0x50>)
- 8001536: f44f 4280 mov.w r2, #16384 ; 0x4000
- 800153a: 611a str r2, [r3, #16]
- hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
- 800153c: 4b0a ldr r3, [pc, #40] ; (8001568 <MX_I2C2_Init+0x50>)
- 800153e: 2200 movs r2, #0
- 8001540: 615a str r2, [r3, #20]
- hi2c2.Init.OwnAddress2 = 0;
- 8001542: 4b09 ldr r3, [pc, #36] ; (8001568 <MX_I2C2_Init+0x50>)
- 8001544: 2200 movs r2, #0
- 8001546: 619a str r2, [r3, #24]
- hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
- 8001548: 4b07 ldr r3, [pc, #28] ; (8001568 <MX_I2C2_Init+0x50>)
- 800154a: 2200 movs r2, #0
- 800154c: 61da str r2, [r3, #28]
- hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
- 800154e: 4b06 ldr r3, [pc, #24] ; (8001568 <MX_I2C2_Init+0x50>)
- 8001550: 2200 movs r2, #0
- 8001552: 621a str r2, [r3, #32]
- if (HAL_I2C_Init(&hi2c2) != HAL_OK)
- 8001554: 4804 ldr r0, [pc, #16] ; (8001568 <MX_I2C2_Init+0x50>)
- 8001556: f002 fa1b bl 8003990 <HAL_I2C_Init>
- 800155a: 4603 mov r3, r0
- 800155c: 2b00 cmp r3, #0
- 800155e: d001 beq.n 8001564 <MX_I2C2_Init+0x4c>
- {
- Error_Handler();
- 8001560: f000 fa4c bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN I2C2_Init 2 */
- /* USER CODE END I2C2_Init 2 */
- }
- 8001564: bf00 nop
- 8001566: bd80 pop {r7, pc}
- 8001568: 20000458 .word 0x20000458
- 800156c: 40005800 .word 0x40005800
- 8001570: 000186a0 .word 0x000186a0
- 08001574 <MX_TIM2_Init>:
- * @brief TIM2 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_TIM2_Init(void)
- {
- 8001574: b580 push {r7, lr}
- 8001576: b086 sub sp, #24
- 8001578: af00 add r7, sp, #0
- /* USER CODE BEGIN TIM2_Init 0 */
- /* USER CODE END TIM2_Init 0 */
- TIM_ClockConfigTypeDef sClockSourceConfig = {0};
- 800157a: f107 0308 add.w r3, r7, #8
- 800157e: 2200 movs r2, #0
- 8001580: 601a str r2, [r3, #0]
- 8001582: 605a str r2, [r3, #4]
- 8001584: 609a str r2, [r3, #8]
- 8001586: 60da str r2, [r3, #12]
- TIM_MasterConfigTypeDef sMasterConfig = {0};
- 8001588: 463b mov r3, r7
- 800158a: 2200 movs r2, #0
- 800158c: 601a str r2, [r3, #0]
- 800158e: 605a str r2, [r3, #4]
- /* USER CODE BEGIN TIM2_Init 1 */
- /* USER CODE END TIM2_Init 1 */
- htim2.Instance = TIM2;
- 8001590: 4b22 ldr r3, [pc, #136] ; (800161c <MX_TIM2_Init+0xa8>)
- 8001592: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
- 8001596: 601a str r2, [r3, #0]
- htim2.Init.Prescaler = 800;
- 8001598: 4b20 ldr r3, [pc, #128] ; (800161c <MX_TIM2_Init+0xa8>)
- 800159a: f44f 7248 mov.w r2, #800 ; 0x320
- 800159e: 605a str r2, [r3, #4]
- htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
- 80015a0: 4b1e ldr r3, [pc, #120] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015a2: 2200 movs r2, #0
- 80015a4: 609a str r2, [r3, #8]
- htim2.Init.Period = 1000;
- 80015a6: 4b1d ldr r3, [pc, #116] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015a8: f44f 727a mov.w r2, #1000 ; 0x3e8
- 80015ac: 60da str r2, [r3, #12]
- htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 80015ae: 4b1b ldr r3, [pc, #108] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015b0: 2200 movs r2, #0
- 80015b2: 611a str r2, [r3, #16]
- htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 80015b4: 4b19 ldr r3, [pc, #100] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015b6: 2200 movs r2, #0
- 80015b8: 615a str r2, [r3, #20]
- if (HAL_TIM_Base_Init(&htim2) != HAL_OK)
- 80015ba: 4818 ldr r0, [pc, #96] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015bc: f003 fc06 bl 8004dcc <HAL_TIM_Base_Init>
- 80015c0: 4603 mov r3, r0
- 80015c2: 2b00 cmp r3, #0
- 80015c4: d001 beq.n 80015ca <MX_TIM2_Init+0x56>
- {
- Error_Handler();
- 80015c6: f000 fa19 bl 80019fc <Error_Handler>
- }
- sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
- 80015ca: f44f 5380 mov.w r3, #4096 ; 0x1000
- 80015ce: 60bb str r3, [r7, #8]
- if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK)
- 80015d0: f107 0308 add.w r3, r7, #8
- 80015d4: 4619 mov r1, r3
- 80015d6: 4811 ldr r0, [pc, #68] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015d8: f003 ffbc bl 8005554 <HAL_TIM_ConfigClockSource>
- 80015dc: 4603 mov r3, r0
- 80015de: 2b00 cmp r3, #0
- 80015e0: d001 beq.n 80015e6 <MX_TIM2_Init+0x72>
- {
- Error_Handler();
- 80015e2: f000 fa0b bl 80019fc <Error_Handler>
- }
- if (HAL_TIM_OnePulse_Init(&htim2, TIM_OPMODE_SINGLE) != HAL_OK)
- 80015e6: 2108 movs r1, #8
- 80015e8: 480c ldr r0, [pc, #48] ; (800161c <MX_TIM2_Init+0xa8>)
- 80015ea: f003 fdc7 bl 800517c <HAL_TIM_OnePulse_Init>
- 80015ee: 4603 mov r3, r0
- 80015f0: 2b00 cmp r3, #0
- 80015f2: d001 beq.n 80015f8 <MX_TIM2_Init+0x84>
- {
- Error_Handler();
- 80015f4: f000 fa02 bl 80019fc <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_ENABLE;
- 80015f8: 2310 movs r3, #16
- 80015fa: 603b str r3, [r7, #0]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 80015fc: 2300 movs r3, #0
- 80015fe: 607b str r3, [r7, #4]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
- 8001600: 463b mov r3, r7
- 8001602: 4619 mov r1, r3
- 8001604: 4805 ldr r0, [pc, #20] ; (800161c <MX_TIM2_Init+0xa8>)
- 8001606: f004 fb6f bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
- 800160a: 4603 mov r3, r0
- 800160c: 2b00 cmp r3, #0
- 800160e: d001 beq.n 8001614 <MX_TIM2_Init+0xa0>
- {
- Error_Handler();
- 8001610: f000 f9f4 bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN TIM2_Init 2 */
- /* USER CODE END TIM2_Init 2 */
- }
- 8001614: bf00 nop
- 8001616: 3718 adds r7, #24
- 8001618: 46bd mov sp, r7
- 800161a: bd80 pop {r7, pc}
- 800161c: 200005ac .word 0x200005ac
- 08001620 <MX_TIM3_Init>:
- * @brief TIM3 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_TIM3_Init(void)
- {
- 8001620: b580 push {r7, lr}
- 8001622: b090 sub sp, #64 ; 0x40
- 8001624: af00 add r7, sp, #0
- /* USER CODE BEGIN TIM3_Init 0 */
- /* USER CODE END TIM3_Init 0 */
- TIM_ClockConfigTypeDef sClockSourceConfig = {0};
- 8001626: f107 0330 add.w r3, r7, #48 ; 0x30
- 800162a: 2200 movs r2, #0
- 800162c: 601a str r2, [r3, #0]
- 800162e: 605a str r2, [r3, #4]
- 8001630: 609a str r2, [r3, #8]
- 8001632: 60da str r2, [r3, #12]
- TIM_SlaveConfigTypeDef sSlaveConfig = {0};
- 8001634: f107 031c add.w r3, r7, #28
- 8001638: 2200 movs r2, #0
- 800163a: 601a str r2, [r3, #0]
- 800163c: 605a str r2, [r3, #4]
- 800163e: 609a str r2, [r3, #8]
- 8001640: 60da str r2, [r3, #12]
- 8001642: 611a str r2, [r3, #16]
- TIM_MasterConfigTypeDef sMasterConfig = {0};
- 8001644: f107 0314 add.w r3, r7, #20
- 8001648: 2200 movs r2, #0
- 800164a: 601a str r2, [r3, #0]
- 800164c: 605a str r2, [r3, #4]
- TIM_OC_InitTypeDef sConfigOC = {0};
- 800164e: 1d3b adds r3, r7, #4
- 8001650: 2200 movs r2, #0
- 8001652: 601a str r2, [r3, #0]
- 8001654: 605a str r2, [r3, #4]
- 8001656: 609a str r2, [r3, #8]
- 8001658: 60da str r2, [r3, #12]
- /* USER CODE BEGIN TIM3_Init 1 */
- /* USER CODE END TIM3_Init 1 */
- htim3.Instance = TIM3;
- 800165a: 4b34 ldr r3, [pc, #208] ; (800172c <MX_TIM3_Init+0x10c>)
- 800165c: 4a34 ldr r2, [pc, #208] ; (8001730 <MX_TIM3_Init+0x110>)
- 800165e: 601a str r2, [r3, #0]
- htim3.Init.Prescaler = 64;
- 8001660: 4b32 ldr r3, [pc, #200] ; (800172c <MX_TIM3_Init+0x10c>)
- 8001662: 2240 movs r2, #64 ; 0x40
- 8001664: 605a str r2, [r3, #4]
- htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
- 8001666: 4b31 ldr r3, [pc, #196] ; (800172c <MX_TIM3_Init+0x10c>)
- 8001668: 2200 movs r2, #0
- 800166a: 609a str r2, [r3, #8]
- htim3.Init.Period = 1000;
- 800166c: 4b2f ldr r3, [pc, #188] ; (800172c <MX_TIM3_Init+0x10c>)
- 800166e: f44f 727a mov.w r2, #1000 ; 0x3e8
- 8001672: 60da str r2, [r3, #12]
- htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 8001674: 4b2d ldr r3, [pc, #180] ; (800172c <MX_TIM3_Init+0x10c>)
- 8001676: 2200 movs r2, #0
- 8001678: 611a str r2, [r3, #16]
- htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 800167a: 4b2c ldr r3, [pc, #176] ; (800172c <MX_TIM3_Init+0x10c>)
- 800167c: 2200 movs r2, #0
- 800167e: 615a str r2, [r3, #20]
- if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
- 8001680: 482a ldr r0, [pc, #168] ; (800172c <MX_TIM3_Init+0x10c>)
- 8001682: f003 fba3 bl 8004dcc <HAL_TIM_Base_Init>
- 8001686: 4603 mov r3, r0
- 8001688: 2b00 cmp r3, #0
- 800168a: d001 beq.n 8001690 <MX_TIM3_Init+0x70>
- {
- Error_Handler();
- 800168c: f000 f9b6 bl 80019fc <Error_Handler>
- }
- sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
- 8001690: f44f 5380 mov.w r3, #4096 ; 0x1000
- 8001694: 633b str r3, [r7, #48] ; 0x30
- if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK)
- 8001696: f107 0330 add.w r3, r7, #48 ; 0x30
- 800169a: 4619 mov r1, r3
- 800169c: 4823 ldr r0, [pc, #140] ; (800172c <MX_TIM3_Init+0x10c>)
- 800169e: f003 ff59 bl 8005554 <HAL_TIM_ConfigClockSource>
- 80016a2: 4603 mov r3, r0
- 80016a4: 2b00 cmp r3, #0
- 80016a6: d001 beq.n 80016ac <MX_TIM3_Init+0x8c>
- {
- Error_Handler();
- 80016a8: f000 f9a8 bl 80019fc <Error_Handler>
- }
- if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
- 80016ac: 481f ldr r0, [pc, #124] ; (800172c <MX_TIM3_Init+0x10c>)
- 80016ae: f003 fd1d bl 80050ec <HAL_TIM_PWM_Init>
- 80016b2: 4603 mov r3, r0
- 80016b4: 2b00 cmp r3, #0
- 80016b6: d001 beq.n 80016bc <MX_TIM3_Init+0x9c>
- {
- Error_Handler();
- 80016b8: f000 f9a0 bl 80019fc <Error_Handler>
- }
- sSlaveConfig.SlaveMode = TIM_SLAVEMODE_GATED;
- 80016bc: 2305 movs r3, #5
- 80016be: 61fb str r3, [r7, #28]
- sSlaveConfig.InputTrigger = TIM_TS_ITR1;
- 80016c0: 2310 movs r3, #16
- 80016c2: 623b str r3, [r7, #32]
- if (HAL_TIM_SlaveConfigSynchro(&htim3, &sSlaveConfig) != HAL_OK)
- 80016c4: f107 031c add.w r3, r7, #28
- 80016c8: 4619 mov r1, r3
- 80016ca: 4818 ldr r0, [pc, #96] ; (800172c <MX_TIM3_Init+0x10c>)
- 80016cc: f004 f806 bl 80056dc <HAL_TIM_SlaveConfigSynchro>
- 80016d0: 4603 mov r3, r0
- 80016d2: 2b00 cmp r3, #0
- 80016d4: d001 beq.n 80016da <MX_TIM3_Init+0xba>
- {
- Error_Handler();
- 80016d6: f000 f991 bl 80019fc <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
- 80016da: 2300 movs r3, #0
- 80016dc: 617b str r3, [r7, #20]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 80016de: 2300 movs r3, #0
- 80016e0: 61bb str r3, [r7, #24]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
- 80016e2: f107 0314 add.w r3, r7, #20
- 80016e6: 4619 mov r1, r3
- 80016e8: 4810 ldr r0, [pc, #64] ; (800172c <MX_TIM3_Init+0x10c>)
- 80016ea: f004 fafd bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
- 80016ee: 4603 mov r3, r0
- 80016f0: 2b00 cmp r3, #0
- 80016f2: d001 beq.n 80016f8 <MX_TIM3_Init+0xd8>
- {
- Error_Handler();
- 80016f4: f000 f982 bl 80019fc <Error_Handler>
- }
- sConfigOC.OCMode = TIM_OCMODE_PWM1;
- 80016f8: 2360 movs r3, #96 ; 0x60
- 80016fa: 607b str r3, [r7, #4]
- sConfigOC.Pulse = 10;
- 80016fc: 230a movs r3, #10
- 80016fe: 60bb str r3, [r7, #8]
- sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
- 8001700: 2300 movs r3, #0
- 8001702: 60fb str r3, [r7, #12]
- sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
- 8001704: 2300 movs r3, #0
- 8001706: 613b str r3, [r7, #16]
- if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
- 8001708: 1d3b adds r3, r7, #4
- 800170a: 220c movs r2, #12
- 800170c: 4619 mov r1, r3
- 800170e: 4807 ldr r0, [pc, #28] ; (800172c <MX_TIM3_Init+0x10c>)
- 8001710: f003 fe62 bl 80053d8 <HAL_TIM_PWM_ConfigChannel>
- 8001714: 4603 mov r3, r0
- 8001716: 2b00 cmp r3, #0
- 8001718: d001 beq.n 800171e <MX_TIM3_Init+0xfe>
- {
- Error_Handler();
- 800171a: f000 f96f bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN TIM3_Init 2 */
- /* USER CODE END TIM3_Init 2 */
- HAL_TIM_MspPostInit(&htim3);
- 800171e: 4803 ldr r0, [pc, #12] ; (800172c <MX_TIM3_Init+0x10c>)
- 8001720: f000 fb34 bl 8001d8c <HAL_TIM_MspPostInit>
- }
- 8001724: bf00 nop
- 8001726: 3740 adds r7, #64 ; 0x40
- 8001728: 46bd mov sp, r7
- 800172a: bd80 pop {r7, pc}
- 800172c: 200004ac .word 0x200004ac
- 8001730: 40000400 .word 0x40000400
- 08001734 <MX_TIM4_Init>:
- * @brief TIM4 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_TIM4_Init(void)
- {
- 8001734: b580 push {r7, lr}
- 8001736: b086 sub sp, #24
- 8001738: af00 add r7, sp, #0
- /* USER CODE BEGIN TIM4_Init 0 */
- /* USER CODE END TIM4_Init 0 */
- TIM_ClockConfigTypeDef sClockSourceConfig = {0};
- 800173a: f107 0308 add.w r3, r7, #8
- 800173e: 2200 movs r2, #0
- 8001740: 601a str r2, [r3, #0]
- 8001742: 605a str r2, [r3, #4]
- 8001744: 609a str r2, [r3, #8]
- 8001746: 60da str r2, [r3, #12]
- TIM_MasterConfigTypeDef sMasterConfig = {0};
- 8001748: 463b mov r3, r7
- 800174a: 2200 movs r2, #0
- 800174c: 601a str r2, [r3, #0]
- 800174e: 605a str r2, [r3, #4]
- /* USER CODE BEGIN TIM4_Init 1 */
- /* USER CODE END TIM4_Init 1 */
- htim4.Instance = TIM4;
- 8001750: 4b1d ldr r3, [pc, #116] ; (80017c8 <MX_TIM4_Init+0x94>)
- 8001752: 4a1e ldr r2, [pc, #120] ; (80017cc <MX_TIM4_Init+0x98>)
- 8001754: 601a str r2, [r3, #0]
- htim4.Init.Prescaler = 320;
- 8001756: 4b1c ldr r3, [pc, #112] ; (80017c8 <MX_TIM4_Init+0x94>)
- 8001758: f44f 72a0 mov.w r2, #320 ; 0x140
- 800175c: 605a str r2, [r3, #4]
- htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
- 800175e: 4b1a ldr r3, [pc, #104] ; (80017c8 <MX_TIM4_Init+0x94>)
- 8001760: 2200 movs r2, #0
- 8001762: 609a str r2, [r3, #8]
- htim4.Init.Period = 50000-1;
- 8001764: 4b18 ldr r3, [pc, #96] ; (80017c8 <MX_TIM4_Init+0x94>)
- 8001766: f24c 324f movw r2, #49999 ; 0xc34f
- 800176a: 60da str r2, [r3, #12]
- htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 800176c: 4b16 ldr r3, [pc, #88] ; (80017c8 <MX_TIM4_Init+0x94>)
- 800176e: 2200 movs r2, #0
- 8001770: 611a str r2, [r3, #16]
- htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 8001772: 4b15 ldr r3, [pc, #84] ; (80017c8 <MX_TIM4_Init+0x94>)
- 8001774: 2200 movs r2, #0
- 8001776: 615a str r2, [r3, #20]
- if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
- 8001778: 4813 ldr r0, [pc, #76] ; (80017c8 <MX_TIM4_Init+0x94>)
- 800177a: f003 fb27 bl 8004dcc <HAL_TIM_Base_Init>
- 800177e: 4603 mov r3, r0
- 8001780: 2b00 cmp r3, #0
- 8001782: d001 beq.n 8001788 <MX_TIM4_Init+0x54>
- {
- Error_Handler();
- 8001784: f000 f93a bl 80019fc <Error_Handler>
- }
- sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
- 8001788: f44f 5380 mov.w r3, #4096 ; 0x1000
- 800178c: 60bb str r3, [r7, #8]
- if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
- 800178e: f107 0308 add.w r3, r7, #8
- 8001792: 4619 mov r1, r3
- 8001794: 480c ldr r0, [pc, #48] ; (80017c8 <MX_TIM4_Init+0x94>)
- 8001796: f003 fedd bl 8005554 <HAL_TIM_ConfigClockSource>
- 800179a: 4603 mov r3, r0
- 800179c: 2b00 cmp r3, #0
- 800179e: d001 beq.n 80017a4 <MX_TIM4_Init+0x70>
- {
- Error_Handler();
- 80017a0: f000 f92c bl 80019fc <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
- 80017a4: 2320 movs r3, #32
- 80017a6: 603b str r3, [r7, #0]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 80017a8: 2300 movs r3, #0
- 80017aa: 607b str r3, [r7, #4]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
- 80017ac: 463b mov r3, r7
- 80017ae: 4619 mov r1, r3
- 80017b0: 4805 ldr r0, [pc, #20] ; (80017c8 <MX_TIM4_Init+0x94>)
- 80017b2: f004 fa99 bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
- 80017b6: 4603 mov r3, r0
- 80017b8: 2b00 cmp r3, #0
- 80017ba: d001 beq.n 80017c0 <MX_TIM4_Init+0x8c>
- {
- Error_Handler();
- 80017bc: f000 f91e bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN TIM4_Init 2 */
- /* USER CODE END TIM4_Init 2 */
- }
- 80017c0: bf00 nop
- 80017c2: 3718 adds r7, #24
- 80017c4: 46bd mov sp, r7
- 80017c6: bd80 pop {r7, pc}
- 80017c8: 20000418 .word 0x20000418
- 80017cc: 40000800 .word 0x40000800
- 080017d0 <MX_TIM6_Init>:
- * @brief TIM6 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_TIM6_Init(void)
- {
- 80017d0: b580 push {r7, lr}
- 80017d2: b082 sub sp, #8
- 80017d4: af00 add r7, sp, #0
- /* USER CODE BEGIN TIM6_Init 0 */
- /* USER CODE END TIM6_Init 0 */
- TIM_MasterConfigTypeDef sMasterConfig = {0};
- 80017d6: 463b mov r3, r7
- 80017d8: 2200 movs r2, #0
- 80017da: 601a str r2, [r3, #0]
- 80017dc: 605a str r2, [r3, #4]
- /* USER CODE BEGIN TIM6_Init 1 */
- /* USER CODE END TIM6_Init 1 */
- htim6.Instance = TIM6;
- 80017de: 4b15 ldr r3, [pc, #84] ; (8001834 <MX_TIM6_Init+0x64>)
- 80017e0: 4a15 ldr r2, [pc, #84] ; (8001838 <MX_TIM6_Init+0x68>)
- 80017e2: 601a str r2, [r3, #0]
- htim6.Init.Prescaler = 800;
- 80017e4: 4b13 ldr r3, [pc, #76] ; (8001834 <MX_TIM6_Init+0x64>)
- 80017e6: f44f 7248 mov.w r2, #800 ; 0x320
- 80017ea: 605a str r2, [r3, #4]
- htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
- 80017ec: 4b11 ldr r3, [pc, #68] ; (8001834 <MX_TIM6_Init+0x64>)
- 80017ee: 2200 movs r2, #0
- 80017f0: 609a str r2, [r3, #8]
- htim6.Init.Period = 20000;
- 80017f2: 4b10 ldr r3, [pc, #64] ; (8001834 <MX_TIM6_Init+0x64>)
- 80017f4: f644 6220 movw r2, #20000 ; 0x4e20
- 80017f8: 60da str r2, [r3, #12]
- htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 80017fa: 4b0e ldr r3, [pc, #56] ; (8001834 <MX_TIM6_Init+0x64>)
- 80017fc: 2200 movs r2, #0
- 80017fe: 615a str r2, [r3, #20]
- if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
- 8001800: 480c ldr r0, [pc, #48] ; (8001834 <MX_TIM6_Init+0x64>)
- 8001802: f003 fae3 bl 8004dcc <HAL_TIM_Base_Init>
- 8001806: 4603 mov r3, r0
- 8001808: 2b00 cmp r3, #0
- 800180a: d001 beq.n 8001810 <MX_TIM6_Init+0x40>
- {
- Error_Handler();
- 800180c: f000 f8f6 bl 80019fc <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
- 8001810: 2320 movs r3, #32
- 8001812: 603b str r3, [r7, #0]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 8001814: 2300 movs r3, #0
- 8001816: 607b str r3, [r7, #4]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
- 8001818: 463b mov r3, r7
- 800181a: 4619 mov r1, r3
- 800181c: 4805 ldr r0, [pc, #20] ; (8001834 <MX_TIM6_Init+0x64>)
- 800181e: f004 fa63 bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
- 8001822: 4603 mov r3, r0
- 8001824: 2b00 cmp r3, #0
- 8001826: d001 beq.n 800182c <MX_TIM6_Init+0x5c>
- {
- Error_Handler();
- 8001828: f000 f8e8 bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN TIM6_Init 2 */
- /* USER CODE END TIM6_Init 2 */
- }
- 800182c: bf00 nop
- 800182e: 3708 adds r7, #8
- 8001830: 46bd mov sp, r7
- 8001832: bd80 pop {r7, pc}
- 8001834: 20000544 .word 0x20000544
- 8001838: 40001000 .word 0x40001000
- 0800183c <MX_USART1_UART_Init>:
- * @brief USART1 Initialization Function
- * @param None
- * @retval None
- */
- static void MX_USART1_UART_Init(void)
- {
- 800183c: b580 push {r7, lr}
- 800183e: af00 add r7, sp, #0
- /* USER CODE END USART1_Init 0 */
- /* USER CODE BEGIN USART1_Init 1 */
- /* USER CODE END USART1_Init 1 */
- huart1.Instance = USART1;
- 8001840: 4b11 ldr r3, [pc, #68] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001842: 4a12 ldr r2, [pc, #72] ; (800188c <MX_USART1_UART_Init+0x50>)
- 8001844: 601a str r2, [r3, #0]
- huart1.Init.BaudRate = 115200;
- 8001846: 4b10 ldr r3, [pc, #64] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001848: f44f 32e1 mov.w r2, #115200 ; 0x1c200
- 800184c: 605a str r2, [r3, #4]
- huart1.Init.WordLength = UART_WORDLENGTH_8B;
- 800184e: 4b0e ldr r3, [pc, #56] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001850: 2200 movs r2, #0
- 8001852: 609a str r2, [r3, #8]
- huart1.Init.StopBits = UART_STOPBITS_1;
- 8001854: 4b0c ldr r3, [pc, #48] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001856: 2200 movs r2, #0
- 8001858: 60da str r2, [r3, #12]
- huart1.Init.Parity = UART_PARITY_NONE;
- 800185a: 4b0b ldr r3, [pc, #44] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 800185c: 2200 movs r2, #0
- 800185e: 611a str r2, [r3, #16]
- huart1.Init.Mode = UART_MODE_TX_RX;
- 8001860: 4b09 ldr r3, [pc, #36] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001862: 220c movs r2, #12
- 8001864: 615a str r2, [r3, #20]
- huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
- 8001866: 4b08 ldr r3, [pc, #32] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001868: 2200 movs r2, #0
- 800186a: 619a str r2, [r3, #24]
- huart1.Init.OverSampling = UART_OVERSAMPLING_16;
- 800186c: 4b06 ldr r3, [pc, #24] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 800186e: 2200 movs r2, #0
- 8001870: 61da str r2, [r3, #28]
- if (HAL_UART_Init(&huart1) != HAL_OK)
- 8001872: 4805 ldr r0, [pc, #20] ; (8001888 <MX_USART1_UART_Init+0x4c>)
- 8001874: f004 fa96 bl 8005da4 <HAL_UART_Init>
- 8001878: 4603 mov r3, r0
- 800187a: 2b00 cmp r3, #0
- 800187c: d001 beq.n 8001882 <MX_USART1_UART_Init+0x46>
- {
- Error_Handler();
- 800187e: f000 f8bd bl 80019fc <Error_Handler>
- }
- /* USER CODE BEGIN USART1_Init 2 */
- /* USER CODE END USART1_Init 2 */
- }
- 8001882: bf00 nop
- 8001884: bd80 pop {r7, pc}
- 8001886: bf00 nop
- 8001888: 200004ec .word 0x200004ec
- 800188c: 40013800 .word 0x40013800
- 08001890 <MX_DMA_Init>:
- /**
- * Enable DMA controller clock
- */
- static void MX_DMA_Init(void)
- {
- 8001890: b580 push {r7, lr}
- 8001892: b082 sub sp, #8
- 8001894: af00 add r7, sp, #0
- /* DMA controller clock enable */
- __HAL_RCC_DMA1_CLK_ENABLE();
- 8001896: 4b0c ldr r3, [pc, #48] ; (80018c8 <MX_DMA_Init+0x38>)
- 8001898: 69db ldr r3, [r3, #28]
- 800189a: 4a0b ldr r2, [pc, #44] ; (80018c8 <MX_DMA_Init+0x38>)
- 800189c: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000
- 80018a0: 61d3 str r3, [r2, #28]
- 80018a2: 4b09 ldr r3, [pc, #36] ; (80018c8 <MX_DMA_Init+0x38>)
- 80018a4: 69db ldr r3, [r3, #28]
- 80018a6: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
- 80018aa: 607b str r3, [r7, #4]
- 80018ac: 687b ldr r3, [r7, #4]
- /* DMA interrupt init */
- /* DMA1_Channel1_IRQn interrupt configuration */
- HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
- 80018ae: 2200 movs r2, #0
- 80018b0: 2100 movs r1, #0
- 80018b2: 200b movs r0, #11
- 80018b4: f001 fbcd bl 8003052 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
- 80018b8: 200b movs r0, #11
- 80018ba: f001 fbe6 bl 800308a <HAL_NVIC_EnableIRQ>
- }
- 80018be: bf00 nop
- 80018c0: 3708 adds r7, #8
- 80018c2: 46bd mov sp, r7
- 80018c4: bd80 pop {r7, pc}
- 80018c6: bf00 nop
- 80018c8: 40023800 .word 0x40023800
- 080018cc <MX_GPIO_Init>:
- * @brief GPIO Initialization Function
- * @param None
- * @retval None
- */
- static void MX_GPIO_Init(void)
- {
- 80018cc: b580 push {r7, lr}
- 80018ce: b08a sub sp, #40 ; 0x28
- 80018d0: af00 add r7, sp, #0
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 80018d2: f107 0314 add.w r3, r7, #20
- 80018d6: 2200 movs r2, #0
- 80018d8: 601a str r2, [r3, #0]
- 80018da: 605a str r2, [r3, #4]
- 80018dc: 609a str r2, [r3, #8]
- 80018de: 60da str r2, [r3, #12]
- 80018e0: 611a str r2, [r3, #16]
- /* GPIO Ports Clock Enable */
- __HAL_RCC_GPIOC_CLK_ENABLE();
- 80018e2: 4b42 ldr r3, [pc, #264] ; (80019ec <MX_GPIO_Init+0x120>)
- 80018e4: 69db ldr r3, [r3, #28]
- 80018e6: 4a41 ldr r2, [pc, #260] ; (80019ec <MX_GPIO_Init+0x120>)
- 80018e8: f043 0304 orr.w r3, r3, #4
- 80018ec: 61d3 str r3, [r2, #28]
- 80018ee: 4b3f ldr r3, [pc, #252] ; (80019ec <MX_GPIO_Init+0x120>)
- 80018f0: 69db ldr r3, [r3, #28]
- 80018f2: f003 0304 and.w r3, r3, #4
- 80018f6: 613b str r3, [r7, #16]
- 80018f8: 693b ldr r3, [r7, #16]
- __HAL_RCC_GPIOH_CLK_ENABLE();
- 80018fa: 4b3c ldr r3, [pc, #240] ; (80019ec <MX_GPIO_Init+0x120>)
- 80018fc: 69db ldr r3, [r3, #28]
- 80018fe: 4a3b ldr r2, [pc, #236] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001900: f043 0320 orr.w r3, r3, #32
- 8001904: 61d3 str r3, [r2, #28]
- 8001906: 4b39 ldr r3, [pc, #228] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001908: 69db ldr r3, [r3, #28]
- 800190a: f003 0320 and.w r3, r3, #32
- 800190e: 60fb str r3, [r7, #12]
- 8001910: 68fb ldr r3, [r7, #12]
- __HAL_RCC_GPIOA_CLK_ENABLE();
- 8001912: 4b36 ldr r3, [pc, #216] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001914: 69db ldr r3, [r3, #28]
- 8001916: 4a35 ldr r2, [pc, #212] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001918: f043 0301 orr.w r3, r3, #1
- 800191c: 61d3 str r3, [r2, #28]
- 800191e: 4b33 ldr r3, [pc, #204] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001920: 69db ldr r3, [r3, #28]
- 8001922: f003 0301 and.w r3, r3, #1
- 8001926: 60bb str r3, [r7, #8]
- 8001928: 68bb ldr r3, [r7, #8]
- __HAL_RCC_GPIOB_CLK_ENABLE();
- 800192a: 4b30 ldr r3, [pc, #192] ; (80019ec <MX_GPIO_Init+0x120>)
- 800192c: 69db ldr r3, [r3, #28]
- 800192e: 4a2f ldr r2, [pc, #188] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001930: f043 0302 orr.w r3, r3, #2
- 8001934: 61d3 str r3, [r2, #28]
- 8001936: 4b2d ldr r3, [pc, #180] ; (80019ec <MX_GPIO_Init+0x120>)
- 8001938: 69db ldr r3, [r3, #28]
- 800193a: f003 0302 and.w r3, r3, #2
- 800193e: 607b str r3, [r7, #4]
- 8001940: 687b ldr r3, [r7, #4]
- /*Configure GPIO pin Output Level */
- HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET);
- 8001942: 2200 movs r2, #0
- 8001944: 2101 movs r1, #1
- 8001946: 482a ldr r0, [pc, #168] ; (80019f0 <MX_GPIO_Init+0x124>)
- 8001948: f001 fff2 bl 8003930 <HAL_GPIO_WritePin>
- /*Configure GPIO pins : PC13 PC14 PC15 */
- GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
- 800194c: f44f 4360 mov.w r3, #57344 ; 0xe000
- 8001950: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 8001952: 2303 movs r3, #3
- 8001954: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001956: 2300 movs r3, #0
- 8001958: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
- 800195a: f107 0314 add.w r3, r7, #20
- 800195e: 4619 mov r1, r3
- 8001960: 4824 ldr r0, [pc, #144] ; (80019f4 <MX_GPIO_Init+0x128>)
- 8001962: f001 fe65 bl 8003630 <HAL_GPIO_Init>
- /*Configure GPIO pins : PA1 PA2 PA3 PA6
- PA7 PA8 PA11 PA12
- PA15 */
- GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_6
- 8001966: f649 13ce movw r3, #39374 ; 0x99ce
- 800196a: 617b str r3, [r7, #20]
- |GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_11|GPIO_PIN_12
- |GPIO_PIN_15;
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 800196c: 2303 movs r3, #3
- 800196e: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001970: 2300 movs r3, #0
- 8001972: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
- 8001974: f107 0314 add.w r3, r7, #20
- 8001978: 4619 mov r1, r3
- 800197a: 481f ldr r0, [pc, #124] ; (80019f8 <MX_GPIO_Init+0x12c>)
- 800197c: f001 fe58 bl 8003630 <HAL_GPIO_Init>
- /*Configure GPIO pin : PB0 */
- GPIO_InitStruct.Pin = GPIO_PIN_0;
- 8001980: 2301 movs r3, #1
- 8001982: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
- 8001984: 2301 movs r3, #1
- 8001986: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001988: 2300 movs r3, #0
- 800198a: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 800198c: 2300 movs r3, #0
- 800198e: 623b str r3, [r7, #32]
- HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
- 8001990: f107 0314 add.w r3, r7, #20
- 8001994: 4619 mov r1, r3
- 8001996: 4816 ldr r0, [pc, #88] ; (80019f0 <MX_GPIO_Init+0x124>)
- 8001998: f001 fe4a bl 8003630 <HAL_GPIO_Init>
- /*Configure GPIO pins : PB2 PB12 PB13 PB3
- PB4 PB6 PB7 PB8
- PB9 */
- GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_3
- 800199c: f243 33dc movw r3, #13276 ; 0x33dc
- 80019a0: 617b str r3, [r7, #20]
- |GPIO_PIN_4|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8
- |GPIO_PIN_9;
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 80019a2: 2303 movs r3, #3
- 80019a4: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80019a6: 2300 movs r3, #0
- 80019a8: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
- 80019aa: f107 0314 add.w r3, r7, #20
- 80019ae: 4619 mov r1, r3
- 80019b0: 480f ldr r0, [pc, #60] ; (80019f0 <MX_GPIO_Init+0x124>)
- 80019b2: f001 fe3d bl 8003630 <HAL_GPIO_Init>
- /*Configure GPIO pins : PB14 PB15 */
- GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
- 80019b6: f44f 4340 mov.w r3, #49152 ; 0xc000
- 80019ba: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
- 80019bc: f44f 1304 mov.w r3, #2162688 ; 0x210000
- 80019c0: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_PULLUP;
- 80019c2: 2301 movs r3, #1
- 80019c4: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
- 80019c6: f107 0314 add.w r3, r7, #20
- 80019ca: 4619 mov r1, r3
- 80019cc: 4808 ldr r0, [pc, #32] ; (80019f0 <MX_GPIO_Init+0x124>)
- 80019ce: f001 fe2f bl 8003630 <HAL_GPIO_Init>
- /* EXTI interrupt init*/
- HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0);
- 80019d2: 2200 movs r2, #0
- 80019d4: 2100 movs r1, #0
- 80019d6: 2028 movs r0, #40 ; 0x28
- 80019d8: f001 fb3b bl 8003052 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
- 80019dc: 2028 movs r0, #40 ; 0x28
- 80019de: f001 fb54 bl 800308a <HAL_NVIC_EnableIRQ>
- }
- 80019e2: bf00 nop
- 80019e4: 3728 adds r7, #40 ; 0x28
- 80019e6: 46bd mov sp, r7
- 80019e8: bd80 pop {r7, pc}
- 80019ea: bf00 nop
- 80019ec: 40023800 .word 0x40023800
- 80019f0: 40020400 .word 0x40020400
- 80019f4: 40020800 .word 0x40020800
- 80019f8: 40020000 .word 0x40020000
- 080019fc <Error_Handler>:
- /**
- * @brief This function is executed in case of error occurrence.
- * @retval None
- */
- void Error_Handler(void)
- {
- 80019fc: b480 push {r7}
- 80019fe: af00 add r7, sp, #0
- \details Disables IRQ interrupts by setting the I-bit in the CPSR.
- Can only be executed in Privileged modes.
- */
- __STATIC_FORCEINLINE void __disable_irq(void)
- {
- __ASM volatile ("cpsid i" : : : "memory");
- 8001a00: b672 cpsid i
- }
- 8001a02: bf00 nop
- /* USER CODE BEGIN Error_Handler_Debug */
- /* User can add his own implementation to report the HAL error return state */
- __disable_irq();
- while (1)
- 8001a04: e7fe b.n 8001a04 <Error_Handler+0x8>
- ...
- 08001a08 <HAL_MspInit>:
- void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
- /**
- * Initializes the Global MSP.
- */
- void HAL_MspInit(void)
- {
- 8001a08: b480 push {r7}
- 8001a0a: b085 sub sp, #20
- 8001a0c: af00 add r7, sp, #0
- /* USER CODE BEGIN MspInit 0 */
- /* USER CODE END MspInit 0 */
- __HAL_RCC_COMP_CLK_ENABLE();
- 8001a0e: 4b14 ldr r3, [pc, #80] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a10: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001a12: 4a13 ldr r2, [pc, #76] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a14: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
- 8001a18: 6253 str r3, [r2, #36] ; 0x24
- 8001a1a: 4b11 ldr r3, [pc, #68] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a1c: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001a1e: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000
- 8001a22: 60fb str r3, [r7, #12]
- 8001a24: 68fb ldr r3, [r7, #12]
- __HAL_RCC_SYSCFG_CLK_ENABLE();
- 8001a26: 4b0e ldr r3, [pc, #56] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a28: 6a1b ldr r3, [r3, #32]
- 8001a2a: 4a0d ldr r2, [pc, #52] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a2c: f043 0301 orr.w r3, r3, #1
- 8001a30: 6213 str r3, [r2, #32]
- 8001a32: 4b0b ldr r3, [pc, #44] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a34: 6a1b ldr r3, [r3, #32]
- 8001a36: f003 0301 and.w r3, r3, #1
- 8001a3a: 60bb str r3, [r7, #8]
- 8001a3c: 68bb ldr r3, [r7, #8]
- __HAL_RCC_PWR_CLK_ENABLE();
- 8001a3e: 4b08 ldr r3, [pc, #32] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a40: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001a42: 4a07 ldr r2, [pc, #28] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a44: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 8001a48: 6253 str r3, [r2, #36] ; 0x24
- 8001a4a: 4b05 ldr r3, [pc, #20] ; (8001a60 <HAL_MspInit+0x58>)
- 8001a4c: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001a4e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8001a52: 607b str r3, [r7, #4]
- 8001a54: 687b ldr r3, [r7, #4]
- /* System interrupt init*/
- /* USER CODE BEGIN MspInit 1 */
- /* USER CODE END MspInit 1 */
- }
- 8001a56: bf00 nop
- 8001a58: 3714 adds r7, #20
- 8001a5a: 46bd mov sp, r7
- 8001a5c: bc80 pop {r7}
- 8001a5e: 4770 bx lr
- 8001a60: 40023800 .word 0x40023800
- 08001a64 <HAL_ADC_MspInit>:
- * This function configures the hardware resources used in this example
- * @param hadc: ADC handle pointer
- * @retval None
- */
- void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
- {
- 8001a64: b580 push {r7, lr}
- 8001a66: b08a sub sp, #40 ; 0x28
- 8001a68: af00 add r7, sp, #0
- 8001a6a: 6078 str r0, [r7, #4]
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001a6c: f107 0314 add.w r3, r7, #20
- 8001a70: 2200 movs r2, #0
- 8001a72: 601a str r2, [r3, #0]
- 8001a74: 605a str r2, [r3, #4]
- 8001a76: 609a str r2, [r3, #8]
- 8001a78: 60da str r2, [r3, #12]
- 8001a7a: 611a str r2, [r3, #16]
- if(hadc->Instance==ADC1)
- 8001a7c: 687b ldr r3, [r7, #4]
- 8001a7e: 681b ldr r3, [r3, #0]
- 8001a80: 4a29 ldr r2, [pc, #164] ; (8001b28 <HAL_ADC_MspInit+0xc4>)
- 8001a82: 4293 cmp r3, r2
- 8001a84: d14b bne.n 8001b1e <HAL_ADC_MspInit+0xba>
- {
- /* USER CODE BEGIN ADC1_MspInit 0 */
- /* USER CODE END ADC1_MspInit 0 */
- /* Peripheral clock enable */
- __HAL_RCC_ADC1_CLK_ENABLE();
- 8001a86: 4b29 ldr r3, [pc, #164] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
- 8001a88: 6a1b ldr r3, [r3, #32]
- 8001a8a: 4a28 ldr r2, [pc, #160] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
- 8001a8c: f443 7300 orr.w r3, r3, #512 ; 0x200
- 8001a90: 6213 str r3, [r2, #32]
- 8001a92: 4b26 ldr r3, [pc, #152] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
- 8001a94: 6a1b ldr r3, [r3, #32]
- 8001a96: f403 7300 and.w r3, r3, #512 ; 0x200
- 8001a9a: 613b str r3, [r7, #16]
- 8001a9c: 693b ldr r3, [r7, #16]
- __HAL_RCC_GPIOA_CLK_ENABLE();
- 8001a9e: 4b23 ldr r3, [pc, #140] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
- 8001aa0: 69db ldr r3, [r3, #28]
- 8001aa2: 4a22 ldr r2, [pc, #136] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
- 8001aa4: f043 0301 orr.w r3, r3, #1
- 8001aa8: 61d3 str r3, [r2, #28]
- 8001aaa: 4b20 ldr r3, [pc, #128] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
- 8001aac: 69db ldr r3, [r3, #28]
- 8001aae: f003 0301 and.w r3, r3, #1
- 8001ab2: 60fb str r3, [r7, #12]
- 8001ab4: 68fb ldr r3, [r7, #12]
- /**ADC GPIO Configuration
- PA0-WKUP1 ------> ADC_IN0
- */
- GPIO_InitStruct.Pin = GPIO_PIN_0;
- 8001ab6: 2301 movs r3, #1
- 8001ab8: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 8001aba: 2303 movs r3, #3
- 8001abc: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001abe: 2300 movs r3, #0
- 8001ac0: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
- 8001ac2: f107 0314 add.w r3, r7, #20
- 8001ac6: 4619 mov r1, r3
- 8001ac8: 4819 ldr r0, [pc, #100] ; (8001b30 <HAL_ADC_MspInit+0xcc>)
- 8001aca: f001 fdb1 bl 8003630 <HAL_GPIO_Init>
- /* ADC1 DMA Init */
- /* ADC Init */
- hdma_adc.Instance = DMA1_Channel1;
- 8001ace: 4b19 ldr r3, [pc, #100] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001ad0: 4a19 ldr r2, [pc, #100] ; (8001b38 <HAL_ADC_MspInit+0xd4>)
- 8001ad2: 601a str r2, [r3, #0]
- hdma_adc.Init.Direction = DMA_PERIPH_TO_MEMORY;
- 8001ad4: 4b17 ldr r3, [pc, #92] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001ad6: 2200 movs r2, #0
- 8001ad8: 605a str r2, [r3, #4]
- hdma_adc.Init.PeriphInc = DMA_PINC_DISABLE;
- 8001ada: 4b16 ldr r3, [pc, #88] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001adc: 2200 movs r2, #0
- 8001ade: 609a str r2, [r3, #8]
- hdma_adc.Init.MemInc = DMA_MINC_ENABLE;
- 8001ae0: 4b14 ldr r3, [pc, #80] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001ae2: 2280 movs r2, #128 ; 0x80
- 8001ae4: 60da str r2, [r3, #12]
- hdma_adc.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
- 8001ae6: 4b13 ldr r3, [pc, #76] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001ae8: f44f 7200 mov.w r2, #512 ; 0x200
- 8001aec: 611a str r2, [r3, #16]
- hdma_adc.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
- 8001aee: 4b11 ldr r3, [pc, #68] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001af0: f44f 6200 mov.w r2, #2048 ; 0x800
- 8001af4: 615a str r2, [r3, #20]
- hdma_adc.Init.Mode = DMA_NORMAL;
- 8001af6: 4b0f ldr r3, [pc, #60] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001af8: 2200 movs r2, #0
- 8001afa: 619a str r2, [r3, #24]
- hdma_adc.Init.Priority = DMA_PRIORITY_LOW;
- 8001afc: 4b0d ldr r3, [pc, #52] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001afe: 2200 movs r2, #0
- 8001b00: 61da str r2, [r3, #28]
- if (HAL_DMA_Init(&hdma_adc) != HAL_OK)
- 8001b02: 480c ldr r0, [pc, #48] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001b04: f001 fbc0 bl 8003288 <HAL_DMA_Init>
- 8001b08: 4603 mov r3, r0
- 8001b0a: 2b00 cmp r3, #0
- 8001b0c: d001 beq.n 8001b12 <HAL_ADC_MspInit+0xae>
- {
- Error_Handler();
- 8001b0e: f7ff ff75 bl 80019fc <Error_Handler>
- }
- __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc);
- 8001b12: 687b ldr r3, [r7, #4]
- 8001b14: 4a07 ldr r2, [pc, #28] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001b16: 645a str r2, [r3, #68] ; 0x44
- 8001b18: 4a06 ldr r2, [pc, #24] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
- 8001b1a: 687b ldr r3, [r7, #4]
- 8001b1c: 6253 str r3, [r2, #36] ; 0x24
- /* USER CODE BEGIN ADC1_MspInit 1 */
- /* USER CODE END ADC1_MspInit 1 */
- }
- }
- 8001b1e: bf00 nop
- 8001b20: 3728 adds r7, #40 ; 0x28
- 8001b22: 46bd mov sp, r7
- 8001b24: bd80 pop {r7, pc}
- 8001b26: bf00 nop
- 8001b28: 40012400 .word 0x40012400
- 8001b2c: 40023800 .word 0x40023800
- 8001b30: 40020000 .word 0x40020000
- 8001b34: 200005ec .word 0x200005ec
- 8001b38: 40026008 .word 0x40026008
- 08001b3c <HAL_COMP_MspInit>:
- * This function configures the hardware resources used in this example
- * @param hcomp: COMP handle pointer
- * @retval None
- */
- void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
- {
- 8001b3c: b580 push {r7, lr}
- 8001b3e: b088 sub sp, #32
- 8001b40: af00 add r7, sp, #0
- 8001b42: 6078 str r0, [r7, #4]
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001b44: f107 030c add.w r3, r7, #12
- 8001b48: 2200 movs r2, #0
- 8001b4a: 601a str r2, [r3, #0]
- 8001b4c: 605a str r2, [r3, #4]
- 8001b4e: 609a str r2, [r3, #8]
- 8001b50: 60da str r2, [r3, #12]
- 8001b52: 611a str r2, [r3, #16]
- if(hcomp->Instance==COMP2)
- 8001b54: 687b ldr r3, [r7, #4]
- 8001b56: 681b ldr r3, [r3, #0]
- 8001b58: 4a13 ldr r2, [pc, #76] ; (8001ba8 <HAL_COMP_MspInit+0x6c>)
- 8001b5a: 4293 cmp r3, r2
- 8001b5c: d11f bne.n 8001b9e <HAL_COMP_MspInit+0x62>
- {
- /* USER CODE BEGIN COMP2_MspInit 0 */
- /* USER CODE END COMP2_MspInit 0 */
- __HAL_RCC_GPIOB_CLK_ENABLE();
- 8001b5e: 4b13 ldr r3, [pc, #76] ; (8001bac <HAL_COMP_MspInit+0x70>)
- 8001b60: 69db ldr r3, [r3, #28]
- 8001b62: 4a12 ldr r2, [pc, #72] ; (8001bac <HAL_COMP_MspInit+0x70>)
- 8001b64: f043 0302 orr.w r3, r3, #2
- 8001b68: 61d3 str r3, [r2, #28]
- 8001b6a: 4b10 ldr r3, [pc, #64] ; (8001bac <HAL_COMP_MspInit+0x70>)
- 8001b6c: 69db ldr r3, [r3, #28]
- 8001b6e: f003 0302 and.w r3, r3, #2
- 8001b72: 60bb str r3, [r7, #8]
- 8001b74: 68bb ldr r3, [r7, #8]
- /**COMP2 GPIO Configuration
- PB5 ------> COMP2_INP
- */
- GPIO_InitStruct.Pin = GPIO_PIN_5;
- 8001b76: 2320 movs r3, #32
- 8001b78: 60fb str r3, [r7, #12]
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 8001b7a: 2303 movs r3, #3
- 8001b7c: 613b str r3, [r7, #16]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001b7e: 2300 movs r3, #0
- 8001b80: 617b str r3, [r7, #20]
- HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
- 8001b82: f107 030c add.w r3, r7, #12
- 8001b86: 4619 mov r1, r3
- 8001b88: 4809 ldr r0, [pc, #36] ; (8001bb0 <HAL_COMP_MspInit+0x74>)
- 8001b8a: f001 fd51 bl 8003630 <HAL_GPIO_Init>
- /* COMP2 interrupt Init */
- HAL_NVIC_SetPriority(COMP_IRQn, 0, 0);
- 8001b8e: 2200 movs r2, #0
- 8001b90: 2100 movs r1, #0
- 8001b92: 2016 movs r0, #22
- 8001b94: f001 fa5d bl 8003052 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(COMP_IRQn);
- 8001b98: 2016 movs r0, #22
- 8001b9a: f001 fa76 bl 800308a <HAL_NVIC_EnableIRQ>
- /* USER CODE BEGIN COMP2_MspInit 1 */
- /* USER CODE END COMP2_MspInit 1 */
- }
- }
- 8001b9e: bf00 nop
- 8001ba0: 3720 adds r7, #32
- 8001ba2: 46bd mov sp, r7
- 8001ba4: bd80 pop {r7, pc}
- 8001ba6: bf00 nop
- 8001ba8: 40007c01 .word 0x40007c01
- 8001bac: 40023800 .word 0x40023800
- 8001bb0: 40020400 .word 0x40020400
- 08001bb4 <HAL_DAC_MspInit>:
- * This function configures the hardware resources used in this example
- * @param hdac: DAC handle pointer
- * @retval None
- */
- void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
- {
- 8001bb4: b580 push {r7, lr}
- 8001bb6: b08a sub sp, #40 ; 0x28
- 8001bb8: af00 add r7, sp, #0
- 8001bba: 6078 str r0, [r7, #4]
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001bbc: f107 0314 add.w r3, r7, #20
- 8001bc0: 2200 movs r2, #0
- 8001bc2: 601a str r2, [r3, #0]
- 8001bc4: 605a str r2, [r3, #4]
- 8001bc6: 609a str r2, [r3, #8]
- 8001bc8: 60da str r2, [r3, #12]
- 8001bca: 611a str r2, [r3, #16]
- if(hdac->Instance==DAC)
- 8001bcc: 687b ldr r3, [r7, #4]
- 8001bce: 681b ldr r3, [r3, #0]
- 8001bd0: 4a15 ldr r2, [pc, #84] ; (8001c28 <HAL_DAC_MspInit+0x74>)
- 8001bd2: 4293 cmp r3, r2
- 8001bd4: d123 bne.n 8001c1e <HAL_DAC_MspInit+0x6a>
- {
- /* USER CODE BEGIN DAC_MspInit 0 */
- /* USER CODE END DAC_MspInit 0 */
- /* Peripheral clock enable */
- __HAL_RCC_DAC_CLK_ENABLE();
- 8001bd6: 4b15 ldr r3, [pc, #84] ; (8001c2c <HAL_DAC_MspInit+0x78>)
- 8001bd8: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001bda: 4a14 ldr r2, [pc, #80] ; (8001c2c <HAL_DAC_MspInit+0x78>)
- 8001bdc: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000
- 8001be0: 6253 str r3, [r2, #36] ; 0x24
- 8001be2: 4b12 ldr r3, [pc, #72] ; (8001c2c <HAL_DAC_MspInit+0x78>)
- 8001be4: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001be6: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
- 8001bea: 613b str r3, [r7, #16]
- 8001bec: 693b ldr r3, [r7, #16]
- __HAL_RCC_GPIOA_CLK_ENABLE();
- 8001bee: 4b0f ldr r3, [pc, #60] ; (8001c2c <HAL_DAC_MspInit+0x78>)
- 8001bf0: 69db ldr r3, [r3, #28]
- 8001bf2: 4a0e ldr r2, [pc, #56] ; (8001c2c <HAL_DAC_MspInit+0x78>)
- 8001bf4: f043 0301 orr.w r3, r3, #1
- 8001bf8: 61d3 str r3, [r2, #28]
- 8001bfa: 4b0c ldr r3, [pc, #48] ; (8001c2c <HAL_DAC_MspInit+0x78>)
- 8001bfc: 69db ldr r3, [r3, #28]
- 8001bfe: f003 0301 and.w r3, r3, #1
- 8001c02: 60fb str r3, [r7, #12]
- 8001c04: 68fb ldr r3, [r7, #12]
- /**DAC GPIO Configuration
- PA4 ------> DAC_OUT1
- PA5 ------> DAC_OUT2
- */
- GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
- 8001c06: 2330 movs r3, #48 ; 0x30
- 8001c08: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 8001c0a: 2303 movs r3, #3
- 8001c0c: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001c0e: 2300 movs r3, #0
- 8001c10: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
- 8001c12: f107 0314 add.w r3, r7, #20
- 8001c16: 4619 mov r1, r3
- 8001c18: 4805 ldr r0, [pc, #20] ; (8001c30 <HAL_DAC_MspInit+0x7c>)
- 8001c1a: f001 fd09 bl 8003630 <HAL_GPIO_Init>
- /* USER CODE BEGIN DAC_MspInit 1 */
- /* USER CODE END DAC_MspInit 1 */
- }
- }
- 8001c1e: bf00 nop
- 8001c20: 3728 adds r7, #40 ; 0x28
- 8001c22: 46bd mov sp, r7
- 8001c24: bd80 pop {r7, pc}
- 8001c26: bf00 nop
- 8001c28: 40007400 .word 0x40007400
- 8001c2c: 40023800 .word 0x40023800
- 8001c30: 40020000 .word 0x40020000
- 08001c34 <HAL_I2C_MspInit>:
- * This function configures the hardware resources used in this example
- * @param hi2c: I2C handle pointer
- * @retval None
- */
- void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
- {
- 8001c34: b580 push {r7, lr}
- 8001c36: b08a sub sp, #40 ; 0x28
- 8001c38: af00 add r7, sp, #0
- 8001c3a: 6078 str r0, [r7, #4]
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001c3c: f107 0314 add.w r3, r7, #20
- 8001c40: 2200 movs r2, #0
- 8001c42: 601a str r2, [r3, #0]
- 8001c44: 605a str r2, [r3, #4]
- 8001c46: 609a str r2, [r3, #8]
- 8001c48: 60da str r2, [r3, #12]
- 8001c4a: 611a str r2, [r3, #16]
- if(hi2c->Instance==I2C2)
- 8001c4c: 687b ldr r3, [r7, #4]
- 8001c4e: 681b ldr r3, [r3, #0]
- 8001c50: 4a17 ldr r2, [pc, #92] ; (8001cb0 <HAL_I2C_MspInit+0x7c>)
- 8001c52: 4293 cmp r3, r2
- 8001c54: d128 bne.n 8001ca8 <HAL_I2C_MspInit+0x74>
- {
- /* USER CODE BEGIN I2C2_MspInit 0 */
- /* USER CODE END I2C2_MspInit 0 */
- __HAL_RCC_GPIOB_CLK_ENABLE();
- 8001c56: 4b17 ldr r3, [pc, #92] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
- 8001c58: 69db ldr r3, [r3, #28]
- 8001c5a: 4a16 ldr r2, [pc, #88] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
- 8001c5c: f043 0302 orr.w r3, r3, #2
- 8001c60: 61d3 str r3, [r2, #28]
- 8001c62: 4b14 ldr r3, [pc, #80] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
- 8001c64: 69db ldr r3, [r3, #28]
- 8001c66: f003 0302 and.w r3, r3, #2
- 8001c6a: 613b str r3, [r7, #16]
- 8001c6c: 693b ldr r3, [r7, #16]
- /**I2C2 GPIO Configuration
- PB10 ------> I2C2_SCL
- PB11 ------> I2C2_SDA
- */
- GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
- 8001c6e: f44f 6340 mov.w r3, #3072 ; 0xc00
- 8001c72: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
- 8001c74: 2312 movs r3, #18
- 8001c76: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001c78: 2300 movs r3, #0
- 8001c7a: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
- 8001c7c: 2303 movs r3, #3
- 8001c7e: 623b str r3, [r7, #32]
- GPIO_InitStruct.Alternate = GPIO_AF4_I2C2;
- 8001c80: 2304 movs r3, #4
- 8001c82: 627b str r3, [r7, #36] ; 0x24
- HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
- 8001c84: f107 0314 add.w r3, r7, #20
- 8001c88: 4619 mov r1, r3
- 8001c8a: 480b ldr r0, [pc, #44] ; (8001cb8 <HAL_I2C_MspInit+0x84>)
- 8001c8c: f001 fcd0 bl 8003630 <HAL_GPIO_Init>
- /* Peripheral clock enable */
- __HAL_RCC_I2C2_CLK_ENABLE();
- 8001c90: 4b08 ldr r3, [pc, #32] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
- 8001c92: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001c94: 4a07 ldr r2, [pc, #28] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
- 8001c96: f443 0380 orr.w r3, r3, #4194304 ; 0x400000
- 8001c9a: 6253 str r3, [r2, #36] ; 0x24
- 8001c9c: 4b05 ldr r3, [pc, #20] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
- 8001c9e: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001ca0: f403 0380 and.w r3, r3, #4194304 ; 0x400000
- 8001ca4: 60fb str r3, [r7, #12]
- 8001ca6: 68fb ldr r3, [r7, #12]
- /* USER CODE BEGIN I2C2_MspInit 1 */
- /* USER CODE END I2C2_MspInit 1 */
- }
- }
- 8001ca8: bf00 nop
- 8001caa: 3728 adds r7, #40 ; 0x28
- 8001cac: 46bd mov sp, r7
- 8001cae: bd80 pop {r7, pc}
- 8001cb0: 40005800 .word 0x40005800
- 8001cb4: 40023800 .word 0x40023800
- 8001cb8: 40020400 .word 0x40020400
- 08001cbc <HAL_TIM_Base_MspInit>:
- * This function configures the hardware resources used in this example
- * @param htim_base: TIM_Base handle pointer
- * @retval None
- */
- void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
- {
- 8001cbc: b580 push {r7, lr}
- 8001cbe: b086 sub sp, #24
- 8001cc0: af00 add r7, sp, #0
- 8001cc2: 6078 str r0, [r7, #4]
- if(htim_base->Instance==TIM2)
- 8001cc4: 687b ldr r3, [r7, #4]
- 8001cc6: 681b ldr r3, [r3, #0]
- 8001cc8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8001ccc: d10c bne.n 8001ce8 <HAL_TIM_Base_MspInit+0x2c>
- {
- /* USER CODE BEGIN TIM2_MspInit 0 */
- /* USER CODE END TIM2_MspInit 0 */
- /* Peripheral clock enable */
- __HAL_RCC_TIM2_CLK_ENABLE();
- 8001cce: 4b2b ldr r3, [pc, #172] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001cd0: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001cd2: 4a2a ldr r2, [pc, #168] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001cd4: f043 0301 orr.w r3, r3, #1
- 8001cd8: 6253 str r3, [r2, #36] ; 0x24
- 8001cda: 4b28 ldr r3, [pc, #160] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001cdc: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001cde: f003 0301 and.w r3, r3, #1
- 8001ce2: 617b str r3, [r7, #20]
- 8001ce4: 697b ldr r3, [r7, #20]
- /* USER CODE BEGIN TIM6_MspInit 1 */
- /* USER CODE END TIM6_MspInit 1 */
- }
- }
- 8001ce6: e044 b.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
- else if(htim_base->Instance==TIM3)
- 8001ce8: 687b ldr r3, [r7, #4]
- 8001cea: 681b ldr r3, [r3, #0]
- 8001cec: 4a24 ldr r2, [pc, #144] ; (8001d80 <HAL_TIM_Base_MspInit+0xc4>)
- 8001cee: 4293 cmp r3, r2
- 8001cf0: d10c bne.n 8001d0c <HAL_TIM_Base_MspInit+0x50>
- __HAL_RCC_TIM3_CLK_ENABLE();
- 8001cf2: 4b22 ldr r3, [pc, #136] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001cf4: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001cf6: 4a21 ldr r2, [pc, #132] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001cf8: f043 0302 orr.w r3, r3, #2
- 8001cfc: 6253 str r3, [r2, #36] ; 0x24
- 8001cfe: 4b1f ldr r3, [pc, #124] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d00: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001d02: f003 0302 and.w r3, r3, #2
- 8001d06: 613b str r3, [r7, #16]
- 8001d08: 693b ldr r3, [r7, #16]
- }
- 8001d0a: e032 b.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
- else if(htim_base->Instance==TIM4)
- 8001d0c: 687b ldr r3, [r7, #4]
- 8001d0e: 681b ldr r3, [r3, #0]
- 8001d10: 4a1c ldr r2, [pc, #112] ; (8001d84 <HAL_TIM_Base_MspInit+0xc8>)
- 8001d12: 4293 cmp r3, r2
- 8001d14: d114 bne.n 8001d40 <HAL_TIM_Base_MspInit+0x84>
- __HAL_RCC_TIM4_CLK_ENABLE();
- 8001d16: 4b19 ldr r3, [pc, #100] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d18: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001d1a: 4a18 ldr r2, [pc, #96] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d1c: f043 0304 orr.w r3, r3, #4
- 8001d20: 6253 str r3, [r2, #36] ; 0x24
- 8001d22: 4b16 ldr r3, [pc, #88] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d24: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001d26: f003 0304 and.w r3, r3, #4
- 8001d2a: 60fb str r3, [r7, #12]
- 8001d2c: 68fb ldr r3, [r7, #12]
- HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0);
- 8001d2e: 2200 movs r2, #0
- 8001d30: 2100 movs r1, #0
- 8001d32: 201e movs r0, #30
- 8001d34: f001 f98d bl 8003052 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(TIM4_IRQn);
- 8001d38: 201e movs r0, #30
- 8001d3a: f001 f9a6 bl 800308a <HAL_NVIC_EnableIRQ>
- }
- 8001d3e: e018 b.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
- else if(htim_base->Instance==TIM6)
- 8001d40: 687b ldr r3, [r7, #4]
- 8001d42: 681b ldr r3, [r3, #0]
- 8001d44: 4a10 ldr r2, [pc, #64] ; (8001d88 <HAL_TIM_Base_MspInit+0xcc>)
- 8001d46: 4293 cmp r3, r2
- 8001d48: d113 bne.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
- __HAL_RCC_TIM6_CLK_ENABLE();
- 8001d4a: 4b0c ldr r3, [pc, #48] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d4c: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001d4e: 4a0b ldr r2, [pc, #44] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d50: f043 0310 orr.w r3, r3, #16
- 8001d54: 6253 str r3, [r2, #36] ; 0x24
- 8001d56: 4b09 ldr r3, [pc, #36] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
- 8001d58: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001d5a: f003 0310 and.w r3, r3, #16
- 8001d5e: 60bb str r3, [r7, #8]
- 8001d60: 68bb ldr r3, [r7, #8]
- HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0);
- 8001d62: 2200 movs r2, #0
- 8001d64: 2100 movs r1, #0
- 8001d66: 202b movs r0, #43 ; 0x2b
- 8001d68: f001 f973 bl 8003052 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(TIM6_IRQn);
- 8001d6c: 202b movs r0, #43 ; 0x2b
- 8001d6e: f001 f98c bl 800308a <HAL_NVIC_EnableIRQ>
- }
- 8001d72: bf00 nop
- 8001d74: 3718 adds r7, #24
- 8001d76: 46bd mov sp, r7
- 8001d78: bd80 pop {r7, pc}
- 8001d7a: bf00 nop
- 8001d7c: 40023800 .word 0x40023800
- 8001d80: 40000400 .word 0x40000400
- 8001d84: 40000800 .word 0x40000800
- 8001d88: 40001000 .word 0x40001000
- 08001d8c <HAL_TIM_MspPostInit>:
- void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
- {
- 8001d8c: b580 push {r7, lr}
- 8001d8e: b088 sub sp, #32
- 8001d90: af00 add r7, sp, #0
- 8001d92: 6078 str r0, [r7, #4]
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001d94: f107 030c add.w r3, r7, #12
- 8001d98: 2200 movs r2, #0
- 8001d9a: 601a str r2, [r3, #0]
- 8001d9c: 605a str r2, [r3, #4]
- 8001d9e: 609a str r2, [r3, #8]
- 8001da0: 60da str r2, [r3, #12]
- 8001da2: 611a str r2, [r3, #16]
- if(htim->Instance==TIM3)
- 8001da4: 687b ldr r3, [r7, #4]
- 8001da6: 681b ldr r3, [r3, #0]
- 8001da8: 4a11 ldr r2, [pc, #68] ; (8001df0 <HAL_TIM_MspPostInit+0x64>)
- 8001daa: 4293 cmp r3, r2
- 8001dac: d11b bne.n 8001de6 <HAL_TIM_MspPostInit+0x5a>
- {
- /* USER CODE BEGIN TIM3_MspPostInit 0 */
- /* USER CODE END TIM3_MspPostInit 0 */
- __HAL_RCC_GPIOB_CLK_ENABLE();
- 8001dae: 4b11 ldr r3, [pc, #68] ; (8001df4 <HAL_TIM_MspPostInit+0x68>)
- 8001db0: 69db ldr r3, [r3, #28]
- 8001db2: 4a10 ldr r2, [pc, #64] ; (8001df4 <HAL_TIM_MspPostInit+0x68>)
- 8001db4: f043 0302 orr.w r3, r3, #2
- 8001db8: 61d3 str r3, [r2, #28]
- 8001dba: 4b0e ldr r3, [pc, #56] ; (8001df4 <HAL_TIM_MspPostInit+0x68>)
- 8001dbc: 69db ldr r3, [r3, #28]
- 8001dbe: f003 0302 and.w r3, r3, #2
- 8001dc2: 60bb str r3, [r7, #8]
- 8001dc4: 68bb ldr r3, [r7, #8]
- /**TIM3 GPIO Configuration
- PB1 ------> TIM3_CH4
- */
- GPIO_InitStruct.Pin = GPIO_PIN_1;
- 8001dc6: 2302 movs r3, #2
- 8001dc8: 60fb str r3, [r7, #12]
- GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 8001dca: 2302 movs r3, #2
- 8001dcc: 613b str r3, [r7, #16]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001dce: 2300 movs r3, #0
- 8001dd0: 617b str r3, [r7, #20]
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 8001dd2: 2300 movs r3, #0
- 8001dd4: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
- 8001dd6: 2302 movs r3, #2
- 8001dd8: 61fb str r3, [r7, #28]
- HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
- 8001dda: f107 030c add.w r3, r7, #12
- 8001dde: 4619 mov r1, r3
- 8001de0: 4805 ldr r0, [pc, #20] ; (8001df8 <HAL_TIM_MspPostInit+0x6c>)
- 8001de2: f001 fc25 bl 8003630 <HAL_GPIO_Init>
- /* USER CODE BEGIN TIM3_MspPostInit 1 */
- /* USER CODE END TIM3_MspPostInit 1 */
- }
- }
- 8001de6: bf00 nop
- 8001de8: 3720 adds r7, #32
- 8001dea: 46bd mov sp, r7
- 8001dec: bd80 pop {r7, pc}
- 8001dee: bf00 nop
- 8001df0: 40000400 .word 0x40000400
- 8001df4: 40023800 .word 0x40023800
- 8001df8: 40020400 .word 0x40020400
- 08001dfc <HAL_UART_MspInit>:
- * This function configures the hardware resources used in this example
- * @param huart: UART handle pointer
- * @retval None
- */
- void HAL_UART_MspInit(UART_HandleTypeDef* huart)
- {
- 8001dfc: b580 push {r7, lr}
- 8001dfe: b08a sub sp, #40 ; 0x28
- 8001e00: af00 add r7, sp, #0
- 8001e02: 6078 str r0, [r7, #4]
- GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001e04: f107 0314 add.w r3, r7, #20
- 8001e08: 2200 movs r2, #0
- 8001e0a: 601a str r2, [r3, #0]
- 8001e0c: 605a str r2, [r3, #4]
- 8001e0e: 609a str r2, [r3, #8]
- 8001e10: 60da str r2, [r3, #12]
- 8001e12: 611a str r2, [r3, #16]
- if(huart->Instance==USART1)
- 8001e14: 687b ldr r3, [r7, #4]
- 8001e16: 681b ldr r3, [r3, #0]
- 8001e18: 4a17 ldr r2, [pc, #92] ; (8001e78 <HAL_UART_MspInit+0x7c>)
- 8001e1a: 4293 cmp r3, r2
- 8001e1c: d128 bne.n 8001e70 <HAL_UART_MspInit+0x74>
- {
- /* USER CODE BEGIN USART1_MspInit 0 */
- /* USER CODE END USART1_MspInit 0 */
- /* Peripheral clock enable */
- __HAL_RCC_USART1_CLK_ENABLE();
- 8001e1e: 4b17 ldr r3, [pc, #92] ; (8001e7c <HAL_UART_MspInit+0x80>)
- 8001e20: 6a1b ldr r3, [r3, #32]
- 8001e22: 4a16 ldr r2, [pc, #88] ; (8001e7c <HAL_UART_MspInit+0x80>)
- 8001e24: f443 4380 orr.w r3, r3, #16384 ; 0x4000
- 8001e28: 6213 str r3, [r2, #32]
- 8001e2a: 4b14 ldr r3, [pc, #80] ; (8001e7c <HAL_UART_MspInit+0x80>)
- 8001e2c: 6a1b ldr r3, [r3, #32]
- 8001e2e: f403 4380 and.w r3, r3, #16384 ; 0x4000
- 8001e32: 613b str r3, [r7, #16]
- 8001e34: 693b ldr r3, [r7, #16]
- __HAL_RCC_GPIOA_CLK_ENABLE();
- 8001e36: 4b11 ldr r3, [pc, #68] ; (8001e7c <HAL_UART_MspInit+0x80>)
- 8001e38: 69db ldr r3, [r3, #28]
- 8001e3a: 4a10 ldr r2, [pc, #64] ; (8001e7c <HAL_UART_MspInit+0x80>)
- 8001e3c: f043 0301 orr.w r3, r3, #1
- 8001e40: 61d3 str r3, [r2, #28]
- 8001e42: 4b0e ldr r3, [pc, #56] ; (8001e7c <HAL_UART_MspInit+0x80>)
- 8001e44: 69db ldr r3, [r3, #28]
- 8001e46: f003 0301 and.w r3, r3, #1
- 8001e4a: 60fb str r3, [r7, #12]
- 8001e4c: 68fb ldr r3, [r7, #12]
- /**USART1 GPIO Configuration
- PA9 ------> USART1_TX
- PA10 ------> USART1_RX
- */
- GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10;
- 8001e4e: f44f 63c0 mov.w r3, #1536 ; 0x600
- 8001e52: 617b str r3, [r7, #20]
- GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 8001e54: 2302 movs r3, #2
- 8001e56: 61bb str r3, [r7, #24]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001e58: 2300 movs r3, #0
- 8001e5a: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
- 8001e5c: 2303 movs r3, #3
- 8001e5e: 623b str r3, [r7, #32]
- GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
- 8001e60: 2307 movs r3, #7
- 8001e62: 627b str r3, [r7, #36] ; 0x24
- HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
- 8001e64: f107 0314 add.w r3, r7, #20
- 8001e68: 4619 mov r1, r3
- 8001e6a: 4805 ldr r0, [pc, #20] ; (8001e80 <HAL_UART_MspInit+0x84>)
- 8001e6c: f001 fbe0 bl 8003630 <HAL_GPIO_Init>
- /* USER CODE BEGIN USART1_MspInit 1 */
- /* USER CODE END USART1_MspInit 1 */
- }
- }
- 8001e70: bf00 nop
- 8001e72: 3728 adds r7, #40 ; 0x28
- 8001e74: 46bd mov sp, r7
- 8001e76: bd80 pop {r7, pc}
- 8001e78: 40013800 .word 0x40013800
- 8001e7c: 40023800 .word 0x40023800
- 8001e80: 40020000 .word 0x40020000
- 08001e84 <NMI_Handler>:
- /******************************************************************************/
- /**
- * @brief This function handles Non maskable interrupt.
- */
- void NMI_Handler(void)
- {
- 8001e84: b480 push {r7}
- 8001e86: af00 add r7, sp, #0
- /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
- /* USER CODE END NonMaskableInt_IRQn 0 */
- /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
- while (1)
- 8001e88: e7fe b.n 8001e88 <NMI_Handler+0x4>
- 08001e8a <HardFault_Handler>:
- /**
- * @brief This function handles Hard fault interrupt.
- */
- void HardFault_Handler(void)
- {
- 8001e8a: b480 push {r7}
- 8001e8c: af00 add r7, sp, #0
- /* USER CODE BEGIN HardFault_IRQn 0 */
- /* USER CODE END HardFault_IRQn 0 */
- while (1)
- 8001e8e: e7fe b.n 8001e8e <HardFault_Handler+0x4>
- 08001e90 <MemManage_Handler>:
- /**
- * @brief This function handles Memory management fault.
- */
- void MemManage_Handler(void)
- {
- 8001e90: b480 push {r7}
- 8001e92: af00 add r7, sp, #0
- /* USER CODE BEGIN MemoryManagement_IRQn 0 */
- /* USER CODE END MemoryManagement_IRQn 0 */
- while (1)
- 8001e94: e7fe b.n 8001e94 <MemManage_Handler+0x4>
- 08001e96 <BusFault_Handler>:
- /**
- * @brief This function handles Pre-fetch fault, memory access fault.
- */
- void BusFault_Handler(void)
- {
- 8001e96: b480 push {r7}
- 8001e98: af00 add r7, sp, #0
- /* USER CODE BEGIN BusFault_IRQn 0 */
- /* USER CODE END BusFault_IRQn 0 */
- while (1)
- 8001e9a: e7fe b.n 8001e9a <BusFault_Handler+0x4>
- 08001e9c <UsageFault_Handler>:
- /**
- * @brief This function handles Undefined instruction or illegal state.
- */
- void UsageFault_Handler(void)
- {
- 8001e9c: b480 push {r7}
- 8001e9e: af00 add r7, sp, #0
- /* USER CODE BEGIN UsageFault_IRQn 0 */
- /* USER CODE END UsageFault_IRQn 0 */
- while (1)
- 8001ea0: e7fe b.n 8001ea0 <UsageFault_Handler+0x4>
- 08001ea2 <SVC_Handler>:
- /**
- * @brief This function handles System service call via SWI instruction.
- */
- void SVC_Handler(void)
- {
- 8001ea2: b480 push {r7}
- 8001ea4: af00 add r7, sp, #0
- /* USER CODE END SVC_IRQn 0 */
- /* USER CODE BEGIN SVC_IRQn 1 */
- /* USER CODE END SVC_IRQn 1 */
- }
- 8001ea6: bf00 nop
- 8001ea8: 46bd mov sp, r7
- 8001eaa: bc80 pop {r7}
- 8001eac: 4770 bx lr
- 08001eae <DebugMon_Handler>:
- /**
- * @brief This function handles Debug monitor.
- */
- void DebugMon_Handler(void)
- {
- 8001eae: b480 push {r7}
- 8001eb0: af00 add r7, sp, #0
- /* USER CODE END DebugMonitor_IRQn 0 */
- /* USER CODE BEGIN DebugMonitor_IRQn 1 */
- /* USER CODE END DebugMonitor_IRQn 1 */
- }
- 8001eb2: bf00 nop
- 8001eb4: 46bd mov sp, r7
- 8001eb6: bc80 pop {r7}
- 8001eb8: 4770 bx lr
- 08001eba <PendSV_Handler>:
- /**
- * @brief This function handles Pendable request for system service.
- */
- void PendSV_Handler(void)
- {
- 8001eba: b480 push {r7}
- 8001ebc: af00 add r7, sp, #0
- /* USER CODE END PendSV_IRQn 0 */
- /* USER CODE BEGIN PendSV_IRQn 1 */
- /* USER CODE END PendSV_IRQn 1 */
- }
- 8001ebe: bf00 nop
- 8001ec0: 46bd mov sp, r7
- 8001ec2: bc80 pop {r7}
- 8001ec4: 4770 bx lr
- 08001ec6 <SysTick_Handler>:
- /**
- * @brief This function handles System tick timer.
- */
- void SysTick_Handler(void)
- {
- 8001ec6: b580 push {r7, lr}
- 8001ec8: af00 add r7, sp, #0
- /* USER CODE BEGIN SysTick_IRQn 0 */
- /* USER CODE END SysTick_IRQn 0 */
- HAL_IncTick();
- 8001eca: f000 f975 bl 80021b8 <HAL_IncTick>
- /* USER CODE BEGIN SysTick_IRQn 1 */
- /* USER CODE END SysTick_IRQn 1 */
- }
- 8001ece: bf00 nop
- 8001ed0: bd80 pop {r7, pc}
- ...
- 08001ed4 <DMA1_Channel1_IRQHandler>:
- /**
- * @brief This function handles DMA1 channel1 global interrupt.
- */
- void DMA1_Channel1_IRQHandler(void)
- {
- 8001ed4: b580 push {r7, lr}
- 8001ed6: af00 add r7, sp, #0
- /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
- /* USER CODE END DMA1_Channel1_IRQn 0 */
- HAL_DMA_IRQHandler(&hdma_adc);
- 8001ed8: 4802 ldr r0, [pc, #8] ; (8001ee4 <DMA1_Channel1_IRQHandler+0x10>)
- 8001eda: f001 faca bl 8003472 <HAL_DMA_IRQHandler>
- /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
- /* USER CODE END DMA1_Channel1_IRQn 1 */
- }
- 8001ede: bf00 nop
- 8001ee0: bd80 pop {r7, pc}
- 8001ee2: bf00 nop
- 8001ee4: 200005ec .word 0x200005ec
- 08001ee8 <COMP_IRQHandler>:
- /**
- * @brief This function handles COMP1 and COMP2 wake-up interrupts through EXTI lines 21 and 22.
- */
- void COMP_IRQHandler(void)
- {
- 8001ee8: b580 push {r7, lr}
- 8001eea: af00 add r7, sp, #0
- /* USER CODE BEGIN COMP_IRQn 0 */
- /* USER CODE END COMP_IRQn 0 */
- HAL_COMP_IRQHandler(&hcomp2);
- 8001eec: 4802 ldr r0, [pc, #8] ; (8001ef8 <COMP_IRQHandler+0x10>)
- 8001eee: f000 ffb5 bl 8002e5c <HAL_COMP_IRQHandler>
- /* USER CODE BEGIN COMP_IRQn 1 */
- /* USER CODE END COMP_IRQn 1 */
- }
- 8001ef2: bf00 nop
- 8001ef4: bd80 pop {r7, pc}
- 8001ef6: bf00 nop
- 8001ef8: 20000584 .word 0x20000584
- 08001efc <TIM4_IRQHandler>:
- /**
- * @brief This function handles TIM4 global interrupt.
- */
- void TIM4_IRQHandler(void)
- {
- 8001efc: b580 push {r7, lr}
- 8001efe: af00 add r7, sp, #0
- /* USER CODE BEGIN TIM4_IRQn 0 */
- /* USER CODE END TIM4_IRQn 0 */
- HAL_TIM_IRQHandler(&htim4);
- 8001f00: 4802 ldr r0, [pc, #8] ; (8001f0c <TIM4_IRQHandler+0x10>)
- 8001f02: f003 f98c bl 800521e <HAL_TIM_IRQHandler>
- /* USER CODE BEGIN TIM4_IRQn 1 */
- /* USER CODE END TIM4_IRQn 1 */
- }
- 8001f06: bf00 nop
- 8001f08: bd80 pop {r7, pc}
- 8001f0a: bf00 nop
- 8001f0c: 20000418 .word 0x20000418
- 08001f10 <EXTI15_10_IRQHandler>:
- /**
- * @brief This function handles EXTI line[15:10] interrupts.
- */
- void EXTI15_10_IRQHandler(void)
- {
- 8001f10: b580 push {r7, lr}
- 8001f12: af00 add r7, sp, #0
- /* USER CODE BEGIN EXTI15_10_IRQn 0 */
- /* USER CODE END EXTI15_10_IRQn 0 */
- HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_14);
- 8001f14: f44f 4080 mov.w r0, #16384 ; 0x4000
- 8001f18: f001 fd22 bl 8003960 <HAL_GPIO_EXTI_IRQHandler>
- HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_15);
- 8001f1c: f44f 4000 mov.w r0, #32768 ; 0x8000
- 8001f20: f001 fd1e bl 8003960 <HAL_GPIO_EXTI_IRQHandler>
- /* USER CODE BEGIN EXTI15_10_IRQn 1 */
- /* USER CODE END EXTI15_10_IRQn 1 */
- }
- 8001f24: bf00 nop
- 8001f26: bd80 pop {r7, pc}
- 08001f28 <TIM6_IRQHandler>:
- /**
- * @brief This function handles TIM6 global interrupt.
- */
- void TIM6_IRQHandler(void)
- {
- 8001f28: b580 push {r7, lr}
- 8001f2a: af00 add r7, sp, #0
- /* USER CODE BEGIN TIM6_IRQn 0 */
- /* USER CODE END TIM6_IRQn 0 */
- HAL_TIM_IRQHandler(&htim6);
- 8001f2c: 4802 ldr r0, [pc, #8] ; (8001f38 <TIM6_IRQHandler+0x10>)
- 8001f2e: f003 f976 bl 800521e <HAL_TIM_IRQHandler>
- /* USER CODE BEGIN TIM6_IRQn 1 */
- /* USER CODE END TIM6_IRQn 1 */
- }
- 8001f32: bf00 nop
- 8001f34: bd80 pop {r7, pc}
- 8001f36: bf00 nop
- 8001f38: 20000544 .word 0x20000544
- 08001f3c <_getpid>:
- void initialise_monitor_handles()
- {
- }
- int _getpid(void)
- {
- 8001f3c: b480 push {r7}
- 8001f3e: af00 add r7, sp, #0
- return 1;
- 8001f40: 2301 movs r3, #1
- }
- 8001f42: 4618 mov r0, r3
- 8001f44: 46bd mov sp, r7
- 8001f46: bc80 pop {r7}
- 8001f48: 4770 bx lr
- 08001f4a <_kill>:
- int _kill(int pid, int sig)
- {
- 8001f4a: b580 push {r7, lr}
- 8001f4c: b082 sub sp, #8
- 8001f4e: af00 add r7, sp, #0
- 8001f50: 6078 str r0, [r7, #4]
- 8001f52: 6039 str r1, [r7, #0]
- errno = EINVAL;
- 8001f54: f004 fb3e bl 80065d4 <__errno>
- 8001f58: 4603 mov r3, r0
- 8001f5a: 2216 movs r2, #22
- 8001f5c: 601a str r2, [r3, #0]
- return -1;
- 8001f5e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
- }
- 8001f62: 4618 mov r0, r3
- 8001f64: 3708 adds r7, #8
- 8001f66: 46bd mov sp, r7
- 8001f68: bd80 pop {r7, pc}
- 08001f6a <_exit>:
- void _exit (int status)
- {
- 8001f6a: b580 push {r7, lr}
- 8001f6c: b082 sub sp, #8
- 8001f6e: af00 add r7, sp, #0
- 8001f70: 6078 str r0, [r7, #4]
- _kill(status, -1);
- 8001f72: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
- 8001f76: 6878 ldr r0, [r7, #4]
- 8001f78: f7ff ffe7 bl 8001f4a <_kill>
- while (1) {} /* Make sure we hang here */
- 8001f7c: e7fe b.n 8001f7c <_exit+0x12>
- 08001f7e <_read>:
- }
- __attribute__((weak)) int _read(int file, char *ptr, int len)
- {
- 8001f7e: b580 push {r7, lr}
- 8001f80: b086 sub sp, #24
- 8001f82: af00 add r7, sp, #0
- 8001f84: 60f8 str r0, [r7, #12]
- 8001f86: 60b9 str r1, [r7, #8]
- 8001f88: 607a str r2, [r7, #4]
- int DataIdx;
- for (DataIdx = 0; DataIdx < len; DataIdx++)
- 8001f8a: 2300 movs r3, #0
- 8001f8c: 617b str r3, [r7, #20]
- 8001f8e: e00a b.n 8001fa6 <_read+0x28>
- {
- *ptr++ = __io_getchar();
- 8001f90: f3af 8000 nop.w
- 8001f94: 4601 mov r1, r0
- 8001f96: 68bb ldr r3, [r7, #8]
- 8001f98: 1c5a adds r2, r3, #1
- 8001f9a: 60ba str r2, [r7, #8]
- 8001f9c: b2ca uxtb r2, r1
- 8001f9e: 701a strb r2, [r3, #0]
- for (DataIdx = 0; DataIdx < len; DataIdx++)
- 8001fa0: 697b ldr r3, [r7, #20]
- 8001fa2: 3301 adds r3, #1
- 8001fa4: 617b str r3, [r7, #20]
- 8001fa6: 697a ldr r2, [r7, #20]
- 8001fa8: 687b ldr r3, [r7, #4]
- 8001faa: 429a cmp r2, r3
- 8001fac: dbf0 blt.n 8001f90 <_read+0x12>
- }
- return len;
- 8001fae: 687b ldr r3, [r7, #4]
- }
- 8001fb0: 4618 mov r0, r3
- 8001fb2: 3718 adds r7, #24
- 8001fb4: 46bd mov sp, r7
- 8001fb6: bd80 pop {r7, pc}
- 08001fb8 <_write>:
- __attribute__((weak)) int _write(int file, char *ptr, int len)
- {
- 8001fb8: b580 push {r7, lr}
- 8001fba: b086 sub sp, #24
- 8001fbc: af00 add r7, sp, #0
- 8001fbe: 60f8 str r0, [r7, #12]
- 8001fc0: 60b9 str r1, [r7, #8]
- 8001fc2: 607a str r2, [r7, #4]
- int DataIdx;
- for (DataIdx = 0; DataIdx < len; DataIdx++)
- 8001fc4: 2300 movs r3, #0
- 8001fc6: 617b str r3, [r7, #20]
- 8001fc8: e009 b.n 8001fde <_write+0x26>
- {
- __io_putchar(*ptr++);
- 8001fca: 68bb ldr r3, [r7, #8]
- 8001fcc: 1c5a adds r2, r3, #1
- 8001fce: 60ba str r2, [r7, #8]
- 8001fd0: 781b ldrb r3, [r3, #0]
- 8001fd2: 4618 mov r0, r3
- 8001fd4: f3af 8000 nop.w
- for (DataIdx = 0; DataIdx < len; DataIdx++)
- 8001fd8: 697b ldr r3, [r7, #20]
- 8001fda: 3301 adds r3, #1
- 8001fdc: 617b str r3, [r7, #20]
- 8001fde: 697a ldr r2, [r7, #20]
- 8001fe0: 687b ldr r3, [r7, #4]
- 8001fe2: 429a cmp r2, r3
- 8001fe4: dbf1 blt.n 8001fca <_write+0x12>
- }
- return len;
- 8001fe6: 687b ldr r3, [r7, #4]
- }
- 8001fe8: 4618 mov r0, r3
- 8001fea: 3718 adds r7, #24
- 8001fec: 46bd mov sp, r7
- 8001fee: bd80 pop {r7, pc}
- 08001ff0 <_close>:
- int _close(int file)
- {
- 8001ff0: b480 push {r7}
- 8001ff2: b083 sub sp, #12
- 8001ff4: af00 add r7, sp, #0
- 8001ff6: 6078 str r0, [r7, #4]
- return -1;
- 8001ff8: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
- }
- 8001ffc: 4618 mov r0, r3
- 8001ffe: 370c adds r7, #12
- 8002000: 46bd mov sp, r7
- 8002002: bc80 pop {r7}
- 8002004: 4770 bx lr
- 08002006 <_fstat>:
- int _fstat(int file, struct stat *st)
- {
- 8002006: b480 push {r7}
- 8002008: b083 sub sp, #12
- 800200a: af00 add r7, sp, #0
- 800200c: 6078 str r0, [r7, #4]
- 800200e: 6039 str r1, [r7, #0]
- st->st_mode = S_IFCHR;
- 8002010: 683b ldr r3, [r7, #0]
- 8002012: f44f 5200 mov.w r2, #8192 ; 0x2000
- 8002016: 605a str r2, [r3, #4]
- return 0;
- 8002018: 2300 movs r3, #0
- }
- 800201a: 4618 mov r0, r3
- 800201c: 370c adds r7, #12
- 800201e: 46bd mov sp, r7
- 8002020: bc80 pop {r7}
- 8002022: 4770 bx lr
- 08002024 <_isatty>:
- int _isatty(int file)
- {
- 8002024: b480 push {r7}
- 8002026: b083 sub sp, #12
- 8002028: af00 add r7, sp, #0
- 800202a: 6078 str r0, [r7, #4]
- return 1;
- 800202c: 2301 movs r3, #1
- }
- 800202e: 4618 mov r0, r3
- 8002030: 370c adds r7, #12
- 8002032: 46bd mov sp, r7
- 8002034: bc80 pop {r7}
- 8002036: 4770 bx lr
- 08002038 <_lseek>:
- int _lseek(int file, int ptr, int dir)
- {
- 8002038: b480 push {r7}
- 800203a: b085 sub sp, #20
- 800203c: af00 add r7, sp, #0
- 800203e: 60f8 str r0, [r7, #12]
- 8002040: 60b9 str r1, [r7, #8]
- 8002042: 607a str r2, [r7, #4]
- return 0;
- 8002044: 2300 movs r3, #0
- }
- 8002046: 4618 mov r0, r3
- 8002048: 3714 adds r7, #20
- 800204a: 46bd mov sp, r7
- 800204c: bc80 pop {r7}
- 800204e: 4770 bx lr
- 08002050 <_sbrk>:
- *
- * @param incr Memory size
- * @return Pointer to allocated memory
- */
- void *_sbrk(ptrdiff_t incr)
- {
- 8002050: b580 push {r7, lr}
- 8002052: b086 sub sp, #24
- 8002054: af00 add r7, sp, #0
- 8002056: 6078 str r0, [r7, #4]
- extern uint8_t _end; /* Symbol defined in the linker script */
- extern uint8_t _estack; /* Symbol defined in the linker script */
- extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
- const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
- 8002058: 4a14 ldr r2, [pc, #80] ; (80020ac <_sbrk+0x5c>)
- 800205a: 4b15 ldr r3, [pc, #84] ; (80020b0 <_sbrk+0x60>)
- 800205c: 1ad3 subs r3, r2, r3
- 800205e: 617b str r3, [r7, #20]
- const uint8_t *max_heap = (uint8_t *)stack_limit;
- 8002060: 697b ldr r3, [r7, #20]
- 8002062: 613b str r3, [r7, #16]
- uint8_t *prev_heap_end;
- /* Initialize heap end at first call */
- if (NULL == __sbrk_heap_end)
- 8002064: 4b13 ldr r3, [pc, #76] ; (80020b4 <_sbrk+0x64>)
- 8002066: 681b ldr r3, [r3, #0]
- 8002068: 2b00 cmp r3, #0
- 800206a: d102 bne.n 8002072 <_sbrk+0x22>
- {
- __sbrk_heap_end = &_end;
- 800206c: 4b11 ldr r3, [pc, #68] ; (80020b4 <_sbrk+0x64>)
- 800206e: 4a12 ldr r2, [pc, #72] ; (80020b8 <_sbrk+0x68>)
- 8002070: 601a str r2, [r3, #0]
- }
- /* Protect heap from growing into the reserved MSP stack */
- if (__sbrk_heap_end + incr > max_heap)
- 8002072: 4b10 ldr r3, [pc, #64] ; (80020b4 <_sbrk+0x64>)
- 8002074: 681a ldr r2, [r3, #0]
- 8002076: 687b ldr r3, [r7, #4]
- 8002078: 4413 add r3, r2
- 800207a: 693a ldr r2, [r7, #16]
- 800207c: 429a cmp r2, r3
- 800207e: d207 bcs.n 8002090 <_sbrk+0x40>
- {
- errno = ENOMEM;
- 8002080: f004 faa8 bl 80065d4 <__errno>
- 8002084: 4603 mov r3, r0
- 8002086: 220c movs r2, #12
- 8002088: 601a str r2, [r3, #0]
- return (void *)-1;
- 800208a: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
- 800208e: e009 b.n 80020a4 <_sbrk+0x54>
- }
- prev_heap_end = __sbrk_heap_end;
- 8002090: 4b08 ldr r3, [pc, #32] ; (80020b4 <_sbrk+0x64>)
- 8002092: 681b ldr r3, [r3, #0]
- 8002094: 60fb str r3, [r7, #12]
- __sbrk_heap_end += incr;
- 8002096: 4b07 ldr r3, [pc, #28] ; (80020b4 <_sbrk+0x64>)
- 8002098: 681a ldr r2, [r3, #0]
- 800209a: 687b ldr r3, [r7, #4]
- 800209c: 4413 add r3, r2
- 800209e: 4a05 ldr r2, [pc, #20] ; (80020b4 <_sbrk+0x64>)
- 80020a0: 6013 str r3, [r2, #0]
- return (void *)prev_heap_end;
- 80020a2: 68fb ldr r3, [r7, #12]
- }
- 80020a4: 4618 mov r0, r3
- 80020a6: 3718 adds r7, #24
- 80020a8: 46bd mov sp, r7
- 80020aa: bd80 pop {r7, pc}
- 80020ac: 20008000 .word 0x20008000
- 80020b0: 00000400 .word 0x00000400
- 80020b4: 20000204 .word 0x20000204
- 80020b8: 200006b0 .word 0x200006b0
- 080020bc <SystemInit>:
- * SystemCoreClock variable.
- * @param None
- * @retval None
- */
- void SystemInit (void)
- {
- 80020bc: b480 push {r7}
- 80020be: af00 add r7, sp, #0
-
- /* Configure the Vector Table location -------------------------------------*/
- #if defined(USER_VECT_TAB_ADDRESS)
- SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
- #endif /* USER_VECT_TAB_ADDRESS */
- }
- 80020c0: bf00 nop
- 80020c2: 46bd mov sp, r7
- 80020c4: bc80 pop {r7}
- 80020c6: 4770 bx lr
- 080020c8 <Reset_Handler>:
- .weak Reset_Handler
- .type Reset_Handler, %function
- Reset_Handler:
- /* Copy the data segment initializers from flash to SRAM */
- ldr r0, =_sdata
- 80020c8: 480c ldr r0, [pc, #48] ; (80020fc <LoopFillZerobss+0x12>)
- ldr r1, =_edata
- 80020ca: 490d ldr r1, [pc, #52] ; (8002100 <LoopFillZerobss+0x16>)
- ldr r2, =_sidata
- 80020cc: 4a0d ldr r2, [pc, #52] ; (8002104 <LoopFillZerobss+0x1a>)
- movs r3, #0
- 80020ce: 2300 movs r3, #0
- b LoopCopyDataInit
- 80020d0: e002 b.n 80020d8 <LoopCopyDataInit>
- 080020d2 <CopyDataInit>:
- CopyDataInit:
- ldr r4, [r2, r3]
- 80020d2: 58d4 ldr r4, [r2, r3]
- str r4, [r0, r3]
- 80020d4: 50c4 str r4, [r0, r3]
- adds r3, r3, #4
- 80020d6: 3304 adds r3, #4
- 080020d8 <LoopCopyDataInit>:
- LoopCopyDataInit:
- adds r4, r0, r3
- 80020d8: 18c4 adds r4, r0, r3
- cmp r4, r1
- 80020da: 428c cmp r4, r1
- bcc CopyDataInit
- 80020dc: d3f9 bcc.n 80020d2 <CopyDataInit>
-
- /* Zero fill the bss segment. */
- ldr r2, =_sbss
- 80020de: 4a0a ldr r2, [pc, #40] ; (8002108 <LoopFillZerobss+0x1e>)
- ldr r4, =_ebss
- 80020e0: 4c0a ldr r4, [pc, #40] ; (800210c <LoopFillZerobss+0x22>)
- movs r3, #0
- 80020e2: 2300 movs r3, #0
- b LoopFillZerobss
- 80020e4: e001 b.n 80020ea <LoopFillZerobss>
- 080020e6 <FillZerobss>:
- FillZerobss:
- str r3, [r2]
- 80020e6: 6013 str r3, [r2, #0]
- adds r2, r2, #4
- 80020e8: 3204 adds r2, #4
- 080020ea <LoopFillZerobss>:
- LoopFillZerobss:
- cmp r2, r4
- 80020ea: 42a2 cmp r2, r4
- bcc FillZerobss
- 80020ec: d3fb bcc.n 80020e6 <FillZerobss>
- /* Call the clock system intitialization function.*/
- bl SystemInit
- 80020ee: f7ff ffe5 bl 80020bc <SystemInit>
- /* Call static constructors */
- bl __libc_init_array
- 80020f2: f004 fa75 bl 80065e0 <__libc_init_array>
- /* Call the application's entry point.*/
- bl main
- 80020f6: f7fe ffdf bl 80010b8 <main>
- bx lr
- 80020fa: 4770 bx lr
- ldr r0, =_sdata
- 80020fc: 20000000 .word 0x20000000
- ldr r1, =_edata
- 8002100: 200001e4 .word 0x200001e4
- ldr r2, =_sidata
- 8002104: 0800a504 .word 0x0800a504
- ldr r2, =_sbss
- 8002108: 200001e4 .word 0x200001e4
- ldr r4, =_ebss
- 800210c: 200006b0 .word 0x200006b0
- 08002110 <ADC1_IRQHandler>:
- * @retval : None
- */
- .section .text.Default_Handler,"ax",%progbits
- Default_Handler:
- Infinite_Loop:
- b Infinite_Loop
- 8002110: e7fe b.n 8002110 <ADC1_IRQHandler>
- 08002112 <HAL_Init>:
- * In the default implementation,Systick is used as source of time base.
- * the tick variable is incremented each 1ms in its ISR.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_Init(void)
- {
- 8002112: b580 push {r7, lr}
- 8002114: b082 sub sp, #8
- 8002116: af00 add r7, sp, #0
- HAL_StatusTypeDef status = HAL_OK;
- 8002118: 2300 movs r3, #0
- 800211a: 71fb strb r3, [r7, #7]
- #if (PREFETCH_ENABLE != 0)
- __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
- #endif /* PREFETCH_ENABLE */
- /* Set Interrupt Group Priority */
- HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
- 800211c: 2003 movs r0, #3
- 800211e: f000 ff8d bl 800303c <HAL_NVIC_SetPriorityGrouping>
- /* Use systick as time base source and configure 1ms tick (default clock after Reset is MSI) */
- if (HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
- 8002122: 200f movs r0, #15
- 8002124: f000 f80e bl 8002144 <HAL_InitTick>
- 8002128: 4603 mov r3, r0
- 800212a: 2b00 cmp r3, #0
- 800212c: d002 beq.n 8002134 <HAL_Init+0x22>
- {
- status = HAL_ERROR;
- 800212e: 2301 movs r3, #1
- 8002130: 71fb strb r3, [r7, #7]
- 8002132: e001 b.n 8002138 <HAL_Init+0x26>
- }
- else
- {
- /* Init the low level hardware */
- HAL_MspInit();
- 8002134: f7ff fc68 bl 8001a08 <HAL_MspInit>
- }
- /* Return function status */
- return status;
- 8002138: 79fb ldrb r3, [r7, #7]
- }
- 800213a: 4618 mov r0, r3
- 800213c: 3708 adds r7, #8
- 800213e: 46bd mov sp, r7
- 8002140: bd80 pop {r7, pc}
- ...
- 08002144 <HAL_InitTick>:
- * implementation in user file.
- * @param TickPriority Tick interrupt priority.
- * @retval HAL status
- */
- __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
- {
- 8002144: b580 push {r7, lr}
- 8002146: b084 sub sp, #16
- 8002148: af00 add r7, sp, #0
- 800214a: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef status = HAL_OK;
- 800214c: 2300 movs r3, #0
- 800214e: 73fb strb r3, [r7, #15]
- if (uwTickFreq != 0U)
- 8002150: 4b16 ldr r3, [pc, #88] ; (80021ac <HAL_InitTick+0x68>)
- 8002152: 681b ldr r3, [r3, #0]
- 8002154: 2b00 cmp r3, #0
- 8002156: d022 beq.n 800219e <HAL_InitTick+0x5a>
- {
- /*Configure the SysTick to have interrupt in 1ms time basis*/
- if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) == 0U)
- 8002158: 4b15 ldr r3, [pc, #84] ; (80021b0 <HAL_InitTick+0x6c>)
- 800215a: 681a ldr r2, [r3, #0]
- 800215c: 4b13 ldr r3, [pc, #76] ; (80021ac <HAL_InitTick+0x68>)
- 800215e: 681b ldr r3, [r3, #0]
- 8002160: f44f 717a mov.w r1, #1000 ; 0x3e8
- 8002164: fbb1 f3f3 udiv r3, r1, r3
- 8002168: fbb2 f3f3 udiv r3, r2, r3
- 800216c: 4618 mov r0, r3
- 800216e: f000 ff9a bl 80030a6 <HAL_SYSTICK_Config>
- 8002172: 4603 mov r3, r0
- 8002174: 2b00 cmp r3, #0
- 8002176: d10f bne.n 8002198 <HAL_InitTick+0x54>
- {
- /* Configure the SysTick IRQ priority */
- if (TickPriority < (1UL << __NVIC_PRIO_BITS))
- 8002178: 687b ldr r3, [r7, #4]
- 800217a: 2b0f cmp r3, #15
- 800217c: d809 bhi.n 8002192 <HAL_InitTick+0x4e>
- {
- HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
- 800217e: 2200 movs r2, #0
- 8002180: 6879 ldr r1, [r7, #4]
- 8002182: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8002186: f000 ff64 bl 8003052 <HAL_NVIC_SetPriority>
- uwTickPrio = TickPriority;
- 800218a: 4a0a ldr r2, [pc, #40] ; (80021b4 <HAL_InitTick+0x70>)
- 800218c: 687b ldr r3, [r7, #4]
- 800218e: 6013 str r3, [r2, #0]
- 8002190: e007 b.n 80021a2 <HAL_InitTick+0x5e>
- }
- else
- {
- status = HAL_ERROR;
- 8002192: 2301 movs r3, #1
- 8002194: 73fb strb r3, [r7, #15]
- 8002196: e004 b.n 80021a2 <HAL_InitTick+0x5e>
- }
- }
- else
- {
- status = HAL_ERROR;
- 8002198: 2301 movs r3, #1
- 800219a: 73fb strb r3, [r7, #15]
- 800219c: e001 b.n 80021a2 <HAL_InitTick+0x5e>
- }
- }
- else
- {
- status = HAL_ERROR;
- 800219e: 2301 movs r3, #1
- 80021a0: 73fb strb r3, [r7, #15]
- }
- /* Return function status */
- return status;
- 80021a2: 7bfb ldrb r3, [r7, #15]
- }
- 80021a4: 4618 mov r0, r3
- 80021a6: 3710 adds r7, #16
- 80021a8: 46bd mov sp, r7
- 80021aa: bd80 pop {r7, pc}
- 80021ac: 20000008 .word 0x20000008
- 80021b0: 20000000 .word 0x20000000
- 80021b4: 20000004 .word 0x20000004
- 080021b8 <HAL_IncTick>:
- * @note This function is declared as __weak to be overwritten in case of other
- * implementations in user file.
- * @retval None
- */
- __weak void HAL_IncTick(void)
- {
- 80021b8: b480 push {r7}
- 80021ba: af00 add r7, sp, #0
- uwTick += uwTickFreq;
- 80021bc: 4b05 ldr r3, [pc, #20] ; (80021d4 <HAL_IncTick+0x1c>)
- 80021be: 681a ldr r2, [r3, #0]
- 80021c0: 4b05 ldr r3, [pc, #20] ; (80021d8 <HAL_IncTick+0x20>)
- 80021c2: 681b ldr r3, [r3, #0]
- 80021c4: 4413 add r3, r2
- 80021c6: 4a03 ldr r2, [pc, #12] ; (80021d4 <HAL_IncTick+0x1c>)
- 80021c8: 6013 str r3, [r2, #0]
- }
- 80021ca: bf00 nop
- 80021cc: 46bd mov sp, r7
- 80021ce: bc80 pop {r7}
- 80021d0: 4770 bx lr
- 80021d2: bf00 nop
- 80021d4: 2000069c .word 0x2000069c
- 80021d8: 20000008 .word 0x20000008
- 080021dc <HAL_GetTick>:
- * @note This function is declared as __weak to be overwritten in case of other
- * implementations in user file.
- * @retval tick value
- */
- __weak uint32_t HAL_GetTick(void)
- {
- 80021dc: b480 push {r7}
- 80021de: af00 add r7, sp, #0
- return uwTick;
- 80021e0: 4b02 ldr r3, [pc, #8] ; (80021ec <HAL_GetTick+0x10>)
- 80021e2: 681b ldr r3, [r3, #0]
- }
- 80021e4: 4618 mov r0, r3
- 80021e6: 46bd mov sp, r7
- 80021e8: bc80 pop {r7}
- 80021ea: 4770 bx lr
- 80021ec: 2000069c .word 0x2000069c
- 080021f0 <HAL_Delay>:
- * implementations in user file.
- * @param Delay specifies the delay time length, in milliseconds.
- * @retval None
- */
- __weak void HAL_Delay(uint32_t Delay)
- {
- 80021f0: b580 push {r7, lr}
- 80021f2: b084 sub sp, #16
- 80021f4: af00 add r7, sp, #0
- 80021f6: 6078 str r0, [r7, #4]
- uint32_t tickstart = HAL_GetTick();
- 80021f8: f7ff fff0 bl 80021dc <HAL_GetTick>
- 80021fc: 60b8 str r0, [r7, #8]
- uint32_t wait = Delay;
- 80021fe: 687b ldr r3, [r7, #4]
- 8002200: 60fb str r3, [r7, #12]
- /* Add a period to guaranty minimum wait */
- if (wait < HAL_MAX_DELAY)
- 8002202: 68fb ldr r3, [r7, #12]
- 8002204: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
- 8002208: d004 beq.n 8002214 <HAL_Delay+0x24>
- {
- wait += (uint32_t)(uwTickFreq);
- 800220a: 4b09 ldr r3, [pc, #36] ; (8002230 <HAL_Delay+0x40>)
- 800220c: 681b ldr r3, [r3, #0]
- 800220e: 68fa ldr r2, [r7, #12]
- 8002210: 4413 add r3, r2
- 8002212: 60fb str r3, [r7, #12]
- }
- while((HAL_GetTick() - tickstart) < wait)
- 8002214: bf00 nop
- 8002216: f7ff ffe1 bl 80021dc <HAL_GetTick>
- 800221a: 4602 mov r2, r0
- 800221c: 68bb ldr r3, [r7, #8]
- 800221e: 1ad3 subs r3, r2, r3
- 8002220: 68fa ldr r2, [r7, #12]
- 8002222: 429a cmp r2, r3
- 8002224: d8f7 bhi.n 8002216 <HAL_Delay+0x26>
- {
- }
- }
- 8002226: bf00 nop
- 8002228: bf00 nop
- 800222a: 3710 adds r7, #16
- 800222c: 46bd mov sp, r7
- 800222e: bd80 pop {r7, pc}
- 8002230: 20000008 .word 0x20000008
- 08002234 <HAL_ADC_Init>:
- * of structure "ADC_InitTypeDef".
- * @param hadc ADC handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
- {
- 8002234: b580 push {r7, lr}
- 8002236: b08e sub sp, #56 ; 0x38
- 8002238: af00 add r7, sp, #0
- 800223a: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef tmp_hal_status = HAL_OK;
- 800223c: 2300 movs r3, #0
- 800223e: f887 3037 strb.w r3, [r7, #55] ; 0x37
- uint32_t tmp_cr1 = 0;
- 8002242: 2300 movs r3, #0
- 8002244: 633b str r3, [r7, #48] ; 0x30
- uint32_t tmp_cr2 = 0;
- 8002246: 2300 movs r3, #0
- 8002248: 62fb str r3, [r7, #44] ; 0x2c
-
- /* Check ADC handle */
- if(hadc == NULL)
- 800224a: 687b ldr r3, [r7, #4]
- 800224c: 2b00 cmp r3, #0
- 800224e: d101 bne.n 8002254 <HAL_ADC_Init+0x20>
- {
- return HAL_ERROR;
- 8002250: 2301 movs r3, #1
- 8002252: e127 b.n 80024a4 <HAL_ADC_Init+0x270>
- assert_param(IS_ADC_CHANNELSBANK(hadc->Init.ChannelsBank));
- assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
- assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
- assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests));
-
- if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
- 8002254: 687b ldr r3, [r7, #4]
- 8002256: 691b ldr r3, [r3, #16]
- 8002258: 2b00 cmp r3, #0
- /* Refer to header of this file for more details on clock enabling */
- /* procedure. */
- /* Actions performed only if ADC is coming from state reset: */
- /* - Initialization of ADC MSP */
- if (hadc->State == HAL_ADC_STATE_RESET)
- 800225a: 687b ldr r3, [r7, #4]
- 800225c: 6cdb ldr r3, [r3, #76] ; 0x4c
- 800225e: 2b00 cmp r3, #0
- 8002260: d115 bne.n 800228e <HAL_ADC_Init+0x5a>
- {
- /* Initialize ADC error code */
- ADC_CLEAR_ERRORCODE(hadc);
- 8002262: 687b ldr r3, [r7, #4]
- 8002264: 2200 movs r2, #0
- 8002266: 651a str r2, [r3, #80] ; 0x50
-
- /* Allocate lock resource and initialize it */
- hadc->Lock = HAL_UNLOCKED;
- 8002268: 687b ldr r3, [r7, #4]
- 800226a: 2200 movs r2, #0
- 800226c: f883 2048 strb.w r2, [r3, #72] ; 0x48
-
- /* Enable SYSCFG clock to control the routing Interface (RI) */
- __HAL_RCC_SYSCFG_CLK_ENABLE();
- 8002270: 4b8e ldr r3, [pc, #568] ; (80024ac <HAL_ADC_Init+0x278>)
- 8002272: 6a1b ldr r3, [r3, #32]
- 8002274: 4a8d ldr r2, [pc, #564] ; (80024ac <HAL_ADC_Init+0x278>)
- 8002276: f043 0301 orr.w r3, r3, #1
- 800227a: 6213 str r3, [r2, #32]
- 800227c: 4b8b ldr r3, [pc, #556] ; (80024ac <HAL_ADC_Init+0x278>)
- 800227e: 6a1b ldr r3, [r3, #32]
- 8002280: f003 0301 and.w r3, r3, #1
- 8002284: 60bb str r3, [r7, #8]
- 8002286: 68bb ldr r3, [r7, #8]
-
- /* Init the low level hardware */
- hadc->MspInitCallback(hadc);
- #else
- /* Init the low level hardware */
- HAL_ADC_MspInit(hadc);
- 8002288: 6878 ldr r0, [r7, #4]
- 800228a: f7ff fbeb bl 8001a64 <HAL_ADC_MspInit>
- #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
- }
-
- /* Configuration of ADC parameters if previous preliminary actions are */
- /* correctly completed. */
- if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
- 800228e: 687b ldr r3, [r7, #4]
- 8002290: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002292: f003 0310 and.w r3, r3, #16
- 8002296: 2b00 cmp r3, #0
- 8002298: f040 80ff bne.w 800249a <HAL_ADC_Init+0x266>
- {
- /* Set ADC state */
- ADC_STATE_CLR_SET(hadc->State,
- 800229c: 687b ldr r3, [r7, #4]
- 800229e: 6cdb ldr r3, [r3, #76] ; 0x4c
- 80022a0: f423 5388 bic.w r3, r3, #4352 ; 0x1100
- 80022a4: f023 0302 bic.w r3, r3, #2
- 80022a8: f043 0202 orr.w r2, r3, #2
- 80022ac: 687b ldr r3, [r7, #4]
- 80022ae: 64da str r2, [r3, #76] ; 0x4c
-
- /* Set ADC parameters */
-
- /* Configuration of common ADC clock: clock source HSI with selectable */
- /* prescaler */
- MODIFY_REG(ADC->CCR ,
- 80022b0: 4b7f ldr r3, [pc, #508] ; (80024b0 <HAL_ADC_Init+0x27c>)
- 80022b2: 685b ldr r3, [r3, #4]
- 80022b4: f423 3240 bic.w r2, r3, #196608 ; 0x30000
- 80022b8: 687b ldr r3, [r7, #4]
- 80022ba: 685b ldr r3, [r3, #4]
- 80022bc: 497c ldr r1, [pc, #496] ; (80024b0 <HAL_ADC_Init+0x27c>)
- 80022be: 4313 orrs r3, r2
- 80022c0: 604b str r3, [r1, #4]
- /* - external trigger polarity */
- /* - End of conversion selection */
- /* - DMA continuous request */
- /* - Channels bank (Banks availability depends on devices categories) */
- /* - continuous conversion mode */
- tmp_cr2 |= (hadc->Init.DataAlign |
- 80022c2: 687b ldr r3, [r7, #4]
- 80022c4: 68da ldr r2, [r3, #12]
- hadc->Init.EOCSelection |
- 80022c6: 687b ldr r3, [r7, #4]
- 80022c8: 695b ldr r3, [r3, #20]
- tmp_cr2 |= (hadc->Init.DataAlign |
- 80022ca: 431a orrs r2, r3
- ADC_CR2_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests) |
- 80022cc: 687b ldr r3, [r7, #4]
- 80022ce: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
- 80022d2: 4619 mov r1, r3
- 80022d4: f44f 7300 mov.w r3, #512 ; 0x200
- 80022d8: 623b str r3, [r7, #32]
- uint32_t result;
- #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
- (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
- (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
- __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
- 80022da: 6a3b ldr r3, [r7, #32]
- 80022dc: fa93 f3a3 rbit r3, r3
- 80022e0: 61fb str r3, [r7, #28]
- result |= value & 1U;
- s--;
- }
- result <<= s; /* shift when v's highest bits are zero */
- #endif
- return result;
- 80022e2: 69fb ldr r3, [r7, #28]
- 80022e4: fab3 f383 clz r3, r3
- 80022e8: b2db uxtb r3, r3
- 80022ea: fa01 f303 lsl.w r3, r1, r3
- hadc->Init.EOCSelection |
- 80022ee: 431a orrs r2, r3
- hadc->Init.ChannelsBank |
- 80022f0: 687b ldr r3, [r7, #4]
- 80022f2: 6a1b ldr r3, [r3, #32]
- ADC_CR2_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests) |
- 80022f4: 431a orrs r2, r3
- ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
- 80022f6: 687b ldr r3, [r7, #4]
- 80022f8: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
- 80022fc: 4619 mov r1, r3
- 80022fe: 2302 movs r3, #2
- 8002300: 62bb str r3, [r7, #40] ; 0x28
- __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
- 8002302: 6abb ldr r3, [r7, #40] ; 0x28
- 8002304: fa93 f3a3 rbit r3, r3
- 8002308: 627b str r3, [r7, #36] ; 0x24
- return result;
- 800230a: 6a7b ldr r3, [r7, #36] ; 0x24
- 800230c: fab3 f383 clz r3, r3
- 8002310: b2db uxtb r3, r3
- 8002312: fa01 f303 lsl.w r3, r1, r3
- hadc->Init.ChannelsBank |
- 8002316: 4313 orrs r3, r2
- tmp_cr2 |= (hadc->Init.DataAlign |
- 8002318: 6afa ldr r2, [r7, #44] ; 0x2c
- 800231a: 4313 orrs r3, r2
- 800231c: 62fb str r3, [r7, #44] ; 0x2c
- /* Enable external trigger if trigger selection is different of software */
- /* start. */
- /* Note: This configuration keeps the hardware feature of parameter */
- /* ExternalTrigConvEdge "trigger edge none" equivalent to */
- /* software start. */
- if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
- 800231e: 687b ldr r3, [r7, #4]
- 8002320: 6b5b ldr r3, [r3, #52] ; 0x34
- 8002322: 2b10 cmp r3, #16
- 8002324: d007 beq.n 8002336 <HAL_ADC_Init+0x102>
- {
- tmp_cr2 |= ( hadc->Init.ExternalTrigConv |
- 8002326: 687b ldr r3, [r7, #4]
- 8002328: 6b5a ldr r2, [r3, #52] ; 0x34
- hadc->Init.ExternalTrigConvEdge );
- 800232a: 687b ldr r3, [r7, #4]
- 800232c: 6b9b ldr r3, [r3, #56] ; 0x38
- tmp_cr2 |= ( hadc->Init.ExternalTrigConv |
- 800232e: 4313 orrs r3, r2
- 8002330: 6afa ldr r2, [r7, #44] ; 0x2c
- 8002332: 4313 orrs r3, r2
- 8002334: 62fb str r3, [r7, #44] ; 0x2c
- /* - resolution */
- /* - auto power off (LowPowerAutoPowerOff mode) */
- /* - scan mode */
- /* - discontinuous mode disable/enable */
- /* - discontinuous mode number of conversions */
- if ((ADC_IS_ENABLE(hadc) == RESET))
- 8002336: 687b ldr r3, [r7, #4]
- 8002338: 681b ldr r3, [r3, #0]
- 800233a: 681b ldr r3, [r3, #0]
- 800233c: f003 0340 and.w r3, r3, #64 ; 0x40
- 8002340: 2b40 cmp r3, #64 ; 0x40
- 8002342: d04f beq.n 80023e4 <HAL_ADC_Init+0x1b0>
- {
- tmp_cr2 |= hadc->Init.LowPowerAutoWait;
- 8002344: 687b ldr r3, [r7, #4]
- 8002346: 699b ldr r3, [r3, #24]
- 8002348: 6afa ldr r2, [r7, #44] ; 0x2c
- 800234a: 4313 orrs r3, r2
- 800234c: 62fb str r3, [r7, #44] ; 0x2c
-
- tmp_cr1 |= (hadc->Init.Resolution |
- 800234e: 687b ldr r3, [r7, #4]
- 8002350: 689a ldr r2, [r3, #8]
- hadc->Init.LowPowerAutoPowerOff |
- 8002352: 687b ldr r3, [r7, #4]
- 8002354: 69db ldr r3, [r3, #28]
- tmp_cr1 |= (hadc->Init.Resolution |
- 8002356: 4313 orrs r3, r2
- ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) );
- 8002358: 687a ldr r2, [r7, #4]
- 800235a: 6912 ldr r2, [r2, #16]
- 800235c: f5b2 7f80 cmp.w r2, #256 ; 0x100
- 8002360: d003 beq.n 800236a <HAL_ADC_Init+0x136>
- 8002362: 687a ldr r2, [r7, #4]
- 8002364: 6912 ldr r2, [r2, #16]
- 8002366: 2a01 cmp r2, #1
- 8002368: d102 bne.n 8002370 <HAL_ADC_Init+0x13c>
- 800236a: f44f 7280 mov.w r2, #256 ; 0x100
- 800236e: e000 b.n 8002372 <HAL_ADC_Init+0x13e>
- 8002370: 2200 movs r2, #0
- hadc->Init.LowPowerAutoPowerOff |
- 8002372: 4313 orrs r3, r2
- tmp_cr1 |= (hadc->Init.Resolution |
- 8002374: 6b3a ldr r2, [r7, #48] ; 0x30
- 8002376: 4313 orrs r3, r2
- 8002378: 633b str r3, [r7, #48] ; 0x30
-
- /* Enable discontinuous mode only if continuous mode is disabled */
- /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
- /* discontinuous is set anyway, but has no effect on ADC HW. */
- if (hadc->Init.DiscontinuousConvMode == ENABLE)
- 800237a: 687b ldr r3, [r7, #4]
- 800237c: f893 302c ldrb.w r3, [r3, #44] ; 0x2c
- 8002380: 2b01 cmp r3, #1
- 8002382: d125 bne.n 80023d0 <HAL_ADC_Init+0x19c>
- {
- if (hadc->Init.ContinuousConvMode == DISABLE)
- 8002384: 687b ldr r3, [r7, #4]
- 8002386: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
- 800238a: 2b00 cmp r3, #0
- 800238c: d114 bne.n 80023b8 <HAL_ADC_Init+0x184>
- {
- /* Enable the selected ADC regular discontinuous mode */
- /* Set the number of channels to be converted in discontinuous mode */
- SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
- 800238e: 687b ldr r3, [r7, #4]
- 8002390: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002392: 3b01 subs r3, #1
- 8002394: f44f 4260 mov.w r2, #57344 ; 0xe000
- 8002398: 61ba str r2, [r7, #24]
- __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
- 800239a: 69ba ldr r2, [r7, #24]
- 800239c: fa92 f2a2 rbit r2, r2
- 80023a0: 617a str r2, [r7, #20]
- return result;
- 80023a2: 697a ldr r2, [r7, #20]
- 80023a4: fab2 f282 clz r2, r2
- 80023a8: b2d2 uxtb r2, r2
- 80023aa: 4093 lsls r3, r2
- 80023ac: f443 6300 orr.w r3, r3, #2048 ; 0x800
- 80023b0: 6b3a ldr r2, [r7, #48] ; 0x30
- 80023b2: 4313 orrs r3, r2
- 80023b4: 633b str r3, [r7, #48] ; 0x30
- 80023b6: e00b b.n 80023d0 <HAL_ADC_Init+0x19c>
- {
- /* ADC regular group settings continuous and sequencer discontinuous*/
- /* cannot be enabled simultaneously. */
-
- /* Update ADC state machine to error */
- SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
- 80023b8: 687b ldr r3, [r7, #4]
- 80023ba: 6cdb ldr r3, [r3, #76] ; 0x4c
- 80023bc: f043 0220 orr.w r2, r3, #32
- 80023c0: 687b ldr r3, [r7, #4]
- 80023c2: 64da str r2, [r3, #76] ; 0x4c
-
- /* Set ADC error code to ADC IP internal error */
- SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
- 80023c4: 687b ldr r3, [r7, #4]
- 80023c6: 6d1b ldr r3, [r3, #80] ; 0x50
- 80023c8: f043 0201 orr.w r2, r3, #1
- 80023cc: 687b ldr r3, [r7, #4]
- 80023ce: 651a str r2, [r3, #80] ; 0x50
- }
- }
-
- /* Update ADC configuration register CR1 with previous settings */
- MODIFY_REG(hadc->Instance->CR1,
- 80023d0: 687b ldr r3, [r7, #4]
- 80023d2: 681b ldr r3, [r3, #0]
- 80023d4: 685a ldr r2, [r3, #4]
- 80023d6: 4b37 ldr r3, [pc, #220] ; (80024b4 <HAL_ADC_Init+0x280>)
- 80023d8: 4013 ands r3, r2
- 80023da: 687a ldr r2, [r7, #4]
- 80023dc: 6812 ldr r2, [r2, #0]
- 80023de: 6b39 ldr r1, [r7, #48] ; 0x30
- 80023e0: 430b orrs r3, r1
- 80023e2: 6053 str r3, [r2, #4]
- ADC_CR1_SCAN ,
- tmp_cr1 );
- }
-
- /* Update ADC configuration register CR2 with previous settings */
- MODIFY_REG(hadc->Instance->CR2 ,
- 80023e4: 687b ldr r3, [r7, #4]
- 80023e6: 681b ldr r3, [r3, #0]
- 80023e8: 689a ldr r2, [r3, #8]
- 80023ea: 4b33 ldr r3, [pc, #204] ; (80024b8 <HAL_ADC_Init+0x284>)
- 80023ec: 4013 ands r3, r2
- 80023ee: 687a ldr r2, [r7, #4]
- 80023f0: 6812 ldr r2, [r2, #0]
- 80023f2: 6af9 ldr r1, [r7, #44] ; 0x2c
- 80023f4: 430b orrs r3, r1
- 80023f6: 6093 str r3, [r2, #8]
- /* Note: Scan mode is present by hardware on this device and, if */
- /* disabled, discards automatically nb of conversions. Anyway, nb of */
- /* conversions is forced to 0x00 for alignment over all STM32 devices. */
- /* - if scan mode is enabled, regular channels sequence length is set to */
- /* parameter "NbrOfConversion" */
- if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
- 80023f8: 687b ldr r3, [r7, #4]
- 80023fa: 691b ldr r3, [r3, #16]
- 80023fc: f5b3 7f80 cmp.w r3, #256 ; 0x100
- 8002400: d003 beq.n 800240a <HAL_ADC_Init+0x1d6>
- 8002402: 687b ldr r3, [r7, #4]
- 8002404: 691b ldr r3, [r3, #16]
- 8002406: 2b01 cmp r3, #1
- 8002408: d119 bne.n 800243e <HAL_ADC_Init+0x20a>
- {
- MODIFY_REG(hadc->Instance->SQR1 ,
- 800240a: 687b ldr r3, [r7, #4]
- 800240c: 681b ldr r3, [r3, #0]
- 800240e: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002410: f023 71f8 bic.w r1, r3, #32505856 ; 0x1f00000
- 8002414: 687b ldr r3, [r7, #4]
- 8002416: 6a9b ldr r3, [r3, #40] ; 0x28
- 8002418: 3b01 subs r3, #1
- 800241a: f04f 72f8 mov.w r2, #32505856 ; 0x1f00000
- 800241e: 613a str r2, [r7, #16]
- __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
- 8002420: 693a ldr r2, [r7, #16]
- 8002422: fa92 f2a2 rbit r2, r2
- 8002426: 60fa str r2, [r7, #12]
- return result;
- 8002428: 68fa ldr r2, [r7, #12]
- 800242a: fab2 f282 clz r2, r2
- 800242e: b2d2 uxtb r2, r2
- 8002430: fa03 f202 lsl.w r2, r3, r2
- 8002434: 687b ldr r3, [r7, #4]
- 8002436: 681b ldr r3, [r3, #0]
- 8002438: 430a orrs r2, r1
- 800243a: 631a str r2, [r3, #48] ; 0x30
- 800243c: e007 b.n 800244e <HAL_ADC_Init+0x21a>
- ADC_SQR1_L ,
- ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion) );
- }
- else
- {
- MODIFY_REG(hadc->Instance->SQR1,
- 800243e: 687b ldr r3, [r7, #4]
- 8002440: 681b ldr r3, [r3, #0]
- 8002442: 6b1a ldr r2, [r3, #48] ; 0x30
- 8002444: 687b ldr r3, [r7, #4]
- 8002446: 681b ldr r3, [r3, #0]
- 8002448: f022 72f8 bic.w r2, r2, #32505856 ; 0x1f00000
- 800244c: 631a str r2, [r3, #48] ; 0x30
-
- /* Check back that ADC registers have effectively been configured to */
- /* ensure of no potential problem of ADC core IP clocking. */
- /* Check through register CR2 (excluding execution control bits ADON, */
- /* JSWSTART, SWSTART and injected trigger bits JEXTEN and JEXTSEL). */
- if ((READ_REG(hadc->Instance->CR2) & ~(ADC_CR2_ADON |
- 800244e: 687b ldr r3, [r7, #4]
- 8002450: 681b ldr r3, [r3, #0]
- 8002452: 689a ldr r2, [r3, #8]
- 8002454: 4b19 ldr r3, [pc, #100] ; (80024bc <HAL_ADC_Init+0x288>)
- 8002456: 4013 ands r3, r2
- 8002458: 6afa ldr r2, [r7, #44] ; 0x2c
- 800245a: 429a cmp r2, r3
- 800245c: d10b bne.n 8002476 <HAL_ADC_Init+0x242>
- ADC_CR2_SWSTART | ADC_CR2_JSWSTART |
- ADC_CR2_JEXTEN | ADC_CR2_JEXTSEL ))
- == tmp_cr2)
- {
- /* Set ADC error code to none */
- ADC_CLEAR_ERRORCODE(hadc);
- 800245e: 687b ldr r3, [r7, #4]
- 8002460: 2200 movs r2, #0
- 8002462: 651a str r2, [r3, #80] ; 0x50
-
- /* Set the ADC state */
- ADC_STATE_CLR_SET(hadc->State,
- 8002464: 687b ldr r3, [r7, #4]
- 8002466: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002468: f023 0303 bic.w r3, r3, #3
- 800246c: f043 0201 orr.w r2, r3, #1
- 8002470: 687b ldr r3, [r7, #4]
- 8002472: 64da str r2, [r3, #76] ; 0x4c
- 8002474: e014 b.n 80024a0 <HAL_ADC_Init+0x26c>
- HAL_ADC_STATE_READY);
- }
- else
- {
- /* Update ADC state machine to error */
- ADC_STATE_CLR_SET(hadc->State,
- 8002476: 687b ldr r3, [r7, #4]
- 8002478: 6cdb ldr r3, [r3, #76] ; 0x4c
- 800247a: f023 0312 bic.w r3, r3, #18
- 800247e: f043 0210 orr.w r2, r3, #16
- 8002482: 687b ldr r3, [r7, #4]
- 8002484: 64da str r2, [r3, #76] ; 0x4c
- HAL_ADC_STATE_BUSY_INTERNAL,
- HAL_ADC_STATE_ERROR_INTERNAL);
-
- /* Set ADC error code to ADC IP internal error */
- SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
- 8002486: 687b ldr r3, [r7, #4]
- 8002488: 6d1b ldr r3, [r3, #80] ; 0x50
- 800248a: f043 0201 orr.w r2, r3, #1
- 800248e: 687b ldr r3, [r7, #4]
- 8002490: 651a str r2, [r3, #80] ; 0x50
-
- tmp_hal_status = HAL_ERROR;
- 8002492: 2301 movs r3, #1
- 8002494: f887 3037 strb.w r3, [r7, #55] ; 0x37
- 8002498: e002 b.n 80024a0 <HAL_ADC_Init+0x26c>
- }
-
- }
- else
- {
- tmp_hal_status = HAL_ERROR;
- 800249a: 2301 movs r3, #1
- 800249c: f887 3037 strb.w r3, [r7, #55] ; 0x37
- }
-
- /* Return function status */
- return tmp_hal_status;
- 80024a0: f897 3037 ldrb.w r3, [r7, #55] ; 0x37
- }
- 80024a4: 4618 mov r0, r3
- 80024a6: 3738 adds r7, #56 ; 0x38
- 80024a8: 46bd mov sp, r7
- 80024aa: bd80 pop {r7, pc}
- 80024ac: 40023800 .word 0x40023800
- 80024b0: 40012700 .word 0x40012700
- 80024b4: fcfc16ff .word 0xfcfc16ff
- 80024b8: c0fff18d .word 0xc0fff18d
- 80024bc: bf80fffe .word 0xbf80fffe
- 080024c0 <HAL_ADC_Start_DMA>:
- * @param pData The destination Buffer address.
- * @param Length The length of data to be transferred from ADC peripheral to memory.
- * @retval None
- */
- HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
- {
- 80024c0: b580 push {r7, lr}
- 80024c2: b086 sub sp, #24
- 80024c4: af00 add r7, sp, #0
- 80024c6: 60f8 str r0, [r7, #12]
- 80024c8: 60b9 str r1, [r7, #8]
- 80024ca: 607a str r2, [r7, #4]
- HAL_StatusTypeDef tmp_hal_status = HAL_OK;
- 80024cc: 2300 movs r3, #0
- 80024ce: 75fb strb r3, [r7, #23]
-
- /* Check the parameters */
- assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
-
- /* Process locked */
- __HAL_LOCK(hadc);
- 80024d0: 68fb ldr r3, [r7, #12]
- 80024d2: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
- 80024d6: 2b01 cmp r3, #1
- 80024d8: d101 bne.n 80024de <HAL_ADC_Start_DMA+0x1e>
- 80024da: 2302 movs r3, #2
- 80024dc: e074 b.n 80025c8 <HAL_ADC_Start_DMA+0x108>
- 80024de: 68fb ldr r3, [r7, #12]
- 80024e0: 2201 movs r2, #1
- 80024e2: f883 2048 strb.w r2, [r3, #72] ; 0x48
-
- /* Enable the ADC peripheral */
- tmp_hal_status = ADC_Enable(hadc);
- 80024e6: 68f8 ldr r0, [r7, #12]
- 80024e8: f000 fa34 bl 8002954 <ADC_Enable>
- 80024ec: 4603 mov r3, r0
- 80024ee: 75fb strb r3, [r7, #23]
-
- /* Start conversion if ADC is effectively enabled */
- if (tmp_hal_status == HAL_OK)
- 80024f0: 7dfb ldrb r3, [r7, #23]
- 80024f2: 2b00 cmp r3, #0
- 80024f4: d167 bne.n 80025c6 <HAL_ADC_Start_DMA+0x106>
- {
- /* Set ADC state */
- /* - Clear state bitfield related to regular group conversion results */
- /* - Set state bitfield related to regular group operation */
- ADC_STATE_CLR_SET(hadc->State,
- 80024f6: 68fb ldr r3, [r7, #12]
- 80024f8: 6cdb ldr r3, [r3, #76] ; 0x4c
- 80024fa: f423 63e0 bic.w r3, r3, #1792 ; 0x700
- 80024fe: f023 0301 bic.w r3, r3, #1
- 8002502: f443 7280 orr.w r2, r3, #256 ; 0x100
- 8002506: 68fb ldr r3, [r7, #12]
- 8002508: 64da str r2, [r3, #76] ; 0x4c
- HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR,
- HAL_ADC_STATE_REG_BUSY);
-
- /* If conversions on group regular are also triggering group injected, */
- /* update ADC state. */
- if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
- 800250a: 68fb ldr r3, [r7, #12]
- 800250c: 681b ldr r3, [r3, #0]
- 800250e: 685b ldr r3, [r3, #4]
- 8002510: f403 6380 and.w r3, r3, #1024 ; 0x400
- 8002514: 2b00 cmp r3, #0
- 8002516: d007 beq.n 8002528 <HAL_ADC_Start_DMA+0x68>
- {
- ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
- 8002518: 68fb ldr r3, [r7, #12]
- 800251a: 6cdb ldr r3, [r3, #76] ; 0x4c
- 800251c: f423 5340 bic.w r3, r3, #12288 ; 0x3000
- 8002520: f443 5280 orr.w r2, r3, #4096 ; 0x1000
- 8002524: 68fb ldr r3, [r7, #12]
- 8002526: 64da str r2, [r3, #76] ; 0x4c
- }
-
- /* State machine update: Check if an injected conversion is ongoing */
- if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
- 8002528: 68fb ldr r3, [r7, #12]
- 800252a: 6cdb ldr r3, [r3, #76] ; 0x4c
- 800252c: f403 5380 and.w r3, r3, #4096 ; 0x1000
- 8002530: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
- 8002534: d106 bne.n 8002544 <HAL_ADC_Start_DMA+0x84>
- {
- /* Reset ADC error code fields related to conversions on group regular */
- CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
- 8002536: 68fb ldr r3, [r7, #12]
- 8002538: 6d1b ldr r3, [r3, #80] ; 0x50
- 800253a: f023 0206 bic.w r2, r3, #6
- 800253e: 68fb ldr r3, [r7, #12]
- 8002540: 651a str r2, [r3, #80] ; 0x50
- 8002542: e002 b.n 800254a <HAL_ADC_Start_DMA+0x8a>
- }
- else
- {
- /* Reset ADC all error code fields */
- ADC_CLEAR_ERRORCODE(hadc);
- 8002544: 68fb ldr r3, [r7, #12]
- 8002546: 2200 movs r2, #0
- 8002548: 651a str r2, [r3, #80] ; 0x50
- }
-
- /* Process unlocked */
- /* Unlock before starting ADC conversions: in case of potential */
- /* interruption, to let the process to ADC IRQ Handler. */
- __HAL_UNLOCK(hadc);
- 800254a: 68fb ldr r3, [r7, #12]
- 800254c: 2200 movs r2, #0
- 800254e: f883 2048 strb.w r2, [r3, #72] ; 0x48
- /* Set the DMA transfer complete callback */
- hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
- 8002552: 68fb ldr r3, [r7, #12]
- 8002554: 6c5b ldr r3, [r3, #68] ; 0x44
- 8002556: 4a1e ldr r2, [pc, #120] ; (80025d0 <HAL_ADC_Start_DMA+0x110>)
- 8002558: 629a str r2, [r3, #40] ; 0x28
- /* Set the DMA half transfer complete callback */
- hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
- 800255a: 68fb ldr r3, [r7, #12]
- 800255c: 6c5b ldr r3, [r3, #68] ; 0x44
- 800255e: 4a1d ldr r2, [pc, #116] ; (80025d4 <HAL_ADC_Start_DMA+0x114>)
- 8002560: 62da str r2, [r3, #44] ; 0x2c
-
- /* Set the DMA error callback */
- hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
- 8002562: 68fb ldr r3, [r7, #12]
- 8002564: 6c5b ldr r3, [r3, #68] ; 0x44
- 8002566: 4a1c ldr r2, [pc, #112] ; (80025d8 <HAL_ADC_Start_DMA+0x118>)
- 8002568: 631a str r2, [r3, #48] ; 0x30
- /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */
- /* start (in case of SW start): */
-
- /* Clear regular group conversion flag and overrun flag */
- /* (To ensure of no unknown state from potential previous ADC operations) */
- __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR);
- 800256a: 68fb ldr r3, [r7, #12]
- 800256c: 681b ldr r3, [r3, #0]
- 800256e: f06f 0222 mvn.w r2, #34 ; 0x22
- 8002572: 601a str r2, [r3, #0]
- /* Enable ADC overrun interrupt */
- __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
- 8002574: 68fb ldr r3, [r7, #12]
- 8002576: 681b ldr r3, [r3, #0]
- 8002578: 685a ldr r2, [r3, #4]
- 800257a: 68fb ldr r3, [r7, #12]
- 800257c: 681b ldr r3, [r3, #0]
- 800257e: f042 6280 orr.w r2, r2, #67108864 ; 0x4000000
- 8002582: 605a str r2, [r3, #4]
-
- /* Enable ADC DMA mode */
- hadc->Instance->CR2 |= ADC_CR2_DMA;
- 8002584: 68fb ldr r3, [r7, #12]
- 8002586: 681b ldr r3, [r3, #0]
- 8002588: 689a ldr r2, [r3, #8]
- 800258a: 68fb ldr r3, [r7, #12]
- 800258c: 681b ldr r3, [r3, #0]
- 800258e: f442 7280 orr.w r2, r2, #256 ; 0x100
- 8002592: 609a str r2, [r3, #8]
-
- /* Start the DMA channel */
- HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
- 8002594: 68fb ldr r3, [r7, #12]
- 8002596: 6c58 ldr r0, [r3, #68] ; 0x44
- 8002598: 68fb ldr r3, [r7, #12]
- 800259a: 681b ldr r3, [r3, #0]
- 800259c: 3358 adds r3, #88 ; 0x58
- 800259e: 4619 mov r1, r3
- 80025a0: 68ba ldr r2, [r7, #8]
- 80025a2: 687b ldr r3, [r7, #4]
- 80025a4: f000 fec8 bl 8003338 <HAL_DMA_Start_IT>
- /* If software start has been selected, conversion starts immediately. */
- /* If external trigger has been selected, conversion will start at next */
- /* trigger event. */
- /* Note: Alternate trigger for single conversion could be to force an */
- /* additional set of bit ADON "hadc->Instance->CR2 |= ADC_CR2_ADON;"*/
- if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
- 80025a8: 68fb ldr r3, [r7, #12]
- 80025aa: 681b ldr r3, [r3, #0]
- 80025ac: 689b ldr r3, [r3, #8]
- 80025ae: f003 5340 and.w r3, r3, #805306368 ; 0x30000000
- 80025b2: 2b00 cmp r3, #0
- 80025b4: d107 bne.n 80025c6 <HAL_ADC_Start_DMA+0x106>
- {
- /* Start ADC conversion on regular group */
- SET_BIT(hadc->Instance->CR2, ADC_CR2_SWSTART);
- 80025b6: 68fb ldr r3, [r7, #12]
- 80025b8: 681b ldr r3, [r3, #0]
- 80025ba: 689a ldr r2, [r3, #8]
- 80025bc: 68fb ldr r3, [r7, #12]
- 80025be: 681b ldr r3, [r3, #0]
- 80025c0: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000
- 80025c4: 609a str r2, [r3, #8]
- }
- }
-
- /* Return function status */
- return tmp_hal_status;
- 80025c6: 7dfb ldrb r3, [r7, #23]
- }
- 80025c8: 4618 mov r0, r3
- 80025ca: 3718 adds r7, #24
- 80025cc: 46bd mov sp, r7
- 80025ce: bd80 pop {r7, pc}
- 80025d0: 08002a8f .word 0x08002a8f
- 80025d4: 08002b37 .word 0x08002b37
- 80025d8: 08002b53 .word 0x08002b53
- 080025dc <HAL_ADC_Stop_DMA>:
- * should be preliminarily stopped using HAL_ADCEx_InjectedStop function.
- * @param hadc ADC handle
- * @retval HAL status.
- */
- HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc)
- {
- 80025dc: b580 push {r7, lr}
- 80025de: b084 sub sp, #16
- 80025e0: af00 add r7, sp, #0
- 80025e2: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef tmp_hal_status = HAL_OK;
- 80025e4: 2300 movs r3, #0
- 80025e6: 73fb strb r3, [r7, #15]
-
- /* Check the parameters */
- assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
-
- /* Process locked */
- __HAL_LOCK(hadc);
- 80025e8: 687b ldr r3, [r7, #4]
- 80025ea: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
- 80025ee: 2b01 cmp r3, #1
- 80025f0: d101 bne.n 80025f6 <HAL_ADC_Stop_DMA+0x1a>
- 80025f2: 2302 movs r3, #2
- 80025f4: e03f b.n 8002676 <HAL_ADC_Stop_DMA+0x9a>
- 80025f6: 687b ldr r3, [r7, #4]
- 80025f8: 2201 movs r2, #1
- 80025fa: f883 2048 strb.w r2, [r3, #72] ; 0x48
-
- /* Stop potential conversion on going, on regular and injected groups */
- /* Disable ADC peripheral */
- tmp_hal_status = ADC_ConversionStop_Disable(hadc);
- 80025fe: 6878 ldr r0, [r7, #4]
- 8002600: f000 fa04 bl 8002a0c <ADC_ConversionStop_Disable>
- 8002604: 4603 mov r3, r0
- 8002606: 73fb strb r3, [r7, #15]
-
- /* Check if ADC is effectively disabled */
- if (tmp_hal_status == HAL_OK)
- 8002608: 7bfb ldrb r3, [r7, #15]
- 800260a: 2b00 cmp r3, #0
- 800260c: d12e bne.n 800266c <HAL_ADC_Stop_DMA+0x90>
- {
- /* Disable ADC DMA mode */
- hadc->Instance->CR2 &= ~ADC_CR2_DMA;
- 800260e: 687b ldr r3, [r7, #4]
- 8002610: 681b ldr r3, [r3, #0]
- 8002612: 689a ldr r2, [r3, #8]
- 8002614: 687b ldr r3, [r7, #4]
- 8002616: 681b ldr r3, [r3, #0]
- 8002618: f422 7280 bic.w r2, r2, #256 ; 0x100
- 800261c: 609a str r2, [r3, #8]
-
- /* Disable the DMA channel (in case of DMA in circular mode or stop while */
- /* DMA transfer is on going) */
- if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY)
- 800261e: 687b ldr r3, [r7, #4]
- 8002620: 6c5b ldr r3, [r3, #68] ; 0x44
- 8002622: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8002626: b2db uxtb r3, r3
- 8002628: 2b02 cmp r3, #2
- 800262a: d10d bne.n 8002648 <HAL_ADC_Stop_DMA+0x6c>
- {
- HAL_DMA_Abort(hadc->DMA_Handle);
- 800262c: 687b ldr r3, [r7, #4]
- 800262e: 6c5b ldr r3, [r3, #68] ; 0x44
- 8002630: 4618 mov r0, r3
- 8002632: f000 fee1 bl 80033f8 <HAL_DMA_Abort>
-
- /* Check if DMA channel effectively disabled */
- if (tmp_hal_status != HAL_OK)
- 8002636: 7bfb ldrb r3, [r7, #15]
- 8002638: 2b00 cmp r3, #0
- 800263a: d005 beq.n 8002648 <HAL_ADC_Stop_DMA+0x6c>
- {
- /* Update ADC state machine to error */
- SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
- 800263c: 687b ldr r3, [r7, #4]
- 800263e: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002640: f043 0240 orr.w r2, r3, #64 ; 0x40
- 8002644: 687b ldr r3, [r7, #4]
- 8002646: 64da str r2, [r3, #76] ; 0x4c
- }
- }
-
- /* Set ADC state */
- ADC_STATE_CLR_SET(hadc->State,
- 8002648: 687b ldr r3, [r7, #4]
- 800264a: 6cdb ldr r3, [r3, #76] ; 0x4c
- 800264c: f423 5388 bic.w r3, r3, #4352 ; 0x1100
- 8002650: f023 0301 bic.w r3, r3, #1
- 8002654: f043 0201 orr.w r2, r3, #1
- 8002658: 687b ldr r3, [r7, #4]
- 800265a: 64da str r2, [r3, #76] ; 0x4c
- HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
- HAL_ADC_STATE_READY);
-
- /* Disable ADC overrun interrupt */
- __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR);
- 800265c: 687b ldr r3, [r7, #4]
- 800265e: 681b ldr r3, [r3, #0]
- 8002660: 685a ldr r2, [r3, #4]
- 8002662: 687b ldr r3, [r7, #4]
- 8002664: 681b ldr r3, [r3, #0]
- 8002666: f022 6280 bic.w r2, r2, #67108864 ; 0x4000000
- 800266a: 605a str r2, [r3, #4]
- }
-
- /* Process unlocked */
- __HAL_UNLOCK(hadc);
- 800266c: 687b ldr r3, [r7, #4]
- 800266e: 2200 movs r2, #0
- 8002670: f883 2048 strb.w r2, [r3, #72] ; 0x48
-
- /* Return function status */
- return tmp_hal_status;
- 8002674: 7bfb ldrb r3, [r7, #15]
- }
- 8002676: 4618 mov r0, r3
- 8002678: 3710 adds r7, #16
- 800267a: 46bd mov sp, r7
- 800267c: bd80 pop {r7, pc}
- 0800267e <HAL_ADC_ConvCpltCallback>:
- * @brief Conversion complete callback in non blocking mode
- * @param hadc ADC handle
- * @retval None
- */
- __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
- {
- 800267e: b480 push {r7}
- 8002680: b083 sub sp, #12
- 8002682: af00 add r7, sp, #0
- 8002684: 6078 str r0, [r7, #4]
- UNUSED(hadc);
- /* NOTE : This function should not be modified. When the callback is needed,
- function HAL_ADC_ConvCpltCallback must be implemented in the user file.
- */
- }
- 8002686: bf00 nop
- 8002688: 370c adds r7, #12
- 800268a: 46bd mov sp, r7
- 800268c: bc80 pop {r7}
- 800268e: 4770 bx lr
- 08002690 <HAL_ADC_ConvHalfCpltCallback>:
- * @brief Conversion DMA half-transfer callback in non blocking mode
- * @param hadc ADC handle
- * @retval None
- */
- __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
- {
- 8002690: b480 push {r7}
- 8002692: b083 sub sp, #12
- 8002694: af00 add r7, sp, #0
- 8002696: 6078 str r0, [r7, #4]
- UNUSED(hadc);
- /* NOTE : This function should not be modified. When the callback is needed,
- function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
- */
- }
- 8002698: bf00 nop
- 800269a: 370c adds r7, #12
- 800269c: 46bd mov sp, r7
- 800269e: bc80 pop {r7}
- 80026a0: 4770 bx lr
- 080026a2 <HAL_ADC_ErrorCallback>:
- * (this function is also clearing overrun flag)
- * @param hadc ADC handle
- * @retval None
- */
- __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
- {
- 80026a2: b480 push {r7}
- 80026a4: b083 sub sp, #12
- 80026a6: af00 add r7, sp, #0
- 80026a8: 6078 str r0, [r7, #4]
- UNUSED(hadc);
- /* NOTE : This function should not be modified. When the callback is needed,
- function HAL_ADC_ErrorCallback must be implemented in the user file.
- */
- }
- 80026aa: bf00 nop
- 80026ac: 370c adds r7, #12
- 80026ae: 46bd mov sp, r7
- 80026b0: bc80 pop {r7}
- 80026b2: 4770 bx lr
- 080026b4 <HAL_ADC_ConfigChannel>:
- * @param hadc ADC handle
- * @param sConfig Structure of ADC channel for regular group.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
- {
- 80026b4: b480 push {r7}
- 80026b6: b085 sub sp, #20
- 80026b8: af00 add r7, sp, #0
- 80026ba: 6078 str r0, [r7, #4]
- 80026bc: 6039 str r1, [r7, #0]
- HAL_StatusTypeDef tmp_hal_status = HAL_OK;
- 80026be: 2300 movs r3, #0
- 80026c0: 73fb strb r3, [r7, #15]
- __IO uint32_t wait_loop_index = 0;
- 80026c2: 2300 movs r3, #0
- 80026c4: 60bb str r3, [r7, #8]
- assert_param(IS_ADC_CHANNEL(sConfig->Channel));
- assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
- assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
-
- /* Process locked */
- __HAL_LOCK(hadc);
- 80026c6: 687b ldr r3, [r7, #4]
- 80026c8: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
- 80026cc: 2b01 cmp r3, #1
- 80026ce: d101 bne.n 80026d4 <HAL_ADC_ConfigChannel+0x20>
- 80026d0: 2302 movs r3, #2
- 80026d2: e134 b.n 800293e <HAL_ADC_ConfigChannel+0x28a>
- 80026d4: 687b ldr r3, [r7, #4]
- 80026d6: 2201 movs r2, #1
- 80026d8: f883 2048 strb.w r2, [r3, #72] ; 0x48
-
-
- /* Regular sequence configuration */
- /* For Rank 1 to 6 */
- if (sConfig->Rank < 7)
- 80026dc: 683b ldr r3, [r7, #0]
- 80026de: 685b ldr r3, [r3, #4]
- 80026e0: 2b06 cmp r3, #6
- 80026e2: d81c bhi.n 800271e <HAL_ADC_ConfigChannel+0x6a>
- {
- MODIFY_REG(hadc->Instance->SQR5,
- 80026e4: 687b ldr r3, [r7, #4]
- 80026e6: 681b ldr r3, [r3, #0]
- 80026e8: 6c19 ldr r1, [r3, #64] ; 0x40
- 80026ea: 683b ldr r3, [r7, #0]
- 80026ec: 685a ldr r2, [r3, #4]
- 80026ee: 4613 mov r3, r2
- 80026f0: 009b lsls r3, r3, #2
- 80026f2: 4413 add r3, r2
- 80026f4: 3b05 subs r3, #5
- 80026f6: 221f movs r2, #31
- 80026f8: fa02 f303 lsl.w r3, r2, r3
- 80026fc: 43db mvns r3, r3
- 80026fe: 4019 ands r1, r3
- 8002700: 683b ldr r3, [r7, #0]
- 8002702: 6818 ldr r0, [r3, #0]
- 8002704: 683b ldr r3, [r7, #0]
- 8002706: 685a ldr r2, [r3, #4]
- 8002708: 4613 mov r3, r2
- 800270a: 009b lsls r3, r3, #2
- 800270c: 4413 add r3, r2
- 800270e: 3b05 subs r3, #5
- 8002710: fa00 f203 lsl.w r2, r0, r3
- 8002714: 687b ldr r3, [r7, #4]
- 8002716: 681b ldr r3, [r3, #0]
- 8002718: 430a orrs r2, r1
- 800271a: 641a str r2, [r3, #64] ; 0x40
- 800271c: e07e b.n 800281c <HAL_ADC_ConfigChannel+0x168>
- ADC_SQR5_RK(ADC_SQR5_SQ1, sConfig->Rank),
- ADC_SQR5_RK(sConfig->Channel, sConfig->Rank) );
- }
- /* For Rank 7 to 12 */
- else if (sConfig->Rank < 13)
- 800271e: 683b ldr r3, [r7, #0]
- 8002720: 685b ldr r3, [r3, #4]
- 8002722: 2b0c cmp r3, #12
- 8002724: d81c bhi.n 8002760 <HAL_ADC_ConfigChannel+0xac>
- {
- MODIFY_REG(hadc->Instance->SQR4,
- 8002726: 687b ldr r3, [r7, #4]
- 8002728: 681b ldr r3, [r3, #0]
- 800272a: 6bd9 ldr r1, [r3, #60] ; 0x3c
- 800272c: 683b ldr r3, [r7, #0]
- 800272e: 685a ldr r2, [r3, #4]
- 8002730: 4613 mov r3, r2
- 8002732: 009b lsls r3, r3, #2
- 8002734: 4413 add r3, r2
- 8002736: 3b23 subs r3, #35 ; 0x23
- 8002738: 221f movs r2, #31
- 800273a: fa02 f303 lsl.w r3, r2, r3
- 800273e: 43db mvns r3, r3
- 8002740: 4019 ands r1, r3
- 8002742: 683b ldr r3, [r7, #0]
- 8002744: 6818 ldr r0, [r3, #0]
- 8002746: 683b ldr r3, [r7, #0]
- 8002748: 685a ldr r2, [r3, #4]
- 800274a: 4613 mov r3, r2
- 800274c: 009b lsls r3, r3, #2
- 800274e: 4413 add r3, r2
- 8002750: 3b23 subs r3, #35 ; 0x23
- 8002752: fa00 f203 lsl.w r2, r0, r3
- 8002756: 687b ldr r3, [r7, #4]
- 8002758: 681b ldr r3, [r3, #0]
- 800275a: 430a orrs r2, r1
- 800275c: 63da str r2, [r3, #60] ; 0x3c
- 800275e: e05d b.n 800281c <HAL_ADC_ConfigChannel+0x168>
- ADC_SQR4_RK(ADC_SQR4_SQ7, sConfig->Rank),
- ADC_SQR4_RK(sConfig->Channel, sConfig->Rank) );
- }
- /* For Rank 13 to 18 */
- else if (sConfig->Rank < 19)
- 8002760: 683b ldr r3, [r7, #0]
- 8002762: 685b ldr r3, [r3, #4]
- 8002764: 2b12 cmp r3, #18
- 8002766: d81c bhi.n 80027a2 <HAL_ADC_ConfigChannel+0xee>
- {
- MODIFY_REG(hadc->Instance->SQR3,
- 8002768: 687b ldr r3, [r7, #4]
- 800276a: 681b ldr r3, [r3, #0]
- 800276c: 6b99 ldr r1, [r3, #56] ; 0x38
- 800276e: 683b ldr r3, [r7, #0]
- 8002770: 685a ldr r2, [r3, #4]
- 8002772: 4613 mov r3, r2
- 8002774: 009b lsls r3, r3, #2
- 8002776: 4413 add r3, r2
- 8002778: 3b41 subs r3, #65 ; 0x41
- 800277a: 221f movs r2, #31
- 800277c: fa02 f303 lsl.w r3, r2, r3
- 8002780: 43db mvns r3, r3
- 8002782: 4019 ands r1, r3
- 8002784: 683b ldr r3, [r7, #0]
- 8002786: 6818 ldr r0, [r3, #0]
- 8002788: 683b ldr r3, [r7, #0]
- 800278a: 685a ldr r2, [r3, #4]
- 800278c: 4613 mov r3, r2
- 800278e: 009b lsls r3, r3, #2
- 8002790: 4413 add r3, r2
- 8002792: 3b41 subs r3, #65 ; 0x41
- 8002794: fa00 f203 lsl.w r2, r0, r3
- 8002798: 687b ldr r3, [r7, #4]
- 800279a: 681b ldr r3, [r3, #0]
- 800279c: 430a orrs r2, r1
- 800279e: 639a str r2, [r3, #56] ; 0x38
- 80027a0: e03c b.n 800281c <HAL_ADC_ConfigChannel+0x168>
- ADC_SQR3_RK(ADC_SQR3_SQ13, sConfig->Rank),
- ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
- }
- /* For Rank 19 to 24 */
- else if (sConfig->Rank < 25)
- 80027a2: 683b ldr r3, [r7, #0]
- 80027a4: 685b ldr r3, [r3, #4]
- 80027a6: 2b18 cmp r3, #24
- 80027a8: d81c bhi.n 80027e4 <HAL_ADC_ConfigChannel+0x130>
- {
- MODIFY_REG(hadc->Instance->SQR2,
- 80027aa: 687b ldr r3, [r7, #4]
- 80027ac: 681b ldr r3, [r3, #0]
- 80027ae: 6b59 ldr r1, [r3, #52] ; 0x34
- 80027b0: 683b ldr r3, [r7, #0]
- 80027b2: 685a ldr r2, [r3, #4]
- 80027b4: 4613 mov r3, r2
- 80027b6: 009b lsls r3, r3, #2
- 80027b8: 4413 add r3, r2
- 80027ba: 3b5f subs r3, #95 ; 0x5f
- 80027bc: 221f movs r2, #31
- 80027be: fa02 f303 lsl.w r3, r2, r3
- 80027c2: 43db mvns r3, r3
- 80027c4: 4019 ands r1, r3
- 80027c6: 683b ldr r3, [r7, #0]
- 80027c8: 6818 ldr r0, [r3, #0]
- 80027ca: 683b ldr r3, [r7, #0]
- 80027cc: 685a ldr r2, [r3, #4]
- 80027ce: 4613 mov r3, r2
- 80027d0: 009b lsls r3, r3, #2
- 80027d2: 4413 add r3, r2
- 80027d4: 3b5f subs r3, #95 ; 0x5f
- 80027d6: fa00 f203 lsl.w r2, r0, r3
- 80027da: 687b ldr r3, [r7, #4]
- 80027dc: 681b ldr r3, [r3, #0]
- 80027de: 430a orrs r2, r1
- 80027e0: 635a str r2, [r3, #52] ; 0x34
- 80027e2: e01b b.n 800281c <HAL_ADC_ConfigChannel+0x168>
- ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
- }
- /* For Rank 25 to 28 */
- else
- {
- MODIFY_REG(hadc->Instance->SQR1,
- 80027e4: 687b ldr r3, [r7, #4]
- 80027e6: 681b ldr r3, [r3, #0]
- 80027e8: 6b19 ldr r1, [r3, #48] ; 0x30
- 80027ea: 683b ldr r3, [r7, #0]
- 80027ec: 685a ldr r2, [r3, #4]
- 80027ee: 4613 mov r3, r2
- 80027f0: 009b lsls r3, r3, #2
- 80027f2: 4413 add r3, r2
- 80027f4: 3b7d subs r3, #125 ; 0x7d
- 80027f6: 221f movs r2, #31
- 80027f8: fa02 f303 lsl.w r3, r2, r3
- 80027fc: 43db mvns r3, r3
- 80027fe: 4019 ands r1, r3
- 8002800: 683b ldr r3, [r7, #0]
- 8002802: 6818 ldr r0, [r3, #0]
- 8002804: 683b ldr r3, [r7, #0]
- 8002806: 685a ldr r2, [r3, #4]
- 8002808: 4613 mov r3, r2
- 800280a: 009b lsls r3, r3, #2
- 800280c: 4413 add r3, r2
- 800280e: 3b7d subs r3, #125 ; 0x7d
- 8002810: fa00 f203 lsl.w r2, r0, r3
- 8002814: 687b ldr r3, [r7, #4]
- 8002816: 681b ldr r3, [r3, #0]
- 8002818: 430a orrs r2, r1
- 800281a: 631a str r2, [r3, #48] ; 0x30
- }
-
-
- /* Channel sampling time configuration */
- /* For channels 0 to 9 */
- if (sConfig->Channel < ADC_CHANNEL_10)
- 800281c: 683b ldr r3, [r7, #0]
- 800281e: 681b ldr r3, [r3, #0]
- 8002820: 2b09 cmp r3, #9
- 8002822: d81a bhi.n 800285a <HAL_ADC_ConfigChannel+0x1a6>
- {
- MODIFY_REG(hadc->Instance->SMPR3,
- 8002824: 687b ldr r3, [r7, #4]
- 8002826: 681b ldr r3, [r3, #0]
- 8002828: 6959 ldr r1, [r3, #20]
- 800282a: 683b ldr r3, [r7, #0]
- 800282c: 681a ldr r2, [r3, #0]
- 800282e: 4613 mov r3, r2
- 8002830: 005b lsls r3, r3, #1
- 8002832: 4413 add r3, r2
- 8002834: 2207 movs r2, #7
- 8002836: fa02 f303 lsl.w r3, r2, r3
- 800283a: 43db mvns r3, r3
- 800283c: 4019 ands r1, r3
- 800283e: 683b ldr r3, [r7, #0]
- 8002840: 6898 ldr r0, [r3, #8]
- 8002842: 683b ldr r3, [r7, #0]
- 8002844: 681a ldr r2, [r3, #0]
- 8002846: 4613 mov r3, r2
- 8002848: 005b lsls r3, r3, #1
- 800284a: 4413 add r3, r2
- 800284c: fa00 f203 lsl.w r2, r0, r3
- 8002850: 687b ldr r3, [r7, #4]
- 8002852: 681b ldr r3, [r3, #0]
- 8002854: 430a orrs r2, r1
- 8002856: 615a str r2, [r3, #20]
- 8002858: e042 b.n 80028e0 <HAL_ADC_ConfigChannel+0x22c>
- ADC_SMPR3(ADC_SMPR3_SMP0, sConfig->Channel),
- ADC_SMPR3(sConfig->SamplingTime, sConfig->Channel) );
- }
- /* For channels 10 to 19 */
- else if (sConfig->Channel < ADC_CHANNEL_20)
- 800285a: 683b ldr r3, [r7, #0]
- 800285c: 681b ldr r3, [r3, #0]
- 800285e: 2b13 cmp r3, #19
- 8002860: d81c bhi.n 800289c <HAL_ADC_ConfigChannel+0x1e8>
- {
- MODIFY_REG(hadc->Instance->SMPR2,
- 8002862: 687b ldr r3, [r7, #4]
- 8002864: 681b ldr r3, [r3, #0]
- 8002866: 6919 ldr r1, [r3, #16]
- 8002868: 683b ldr r3, [r7, #0]
- 800286a: 681a ldr r2, [r3, #0]
- 800286c: 4613 mov r3, r2
- 800286e: 005b lsls r3, r3, #1
- 8002870: 4413 add r3, r2
- 8002872: 3b1e subs r3, #30
- 8002874: 2207 movs r2, #7
- 8002876: fa02 f303 lsl.w r3, r2, r3
- 800287a: 43db mvns r3, r3
- 800287c: 4019 ands r1, r3
- 800287e: 683b ldr r3, [r7, #0]
- 8002880: 6898 ldr r0, [r3, #8]
- 8002882: 683b ldr r3, [r7, #0]
- 8002884: 681a ldr r2, [r3, #0]
- 8002886: 4613 mov r3, r2
- 8002888: 005b lsls r3, r3, #1
- 800288a: 4413 add r3, r2
- 800288c: 3b1e subs r3, #30
- 800288e: fa00 f203 lsl.w r2, r0, r3
- 8002892: 687b ldr r3, [r7, #4]
- 8002894: 681b ldr r3, [r3, #0]
- 8002896: 430a orrs r2, r1
- 8002898: 611a str r2, [r3, #16]
- 800289a: e021 b.n 80028e0 <HAL_ADC_ConfigChannel+0x22c>
- ADC_SMPR2(ADC_SMPR2_SMP10, sConfig->Channel),
- ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
- }
- /* For channels 20 to 26 for devices Cat.1, Cat.2, Cat.3 */
- /* For channels 20 to 29 for devices Cat4, Cat.5 */
- else if (sConfig->Channel <= ADC_SMPR1_CHANNEL_MAX)
- 800289c: 683b ldr r3, [r7, #0]
- 800289e: 681b ldr r3, [r3, #0]
- 80028a0: 2b1a cmp r3, #26
- 80028a2: d81c bhi.n 80028de <HAL_ADC_ConfigChannel+0x22a>
- {
- MODIFY_REG(hadc->Instance->SMPR1,
- 80028a4: 687b ldr r3, [r7, #4]
- 80028a6: 681b ldr r3, [r3, #0]
- 80028a8: 68d9 ldr r1, [r3, #12]
- 80028aa: 683b ldr r3, [r7, #0]
- 80028ac: 681a ldr r2, [r3, #0]
- 80028ae: 4613 mov r3, r2
- 80028b0: 005b lsls r3, r3, #1
- 80028b2: 4413 add r3, r2
- 80028b4: 3b3c subs r3, #60 ; 0x3c
- 80028b6: 2207 movs r2, #7
- 80028b8: fa02 f303 lsl.w r3, r2, r3
- 80028bc: 43db mvns r3, r3
- 80028be: 4019 ands r1, r3
- 80028c0: 683b ldr r3, [r7, #0]
- 80028c2: 6898 ldr r0, [r3, #8]
- 80028c4: 683b ldr r3, [r7, #0]
- 80028c6: 681a ldr r2, [r3, #0]
- 80028c8: 4613 mov r3, r2
- 80028ca: 005b lsls r3, r3, #1
- 80028cc: 4413 add r3, r2
- 80028ce: 3b3c subs r3, #60 ; 0x3c
- 80028d0: fa00 f203 lsl.w r2, r0, r3
- 80028d4: 687b ldr r3, [r7, #4]
- 80028d6: 681b ldr r3, [r3, #0]
- 80028d8: 430a orrs r2, r1
- 80028da: 60da str r2, [r3, #12]
- 80028dc: e000 b.n 80028e0 <HAL_ADC_ConfigChannel+0x22c>
- ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
- }
- /* For channels 30 to 31 for devices Cat4, Cat.5 */
- else
- {
- ADC_SMPR0_CHANNEL_SET(hadc, sConfig->SamplingTime, sConfig->Channel);
- 80028de: bf00 nop
- }
- /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
- /* and VREFINT measurement path. */
- if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
- 80028e0: 683b ldr r3, [r7, #0]
- 80028e2: 681b ldr r3, [r3, #0]
- 80028e4: 2b10 cmp r3, #16
- 80028e6: d003 beq.n 80028f0 <HAL_ADC_ConfigChannel+0x23c>
- (sConfig->Channel == ADC_CHANNEL_VREFINT) )
- 80028e8: 683b ldr r3, [r7, #0]
- 80028ea: 681b ldr r3, [r3, #0]
- if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
- 80028ec: 2b11 cmp r3, #17
- 80028ee: d121 bne.n 8002934 <HAL_ADC_ConfigChannel+0x280>
- {
- if (READ_BIT(ADC->CCR, ADC_CCR_TSVREFE) == RESET)
- 80028f0: 4b15 ldr r3, [pc, #84] ; (8002948 <HAL_ADC_ConfigChannel+0x294>)
- 80028f2: 685b ldr r3, [r3, #4]
- 80028f4: f403 0300 and.w r3, r3, #8388608 ; 0x800000
- 80028f8: 2b00 cmp r3, #0
- 80028fa: d11b bne.n 8002934 <HAL_ADC_ConfigChannel+0x280>
- {
- SET_BIT(ADC->CCR, ADC_CCR_TSVREFE);
- 80028fc: 4b12 ldr r3, [pc, #72] ; (8002948 <HAL_ADC_ConfigChannel+0x294>)
- 80028fe: 685b ldr r3, [r3, #4]
- 8002900: 4a11 ldr r2, [pc, #68] ; (8002948 <HAL_ADC_ConfigChannel+0x294>)
- 8002902: f443 0300 orr.w r3, r3, #8388608 ; 0x800000
- 8002906: 6053 str r3, [r2, #4]
-
- if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR)
- 8002908: 683b ldr r3, [r7, #0]
- 800290a: 681b ldr r3, [r3, #0]
- 800290c: 2b10 cmp r3, #16
- 800290e: d111 bne.n 8002934 <HAL_ADC_ConfigChannel+0x280>
- {
- /* Delay for temperature sensor stabilization time */
- /* Compute number of CPU cycles to wait for */
- wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000));
- 8002910: 4b0e ldr r3, [pc, #56] ; (800294c <HAL_ADC_ConfigChannel+0x298>)
- 8002912: 681b ldr r3, [r3, #0]
- 8002914: 4a0e ldr r2, [pc, #56] ; (8002950 <HAL_ADC_ConfigChannel+0x29c>)
- 8002916: fba2 2303 umull r2, r3, r2, r3
- 800291a: 0c9a lsrs r2, r3, #18
- 800291c: 4613 mov r3, r2
- 800291e: 009b lsls r3, r3, #2
- 8002920: 4413 add r3, r2
- 8002922: 005b lsls r3, r3, #1
- 8002924: 60bb str r3, [r7, #8]
- while(wait_loop_index != 0)
- 8002926: e002 b.n 800292e <HAL_ADC_ConfigChannel+0x27a>
- {
- wait_loop_index--;
- 8002928: 68bb ldr r3, [r7, #8]
- 800292a: 3b01 subs r3, #1
- 800292c: 60bb str r3, [r7, #8]
- while(wait_loop_index != 0)
- 800292e: 68bb ldr r3, [r7, #8]
- 8002930: 2b00 cmp r3, #0
- 8002932: d1f9 bne.n 8002928 <HAL_ADC_ConfigChannel+0x274>
- }
- }
- }
-
- /* Process unlocked */
- __HAL_UNLOCK(hadc);
- 8002934: 687b ldr r3, [r7, #4]
- 8002936: 2200 movs r2, #0
- 8002938: f883 2048 strb.w r2, [r3, #72] ; 0x48
-
- /* Return function status */
- return tmp_hal_status;
- 800293c: 7bfb ldrb r3, [r7, #15]
- }
- 800293e: 4618 mov r0, r3
- 8002940: 3714 adds r7, #20
- 8002942: 46bd mov sp, r7
- 8002944: bc80 pop {r7}
- 8002946: 4770 bx lr
- 8002948: 40012700 .word 0x40012700
- 800294c: 20000000 .word 0x20000000
- 8002950: 431bde83 .word 0x431bde83
- 08002954 <ADC_Enable>:
- * "if (hadc->Init.LowPowerAutoPowerOff != ENABLE)".
- * @param hadc ADC handle
- * @retval HAL status.
- */
- HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
- {
- 8002954: b580 push {r7, lr}
- 8002956: b084 sub sp, #16
- 8002958: af00 add r7, sp, #0
- 800295a: 6078 str r0, [r7, #4]
- uint32_t tickstart = 0;
- 800295c: 2300 movs r3, #0
- 800295e: 60fb str r3, [r7, #12]
- __IO uint32_t wait_loop_index = 0;
- 8002960: 2300 movs r3, #0
- 8002962: 60bb str r3, [r7, #8]
-
- /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
- /* enabling phase not yet completed: flag ADC ready not yet set). */
- /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
- /* causes: ADC clock not running, ...). */
- if (ADC_IS_ENABLE(hadc) == RESET)
- 8002964: 687b ldr r3, [r7, #4]
- 8002966: 681b ldr r3, [r3, #0]
- 8002968: 681b ldr r3, [r3, #0]
- 800296a: f003 0340 and.w r3, r3, #64 ; 0x40
- 800296e: 2b40 cmp r3, #64 ; 0x40
- 8002970: d043 beq.n 80029fa <ADC_Enable+0xa6>
- {
- /* Enable the Peripheral */
- __HAL_ADC_ENABLE(hadc);
- 8002972: 687b ldr r3, [r7, #4]
- 8002974: 681b ldr r3, [r3, #0]
- 8002976: 689a ldr r2, [r3, #8]
- 8002978: 687b ldr r3, [r7, #4]
- 800297a: 681b ldr r3, [r3, #0]
- 800297c: f042 0201 orr.w r2, r2, #1
- 8002980: 609a str r2, [r3, #8]
-
- /* Delay for ADC stabilization time */
- /* Compute number of CPU cycles to wait for */
- wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000));
- 8002982: 4b20 ldr r3, [pc, #128] ; (8002a04 <ADC_Enable+0xb0>)
- 8002984: 681b ldr r3, [r3, #0]
- 8002986: 4a20 ldr r2, [pc, #128] ; (8002a08 <ADC_Enable+0xb4>)
- 8002988: fba2 2303 umull r2, r3, r2, r3
- 800298c: 0c9a lsrs r2, r3, #18
- 800298e: 4613 mov r3, r2
- 8002990: 005b lsls r3, r3, #1
- 8002992: 4413 add r3, r2
- 8002994: 60bb str r3, [r7, #8]
- while(wait_loop_index != 0)
- 8002996: e002 b.n 800299e <ADC_Enable+0x4a>
- {
- wait_loop_index--;
- 8002998: 68bb ldr r3, [r7, #8]
- 800299a: 3b01 subs r3, #1
- 800299c: 60bb str r3, [r7, #8]
- while(wait_loop_index != 0)
- 800299e: 68bb ldr r3, [r7, #8]
- 80029a0: 2b00 cmp r3, #0
- 80029a2: d1f9 bne.n 8002998 <ADC_Enable+0x44>
- }
-
- /* Get tick count */
- tickstart = HAL_GetTick();
- 80029a4: f7ff fc1a bl 80021dc <HAL_GetTick>
- 80029a8: 60f8 str r0, [r7, #12]
- /* Wait for ADC effectively enabled */
- while(ADC_IS_ENABLE(hadc) == RESET)
- 80029aa: e01f b.n 80029ec <ADC_Enable+0x98>
- {
- if((HAL_GetTick() - tickstart ) > ADC_ENABLE_TIMEOUT)
- 80029ac: f7ff fc16 bl 80021dc <HAL_GetTick>
- 80029b0: 4602 mov r2, r0
- 80029b2: 68fb ldr r3, [r7, #12]
- 80029b4: 1ad3 subs r3, r2, r3
- 80029b6: 2b02 cmp r3, #2
- 80029b8: d918 bls.n 80029ec <ADC_Enable+0x98>
- {
- /* New check to avoid false timeout detection in case of preemption */
- if(ADC_IS_ENABLE(hadc) == RESET)
- 80029ba: 687b ldr r3, [r7, #4]
- 80029bc: 681b ldr r3, [r3, #0]
- 80029be: 681b ldr r3, [r3, #0]
- 80029c0: f003 0340 and.w r3, r3, #64 ; 0x40
- 80029c4: 2b40 cmp r3, #64 ; 0x40
- 80029c6: d011 beq.n 80029ec <ADC_Enable+0x98>
- {
- /* Update ADC state machine to error */
- SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
- 80029c8: 687b ldr r3, [r7, #4]
- 80029ca: 6cdb ldr r3, [r3, #76] ; 0x4c
- 80029cc: f043 0210 orr.w r2, r3, #16
- 80029d0: 687b ldr r3, [r7, #4]
- 80029d2: 64da str r2, [r3, #76] ; 0x4c
- /* Set ADC error code to ADC IP internal error */
- SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
- 80029d4: 687b ldr r3, [r7, #4]
- 80029d6: 6d1b ldr r3, [r3, #80] ; 0x50
- 80029d8: f043 0201 orr.w r2, r3, #1
- 80029dc: 687b ldr r3, [r7, #4]
- 80029de: 651a str r2, [r3, #80] ; 0x50
- /* Process unlocked */
- __HAL_UNLOCK(hadc);
- 80029e0: 687b ldr r3, [r7, #4]
- 80029e2: 2200 movs r2, #0
- 80029e4: f883 2048 strb.w r2, [r3, #72] ; 0x48
- return HAL_ERROR;
- 80029e8: 2301 movs r3, #1
- 80029ea: e007 b.n 80029fc <ADC_Enable+0xa8>
- while(ADC_IS_ENABLE(hadc) == RESET)
- 80029ec: 687b ldr r3, [r7, #4]
- 80029ee: 681b ldr r3, [r3, #0]
- 80029f0: 681b ldr r3, [r3, #0]
- 80029f2: f003 0340 and.w r3, r3, #64 ; 0x40
- 80029f6: 2b40 cmp r3, #64 ; 0x40
- 80029f8: d1d8 bne.n 80029ac <ADC_Enable+0x58>
- }
- }
- }
-
- /* Return HAL status */
- return HAL_OK;
- 80029fa: 2300 movs r3, #0
- }
- 80029fc: 4618 mov r0, r3
- 80029fe: 3710 adds r7, #16
- 8002a00: 46bd mov sp, r7
- 8002a02: bd80 pop {r7, pc}
- 8002a04: 20000000 .word 0x20000000
- 8002a08: 431bde83 .word 0x431bde83
- 08002a0c <ADC_ConversionStop_Disable>:
- * stopped to disable the ADC.
- * @param hadc ADC handle
- * @retval HAL status.
- */
- HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
- {
- 8002a0c: b580 push {r7, lr}
- 8002a0e: b084 sub sp, #16
- 8002a10: af00 add r7, sp, #0
- 8002a12: 6078 str r0, [r7, #4]
- uint32_t tickstart = 0;
- 8002a14: 2300 movs r3, #0
- 8002a16: 60fb str r3, [r7, #12]
-
- /* Verification if ADC is not already disabled */
- if (ADC_IS_ENABLE(hadc) != RESET)
- 8002a18: 687b ldr r3, [r7, #4]
- 8002a1a: 681b ldr r3, [r3, #0]
- 8002a1c: 681b ldr r3, [r3, #0]
- 8002a1e: f003 0340 and.w r3, r3, #64 ; 0x40
- 8002a22: 2b40 cmp r3, #64 ; 0x40
- 8002a24: d12e bne.n 8002a84 <ADC_ConversionStop_Disable+0x78>
- {
- /* Disable the ADC peripheral */
- __HAL_ADC_DISABLE(hadc);
- 8002a26: 687b ldr r3, [r7, #4]
- 8002a28: 681b ldr r3, [r3, #0]
- 8002a2a: 689a ldr r2, [r3, #8]
- 8002a2c: 687b ldr r3, [r7, #4]
- 8002a2e: 681b ldr r3, [r3, #0]
- 8002a30: f022 0201 bic.w r2, r2, #1
- 8002a34: 609a str r2, [r3, #8]
-
- /* Get tick count */
- tickstart = HAL_GetTick();
- 8002a36: f7ff fbd1 bl 80021dc <HAL_GetTick>
- 8002a3a: 60f8 str r0, [r7, #12]
-
- /* Wait for ADC effectively disabled */
- while(ADC_IS_ENABLE(hadc) != RESET)
- 8002a3c: e01b b.n 8002a76 <ADC_ConversionStop_Disable+0x6a>
- {
- if((HAL_GetTick() - tickstart ) > ADC_DISABLE_TIMEOUT)
- 8002a3e: f7ff fbcd bl 80021dc <HAL_GetTick>
- 8002a42: 4602 mov r2, r0
- 8002a44: 68fb ldr r3, [r7, #12]
- 8002a46: 1ad3 subs r3, r2, r3
- 8002a48: 2b02 cmp r3, #2
- 8002a4a: d914 bls.n 8002a76 <ADC_ConversionStop_Disable+0x6a>
- {
- /* New check to avoid false timeout detection in case of preemption */
- if(ADC_IS_ENABLE(hadc) != RESET)
- 8002a4c: 687b ldr r3, [r7, #4]
- 8002a4e: 681b ldr r3, [r3, #0]
- 8002a50: 681b ldr r3, [r3, #0]
- 8002a52: f003 0340 and.w r3, r3, #64 ; 0x40
- 8002a56: 2b40 cmp r3, #64 ; 0x40
- 8002a58: d10d bne.n 8002a76 <ADC_ConversionStop_Disable+0x6a>
- {
- /* Update ADC state machine to error */
- SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
- 8002a5a: 687b ldr r3, [r7, #4]
- 8002a5c: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002a5e: f043 0210 orr.w r2, r3, #16
- 8002a62: 687b ldr r3, [r7, #4]
- 8002a64: 64da str r2, [r3, #76] ; 0x4c
- /* Set ADC error code to ADC IP internal error */
- SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
- 8002a66: 687b ldr r3, [r7, #4]
- 8002a68: 6d1b ldr r3, [r3, #80] ; 0x50
- 8002a6a: f043 0201 orr.w r2, r3, #1
- 8002a6e: 687b ldr r3, [r7, #4]
- 8002a70: 651a str r2, [r3, #80] ; 0x50
- return HAL_ERROR;
- 8002a72: 2301 movs r3, #1
- 8002a74: e007 b.n 8002a86 <ADC_ConversionStop_Disable+0x7a>
- while(ADC_IS_ENABLE(hadc) != RESET)
- 8002a76: 687b ldr r3, [r7, #4]
- 8002a78: 681b ldr r3, [r3, #0]
- 8002a7a: 681b ldr r3, [r3, #0]
- 8002a7c: f003 0340 and.w r3, r3, #64 ; 0x40
- 8002a80: 2b40 cmp r3, #64 ; 0x40
- 8002a82: d0dc beq.n 8002a3e <ADC_ConversionStop_Disable+0x32>
- }
- }
- }
-
- /* Return HAL status */
- return HAL_OK;
- 8002a84: 2300 movs r3, #0
- }
- 8002a86: 4618 mov r0, r3
- 8002a88: 3710 adds r7, #16
- 8002a8a: 46bd mov sp, r7
- 8002a8c: bd80 pop {r7, pc}
- 08002a8e <ADC_DMAConvCplt>:
- * @brief DMA transfer complete callback.
- * @param hdma pointer to DMA handle.
- * @retval None
- */
- static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
- {
- 8002a8e: b580 push {r7, lr}
- 8002a90: b084 sub sp, #16
- 8002a92: af00 add r7, sp, #0
- 8002a94: 6078 str r0, [r7, #4]
- /* Retrieve ADC handle corresponding to current DMA handle */
- ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
- 8002a96: 687b ldr r3, [r7, #4]
- 8002a98: 6a5b ldr r3, [r3, #36] ; 0x24
- 8002a9a: 60fb str r3, [r7, #12]
-
- /* Update state machine on conversion status if not in error state */
- if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
- 8002a9c: 68fb ldr r3, [r7, #12]
- 8002a9e: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002aa0: f003 0350 and.w r3, r3, #80 ; 0x50
- 8002aa4: 2b00 cmp r3, #0
- 8002aa6: d13d bne.n 8002b24 <ADC_DMAConvCplt+0x96>
- {
- /* Update ADC state machine */
- SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
- 8002aa8: 68fb ldr r3, [r7, #12]
- 8002aaa: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002aac: f443 7200 orr.w r2, r3, #512 ; 0x200
- 8002ab0: 68fb ldr r3, [r7, #12]
- 8002ab2: 64da str r2, [r3, #76] ; 0x4c
- /* by external trigger, continuous mode or scan sequence on going. */
- /* Note: On STM32L1, there is no independent flag of end of sequence. */
- /* The test of scan sequence on going is done either with scan */
- /* sequence disabled or with end of conversion flag set to */
- /* of end of sequence. */
- if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
- 8002ab4: 68fb ldr r3, [r7, #12]
- 8002ab6: 681b ldr r3, [r3, #0]
- 8002ab8: 689b ldr r3, [r3, #8]
- 8002aba: f003 5340 and.w r3, r3, #805306368 ; 0x30000000
- 8002abe: 2b00 cmp r3, #0
- 8002ac0: d12c bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
- (hadc->Init.ContinuousConvMode == DISABLE) &&
- 8002ac2: 68fb ldr r3, [r7, #12]
- 8002ac4: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
- if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
- 8002ac8: 2b00 cmp r3, #0
- 8002aca: d127 bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
- (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ||
- 8002acc: 68fb ldr r3, [r7, #12]
- 8002ace: 681b ldr r3, [r3, #0]
- 8002ad0: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002ad2: f003 73f8 and.w r3, r3, #32505856 ; 0x1f00000
- (hadc->Init.ContinuousConvMode == DISABLE) &&
- 8002ad6: 2b00 cmp r3, #0
- 8002ad8: d006 beq.n 8002ae8 <ADC_DMAConvCplt+0x5a>
- HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) )
- 8002ada: 68fb ldr r3, [r7, #12]
- 8002adc: 681b ldr r3, [r3, #0]
- 8002ade: 689b ldr r3, [r3, #8]
- 8002ae0: f403 6380 and.w r3, r3, #1024 ; 0x400
- (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ||
- 8002ae4: 2b00 cmp r3, #0
- 8002ae6: d119 bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
- {
- /* Disable ADC end of single conversion interrupt on group regular */
- /* Note: Overrun interrupt was enabled with EOC interrupt in */
- /* HAL_ADC_Start_IT(), but is not disabled here because can be used */
- /* by overrun IRQ process below. */
- __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
- 8002ae8: 68fb ldr r3, [r7, #12]
- 8002aea: 681b ldr r3, [r3, #0]
- 8002aec: 685a ldr r2, [r3, #4]
- 8002aee: 68fb ldr r3, [r7, #12]
- 8002af0: 681b ldr r3, [r3, #0]
- 8002af2: f022 0220 bic.w r2, r2, #32
- 8002af6: 605a str r2, [r3, #4]
-
- /* Set ADC state */
- CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
- 8002af8: 68fb ldr r3, [r7, #12]
- 8002afa: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002afc: f423 7280 bic.w r2, r3, #256 ; 0x100
- 8002b00: 68fb ldr r3, [r7, #12]
- 8002b02: 64da str r2, [r3, #76] ; 0x4c
-
- if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
- 8002b04: 68fb ldr r3, [r7, #12]
- 8002b06: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002b08: f403 5380 and.w r3, r3, #4096 ; 0x1000
- 8002b0c: 2b00 cmp r3, #0
- 8002b0e: d105 bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
- {
- SET_BIT(hadc->State, HAL_ADC_STATE_READY);
- 8002b10: 68fb ldr r3, [r7, #12]
- 8002b12: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002b14: f043 0201 orr.w r2, r3, #1
- 8002b18: 68fb ldr r3, [r7, #12]
- 8002b1a: 64da str r2, [r3, #76] ; 0x4c
-
- /* Conversion complete callback */
- #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
- hadc->ConvCpltCallback(hadc);
- #else
- HAL_ADC_ConvCpltCallback(hadc);
- 8002b1c: 68f8 ldr r0, [r7, #12]
- 8002b1e: f7ff fdae bl 800267e <HAL_ADC_ConvCpltCallback>
- else
- {
- /* Call DMA error callback */
- hadc->DMA_Handle->XferErrorCallback(hdma);
- }
- }
- 8002b22: e004 b.n 8002b2e <ADC_DMAConvCplt+0xa0>
- hadc->DMA_Handle->XferErrorCallback(hdma);
- 8002b24: 68fb ldr r3, [r7, #12]
- 8002b26: 6c5b ldr r3, [r3, #68] ; 0x44
- 8002b28: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002b2a: 6878 ldr r0, [r7, #4]
- 8002b2c: 4798 blx r3
- }
- 8002b2e: bf00 nop
- 8002b30: 3710 adds r7, #16
- 8002b32: 46bd mov sp, r7
- 8002b34: bd80 pop {r7, pc}
- 08002b36 <ADC_DMAHalfConvCplt>:
- * @brief DMA half transfer complete callback.
- * @param hdma pointer to DMA handle.
- * @retval None
- */
- static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
- {
- 8002b36: b580 push {r7, lr}
- 8002b38: b084 sub sp, #16
- 8002b3a: af00 add r7, sp, #0
- 8002b3c: 6078 str r0, [r7, #4]
- /* Retrieve ADC handle corresponding to current DMA handle */
- ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
- 8002b3e: 687b ldr r3, [r7, #4]
- 8002b40: 6a5b ldr r3, [r3, #36] ; 0x24
- 8002b42: 60fb str r3, [r7, #12]
-
- /* Half conversion callback */
- #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
- hadc->ConvHalfCpltCallback(hadc);
- #else
- HAL_ADC_ConvHalfCpltCallback(hadc);
- 8002b44: 68f8 ldr r0, [r7, #12]
- 8002b46: f7ff fda3 bl 8002690 <HAL_ADC_ConvHalfCpltCallback>
- #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
- }
- 8002b4a: bf00 nop
- 8002b4c: 3710 adds r7, #16
- 8002b4e: 46bd mov sp, r7
- 8002b50: bd80 pop {r7, pc}
- 08002b52 <ADC_DMAError>:
- * @brief DMA error callback
- * @param hdma pointer to DMA handle.
- * @retval None
- */
- static void ADC_DMAError(DMA_HandleTypeDef *hdma)
- {
- 8002b52: b580 push {r7, lr}
- 8002b54: b084 sub sp, #16
- 8002b56: af00 add r7, sp, #0
- 8002b58: 6078 str r0, [r7, #4]
- /* Retrieve ADC handle corresponding to current DMA handle */
- ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
- 8002b5a: 687b ldr r3, [r7, #4]
- 8002b5c: 6a5b ldr r3, [r3, #36] ; 0x24
- 8002b5e: 60fb str r3, [r7, #12]
-
- /* Set ADC state */
- SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
- 8002b60: 68fb ldr r3, [r7, #12]
- 8002b62: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8002b64: f043 0240 orr.w r2, r3, #64 ; 0x40
- 8002b68: 68fb ldr r3, [r7, #12]
- 8002b6a: 64da str r2, [r3, #76] ; 0x4c
-
- /* Set ADC error code to DMA error */
- SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
- 8002b6c: 68fb ldr r3, [r7, #12]
- 8002b6e: 6d1b ldr r3, [r3, #80] ; 0x50
- 8002b70: f043 0204 orr.w r2, r3, #4
- 8002b74: 68fb ldr r3, [r7, #12]
- 8002b76: 651a str r2, [r3, #80] ; 0x50
-
- /* Error callback */
- #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
- hadc->ErrorCallback(hadc);
- #else
- HAL_ADC_ErrorCallback(hadc);
- 8002b78: 68f8 ldr r0, [r7, #12]
- 8002b7a: f7ff fd92 bl 80026a2 <HAL_ADC_ErrorCallback>
- #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
- }
- 8002b7e: bf00 nop
- 8002b80: 3710 adds r7, #16
- 8002b82: 46bd mov sp, r7
- 8002b84: bd80 pop {r7, pc}
- ...
- 08002b88 <HAL_COMP_Init>:
- * To unlock the configuration, perform a system reset.
- * @param hcomp COMP handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
- {
- 8002b88: b580 push {r7, lr}
- 8002b8a: b084 sub sp, #16
- 8002b8c: af00 add r7, sp, #0
- 8002b8e: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef status = HAL_OK;
- 8002b90: 2300 movs r3, #0
- 8002b92: 73fb strb r3, [r7, #15]
-
- /* Check the COMP handle allocation and lock status */
- if((hcomp == NULL) || ((hcomp->State & COMP_STATE_BIT_LOCK) != RESET))
- 8002b94: 687b ldr r3, [r7, #4]
- 8002b96: 2b00 cmp r3, #0
- 8002b98: d007 beq.n 8002baa <HAL_COMP_Init+0x22>
- 8002b9a: 687b ldr r3, [r7, #4]
- 8002b9c: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8002ba0: b2db uxtb r3, r3
- 8002ba2: f003 0310 and.w r3, r3, #16
- 8002ba6: 2b00 cmp r3, #0
- 8002ba8: d002 beq.n 8002bb0 <HAL_COMP_Init+0x28>
- {
- status = HAL_ERROR;
- 8002baa: 2301 movs r3, #1
- 8002bac: 73fb strb r3, [r7, #15]
- 8002bae: e09e b.n 8002cee <HAL_COMP_Init+0x166>
- }
-
- /* In window mode, non-inverting inputs of the 2 comparators are */
- /* connected together and are using inputs of COMP2 only. If COMP1 is */
- /* selected, this parameter is discarded. */
- if ((hcomp->Init.WindowMode == COMP_WINDOWMODE_DISABLE) ||
- 8002bb0: 687b ldr r3, [r7, #4]
- 8002bb2: 695b ldr r3, [r3, #20]
- 8002bb4: 2b00 cmp r3, #0
- assert_param(IS_COMP_NONINVERTINGINPUT(hcomp->Init.NonInvertingInput));
- }
-
-
- /* Enable SYSCFG clock and the low level hardware to access comparators */
- if(hcomp->State == HAL_COMP_STATE_RESET)
- 8002bb6: 687b ldr r3, [r7, #4]
- 8002bb8: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8002bbc: b2db uxtb r3, r3
- 8002bbe: 2b00 cmp r3, #0
- 8002bc0: d112 bne.n 8002be8 <HAL_COMP_Init+0x60>
- {
- /* Allocate lock resource and initialize it */
- hcomp->Lock = HAL_UNLOCKED;
- 8002bc2: 687b ldr r3, [r7, #4]
- 8002bc4: 2200 movs r2, #0
- 8002bc6: f883 2020 strb.w r2, [r3, #32]
- /* Enable SYSCFG clock to control the routing Interface (RI) */
- __HAL_RCC_SYSCFG_CLK_ENABLE();
- 8002bca: 4b4b ldr r3, [pc, #300] ; (8002cf8 <HAL_COMP_Init+0x170>)
- 8002bcc: 6a1b ldr r3, [r3, #32]
- 8002bce: 4a4a ldr r2, [pc, #296] ; (8002cf8 <HAL_COMP_Init+0x170>)
- 8002bd0: f043 0301 orr.w r3, r3, #1
- 8002bd4: 6213 str r3, [r2, #32]
- 8002bd6: 4b48 ldr r3, [pc, #288] ; (8002cf8 <HAL_COMP_Init+0x170>)
- 8002bd8: 6a1b ldr r3, [r3, #32]
- 8002bda: f003 0301 and.w r3, r3, #1
- 8002bde: 60bb str r3, [r7, #8]
- 8002be0: 68bb ldr r3, [r7, #8]
-
- /* Init the low level hardware */
- hcomp->MspInitCallback(hcomp);
- #else
- /* Init the low level hardware */
- HAL_COMP_MspInit(hcomp);
- 8002be2: 6878 ldr r0, [r7, #4]
- 8002be4: f7fe ffaa bl 8001b3c <HAL_COMP_MspInit>
- /* - Window mode */
- /* - Mode fast/slow speed */
- /* - Inverting input pull-up/down resistors */
-
- /* Configuration depending on comparator instance */
- if (hcomp->Instance == COMP1)
- 8002be8: 687b ldr r3, [r7, #4]
- 8002bea: 681b ldr r3, [r3, #0]
- 8002bec: 4a43 ldr r2, [pc, #268] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002bee: 4293 cmp r3, r2
- 8002bf0: d109 bne.n 8002c06 <HAL_COMP_Init+0x7e>
- {
- MODIFY_REG(COMP->CSR, COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU,
- 8002bf2: 4b42 ldr r3, [pc, #264] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002bf4: 681b ldr r3, [r3, #0]
- 8002bf6: f023 020f bic.w r2, r3, #15
- 8002bfa: 687b ldr r3, [r7, #4]
- 8002bfc: 69db ldr r3, [r3, #28]
- 8002bfe: 493f ldr r1, [pc, #252] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c00: 4313 orrs r3, r2
- 8002c02: 600b str r3, [r1, #0]
- 8002c04: e03f b.n 8002c86 <HAL_COMP_Init+0xfe>
- /* "hcomp->Init.InvertingInput") is configured into function */
- /* "HAL_COMP_Start()" since inverting input selection also */
- /* enables the comparator 2. */
- /* If comparator 2 is already enabled, inverting input is */
- /* reconfigured on the fly. */
- if (__COMP_IS_ENABLED(hcomp) == RESET)
- 8002c06: 687b ldr r3, [r7, #4]
- 8002c08: 681b ldr r3, [r3, #0]
- 8002c0a: 4a3c ldr r2, [pc, #240] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c0c: 4293 cmp r3, r2
- 8002c0e: d109 bne.n 8002c24 <HAL_COMP_Init+0x9c>
- 8002c10: 4b3a ldr r3, [pc, #232] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c12: 681b ldr r3, [r3, #0]
- 8002c14: f003 0310 and.w r3, r3, #16
- 8002c18: 2b10 cmp r3, #16
- 8002c1a: bf14 ite ne
- 8002c1c: 2301 movne r3, #1
- 8002c1e: 2300 moveq r3, #0
- 8002c20: b2db uxtb r3, r3
- 8002c22: e008 b.n 8002c36 <HAL_COMP_Init+0xae>
- 8002c24: 4b35 ldr r3, [pc, #212] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c26: 681b ldr r3, [r3, #0]
- 8002c28: f403 13e0 and.w r3, r3, #1835008 ; 0x1c0000
- 8002c2c: 2b00 cmp r3, #0
- 8002c2e: bf0c ite eq
- 8002c30: 2301 moveq r3, #1
- 8002c32: 2300 movne r3, #0
- 8002c34: b2db uxtb r3, r3
- 8002c36: 2b00 cmp r3, #0
- 8002c38: d011 beq.n 8002c5e <HAL_COMP_Init+0xd6>
- {
- MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL |
- 8002c3a: 4b30 ldr r3, [pc, #192] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c3c: 681b ldr r3, [r3, #0]
- 8002c3e: f423 0362 bic.w r3, r3, #14811136 ; 0xe20000
- 8002c42: f423 5380 bic.w r3, r3, #4096 ; 0x1000
- 8002c46: 687a ldr r2, [r7, #4]
- 8002c48: 68d1 ldr r1, [r2, #12]
- 8002c4a: 687a ldr r2, [r7, #4]
- 8002c4c: 6952 ldr r2, [r2, #20]
- 8002c4e: 4311 orrs r1, r2
- 8002c50: 687a ldr r2, [r7, #4]
- 8002c52: 6912 ldr r2, [r2, #16]
- 8002c54: 430a orrs r2, r1
- 8002c56: 4929 ldr r1, [pc, #164] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c58: 4313 orrs r3, r2
- 8002c5a: 600b str r3, [r1, #0]
- 8002c5c: e013 b.n 8002c86 <HAL_COMP_Init+0xfe>
- hcomp->Init.WindowMode |
- hcomp->Init.Mode );
- }
- else
- {
- MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL |
- 8002c5e: 4b27 ldr r3, [pc, #156] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c60: 681b ldr r3, [r3, #0]
- 8002c62: f423 037e bic.w r3, r3, #16646144 ; 0xfe0000
- 8002c66: f423 5380 bic.w r3, r3, #4096 ; 0x1000
- 8002c6a: 687a ldr r2, [r7, #4]
- 8002c6c: 68d1 ldr r1, [r2, #12]
- 8002c6e: 687a ldr r2, [r7, #4]
- 8002c70: 6852 ldr r2, [r2, #4]
- 8002c72: 4311 orrs r1, r2
- 8002c74: 687a ldr r2, [r7, #4]
- 8002c76: 6952 ldr r2, [r2, #20]
- 8002c78: 4311 orrs r1, r2
- 8002c7a: 687a ldr r2, [r7, #4]
- 8002c7c: 6912 ldr r2, [r2, #16]
- 8002c7e: 430a orrs r2, r1
- 8002c80: 491e ldr r1, [pc, #120] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c82: 4313 orrs r3, r2
- 8002c84: 600b str r3, [r1, #0]
- }
- }
- else
- #endif
- {
- if (__COMP_ROUTING_INTERFACE_TOBECONFIGURED(hcomp))
- 8002c86: 687b ldr r3, [r7, #4]
- 8002c88: 689b ldr r3, [r3, #8]
- 8002c8a: 2b00 cmp r3, #0
- 8002c8c: d025 beq.n 8002cda <HAL_COMP_Init+0x152>
- {
- if (hcomp->Instance == COMP1)
- 8002c8e: 687b ldr r3, [r7, #4]
- 8002c90: 681b ldr r3, [r3, #0]
- 8002c92: 4a1a ldr r2, [pc, #104] ; (8002cfc <HAL_COMP_Init+0x174>)
- 8002c94: 4293 cmp r3, r2
- 8002c96: d10b bne.n 8002cb0 <HAL_COMP_Init+0x128>
- {
- /* Enable the switch control mode */
- __HAL_RI_SWITCHCONTROLMODE_ENABLE();
- 8002c98: 4b19 ldr r3, [pc, #100] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002c9a: 685b ldr r3, [r3, #4]
- 8002c9c: 4a18 ldr r2, [pc, #96] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002c9e: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
- 8002ca2: 6053 str r3, [r2, #4]
- /* Close the analog switch of ADC switch matrix to COMP1 (ADC */
- /* channel 26: Vcomp) */
- __HAL_RI_IOSWITCH_CLOSE(RI_IOSWITCH_VCOMP);
- 8002ca4: 4b16 ldr r3, [pc, #88] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002ca6: 685b ldr r3, [r3, #4]
- 8002ca8: 4a15 ldr r2, [pc, #84] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002caa: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000
- 8002cae: 6053 str r3, [r2, #4]
- }
- /* Close the I/O analog switch corresponding to comparator */
- /* non-inverting input selected. */
- __HAL_RI_IOSWITCH_CLOSE(hcomp->Init.NonInvertingInput);
- 8002cb0: 687b ldr r3, [r7, #4]
- 8002cb2: 689b ldr r3, [r3, #8]
- 8002cb4: 2b00 cmp r3, #0
- 8002cb6: da09 bge.n 8002ccc <HAL_COMP_Init+0x144>
- 8002cb8: 4b11 ldr r3, [pc, #68] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002cba: 685a ldr r2, [r3, #4]
- 8002cbc: 687b ldr r3, [r7, #4]
- 8002cbe: 689b ldr r3, [r3, #8]
- 8002cc0: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
- 8002cc4: 490e ldr r1, [pc, #56] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002cc6: 4313 orrs r3, r2
- 8002cc8: 604b str r3, [r1, #4]
- 8002cca: e006 b.n 8002cda <HAL_COMP_Init+0x152>
- 8002ccc: 4b0c ldr r3, [pc, #48] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002cce: 689a ldr r2, [r3, #8]
- 8002cd0: 687b ldr r3, [r7, #4]
- 8002cd2: 689b ldr r3, [r3, #8]
- 8002cd4: 490a ldr r1, [pc, #40] ; (8002d00 <HAL_COMP_Init+0x178>)
- 8002cd6: 4313 orrs r3, r2
- 8002cd8: 608b str r3, [r1, #8]
- }
- }
-
- /* Initialize the COMP state*/
- if(hcomp->State == HAL_COMP_STATE_RESET)
- 8002cda: 687b ldr r3, [r7, #4]
- 8002cdc: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8002ce0: b2db uxtb r3, r3
- 8002ce2: 2b00 cmp r3, #0
- 8002ce4: d103 bne.n 8002cee <HAL_COMP_Init+0x166>
- {
- hcomp->State = HAL_COMP_STATE_READY;
- 8002ce6: 687b ldr r3, [r7, #4]
- 8002ce8: 2201 movs r2, #1
- 8002cea: f883 2021 strb.w r2, [r3, #33] ; 0x21
- }
- }
-
- return status;
- 8002cee: 7bfb ldrb r3, [r7, #15]
- }
- 8002cf0: 4618 mov r0, r3
- 8002cf2: 3710 adds r7, #16
- 8002cf4: 46bd mov sp, r7
- 8002cf6: bd80 pop {r7, pc}
- 8002cf8: 40023800 .word 0x40023800
- 8002cfc: 40007c00 .word 0x40007c00
- 8002d00: 40007c04 .word 0x40007c04
- 08002d04 <HAL_COMP_Start>:
- * @brief Start the comparator
- * @param hcomp COMP handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
- {
- 8002d04: b480 push {r7}
- 8002d06: b087 sub sp, #28
- 8002d08: af00 add r7, sp, #0
- 8002d0a: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef status = HAL_OK;
- 8002d0c: 2300 movs r3, #0
- 8002d0e: 75fb strb r3, [r7, #23]
- uint32_t wait_loop_cycles = 0;
- 8002d10: 2300 movs r3, #0
- 8002d12: 613b str r3, [r7, #16]
- __IO uint32_t wait_loop_index = 0;
- 8002d14: 2300 movs r3, #0
- 8002d16: 60fb str r3, [r7, #12]
-
- /* Check the COMP handle allocation and lock status */
- if((hcomp == NULL) || ((hcomp->State & COMP_STATE_BIT_LOCK) != RESET))
- 8002d18: 687b ldr r3, [r7, #4]
- 8002d1a: 2b00 cmp r3, #0
- 8002d1c: d007 beq.n 8002d2e <HAL_COMP_Start+0x2a>
- 8002d1e: 687b ldr r3, [r7, #4]
- 8002d20: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8002d24: b2db uxtb r3, r3
- 8002d26: f003 0310 and.w r3, r3, #16
- 8002d2a: 2b00 cmp r3, #0
- 8002d2c: d002 beq.n 8002d34 <HAL_COMP_Start+0x30>
- {
- status = HAL_ERROR;
- 8002d2e: 2301 movs r3, #1
- 8002d30: 75fb strb r3, [r7, #23]
- 8002d32: e034 b.n 8002d9e <HAL_COMP_Start+0x9a>
- else
- {
- /* Check the parameter */
- assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
- if(hcomp->State == HAL_COMP_STATE_READY)
- 8002d34: 687b ldr r3, [r7, #4]
- 8002d36: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8002d3a: b2db uxtb r3, r3
- 8002d3c: 2b01 cmp r3, #1
- 8002d3e: d12c bne.n 8002d9a <HAL_COMP_Start+0x96>
-
- /* Note: For comparator 2, inverting input (parameter */
- /* "hcomp->Init.InvertingInput") is configured into this */
- /* function instead of function "HAL_COMP_Init()" since */
- /* inverting input selection also enables the comparator 2. */
- __HAL_COMP_ENABLE(hcomp);
- 8002d40: 687b ldr r3, [r7, #4]
- 8002d42: 681b ldr r3, [r3, #0]
- 8002d44: 4a19 ldr r2, [pc, #100] ; (8002dac <HAL_COMP_Start+0xa8>)
- 8002d46: 4293 cmp r3, r2
- 8002d48: d106 bne.n 8002d58 <HAL_COMP_Start+0x54>
- 8002d4a: 4b18 ldr r3, [pc, #96] ; (8002dac <HAL_COMP_Start+0xa8>)
- 8002d4c: 681b ldr r3, [r3, #0]
- 8002d4e: 4a17 ldr r2, [pc, #92] ; (8002dac <HAL_COMP_Start+0xa8>)
- 8002d50: f043 0310 orr.w r3, r3, #16
- 8002d54: 6013 str r3, [r2, #0]
- 8002d56: e008 b.n 8002d6a <HAL_COMP_Start+0x66>
- 8002d58: 4b14 ldr r3, [pc, #80] ; (8002dac <HAL_COMP_Start+0xa8>)
- 8002d5a: 681b ldr r3, [r3, #0]
- 8002d5c: f423 12e0 bic.w r2, r3, #1835008 ; 0x1c0000
- 8002d60: 687b ldr r3, [r7, #4]
- 8002d62: 685b ldr r3, [r3, #4]
- 8002d64: 4911 ldr r1, [pc, #68] ; (8002dac <HAL_COMP_Start+0xa8>)
- 8002d66: 4313 orrs r3, r2
- 8002d68: 600b str r3, [r1, #0]
- /* Set delay for COMP start-up time */
- if (hcomp->Instance == COMP1)
- 8002d6a: 687b ldr r3, [r7, #4]
- 8002d6c: 681b ldr r3, [r3, #0]
- 8002d6e: 4a0f ldr r2, [pc, #60] ; (8002dac <HAL_COMP_Start+0xa8>)
- 8002d70: 4293 cmp r3, r2
- 8002d72: d102 bne.n 8002d7a <HAL_COMP_Start+0x76>
- {
- wait_loop_cycles = COMP1_START_DELAY_CPU_CYCLES;
- 8002d74: 236a movs r3, #106 ; 0x6a
- 8002d76: 613b str r3, [r7, #16]
- 8002d78: e006 b.n 8002d88 <HAL_COMP_Start+0x84>
- }
- else /* if (hcomp->Instance == COMP2) */
- {
- wait_loop_cycles = COMP2_START_DELAY_CPU_CYCLES;
- 8002d7a: f44f 7385 mov.w r3, #266 ; 0x10a
- 8002d7e: 613b str r3, [r7, #16]
- }
- /* Delay for COMP start-up time. */
- /* Delay fixed to worst case: maximum CPU frequency */
- while(wait_loop_index < wait_loop_cycles)
- 8002d80: e002 b.n 8002d88 <HAL_COMP_Start+0x84>
- {
- wait_loop_index++;
- 8002d82: 68fb ldr r3, [r7, #12]
- 8002d84: 3301 adds r3, #1
- 8002d86: 60fb str r3, [r7, #12]
- while(wait_loop_index < wait_loop_cycles)
- 8002d88: 68fb ldr r3, [r7, #12]
- 8002d8a: 693a ldr r2, [r7, #16]
- 8002d8c: 429a cmp r2, r3
- 8002d8e: d8f8 bhi.n 8002d82 <HAL_COMP_Start+0x7e>
- }
- /* Update COMP state */
- hcomp->State = HAL_COMP_STATE_BUSY;
- 8002d90: 687b ldr r3, [r7, #4]
- 8002d92: 2202 movs r2, #2
- 8002d94: f883 2021 strb.w r2, [r3, #33] ; 0x21
- 8002d98: e001 b.n 8002d9e <HAL_COMP_Start+0x9a>
-
- }
- else
- {
- status = HAL_ERROR;
- 8002d9a: 2301 movs r3, #1
- 8002d9c: 75fb strb r3, [r7, #23]
- }
- }
- return status;
- 8002d9e: 7dfb ldrb r3, [r7, #23]
- }
- 8002da0: 4618 mov r0, r3
- 8002da2: 371c adds r7, #28
- 8002da4: 46bd mov sp, r7
- 8002da6: bc80 pop {r7}
- 8002da8: 4770 bx lr
- 8002daa: bf00 nop
- 8002dac: 40007c00 .word 0x40007c00
- 08002db0 <HAL_COMP_Start_IT>:
- * @brief Enables the interrupt and starts the comparator
- * @param hcomp COMP handle
- * @retval HAL status.
- */
- HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp)
- {
- 8002db0: b580 push {r7, lr}
- 8002db2: b084 sub sp, #16
- 8002db4: af00 add r7, sp, #0
- 8002db6: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef status = HAL_OK;
- 8002db8: 2300 movs r3, #0
- 8002dba: 73fb strb r3, [r7, #15]
- uint32_t extiline = 0;
- 8002dbc: 2300 movs r3, #0
- 8002dbe: 60bb str r3, [r7, #8]
-
- status = HAL_COMP_Start(hcomp);
- 8002dc0: 6878 ldr r0, [r7, #4]
- 8002dc2: f7ff ff9f bl 8002d04 <HAL_COMP_Start>
- 8002dc6: 4603 mov r3, r0
- 8002dc8: 73fb strb r3, [r7, #15]
- if(status == HAL_OK)
- 8002dca: 7bfb ldrb r3, [r7, #15]
- 8002dcc: 2b00 cmp r3, #0
- 8002dce: d13b bne.n 8002e48 <HAL_COMP_Start_IT+0x98>
- {
- /* Check the parameter */
- assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
-
- /* Get the Exti Line output configuration */
- extiline = COMP_GET_EXTI_LINE(hcomp->Instance);
- 8002dd0: 687b ldr r3, [r7, #4]
- 8002dd2: 681b ldr r3, [r3, #0]
- 8002dd4: 4a1f ldr r2, [pc, #124] ; (8002e54 <HAL_COMP_Start_IT+0xa4>)
- 8002dd6: 4293 cmp r3, r2
- 8002dd8: d102 bne.n 8002de0 <HAL_COMP_Start_IT+0x30>
- 8002dda: f44f 1300 mov.w r3, #2097152 ; 0x200000
- 8002dde: e001 b.n 8002de4 <HAL_COMP_Start_IT+0x34>
- 8002de0: f44f 0380 mov.w r3, #4194304 ; 0x400000
- 8002de4: 60bb str r3, [r7, #8]
-
- /* Configure the trigger rising edge */
- if((hcomp->Init.TriggerMode & COMP_TRIGGERMODE_IT_RISING) != RESET)
- 8002de6: 687b ldr r3, [r7, #4]
- 8002de8: 699b ldr r3, [r3, #24]
- 8002dea: f003 0301 and.w r3, r3, #1
- 8002dee: 2b00 cmp r3, #0
- 8002df0: d006 beq.n 8002e00 <HAL_COMP_Start_IT+0x50>
- {
- SET_BIT(EXTI->RTSR, extiline);
- 8002df2: 4b19 ldr r3, [pc, #100] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002df4: 689a ldr r2, [r3, #8]
- 8002df6: 4918 ldr r1, [pc, #96] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002df8: 68bb ldr r3, [r7, #8]
- 8002dfa: 4313 orrs r3, r2
- 8002dfc: 608b str r3, [r1, #8]
- 8002dfe: e006 b.n 8002e0e <HAL_COMP_Start_IT+0x5e>
- }
- else
- {
- CLEAR_BIT(EXTI->RTSR, extiline);
- 8002e00: 4b15 ldr r3, [pc, #84] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e02: 689a ldr r2, [r3, #8]
- 8002e04: 68bb ldr r3, [r7, #8]
- 8002e06: 43db mvns r3, r3
- 8002e08: 4913 ldr r1, [pc, #76] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e0a: 4013 ands r3, r2
- 8002e0c: 608b str r3, [r1, #8]
- }
-
- /* Configure the trigger falling edge */
- if((hcomp->Init.TriggerMode & COMP_TRIGGERMODE_IT_FALLING) != RESET)
- 8002e0e: 687b ldr r3, [r7, #4]
- 8002e10: 699b ldr r3, [r3, #24]
- 8002e12: f003 0302 and.w r3, r3, #2
- 8002e16: 2b00 cmp r3, #0
- 8002e18: d006 beq.n 8002e28 <HAL_COMP_Start_IT+0x78>
- {
- SET_BIT(EXTI->FTSR, extiline);
- 8002e1a: 4b0f ldr r3, [pc, #60] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e1c: 68da ldr r2, [r3, #12]
- 8002e1e: 490e ldr r1, [pc, #56] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e20: 68bb ldr r3, [r7, #8]
- 8002e22: 4313 orrs r3, r2
- 8002e24: 60cb str r3, [r1, #12]
- 8002e26: e006 b.n 8002e36 <HAL_COMP_Start_IT+0x86>
- }
- else
- {
- CLEAR_BIT(EXTI->FTSR, extiline);
- 8002e28: 4b0b ldr r3, [pc, #44] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e2a: 68da ldr r2, [r3, #12]
- 8002e2c: 68bb ldr r3, [r7, #8]
- 8002e2e: 43db mvns r3, r3
- 8002e30: 4909 ldr r1, [pc, #36] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e32: 4013 ands r3, r2
- 8002e34: 60cb str r3, [r1, #12]
- }
-
- /* Clear COMP EXTI pending bit */
- WRITE_REG(EXTI->PR, extiline);
- 8002e36: 4a08 ldr r2, [pc, #32] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e38: 68bb ldr r3, [r7, #8]
- 8002e3a: 6153 str r3, [r2, #20]
-
- /* Enable EXTI interrupt mode */
- SET_BIT(EXTI->IMR, extiline);
- 8002e3c: 4b06 ldr r3, [pc, #24] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e3e: 681a ldr r2, [r3, #0]
- 8002e40: 4905 ldr r1, [pc, #20] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
- 8002e42: 68bb ldr r3, [r7, #8]
- 8002e44: 4313 orrs r3, r2
- 8002e46: 600b str r3, [r1, #0]
-
- }
- return status;
- 8002e48: 7bfb ldrb r3, [r7, #15]
- }
- 8002e4a: 4618 mov r0, r3
- 8002e4c: 3710 adds r7, #16
- 8002e4e: 46bd mov sp, r7
- 8002e50: bd80 pop {r7, pc}
- 8002e52: bf00 nop
- 8002e54: 40007c00 .word 0x40007c00
- 8002e58: 40010400 .word 0x40010400
- 08002e5c <HAL_COMP_IRQHandler>:
- * @brief Comparator IRQ Handler
- * @param hcomp COMP handle
- * @retval HAL status
- */
- void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp)
- {
- 8002e5c: b580 push {r7, lr}
- 8002e5e: b084 sub sp, #16
- 8002e60: af00 add r7, sp, #0
- 8002e62: 6078 str r0, [r7, #4]
- uint32_t extiline = COMP_GET_EXTI_LINE(hcomp->Instance);
- 8002e64: 687b ldr r3, [r7, #4]
- 8002e66: 681b ldr r3, [r3, #0]
- 8002e68: 4a0c ldr r2, [pc, #48] ; (8002e9c <HAL_COMP_IRQHandler+0x40>)
- 8002e6a: 4293 cmp r3, r2
- 8002e6c: d102 bne.n 8002e74 <HAL_COMP_IRQHandler+0x18>
- 8002e6e: f44f 1300 mov.w r3, #2097152 ; 0x200000
- 8002e72: e001 b.n 8002e78 <HAL_COMP_IRQHandler+0x1c>
- 8002e74: f44f 0380 mov.w r3, #4194304 ; 0x400000
- 8002e78: 60fb str r3, [r7, #12]
-
- /* Check COMP Exti flag */
- if(READ_BIT(EXTI->PR, extiline) != RESET)
- 8002e7a: 4b09 ldr r3, [pc, #36] ; (8002ea0 <HAL_COMP_IRQHandler+0x44>)
- 8002e7c: 695a ldr r2, [r3, #20]
- 8002e7e: 68fb ldr r3, [r7, #12]
- 8002e80: 4013 ands r3, r2
- 8002e82: 2b00 cmp r3, #0
- 8002e84: d005 beq.n 8002e92 <HAL_COMP_IRQHandler+0x36>
- {
- /* Clear COMP EXTI pending bit */
- WRITE_REG(EXTI->PR, extiline);
- 8002e86: 4a06 ldr r2, [pc, #24] ; (8002ea0 <HAL_COMP_IRQHandler+0x44>)
- 8002e88: 68fb ldr r3, [r7, #12]
- 8002e8a: 6153 str r3, [r2, #20]
- /* COMP trigger callback */
- #if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
- hcomp->TriggerCallback(hcomp);
- #else
- HAL_COMP_TriggerCallback(hcomp);
- 8002e8c: 6878 ldr r0, [r7, #4]
- 8002e8e: f7fe f89d bl 8000fcc <HAL_COMP_TriggerCallback>
- #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
- }
- }
- 8002e92: bf00 nop
- 8002e94: 3710 adds r7, #16
- 8002e96: 46bd mov sp, r7
- 8002e98: bd80 pop {r7, pc}
- 8002e9a: bf00 nop
- 8002e9c: 40007c00 .word 0x40007c00
- 8002ea0: 40010400 .word 0x40010400
- 08002ea4 <__NVIC_SetPriorityGrouping>:
- In case of a conflict between priority grouping and available
- priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
- \param [in] PriorityGroup Priority grouping field.
- */
- __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
- {
- 8002ea4: b480 push {r7}
- 8002ea6: b085 sub sp, #20
- 8002ea8: af00 add r7, sp, #0
- 8002eaa: 6078 str r0, [r7, #4]
- uint32_t reg_value;
- uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
- 8002eac: 687b ldr r3, [r7, #4]
- 8002eae: f003 0307 and.w r3, r3, #7
- 8002eb2: 60fb str r3, [r7, #12]
- reg_value = SCB->AIRCR; /* read old register configuration */
- 8002eb4: 4b0c ldr r3, [pc, #48] ; (8002ee8 <__NVIC_SetPriorityGrouping+0x44>)
- 8002eb6: 68db ldr r3, [r3, #12]
- 8002eb8: 60bb str r3, [r7, #8]
- reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
- 8002eba: 68ba ldr r2, [r7, #8]
- 8002ebc: f64f 03ff movw r3, #63743 ; 0xf8ff
- 8002ec0: 4013 ands r3, r2
- 8002ec2: 60bb str r3, [r7, #8]
- reg_value = (reg_value |
- ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
- (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
- 8002ec4: 68fb ldr r3, [r7, #12]
- 8002ec6: 021a lsls r2, r3, #8
- ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
- 8002ec8: 68bb ldr r3, [r7, #8]
- 8002eca: 4313 orrs r3, r2
- reg_value = (reg_value |
- 8002ecc: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
- 8002ed0: f443 3300 orr.w r3, r3, #131072 ; 0x20000
- 8002ed4: 60bb str r3, [r7, #8]
- SCB->AIRCR = reg_value;
- 8002ed6: 4a04 ldr r2, [pc, #16] ; (8002ee8 <__NVIC_SetPriorityGrouping+0x44>)
- 8002ed8: 68bb ldr r3, [r7, #8]
- 8002eda: 60d3 str r3, [r2, #12]
- }
- 8002edc: bf00 nop
- 8002ede: 3714 adds r7, #20
- 8002ee0: 46bd mov sp, r7
- 8002ee2: bc80 pop {r7}
- 8002ee4: 4770 bx lr
- 8002ee6: bf00 nop
- 8002ee8: e000ed00 .word 0xe000ed00
- 08002eec <__NVIC_GetPriorityGrouping>:
- \brief Get Priority Grouping
- \details Reads the priority grouping field from the NVIC Interrupt Controller.
- \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
- */
- __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
- {
- 8002eec: b480 push {r7}
- 8002eee: af00 add r7, sp, #0
- return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
- 8002ef0: 4b04 ldr r3, [pc, #16] ; (8002f04 <__NVIC_GetPriorityGrouping+0x18>)
- 8002ef2: 68db ldr r3, [r3, #12]
- 8002ef4: 0a1b lsrs r3, r3, #8
- 8002ef6: f003 0307 and.w r3, r3, #7
- }
- 8002efa: 4618 mov r0, r3
- 8002efc: 46bd mov sp, r7
- 8002efe: bc80 pop {r7}
- 8002f00: 4770 bx lr
- 8002f02: bf00 nop
- 8002f04: e000ed00 .word 0xe000ed00
- 08002f08 <__NVIC_EnableIRQ>:
- \details Enables a device specific interrupt in the NVIC interrupt controller.
- \param [in] IRQn Device specific interrupt number.
- \note IRQn must not be negative.
- */
- __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
- {
- 8002f08: b480 push {r7}
- 8002f0a: b083 sub sp, #12
- 8002f0c: af00 add r7, sp, #0
- 8002f0e: 4603 mov r3, r0
- 8002f10: 71fb strb r3, [r7, #7]
- if ((int32_t)(IRQn) >= 0)
- 8002f12: f997 3007 ldrsb.w r3, [r7, #7]
- 8002f16: 2b00 cmp r3, #0
- 8002f18: db0b blt.n 8002f32 <__NVIC_EnableIRQ+0x2a>
- {
- NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
- 8002f1a: 79fb ldrb r3, [r7, #7]
- 8002f1c: f003 021f and.w r2, r3, #31
- 8002f20: 4906 ldr r1, [pc, #24] ; (8002f3c <__NVIC_EnableIRQ+0x34>)
- 8002f22: f997 3007 ldrsb.w r3, [r7, #7]
- 8002f26: 095b lsrs r3, r3, #5
- 8002f28: 2001 movs r0, #1
- 8002f2a: fa00 f202 lsl.w r2, r0, r2
- 8002f2e: f841 2023 str.w r2, [r1, r3, lsl #2]
- }
- }
- 8002f32: bf00 nop
- 8002f34: 370c adds r7, #12
- 8002f36: 46bd mov sp, r7
- 8002f38: bc80 pop {r7}
- 8002f3a: 4770 bx lr
- 8002f3c: e000e100 .word 0xe000e100
- 08002f40 <__NVIC_SetPriority>:
- \param [in] IRQn Interrupt number.
- \param [in] priority Priority to set.
- \note The priority cannot be set for every processor exception.
- */
- __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
- {
- 8002f40: b480 push {r7}
- 8002f42: b083 sub sp, #12
- 8002f44: af00 add r7, sp, #0
- 8002f46: 4603 mov r3, r0
- 8002f48: 6039 str r1, [r7, #0]
- 8002f4a: 71fb strb r3, [r7, #7]
- if ((int32_t)(IRQn) >= 0)
- 8002f4c: f997 3007 ldrsb.w r3, [r7, #7]
- 8002f50: 2b00 cmp r3, #0
- 8002f52: db0a blt.n 8002f6a <__NVIC_SetPriority+0x2a>
- {
- NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
- 8002f54: 683b ldr r3, [r7, #0]
- 8002f56: b2da uxtb r2, r3
- 8002f58: 490c ldr r1, [pc, #48] ; (8002f8c <__NVIC_SetPriority+0x4c>)
- 8002f5a: f997 3007 ldrsb.w r3, [r7, #7]
- 8002f5e: 0112 lsls r2, r2, #4
- 8002f60: b2d2 uxtb r2, r2
- 8002f62: 440b add r3, r1
- 8002f64: f883 2300 strb.w r2, [r3, #768] ; 0x300
- }
- else
- {
- SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
- }
- }
- 8002f68: e00a b.n 8002f80 <__NVIC_SetPriority+0x40>
- SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
- 8002f6a: 683b ldr r3, [r7, #0]
- 8002f6c: b2da uxtb r2, r3
- 8002f6e: 4908 ldr r1, [pc, #32] ; (8002f90 <__NVIC_SetPriority+0x50>)
- 8002f70: 79fb ldrb r3, [r7, #7]
- 8002f72: f003 030f and.w r3, r3, #15
- 8002f76: 3b04 subs r3, #4
- 8002f78: 0112 lsls r2, r2, #4
- 8002f7a: b2d2 uxtb r2, r2
- 8002f7c: 440b add r3, r1
- 8002f7e: 761a strb r2, [r3, #24]
- }
- 8002f80: bf00 nop
- 8002f82: 370c adds r7, #12
- 8002f84: 46bd mov sp, r7
- 8002f86: bc80 pop {r7}
- 8002f88: 4770 bx lr
- 8002f8a: bf00 nop
- 8002f8c: e000e100 .word 0xe000e100
- 8002f90: e000ed00 .word 0xe000ed00
- 08002f94 <NVIC_EncodePriority>:
- \param [in] PreemptPriority Preemptive priority value (starting from 0).
- \param [in] SubPriority Subpriority value (starting from 0).
- \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
- */
- __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
- {
- 8002f94: b480 push {r7}
- 8002f96: b089 sub sp, #36 ; 0x24
- 8002f98: af00 add r7, sp, #0
- 8002f9a: 60f8 str r0, [r7, #12]
- 8002f9c: 60b9 str r1, [r7, #8]
- 8002f9e: 607a str r2, [r7, #4]
- uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
- 8002fa0: 68fb ldr r3, [r7, #12]
- 8002fa2: f003 0307 and.w r3, r3, #7
- 8002fa6: 61fb str r3, [r7, #28]
- uint32_t PreemptPriorityBits;
- uint32_t SubPriorityBits;
- PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
- 8002fa8: 69fb ldr r3, [r7, #28]
- 8002faa: f1c3 0307 rsb r3, r3, #7
- 8002fae: 2b04 cmp r3, #4
- 8002fb0: bf28 it cs
- 8002fb2: 2304 movcs r3, #4
- 8002fb4: 61bb str r3, [r7, #24]
- SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
- 8002fb6: 69fb ldr r3, [r7, #28]
- 8002fb8: 3304 adds r3, #4
- 8002fba: 2b06 cmp r3, #6
- 8002fbc: d902 bls.n 8002fc4 <NVIC_EncodePriority+0x30>
- 8002fbe: 69fb ldr r3, [r7, #28]
- 8002fc0: 3b03 subs r3, #3
- 8002fc2: e000 b.n 8002fc6 <NVIC_EncodePriority+0x32>
- 8002fc4: 2300 movs r3, #0
- 8002fc6: 617b str r3, [r7, #20]
- return (
- ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
- 8002fc8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8002fcc: 69bb ldr r3, [r7, #24]
- 8002fce: fa02 f303 lsl.w r3, r2, r3
- 8002fd2: 43da mvns r2, r3
- 8002fd4: 68bb ldr r3, [r7, #8]
- 8002fd6: 401a ands r2, r3
- 8002fd8: 697b ldr r3, [r7, #20]
- 8002fda: 409a lsls r2, r3
- ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
- 8002fdc: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
- 8002fe0: 697b ldr r3, [r7, #20]
- 8002fe2: fa01 f303 lsl.w r3, r1, r3
- 8002fe6: 43d9 mvns r1, r3
- 8002fe8: 687b ldr r3, [r7, #4]
- 8002fea: 400b ands r3, r1
- ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
- 8002fec: 4313 orrs r3, r2
- );
- }
- 8002fee: 4618 mov r0, r3
- 8002ff0: 3724 adds r7, #36 ; 0x24
- 8002ff2: 46bd mov sp, r7
- 8002ff4: bc80 pop {r7}
- 8002ff6: 4770 bx lr
- 08002ff8 <SysTick_Config>:
- \note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the
- function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
- must contain a vendor-specific implementation of this function.
- */
- __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
- {
- 8002ff8: b580 push {r7, lr}
- 8002ffa: b082 sub sp, #8
- 8002ffc: af00 add r7, sp, #0
- 8002ffe: 6078 str r0, [r7, #4]
- if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
- 8003000: 687b ldr r3, [r7, #4]
- 8003002: 3b01 subs r3, #1
- 8003004: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000
- 8003008: d301 bcc.n 800300e <SysTick_Config+0x16>
- {
- return (1UL); /* Reload value impossible */
- 800300a: 2301 movs r3, #1
- 800300c: e00f b.n 800302e <SysTick_Config+0x36>
- }
- SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
- 800300e: 4a0a ldr r2, [pc, #40] ; (8003038 <SysTick_Config+0x40>)
- 8003010: 687b ldr r3, [r7, #4]
- 8003012: 3b01 subs r3, #1
- 8003014: 6053 str r3, [r2, #4]
- NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
- 8003016: 210f movs r1, #15
- 8003018: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 800301c: f7ff ff90 bl 8002f40 <__NVIC_SetPriority>
- SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
- 8003020: 4b05 ldr r3, [pc, #20] ; (8003038 <SysTick_Config+0x40>)
- 8003022: 2200 movs r2, #0
- 8003024: 609a str r2, [r3, #8]
- SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
- 8003026: 4b04 ldr r3, [pc, #16] ; (8003038 <SysTick_Config+0x40>)
- 8003028: 2207 movs r2, #7
- 800302a: 601a str r2, [r3, #0]
- SysTick_CTRL_TICKINT_Msk |
- SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
- return (0UL); /* Function successful */
- 800302c: 2300 movs r3, #0
- }
- 800302e: 4618 mov r0, r3
- 8003030: 3708 adds r7, #8
- 8003032: 46bd mov sp, r7
- 8003034: bd80 pop {r7, pc}
- 8003036: bf00 nop
- 8003038: e000e010 .word 0xe000e010
- 0800303c <HAL_NVIC_SetPriorityGrouping>:
- * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible.
- * The pending IRQ priority will be managed only by the subpriority.
- * @retval None
- */
- void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
- {
- 800303c: b580 push {r7, lr}
- 800303e: b082 sub sp, #8
- 8003040: af00 add r7, sp, #0
- 8003042: 6078 str r0, [r7, #4]
- /* Check the parameters */
- assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
-
- /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
- NVIC_SetPriorityGrouping(PriorityGroup);
- 8003044: 6878 ldr r0, [r7, #4]
- 8003046: f7ff ff2d bl 8002ea4 <__NVIC_SetPriorityGrouping>
- }
- 800304a: bf00 nop
- 800304c: 3708 adds r7, #8
- 800304e: 46bd mov sp, r7
- 8003050: bd80 pop {r7, pc}
- 08003052 <HAL_NVIC_SetPriority>:
- * This parameter can be a value between 0 and 15
- * A lower priority value indicates a higher priority.
- * @retval None
- */
- void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
- {
- 8003052: b580 push {r7, lr}
- 8003054: b086 sub sp, #24
- 8003056: af00 add r7, sp, #0
- 8003058: 4603 mov r3, r0
- 800305a: 60b9 str r1, [r7, #8]
- 800305c: 607a str r2, [r7, #4]
- 800305e: 73fb strb r3, [r7, #15]
- uint32_t prioritygroup = 0x00;
- 8003060: 2300 movs r3, #0
- 8003062: 617b str r3, [r7, #20]
-
- /* Check the parameters */
- assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
- assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
-
- prioritygroup = NVIC_GetPriorityGrouping();
- 8003064: f7ff ff42 bl 8002eec <__NVIC_GetPriorityGrouping>
- 8003068: 6178 str r0, [r7, #20]
-
- NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
- 800306a: 687a ldr r2, [r7, #4]
- 800306c: 68b9 ldr r1, [r7, #8]
- 800306e: 6978 ldr r0, [r7, #20]
- 8003070: f7ff ff90 bl 8002f94 <NVIC_EncodePriority>
- 8003074: 4602 mov r2, r0
- 8003076: f997 300f ldrsb.w r3, [r7, #15]
- 800307a: 4611 mov r1, r2
- 800307c: 4618 mov r0, r3
- 800307e: f7ff ff5f bl 8002f40 <__NVIC_SetPriority>
- }
- 8003082: bf00 nop
- 8003084: 3718 adds r7, #24
- 8003086: 46bd mov sp, r7
- 8003088: bd80 pop {r7, pc}
- 0800308a <HAL_NVIC_EnableIRQ>:
- * This parameter can be an enumerator of IRQn_Type enumeration
- * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32l1xx.h))
- * @retval None
- */
- void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
- {
- 800308a: b580 push {r7, lr}
- 800308c: b082 sub sp, #8
- 800308e: af00 add r7, sp, #0
- 8003090: 4603 mov r3, r0
- 8003092: 71fb strb r3, [r7, #7]
- /* Check the parameters */
- assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
-
- /* Enable interrupt */
- NVIC_EnableIRQ(IRQn);
- 8003094: f997 3007 ldrsb.w r3, [r7, #7]
- 8003098: 4618 mov r0, r3
- 800309a: f7ff ff35 bl 8002f08 <__NVIC_EnableIRQ>
- }
- 800309e: bf00 nop
- 80030a0: 3708 adds r7, #8
- 80030a2: 46bd mov sp, r7
- 80030a4: bd80 pop {r7, pc}
- 080030a6 <HAL_SYSTICK_Config>:
- * @param TicksNumb Specifies the ticks Number of ticks between two interrupts.
- * @retval status: - 0 Function succeeded.
- * - 1 Function failed.
- */
- uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
- {
- 80030a6: b580 push {r7, lr}
- 80030a8: b082 sub sp, #8
- 80030aa: af00 add r7, sp, #0
- 80030ac: 6078 str r0, [r7, #4]
- return SysTick_Config(TicksNumb);
- 80030ae: 6878 ldr r0, [r7, #4]
- 80030b0: f7ff ffa2 bl 8002ff8 <SysTick_Config>
- 80030b4: 4603 mov r3, r0
- }
- 80030b6: 4618 mov r0, r3
- 80030b8: 3708 adds r7, #8
- 80030ba: 46bd mov sp, r7
- 80030bc: bd80 pop {r7, pc}
- 080030be <HAL_DAC_Init>:
- * @param hdac pointer to a DAC_HandleTypeDef structure that contains
- * the configuration information for the specified DAC.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
- {
- 80030be: b580 push {r7, lr}
- 80030c0: b082 sub sp, #8
- 80030c2: af00 add r7, sp, #0
- 80030c4: 6078 str r0, [r7, #4]
- /* Check DAC handle */
- if (hdac == NULL)
- 80030c6: 687b ldr r3, [r7, #4]
- 80030c8: 2b00 cmp r3, #0
- 80030ca: d101 bne.n 80030d0 <HAL_DAC_Init+0x12>
- {
- return HAL_ERROR;
- 80030cc: 2301 movs r3, #1
- 80030ce: e014 b.n 80030fa <HAL_DAC_Init+0x3c>
- }
- /* Check the parameters */
- assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
- if (hdac->State == HAL_DAC_STATE_RESET)
- 80030d0: 687b ldr r3, [r7, #4]
- 80030d2: 791b ldrb r3, [r3, #4]
- 80030d4: b2db uxtb r3, r3
- 80030d6: 2b00 cmp r3, #0
- 80030d8: d105 bne.n 80030e6 <HAL_DAC_Init+0x28>
- hdac->MspInitCallback = HAL_DAC_MspInit;
- }
- #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
- /* Allocate lock resource and initialize it */
- hdac->Lock = HAL_UNLOCKED;
- 80030da: 687b ldr r3, [r7, #4]
- 80030dc: 2200 movs r2, #0
- 80030de: 715a strb r2, [r3, #5]
- #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
- /* Init the low level hardware */
- hdac->MspInitCallback(hdac);
- #else
- /* Init the low level hardware */
- HAL_DAC_MspInit(hdac);
- 80030e0: 6878 ldr r0, [r7, #4]
- 80030e2: f7fe fd67 bl 8001bb4 <HAL_DAC_MspInit>
- #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
- }
- /* Initialize the DAC state*/
- hdac->State = HAL_DAC_STATE_BUSY;
- 80030e6: 687b ldr r3, [r7, #4]
- 80030e8: 2202 movs r2, #2
- 80030ea: 711a strb r2, [r3, #4]
- /* Set DAC error code to none */
- hdac->ErrorCode = HAL_DAC_ERROR_NONE;
- 80030ec: 687b ldr r3, [r7, #4]
- 80030ee: 2200 movs r2, #0
- 80030f0: 611a str r2, [r3, #16]
- /* Initialize the DAC state*/
- hdac->State = HAL_DAC_STATE_READY;
- 80030f2: 687b ldr r3, [r7, #4]
- 80030f4: 2201 movs r2, #1
- 80030f6: 711a strb r2, [r3, #4]
- /* Return function status */
- return HAL_OK;
- 80030f8: 2300 movs r3, #0
- }
- 80030fa: 4618 mov r0, r3
- 80030fc: 3708 adds r7, #8
- 80030fe: 46bd mov sp, r7
- 8003100: bd80 pop {r7, pc}
- 08003102 <HAL_DAC_Start>:
- * @arg DAC_CHANNEL_1: DAC Channel1 selected
- * @arg DAC_CHANNEL_2: DAC Channel2 selected
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
- {
- 8003102: b480 push {r7}
- 8003104: b083 sub sp, #12
- 8003106: af00 add r7, sp, #0
- 8003108: 6078 str r0, [r7, #4]
- 800310a: 6039 str r1, [r7, #0]
- /* Check the parameters */
- assert_param(IS_DAC_CHANNEL(Channel));
- /* Process locked */
- __HAL_LOCK(hdac);
- 800310c: 687b ldr r3, [r7, #4]
- 800310e: 795b ldrb r3, [r3, #5]
- 8003110: 2b01 cmp r3, #1
- 8003112: d101 bne.n 8003118 <HAL_DAC_Start+0x16>
- 8003114: 2302 movs r3, #2
- 8003116: e040 b.n 800319a <HAL_DAC_Start+0x98>
- 8003118: 687b ldr r3, [r7, #4]
- 800311a: 2201 movs r2, #1
- 800311c: 715a strb r2, [r3, #5]
- /* Change DAC state */
- hdac->State = HAL_DAC_STATE_BUSY;
- 800311e: 687b ldr r3, [r7, #4]
- 8003120: 2202 movs r2, #2
- 8003122: 711a strb r2, [r3, #4]
- /* Enable the Peripheral */
- __HAL_DAC_ENABLE(hdac, Channel);
- 8003124: 687b ldr r3, [r7, #4]
- 8003126: 681b ldr r3, [r3, #0]
- 8003128: 6819 ldr r1, [r3, #0]
- 800312a: 683b ldr r3, [r7, #0]
- 800312c: f003 0310 and.w r3, r3, #16
- 8003130: 2201 movs r2, #1
- 8003132: 409a lsls r2, r3
- 8003134: 687b ldr r3, [r7, #4]
- 8003136: 681b ldr r3, [r3, #0]
- 8003138: 430a orrs r2, r1
- 800313a: 601a str r2, [r3, #0]
- if (Channel == DAC_CHANNEL_1)
- 800313c: 683b ldr r3, [r7, #0]
- 800313e: 2b00 cmp r3, #0
- 8003140: d10f bne.n 8003162 <HAL_DAC_Start+0x60>
- {
- /* Check if software trigger enabled */
- if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
- 8003142: 687b ldr r3, [r7, #4]
- 8003144: 681b ldr r3, [r3, #0]
- 8003146: 681b ldr r3, [r3, #0]
- 8003148: f003 033c and.w r3, r3, #60 ; 0x3c
- 800314c: 2b3c cmp r3, #60 ; 0x3c
- 800314e: d11d bne.n 800318c <HAL_DAC_Start+0x8a>
- {
- /* Enable the selected DAC software conversion */
- SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
- 8003150: 687b ldr r3, [r7, #4]
- 8003152: 681b ldr r3, [r3, #0]
- 8003154: 685a ldr r2, [r3, #4]
- 8003156: 687b ldr r3, [r7, #4]
- 8003158: 681b ldr r3, [r3, #0]
- 800315a: f042 0201 orr.w r2, r2, #1
- 800315e: 605a str r2, [r3, #4]
- 8003160: e014 b.n 800318c <HAL_DAC_Start+0x8a>
- }
- else
- {
- /* Check if software trigger enabled */
- if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
- 8003162: 687b ldr r3, [r7, #4]
- 8003164: 681b ldr r3, [r3, #0]
- 8003166: 681b ldr r3, [r3, #0]
- 8003168: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
- 800316c: 683b ldr r3, [r7, #0]
- 800316e: f003 0310 and.w r3, r3, #16
- 8003172: 213c movs r1, #60 ; 0x3c
- 8003174: fa01 f303 lsl.w r3, r1, r3
- 8003178: 429a cmp r2, r3
- 800317a: d107 bne.n 800318c <HAL_DAC_Start+0x8a>
- {
- /* Enable the selected DAC software conversion*/
- SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
- 800317c: 687b ldr r3, [r7, #4]
- 800317e: 681b ldr r3, [r3, #0]
- 8003180: 685a ldr r2, [r3, #4]
- 8003182: 687b ldr r3, [r7, #4]
- 8003184: 681b ldr r3, [r3, #0]
- 8003186: f042 0202 orr.w r2, r2, #2
- 800318a: 605a str r2, [r3, #4]
- }
- }
- /* Change DAC state */
- hdac->State = HAL_DAC_STATE_READY;
- 800318c: 687b ldr r3, [r7, #4]
- 800318e: 2201 movs r2, #1
- 8003190: 711a strb r2, [r3, #4]
- /* Process unlocked */
- __HAL_UNLOCK(hdac);
- 8003192: 687b ldr r3, [r7, #4]
- 8003194: 2200 movs r2, #0
- 8003196: 715a strb r2, [r3, #5]
- /* Return function status */
- return HAL_OK;
- 8003198: 2300 movs r3, #0
- }
- 800319a: 4618 mov r0, r3
- 800319c: 370c adds r7, #12
- 800319e: 46bd mov sp, r7
- 80031a0: bc80 pop {r7}
- 80031a2: 4770 bx lr
- 080031a4 <HAL_DAC_SetValue>:
- * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
- * @param Data Data to be loaded in the selected data holding register.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
- {
- 80031a4: b480 push {r7}
- 80031a6: b087 sub sp, #28
- 80031a8: af00 add r7, sp, #0
- 80031aa: 60f8 str r0, [r7, #12]
- 80031ac: 60b9 str r1, [r7, #8]
- 80031ae: 607a str r2, [r7, #4]
- 80031b0: 603b str r3, [r7, #0]
- __IO uint32_t tmp = 0UL;
- 80031b2: 2300 movs r3, #0
- 80031b4: 617b str r3, [r7, #20]
- /* Check the parameters */
- assert_param(IS_DAC_CHANNEL(Channel));
- assert_param(IS_DAC_ALIGN(Alignment));
- assert_param(IS_DAC_DATA(Data));
- tmp = (uint32_t)hdac->Instance;
- 80031b6: 68fb ldr r3, [r7, #12]
- 80031b8: 681b ldr r3, [r3, #0]
- 80031ba: 617b str r3, [r7, #20]
- if (Channel == DAC_CHANNEL_1)
- 80031bc: 68bb ldr r3, [r7, #8]
- 80031be: 2b00 cmp r3, #0
- 80031c0: d105 bne.n 80031ce <HAL_DAC_SetValue+0x2a>
- {
- tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
- 80031c2: 697a ldr r2, [r7, #20]
- 80031c4: 687b ldr r3, [r7, #4]
- 80031c6: 4413 add r3, r2
- 80031c8: 3308 adds r3, #8
- 80031ca: 617b str r3, [r7, #20]
- 80031cc: e004 b.n 80031d8 <HAL_DAC_SetValue+0x34>
- }
- else
- {
- tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
- 80031ce: 697a ldr r2, [r7, #20]
- 80031d0: 687b ldr r3, [r7, #4]
- 80031d2: 4413 add r3, r2
- 80031d4: 3314 adds r3, #20
- 80031d6: 617b str r3, [r7, #20]
- }
- /* Set the DAC channel selected data holding register */
- *(__IO uint32_t *) tmp = Data;
- 80031d8: 697b ldr r3, [r7, #20]
- 80031da: 461a mov r2, r3
- 80031dc: 683b ldr r3, [r7, #0]
- 80031de: 6013 str r3, [r2, #0]
- /* Return function status */
- return HAL_OK;
- 80031e0: 2300 movs r3, #0
- }
- 80031e2: 4618 mov r0, r3
- 80031e4: 371c adds r7, #28
- 80031e6: 46bd mov sp, r7
- 80031e8: bc80 pop {r7}
- 80031ea: 4770 bx lr
- 080031ec <HAL_DAC_ConfigChannel>:
- * @arg DAC_CHANNEL_1: DAC Channel1 selected
- * @arg DAC_CHANNEL_2: DAC Channel2 selected
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
- {
- 80031ec: b480 push {r7}
- 80031ee: b087 sub sp, #28
- 80031f0: af00 add r7, sp, #0
- 80031f2: 60f8 str r0, [r7, #12]
- 80031f4: 60b9 str r1, [r7, #8]
- 80031f6: 607a str r2, [r7, #4]
- assert_param(IS_DAC_TRIGGER(sConfig->DAC_Trigger));
- assert_param(IS_DAC_OUTPUT_BUFFER_STATE(sConfig->DAC_OutputBuffer));
- assert_param(IS_DAC_CHANNEL(Channel));
- /* Process locked */
- __HAL_LOCK(hdac);
- 80031f8: 68fb ldr r3, [r7, #12]
- 80031fa: 795b ldrb r3, [r3, #5]
- 80031fc: 2b01 cmp r3, #1
- 80031fe: d101 bne.n 8003204 <HAL_DAC_ConfigChannel+0x18>
- 8003200: 2302 movs r3, #2
- 8003202: e03c b.n 800327e <HAL_DAC_ConfigChannel+0x92>
- 8003204: 68fb ldr r3, [r7, #12]
- 8003206: 2201 movs r2, #1
- 8003208: 715a strb r2, [r3, #5]
- /* Change DAC state */
- hdac->State = HAL_DAC_STATE_BUSY;
- 800320a: 68fb ldr r3, [r7, #12]
- 800320c: 2202 movs r2, #2
- 800320e: 711a strb r2, [r3, #4]
- /* Get the DAC CR value */
- tmpreg1 = hdac->Instance->CR;
- 8003210: 68fb ldr r3, [r7, #12]
- 8003212: 681b ldr r3, [r3, #0]
- 8003214: 681b ldr r3, [r3, #0]
- 8003216: 617b str r3, [r7, #20]
- /* Clear BOFFx, TENx, TSELx, WAVEx and MAMPx bits */
- tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1)) << (Channel & 0x10UL));
- 8003218: 687b ldr r3, [r7, #4]
- 800321a: f003 0310 and.w r3, r3, #16
- 800321e: f640 72fe movw r2, #4094 ; 0xffe
- 8003222: fa02 f303 lsl.w r3, r2, r3
- 8003226: 43db mvns r3, r3
- 8003228: 697a ldr r2, [r7, #20]
- 800322a: 4013 ands r3, r2
- 800322c: 617b str r3, [r7, #20]
- /* Configure for the selected DAC channel: buffer output, trigger */
- /* Set TSELx and TENx bits according to DAC_Trigger value */
- /* Set BOFFx bit according to DAC_OutputBuffer value */
- tmpreg2 = (sConfig->DAC_Trigger | sConfig->DAC_OutputBuffer);
- 800322e: 68bb ldr r3, [r7, #8]
- 8003230: 681a ldr r2, [r3, #0]
- 8003232: 68bb ldr r3, [r7, #8]
- 8003234: 685b ldr r3, [r3, #4]
- 8003236: 4313 orrs r3, r2
- 8003238: 613b str r3, [r7, #16]
- /* Calculate CR register value depending on DAC_Channel */
- tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
- 800323a: 687b ldr r3, [r7, #4]
- 800323c: f003 0310 and.w r3, r3, #16
- 8003240: 693a ldr r2, [r7, #16]
- 8003242: fa02 f303 lsl.w r3, r2, r3
- 8003246: 697a ldr r2, [r7, #20]
- 8003248: 4313 orrs r3, r2
- 800324a: 617b str r3, [r7, #20]
- /* Write to DAC CR */
- hdac->Instance->CR = tmpreg1;
- 800324c: 68fb ldr r3, [r7, #12]
- 800324e: 681b ldr r3, [r3, #0]
- 8003250: 697a ldr r2, [r7, #20]
- 8003252: 601a str r2, [r3, #0]
- /* Disable wave generation */
- CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
- 8003254: 68fb ldr r3, [r7, #12]
- 8003256: 681b ldr r3, [r3, #0]
- 8003258: 6819 ldr r1, [r3, #0]
- 800325a: 687b ldr r3, [r7, #4]
- 800325c: f003 0310 and.w r3, r3, #16
- 8003260: 22c0 movs r2, #192 ; 0xc0
- 8003262: fa02 f303 lsl.w r3, r2, r3
- 8003266: 43da mvns r2, r3
- 8003268: 68fb ldr r3, [r7, #12]
- 800326a: 681b ldr r3, [r3, #0]
- 800326c: 400a ands r2, r1
- 800326e: 601a str r2, [r3, #0]
- /* Change DAC state */
- hdac->State = HAL_DAC_STATE_READY;
- 8003270: 68fb ldr r3, [r7, #12]
- 8003272: 2201 movs r2, #1
- 8003274: 711a strb r2, [r3, #4]
- /* Process unlocked */
- __HAL_UNLOCK(hdac);
- 8003276: 68fb ldr r3, [r7, #12]
- 8003278: 2200 movs r2, #0
- 800327a: 715a strb r2, [r3, #5]
- /* Return function status */
- return HAL_OK;
- 800327c: 2300 movs r3, #0
- }
- 800327e: 4618 mov r0, r3
- 8003280: 371c adds r7, #28
- 8003282: 46bd mov sp, r7
- 8003284: bc80 pop {r7}
- 8003286: 4770 bx lr
- 08003288 <HAL_DMA_Init>:
- * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Channel.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
- {
- 8003288: b480 push {r7}
- 800328a: b085 sub sp, #20
- 800328c: af00 add r7, sp, #0
- 800328e: 6078 str r0, [r7, #4]
- uint32_t tmp;
- /* Check the DMA handle allocation */
- if(hdma == NULL)
- 8003290: 687b ldr r3, [r7, #4]
- 8003292: 2b00 cmp r3, #0
- 8003294: d101 bne.n 800329a <HAL_DMA_Init+0x12>
- {
- return HAL_ERROR;
- 8003296: 2301 movs r3, #1
- 8003298: e043 b.n 8003322 <HAL_DMA_Init+0x9a>
- hdma->DmaBaseAddress = DMA2;
- }
- #else
- /* calculation of the channel index */
- /* DMA1 */
- hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2U;
- 800329a: 687b ldr r3, [r7, #4]
- 800329c: 681b ldr r3, [r3, #0]
- 800329e: 461a mov r2, r3
- 80032a0: 4b22 ldr r3, [pc, #136] ; (800332c <HAL_DMA_Init+0xa4>)
- 80032a2: 4413 add r3, r2
- 80032a4: 4a22 ldr r2, [pc, #136] ; (8003330 <HAL_DMA_Init+0xa8>)
- 80032a6: fba2 2303 umull r2, r3, r2, r3
- 80032aa: 091b lsrs r3, r3, #4
- 80032ac: 009a lsls r2, r3, #2
- 80032ae: 687b ldr r3, [r7, #4]
- 80032b0: 641a str r2, [r3, #64] ; 0x40
- hdma->DmaBaseAddress = DMA1;
- 80032b2: 687b ldr r3, [r7, #4]
- 80032b4: 4a1f ldr r2, [pc, #124] ; (8003334 <HAL_DMA_Init+0xac>)
- 80032b6: 63da str r2, [r3, #60] ; 0x3c
- #endif
- /* Change DMA peripheral state */
- hdma->State = HAL_DMA_STATE_BUSY;
- 80032b8: 687b ldr r3, [r7, #4]
- 80032ba: 2202 movs r2, #2
- 80032bc: f883 2021 strb.w r2, [r3, #33] ; 0x21
- /* Get the CR register value */
- tmp = hdma->Instance->CCR;
- 80032c0: 687b ldr r3, [r7, #4]
- 80032c2: 681b ldr r3, [r3, #0]
- 80032c4: 681b ldr r3, [r3, #0]
- 80032c6: 60fb str r3, [r7, #12]
- /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR and MEM2MEM bits */
- tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE |
- 80032c8: 68fb ldr r3, [r7, #12]
- 80032ca: f423 43ff bic.w r3, r3, #32640 ; 0x7f80
- 80032ce: f023 0370 bic.w r3, r3, #112 ; 0x70
- 80032d2: 60fb str r3, [r7, #12]
- DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC |
- DMA_CCR_DIR | DMA_CCR_MEM2MEM));
- /* Prepare the DMA Channel configuration */
- tmp |= hdma->Init.Direction |
- 80032d4: 687b ldr r3, [r7, #4]
- 80032d6: 685a ldr r2, [r3, #4]
- hdma->Init.PeriphInc | hdma->Init.MemInc |
- 80032d8: 687b ldr r3, [r7, #4]
- 80032da: 689b ldr r3, [r3, #8]
- tmp |= hdma->Init.Direction |
- 80032dc: 431a orrs r2, r3
- hdma->Init.PeriphInc | hdma->Init.MemInc |
- 80032de: 687b ldr r3, [r7, #4]
- 80032e0: 68db ldr r3, [r3, #12]
- 80032e2: 431a orrs r2, r3
- hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
- 80032e4: 687b ldr r3, [r7, #4]
- 80032e6: 691b ldr r3, [r3, #16]
- hdma->Init.PeriphInc | hdma->Init.MemInc |
- 80032e8: 431a orrs r2, r3
- hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
- 80032ea: 687b ldr r3, [r7, #4]
- 80032ec: 695b ldr r3, [r3, #20]
- 80032ee: 431a orrs r2, r3
- hdma->Init.Mode | hdma->Init.Priority;
- 80032f0: 687b ldr r3, [r7, #4]
- 80032f2: 699b ldr r3, [r3, #24]
- hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
- 80032f4: 431a orrs r2, r3
- hdma->Init.Mode | hdma->Init.Priority;
- 80032f6: 687b ldr r3, [r7, #4]
- 80032f8: 69db ldr r3, [r3, #28]
- 80032fa: 4313 orrs r3, r2
- tmp |= hdma->Init.Direction |
- 80032fc: 68fa ldr r2, [r7, #12]
- 80032fe: 4313 orrs r3, r2
- 8003300: 60fb str r3, [r7, #12]
- /* Write to DMA Channel CR register */
- hdma->Instance->CCR = tmp;
- 8003302: 687b ldr r3, [r7, #4]
- 8003304: 681b ldr r3, [r3, #0]
- 8003306: 68fa ldr r2, [r7, #12]
- 8003308: 601a str r2, [r3, #0]
- /* Initialise the error code */
- hdma->ErrorCode = HAL_DMA_ERROR_NONE;
- 800330a: 687b ldr r3, [r7, #4]
- 800330c: 2200 movs r2, #0
- 800330e: 639a str r2, [r3, #56] ; 0x38
- /* Initialize the DMA state*/
- hdma->State = HAL_DMA_STATE_READY;
- 8003310: 687b ldr r3, [r7, #4]
- 8003312: 2201 movs r2, #1
- 8003314: f883 2021 strb.w r2, [r3, #33] ; 0x21
- /* Allocate lock resource and initialize it */
- hdma->Lock = HAL_UNLOCKED;
- 8003318: 687b ldr r3, [r7, #4]
- 800331a: 2200 movs r2, #0
- 800331c: f883 2020 strb.w r2, [r3, #32]
- return HAL_OK;
- 8003320: 2300 movs r3, #0
- }
- 8003322: 4618 mov r0, r3
- 8003324: 3714 adds r7, #20
- 8003326: 46bd mov sp, r7
- 8003328: bc80 pop {r7}
- 800332a: 4770 bx lr
- 800332c: bffd9ff8 .word 0xbffd9ff8
- 8003330: cccccccd .word 0xcccccccd
- 8003334: 40026000 .word 0x40026000
- 08003338 <HAL_DMA_Start_IT>:
- * @param DstAddress The destination memory Buffer address
- * @param DataLength The length of data to be transferred from source to destination
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
- {
- 8003338: b580 push {r7, lr}
- 800333a: b086 sub sp, #24
- 800333c: af00 add r7, sp, #0
- 800333e: 60f8 str r0, [r7, #12]
- 8003340: 60b9 str r1, [r7, #8]
- 8003342: 607a str r2, [r7, #4]
- 8003344: 603b str r3, [r7, #0]
- HAL_StatusTypeDef status = HAL_OK;
- 8003346: 2300 movs r3, #0
- 8003348: 75fb strb r3, [r7, #23]
- /* Check the parameters */
- assert_param(IS_DMA_BUFFER_SIZE(DataLength));
- /* Process locked */
- __HAL_LOCK(hdma);
- 800334a: 68fb ldr r3, [r7, #12]
- 800334c: f893 3020 ldrb.w r3, [r3, #32]
- 8003350: 2b01 cmp r3, #1
- 8003352: d101 bne.n 8003358 <HAL_DMA_Start_IT+0x20>
- 8003354: 2302 movs r3, #2
- 8003356: e04b b.n 80033f0 <HAL_DMA_Start_IT+0xb8>
- 8003358: 68fb ldr r3, [r7, #12]
- 800335a: 2201 movs r2, #1
- 800335c: f883 2020 strb.w r2, [r3, #32]
- if(HAL_DMA_STATE_READY == hdma->State)
- 8003360: 68fb ldr r3, [r7, #12]
- 8003362: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 8003366: b2db uxtb r3, r3
- 8003368: 2b01 cmp r3, #1
- 800336a: d13a bne.n 80033e2 <HAL_DMA_Start_IT+0xaa>
- {
- /* Change DMA peripheral state */
- hdma->State = HAL_DMA_STATE_BUSY;
- 800336c: 68fb ldr r3, [r7, #12]
- 800336e: 2202 movs r2, #2
- 8003370: f883 2021 strb.w r2, [r3, #33] ; 0x21
- hdma->ErrorCode = HAL_DMA_ERROR_NONE;
- 8003374: 68fb ldr r3, [r7, #12]
- 8003376: 2200 movs r2, #0
- 8003378: 639a str r2, [r3, #56] ; 0x38
- /* Disable the peripheral */
- __HAL_DMA_DISABLE(hdma);
- 800337a: 68fb ldr r3, [r7, #12]
- 800337c: 681b ldr r3, [r3, #0]
- 800337e: 681a ldr r2, [r3, #0]
- 8003380: 68fb ldr r3, [r7, #12]
- 8003382: 681b ldr r3, [r3, #0]
- 8003384: f022 0201 bic.w r2, r2, #1
- 8003388: 601a str r2, [r3, #0]
- /* Configure the source, destination address and the data length & clear flags*/
- DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
- 800338a: 683b ldr r3, [r7, #0]
- 800338c: 687a ldr r2, [r7, #4]
- 800338e: 68b9 ldr r1, [r7, #8]
- 8003390: 68f8 ldr r0, [r7, #12]
- 8003392: f000 f91d bl 80035d0 <DMA_SetConfig>
- /* Enable the transfer complete interrupt */
- /* Enable the transfer Error interrupt */
- if(NULL != hdma->XferHalfCpltCallback )
- 8003396: 68fb ldr r3, [r7, #12]
- 8003398: 6adb ldr r3, [r3, #44] ; 0x2c
- 800339a: 2b00 cmp r3, #0
- 800339c: d008 beq.n 80033b0 <HAL_DMA_Start_IT+0x78>
- {
- /* Enable the Half transfer complete interrupt as well */
- __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
- 800339e: 68fb ldr r3, [r7, #12]
- 80033a0: 681b ldr r3, [r3, #0]
- 80033a2: 681a ldr r2, [r3, #0]
- 80033a4: 68fb ldr r3, [r7, #12]
- 80033a6: 681b ldr r3, [r3, #0]
- 80033a8: f042 020e orr.w r2, r2, #14
- 80033ac: 601a str r2, [r3, #0]
- 80033ae: e00f b.n 80033d0 <HAL_DMA_Start_IT+0x98>
- }
- else
- {
- __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
- 80033b0: 68fb ldr r3, [r7, #12]
- 80033b2: 681b ldr r3, [r3, #0]
- 80033b4: 681a ldr r2, [r3, #0]
- 80033b6: 68fb ldr r3, [r7, #12]
- 80033b8: 681b ldr r3, [r3, #0]
- 80033ba: f022 0204 bic.w r2, r2, #4
- 80033be: 601a str r2, [r3, #0]
- __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
- 80033c0: 68fb ldr r3, [r7, #12]
- 80033c2: 681b ldr r3, [r3, #0]
- 80033c4: 681a ldr r2, [r3, #0]
- 80033c6: 68fb ldr r3, [r7, #12]
- 80033c8: 681b ldr r3, [r3, #0]
- 80033ca: f042 020a orr.w r2, r2, #10
- 80033ce: 601a str r2, [r3, #0]
- }
- /* Enable the Peripheral */
- __HAL_DMA_ENABLE(hdma);
- 80033d0: 68fb ldr r3, [r7, #12]
- 80033d2: 681b ldr r3, [r3, #0]
- 80033d4: 681a ldr r2, [r3, #0]
- 80033d6: 68fb ldr r3, [r7, #12]
- 80033d8: 681b ldr r3, [r3, #0]
- 80033da: f042 0201 orr.w r2, r2, #1
- 80033de: 601a str r2, [r3, #0]
- 80033e0: e005 b.n 80033ee <HAL_DMA_Start_IT+0xb6>
- }
- else
- {
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 80033e2: 68fb ldr r3, [r7, #12]
- 80033e4: 2200 movs r2, #0
- 80033e6: f883 2020 strb.w r2, [r3, #32]
- /* Remain BUSY */
- status = HAL_BUSY;
- 80033ea: 2302 movs r3, #2
- 80033ec: 75fb strb r3, [r7, #23]
- }
- return status;
- 80033ee: 7dfb ldrb r3, [r7, #23]
- }
- 80033f0: 4618 mov r0, r3
- 80033f2: 3718 adds r7, #24
- 80033f4: 46bd mov sp, r7
- 80033f6: bd80 pop {r7, pc}
- 080033f8 <HAL_DMA_Abort>:
- * @param hdma pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Channel.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
- {
- 80033f8: b480 push {r7}
- 80033fa: b085 sub sp, #20
- 80033fc: af00 add r7, sp, #0
- 80033fe: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef status = HAL_OK;
- 8003400: 2300 movs r3, #0
- 8003402: 73fb strb r3, [r7, #15]
- /* Check the DMA peripheral state */
- if(hdma->State != HAL_DMA_STATE_BUSY)
- 8003404: 687b ldr r3, [r7, #4]
- 8003406: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
- 800340a: b2db uxtb r3, r3
- 800340c: 2b02 cmp r3, #2
- 800340e: d008 beq.n 8003422 <HAL_DMA_Abort+0x2a>
- {
- hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
- 8003410: 687b ldr r3, [r7, #4]
- 8003412: 2204 movs r2, #4
- 8003414: 639a str r2, [r3, #56] ; 0x38
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 8003416: 687b ldr r3, [r7, #4]
- 8003418: 2200 movs r2, #0
- 800341a: f883 2020 strb.w r2, [r3, #32]
- return HAL_ERROR;
- 800341e: 2301 movs r3, #1
- 8003420: e022 b.n 8003468 <HAL_DMA_Abort+0x70>
- }
- else
- {
- /* Disable DMA IT */
- __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
- 8003422: 687b ldr r3, [r7, #4]
- 8003424: 681b ldr r3, [r3, #0]
- 8003426: 681a ldr r2, [r3, #0]
- 8003428: 687b ldr r3, [r7, #4]
- 800342a: 681b ldr r3, [r3, #0]
- 800342c: f022 020e bic.w r2, r2, #14
- 8003430: 601a str r2, [r3, #0]
- /* Disable the channel */
- __HAL_DMA_DISABLE(hdma);
- 8003432: 687b ldr r3, [r7, #4]
- 8003434: 681b ldr r3, [r3, #0]
- 8003436: 681a ldr r2, [r3, #0]
- 8003438: 687b ldr r3, [r7, #4]
- 800343a: 681b ldr r3, [r3, #0]
- 800343c: f022 0201 bic.w r2, r2, #1
- 8003440: 601a str r2, [r3, #0]
- /* Clear all flags */
- hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
- 8003442: 687b ldr r3, [r7, #4]
- 8003444: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003446: f003 021c and.w r2, r3, #28
- 800344a: 687b ldr r3, [r7, #4]
- 800344c: 6bdb ldr r3, [r3, #60] ; 0x3c
- 800344e: 2101 movs r1, #1
- 8003450: fa01 f202 lsl.w r2, r1, r2
- 8003454: 605a str r2, [r3, #4]
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8003456: 687b ldr r3, [r7, #4]
- 8003458: 2201 movs r2, #1
- 800345a: f883 2021 strb.w r2, [r3, #33] ; 0x21
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 800345e: 687b ldr r3, [r7, #4]
- 8003460: 2200 movs r2, #0
- 8003462: f883 2020 strb.w r2, [r3, #32]
- return status;
- 8003466: 7bfb ldrb r3, [r7, #15]
- }
- }
- 8003468: 4618 mov r0, r3
- 800346a: 3714 adds r7, #20
- 800346c: 46bd mov sp, r7
- 800346e: bc80 pop {r7}
- 8003470: 4770 bx lr
- 08003472 <HAL_DMA_IRQHandler>:
- * @param hdma pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Channel.
- * @retval None
- */
- void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
- {
- 8003472: b580 push {r7, lr}
- 8003474: b084 sub sp, #16
- 8003476: af00 add r7, sp, #0
- 8003478: 6078 str r0, [r7, #4]
- uint32_t flag_it = hdma->DmaBaseAddress->ISR;
- 800347a: 687b ldr r3, [r7, #4]
- 800347c: 6bdb ldr r3, [r3, #60] ; 0x3c
- 800347e: 681b ldr r3, [r3, #0]
- 8003480: 60fb str r3, [r7, #12]
- uint32_t source_it = hdma->Instance->CCR;
- 8003482: 687b ldr r3, [r7, #4]
- 8003484: 681b ldr r3, [r3, #0]
- 8003486: 681b ldr r3, [r3, #0]
- 8003488: 60bb str r3, [r7, #8]
- /* Half Transfer Complete Interrupt management ******************************/
- if (((flag_it & (DMA_FLAG_HT1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_HT) != 0U))
- 800348a: 687b ldr r3, [r7, #4]
- 800348c: 6c1b ldr r3, [r3, #64] ; 0x40
- 800348e: f003 031c and.w r3, r3, #28
- 8003492: 2204 movs r2, #4
- 8003494: 409a lsls r2, r3
- 8003496: 68fb ldr r3, [r7, #12]
- 8003498: 4013 ands r3, r2
- 800349a: 2b00 cmp r3, #0
- 800349c: d026 beq.n 80034ec <HAL_DMA_IRQHandler+0x7a>
- 800349e: 68bb ldr r3, [r7, #8]
- 80034a0: f003 0304 and.w r3, r3, #4
- 80034a4: 2b00 cmp r3, #0
- 80034a6: d021 beq.n 80034ec <HAL_DMA_IRQHandler+0x7a>
- {
- /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
- if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
- 80034a8: 687b ldr r3, [r7, #4]
- 80034aa: 681b ldr r3, [r3, #0]
- 80034ac: 681b ldr r3, [r3, #0]
- 80034ae: f003 0320 and.w r3, r3, #32
- 80034b2: 2b00 cmp r3, #0
- 80034b4: d107 bne.n 80034c6 <HAL_DMA_IRQHandler+0x54>
- {
- /* Disable the half transfer interrupt */
- __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
- 80034b6: 687b ldr r3, [r7, #4]
- 80034b8: 681b ldr r3, [r3, #0]
- 80034ba: 681a ldr r2, [r3, #0]
- 80034bc: 687b ldr r3, [r7, #4]
- 80034be: 681b ldr r3, [r3, #0]
- 80034c0: f022 0204 bic.w r2, r2, #4
- 80034c4: 601a str r2, [r3, #0]
- }
- /* Clear the half transfer complete flag */
- hdma->DmaBaseAddress->IFCR = DMA_ISR_HTIF1 << (hdma->ChannelIndex & 0x1CU);
- 80034c6: 687b ldr r3, [r7, #4]
- 80034c8: 6c1b ldr r3, [r3, #64] ; 0x40
- 80034ca: f003 021c and.w r2, r3, #28
- 80034ce: 687b ldr r3, [r7, #4]
- 80034d0: 6bdb ldr r3, [r3, #60] ; 0x3c
- 80034d2: 2104 movs r1, #4
- 80034d4: fa01 f202 lsl.w r2, r1, r2
- 80034d8: 605a str r2, [r3, #4]
- /* DMA peripheral state is not updated in Half Transfer */
- /* but in Transfer Complete case */
- if(hdma->XferHalfCpltCallback != NULL)
- 80034da: 687b ldr r3, [r7, #4]
- 80034dc: 6adb ldr r3, [r3, #44] ; 0x2c
- 80034de: 2b00 cmp r3, #0
- 80034e0: d071 beq.n 80035c6 <HAL_DMA_IRQHandler+0x154>
- {
- /* Half transfer callback */
- hdma->XferHalfCpltCallback(hdma);
- 80034e2: 687b ldr r3, [r7, #4]
- 80034e4: 6adb ldr r3, [r3, #44] ; 0x2c
- 80034e6: 6878 ldr r0, [r7, #4]
- 80034e8: 4798 blx r3
- if(hdma->XferHalfCpltCallback != NULL)
- 80034ea: e06c b.n 80035c6 <HAL_DMA_IRQHandler+0x154>
- }
- }
- /* Transfer Complete Interrupt management ***********************************/
- else if (((flag_it & (DMA_FLAG_TC1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_TC) != 0U))
- 80034ec: 687b ldr r3, [r7, #4]
- 80034ee: 6c1b ldr r3, [r3, #64] ; 0x40
- 80034f0: f003 031c and.w r3, r3, #28
- 80034f4: 2202 movs r2, #2
- 80034f6: 409a lsls r2, r3
- 80034f8: 68fb ldr r3, [r7, #12]
- 80034fa: 4013 ands r3, r2
- 80034fc: 2b00 cmp r3, #0
- 80034fe: d02e beq.n 800355e <HAL_DMA_IRQHandler+0xec>
- 8003500: 68bb ldr r3, [r7, #8]
- 8003502: f003 0302 and.w r3, r3, #2
- 8003506: 2b00 cmp r3, #0
- 8003508: d029 beq.n 800355e <HAL_DMA_IRQHandler+0xec>
- {
-
- if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
- 800350a: 687b ldr r3, [r7, #4]
- 800350c: 681b ldr r3, [r3, #0]
- 800350e: 681b ldr r3, [r3, #0]
- 8003510: f003 0320 and.w r3, r3, #32
- 8003514: 2b00 cmp r3, #0
- 8003516: d10b bne.n 8003530 <HAL_DMA_IRQHandler+0xbe>
- {
- /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
- /* Disable the transfer complete and error interrupt */
- /* if the DMA mode is not CIRCULAR */
- __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
- 8003518: 687b ldr r3, [r7, #4]
- 800351a: 681b ldr r3, [r3, #0]
- 800351c: 681a ldr r2, [r3, #0]
- 800351e: 687b ldr r3, [r7, #4]
- 8003520: 681b ldr r3, [r3, #0]
- 8003522: f022 020a bic.w r2, r2, #10
- 8003526: 601a str r2, [r3, #0]
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8003528: 687b ldr r3, [r7, #4]
- 800352a: 2201 movs r2, #1
- 800352c: f883 2021 strb.w r2, [r3, #33] ; 0x21
- }
- /* Clear the transfer complete flag */
- hdma->DmaBaseAddress->IFCR = (DMA_ISR_TCIF1 << (hdma->ChannelIndex & 0x1CU));
- 8003530: 687b ldr r3, [r7, #4]
- 8003532: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003534: f003 021c and.w r2, r3, #28
- 8003538: 687b ldr r3, [r7, #4]
- 800353a: 6bdb ldr r3, [r3, #60] ; 0x3c
- 800353c: 2102 movs r1, #2
- 800353e: fa01 f202 lsl.w r2, r1, r2
- 8003542: 605a str r2, [r3, #4]
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 8003544: 687b ldr r3, [r7, #4]
- 8003546: 2200 movs r2, #0
- 8003548: f883 2020 strb.w r2, [r3, #32]
- if(hdma->XferCpltCallback != NULL)
- 800354c: 687b ldr r3, [r7, #4]
- 800354e: 6a9b ldr r3, [r3, #40] ; 0x28
- 8003550: 2b00 cmp r3, #0
- 8003552: d038 beq.n 80035c6 <HAL_DMA_IRQHandler+0x154>
- {
- /* Transfer complete callback */
- hdma->XferCpltCallback(hdma);
- 8003554: 687b ldr r3, [r7, #4]
- 8003556: 6a9b ldr r3, [r3, #40] ; 0x28
- 8003558: 6878 ldr r0, [r7, #4]
- 800355a: 4798 blx r3
- if(hdma->XferCpltCallback != NULL)
- 800355c: e033 b.n 80035c6 <HAL_DMA_IRQHandler+0x154>
- }
- }
- /* Transfer Error Interrupt management **************************************/
- else if (((flag_it & (DMA_FLAG_TE1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_TE) != 0U))
- 800355e: 687b ldr r3, [r7, #4]
- 8003560: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003562: f003 031c and.w r3, r3, #28
- 8003566: 2208 movs r2, #8
- 8003568: 409a lsls r2, r3
- 800356a: 68fb ldr r3, [r7, #12]
- 800356c: 4013 ands r3, r2
- 800356e: 2b00 cmp r3, #0
- 8003570: d02a beq.n 80035c8 <HAL_DMA_IRQHandler+0x156>
- 8003572: 68bb ldr r3, [r7, #8]
- 8003574: f003 0308 and.w r3, r3, #8
- 8003578: 2b00 cmp r3, #0
- 800357a: d025 beq.n 80035c8 <HAL_DMA_IRQHandler+0x156>
- {
- /* When a DMA transfer error occurs */
- /* A hardware clear of its EN bits is performed */
- /* Disable ALL DMA IT */
- __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
- 800357c: 687b ldr r3, [r7, #4]
- 800357e: 681b ldr r3, [r3, #0]
- 8003580: 681a ldr r2, [r3, #0]
- 8003582: 687b ldr r3, [r7, #4]
- 8003584: 681b ldr r3, [r3, #0]
- 8003586: f022 020e bic.w r2, r2, #14
- 800358a: 601a str r2, [r3, #0]
- /* Clear all flags */
- hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
- 800358c: 687b ldr r3, [r7, #4]
- 800358e: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003590: f003 021c and.w r2, r3, #28
- 8003594: 687b ldr r3, [r7, #4]
- 8003596: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8003598: 2101 movs r1, #1
- 800359a: fa01 f202 lsl.w r2, r1, r2
- 800359e: 605a str r2, [r3, #4]
- /* Update error code */
- hdma->ErrorCode = HAL_DMA_ERROR_TE;
- 80035a0: 687b ldr r3, [r7, #4]
- 80035a2: 2201 movs r2, #1
- 80035a4: 639a str r2, [r3, #56] ; 0x38
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 80035a6: 687b ldr r3, [r7, #4]
- 80035a8: 2201 movs r2, #1
- 80035aa: f883 2021 strb.w r2, [r3, #33] ; 0x21
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 80035ae: 687b ldr r3, [r7, #4]
- 80035b0: 2200 movs r2, #0
- 80035b2: f883 2020 strb.w r2, [r3, #32]
- if (hdma->XferErrorCallback != NULL)
- 80035b6: 687b ldr r3, [r7, #4]
- 80035b8: 6b1b ldr r3, [r3, #48] ; 0x30
- 80035ba: 2b00 cmp r3, #0
- 80035bc: d004 beq.n 80035c8 <HAL_DMA_IRQHandler+0x156>
- {
- /* Transfer error callback */
- hdma->XferErrorCallback(hdma);
- 80035be: 687b ldr r3, [r7, #4]
- 80035c0: 6b1b ldr r3, [r3, #48] ; 0x30
- 80035c2: 6878 ldr r0, [r7, #4]
- 80035c4: 4798 blx r3
- }
- else
- {
- /* Nothing To Do */
- }
- return;
- 80035c6: bf00 nop
- 80035c8: bf00 nop
- }
- 80035ca: 3710 adds r7, #16
- 80035cc: 46bd mov sp, r7
- 80035ce: bd80 pop {r7, pc}
- 080035d0 <DMA_SetConfig>:
- * @param DstAddress The destination memory Buffer address
- * @param DataLength The length of data to be transferred from source to destination
- * @retval HAL status
- */
- static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
- {
- 80035d0: b480 push {r7}
- 80035d2: b085 sub sp, #20
- 80035d4: af00 add r7, sp, #0
- 80035d6: 60f8 str r0, [r7, #12]
- 80035d8: 60b9 str r1, [r7, #8]
- 80035da: 607a str r2, [r7, #4]
- 80035dc: 603b str r3, [r7, #0]
- /* Clear all flags */
- hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
- 80035de: 68fb ldr r3, [r7, #12]
- 80035e0: 6c1b ldr r3, [r3, #64] ; 0x40
- 80035e2: f003 021c and.w r2, r3, #28
- 80035e6: 68fb ldr r3, [r7, #12]
- 80035e8: 6bdb ldr r3, [r3, #60] ; 0x3c
- 80035ea: 2101 movs r1, #1
- 80035ec: fa01 f202 lsl.w r2, r1, r2
- 80035f0: 605a str r2, [r3, #4]
- /* Configure DMA Channel data length */
- hdma->Instance->CNDTR = DataLength;
- 80035f2: 68fb ldr r3, [r7, #12]
- 80035f4: 681b ldr r3, [r3, #0]
- 80035f6: 683a ldr r2, [r7, #0]
- 80035f8: 605a str r2, [r3, #4]
- /* Memory to Peripheral */
- if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
- 80035fa: 68fb ldr r3, [r7, #12]
- 80035fc: 685b ldr r3, [r3, #4]
- 80035fe: 2b10 cmp r3, #16
- 8003600: d108 bne.n 8003614 <DMA_SetConfig+0x44>
- {
- /* Configure DMA Channel destination address */
- hdma->Instance->CPAR = DstAddress;
- 8003602: 68fb ldr r3, [r7, #12]
- 8003604: 681b ldr r3, [r3, #0]
- 8003606: 687a ldr r2, [r7, #4]
- 8003608: 609a str r2, [r3, #8]
- /* Configure DMA Channel source address */
- hdma->Instance->CMAR = SrcAddress;
- 800360a: 68fb ldr r3, [r7, #12]
- 800360c: 681b ldr r3, [r3, #0]
- 800360e: 68ba ldr r2, [r7, #8]
- 8003610: 60da str r2, [r3, #12]
- hdma->Instance->CPAR = SrcAddress;
- /* Configure DMA Channel destination address */
- hdma->Instance->CMAR = DstAddress;
- }
- }
- 8003612: e007 b.n 8003624 <DMA_SetConfig+0x54>
- hdma->Instance->CPAR = SrcAddress;
- 8003614: 68fb ldr r3, [r7, #12]
- 8003616: 681b ldr r3, [r3, #0]
- 8003618: 68ba ldr r2, [r7, #8]
- 800361a: 609a str r2, [r3, #8]
- hdma->Instance->CMAR = DstAddress;
- 800361c: 68fb ldr r3, [r7, #12]
- 800361e: 681b ldr r3, [r3, #0]
- 8003620: 687a ldr r2, [r7, #4]
- 8003622: 60da str r2, [r3, #12]
- }
- 8003624: bf00 nop
- 8003626: 3714 adds r7, #20
- 8003628: 46bd mov sp, r7
- 800362a: bc80 pop {r7}
- 800362c: 4770 bx lr
- ...
- 08003630 <HAL_GPIO_Init>:
- * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
- * the configuration information for the specified GPIO peripheral.
- * @retval None
- */
- void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
- {
- 8003630: b480 push {r7}
- 8003632: b087 sub sp, #28
- 8003634: af00 add r7, sp, #0
- 8003636: 6078 str r0, [r7, #4]
- 8003638: 6039 str r1, [r7, #0]
- uint32_t position = 0x00;
- 800363a: 2300 movs r3, #0
- 800363c: 617b str r3, [r7, #20]
- uint32_t iocurrent = 0x00;
- 800363e: 2300 movs r3, #0
- 8003640: 60fb str r3, [r7, #12]
- uint32_t temp = 0x00;
- 8003642: 2300 movs r3, #0
- 8003644: 613b str r3, [r7, #16]
- assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
- assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
- assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
- /* Configure the port pins */
- while (((GPIO_Init->Pin) >> position) != 0)
- 8003646: e154 b.n 80038f2 <HAL_GPIO_Init+0x2c2>
- {
- /* Get current io position */
- iocurrent = (GPIO_Init->Pin) & (1U << position);
- 8003648: 683b ldr r3, [r7, #0]
- 800364a: 681a ldr r2, [r3, #0]
- 800364c: 2101 movs r1, #1
- 800364e: 697b ldr r3, [r7, #20]
- 8003650: fa01 f303 lsl.w r3, r1, r3
- 8003654: 4013 ands r3, r2
- 8003656: 60fb str r3, [r7, #12]
- if (iocurrent)
- 8003658: 68fb ldr r3, [r7, #12]
- 800365a: 2b00 cmp r3, #0
- 800365c: f000 8146 beq.w 80038ec <HAL_GPIO_Init+0x2bc>
- {
- /*--------------------- GPIO Mode Configuration ------------------------*/
- /* In case of Output or Alternate function mode selection */
- if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
- 8003660: 683b ldr r3, [r7, #0]
- 8003662: 685b ldr r3, [r3, #4]
- 8003664: f003 0303 and.w r3, r3, #3
- 8003668: 2b01 cmp r3, #1
- 800366a: d005 beq.n 8003678 <HAL_GPIO_Init+0x48>
- ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
- 800366c: 683b ldr r3, [r7, #0]
- 800366e: 685b ldr r3, [r3, #4]
- 8003670: f003 0303 and.w r3, r3, #3
- if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
- 8003674: 2b02 cmp r3, #2
- 8003676: d130 bne.n 80036da <HAL_GPIO_Init+0xaa>
- {
- /* Check the Speed parameter */
- assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
- /* Configure the IO Speed */
- temp = GPIOx->OSPEEDR;
- 8003678: 687b ldr r3, [r7, #4]
- 800367a: 689b ldr r3, [r3, #8]
- 800367c: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2));
- 800367e: 697b ldr r3, [r7, #20]
- 8003680: 005b lsls r3, r3, #1
- 8003682: 2203 movs r2, #3
- 8003684: fa02 f303 lsl.w r3, r2, r3
- 8003688: 43db mvns r3, r3
- 800368a: 693a ldr r2, [r7, #16]
- 800368c: 4013 ands r3, r2
- 800368e: 613b str r3, [r7, #16]
- SET_BIT(temp, GPIO_Init->Speed << (position * 2));
- 8003690: 683b ldr r3, [r7, #0]
- 8003692: 68da ldr r2, [r3, #12]
- 8003694: 697b ldr r3, [r7, #20]
- 8003696: 005b lsls r3, r3, #1
- 8003698: fa02 f303 lsl.w r3, r2, r3
- 800369c: 693a ldr r2, [r7, #16]
- 800369e: 4313 orrs r3, r2
- 80036a0: 613b str r3, [r7, #16]
- GPIOx->OSPEEDR = temp;
- 80036a2: 687b ldr r3, [r7, #4]
- 80036a4: 693a ldr r2, [r7, #16]
- 80036a6: 609a str r2, [r3, #8]
- /* Configure the IO Output Type */
- temp = GPIOx->OTYPER;
- 80036a8: 687b ldr r3, [r7, #4]
- 80036aa: 685b ldr r3, [r3, #4]
- 80036ac: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ;
- 80036ae: 2201 movs r2, #1
- 80036b0: 697b ldr r3, [r7, #20]
- 80036b2: fa02 f303 lsl.w r3, r2, r3
- 80036b6: 43db mvns r3, r3
- 80036b8: 693a ldr r2, [r7, #16]
- 80036ba: 4013 ands r3, r2
- 80036bc: 613b str r3, [r7, #16]
- SET_BIT(temp, ((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
- 80036be: 683b ldr r3, [r7, #0]
- 80036c0: 685b ldr r3, [r3, #4]
- 80036c2: 091b lsrs r3, r3, #4
- 80036c4: f003 0201 and.w r2, r3, #1
- 80036c8: 697b ldr r3, [r7, #20]
- 80036ca: fa02 f303 lsl.w r3, r2, r3
- 80036ce: 693a ldr r2, [r7, #16]
- 80036d0: 4313 orrs r3, r2
- 80036d2: 613b str r3, [r7, #16]
- GPIOx->OTYPER = temp;
- 80036d4: 687b ldr r3, [r7, #4]
- 80036d6: 693a ldr r2, [r7, #16]
- 80036d8: 605a str r2, [r3, #4]
- }
- if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
- 80036da: 683b ldr r3, [r7, #0]
- 80036dc: 685b ldr r3, [r3, #4]
- 80036de: f003 0303 and.w r3, r3, #3
- 80036e2: 2b03 cmp r3, #3
- 80036e4: d017 beq.n 8003716 <HAL_GPIO_Init+0xe6>
- {
- /* Check the Pull parameter */
- assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
- /* Activate the Pull-up or Pull down resistor for the current IO */
- temp = GPIOx->PUPDR;
- 80036e6: 687b ldr r3, [r7, #4]
- 80036e8: 68db ldr r3, [r3, #12]
- 80036ea: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2));
- 80036ec: 697b ldr r3, [r7, #20]
- 80036ee: 005b lsls r3, r3, #1
- 80036f0: 2203 movs r2, #3
- 80036f2: fa02 f303 lsl.w r3, r2, r3
- 80036f6: 43db mvns r3, r3
- 80036f8: 693a ldr r2, [r7, #16]
- 80036fa: 4013 ands r3, r2
- 80036fc: 613b str r3, [r7, #16]
- SET_BIT(temp, (GPIO_Init->Pull) << (position * 2));
- 80036fe: 683b ldr r3, [r7, #0]
- 8003700: 689a ldr r2, [r3, #8]
- 8003702: 697b ldr r3, [r7, #20]
- 8003704: 005b lsls r3, r3, #1
- 8003706: fa02 f303 lsl.w r3, r2, r3
- 800370a: 693a ldr r2, [r7, #16]
- 800370c: 4313 orrs r3, r2
- 800370e: 613b str r3, [r7, #16]
- GPIOx->PUPDR = temp;
- 8003710: 687b ldr r3, [r7, #4]
- 8003712: 693a ldr r2, [r7, #16]
- 8003714: 60da str r2, [r3, #12]
- }
- /* In case of Alternate function mode selection */
- if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
- 8003716: 683b ldr r3, [r7, #0]
- 8003718: 685b ldr r3, [r3, #4]
- 800371a: f003 0303 and.w r3, r3, #3
- 800371e: 2b02 cmp r3, #2
- 8003720: d123 bne.n 800376a <HAL_GPIO_Init+0x13a>
- assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
- assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
- /* Configure Alternate function mapped with the current IO */
- /* Identify AFRL or AFRH register based on IO position*/
- temp = GPIOx->AFR[position >> 3];
- 8003722: 697b ldr r3, [r7, #20]
- 8003724: 08da lsrs r2, r3, #3
- 8003726: 687b ldr r3, [r7, #4]
- 8003728: 3208 adds r2, #8
- 800372a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
- 800372e: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4));
- 8003730: 697b ldr r3, [r7, #20]
- 8003732: f003 0307 and.w r3, r3, #7
- 8003736: 009b lsls r3, r3, #2
- 8003738: 220f movs r2, #15
- 800373a: fa02 f303 lsl.w r3, r2, r3
- 800373e: 43db mvns r3, r3
- 8003740: 693a ldr r2, [r7, #16]
- 8003742: 4013 ands r3, r2
- 8003744: 613b str r3, [r7, #16]
- SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4));
- 8003746: 683b ldr r3, [r7, #0]
- 8003748: 691a ldr r2, [r3, #16]
- 800374a: 697b ldr r3, [r7, #20]
- 800374c: f003 0307 and.w r3, r3, #7
- 8003750: 009b lsls r3, r3, #2
- 8003752: fa02 f303 lsl.w r3, r2, r3
- 8003756: 693a ldr r2, [r7, #16]
- 8003758: 4313 orrs r3, r2
- 800375a: 613b str r3, [r7, #16]
- GPIOx->AFR[position >> 3] = temp;
- 800375c: 697b ldr r3, [r7, #20]
- 800375e: 08da lsrs r2, r3, #3
- 8003760: 687b ldr r3, [r7, #4]
- 8003762: 3208 adds r2, #8
- 8003764: 6939 ldr r1, [r7, #16]
- 8003766: f843 1022 str.w r1, [r3, r2, lsl #2]
- }
- /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
- temp = GPIOx->MODER;
- 800376a: 687b ldr r3, [r7, #4]
- 800376c: 681b ldr r3, [r3, #0]
- 800376e: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2));
- 8003770: 697b ldr r3, [r7, #20]
- 8003772: 005b lsls r3, r3, #1
- 8003774: 2203 movs r2, #3
- 8003776: fa02 f303 lsl.w r3, r2, r3
- 800377a: 43db mvns r3, r3
- 800377c: 693a ldr r2, [r7, #16]
- 800377e: 4013 ands r3, r2
- 8003780: 613b str r3, [r7, #16]
- SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2));
- 8003782: 683b ldr r3, [r7, #0]
- 8003784: 685b ldr r3, [r3, #4]
- 8003786: f003 0203 and.w r2, r3, #3
- 800378a: 697b ldr r3, [r7, #20]
- 800378c: 005b lsls r3, r3, #1
- 800378e: fa02 f303 lsl.w r3, r2, r3
- 8003792: 693a ldr r2, [r7, #16]
- 8003794: 4313 orrs r3, r2
- 8003796: 613b str r3, [r7, #16]
- GPIOx->MODER = temp;
- 8003798: 687b ldr r3, [r7, #4]
- 800379a: 693a ldr r2, [r7, #16]
- 800379c: 601a str r2, [r3, #0]
- /*--------------------- EXTI Mode Configuration ------------------------*/
- /* Configure the External Interrupt or event for the current IO */
- if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
- 800379e: 683b ldr r3, [r7, #0]
- 80037a0: 685b ldr r3, [r3, #4]
- 80037a2: f403 3340 and.w r3, r3, #196608 ; 0x30000
- 80037a6: 2b00 cmp r3, #0
- 80037a8: f000 80a0 beq.w 80038ec <HAL_GPIO_Init+0x2bc>
- {
- /* Enable SYSCFG Clock */
- __HAL_RCC_SYSCFG_CLK_ENABLE();
- 80037ac: 4b58 ldr r3, [pc, #352] ; (8003910 <HAL_GPIO_Init+0x2e0>)
- 80037ae: 6a1b ldr r3, [r3, #32]
- 80037b0: 4a57 ldr r2, [pc, #348] ; (8003910 <HAL_GPIO_Init+0x2e0>)
- 80037b2: f043 0301 orr.w r3, r3, #1
- 80037b6: 6213 str r3, [r2, #32]
- 80037b8: 4b55 ldr r3, [pc, #340] ; (8003910 <HAL_GPIO_Init+0x2e0>)
- 80037ba: 6a1b ldr r3, [r3, #32]
- 80037bc: f003 0301 and.w r3, r3, #1
- 80037c0: 60bb str r3, [r7, #8]
- 80037c2: 68bb ldr r3, [r7, #8]
- temp = SYSCFG->EXTICR[position >> 2];
- 80037c4: 4a53 ldr r2, [pc, #332] ; (8003914 <HAL_GPIO_Init+0x2e4>)
- 80037c6: 697b ldr r3, [r7, #20]
- 80037c8: 089b lsrs r3, r3, #2
- 80037ca: 3302 adds r3, #2
- 80037cc: f852 3023 ldr.w r3, [r2, r3, lsl #2]
- 80037d0: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, (0x0FU) << (4 * (position & 0x03)));
- 80037d2: 697b ldr r3, [r7, #20]
- 80037d4: f003 0303 and.w r3, r3, #3
- 80037d8: 009b lsls r3, r3, #2
- 80037da: 220f movs r2, #15
- 80037dc: fa02 f303 lsl.w r3, r2, r3
- 80037e0: 43db mvns r3, r3
- 80037e2: 693a ldr r2, [r7, #16]
- 80037e4: 4013 ands r3, r2
- 80037e6: 613b str r3, [r7, #16]
- SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03)));
- 80037e8: 687b ldr r3, [r7, #4]
- 80037ea: 4a4b ldr r2, [pc, #300] ; (8003918 <HAL_GPIO_Init+0x2e8>)
- 80037ec: 4293 cmp r3, r2
- 80037ee: d019 beq.n 8003824 <HAL_GPIO_Init+0x1f4>
- 80037f0: 687b ldr r3, [r7, #4]
- 80037f2: 4a4a ldr r2, [pc, #296] ; (800391c <HAL_GPIO_Init+0x2ec>)
- 80037f4: 4293 cmp r3, r2
- 80037f6: d013 beq.n 8003820 <HAL_GPIO_Init+0x1f0>
- 80037f8: 687b ldr r3, [r7, #4]
- 80037fa: 4a49 ldr r2, [pc, #292] ; (8003920 <HAL_GPIO_Init+0x2f0>)
- 80037fc: 4293 cmp r3, r2
- 80037fe: d00d beq.n 800381c <HAL_GPIO_Init+0x1ec>
- 8003800: 687b ldr r3, [r7, #4]
- 8003802: 4a48 ldr r2, [pc, #288] ; (8003924 <HAL_GPIO_Init+0x2f4>)
- 8003804: 4293 cmp r3, r2
- 8003806: d007 beq.n 8003818 <HAL_GPIO_Init+0x1e8>
- 8003808: 687b ldr r3, [r7, #4]
- 800380a: 4a47 ldr r2, [pc, #284] ; (8003928 <HAL_GPIO_Init+0x2f8>)
- 800380c: 4293 cmp r3, r2
- 800380e: d101 bne.n 8003814 <HAL_GPIO_Init+0x1e4>
- 8003810: 2304 movs r3, #4
- 8003812: e008 b.n 8003826 <HAL_GPIO_Init+0x1f6>
- 8003814: 2305 movs r3, #5
- 8003816: e006 b.n 8003826 <HAL_GPIO_Init+0x1f6>
- 8003818: 2303 movs r3, #3
- 800381a: e004 b.n 8003826 <HAL_GPIO_Init+0x1f6>
- 800381c: 2302 movs r3, #2
- 800381e: e002 b.n 8003826 <HAL_GPIO_Init+0x1f6>
- 8003820: 2301 movs r3, #1
- 8003822: e000 b.n 8003826 <HAL_GPIO_Init+0x1f6>
- 8003824: 2300 movs r3, #0
- 8003826: 697a ldr r2, [r7, #20]
- 8003828: f002 0203 and.w r2, r2, #3
- 800382c: 0092 lsls r2, r2, #2
- 800382e: 4093 lsls r3, r2
- 8003830: 693a ldr r2, [r7, #16]
- 8003832: 4313 orrs r3, r2
- 8003834: 613b str r3, [r7, #16]
- SYSCFG->EXTICR[position >> 2] = temp;
- 8003836: 4937 ldr r1, [pc, #220] ; (8003914 <HAL_GPIO_Init+0x2e4>)
- 8003838: 697b ldr r3, [r7, #20]
- 800383a: 089b lsrs r3, r3, #2
- 800383c: 3302 adds r3, #2
- 800383e: 693a ldr r2, [r7, #16]
- 8003840: f841 2023 str.w r2, [r1, r3, lsl #2]
- /* Clear EXTI line configuration */
- temp = EXTI->IMR;
- 8003844: 4b39 ldr r3, [pc, #228] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 8003846: 681b ldr r3, [r3, #0]
- 8003848: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, (uint32_t)iocurrent);
- 800384a: 68fb ldr r3, [r7, #12]
- 800384c: 43db mvns r3, r3
- 800384e: 693a ldr r2, [r7, #16]
- 8003850: 4013 ands r3, r2
- 8003852: 613b str r3, [r7, #16]
- if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
- 8003854: 683b ldr r3, [r7, #0]
- 8003856: 685b ldr r3, [r3, #4]
- 8003858: f403 3380 and.w r3, r3, #65536 ; 0x10000
- 800385c: 2b00 cmp r3, #0
- 800385e: d003 beq.n 8003868 <HAL_GPIO_Init+0x238>
- {
- SET_BIT(temp, iocurrent);
- 8003860: 693a ldr r2, [r7, #16]
- 8003862: 68fb ldr r3, [r7, #12]
- 8003864: 4313 orrs r3, r2
- 8003866: 613b str r3, [r7, #16]
- }
- EXTI->IMR = temp;
- 8003868: 4a30 ldr r2, [pc, #192] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 800386a: 693b ldr r3, [r7, #16]
- 800386c: 6013 str r3, [r2, #0]
- temp = EXTI->EMR;
- 800386e: 4b2f ldr r3, [pc, #188] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 8003870: 685b ldr r3, [r3, #4]
- 8003872: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, (uint32_t)iocurrent);
- 8003874: 68fb ldr r3, [r7, #12]
- 8003876: 43db mvns r3, r3
- 8003878: 693a ldr r2, [r7, #16]
- 800387a: 4013 ands r3, r2
- 800387c: 613b str r3, [r7, #16]
- if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
- 800387e: 683b ldr r3, [r7, #0]
- 8003880: 685b ldr r3, [r3, #4]
- 8003882: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 8003886: 2b00 cmp r3, #0
- 8003888: d003 beq.n 8003892 <HAL_GPIO_Init+0x262>
- {
- SET_BIT(temp, iocurrent);
- 800388a: 693a ldr r2, [r7, #16]
- 800388c: 68fb ldr r3, [r7, #12]
- 800388e: 4313 orrs r3, r2
- 8003890: 613b str r3, [r7, #16]
- }
- EXTI->EMR = temp;
- 8003892: 4a26 ldr r2, [pc, #152] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 8003894: 693b ldr r3, [r7, #16]
- 8003896: 6053 str r3, [r2, #4]
- /* Clear Rising Falling edge configuration */
- temp = EXTI->RTSR;
- 8003898: 4b24 ldr r3, [pc, #144] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 800389a: 689b ldr r3, [r3, #8]
- 800389c: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, (uint32_t)iocurrent);
- 800389e: 68fb ldr r3, [r7, #12]
- 80038a0: 43db mvns r3, r3
- 80038a2: 693a ldr r2, [r7, #16]
- 80038a4: 4013 ands r3, r2
- 80038a6: 613b str r3, [r7, #16]
- if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
- 80038a8: 683b ldr r3, [r7, #0]
- 80038aa: 685b ldr r3, [r3, #4]
- 80038ac: f403 1380 and.w r3, r3, #1048576 ; 0x100000
- 80038b0: 2b00 cmp r3, #0
- 80038b2: d003 beq.n 80038bc <HAL_GPIO_Init+0x28c>
- {
- SET_BIT(temp, iocurrent);
- 80038b4: 693a ldr r2, [r7, #16]
- 80038b6: 68fb ldr r3, [r7, #12]
- 80038b8: 4313 orrs r3, r2
- 80038ba: 613b str r3, [r7, #16]
- }
- EXTI->RTSR = temp;
- 80038bc: 4a1b ldr r2, [pc, #108] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 80038be: 693b ldr r3, [r7, #16]
- 80038c0: 6093 str r3, [r2, #8]
- temp = EXTI->FTSR;
- 80038c2: 4b1a ldr r3, [pc, #104] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 80038c4: 68db ldr r3, [r3, #12]
- 80038c6: 613b str r3, [r7, #16]
- CLEAR_BIT(temp, (uint32_t)iocurrent);
- 80038c8: 68fb ldr r3, [r7, #12]
- 80038ca: 43db mvns r3, r3
- 80038cc: 693a ldr r2, [r7, #16]
- 80038ce: 4013 ands r3, r2
- 80038d0: 613b str r3, [r7, #16]
- if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
- 80038d2: 683b ldr r3, [r7, #0]
- 80038d4: 685b ldr r3, [r3, #4]
- 80038d6: f403 1300 and.w r3, r3, #2097152 ; 0x200000
- 80038da: 2b00 cmp r3, #0
- 80038dc: d003 beq.n 80038e6 <HAL_GPIO_Init+0x2b6>
- {
- SET_BIT(temp, iocurrent);
- 80038de: 693a ldr r2, [r7, #16]
- 80038e0: 68fb ldr r3, [r7, #12]
- 80038e2: 4313 orrs r3, r2
- 80038e4: 613b str r3, [r7, #16]
- }
- EXTI->FTSR = temp;
- 80038e6: 4a11 ldr r2, [pc, #68] ; (800392c <HAL_GPIO_Init+0x2fc>)
- 80038e8: 693b ldr r3, [r7, #16]
- 80038ea: 60d3 str r3, [r2, #12]
- }
- }
- position++;
- 80038ec: 697b ldr r3, [r7, #20]
- 80038ee: 3301 adds r3, #1
- 80038f0: 617b str r3, [r7, #20]
- while (((GPIO_Init->Pin) >> position) != 0)
- 80038f2: 683b ldr r3, [r7, #0]
- 80038f4: 681a ldr r2, [r3, #0]
- 80038f6: 697b ldr r3, [r7, #20]
- 80038f8: fa22 f303 lsr.w r3, r2, r3
- 80038fc: 2b00 cmp r3, #0
- 80038fe: f47f aea3 bne.w 8003648 <HAL_GPIO_Init+0x18>
- }
- }
- 8003902: bf00 nop
- 8003904: bf00 nop
- 8003906: 371c adds r7, #28
- 8003908: 46bd mov sp, r7
- 800390a: bc80 pop {r7}
- 800390c: 4770 bx lr
- 800390e: bf00 nop
- 8003910: 40023800 .word 0x40023800
- 8003914: 40010000 .word 0x40010000
- 8003918: 40020000 .word 0x40020000
- 800391c: 40020400 .word 0x40020400
- 8003920: 40020800 .word 0x40020800
- 8003924: 40020c00 .word 0x40020c00
- 8003928: 40021000 .word 0x40021000
- 800392c: 40010400 .word 0x40010400
- 08003930 <HAL_GPIO_WritePin>:
- * @arg GPIO_PIN_RESET: to clear the port pin
- * @arg GPIO_PIN_SET: to set the port pin
- * @retval None
- */
- void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
- {
- 8003930: b480 push {r7}
- 8003932: b083 sub sp, #12
- 8003934: af00 add r7, sp, #0
- 8003936: 6078 str r0, [r7, #4]
- 8003938: 460b mov r3, r1
- 800393a: 807b strh r3, [r7, #2]
- 800393c: 4613 mov r3, r2
- 800393e: 707b strb r3, [r7, #1]
- /* Check the parameters */
- assert_param(IS_GPIO_PIN(GPIO_Pin));
- assert_param(IS_GPIO_PIN_ACTION(PinState));
- if (PinState != GPIO_PIN_RESET)
- 8003940: 787b ldrb r3, [r7, #1]
- 8003942: 2b00 cmp r3, #0
- 8003944: d003 beq.n 800394e <HAL_GPIO_WritePin+0x1e>
- {
- GPIOx->BSRR = (uint32_t)GPIO_Pin;
- 8003946: 887a ldrh r2, [r7, #2]
- 8003948: 687b ldr r3, [r7, #4]
- 800394a: 619a str r2, [r3, #24]
- }
- else
- {
- GPIOx->BSRR = (uint32_t)GPIO_Pin << 16 ;
- }
- }
- 800394c: e003 b.n 8003956 <HAL_GPIO_WritePin+0x26>
- GPIOx->BSRR = (uint32_t)GPIO_Pin << 16 ;
- 800394e: 887b ldrh r3, [r7, #2]
- 8003950: 041a lsls r2, r3, #16
- 8003952: 687b ldr r3, [r7, #4]
- 8003954: 619a str r2, [r3, #24]
- }
- 8003956: bf00 nop
- 8003958: 370c adds r7, #12
- 800395a: 46bd mov sp, r7
- 800395c: bc80 pop {r7}
- 800395e: 4770 bx lr
- 08003960 <HAL_GPIO_EXTI_IRQHandler>:
- * @brief This function handles EXTI interrupt request.
- * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
- * @retval None
- */
- void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
- {
- 8003960: b580 push {r7, lr}
- 8003962: b082 sub sp, #8
- 8003964: af00 add r7, sp, #0
- 8003966: 4603 mov r3, r0
- 8003968: 80fb strh r3, [r7, #6]
- /* EXTI line interrupt detected */
- if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET)
- 800396a: 4b08 ldr r3, [pc, #32] ; (800398c <HAL_GPIO_EXTI_IRQHandler+0x2c>)
- 800396c: 695a ldr r2, [r3, #20]
- 800396e: 88fb ldrh r3, [r7, #6]
- 8003970: 4013 ands r3, r2
- 8003972: 2b00 cmp r3, #0
- 8003974: d006 beq.n 8003984 <HAL_GPIO_EXTI_IRQHandler+0x24>
- {
- __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
- 8003976: 4a05 ldr r2, [pc, #20] ; (800398c <HAL_GPIO_EXTI_IRQHandler+0x2c>)
- 8003978: 88fb ldrh r3, [r7, #6]
- 800397a: 6153 str r3, [r2, #20]
- HAL_GPIO_EXTI_Callback(GPIO_Pin);
- 800397c: 88fb ldrh r3, [r7, #6]
- 800397e: 4618 mov r0, r3
- 8003980: f7fd fb34 bl 8000fec <HAL_GPIO_EXTI_Callback>
- }
- }
- 8003984: bf00 nop
- 8003986: 3708 adds r7, #8
- 8003988: 46bd mov sp, r7
- 800398a: bd80 pop {r7, pc}
- 800398c: 40010400 .word 0x40010400
- 08003990 <HAL_I2C_Init>:
- * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
- * the configuration information for the specified I2C.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
- {
- 8003990: b580 push {r7, lr}
- 8003992: b084 sub sp, #16
- 8003994: af00 add r7, sp, #0
- 8003996: 6078 str r0, [r7, #4]
- uint32_t freqrange;
- uint32_t pclk1;
- /* Check the I2C handle allocation */
- if (hi2c == NULL)
- 8003998: 687b ldr r3, [r7, #4]
- 800399a: 2b00 cmp r3, #0
- 800399c: d101 bne.n 80039a2 <HAL_I2C_Init+0x12>
- {
- return HAL_ERROR;
- 800399e: 2301 movs r3, #1
- 80039a0: e12b b.n 8003bfa <HAL_I2C_Init+0x26a>
- assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode));
- assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2));
- assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode));
- assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode));
- if (hi2c->State == HAL_I2C_STATE_RESET)
- 80039a2: 687b ldr r3, [r7, #4]
- 80039a4: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 80039a8: b2db uxtb r3, r3
- 80039aa: 2b00 cmp r3, #0
- 80039ac: d106 bne.n 80039bc <HAL_I2C_Init+0x2c>
- {
- /* Allocate lock resource and initialize it */
- hi2c->Lock = HAL_UNLOCKED;
- 80039ae: 687b ldr r3, [r7, #4]
- 80039b0: 2200 movs r2, #0
- 80039b2: f883 203c strb.w r2, [r3, #60] ; 0x3c
- /* Init the low level hardware : GPIO, CLOCK, NVIC */
- hi2c->MspInitCallback(hi2c);
- #else
- /* Init the low level hardware : GPIO, CLOCK, NVIC */
- HAL_I2C_MspInit(hi2c);
- 80039b6: 6878 ldr r0, [r7, #4]
- 80039b8: f7fe f93c bl 8001c34 <HAL_I2C_MspInit>
- #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */
- }
- hi2c->State = HAL_I2C_STATE_BUSY;
- 80039bc: 687b ldr r3, [r7, #4]
- 80039be: 2224 movs r2, #36 ; 0x24
- 80039c0: f883 203d strb.w r2, [r3, #61] ; 0x3d
- /* Disable the selected I2C peripheral */
- __HAL_I2C_DISABLE(hi2c);
- 80039c4: 687b ldr r3, [r7, #4]
- 80039c6: 681b ldr r3, [r3, #0]
- 80039c8: 681a ldr r2, [r3, #0]
- 80039ca: 687b ldr r3, [r7, #4]
- 80039cc: 681b ldr r3, [r3, #0]
- 80039ce: f022 0201 bic.w r2, r2, #1
- 80039d2: 601a str r2, [r3, #0]
- /*Reset I2C*/
- hi2c->Instance->CR1 |= I2C_CR1_SWRST;
- 80039d4: 687b ldr r3, [r7, #4]
- 80039d6: 681b ldr r3, [r3, #0]
- 80039d8: 681a ldr r2, [r3, #0]
- 80039da: 687b ldr r3, [r7, #4]
- 80039dc: 681b ldr r3, [r3, #0]
- 80039de: f442 4200 orr.w r2, r2, #32768 ; 0x8000
- 80039e2: 601a str r2, [r3, #0]
- hi2c->Instance->CR1 &= ~I2C_CR1_SWRST;
- 80039e4: 687b ldr r3, [r7, #4]
- 80039e6: 681b ldr r3, [r3, #0]
- 80039e8: 681a ldr r2, [r3, #0]
- 80039ea: 687b ldr r3, [r7, #4]
- 80039ec: 681b ldr r3, [r3, #0]
- 80039ee: f422 4200 bic.w r2, r2, #32768 ; 0x8000
- 80039f2: 601a str r2, [r3, #0]
- /* Get PCLK1 frequency */
- pclk1 = HAL_RCC_GetPCLK1Freq();
- 80039f4: f001 f962 bl 8004cbc <HAL_RCC_GetPCLK1Freq>
- 80039f8: 60f8 str r0, [r7, #12]
- /* Check the minimum allowed PCLK1 frequency */
- if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U)
- 80039fa: 687b ldr r3, [r7, #4]
- 80039fc: 685b ldr r3, [r3, #4]
- 80039fe: 4a81 ldr r2, [pc, #516] ; (8003c04 <HAL_I2C_Init+0x274>)
- 8003a00: 4293 cmp r3, r2
- 8003a02: d807 bhi.n 8003a14 <HAL_I2C_Init+0x84>
- 8003a04: 68fb ldr r3, [r7, #12]
- 8003a06: 4a80 ldr r2, [pc, #512] ; (8003c08 <HAL_I2C_Init+0x278>)
- 8003a08: 4293 cmp r3, r2
- 8003a0a: bf94 ite ls
- 8003a0c: 2301 movls r3, #1
- 8003a0e: 2300 movhi r3, #0
- 8003a10: b2db uxtb r3, r3
- 8003a12: e006 b.n 8003a22 <HAL_I2C_Init+0x92>
- 8003a14: 68fb ldr r3, [r7, #12]
- 8003a16: 4a7d ldr r2, [pc, #500] ; (8003c0c <HAL_I2C_Init+0x27c>)
- 8003a18: 4293 cmp r3, r2
- 8003a1a: bf94 ite ls
- 8003a1c: 2301 movls r3, #1
- 8003a1e: 2300 movhi r3, #0
- 8003a20: b2db uxtb r3, r3
- 8003a22: 2b00 cmp r3, #0
- 8003a24: d001 beq.n 8003a2a <HAL_I2C_Init+0x9a>
- {
- return HAL_ERROR;
- 8003a26: 2301 movs r3, #1
- 8003a28: e0e7 b.n 8003bfa <HAL_I2C_Init+0x26a>
- }
- /* Calculate frequency range */
- freqrange = I2C_FREQRANGE(pclk1);
- 8003a2a: 68fb ldr r3, [r7, #12]
- 8003a2c: 4a78 ldr r2, [pc, #480] ; (8003c10 <HAL_I2C_Init+0x280>)
- 8003a2e: fba2 2303 umull r2, r3, r2, r3
- 8003a32: 0c9b lsrs r3, r3, #18
- 8003a34: 60bb str r3, [r7, #8]
- /*---------------------------- I2Cx CR2 Configuration ----------------------*/
- /* Configure I2Cx: Frequency range */
- MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange);
- 8003a36: 687b ldr r3, [r7, #4]
- 8003a38: 681b ldr r3, [r3, #0]
- 8003a3a: 685b ldr r3, [r3, #4]
- 8003a3c: f023 013f bic.w r1, r3, #63 ; 0x3f
- 8003a40: 687b ldr r3, [r7, #4]
- 8003a42: 681b ldr r3, [r3, #0]
- 8003a44: 68ba ldr r2, [r7, #8]
- 8003a46: 430a orrs r2, r1
- 8003a48: 605a str r2, [r3, #4]
- /*---------------------------- I2Cx TRISE Configuration --------------------*/
- /* Configure I2Cx: Rise Time */
- MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed));
- 8003a4a: 687b ldr r3, [r7, #4]
- 8003a4c: 681b ldr r3, [r3, #0]
- 8003a4e: 6a1b ldr r3, [r3, #32]
- 8003a50: f023 013f bic.w r1, r3, #63 ; 0x3f
- 8003a54: 687b ldr r3, [r7, #4]
- 8003a56: 685b ldr r3, [r3, #4]
- 8003a58: 4a6a ldr r2, [pc, #424] ; (8003c04 <HAL_I2C_Init+0x274>)
- 8003a5a: 4293 cmp r3, r2
- 8003a5c: d802 bhi.n 8003a64 <HAL_I2C_Init+0xd4>
- 8003a5e: 68bb ldr r3, [r7, #8]
- 8003a60: 3301 adds r3, #1
- 8003a62: e009 b.n 8003a78 <HAL_I2C_Init+0xe8>
- 8003a64: 68bb ldr r3, [r7, #8]
- 8003a66: f44f 7296 mov.w r2, #300 ; 0x12c
- 8003a6a: fb02 f303 mul.w r3, r2, r3
- 8003a6e: 4a69 ldr r2, [pc, #420] ; (8003c14 <HAL_I2C_Init+0x284>)
- 8003a70: fba2 2303 umull r2, r3, r2, r3
- 8003a74: 099b lsrs r3, r3, #6
- 8003a76: 3301 adds r3, #1
- 8003a78: 687a ldr r2, [r7, #4]
- 8003a7a: 6812 ldr r2, [r2, #0]
- 8003a7c: 430b orrs r3, r1
- 8003a7e: 6213 str r3, [r2, #32]
- /*---------------------------- I2Cx CCR Configuration ----------------------*/
- /* Configure I2Cx: Speed */
- MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle));
- 8003a80: 687b ldr r3, [r7, #4]
- 8003a82: 681b ldr r3, [r3, #0]
- 8003a84: 69db ldr r3, [r3, #28]
- 8003a86: f423 424f bic.w r2, r3, #52992 ; 0xcf00
- 8003a8a: f022 02ff bic.w r2, r2, #255 ; 0xff
- 8003a8e: 687b ldr r3, [r7, #4]
- 8003a90: 685b ldr r3, [r3, #4]
- 8003a92: 495c ldr r1, [pc, #368] ; (8003c04 <HAL_I2C_Init+0x274>)
- 8003a94: 428b cmp r3, r1
- 8003a96: d819 bhi.n 8003acc <HAL_I2C_Init+0x13c>
- 8003a98: 68fb ldr r3, [r7, #12]
- 8003a9a: 1e59 subs r1, r3, #1
- 8003a9c: 687b ldr r3, [r7, #4]
- 8003a9e: 685b ldr r3, [r3, #4]
- 8003aa0: 005b lsls r3, r3, #1
- 8003aa2: fbb1 f3f3 udiv r3, r1, r3
- 8003aa6: 1c59 adds r1, r3, #1
- 8003aa8: f640 73fc movw r3, #4092 ; 0xffc
- 8003aac: 400b ands r3, r1
- 8003aae: 2b00 cmp r3, #0
- 8003ab0: d00a beq.n 8003ac8 <HAL_I2C_Init+0x138>
- 8003ab2: 68fb ldr r3, [r7, #12]
- 8003ab4: 1e59 subs r1, r3, #1
- 8003ab6: 687b ldr r3, [r7, #4]
- 8003ab8: 685b ldr r3, [r3, #4]
- 8003aba: 005b lsls r3, r3, #1
- 8003abc: fbb1 f3f3 udiv r3, r1, r3
- 8003ac0: 3301 adds r3, #1
- 8003ac2: f3c3 030b ubfx r3, r3, #0, #12
- 8003ac6: e051 b.n 8003b6c <HAL_I2C_Init+0x1dc>
- 8003ac8: 2304 movs r3, #4
- 8003aca: e04f b.n 8003b6c <HAL_I2C_Init+0x1dc>
- 8003acc: 687b ldr r3, [r7, #4]
- 8003ace: 689b ldr r3, [r3, #8]
- 8003ad0: 2b00 cmp r3, #0
- 8003ad2: d111 bne.n 8003af8 <HAL_I2C_Init+0x168>
- 8003ad4: 68fb ldr r3, [r7, #12]
- 8003ad6: 1e58 subs r0, r3, #1
- 8003ad8: 687b ldr r3, [r7, #4]
- 8003ada: 6859 ldr r1, [r3, #4]
- 8003adc: 460b mov r3, r1
- 8003ade: 005b lsls r3, r3, #1
- 8003ae0: 440b add r3, r1
- 8003ae2: fbb0 f3f3 udiv r3, r0, r3
- 8003ae6: 3301 adds r3, #1
- 8003ae8: f3c3 030b ubfx r3, r3, #0, #12
- 8003aec: 2b00 cmp r3, #0
- 8003aee: bf0c ite eq
- 8003af0: 2301 moveq r3, #1
- 8003af2: 2300 movne r3, #0
- 8003af4: b2db uxtb r3, r3
- 8003af6: e012 b.n 8003b1e <HAL_I2C_Init+0x18e>
- 8003af8: 68fb ldr r3, [r7, #12]
- 8003afa: 1e58 subs r0, r3, #1
- 8003afc: 687b ldr r3, [r7, #4]
- 8003afe: 6859 ldr r1, [r3, #4]
- 8003b00: 460b mov r3, r1
- 8003b02: 009b lsls r3, r3, #2
- 8003b04: 440b add r3, r1
- 8003b06: 0099 lsls r1, r3, #2
- 8003b08: 440b add r3, r1
- 8003b0a: fbb0 f3f3 udiv r3, r0, r3
- 8003b0e: 3301 adds r3, #1
- 8003b10: f3c3 030b ubfx r3, r3, #0, #12
- 8003b14: 2b00 cmp r3, #0
- 8003b16: bf0c ite eq
- 8003b18: 2301 moveq r3, #1
- 8003b1a: 2300 movne r3, #0
- 8003b1c: b2db uxtb r3, r3
- 8003b1e: 2b00 cmp r3, #0
- 8003b20: d001 beq.n 8003b26 <HAL_I2C_Init+0x196>
- 8003b22: 2301 movs r3, #1
- 8003b24: e022 b.n 8003b6c <HAL_I2C_Init+0x1dc>
- 8003b26: 687b ldr r3, [r7, #4]
- 8003b28: 689b ldr r3, [r3, #8]
- 8003b2a: 2b00 cmp r3, #0
- 8003b2c: d10e bne.n 8003b4c <HAL_I2C_Init+0x1bc>
- 8003b2e: 68fb ldr r3, [r7, #12]
- 8003b30: 1e58 subs r0, r3, #1
- 8003b32: 687b ldr r3, [r7, #4]
- 8003b34: 6859 ldr r1, [r3, #4]
- 8003b36: 460b mov r3, r1
- 8003b38: 005b lsls r3, r3, #1
- 8003b3a: 440b add r3, r1
- 8003b3c: fbb0 f3f3 udiv r3, r0, r3
- 8003b40: 3301 adds r3, #1
- 8003b42: f3c3 030b ubfx r3, r3, #0, #12
- 8003b46: f443 4300 orr.w r3, r3, #32768 ; 0x8000
- 8003b4a: e00f b.n 8003b6c <HAL_I2C_Init+0x1dc>
- 8003b4c: 68fb ldr r3, [r7, #12]
- 8003b4e: 1e58 subs r0, r3, #1
- 8003b50: 687b ldr r3, [r7, #4]
- 8003b52: 6859 ldr r1, [r3, #4]
- 8003b54: 460b mov r3, r1
- 8003b56: 009b lsls r3, r3, #2
- 8003b58: 440b add r3, r1
- 8003b5a: 0099 lsls r1, r3, #2
- 8003b5c: 440b add r3, r1
- 8003b5e: fbb0 f3f3 udiv r3, r0, r3
- 8003b62: 3301 adds r3, #1
- 8003b64: f3c3 030b ubfx r3, r3, #0, #12
- 8003b68: f443 4340 orr.w r3, r3, #49152 ; 0xc000
- 8003b6c: 6879 ldr r1, [r7, #4]
- 8003b6e: 6809 ldr r1, [r1, #0]
- 8003b70: 4313 orrs r3, r2
- 8003b72: 61cb str r3, [r1, #28]
- /*---------------------------- I2Cx CR1 Configuration ----------------------*/
- /* Configure I2Cx: Generalcall and NoStretch mode */
- MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode));
- 8003b74: 687b ldr r3, [r7, #4]
- 8003b76: 681b ldr r3, [r3, #0]
- 8003b78: 681b ldr r3, [r3, #0]
- 8003b7a: f023 01c0 bic.w r1, r3, #192 ; 0xc0
- 8003b7e: 687b ldr r3, [r7, #4]
- 8003b80: 69da ldr r2, [r3, #28]
- 8003b82: 687b ldr r3, [r7, #4]
- 8003b84: 6a1b ldr r3, [r3, #32]
- 8003b86: 431a orrs r2, r3
- 8003b88: 687b ldr r3, [r7, #4]
- 8003b8a: 681b ldr r3, [r3, #0]
- 8003b8c: 430a orrs r2, r1
- 8003b8e: 601a str r2, [r3, #0]
- /*---------------------------- I2Cx OAR1 Configuration ---------------------*/
- /* Configure I2Cx: Own Address1 and addressing mode */
- MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1));
- 8003b90: 687b ldr r3, [r7, #4]
- 8003b92: 681b ldr r3, [r3, #0]
- 8003b94: 689b ldr r3, [r3, #8]
- 8003b96: f423 4303 bic.w r3, r3, #33536 ; 0x8300
- 8003b9a: f023 03ff bic.w r3, r3, #255 ; 0xff
- 8003b9e: 687a ldr r2, [r7, #4]
- 8003ba0: 6911 ldr r1, [r2, #16]
- 8003ba2: 687a ldr r2, [r7, #4]
- 8003ba4: 68d2 ldr r2, [r2, #12]
- 8003ba6: 4311 orrs r1, r2
- 8003ba8: 687a ldr r2, [r7, #4]
- 8003baa: 6812 ldr r2, [r2, #0]
- 8003bac: 430b orrs r3, r1
- 8003bae: 6093 str r3, [r2, #8]
- /*---------------------------- I2Cx OAR2 Configuration ---------------------*/
- /* Configure I2Cx: Dual mode and Own Address2 */
- MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2));
- 8003bb0: 687b ldr r3, [r7, #4]
- 8003bb2: 681b ldr r3, [r3, #0]
- 8003bb4: 68db ldr r3, [r3, #12]
- 8003bb6: f023 01ff bic.w r1, r3, #255 ; 0xff
- 8003bba: 687b ldr r3, [r7, #4]
- 8003bbc: 695a ldr r2, [r3, #20]
- 8003bbe: 687b ldr r3, [r7, #4]
- 8003bc0: 699b ldr r3, [r3, #24]
- 8003bc2: 431a orrs r2, r3
- 8003bc4: 687b ldr r3, [r7, #4]
- 8003bc6: 681b ldr r3, [r3, #0]
- 8003bc8: 430a orrs r2, r1
- 8003bca: 60da str r2, [r3, #12]
- /* Enable the selected I2C peripheral */
- __HAL_I2C_ENABLE(hi2c);
- 8003bcc: 687b ldr r3, [r7, #4]
- 8003bce: 681b ldr r3, [r3, #0]
- 8003bd0: 681a ldr r2, [r3, #0]
- 8003bd2: 687b ldr r3, [r7, #4]
- 8003bd4: 681b ldr r3, [r3, #0]
- 8003bd6: f042 0201 orr.w r2, r2, #1
- 8003bda: 601a str r2, [r3, #0]
- hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
- 8003bdc: 687b ldr r3, [r7, #4]
- 8003bde: 2200 movs r2, #0
- 8003be0: 641a str r2, [r3, #64] ; 0x40
- hi2c->State = HAL_I2C_STATE_READY;
- 8003be2: 687b ldr r3, [r7, #4]
- 8003be4: 2220 movs r2, #32
- 8003be6: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->PreviousState = I2C_STATE_NONE;
- 8003bea: 687b ldr r3, [r7, #4]
- 8003bec: 2200 movs r2, #0
- 8003bee: 631a str r2, [r3, #48] ; 0x30
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 8003bf0: 687b ldr r3, [r7, #4]
- 8003bf2: 2200 movs r2, #0
- 8003bf4: f883 203e strb.w r2, [r3, #62] ; 0x3e
- return HAL_OK;
- 8003bf8: 2300 movs r3, #0
- }
- 8003bfa: 4618 mov r0, r3
- 8003bfc: 3710 adds r7, #16
- 8003bfe: 46bd mov sp, r7
- 8003c00: bd80 pop {r7, pc}
- 8003c02: bf00 nop
- 8003c04: 000186a0 .word 0x000186a0
- 8003c08: 001e847f .word 0x001e847f
- 8003c0c: 003d08ff .word 0x003d08ff
- 8003c10: 431bde83 .word 0x431bde83
- 8003c14: 10624dd3 .word 0x10624dd3
- 08003c18 <HAL_I2C_Mem_Write>:
- * @param Size Amount of data to be sent
- * @param Timeout Timeout duration
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
- {
- 8003c18: b580 push {r7, lr}
- 8003c1a: b088 sub sp, #32
- 8003c1c: af02 add r7, sp, #8
- 8003c1e: 60f8 str r0, [r7, #12]
- 8003c20: 4608 mov r0, r1
- 8003c22: 4611 mov r1, r2
- 8003c24: 461a mov r2, r3
- 8003c26: 4603 mov r3, r0
- 8003c28: 817b strh r3, [r7, #10]
- 8003c2a: 460b mov r3, r1
- 8003c2c: 813b strh r3, [r7, #8]
- 8003c2e: 4613 mov r3, r2
- 8003c30: 80fb strh r3, [r7, #6]
- /* Init tickstart for timeout management*/
- uint32_t tickstart = HAL_GetTick();
- 8003c32: f7fe fad3 bl 80021dc <HAL_GetTick>
- 8003c36: 6178 str r0, [r7, #20]
- /* Check the parameters */
- assert_param(IS_I2C_MEMADD_SIZE(MemAddSize));
- if (hi2c->State == HAL_I2C_STATE_READY)
- 8003c38: 68fb ldr r3, [r7, #12]
- 8003c3a: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 8003c3e: b2db uxtb r3, r3
- 8003c40: 2b20 cmp r3, #32
- 8003c42: f040 80d9 bne.w 8003df8 <HAL_I2C_Mem_Write+0x1e0>
- {
- /* Wait until BUSY flag is reset */
- if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK)
- 8003c46: 697b ldr r3, [r7, #20]
- 8003c48: 9300 str r3, [sp, #0]
- 8003c4a: 2319 movs r3, #25
- 8003c4c: 2201 movs r2, #1
- 8003c4e: 496d ldr r1, [pc, #436] ; (8003e04 <HAL_I2C_Mem_Write+0x1ec>)
- 8003c50: 68f8 ldr r0, [r7, #12]
- 8003c52: f000 f971 bl 8003f38 <I2C_WaitOnFlagUntilTimeout>
- 8003c56: 4603 mov r3, r0
- 8003c58: 2b00 cmp r3, #0
- 8003c5a: d001 beq.n 8003c60 <HAL_I2C_Mem_Write+0x48>
- {
- return HAL_BUSY;
- 8003c5c: 2302 movs r3, #2
- 8003c5e: e0cc b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
- }
- /* Process Locked */
- __HAL_LOCK(hi2c);
- 8003c60: 68fb ldr r3, [r7, #12]
- 8003c62: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
- 8003c66: 2b01 cmp r3, #1
- 8003c68: d101 bne.n 8003c6e <HAL_I2C_Mem_Write+0x56>
- 8003c6a: 2302 movs r3, #2
- 8003c6c: e0c5 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
- 8003c6e: 68fb ldr r3, [r7, #12]
- 8003c70: 2201 movs r2, #1
- 8003c72: f883 203c strb.w r2, [r3, #60] ; 0x3c
- /* Check if the I2C is already enabled */
- if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE)
- 8003c76: 68fb ldr r3, [r7, #12]
- 8003c78: 681b ldr r3, [r3, #0]
- 8003c7a: 681b ldr r3, [r3, #0]
- 8003c7c: f003 0301 and.w r3, r3, #1
- 8003c80: 2b01 cmp r3, #1
- 8003c82: d007 beq.n 8003c94 <HAL_I2C_Mem_Write+0x7c>
- {
- /* Enable I2C peripheral */
- __HAL_I2C_ENABLE(hi2c);
- 8003c84: 68fb ldr r3, [r7, #12]
- 8003c86: 681b ldr r3, [r3, #0]
- 8003c88: 681a ldr r2, [r3, #0]
- 8003c8a: 68fb ldr r3, [r7, #12]
- 8003c8c: 681b ldr r3, [r3, #0]
- 8003c8e: f042 0201 orr.w r2, r2, #1
- 8003c92: 601a str r2, [r3, #0]
- }
- /* Disable Pos */
- CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS);
- 8003c94: 68fb ldr r3, [r7, #12]
- 8003c96: 681b ldr r3, [r3, #0]
- 8003c98: 681a ldr r2, [r3, #0]
- 8003c9a: 68fb ldr r3, [r7, #12]
- 8003c9c: 681b ldr r3, [r3, #0]
- 8003c9e: f422 6200 bic.w r2, r2, #2048 ; 0x800
- 8003ca2: 601a str r2, [r3, #0]
- hi2c->State = HAL_I2C_STATE_BUSY_TX;
- 8003ca4: 68fb ldr r3, [r7, #12]
- 8003ca6: 2221 movs r2, #33 ; 0x21
- 8003ca8: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_MEM;
- 8003cac: 68fb ldr r3, [r7, #12]
- 8003cae: 2240 movs r2, #64 ; 0x40
- 8003cb0: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
- 8003cb4: 68fb ldr r3, [r7, #12]
- 8003cb6: 2200 movs r2, #0
- 8003cb8: 641a str r2, [r3, #64] ; 0x40
- /* Prepare transfer parameters */
- hi2c->pBuffPtr = pData;
- 8003cba: 68fb ldr r3, [r7, #12]
- 8003cbc: 6a3a ldr r2, [r7, #32]
- 8003cbe: 625a str r2, [r3, #36] ; 0x24
- hi2c->XferCount = Size;
- 8003cc0: 68fb ldr r3, [r7, #12]
- 8003cc2: 8cba ldrh r2, [r7, #36] ; 0x24
- 8003cc4: 855a strh r2, [r3, #42] ; 0x2a
- hi2c->XferSize = hi2c->XferCount;
- 8003cc6: 68fb ldr r3, [r7, #12]
- 8003cc8: 8d5b ldrh r3, [r3, #42] ; 0x2a
- 8003cca: b29a uxth r2, r3
- 8003ccc: 68fb ldr r3, [r7, #12]
- 8003cce: 851a strh r2, [r3, #40] ; 0x28
- hi2c->XferOptions = I2C_NO_OPTION_FRAME;
- 8003cd0: 68fb ldr r3, [r7, #12]
- 8003cd2: 4a4d ldr r2, [pc, #308] ; (8003e08 <HAL_I2C_Mem_Write+0x1f0>)
- 8003cd4: 62da str r2, [r3, #44] ; 0x2c
- /* Send Slave Address and Memory Address */
- if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK)
- 8003cd6: 88f8 ldrh r0, [r7, #6]
- 8003cd8: 893a ldrh r2, [r7, #8]
- 8003cda: 8979 ldrh r1, [r7, #10]
- 8003cdc: 697b ldr r3, [r7, #20]
- 8003cde: 9301 str r3, [sp, #4]
- 8003ce0: 6abb ldr r3, [r7, #40] ; 0x28
- 8003ce2: 9300 str r3, [sp, #0]
- 8003ce4: 4603 mov r3, r0
- 8003ce6: 68f8 ldr r0, [r7, #12]
- 8003ce8: f000 f890 bl 8003e0c <I2C_RequestMemoryWrite>
- 8003cec: 4603 mov r3, r0
- 8003cee: 2b00 cmp r3, #0
- 8003cf0: d052 beq.n 8003d98 <HAL_I2C_Mem_Write+0x180>
- {
- return HAL_ERROR;
- 8003cf2: 2301 movs r3, #1
- 8003cf4: e081 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
- }
- while (hi2c->XferSize > 0U)
- {
- /* Wait until TXE flag is set */
- if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)
- 8003cf6: 697a ldr r2, [r7, #20]
- 8003cf8: 6ab9 ldr r1, [r7, #40] ; 0x28
- 8003cfa: 68f8 ldr r0, [r7, #12]
- 8003cfc: f000 f9f2 bl 80040e4 <I2C_WaitOnTXEFlagUntilTimeout>
- 8003d00: 4603 mov r3, r0
- 8003d02: 2b00 cmp r3, #0
- 8003d04: d00d beq.n 8003d22 <HAL_I2C_Mem_Write+0x10a>
- {
- if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
- 8003d06: 68fb ldr r3, [r7, #12]
- 8003d08: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003d0a: 2b04 cmp r3, #4
- 8003d0c: d107 bne.n 8003d1e <HAL_I2C_Mem_Write+0x106>
- {
- /* Generate Stop */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
- 8003d0e: 68fb ldr r3, [r7, #12]
- 8003d10: 681b ldr r3, [r3, #0]
- 8003d12: 681a ldr r2, [r3, #0]
- 8003d14: 68fb ldr r3, [r7, #12]
- 8003d16: 681b ldr r3, [r3, #0]
- 8003d18: f442 7200 orr.w r2, r2, #512 ; 0x200
- 8003d1c: 601a str r2, [r3, #0]
- }
- return HAL_ERROR;
- 8003d1e: 2301 movs r3, #1
- 8003d20: e06b b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
- }
- /* Write data to DR */
- hi2c->Instance->DR = *hi2c->pBuffPtr;
- 8003d22: 68fb ldr r3, [r7, #12]
- 8003d24: 6a5b ldr r3, [r3, #36] ; 0x24
- 8003d26: 781a ldrb r2, [r3, #0]
- 8003d28: 68fb ldr r3, [r7, #12]
- 8003d2a: 681b ldr r3, [r3, #0]
- 8003d2c: 611a str r2, [r3, #16]
- /* Increment Buffer pointer */
- hi2c->pBuffPtr++;
- 8003d2e: 68fb ldr r3, [r7, #12]
- 8003d30: 6a5b ldr r3, [r3, #36] ; 0x24
- 8003d32: 1c5a adds r2, r3, #1
- 8003d34: 68fb ldr r3, [r7, #12]
- 8003d36: 625a str r2, [r3, #36] ; 0x24
- /* Update counter */
- hi2c->XferSize--;
- 8003d38: 68fb ldr r3, [r7, #12]
- 8003d3a: 8d1b ldrh r3, [r3, #40] ; 0x28
- 8003d3c: 3b01 subs r3, #1
- 8003d3e: b29a uxth r2, r3
- 8003d40: 68fb ldr r3, [r7, #12]
- 8003d42: 851a strh r2, [r3, #40] ; 0x28
- hi2c->XferCount--;
- 8003d44: 68fb ldr r3, [r7, #12]
- 8003d46: 8d5b ldrh r3, [r3, #42] ; 0x2a
- 8003d48: b29b uxth r3, r3
- 8003d4a: 3b01 subs r3, #1
- 8003d4c: b29a uxth r2, r3
- 8003d4e: 68fb ldr r3, [r7, #12]
- 8003d50: 855a strh r2, [r3, #42] ; 0x2a
- if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U))
- 8003d52: 68fb ldr r3, [r7, #12]
- 8003d54: 681b ldr r3, [r3, #0]
- 8003d56: 695b ldr r3, [r3, #20]
- 8003d58: f003 0304 and.w r3, r3, #4
- 8003d5c: 2b04 cmp r3, #4
- 8003d5e: d11b bne.n 8003d98 <HAL_I2C_Mem_Write+0x180>
- 8003d60: 68fb ldr r3, [r7, #12]
- 8003d62: 8d1b ldrh r3, [r3, #40] ; 0x28
- 8003d64: 2b00 cmp r3, #0
- 8003d66: d017 beq.n 8003d98 <HAL_I2C_Mem_Write+0x180>
- {
- /* Write data to DR */
- hi2c->Instance->DR = *hi2c->pBuffPtr;
- 8003d68: 68fb ldr r3, [r7, #12]
- 8003d6a: 6a5b ldr r3, [r3, #36] ; 0x24
- 8003d6c: 781a ldrb r2, [r3, #0]
- 8003d6e: 68fb ldr r3, [r7, #12]
- 8003d70: 681b ldr r3, [r3, #0]
- 8003d72: 611a str r2, [r3, #16]
- /* Increment Buffer pointer */
- hi2c->pBuffPtr++;
- 8003d74: 68fb ldr r3, [r7, #12]
- 8003d76: 6a5b ldr r3, [r3, #36] ; 0x24
- 8003d78: 1c5a adds r2, r3, #1
- 8003d7a: 68fb ldr r3, [r7, #12]
- 8003d7c: 625a str r2, [r3, #36] ; 0x24
- /* Update counter */
- hi2c->XferSize--;
- 8003d7e: 68fb ldr r3, [r7, #12]
- 8003d80: 8d1b ldrh r3, [r3, #40] ; 0x28
- 8003d82: 3b01 subs r3, #1
- 8003d84: b29a uxth r2, r3
- 8003d86: 68fb ldr r3, [r7, #12]
- 8003d88: 851a strh r2, [r3, #40] ; 0x28
- hi2c->XferCount--;
- 8003d8a: 68fb ldr r3, [r7, #12]
- 8003d8c: 8d5b ldrh r3, [r3, #42] ; 0x2a
- 8003d8e: b29b uxth r3, r3
- 8003d90: 3b01 subs r3, #1
- 8003d92: b29a uxth r2, r3
- 8003d94: 68fb ldr r3, [r7, #12]
- 8003d96: 855a strh r2, [r3, #42] ; 0x2a
- while (hi2c->XferSize > 0U)
- 8003d98: 68fb ldr r3, [r7, #12]
- 8003d9a: 8d1b ldrh r3, [r3, #40] ; 0x28
- 8003d9c: 2b00 cmp r3, #0
- 8003d9e: d1aa bne.n 8003cf6 <HAL_I2C_Mem_Write+0xde>
- }
- }
- /* Wait until BTF flag is set */
- if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)
- 8003da0: 697a ldr r2, [r7, #20]
- 8003da2: 6ab9 ldr r1, [r7, #40] ; 0x28
- 8003da4: 68f8 ldr r0, [r7, #12]
- 8003da6: f000 f9de bl 8004166 <I2C_WaitOnBTFFlagUntilTimeout>
- 8003daa: 4603 mov r3, r0
- 8003dac: 2b00 cmp r3, #0
- 8003dae: d00d beq.n 8003dcc <HAL_I2C_Mem_Write+0x1b4>
- {
- if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
- 8003db0: 68fb ldr r3, [r7, #12]
- 8003db2: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003db4: 2b04 cmp r3, #4
- 8003db6: d107 bne.n 8003dc8 <HAL_I2C_Mem_Write+0x1b0>
- {
- /* Generate Stop */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
- 8003db8: 68fb ldr r3, [r7, #12]
- 8003dba: 681b ldr r3, [r3, #0]
- 8003dbc: 681a ldr r2, [r3, #0]
- 8003dbe: 68fb ldr r3, [r7, #12]
- 8003dc0: 681b ldr r3, [r3, #0]
- 8003dc2: f442 7200 orr.w r2, r2, #512 ; 0x200
- 8003dc6: 601a str r2, [r3, #0]
- }
- return HAL_ERROR;
- 8003dc8: 2301 movs r3, #1
- 8003dca: e016 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
- }
- /* Generate Stop */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
- 8003dcc: 68fb ldr r3, [r7, #12]
- 8003dce: 681b ldr r3, [r3, #0]
- 8003dd0: 681a ldr r2, [r3, #0]
- 8003dd2: 68fb ldr r3, [r7, #12]
- 8003dd4: 681b ldr r3, [r3, #0]
- 8003dd6: f442 7200 orr.w r2, r2, #512 ; 0x200
- 8003dda: 601a str r2, [r3, #0]
- hi2c->State = HAL_I2C_STATE_READY;
- 8003ddc: 68fb ldr r3, [r7, #12]
- 8003dde: 2220 movs r2, #32
- 8003de0: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 8003de4: 68fb ldr r3, [r7, #12]
- 8003de6: 2200 movs r2, #0
- 8003de8: f883 203e strb.w r2, [r3, #62] ; 0x3e
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 8003dec: 68fb ldr r3, [r7, #12]
- 8003dee: 2200 movs r2, #0
- 8003df0: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_OK;
- 8003df4: 2300 movs r3, #0
- 8003df6: e000 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
- }
- else
- {
- return HAL_BUSY;
- 8003df8: 2302 movs r3, #2
- }
- }
- 8003dfa: 4618 mov r0, r3
- 8003dfc: 3718 adds r7, #24
- 8003dfe: 46bd mov sp, r7
- 8003e00: bd80 pop {r7, pc}
- 8003e02: bf00 nop
- 8003e04: 00100002 .word 0x00100002
- 8003e08: ffff0000 .word 0xffff0000
- 08003e0c <I2C_RequestMemoryWrite>:
- * @param Timeout Timeout duration
- * @param Tickstart Tick start value
- * @retval HAL status
- */
- static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart)
- {
- 8003e0c: b580 push {r7, lr}
- 8003e0e: b088 sub sp, #32
- 8003e10: af02 add r7, sp, #8
- 8003e12: 60f8 str r0, [r7, #12]
- 8003e14: 4608 mov r0, r1
- 8003e16: 4611 mov r1, r2
- 8003e18: 461a mov r2, r3
- 8003e1a: 4603 mov r3, r0
- 8003e1c: 817b strh r3, [r7, #10]
- 8003e1e: 460b mov r3, r1
- 8003e20: 813b strh r3, [r7, #8]
- 8003e22: 4613 mov r3, r2
- 8003e24: 80fb strh r3, [r7, #6]
- /* Generate Start */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_START);
- 8003e26: 68fb ldr r3, [r7, #12]
- 8003e28: 681b ldr r3, [r3, #0]
- 8003e2a: 681a ldr r2, [r3, #0]
- 8003e2c: 68fb ldr r3, [r7, #12]
- 8003e2e: 681b ldr r3, [r3, #0]
- 8003e30: f442 7280 orr.w r2, r2, #256 ; 0x100
- 8003e34: 601a str r2, [r3, #0]
- /* Wait until SB flag is set */
- if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK)
- 8003e36: 6a7b ldr r3, [r7, #36] ; 0x24
- 8003e38: 9300 str r3, [sp, #0]
- 8003e3a: 6a3b ldr r3, [r7, #32]
- 8003e3c: 2200 movs r2, #0
- 8003e3e: f04f 1101 mov.w r1, #65537 ; 0x10001
- 8003e42: 68f8 ldr r0, [r7, #12]
- 8003e44: f000 f878 bl 8003f38 <I2C_WaitOnFlagUntilTimeout>
- 8003e48: 4603 mov r3, r0
- 8003e4a: 2b00 cmp r3, #0
- 8003e4c: d00d beq.n 8003e6a <I2C_RequestMemoryWrite+0x5e>
- {
- if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START)
- 8003e4e: 68fb ldr r3, [r7, #12]
- 8003e50: 681b ldr r3, [r3, #0]
- 8003e52: 681b ldr r3, [r3, #0]
- 8003e54: f403 7380 and.w r3, r3, #256 ; 0x100
- 8003e58: f5b3 7f80 cmp.w r3, #256 ; 0x100
- 8003e5c: d103 bne.n 8003e66 <I2C_RequestMemoryWrite+0x5a>
- {
- hi2c->ErrorCode = HAL_I2C_WRONG_START;
- 8003e5e: 68fb ldr r3, [r7, #12]
- 8003e60: f44f 7200 mov.w r2, #512 ; 0x200
- 8003e64: 641a str r2, [r3, #64] ; 0x40
- }
- return HAL_TIMEOUT;
- 8003e66: 2303 movs r3, #3
- 8003e68: e05f b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
- }
- /* Send slave address */
- hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress);
- 8003e6a: 897b ldrh r3, [r7, #10]
- 8003e6c: b2db uxtb r3, r3
- 8003e6e: 461a mov r2, r3
- 8003e70: 68fb ldr r3, [r7, #12]
- 8003e72: 681b ldr r3, [r3, #0]
- 8003e74: f002 02fe and.w r2, r2, #254 ; 0xfe
- 8003e78: 611a str r2, [r3, #16]
- /* Wait until ADDR flag is set */
- if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK)
- 8003e7a: 6a7b ldr r3, [r7, #36] ; 0x24
- 8003e7c: 6a3a ldr r2, [r7, #32]
- 8003e7e: 492d ldr r1, [pc, #180] ; (8003f34 <I2C_RequestMemoryWrite+0x128>)
- 8003e80: 68f8 ldr r0, [r7, #12]
- 8003e82: f000 f8b0 bl 8003fe6 <I2C_WaitOnMasterAddressFlagUntilTimeout>
- 8003e86: 4603 mov r3, r0
- 8003e88: 2b00 cmp r3, #0
- 8003e8a: d001 beq.n 8003e90 <I2C_RequestMemoryWrite+0x84>
- {
- return HAL_ERROR;
- 8003e8c: 2301 movs r3, #1
- 8003e8e: e04c b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
- }
- /* Clear ADDR flag */
- __HAL_I2C_CLEAR_ADDRFLAG(hi2c);
- 8003e90: 2300 movs r3, #0
- 8003e92: 617b str r3, [r7, #20]
- 8003e94: 68fb ldr r3, [r7, #12]
- 8003e96: 681b ldr r3, [r3, #0]
- 8003e98: 695b ldr r3, [r3, #20]
- 8003e9a: 617b str r3, [r7, #20]
- 8003e9c: 68fb ldr r3, [r7, #12]
- 8003e9e: 681b ldr r3, [r3, #0]
- 8003ea0: 699b ldr r3, [r3, #24]
- 8003ea2: 617b str r3, [r7, #20]
- 8003ea4: 697b ldr r3, [r7, #20]
- /* Wait until TXE flag is set */
- if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)
- 8003ea6: 6a7a ldr r2, [r7, #36] ; 0x24
- 8003ea8: 6a39 ldr r1, [r7, #32]
- 8003eaa: 68f8 ldr r0, [r7, #12]
- 8003eac: f000 f91a bl 80040e4 <I2C_WaitOnTXEFlagUntilTimeout>
- 8003eb0: 4603 mov r3, r0
- 8003eb2: 2b00 cmp r3, #0
- 8003eb4: d00d beq.n 8003ed2 <I2C_RequestMemoryWrite+0xc6>
- {
- if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
- 8003eb6: 68fb ldr r3, [r7, #12]
- 8003eb8: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003eba: 2b04 cmp r3, #4
- 8003ebc: d107 bne.n 8003ece <I2C_RequestMemoryWrite+0xc2>
- {
- /* Generate Stop */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
- 8003ebe: 68fb ldr r3, [r7, #12]
- 8003ec0: 681b ldr r3, [r3, #0]
- 8003ec2: 681a ldr r2, [r3, #0]
- 8003ec4: 68fb ldr r3, [r7, #12]
- 8003ec6: 681b ldr r3, [r3, #0]
- 8003ec8: f442 7200 orr.w r2, r2, #512 ; 0x200
- 8003ecc: 601a str r2, [r3, #0]
- }
- return HAL_ERROR;
- 8003ece: 2301 movs r3, #1
- 8003ed0: e02b b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
- }
- /* If Memory address size is 8Bit */
- if (MemAddSize == I2C_MEMADD_SIZE_8BIT)
- 8003ed2: 88fb ldrh r3, [r7, #6]
- 8003ed4: 2b01 cmp r3, #1
- 8003ed6: d105 bne.n 8003ee4 <I2C_RequestMemoryWrite+0xd8>
- {
- /* Send Memory Address */
- hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress);
- 8003ed8: 893b ldrh r3, [r7, #8]
- 8003eda: b2da uxtb r2, r3
- 8003edc: 68fb ldr r3, [r7, #12]
- 8003ede: 681b ldr r3, [r3, #0]
- 8003ee0: 611a str r2, [r3, #16]
- 8003ee2: e021 b.n 8003f28 <I2C_RequestMemoryWrite+0x11c>
- }
- /* If Memory address size is 16Bit */
- else
- {
- /* Send MSB of Memory Address */
- hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress);
- 8003ee4: 893b ldrh r3, [r7, #8]
- 8003ee6: 0a1b lsrs r3, r3, #8
- 8003ee8: b29b uxth r3, r3
- 8003eea: b2da uxtb r2, r3
- 8003eec: 68fb ldr r3, [r7, #12]
- 8003eee: 681b ldr r3, [r3, #0]
- 8003ef0: 611a str r2, [r3, #16]
- /* Wait until TXE flag is set */
- if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)
- 8003ef2: 6a7a ldr r2, [r7, #36] ; 0x24
- 8003ef4: 6a39 ldr r1, [r7, #32]
- 8003ef6: 68f8 ldr r0, [r7, #12]
- 8003ef8: f000 f8f4 bl 80040e4 <I2C_WaitOnTXEFlagUntilTimeout>
- 8003efc: 4603 mov r3, r0
- 8003efe: 2b00 cmp r3, #0
- 8003f00: d00d beq.n 8003f1e <I2C_RequestMemoryWrite+0x112>
- {
- if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
- 8003f02: 68fb ldr r3, [r7, #12]
- 8003f04: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003f06: 2b04 cmp r3, #4
- 8003f08: d107 bne.n 8003f1a <I2C_RequestMemoryWrite+0x10e>
- {
- /* Generate Stop */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
- 8003f0a: 68fb ldr r3, [r7, #12]
- 8003f0c: 681b ldr r3, [r3, #0]
- 8003f0e: 681a ldr r2, [r3, #0]
- 8003f10: 68fb ldr r3, [r7, #12]
- 8003f12: 681b ldr r3, [r3, #0]
- 8003f14: f442 7200 orr.w r2, r2, #512 ; 0x200
- 8003f18: 601a str r2, [r3, #0]
- }
- return HAL_ERROR;
- 8003f1a: 2301 movs r3, #1
- 8003f1c: e005 b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
- }
- /* Send LSB of Memory Address */
- hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress);
- 8003f1e: 893b ldrh r3, [r7, #8]
- 8003f20: b2da uxtb r2, r3
- 8003f22: 68fb ldr r3, [r7, #12]
- 8003f24: 681b ldr r3, [r3, #0]
- 8003f26: 611a str r2, [r3, #16]
- }
- return HAL_OK;
- 8003f28: 2300 movs r3, #0
- }
- 8003f2a: 4618 mov r0, r3
- 8003f2c: 3718 adds r7, #24
- 8003f2e: 46bd mov sp, r7
- 8003f30: bd80 pop {r7, pc}
- 8003f32: bf00 nop
- 8003f34: 00010002 .word 0x00010002
- 08003f38 <I2C_WaitOnFlagUntilTimeout>:
- * @param Timeout Timeout duration
- * @param Tickstart Tick start value
- * @retval HAL status
- */
- static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart)
- {
- 8003f38: b580 push {r7, lr}
- 8003f3a: b084 sub sp, #16
- 8003f3c: af00 add r7, sp, #0
- 8003f3e: 60f8 str r0, [r7, #12]
- 8003f40: 60b9 str r1, [r7, #8]
- 8003f42: 603b str r3, [r7, #0]
- 8003f44: 4613 mov r3, r2
- 8003f46: 71fb strb r3, [r7, #7]
- /* Wait until flag is set */
- while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)
- 8003f48: e025 b.n 8003f96 <I2C_WaitOnFlagUntilTimeout+0x5e>
- {
- /* Check for the Timeout */
- if (Timeout != HAL_MAX_DELAY)
- 8003f4a: 683b ldr r3, [r7, #0]
- 8003f4c: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
- 8003f50: d021 beq.n 8003f96 <I2C_WaitOnFlagUntilTimeout+0x5e>
- {
- if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
- 8003f52: f7fe f943 bl 80021dc <HAL_GetTick>
- 8003f56: 4602 mov r2, r0
- 8003f58: 69bb ldr r3, [r7, #24]
- 8003f5a: 1ad3 subs r3, r2, r3
- 8003f5c: 683a ldr r2, [r7, #0]
- 8003f5e: 429a cmp r2, r3
- 8003f60: d302 bcc.n 8003f68 <I2C_WaitOnFlagUntilTimeout+0x30>
- 8003f62: 683b ldr r3, [r7, #0]
- 8003f64: 2b00 cmp r3, #0
- 8003f66: d116 bne.n 8003f96 <I2C_WaitOnFlagUntilTimeout+0x5e>
- {
- hi2c->PreviousState = I2C_STATE_NONE;
- 8003f68: 68fb ldr r3, [r7, #12]
- 8003f6a: 2200 movs r2, #0
- 8003f6c: 631a str r2, [r3, #48] ; 0x30
- hi2c->State = HAL_I2C_STATE_READY;
- 8003f6e: 68fb ldr r3, [r7, #12]
- 8003f70: 2220 movs r2, #32
- 8003f72: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 8003f76: 68fb ldr r3, [r7, #12]
- 8003f78: 2200 movs r2, #0
- 8003f7a: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
- 8003f7e: 68fb ldr r3, [r7, #12]
- 8003f80: 6c1b ldr r3, [r3, #64] ; 0x40
- 8003f82: f043 0220 orr.w r2, r3, #32
- 8003f86: 68fb ldr r3, [r7, #12]
- 8003f88: 641a str r2, [r3, #64] ; 0x40
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 8003f8a: 68fb ldr r3, [r7, #12]
- 8003f8c: 2200 movs r2, #0
- 8003f8e: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_ERROR;
- 8003f92: 2301 movs r3, #1
- 8003f94: e023 b.n 8003fde <I2C_WaitOnFlagUntilTimeout+0xa6>
- while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)
- 8003f96: 68bb ldr r3, [r7, #8]
- 8003f98: 0c1b lsrs r3, r3, #16
- 8003f9a: b2db uxtb r3, r3
- 8003f9c: 2b01 cmp r3, #1
- 8003f9e: d10d bne.n 8003fbc <I2C_WaitOnFlagUntilTimeout+0x84>
- 8003fa0: 68fb ldr r3, [r7, #12]
- 8003fa2: 681b ldr r3, [r3, #0]
- 8003fa4: 695b ldr r3, [r3, #20]
- 8003fa6: 43da mvns r2, r3
- 8003fa8: 68bb ldr r3, [r7, #8]
- 8003faa: 4013 ands r3, r2
- 8003fac: b29b uxth r3, r3
- 8003fae: 2b00 cmp r3, #0
- 8003fb0: bf0c ite eq
- 8003fb2: 2301 moveq r3, #1
- 8003fb4: 2300 movne r3, #0
- 8003fb6: b2db uxtb r3, r3
- 8003fb8: 461a mov r2, r3
- 8003fba: e00c b.n 8003fd6 <I2C_WaitOnFlagUntilTimeout+0x9e>
- 8003fbc: 68fb ldr r3, [r7, #12]
- 8003fbe: 681b ldr r3, [r3, #0]
- 8003fc0: 699b ldr r3, [r3, #24]
- 8003fc2: 43da mvns r2, r3
- 8003fc4: 68bb ldr r3, [r7, #8]
- 8003fc6: 4013 ands r3, r2
- 8003fc8: b29b uxth r3, r3
- 8003fca: 2b00 cmp r3, #0
- 8003fcc: bf0c ite eq
- 8003fce: 2301 moveq r3, #1
- 8003fd0: 2300 movne r3, #0
- 8003fd2: b2db uxtb r3, r3
- 8003fd4: 461a mov r2, r3
- 8003fd6: 79fb ldrb r3, [r7, #7]
- 8003fd8: 429a cmp r2, r3
- 8003fda: d0b6 beq.n 8003f4a <I2C_WaitOnFlagUntilTimeout+0x12>
- }
- }
- }
- return HAL_OK;
- 8003fdc: 2300 movs r3, #0
- }
- 8003fde: 4618 mov r0, r3
- 8003fe0: 3710 adds r7, #16
- 8003fe2: 46bd mov sp, r7
- 8003fe4: bd80 pop {r7, pc}
- 08003fe6 <I2C_WaitOnMasterAddressFlagUntilTimeout>:
- * @param Timeout Timeout duration
- * @param Tickstart Tick start value
- * @retval HAL status
- */
- static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart)
- {
- 8003fe6: b580 push {r7, lr}
- 8003fe8: b084 sub sp, #16
- 8003fea: af00 add r7, sp, #0
- 8003fec: 60f8 str r0, [r7, #12]
- 8003fee: 60b9 str r1, [r7, #8]
- 8003ff0: 607a str r2, [r7, #4]
- 8003ff2: 603b str r3, [r7, #0]
- while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
- 8003ff4: e051 b.n 800409a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
- {
- if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET)
- 8003ff6: 68fb ldr r3, [r7, #12]
- 8003ff8: 681b ldr r3, [r3, #0]
- 8003ffa: 695b ldr r3, [r3, #20]
- 8003ffc: f403 6380 and.w r3, r3, #1024 ; 0x400
- 8004000: f5b3 6f80 cmp.w r3, #1024 ; 0x400
- 8004004: d123 bne.n 800404e <I2C_WaitOnMasterAddressFlagUntilTimeout+0x68>
- {
- /* Generate Stop */
- SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
- 8004006: 68fb ldr r3, [r7, #12]
- 8004008: 681b ldr r3, [r3, #0]
- 800400a: 681a ldr r2, [r3, #0]
- 800400c: 68fb ldr r3, [r7, #12]
- 800400e: 681b ldr r3, [r3, #0]
- 8004010: f442 7200 orr.w r2, r2, #512 ; 0x200
- 8004014: 601a str r2, [r3, #0]
- /* Clear AF Flag */
- __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);
- 8004016: 68fb ldr r3, [r7, #12]
- 8004018: 681b ldr r3, [r3, #0]
- 800401a: f46f 6280 mvn.w r2, #1024 ; 0x400
- 800401e: 615a str r2, [r3, #20]
- hi2c->PreviousState = I2C_STATE_NONE;
- 8004020: 68fb ldr r3, [r7, #12]
- 8004022: 2200 movs r2, #0
- 8004024: 631a str r2, [r3, #48] ; 0x30
- hi2c->State = HAL_I2C_STATE_READY;
- 8004026: 68fb ldr r3, [r7, #12]
- 8004028: 2220 movs r2, #32
- 800402a: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 800402e: 68fb ldr r3, [r7, #12]
- 8004030: 2200 movs r2, #0
- 8004032: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode |= HAL_I2C_ERROR_AF;
- 8004036: 68fb ldr r3, [r7, #12]
- 8004038: 6c1b ldr r3, [r3, #64] ; 0x40
- 800403a: f043 0204 orr.w r2, r3, #4
- 800403e: 68fb ldr r3, [r7, #12]
- 8004040: 641a str r2, [r3, #64] ; 0x40
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 8004042: 68fb ldr r3, [r7, #12]
- 8004044: 2200 movs r2, #0
- 8004046: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_ERROR;
- 800404a: 2301 movs r3, #1
- 800404c: e046 b.n 80040dc <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf6>
- }
- /* Check for the Timeout */
- if (Timeout != HAL_MAX_DELAY)
- 800404e: 687b ldr r3, [r7, #4]
- 8004050: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
- 8004054: d021 beq.n 800409a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
- {
- if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
- 8004056: f7fe f8c1 bl 80021dc <HAL_GetTick>
- 800405a: 4602 mov r2, r0
- 800405c: 683b ldr r3, [r7, #0]
- 800405e: 1ad3 subs r3, r2, r3
- 8004060: 687a ldr r2, [r7, #4]
- 8004062: 429a cmp r2, r3
- 8004064: d302 bcc.n 800406c <I2C_WaitOnMasterAddressFlagUntilTimeout+0x86>
- 8004066: 687b ldr r3, [r7, #4]
- 8004068: 2b00 cmp r3, #0
- 800406a: d116 bne.n 800409a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
- {
- hi2c->PreviousState = I2C_STATE_NONE;
- 800406c: 68fb ldr r3, [r7, #12]
- 800406e: 2200 movs r2, #0
- 8004070: 631a str r2, [r3, #48] ; 0x30
- hi2c->State = HAL_I2C_STATE_READY;
- 8004072: 68fb ldr r3, [r7, #12]
- 8004074: 2220 movs r2, #32
- 8004076: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 800407a: 68fb ldr r3, [r7, #12]
- 800407c: 2200 movs r2, #0
- 800407e: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
- 8004082: 68fb ldr r3, [r7, #12]
- 8004084: 6c1b ldr r3, [r3, #64] ; 0x40
- 8004086: f043 0220 orr.w r2, r3, #32
- 800408a: 68fb ldr r3, [r7, #12]
- 800408c: 641a str r2, [r3, #64] ; 0x40
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 800408e: 68fb ldr r3, [r7, #12]
- 8004090: 2200 movs r2, #0
- 8004092: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_ERROR;
- 8004096: 2301 movs r3, #1
- 8004098: e020 b.n 80040dc <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf6>
- while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
- 800409a: 68bb ldr r3, [r7, #8]
- 800409c: 0c1b lsrs r3, r3, #16
- 800409e: b2db uxtb r3, r3
- 80040a0: 2b01 cmp r3, #1
- 80040a2: d10c bne.n 80040be <I2C_WaitOnMasterAddressFlagUntilTimeout+0xd8>
- 80040a4: 68fb ldr r3, [r7, #12]
- 80040a6: 681b ldr r3, [r3, #0]
- 80040a8: 695b ldr r3, [r3, #20]
- 80040aa: 43da mvns r2, r3
- 80040ac: 68bb ldr r3, [r7, #8]
- 80040ae: 4013 ands r3, r2
- 80040b0: b29b uxth r3, r3
- 80040b2: 2b00 cmp r3, #0
- 80040b4: bf14 ite ne
- 80040b6: 2301 movne r3, #1
- 80040b8: 2300 moveq r3, #0
- 80040ba: b2db uxtb r3, r3
- 80040bc: e00b b.n 80040d6 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf0>
- 80040be: 68fb ldr r3, [r7, #12]
- 80040c0: 681b ldr r3, [r3, #0]
- 80040c2: 699b ldr r3, [r3, #24]
- 80040c4: 43da mvns r2, r3
- 80040c6: 68bb ldr r3, [r7, #8]
- 80040c8: 4013 ands r3, r2
- 80040ca: b29b uxth r3, r3
- 80040cc: 2b00 cmp r3, #0
- 80040ce: bf14 ite ne
- 80040d0: 2301 movne r3, #1
- 80040d2: 2300 moveq r3, #0
- 80040d4: b2db uxtb r3, r3
- 80040d6: 2b00 cmp r3, #0
- 80040d8: d18d bne.n 8003ff6 <I2C_WaitOnMasterAddressFlagUntilTimeout+0x10>
- }
- }
- }
- return HAL_OK;
- 80040da: 2300 movs r3, #0
- }
- 80040dc: 4618 mov r0, r3
- 80040de: 3710 adds r7, #16
- 80040e0: 46bd mov sp, r7
- 80040e2: bd80 pop {r7, pc}
- 080040e4 <I2C_WaitOnTXEFlagUntilTimeout>:
- * @param Timeout Timeout duration
- * @param Tickstart Tick start value
- * @retval HAL status
- */
- static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart)
- {
- 80040e4: b580 push {r7, lr}
- 80040e6: b084 sub sp, #16
- 80040e8: af00 add r7, sp, #0
- 80040ea: 60f8 str r0, [r7, #12]
- 80040ec: 60b9 str r1, [r7, #8]
- 80040ee: 607a str r2, [r7, #4]
- while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)
- 80040f0: e02d b.n 800414e <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
- {
- /* Check if a NACK is detected */
- if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK)
- 80040f2: 68f8 ldr r0, [r7, #12]
- 80040f4: f000 f878 bl 80041e8 <I2C_IsAcknowledgeFailed>
- 80040f8: 4603 mov r3, r0
- 80040fa: 2b00 cmp r3, #0
- 80040fc: d001 beq.n 8004102 <I2C_WaitOnTXEFlagUntilTimeout+0x1e>
- {
- return HAL_ERROR;
- 80040fe: 2301 movs r3, #1
- 8004100: e02d b.n 800415e <I2C_WaitOnTXEFlagUntilTimeout+0x7a>
- }
- /* Check for the Timeout */
- if (Timeout != HAL_MAX_DELAY)
- 8004102: 68bb ldr r3, [r7, #8]
- 8004104: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
- 8004108: d021 beq.n 800414e <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
- {
- if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
- 800410a: f7fe f867 bl 80021dc <HAL_GetTick>
- 800410e: 4602 mov r2, r0
- 8004110: 687b ldr r3, [r7, #4]
- 8004112: 1ad3 subs r3, r2, r3
- 8004114: 68ba ldr r2, [r7, #8]
- 8004116: 429a cmp r2, r3
- 8004118: d302 bcc.n 8004120 <I2C_WaitOnTXEFlagUntilTimeout+0x3c>
- 800411a: 68bb ldr r3, [r7, #8]
- 800411c: 2b00 cmp r3, #0
- 800411e: d116 bne.n 800414e <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
- {
- hi2c->PreviousState = I2C_STATE_NONE;
- 8004120: 68fb ldr r3, [r7, #12]
- 8004122: 2200 movs r2, #0
- 8004124: 631a str r2, [r3, #48] ; 0x30
- hi2c->State = HAL_I2C_STATE_READY;
- 8004126: 68fb ldr r3, [r7, #12]
- 8004128: 2220 movs r2, #32
- 800412a: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 800412e: 68fb ldr r3, [r7, #12]
- 8004130: 2200 movs r2, #0
- 8004132: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
- 8004136: 68fb ldr r3, [r7, #12]
- 8004138: 6c1b ldr r3, [r3, #64] ; 0x40
- 800413a: f043 0220 orr.w r2, r3, #32
- 800413e: 68fb ldr r3, [r7, #12]
- 8004140: 641a str r2, [r3, #64] ; 0x40
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 8004142: 68fb ldr r3, [r7, #12]
- 8004144: 2200 movs r2, #0
- 8004146: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_ERROR;
- 800414a: 2301 movs r3, #1
- 800414c: e007 b.n 800415e <I2C_WaitOnTXEFlagUntilTimeout+0x7a>
- while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)
- 800414e: 68fb ldr r3, [r7, #12]
- 8004150: 681b ldr r3, [r3, #0]
- 8004152: 695b ldr r3, [r3, #20]
- 8004154: f003 0380 and.w r3, r3, #128 ; 0x80
- 8004158: 2b80 cmp r3, #128 ; 0x80
- 800415a: d1ca bne.n 80040f2 <I2C_WaitOnTXEFlagUntilTimeout+0xe>
- }
- }
- }
- return HAL_OK;
- 800415c: 2300 movs r3, #0
- }
- 800415e: 4618 mov r0, r3
- 8004160: 3710 adds r7, #16
- 8004162: 46bd mov sp, r7
- 8004164: bd80 pop {r7, pc}
- 08004166 <I2C_WaitOnBTFFlagUntilTimeout>:
- * @param Timeout Timeout duration
- * @param Tickstart Tick start value
- * @retval HAL status
- */
- static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart)
- {
- 8004166: b580 push {r7, lr}
- 8004168: b084 sub sp, #16
- 800416a: af00 add r7, sp, #0
- 800416c: 60f8 str r0, [r7, #12]
- 800416e: 60b9 str r1, [r7, #8]
- 8004170: 607a str r2, [r7, #4]
- while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)
- 8004172: e02d b.n 80041d0 <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
- {
- /* Check if a NACK is detected */
- if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK)
- 8004174: 68f8 ldr r0, [r7, #12]
- 8004176: f000 f837 bl 80041e8 <I2C_IsAcknowledgeFailed>
- 800417a: 4603 mov r3, r0
- 800417c: 2b00 cmp r3, #0
- 800417e: d001 beq.n 8004184 <I2C_WaitOnBTFFlagUntilTimeout+0x1e>
- {
- return HAL_ERROR;
- 8004180: 2301 movs r3, #1
- 8004182: e02d b.n 80041e0 <I2C_WaitOnBTFFlagUntilTimeout+0x7a>
- }
- /* Check for the Timeout */
- if (Timeout != HAL_MAX_DELAY)
- 8004184: 68bb ldr r3, [r7, #8]
- 8004186: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
- 800418a: d021 beq.n 80041d0 <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
- {
- if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
- 800418c: f7fe f826 bl 80021dc <HAL_GetTick>
- 8004190: 4602 mov r2, r0
- 8004192: 687b ldr r3, [r7, #4]
- 8004194: 1ad3 subs r3, r2, r3
- 8004196: 68ba ldr r2, [r7, #8]
- 8004198: 429a cmp r2, r3
- 800419a: d302 bcc.n 80041a2 <I2C_WaitOnBTFFlagUntilTimeout+0x3c>
- 800419c: 68bb ldr r3, [r7, #8]
- 800419e: 2b00 cmp r3, #0
- 80041a0: d116 bne.n 80041d0 <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
- {
- hi2c->PreviousState = I2C_STATE_NONE;
- 80041a2: 68fb ldr r3, [r7, #12]
- 80041a4: 2200 movs r2, #0
- 80041a6: 631a str r2, [r3, #48] ; 0x30
- hi2c->State = HAL_I2C_STATE_READY;
- 80041a8: 68fb ldr r3, [r7, #12]
- 80041aa: 2220 movs r2, #32
- 80041ac: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 80041b0: 68fb ldr r3, [r7, #12]
- 80041b2: 2200 movs r2, #0
- 80041b4: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
- 80041b8: 68fb ldr r3, [r7, #12]
- 80041ba: 6c1b ldr r3, [r3, #64] ; 0x40
- 80041bc: f043 0220 orr.w r2, r3, #32
- 80041c0: 68fb ldr r3, [r7, #12]
- 80041c2: 641a str r2, [r3, #64] ; 0x40
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 80041c4: 68fb ldr r3, [r7, #12]
- 80041c6: 2200 movs r2, #0
- 80041c8: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_ERROR;
- 80041cc: 2301 movs r3, #1
- 80041ce: e007 b.n 80041e0 <I2C_WaitOnBTFFlagUntilTimeout+0x7a>
- while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)
- 80041d0: 68fb ldr r3, [r7, #12]
- 80041d2: 681b ldr r3, [r3, #0]
- 80041d4: 695b ldr r3, [r3, #20]
- 80041d6: f003 0304 and.w r3, r3, #4
- 80041da: 2b04 cmp r3, #4
- 80041dc: d1ca bne.n 8004174 <I2C_WaitOnBTFFlagUntilTimeout+0xe>
- }
- }
- }
- return HAL_OK;
- 80041de: 2300 movs r3, #0
- }
- 80041e0: 4618 mov r0, r3
- 80041e2: 3710 adds r7, #16
- 80041e4: 46bd mov sp, r7
- 80041e6: bd80 pop {r7, pc}
- 080041e8 <I2C_IsAcknowledgeFailed>:
- * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
- * the configuration information for the specified I2C.
- * @retval HAL status
- */
- static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c)
- {
- 80041e8: b480 push {r7}
- 80041ea: b083 sub sp, #12
- 80041ec: af00 add r7, sp, #0
- 80041ee: 6078 str r0, [r7, #4]
- if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET)
- 80041f0: 687b ldr r3, [r7, #4]
- 80041f2: 681b ldr r3, [r3, #0]
- 80041f4: 695b ldr r3, [r3, #20]
- 80041f6: f403 6380 and.w r3, r3, #1024 ; 0x400
- 80041fa: f5b3 6f80 cmp.w r3, #1024 ; 0x400
- 80041fe: d11b bne.n 8004238 <I2C_IsAcknowledgeFailed+0x50>
- {
- /* Clear NACKF Flag */
- __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);
- 8004200: 687b ldr r3, [r7, #4]
- 8004202: 681b ldr r3, [r3, #0]
- 8004204: f46f 6280 mvn.w r2, #1024 ; 0x400
- 8004208: 615a str r2, [r3, #20]
- hi2c->PreviousState = I2C_STATE_NONE;
- 800420a: 687b ldr r3, [r7, #4]
- 800420c: 2200 movs r2, #0
- 800420e: 631a str r2, [r3, #48] ; 0x30
- hi2c->State = HAL_I2C_STATE_READY;
- 8004210: 687b ldr r3, [r7, #4]
- 8004212: 2220 movs r2, #32
- 8004214: f883 203d strb.w r2, [r3, #61] ; 0x3d
- hi2c->Mode = HAL_I2C_MODE_NONE;
- 8004218: 687b ldr r3, [r7, #4]
- 800421a: 2200 movs r2, #0
- 800421c: f883 203e strb.w r2, [r3, #62] ; 0x3e
- hi2c->ErrorCode |= HAL_I2C_ERROR_AF;
- 8004220: 687b ldr r3, [r7, #4]
- 8004222: 6c1b ldr r3, [r3, #64] ; 0x40
- 8004224: f043 0204 orr.w r2, r3, #4
- 8004228: 687b ldr r3, [r7, #4]
- 800422a: 641a str r2, [r3, #64] ; 0x40
- /* Process Unlocked */
- __HAL_UNLOCK(hi2c);
- 800422c: 687b ldr r3, [r7, #4]
- 800422e: 2200 movs r2, #0
- 8004230: f883 203c strb.w r2, [r3, #60] ; 0x3c
- return HAL_ERROR;
- 8004234: 2301 movs r3, #1
- 8004236: e000 b.n 800423a <I2C_IsAcknowledgeFailed+0x52>
- }
- return HAL_OK;
- 8004238: 2300 movs r3, #0
- }
- 800423a: 4618 mov r0, r3
- 800423c: 370c adds r7, #12
- 800423e: 46bd mov sp, r7
- 8004240: bc80 pop {r7}
- 8004242: 4770 bx lr
- 08004244 <HAL_RCC_OscConfig>:
- * supported by this macro. User should request a transition to HSE Off
- * first and then HSE On or HSE Bypass.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
- {
- 8004244: b580 push {r7, lr}
- 8004246: b088 sub sp, #32
- 8004248: af00 add r7, sp, #0
- 800424a: 6078 str r0, [r7, #4]
- uint32_t tickstart;
- HAL_StatusTypeDef status;
- uint32_t sysclk_source, pll_config;
- /* Check the parameters */
- if(RCC_OscInitStruct == NULL)
- 800424c: 687b ldr r3, [r7, #4]
- 800424e: 2b00 cmp r3, #0
- 8004250: d101 bne.n 8004256 <HAL_RCC_OscConfig+0x12>
- {
- return HAL_ERROR;
- 8004252: 2301 movs r3, #1
- 8004254: e31d b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
- sysclk_source = __HAL_RCC_GET_SYSCLK_SOURCE();
- 8004256: 4b94 ldr r3, [pc, #592] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004258: 689b ldr r3, [r3, #8]
- 800425a: f003 030c and.w r3, r3, #12
- 800425e: 61bb str r3, [r7, #24]
- pll_config = __HAL_RCC_GET_PLL_OSCSOURCE();
- 8004260: 4b91 ldr r3, [pc, #580] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004262: 689b ldr r3, [r3, #8]
- 8004264: f403 3380 and.w r3, r3, #65536 ; 0x10000
- 8004268: 617b str r3, [r7, #20]
- /*------------------------------- HSE Configuration ------------------------*/
- if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
- 800426a: 687b ldr r3, [r7, #4]
- 800426c: 681b ldr r3, [r3, #0]
- 800426e: f003 0301 and.w r3, r3, #1
- 8004272: 2b00 cmp r3, #0
- 8004274: d07b beq.n 800436e <HAL_RCC_OscConfig+0x12a>
- {
- /* Check the parameters */
- assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
- /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
- if((sysclk_source == RCC_SYSCLKSOURCE_STATUS_HSE)
- 8004276: 69bb ldr r3, [r7, #24]
- 8004278: 2b08 cmp r3, #8
- 800427a: d006 beq.n 800428a <HAL_RCC_OscConfig+0x46>
- || ((sysclk_source == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (pll_config == RCC_PLLSOURCE_HSE)))
- 800427c: 69bb ldr r3, [r7, #24]
- 800427e: 2b0c cmp r3, #12
- 8004280: d10f bne.n 80042a2 <HAL_RCC_OscConfig+0x5e>
- 8004282: 697b ldr r3, [r7, #20]
- 8004284: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
- 8004288: d10b bne.n 80042a2 <HAL_RCC_OscConfig+0x5e>
- {
- if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
- 800428a: 4b87 ldr r3, [pc, #540] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 800428c: 681b ldr r3, [r3, #0]
- 800428e: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 8004292: 2b00 cmp r3, #0
- 8004294: d06a beq.n 800436c <HAL_RCC_OscConfig+0x128>
- 8004296: 687b ldr r3, [r7, #4]
- 8004298: 685b ldr r3, [r3, #4]
- 800429a: 2b00 cmp r3, #0
- 800429c: d166 bne.n 800436c <HAL_RCC_OscConfig+0x128>
- {
- return HAL_ERROR;
- 800429e: 2301 movs r3, #1
- 80042a0: e2f7 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- }
- else
- {
- /* Set the new HSE configuration ---------------------------------------*/
- __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
- 80042a2: 687b ldr r3, [r7, #4]
- 80042a4: 685b ldr r3, [r3, #4]
- 80042a6: 2b01 cmp r3, #1
- 80042a8: d106 bne.n 80042b8 <HAL_RCC_OscConfig+0x74>
- 80042aa: 4b7f ldr r3, [pc, #508] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042ac: 681b ldr r3, [r3, #0]
- 80042ae: 4a7e ldr r2, [pc, #504] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042b0: f443 3380 orr.w r3, r3, #65536 ; 0x10000
- 80042b4: 6013 str r3, [r2, #0]
- 80042b6: e02d b.n 8004314 <HAL_RCC_OscConfig+0xd0>
- 80042b8: 687b ldr r3, [r7, #4]
- 80042ba: 685b ldr r3, [r3, #4]
- 80042bc: 2b00 cmp r3, #0
- 80042be: d10c bne.n 80042da <HAL_RCC_OscConfig+0x96>
- 80042c0: 4b79 ldr r3, [pc, #484] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042c2: 681b ldr r3, [r3, #0]
- 80042c4: 4a78 ldr r2, [pc, #480] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042c6: f423 3380 bic.w r3, r3, #65536 ; 0x10000
- 80042ca: 6013 str r3, [r2, #0]
- 80042cc: 4b76 ldr r3, [pc, #472] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042ce: 681b ldr r3, [r3, #0]
- 80042d0: 4a75 ldr r2, [pc, #468] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042d2: f423 2380 bic.w r3, r3, #262144 ; 0x40000
- 80042d6: 6013 str r3, [r2, #0]
- 80042d8: e01c b.n 8004314 <HAL_RCC_OscConfig+0xd0>
- 80042da: 687b ldr r3, [r7, #4]
- 80042dc: 685b ldr r3, [r3, #4]
- 80042de: 2b05 cmp r3, #5
- 80042e0: d10c bne.n 80042fc <HAL_RCC_OscConfig+0xb8>
- 80042e2: 4b71 ldr r3, [pc, #452] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042e4: 681b ldr r3, [r3, #0]
- 80042e6: 4a70 ldr r2, [pc, #448] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042e8: f443 2380 orr.w r3, r3, #262144 ; 0x40000
- 80042ec: 6013 str r3, [r2, #0]
- 80042ee: 4b6e ldr r3, [pc, #440] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042f0: 681b ldr r3, [r3, #0]
- 80042f2: 4a6d ldr r2, [pc, #436] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042f4: f443 3380 orr.w r3, r3, #65536 ; 0x10000
- 80042f8: 6013 str r3, [r2, #0]
- 80042fa: e00b b.n 8004314 <HAL_RCC_OscConfig+0xd0>
- 80042fc: 4b6a ldr r3, [pc, #424] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80042fe: 681b ldr r3, [r3, #0]
- 8004300: 4a69 ldr r2, [pc, #420] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004302: f423 3380 bic.w r3, r3, #65536 ; 0x10000
- 8004306: 6013 str r3, [r2, #0]
- 8004308: 4b67 ldr r3, [pc, #412] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 800430a: 681b ldr r3, [r3, #0]
- 800430c: 4a66 ldr r2, [pc, #408] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 800430e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
- 8004312: 6013 str r3, [r2, #0]
- /* Check the HSE State */
- if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
- 8004314: 687b ldr r3, [r7, #4]
- 8004316: 685b ldr r3, [r3, #4]
- 8004318: 2b00 cmp r3, #0
- 800431a: d013 beq.n 8004344 <HAL_RCC_OscConfig+0x100>
- {
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 800431c: f7fd ff5e bl 80021dc <HAL_GetTick>
- 8004320: 6138 str r0, [r7, #16]
- /* Wait till HSE is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
- 8004322: e008 b.n 8004336 <HAL_RCC_OscConfig+0xf2>
- {
- if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
- 8004324: f7fd ff5a bl 80021dc <HAL_GetTick>
- 8004328: 4602 mov r2, r0
- 800432a: 693b ldr r3, [r7, #16]
- 800432c: 1ad3 subs r3, r2, r3
- 800432e: 2b64 cmp r3, #100 ; 0x64
- 8004330: d901 bls.n 8004336 <HAL_RCC_OscConfig+0xf2>
- {
- return HAL_TIMEOUT;
- 8004332: 2303 movs r3, #3
- 8004334: e2ad b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
- 8004336: 4b5c ldr r3, [pc, #368] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004338: 681b ldr r3, [r3, #0]
- 800433a: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 800433e: 2b00 cmp r3, #0
- 8004340: d0f0 beq.n 8004324 <HAL_RCC_OscConfig+0xe0>
- 8004342: e014 b.n 800436e <HAL_RCC_OscConfig+0x12a>
- }
- }
- else
- {
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 8004344: f7fd ff4a bl 80021dc <HAL_GetTick>
- 8004348: 6138 str r0, [r7, #16]
- /* Wait till HSE is disabled */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
- 800434a: e008 b.n 800435e <HAL_RCC_OscConfig+0x11a>
- {
- if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
- 800434c: f7fd ff46 bl 80021dc <HAL_GetTick>
- 8004350: 4602 mov r2, r0
- 8004352: 693b ldr r3, [r7, #16]
- 8004354: 1ad3 subs r3, r2, r3
- 8004356: 2b64 cmp r3, #100 ; 0x64
- 8004358: d901 bls.n 800435e <HAL_RCC_OscConfig+0x11a>
- {
- return HAL_TIMEOUT;
- 800435a: 2303 movs r3, #3
- 800435c: e299 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
- 800435e: 4b52 ldr r3, [pc, #328] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004360: 681b ldr r3, [r3, #0]
- 8004362: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 8004366: 2b00 cmp r3, #0
- 8004368: d1f0 bne.n 800434c <HAL_RCC_OscConfig+0x108>
- 800436a: e000 b.n 800436e <HAL_RCC_OscConfig+0x12a>
- if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
- 800436c: bf00 nop
- }
- }
- }
- }
- /*----------------------------- HSI Configuration --------------------------*/
- if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
- 800436e: 687b ldr r3, [r7, #4]
- 8004370: 681b ldr r3, [r3, #0]
- 8004372: f003 0302 and.w r3, r3, #2
- 8004376: 2b00 cmp r3, #0
- 8004378: d05a beq.n 8004430 <HAL_RCC_OscConfig+0x1ec>
- /* Check the parameters */
- assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
- assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
- /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
- if((sysclk_source == RCC_SYSCLKSOURCE_STATUS_HSI)
- 800437a: 69bb ldr r3, [r7, #24]
- 800437c: 2b04 cmp r3, #4
- 800437e: d005 beq.n 800438c <HAL_RCC_OscConfig+0x148>
- || ((sysclk_source == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (pll_config == RCC_PLLSOURCE_HSI)))
- 8004380: 69bb ldr r3, [r7, #24]
- 8004382: 2b0c cmp r3, #12
- 8004384: d119 bne.n 80043ba <HAL_RCC_OscConfig+0x176>
- 8004386: 697b ldr r3, [r7, #20]
- 8004388: 2b00 cmp r3, #0
- 800438a: d116 bne.n 80043ba <HAL_RCC_OscConfig+0x176>
- {
- /* When HSI is used as system clock it will not disabled */
- if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
- 800438c: 4b46 ldr r3, [pc, #280] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 800438e: 681b ldr r3, [r3, #0]
- 8004390: f003 0302 and.w r3, r3, #2
- 8004394: 2b00 cmp r3, #0
- 8004396: d005 beq.n 80043a4 <HAL_RCC_OscConfig+0x160>
- 8004398: 687b ldr r3, [r7, #4]
- 800439a: 68db ldr r3, [r3, #12]
- 800439c: 2b01 cmp r3, #1
- 800439e: d001 beq.n 80043a4 <HAL_RCC_OscConfig+0x160>
- {
- return HAL_ERROR;
- 80043a0: 2301 movs r3, #1
- 80043a2: e276 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- /* Otherwise, just the calibration is allowed */
- else
- {
- /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
- __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
- 80043a4: 4b40 ldr r3, [pc, #256] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80043a6: 685b ldr r3, [r3, #4]
- 80043a8: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
- 80043ac: 687b ldr r3, [r7, #4]
- 80043ae: 691b ldr r3, [r3, #16]
- 80043b0: 021b lsls r3, r3, #8
- 80043b2: 493d ldr r1, [pc, #244] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80043b4: 4313 orrs r3, r2
- 80043b6: 604b str r3, [r1, #4]
- if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
- 80043b8: e03a b.n 8004430 <HAL_RCC_OscConfig+0x1ec>
- }
- }
- else
- {
- /* Check the HSI State */
- if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
- 80043ba: 687b ldr r3, [r7, #4]
- 80043bc: 68db ldr r3, [r3, #12]
- 80043be: 2b00 cmp r3, #0
- 80043c0: d020 beq.n 8004404 <HAL_RCC_OscConfig+0x1c0>
- {
- /* Enable the Internal High Speed oscillator (HSI). */
- __HAL_RCC_HSI_ENABLE();
- 80043c2: 4b3a ldr r3, [pc, #232] ; (80044ac <HAL_RCC_OscConfig+0x268>)
- 80043c4: 2201 movs r2, #1
- 80043c6: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 80043c8: f7fd ff08 bl 80021dc <HAL_GetTick>
- 80043cc: 6138 str r0, [r7, #16]
- /* Wait till HSI is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
- 80043ce: e008 b.n 80043e2 <HAL_RCC_OscConfig+0x19e>
- {
- if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
- 80043d0: f7fd ff04 bl 80021dc <HAL_GetTick>
- 80043d4: 4602 mov r2, r0
- 80043d6: 693b ldr r3, [r7, #16]
- 80043d8: 1ad3 subs r3, r2, r3
- 80043da: 2b02 cmp r3, #2
- 80043dc: d901 bls.n 80043e2 <HAL_RCC_OscConfig+0x19e>
- {
- return HAL_TIMEOUT;
- 80043de: 2303 movs r3, #3
- 80043e0: e257 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
- 80043e2: 4b31 ldr r3, [pc, #196] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80043e4: 681b ldr r3, [r3, #0]
- 80043e6: f003 0302 and.w r3, r3, #2
- 80043ea: 2b00 cmp r3, #0
- 80043ec: d0f0 beq.n 80043d0 <HAL_RCC_OscConfig+0x18c>
- }
- }
- /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
- __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
- 80043ee: 4b2e ldr r3, [pc, #184] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80043f0: 685b ldr r3, [r3, #4]
- 80043f2: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
- 80043f6: 687b ldr r3, [r7, #4]
- 80043f8: 691b ldr r3, [r3, #16]
- 80043fa: 021b lsls r3, r3, #8
- 80043fc: 492a ldr r1, [pc, #168] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80043fe: 4313 orrs r3, r2
- 8004400: 604b str r3, [r1, #4]
- 8004402: e015 b.n 8004430 <HAL_RCC_OscConfig+0x1ec>
- }
- else
- {
- /* Disable the Internal High Speed oscillator (HSI). */
- __HAL_RCC_HSI_DISABLE();
- 8004404: 4b29 ldr r3, [pc, #164] ; (80044ac <HAL_RCC_OscConfig+0x268>)
- 8004406: 2200 movs r2, #0
- 8004408: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 800440a: f7fd fee7 bl 80021dc <HAL_GetTick>
- 800440e: 6138 str r0, [r7, #16]
- /* Wait till HSI is disabled */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
- 8004410: e008 b.n 8004424 <HAL_RCC_OscConfig+0x1e0>
- {
- if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
- 8004412: f7fd fee3 bl 80021dc <HAL_GetTick>
- 8004416: 4602 mov r2, r0
- 8004418: 693b ldr r3, [r7, #16]
- 800441a: 1ad3 subs r3, r2, r3
- 800441c: 2b02 cmp r3, #2
- 800441e: d901 bls.n 8004424 <HAL_RCC_OscConfig+0x1e0>
- {
- return HAL_TIMEOUT;
- 8004420: 2303 movs r3, #3
- 8004422: e236 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
- 8004424: 4b20 ldr r3, [pc, #128] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004426: 681b ldr r3, [r3, #0]
- 8004428: f003 0302 and.w r3, r3, #2
- 800442c: 2b00 cmp r3, #0
- 800442e: d1f0 bne.n 8004412 <HAL_RCC_OscConfig+0x1ce>
- }
- }
- }
- }
- /*----------------------------- MSI Configuration --------------------------*/
- if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI)
- 8004430: 687b ldr r3, [r7, #4]
- 8004432: 681b ldr r3, [r3, #0]
- 8004434: f003 0310 and.w r3, r3, #16
- 8004438: 2b00 cmp r3, #0
- 800443a: f000 80b8 beq.w 80045ae <HAL_RCC_OscConfig+0x36a>
- {
- /* When the MSI is used as system clock it will not be disabled */
- if(sysclk_source == RCC_CFGR_SWS_MSI)
- 800443e: 69bb ldr r3, [r7, #24]
- 8004440: 2b00 cmp r3, #0
- 8004442: d170 bne.n 8004526 <HAL_RCC_OscConfig+0x2e2>
- {
- if((__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U) && (RCC_OscInitStruct->MSIState == RCC_MSI_OFF))
- 8004444: 4b18 ldr r3, [pc, #96] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004446: 681b ldr r3, [r3, #0]
- 8004448: f403 7300 and.w r3, r3, #512 ; 0x200
- 800444c: 2b00 cmp r3, #0
- 800444e: d005 beq.n 800445c <HAL_RCC_OscConfig+0x218>
- 8004450: 687b ldr r3, [r7, #4]
- 8004452: 699b ldr r3, [r3, #24]
- 8004454: 2b00 cmp r3, #0
- 8004456: d101 bne.n 800445c <HAL_RCC_OscConfig+0x218>
- {
- return HAL_ERROR;
- 8004458: 2301 movs r3, #1
- 800445a: e21a b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange));
- /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
- must be correctly programmed according to the frequency of the CPU clock
- (HCLK) and the supply voltage of the device. */
- if(RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE())
- 800445c: 687b ldr r3, [r7, #4]
- 800445e: 6a1a ldr r2, [r3, #32]
- 8004460: 4b11 ldr r3, [pc, #68] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004462: 685b ldr r3, [r3, #4]
- 8004464: f403 4360 and.w r3, r3, #57344 ; 0xe000
- 8004468: 429a cmp r2, r3
- 800446a: d921 bls.n 80044b0 <HAL_RCC_OscConfig+0x26c>
- {
- /* First increase number of wait states update if necessary */
- if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK)
- 800446c: 687b ldr r3, [r7, #4]
- 800446e: 6a1b ldr r3, [r3, #32]
- 8004470: 4618 mov r0, r3
- 8004472: f000 fc4b bl 8004d0c <RCC_SetFlashLatencyFromMSIRange>
- 8004476: 4603 mov r3, r0
- 8004478: 2b00 cmp r3, #0
- 800447a: d001 beq.n 8004480 <HAL_RCC_OscConfig+0x23c>
- {
- return HAL_ERROR;
- 800447c: 2301 movs r3, #1
- 800447e: e208 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- /* Selects the Multiple Speed oscillator (MSI) clock range .*/
- __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
- 8004480: 4b09 ldr r3, [pc, #36] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004482: 685b ldr r3, [r3, #4]
- 8004484: f423 4260 bic.w r2, r3, #57344 ; 0xe000
- 8004488: 687b ldr r3, [r7, #4]
- 800448a: 6a1b ldr r3, [r3, #32]
- 800448c: 4906 ldr r1, [pc, #24] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 800448e: 4313 orrs r3, r2
- 8004490: 604b str r3, [r1, #4]
- /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
- __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
- 8004492: 4b05 ldr r3, [pc, #20] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 8004494: 685b ldr r3, [r3, #4]
- 8004496: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
- 800449a: 687b ldr r3, [r7, #4]
- 800449c: 69db ldr r3, [r3, #28]
- 800449e: 061b lsls r3, r3, #24
- 80044a0: 4901 ldr r1, [pc, #4] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
- 80044a2: 4313 orrs r3, r2
- 80044a4: 604b str r3, [r1, #4]
- 80044a6: e020 b.n 80044ea <HAL_RCC_OscConfig+0x2a6>
- 80044a8: 40023800 .word 0x40023800
- 80044ac: 42470000 .word 0x42470000
- }
- else
- {
- /* Else, keep current flash latency while decreasing applies */
- /* Selects the Multiple Speed oscillator (MSI) clock range .*/
- __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
- 80044b0: 4ba4 ldr r3, [pc, #656] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80044b2: 685b ldr r3, [r3, #4]
- 80044b4: f423 4260 bic.w r2, r3, #57344 ; 0xe000
- 80044b8: 687b ldr r3, [r7, #4]
- 80044ba: 6a1b ldr r3, [r3, #32]
- 80044bc: 49a1 ldr r1, [pc, #644] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80044be: 4313 orrs r3, r2
- 80044c0: 604b str r3, [r1, #4]
- /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
- __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
- 80044c2: 4ba0 ldr r3, [pc, #640] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80044c4: 685b ldr r3, [r3, #4]
- 80044c6: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
- 80044ca: 687b ldr r3, [r7, #4]
- 80044cc: 69db ldr r3, [r3, #28]
- 80044ce: 061b lsls r3, r3, #24
- 80044d0: 499c ldr r1, [pc, #624] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80044d2: 4313 orrs r3, r2
- 80044d4: 604b str r3, [r1, #4]
- /* Decrease number of wait states update if necessary */
- if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK)
- 80044d6: 687b ldr r3, [r7, #4]
- 80044d8: 6a1b ldr r3, [r3, #32]
- 80044da: 4618 mov r0, r3
- 80044dc: f000 fc16 bl 8004d0c <RCC_SetFlashLatencyFromMSIRange>
- 80044e0: 4603 mov r3, r0
- 80044e2: 2b00 cmp r3, #0
- 80044e4: d001 beq.n 80044ea <HAL_RCC_OscConfig+0x2a6>
- {
- return HAL_ERROR;
- 80044e6: 2301 movs r3, #1
- 80044e8: e1d3 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- }
- /* Update the SystemCoreClock global variable */
- SystemCoreClock = (32768U * (1UL << ((RCC_OscInitStruct->MSIClockRange >> RCC_ICSCR_MSIRANGE_Pos) + 1U)))
- 80044ea: 687b ldr r3, [r7, #4]
- 80044ec: 6a1b ldr r3, [r3, #32]
- 80044ee: 0b5b lsrs r3, r3, #13
- 80044f0: 3301 adds r3, #1
- 80044f2: f44f 4200 mov.w r2, #32768 ; 0x8000
- 80044f6: fa02 f303 lsl.w r3, r2, r3
- >> AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos)];
- 80044fa: 4a92 ldr r2, [pc, #584] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80044fc: 6892 ldr r2, [r2, #8]
- 80044fe: 0912 lsrs r2, r2, #4
- 8004500: f002 020f and.w r2, r2, #15
- 8004504: 4990 ldr r1, [pc, #576] ; (8004748 <HAL_RCC_OscConfig+0x504>)
- 8004506: 5c8a ldrb r2, [r1, r2]
- 8004508: 40d3 lsrs r3, r2
- SystemCoreClock = (32768U * (1UL << ((RCC_OscInitStruct->MSIClockRange >> RCC_ICSCR_MSIRANGE_Pos) + 1U)))
- 800450a: 4a90 ldr r2, [pc, #576] ; (800474c <HAL_RCC_OscConfig+0x508>)
- 800450c: 6013 str r3, [r2, #0]
- /* Configure the source of time base considering new system clocks settings*/
- status = HAL_InitTick(uwTickPrio);
- 800450e: 4b90 ldr r3, [pc, #576] ; (8004750 <HAL_RCC_OscConfig+0x50c>)
- 8004510: 681b ldr r3, [r3, #0]
- 8004512: 4618 mov r0, r3
- 8004514: f7fd fe16 bl 8002144 <HAL_InitTick>
- 8004518: 4603 mov r3, r0
- 800451a: 73fb strb r3, [r7, #15]
- if(status != HAL_OK)
- 800451c: 7bfb ldrb r3, [r7, #15]
- 800451e: 2b00 cmp r3, #0
- 8004520: d045 beq.n 80045ae <HAL_RCC_OscConfig+0x36a>
- {
- return status;
- 8004522: 7bfb ldrb r3, [r7, #15]
- 8004524: e1b5 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- {
- /* Check MSI State */
- assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState));
- /* Check the MSI State */
- if(RCC_OscInitStruct->MSIState != RCC_MSI_OFF)
- 8004526: 687b ldr r3, [r7, #4]
- 8004528: 699b ldr r3, [r3, #24]
- 800452a: 2b00 cmp r3, #0
- 800452c: d029 beq.n 8004582 <HAL_RCC_OscConfig+0x33e>
- {
- /* Enable the Multi Speed oscillator (MSI). */
- __HAL_RCC_MSI_ENABLE();
- 800452e: 4b89 ldr r3, [pc, #548] ; (8004754 <HAL_RCC_OscConfig+0x510>)
- 8004530: 2201 movs r2, #1
- 8004532: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 8004534: f7fd fe52 bl 80021dc <HAL_GetTick>
- 8004538: 6138 str r0, [r7, #16]
- /* Wait till MSI is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
- 800453a: e008 b.n 800454e <HAL_RCC_OscConfig+0x30a>
- {
- if((HAL_GetTick() - tickstart) > MSI_TIMEOUT_VALUE)
- 800453c: f7fd fe4e bl 80021dc <HAL_GetTick>
- 8004540: 4602 mov r2, r0
- 8004542: 693b ldr r3, [r7, #16]
- 8004544: 1ad3 subs r3, r2, r3
- 8004546: 2b02 cmp r3, #2
- 8004548: d901 bls.n 800454e <HAL_RCC_OscConfig+0x30a>
- {
- return HAL_TIMEOUT;
- 800454a: 2303 movs r3, #3
- 800454c: e1a1 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
- 800454e: 4b7d ldr r3, [pc, #500] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004550: 681b ldr r3, [r3, #0]
- 8004552: f403 7300 and.w r3, r3, #512 ; 0x200
- 8004556: 2b00 cmp r3, #0
- 8004558: d0f0 beq.n 800453c <HAL_RCC_OscConfig+0x2f8>
- /* Check MSICalibrationValue and MSIClockRange input parameters */
- assert_param(IS_RCC_MSICALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue));
- assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange));
- /* Selects the Multiple Speed oscillator (MSI) clock range .*/
- __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
- 800455a: 4b7a ldr r3, [pc, #488] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 800455c: 685b ldr r3, [r3, #4]
- 800455e: f423 4260 bic.w r2, r3, #57344 ; 0xe000
- 8004562: 687b ldr r3, [r7, #4]
- 8004564: 6a1b ldr r3, [r3, #32]
- 8004566: 4977 ldr r1, [pc, #476] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004568: 4313 orrs r3, r2
- 800456a: 604b str r3, [r1, #4]
- /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
- __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
- 800456c: 4b75 ldr r3, [pc, #468] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 800456e: 685b ldr r3, [r3, #4]
- 8004570: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
- 8004574: 687b ldr r3, [r7, #4]
- 8004576: 69db ldr r3, [r3, #28]
- 8004578: 061b lsls r3, r3, #24
- 800457a: 4972 ldr r1, [pc, #456] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 800457c: 4313 orrs r3, r2
- 800457e: 604b str r3, [r1, #4]
- 8004580: e015 b.n 80045ae <HAL_RCC_OscConfig+0x36a>
- }
- else
- {
- /* Disable the Multi Speed oscillator (MSI). */
- __HAL_RCC_MSI_DISABLE();
- 8004582: 4b74 ldr r3, [pc, #464] ; (8004754 <HAL_RCC_OscConfig+0x510>)
- 8004584: 2200 movs r2, #0
- 8004586: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 8004588: f7fd fe28 bl 80021dc <HAL_GetTick>
- 800458c: 6138 str r0, [r7, #16]
- /* Wait till MSI is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U)
- 800458e: e008 b.n 80045a2 <HAL_RCC_OscConfig+0x35e>
- {
- if((HAL_GetTick() - tickstart) > MSI_TIMEOUT_VALUE)
- 8004590: f7fd fe24 bl 80021dc <HAL_GetTick>
- 8004594: 4602 mov r2, r0
- 8004596: 693b ldr r3, [r7, #16]
- 8004598: 1ad3 subs r3, r2, r3
- 800459a: 2b02 cmp r3, #2
- 800459c: d901 bls.n 80045a2 <HAL_RCC_OscConfig+0x35e>
- {
- return HAL_TIMEOUT;
- 800459e: 2303 movs r3, #3
- 80045a0: e177 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U)
- 80045a2: 4b68 ldr r3, [pc, #416] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80045a4: 681b ldr r3, [r3, #0]
- 80045a6: f403 7300 and.w r3, r3, #512 ; 0x200
- 80045aa: 2b00 cmp r3, #0
- 80045ac: d1f0 bne.n 8004590 <HAL_RCC_OscConfig+0x34c>
- }
- }
- }
- }
- /*------------------------------ LSI Configuration -------------------------*/
- if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
- 80045ae: 687b ldr r3, [r7, #4]
- 80045b0: 681b ldr r3, [r3, #0]
- 80045b2: f003 0308 and.w r3, r3, #8
- 80045b6: 2b00 cmp r3, #0
- 80045b8: d030 beq.n 800461c <HAL_RCC_OscConfig+0x3d8>
- {
- /* Check the parameters */
- assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
- /* Check the LSI State */
- if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
- 80045ba: 687b ldr r3, [r7, #4]
- 80045bc: 695b ldr r3, [r3, #20]
- 80045be: 2b00 cmp r3, #0
- 80045c0: d016 beq.n 80045f0 <HAL_RCC_OscConfig+0x3ac>
- {
- /* Enable the Internal Low Speed oscillator (LSI). */
- __HAL_RCC_LSI_ENABLE();
- 80045c2: 4b65 ldr r3, [pc, #404] ; (8004758 <HAL_RCC_OscConfig+0x514>)
- 80045c4: 2201 movs r2, #1
- 80045c6: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 80045c8: f7fd fe08 bl 80021dc <HAL_GetTick>
- 80045cc: 6138 str r0, [r7, #16]
- /* Wait till LSI is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
- 80045ce: e008 b.n 80045e2 <HAL_RCC_OscConfig+0x39e>
- {
- if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
- 80045d0: f7fd fe04 bl 80021dc <HAL_GetTick>
- 80045d4: 4602 mov r2, r0
- 80045d6: 693b ldr r3, [r7, #16]
- 80045d8: 1ad3 subs r3, r2, r3
- 80045da: 2b02 cmp r3, #2
- 80045dc: d901 bls.n 80045e2 <HAL_RCC_OscConfig+0x39e>
- {
- return HAL_TIMEOUT;
- 80045de: 2303 movs r3, #3
- 80045e0: e157 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
- 80045e2: 4b58 ldr r3, [pc, #352] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80045e4: 6b5b ldr r3, [r3, #52] ; 0x34
- 80045e6: f003 0302 and.w r3, r3, #2
- 80045ea: 2b00 cmp r3, #0
- 80045ec: d0f0 beq.n 80045d0 <HAL_RCC_OscConfig+0x38c>
- 80045ee: e015 b.n 800461c <HAL_RCC_OscConfig+0x3d8>
- }
- }
- else
- {
- /* Disable the Internal Low Speed oscillator (LSI). */
- __HAL_RCC_LSI_DISABLE();
- 80045f0: 4b59 ldr r3, [pc, #356] ; (8004758 <HAL_RCC_OscConfig+0x514>)
- 80045f2: 2200 movs r2, #0
- 80045f4: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 80045f6: f7fd fdf1 bl 80021dc <HAL_GetTick>
- 80045fa: 6138 str r0, [r7, #16]
- /* Wait till LSI is disabled */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
- 80045fc: e008 b.n 8004610 <HAL_RCC_OscConfig+0x3cc>
- {
- if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
- 80045fe: f7fd fded bl 80021dc <HAL_GetTick>
- 8004602: 4602 mov r2, r0
- 8004604: 693b ldr r3, [r7, #16]
- 8004606: 1ad3 subs r3, r2, r3
- 8004608: 2b02 cmp r3, #2
- 800460a: d901 bls.n 8004610 <HAL_RCC_OscConfig+0x3cc>
- {
- return HAL_TIMEOUT;
- 800460c: 2303 movs r3, #3
- 800460e: e140 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
- 8004610: 4b4c ldr r3, [pc, #304] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004612: 6b5b ldr r3, [r3, #52] ; 0x34
- 8004614: f003 0302 and.w r3, r3, #2
- 8004618: 2b00 cmp r3, #0
- 800461a: d1f0 bne.n 80045fe <HAL_RCC_OscConfig+0x3ba>
- }
- }
- }
- }
- /*------------------------------ LSE Configuration -------------------------*/
- if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
- 800461c: 687b ldr r3, [r7, #4]
- 800461e: 681b ldr r3, [r3, #0]
- 8004620: f003 0304 and.w r3, r3, #4
- 8004624: 2b00 cmp r3, #0
- 8004626: f000 80b5 beq.w 8004794 <HAL_RCC_OscConfig+0x550>
- {
- FlagStatus pwrclkchanged = RESET;
- 800462a: 2300 movs r3, #0
- 800462c: 77fb strb r3, [r7, #31]
- /* Check the parameters */
- assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
- /* Update LSE configuration in Backup Domain control register */
- /* Requires to enable write access to Backup Domain of necessary */
- if(__HAL_RCC_PWR_IS_CLK_DISABLED())
- 800462e: 4b45 ldr r3, [pc, #276] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004630: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004632: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8004636: 2b00 cmp r3, #0
- 8004638: d10d bne.n 8004656 <HAL_RCC_OscConfig+0x412>
- {
- __HAL_RCC_PWR_CLK_ENABLE();
- 800463a: 4b42 ldr r3, [pc, #264] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 800463c: 6a5b ldr r3, [r3, #36] ; 0x24
- 800463e: 4a41 ldr r2, [pc, #260] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004640: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 8004644: 6253 str r3, [r2, #36] ; 0x24
- 8004646: 4b3f ldr r3, [pc, #252] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004648: 6a5b ldr r3, [r3, #36] ; 0x24
- 800464a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 800464e: 60bb str r3, [r7, #8]
- 8004650: 68bb ldr r3, [r7, #8]
- pwrclkchanged = SET;
- 8004652: 2301 movs r3, #1
- 8004654: 77fb strb r3, [r7, #31]
- }
- if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
- 8004656: 4b41 ldr r3, [pc, #260] ; (800475c <HAL_RCC_OscConfig+0x518>)
- 8004658: 681b ldr r3, [r3, #0]
- 800465a: f403 7380 and.w r3, r3, #256 ; 0x100
- 800465e: 2b00 cmp r3, #0
- 8004660: d118 bne.n 8004694 <HAL_RCC_OscConfig+0x450>
- {
- /* Enable write access to Backup domain */
- SET_BIT(PWR->CR, PWR_CR_DBP);
- 8004662: 4b3e ldr r3, [pc, #248] ; (800475c <HAL_RCC_OscConfig+0x518>)
- 8004664: 681b ldr r3, [r3, #0]
- 8004666: 4a3d ldr r2, [pc, #244] ; (800475c <HAL_RCC_OscConfig+0x518>)
- 8004668: f443 7380 orr.w r3, r3, #256 ; 0x100
- 800466c: 6013 str r3, [r2, #0]
- /* Wait for Backup domain Write protection disable */
- tickstart = HAL_GetTick();
- 800466e: f7fd fdb5 bl 80021dc <HAL_GetTick>
- 8004672: 6138 str r0, [r7, #16]
- while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
- 8004674: e008 b.n 8004688 <HAL_RCC_OscConfig+0x444>
- {
- if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
- 8004676: f7fd fdb1 bl 80021dc <HAL_GetTick>
- 800467a: 4602 mov r2, r0
- 800467c: 693b ldr r3, [r7, #16]
- 800467e: 1ad3 subs r3, r2, r3
- 8004680: 2b64 cmp r3, #100 ; 0x64
- 8004682: d901 bls.n 8004688 <HAL_RCC_OscConfig+0x444>
- {
- return HAL_TIMEOUT;
- 8004684: 2303 movs r3, #3
- 8004686: e104 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
- 8004688: 4b34 ldr r3, [pc, #208] ; (800475c <HAL_RCC_OscConfig+0x518>)
- 800468a: 681b ldr r3, [r3, #0]
- 800468c: f403 7380 and.w r3, r3, #256 ; 0x100
- 8004690: 2b00 cmp r3, #0
- 8004692: d0f0 beq.n 8004676 <HAL_RCC_OscConfig+0x432>
- }
- }
- }
- /* Set the new LSE configuration -----------------------------------------*/
- __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
- 8004694: 687b ldr r3, [r7, #4]
- 8004696: 689b ldr r3, [r3, #8]
- 8004698: 2b01 cmp r3, #1
- 800469a: d106 bne.n 80046aa <HAL_RCC_OscConfig+0x466>
- 800469c: 4b29 ldr r3, [pc, #164] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 800469e: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046a0: 4a28 ldr r2, [pc, #160] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046a2: f443 7380 orr.w r3, r3, #256 ; 0x100
- 80046a6: 6353 str r3, [r2, #52] ; 0x34
- 80046a8: e02d b.n 8004706 <HAL_RCC_OscConfig+0x4c2>
- 80046aa: 687b ldr r3, [r7, #4]
- 80046ac: 689b ldr r3, [r3, #8]
- 80046ae: 2b00 cmp r3, #0
- 80046b0: d10c bne.n 80046cc <HAL_RCC_OscConfig+0x488>
- 80046b2: 4b24 ldr r3, [pc, #144] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046b4: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046b6: 4a23 ldr r2, [pc, #140] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046b8: f423 7380 bic.w r3, r3, #256 ; 0x100
- 80046bc: 6353 str r3, [r2, #52] ; 0x34
- 80046be: 4b21 ldr r3, [pc, #132] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046c0: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046c2: 4a20 ldr r2, [pc, #128] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046c4: f423 6380 bic.w r3, r3, #1024 ; 0x400
- 80046c8: 6353 str r3, [r2, #52] ; 0x34
- 80046ca: e01c b.n 8004706 <HAL_RCC_OscConfig+0x4c2>
- 80046cc: 687b ldr r3, [r7, #4]
- 80046ce: 689b ldr r3, [r3, #8]
- 80046d0: 2b05 cmp r3, #5
- 80046d2: d10c bne.n 80046ee <HAL_RCC_OscConfig+0x4aa>
- 80046d4: 4b1b ldr r3, [pc, #108] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046d6: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046d8: 4a1a ldr r2, [pc, #104] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046da: f443 6380 orr.w r3, r3, #1024 ; 0x400
- 80046de: 6353 str r3, [r2, #52] ; 0x34
- 80046e0: 4b18 ldr r3, [pc, #96] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046e2: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046e4: 4a17 ldr r2, [pc, #92] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046e6: f443 7380 orr.w r3, r3, #256 ; 0x100
- 80046ea: 6353 str r3, [r2, #52] ; 0x34
- 80046ec: e00b b.n 8004706 <HAL_RCC_OscConfig+0x4c2>
- 80046ee: 4b15 ldr r3, [pc, #84] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046f0: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046f2: 4a14 ldr r2, [pc, #80] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046f4: f423 7380 bic.w r3, r3, #256 ; 0x100
- 80046f8: 6353 str r3, [r2, #52] ; 0x34
- 80046fa: 4b12 ldr r3, [pc, #72] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 80046fc: 6b5b ldr r3, [r3, #52] ; 0x34
- 80046fe: 4a11 ldr r2, [pc, #68] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 8004700: f423 6380 bic.w r3, r3, #1024 ; 0x400
- 8004704: 6353 str r3, [r2, #52] ; 0x34
- /* Check the LSE State */
- if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
- 8004706: 687b ldr r3, [r7, #4]
- 8004708: 689b ldr r3, [r3, #8]
- 800470a: 2b00 cmp r3, #0
- 800470c: d015 beq.n 800473a <HAL_RCC_OscConfig+0x4f6>
- {
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 800470e: f7fd fd65 bl 80021dc <HAL_GetTick>
- 8004712: 6138 str r0, [r7, #16]
- /* Wait till LSE is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
- 8004714: e00a b.n 800472c <HAL_RCC_OscConfig+0x4e8>
- {
- if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
- 8004716: f7fd fd61 bl 80021dc <HAL_GetTick>
- 800471a: 4602 mov r2, r0
- 800471c: 693b ldr r3, [r7, #16]
- 800471e: 1ad3 subs r3, r2, r3
- 8004720: f241 3288 movw r2, #5000 ; 0x1388
- 8004724: 4293 cmp r3, r2
- 8004726: d901 bls.n 800472c <HAL_RCC_OscConfig+0x4e8>
- {
- return HAL_TIMEOUT;
- 8004728: 2303 movs r3, #3
- 800472a: e0b2 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
- 800472c: 4b05 ldr r3, [pc, #20] ; (8004744 <HAL_RCC_OscConfig+0x500>)
- 800472e: 6b5b ldr r3, [r3, #52] ; 0x34
- 8004730: f403 7300 and.w r3, r3, #512 ; 0x200
- 8004734: 2b00 cmp r3, #0
- 8004736: d0ee beq.n 8004716 <HAL_RCC_OscConfig+0x4d2>
- 8004738: e023 b.n 8004782 <HAL_RCC_OscConfig+0x53e>
- }
- }
- else
- {
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 800473a: f7fd fd4f bl 80021dc <HAL_GetTick>
- 800473e: 6138 str r0, [r7, #16]
- /* Wait till LSE is disabled */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
- 8004740: e019 b.n 8004776 <HAL_RCC_OscConfig+0x532>
- 8004742: bf00 nop
- 8004744: 40023800 .word 0x40023800
- 8004748: 080093a0 .word 0x080093a0
- 800474c: 20000000 .word 0x20000000
- 8004750: 20000004 .word 0x20000004
- 8004754: 42470020 .word 0x42470020
- 8004758: 42470680 .word 0x42470680
- 800475c: 40007000 .word 0x40007000
- {
- if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
- 8004760: f7fd fd3c bl 80021dc <HAL_GetTick>
- 8004764: 4602 mov r2, r0
- 8004766: 693b ldr r3, [r7, #16]
- 8004768: 1ad3 subs r3, r2, r3
- 800476a: f241 3288 movw r2, #5000 ; 0x1388
- 800476e: 4293 cmp r3, r2
- 8004770: d901 bls.n 8004776 <HAL_RCC_OscConfig+0x532>
- {
- return HAL_TIMEOUT;
- 8004772: 2303 movs r3, #3
- 8004774: e08d b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
- 8004776: 4b49 ldr r3, [pc, #292] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 8004778: 6b5b ldr r3, [r3, #52] ; 0x34
- 800477a: f403 7300 and.w r3, r3, #512 ; 0x200
- 800477e: 2b00 cmp r3, #0
- 8004780: d1ee bne.n 8004760 <HAL_RCC_OscConfig+0x51c>
- }
- }
- }
- /* Require to disable power clock if necessary */
- if(pwrclkchanged == SET)
- 8004782: 7ffb ldrb r3, [r7, #31]
- 8004784: 2b01 cmp r3, #1
- 8004786: d105 bne.n 8004794 <HAL_RCC_OscConfig+0x550>
- {
- __HAL_RCC_PWR_CLK_DISABLE();
- 8004788: 4b44 ldr r3, [pc, #272] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 800478a: 6a5b ldr r3, [r3, #36] ; 0x24
- 800478c: 4a43 ldr r2, [pc, #268] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 800478e: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
- 8004792: 6253 str r3, [r2, #36] ; 0x24
- }
- /*-------------------------------- PLL Configuration -----------------------*/
- /* Check the parameters */
- assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
- if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
- 8004794: 687b ldr r3, [r7, #4]
- 8004796: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004798: 2b00 cmp r3, #0
- 800479a: d079 beq.n 8004890 <HAL_RCC_OscConfig+0x64c>
- {
- /* Check if the PLL is used as system clock or not */
- if(sysclk_source != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
- 800479c: 69bb ldr r3, [r7, #24]
- 800479e: 2b0c cmp r3, #12
- 80047a0: d056 beq.n 8004850 <HAL_RCC_OscConfig+0x60c>
- {
- if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
- 80047a2: 687b ldr r3, [r7, #4]
- 80047a4: 6a5b ldr r3, [r3, #36] ; 0x24
- 80047a6: 2b02 cmp r3, #2
- 80047a8: d13b bne.n 8004822 <HAL_RCC_OscConfig+0x5de>
- assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
- assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
- assert_param(IS_RCC_PLL_DIV(RCC_OscInitStruct->PLL.PLLDIV));
- /* Disable the main PLL. */
- __HAL_RCC_PLL_DISABLE();
- 80047aa: 4b3d ldr r3, [pc, #244] ; (80048a0 <HAL_RCC_OscConfig+0x65c>)
- 80047ac: 2200 movs r2, #0
- 80047ae: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 80047b0: f7fd fd14 bl 80021dc <HAL_GetTick>
- 80047b4: 6138 str r0, [r7, #16]
- /* Wait till PLL is disabled */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
- 80047b6: e008 b.n 80047ca <HAL_RCC_OscConfig+0x586>
- {
- if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
- 80047b8: f7fd fd10 bl 80021dc <HAL_GetTick>
- 80047bc: 4602 mov r2, r0
- 80047be: 693b ldr r3, [r7, #16]
- 80047c0: 1ad3 subs r3, r2, r3
- 80047c2: 2b02 cmp r3, #2
- 80047c4: d901 bls.n 80047ca <HAL_RCC_OscConfig+0x586>
- {
- return HAL_TIMEOUT;
- 80047c6: 2303 movs r3, #3
- 80047c8: e063 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
- 80047ca: 4b34 ldr r3, [pc, #208] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 80047cc: 681b ldr r3, [r3, #0]
- 80047ce: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 80047d2: 2b00 cmp r3, #0
- 80047d4: d1f0 bne.n 80047b8 <HAL_RCC_OscConfig+0x574>
- }
- }
- /* Configure the main PLL clock source, multiplication and division factors. */
- __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
- 80047d6: 4b31 ldr r3, [pc, #196] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 80047d8: 689b ldr r3, [r3, #8]
- 80047da: f423 027d bic.w r2, r3, #16580608 ; 0xfd0000
- 80047de: 687b ldr r3, [r7, #4]
- 80047e0: 6a99 ldr r1, [r3, #40] ; 0x28
- 80047e2: 687b ldr r3, [r7, #4]
- 80047e4: 6adb ldr r3, [r3, #44] ; 0x2c
- 80047e6: 4319 orrs r1, r3
- 80047e8: 687b ldr r3, [r7, #4]
- 80047ea: 6b1b ldr r3, [r3, #48] ; 0x30
- 80047ec: 430b orrs r3, r1
- 80047ee: 492b ldr r1, [pc, #172] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 80047f0: 4313 orrs r3, r2
- 80047f2: 608b str r3, [r1, #8]
- RCC_OscInitStruct->PLL.PLLMUL,
- RCC_OscInitStruct->PLL.PLLDIV);
- /* Enable the main PLL. */
- __HAL_RCC_PLL_ENABLE();
- 80047f4: 4b2a ldr r3, [pc, #168] ; (80048a0 <HAL_RCC_OscConfig+0x65c>)
- 80047f6: 2201 movs r2, #1
- 80047f8: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 80047fa: f7fd fcef bl 80021dc <HAL_GetTick>
- 80047fe: 6138 str r0, [r7, #16]
- /* Wait till PLL is ready */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
- 8004800: e008 b.n 8004814 <HAL_RCC_OscConfig+0x5d0>
- {
- if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
- 8004802: f7fd fceb bl 80021dc <HAL_GetTick>
- 8004806: 4602 mov r2, r0
- 8004808: 693b ldr r3, [r7, #16]
- 800480a: 1ad3 subs r3, r2, r3
- 800480c: 2b02 cmp r3, #2
- 800480e: d901 bls.n 8004814 <HAL_RCC_OscConfig+0x5d0>
- {
- return HAL_TIMEOUT;
- 8004810: 2303 movs r3, #3
- 8004812: e03e b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
- 8004814: 4b21 ldr r3, [pc, #132] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 8004816: 681b ldr r3, [r3, #0]
- 8004818: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 800481c: 2b00 cmp r3, #0
- 800481e: d0f0 beq.n 8004802 <HAL_RCC_OscConfig+0x5be>
- 8004820: e036 b.n 8004890 <HAL_RCC_OscConfig+0x64c>
- }
- }
- else
- {
- /* Disable the main PLL. */
- __HAL_RCC_PLL_DISABLE();
- 8004822: 4b1f ldr r3, [pc, #124] ; (80048a0 <HAL_RCC_OscConfig+0x65c>)
- 8004824: 2200 movs r2, #0
- 8004826: 601a str r2, [r3, #0]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 8004828: f7fd fcd8 bl 80021dc <HAL_GetTick>
- 800482c: 6138 str r0, [r7, #16]
- /* Wait till PLL is disabled */
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
- 800482e: e008 b.n 8004842 <HAL_RCC_OscConfig+0x5fe>
- {
- if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
- 8004830: f7fd fcd4 bl 80021dc <HAL_GetTick>
- 8004834: 4602 mov r2, r0
- 8004836: 693b ldr r3, [r7, #16]
- 8004838: 1ad3 subs r3, r2, r3
- 800483a: 2b02 cmp r3, #2
- 800483c: d901 bls.n 8004842 <HAL_RCC_OscConfig+0x5fe>
- {
- return HAL_TIMEOUT;
- 800483e: 2303 movs r3, #3
- 8004840: e027 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
- 8004842: 4b16 ldr r3, [pc, #88] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 8004844: 681b ldr r3, [r3, #0]
- 8004846: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 800484a: 2b00 cmp r3, #0
- 800484c: d1f0 bne.n 8004830 <HAL_RCC_OscConfig+0x5ec>
- 800484e: e01f b.n 8004890 <HAL_RCC_OscConfig+0x64c>
- }
- }
- else
- {
- /* Check if there is a request to disable the PLL used as System clock source */
- if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
- 8004850: 687b ldr r3, [r7, #4]
- 8004852: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004854: 2b01 cmp r3, #1
- 8004856: d101 bne.n 800485c <HAL_RCC_OscConfig+0x618>
- {
- return HAL_ERROR;
- 8004858: 2301 movs r3, #1
- 800485a: e01a b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- else
- {
- /* Do not return HAL_ERROR if request repeats the current configuration */
- pll_config = RCC->CFGR;
- 800485c: 4b0f ldr r3, [pc, #60] ; (800489c <HAL_RCC_OscConfig+0x658>)
- 800485e: 689b ldr r3, [r3, #8]
- 8004860: 617b str r3, [r7, #20]
- if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
- 8004862: 697b ldr r3, [r7, #20]
- 8004864: f403 3280 and.w r2, r3, #65536 ; 0x10000
- 8004868: 687b ldr r3, [r7, #4]
- 800486a: 6a9b ldr r3, [r3, #40] ; 0x28
- 800486c: 429a cmp r2, r3
- 800486e: d10d bne.n 800488c <HAL_RCC_OscConfig+0x648>
- (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL) ||
- 8004870: 697b ldr r3, [r7, #20]
- 8004872: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
- 8004876: 687b ldr r3, [r7, #4]
- 8004878: 6adb ldr r3, [r3, #44] ; 0x2c
- if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
- 800487a: 429a cmp r2, r3
- 800487c: d106 bne.n 800488c <HAL_RCC_OscConfig+0x648>
- (READ_BIT(pll_config, RCC_CFGR_PLLDIV) != RCC_OscInitStruct->PLL.PLLDIV))
- 800487e: 697b ldr r3, [r7, #20]
- 8004880: f403 0240 and.w r2, r3, #12582912 ; 0xc00000
- 8004884: 687b ldr r3, [r7, #4]
- 8004886: 6b1b ldr r3, [r3, #48] ; 0x30
- (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL) ||
- 8004888: 429a cmp r2, r3
- 800488a: d001 beq.n 8004890 <HAL_RCC_OscConfig+0x64c>
- {
- return HAL_ERROR;
- 800488c: 2301 movs r3, #1
- 800488e: e000 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
- }
- }
- }
- }
- return HAL_OK;
- 8004890: 2300 movs r3, #0
- }
- 8004892: 4618 mov r0, r3
- 8004894: 3720 adds r7, #32
- 8004896: 46bd mov sp, r7
- 8004898: bd80 pop {r7, pc}
- 800489a: bf00 nop
- 800489c: 40023800 .word 0x40023800
- 80048a0: 42470060 .word 0x42470060
- 080048a4 <HAL_RCC_ClockConfig>:
- * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency
- * (for more details refer to section above "Initialization/de-initialization functions")
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
- {
- 80048a4: b580 push {r7, lr}
- 80048a6: b084 sub sp, #16
- 80048a8: af00 add r7, sp, #0
- 80048aa: 6078 str r0, [r7, #4]
- 80048ac: 6039 str r1, [r7, #0]
- uint32_t tickstart;
- HAL_StatusTypeDef status;
- /* Check the parameters */
- if(RCC_ClkInitStruct == NULL)
- 80048ae: 687b ldr r3, [r7, #4]
- 80048b0: 2b00 cmp r3, #0
- 80048b2: d101 bne.n 80048b8 <HAL_RCC_ClockConfig+0x14>
- {
- return HAL_ERROR;
- 80048b4: 2301 movs r3, #1
- 80048b6: e11a b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
- must be correctly programmed according to the frequency of the CPU clock
- (HCLK) and the supply voltage of the device. */
- /* Increasing the number of wait states because of higher CPU frequency */
- if(FLatency > __HAL_FLASH_GET_LATENCY())
- 80048b8: 4b8f ldr r3, [pc, #572] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 80048ba: 681b ldr r3, [r3, #0]
- 80048bc: f003 0301 and.w r3, r3, #1
- 80048c0: 683a ldr r2, [r7, #0]
- 80048c2: 429a cmp r2, r3
- 80048c4: d919 bls.n 80048fa <HAL_RCC_ClockConfig+0x56>
- {
- /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
- __HAL_FLASH_SET_LATENCY(FLatency);
- 80048c6: 683b ldr r3, [r7, #0]
- 80048c8: 2b01 cmp r3, #1
- 80048ca: d105 bne.n 80048d8 <HAL_RCC_ClockConfig+0x34>
- 80048cc: 4b8a ldr r3, [pc, #552] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 80048ce: 681b ldr r3, [r3, #0]
- 80048d0: 4a89 ldr r2, [pc, #548] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 80048d2: f043 0304 orr.w r3, r3, #4
- 80048d6: 6013 str r3, [r2, #0]
- 80048d8: 4b87 ldr r3, [pc, #540] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 80048da: 681b ldr r3, [r3, #0]
- 80048dc: f023 0201 bic.w r2, r3, #1
- 80048e0: 4985 ldr r1, [pc, #532] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 80048e2: 683b ldr r3, [r7, #0]
- 80048e4: 4313 orrs r3, r2
- 80048e6: 600b str r3, [r1, #0]
- /* Check that the new number of wait states is taken into account to access the Flash
- memory by reading the FLASH_ACR register */
- if(__HAL_FLASH_GET_LATENCY() != FLatency)
- 80048e8: 4b83 ldr r3, [pc, #524] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 80048ea: 681b ldr r3, [r3, #0]
- 80048ec: f003 0301 and.w r3, r3, #1
- 80048f0: 683a ldr r2, [r7, #0]
- 80048f2: 429a cmp r2, r3
- 80048f4: d001 beq.n 80048fa <HAL_RCC_ClockConfig+0x56>
- {
- return HAL_ERROR;
- 80048f6: 2301 movs r3, #1
- 80048f8: e0f9 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- }
- }
- /*-------------------------- HCLK Configuration --------------------------*/
- if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
- 80048fa: 687b ldr r3, [r7, #4]
- 80048fc: 681b ldr r3, [r3, #0]
- 80048fe: f003 0302 and.w r3, r3, #2
- 8004902: 2b00 cmp r3, #0
- 8004904: d008 beq.n 8004918 <HAL_RCC_ClockConfig+0x74>
- {
- assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
- MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
- 8004906: 4b7d ldr r3, [pc, #500] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004908: 689b ldr r3, [r3, #8]
- 800490a: f023 02f0 bic.w r2, r3, #240 ; 0xf0
- 800490e: 687b ldr r3, [r7, #4]
- 8004910: 689b ldr r3, [r3, #8]
- 8004912: 497a ldr r1, [pc, #488] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004914: 4313 orrs r3, r2
- 8004916: 608b str r3, [r1, #8]
- }
- /*------------------------- SYSCLK Configuration ---------------------------*/
- if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
- 8004918: 687b ldr r3, [r7, #4]
- 800491a: 681b ldr r3, [r3, #0]
- 800491c: f003 0301 and.w r3, r3, #1
- 8004920: 2b00 cmp r3, #0
- 8004922: f000 808e beq.w 8004a42 <HAL_RCC_ClockConfig+0x19e>
- {
- assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
- /* HSE is selected as System Clock Source */
- if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
- 8004926: 687b ldr r3, [r7, #4]
- 8004928: 685b ldr r3, [r3, #4]
- 800492a: 2b02 cmp r3, #2
- 800492c: d107 bne.n 800493e <HAL_RCC_ClockConfig+0x9a>
- {
- /* Check the HSE ready flag */
- if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
- 800492e: 4b73 ldr r3, [pc, #460] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004930: 681b ldr r3, [r3, #0]
- 8004932: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 8004936: 2b00 cmp r3, #0
- 8004938: d121 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
- {
- return HAL_ERROR;
- 800493a: 2301 movs r3, #1
- 800493c: e0d7 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- }
- }
- /* PLL is selected as System Clock Source */
- else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
- 800493e: 687b ldr r3, [r7, #4]
- 8004940: 685b ldr r3, [r3, #4]
- 8004942: 2b03 cmp r3, #3
- 8004944: d107 bne.n 8004956 <HAL_RCC_ClockConfig+0xb2>
- {
- /* Check the PLL ready flag */
- if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
- 8004946: 4b6d ldr r3, [pc, #436] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004948: 681b ldr r3, [r3, #0]
- 800494a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 800494e: 2b00 cmp r3, #0
- 8004950: d115 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
- {
- return HAL_ERROR;
- 8004952: 2301 movs r3, #1
- 8004954: e0cb b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- }
- }
- /* HSI is selected as System Clock Source */
- else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
- 8004956: 687b ldr r3, [r7, #4]
- 8004958: 685b ldr r3, [r3, #4]
- 800495a: 2b01 cmp r3, #1
- 800495c: d107 bne.n 800496e <HAL_RCC_ClockConfig+0xca>
- {
- /* Check the HSI ready flag */
- if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
- 800495e: 4b67 ldr r3, [pc, #412] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004960: 681b ldr r3, [r3, #0]
- 8004962: f003 0302 and.w r3, r3, #2
- 8004966: 2b00 cmp r3, #0
- 8004968: d109 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
- {
- return HAL_ERROR;
- 800496a: 2301 movs r3, #1
- 800496c: e0bf b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- }
- /* MSI is selected as System Clock Source */
- else
- {
- /* Check the MSI ready flag */
- if(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
- 800496e: 4b63 ldr r3, [pc, #396] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004970: 681b ldr r3, [r3, #0]
- 8004972: f403 7300 and.w r3, r3, #512 ; 0x200
- 8004976: 2b00 cmp r3, #0
- 8004978: d101 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
- {
- return HAL_ERROR;
- 800497a: 2301 movs r3, #1
- 800497c: e0b7 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- }
- }
- __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
- 800497e: 4b5f ldr r3, [pc, #380] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004980: 689b ldr r3, [r3, #8]
- 8004982: f023 0203 bic.w r2, r3, #3
- 8004986: 687b ldr r3, [r7, #4]
- 8004988: 685b ldr r3, [r3, #4]
- 800498a: 495c ldr r1, [pc, #368] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 800498c: 4313 orrs r3, r2
- 800498e: 608b str r3, [r1, #8]
- /* Get Start Tick */
- tickstart = HAL_GetTick();
- 8004990: f7fd fc24 bl 80021dc <HAL_GetTick>
- 8004994: 60f8 str r0, [r7, #12]
- if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
- 8004996: 687b ldr r3, [r7, #4]
- 8004998: 685b ldr r3, [r3, #4]
- 800499a: 2b02 cmp r3, #2
- 800499c: d112 bne.n 80049c4 <HAL_RCC_ClockConfig+0x120>
- {
- while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
- 800499e: e00a b.n 80049b6 <HAL_RCC_ClockConfig+0x112>
- {
- if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
- 80049a0: f7fd fc1c bl 80021dc <HAL_GetTick>
- 80049a4: 4602 mov r2, r0
- 80049a6: 68fb ldr r3, [r7, #12]
- 80049a8: 1ad3 subs r3, r2, r3
- 80049aa: f241 3288 movw r2, #5000 ; 0x1388
- 80049ae: 4293 cmp r3, r2
- 80049b0: d901 bls.n 80049b6 <HAL_RCC_ClockConfig+0x112>
- {
- return HAL_TIMEOUT;
- 80049b2: 2303 movs r3, #3
- 80049b4: e09b b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
- 80049b6: 4b51 ldr r3, [pc, #324] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 80049b8: 689b ldr r3, [r3, #8]
- 80049ba: f003 030c and.w r3, r3, #12
- 80049be: 2b08 cmp r3, #8
- 80049c0: d1ee bne.n 80049a0 <HAL_RCC_ClockConfig+0xfc>
- 80049c2: e03e b.n 8004a42 <HAL_RCC_ClockConfig+0x19e>
- }
- }
- }
- else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
- 80049c4: 687b ldr r3, [r7, #4]
- 80049c6: 685b ldr r3, [r3, #4]
- 80049c8: 2b03 cmp r3, #3
- 80049ca: d112 bne.n 80049f2 <HAL_RCC_ClockConfig+0x14e>
- {
- while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
- 80049cc: e00a b.n 80049e4 <HAL_RCC_ClockConfig+0x140>
- {
- if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
- 80049ce: f7fd fc05 bl 80021dc <HAL_GetTick>
- 80049d2: 4602 mov r2, r0
- 80049d4: 68fb ldr r3, [r7, #12]
- 80049d6: 1ad3 subs r3, r2, r3
- 80049d8: f241 3288 movw r2, #5000 ; 0x1388
- 80049dc: 4293 cmp r3, r2
- 80049de: d901 bls.n 80049e4 <HAL_RCC_ClockConfig+0x140>
- {
- return HAL_TIMEOUT;
- 80049e0: 2303 movs r3, #3
- 80049e2: e084 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
- 80049e4: 4b45 ldr r3, [pc, #276] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 80049e6: 689b ldr r3, [r3, #8]
- 80049e8: f003 030c and.w r3, r3, #12
- 80049ec: 2b0c cmp r3, #12
- 80049ee: d1ee bne.n 80049ce <HAL_RCC_ClockConfig+0x12a>
- 80049f0: e027 b.n 8004a42 <HAL_RCC_ClockConfig+0x19e>
- }
- }
- }
- else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
- 80049f2: 687b ldr r3, [r7, #4]
- 80049f4: 685b ldr r3, [r3, #4]
- 80049f6: 2b01 cmp r3, #1
- 80049f8: d11d bne.n 8004a36 <HAL_RCC_ClockConfig+0x192>
- {
- while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
- 80049fa: e00a b.n 8004a12 <HAL_RCC_ClockConfig+0x16e>
- {
- if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
- 80049fc: f7fd fbee bl 80021dc <HAL_GetTick>
- 8004a00: 4602 mov r2, r0
- 8004a02: 68fb ldr r3, [r7, #12]
- 8004a04: 1ad3 subs r3, r2, r3
- 8004a06: f241 3288 movw r2, #5000 ; 0x1388
- 8004a0a: 4293 cmp r3, r2
- 8004a0c: d901 bls.n 8004a12 <HAL_RCC_ClockConfig+0x16e>
- {
- return HAL_TIMEOUT;
- 8004a0e: 2303 movs r3, #3
- 8004a10: e06d b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
- 8004a12: 4b3a ldr r3, [pc, #232] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004a14: 689b ldr r3, [r3, #8]
- 8004a16: f003 030c and.w r3, r3, #12
- 8004a1a: 2b04 cmp r3, #4
- 8004a1c: d1ee bne.n 80049fc <HAL_RCC_ClockConfig+0x158>
- 8004a1e: e010 b.n 8004a42 <HAL_RCC_ClockConfig+0x19e>
- }
- else
- {
- while(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_MSI)
- {
- if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
- 8004a20: f7fd fbdc bl 80021dc <HAL_GetTick>
- 8004a24: 4602 mov r2, r0
- 8004a26: 68fb ldr r3, [r7, #12]
- 8004a28: 1ad3 subs r3, r2, r3
- 8004a2a: f241 3288 movw r2, #5000 ; 0x1388
- 8004a2e: 4293 cmp r3, r2
- 8004a30: d901 bls.n 8004a36 <HAL_RCC_ClockConfig+0x192>
- {
- return HAL_TIMEOUT;
- 8004a32: 2303 movs r3, #3
- 8004a34: e05b b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- while(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_MSI)
- 8004a36: 4b31 ldr r3, [pc, #196] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004a38: 689b ldr r3, [r3, #8]
- 8004a3a: f003 030c and.w r3, r3, #12
- 8004a3e: 2b00 cmp r3, #0
- 8004a40: d1ee bne.n 8004a20 <HAL_RCC_ClockConfig+0x17c>
- }
- }
- }
- }
- /* Decreasing the number of wait states because of lower CPU frequency */
- if(FLatency < __HAL_FLASH_GET_LATENCY())
- 8004a42: 4b2d ldr r3, [pc, #180] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 8004a44: 681b ldr r3, [r3, #0]
- 8004a46: f003 0301 and.w r3, r3, #1
- 8004a4a: 683a ldr r2, [r7, #0]
- 8004a4c: 429a cmp r2, r3
- 8004a4e: d219 bcs.n 8004a84 <HAL_RCC_ClockConfig+0x1e0>
- {
- /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
- __HAL_FLASH_SET_LATENCY(FLatency);
- 8004a50: 683b ldr r3, [r7, #0]
- 8004a52: 2b01 cmp r3, #1
- 8004a54: d105 bne.n 8004a62 <HAL_RCC_ClockConfig+0x1be>
- 8004a56: 4b28 ldr r3, [pc, #160] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 8004a58: 681b ldr r3, [r3, #0]
- 8004a5a: 4a27 ldr r2, [pc, #156] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 8004a5c: f043 0304 orr.w r3, r3, #4
- 8004a60: 6013 str r3, [r2, #0]
- 8004a62: 4b25 ldr r3, [pc, #148] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 8004a64: 681b ldr r3, [r3, #0]
- 8004a66: f023 0201 bic.w r2, r3, #1
- 8004a6a: 4923 ldr r1, [pc, #140] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 8004a6c: 683b ldr r3, [r7, #0]
- 8004a6e: 4313 orrs r3, r2
- 8004a70: 600b str r3, [r1, #0]
- /* Check that the new number of wait states is taken into account to access the Flash
- memory by reading the FLASH_ACR register */
- if(__HAL_FLASH_GET_LATENCY() != FLatency)
- 8004a72: 4b21 ldr r3, [pc, #132] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
- 8004a74: 681b ldr r3, [r3, #0]
- 8004a76: f003 0301 and.w r3, r3, #1
- 8004a7a: 683a ldr r2, [r7, #0]
- 8004a7c: 429a cmp r2, r3
- 8004a7e: d001 beq.n 8004a84 <HAL_RCC_ClockConfig+0x1e0>
- {
- return HAL_ERROR;
- 8004a80: 2301 movs r3, #1
- 8004a82: e034 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
- }
- }
- /*-------------------------- PCLK1 Configuration ---------------------------*/
- if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
- 8004a84: 687b ldr r3, [r7, #4]
- 8004a86: 681b ldr r3, [r3, #0]
- 8004a88: f003 0304 and.w r3, r3, #4
- 8004a8c: 2b00 cmp r3, #0
- 8004a8e: d008 beq.n 8004aa2 <HAL_RCC_ClockConfig+0x1fe>
- {
- assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
- MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
- 8004a90: 4b1a ldr r3, [pc, #104] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004a92: 689b ldr r3, [r3, #8]
- 8004a94: f423 62e0 bic.w r2, r3, #1792 ; 0x700
- 8004a98: 687b ldr r3, [r7, #4]
- 8004a9a: 68db ldr r3, [r3, #12]
- 8004a9c: 4917 ldr r1, [pc, #92] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004a9e: 4313 orrs r3, r2
- 8004aa0: 608b str r3, [r1, #8]
- }
- /*-------------------------- PCLK2 Configuration ---------------------------*/
- if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
- 8004aa2: 687b ldr r3, [r7, #4]
- 8004aa4: 681b ldr r3, [r3, #0]
- 8004aa6: f003 0308 and.w r3, r3, #8
- 8004aaa: 2b00 cmp r3, #0
- 8004aac: d009 beq.n 8004ac2 <HAL_RCC_ClockConfig+0x21e>
- {
- assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
- MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U));
- 8004aae: 4b13 ldr r3, [pc, #76] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004ab0: 689b ldr r3, [r3, #8]
- 8004ab2: f423 5260 bic.w r2, r3, #14336 ; 0x3800
- 8004ab6: 687b ldr r3, [r7, #4]
- 8004ab8: 691b ldr r3, [r3, #16]
- 8004aba: 00db lsls r3, r3, #3
- 8004abc: 490f ldr r1, [pc, #60] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004abe: 4313 orrs r3, r2
- 8004ac0: 608b str r3, [r1, #8]
- }
- /* Update the SystemCoreClock global variable */
- SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos];
- 8004ac2: f000 f823 bl 8004b0c <HAL_RCC_GetSysClockFreq>
- 8004ac6: 4602 mov r2, r0
- 8004ac8: 4b0c ldr r3, [pc, #48] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
- 8004aca: 689b ldr r3, [r3, #8]
- 8004acc: 091b lsrs r3, r3, #4
- 8004ace: f003 030f and.w r3, r3, #15
- 8004ad2: 490b ldr r1, [pc, #44] ; (8004b00 <HAL_RCC_ClockConfig+0x25c>)
- 8004ad4: 5ccb ldrb r3, [r1, r3]
- 8004ad6: fa22 f303 lsr.w r3, r2, r3
- 8004ada: 4a0a ldr r2, [pc, #40] ; (8004b04 <HAL_RCC_ClockConfig+0x260>)
- 8004adc: 6013 str r3, [r2, #0]
- /* Configure the source of time base considering new system clocks settings*/
- status = HAL_InitTick(uwTickPrio);
- 8004ade: 4b0a ldr r3, [pc, #40] ; (8004b08 <HAL_RCC_ClockConfig+0x264>)
- 8004ae0: 681b ldr r3, [r3, #0]
- 8004ae2: 4618 mov r0, r3
- 8004ae4: f7fd fb2e bl 8002144 <HAL_InitTick>
- 8004ae8: 4603 mov r3, r0
- 8004aea: 72fb strb r3, [r7, #11]
- return status;
- 8004aec: 7afb ldrb r3, [r7, #11]
- }
- 8004aee: 4618 mov r0, r3
- 8004af0: 3710 adds r7, #16
- 8004af2: 46bd mov sp, r7
- 8004af4: bd80 pop {r7, pc}
- 8004af6: bf00 nop
- 8004af8: 40023c00 .word 0x40023c00
- 8004afc: 40023800 .word 0x40023800
- 8004b00: 080093a0 .word 0x080093a0
- 8004b04: 20000000 .word 0x20000000
- 8004b08: 20000004 .word 0x20000004
- 08004b0c <HAL_RCC_GetSysClockFreq>:
- * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
- *
- * @retval SYSCLK frequency
- */
- uint32_t HAL_RCC_GetSysClockFreq(void)
- {
- 8004b0c: b5b0 push {r4, r5, r7, lr}
- 8004b0e: b086 sub sp, #24
- 8004b10: af00 add r7, sp, #0
- uint32_t tmpreg, pllm, plld, pllvco, msiclkrange, sysclockfreq;
- tmpreg = RCC->CFGR;
- 8004b12: 4b61 ldr r3, [pc, #388] ; (8004c98 <HAL_RCC_GetSysClockFreq+0x18c>)
- 8004b14: 689b ldr r3, [r3, #8]
- 8004b16: 60fb str r3, [r7, #12]
- /* Get SYSCLK source -------------------------------------------------------*/
- switch (tmpreg & RCC_CFGR_SWS)
- 8004b18: 68fb ldr r3, [r7, #12]
- 8004b1a: f003 030c and.w r3, r3, #12
- 8004b1e: 2b0c cmp r3, #12
- 8004b20: d00d beq.n 8004b3e <HAL_RCC_GetSysClockFreq+0x32>
- 8004b22: 2b0c cmp r3, #12
- 8004b24: f200 80a4 bhi.w 8004c70 <HAL_RCC_GetSysClockFreq+0x164>
- 8004b28: 2b04 cmp r3, #4
- 8004b2a: d002 beq.n 8004b32 <HAL_RCC_GetSysClockFreq+0x26>
- 8004b2c: 2b08 cmp r3, #8
- 8004b2e: d003 beq.n 8004b38 <HAL_RCC_GetSysClockFreq+0x2c>
- 8004b30: e09e b.n 8004c70 <HAL_RCC_GetSysClockFreq+0x164>
- {
- case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
- {
- sysclockfreq = HSI_VALUE;
- 8004b32: 4b5a ldr r3, [pc, #360] ; (8004c9c <HAL_RCC_GetSysClockFreq+0x190>)
- 8004b34: 613b str r3, [r7, #16]
- break;
- 8004b36: e0a9 b.n 8004c8c <HAL_RCC_GetSysClockFreq+0x180>
- }
- case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
- {
- sysclockfreq = HSE_VALUE;
- 8004b38: 4b59 ldr r3, [pc, #356] ; (8004ca0 <HAL_RCC_GetSysClockFreq+0x194>)
- 8004b3a: 613b str r3, [r7, #16]
- break;
- 8004b3c: e0a6 b.n 8004c8c <HAL_RCC_GetSysClockFreq+0x180>
- }
- case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
- {
- pllm = PLLMulTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_Pos];
- 8004b3e: 68fb ldr r3, [r7, #12]
- 8004b40: 0c9b lsrs r3, r3, #18
- 8004b42: f003 030f and.w r3, r3, #15
- 8004b46: 4a57 ldr r2, [pc, #348] ; (8004ca4 <HAL_RCC_GetSysClockFreq+0x198>)
- 8004b48: 5cd3 ldrb r3, [r2, r3]
- 8004b4a: 60bb str r3, [r7, #8]
- plld = ((uint32_t)(tmpreg & RCC_CFGR_PLLDIV) >> RCC_CFGR_PLLDIV_Pos) + 1U;
- 8004b4c: 68fb ldr r3, [r7, #12]
- 8004b4e: 0d9b lsrs r3, r3, #22
- 8004b50: f003 0303 and.w r3, r3, #3
- 8004b54: 3301 adds r3, #1
- 8004b56: 607b str r3, [r7, #4]
- if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI)
- 8004b58: 4b4f ldr r3, [pc, #316] ; (8004c98 <HAL_RCC_GetSysClockFreq+0x18c>)
- 8004b5a: 689b ldr r3, [r3, #8]
- 8004b5c: f403 3380 and.w r3, r3, #65536 ; 0x10000
- 8004b60: 2b00 cmp r3, #0
- 8004b62: d041 beq.n 8004be8 <HAL_RCC_GetSysClockFreq+0xdc>
- {
- /* HSE used as PLL clock source */
- pllvco = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pllm) / (uint64_t)plld);
- 8004b64: 68bb ldr r3, [r7, #8]
- 8004b66: 461c mov r4, r3
- 8004b68: f04f 0500 mov.w r5, #0
- 8004b6c: 4620 mov r0, r4
- 8004b6e: 4629 mov r1, r5
- 8004b70: f04f 0200 mov.w r2, #0
- 8004b74: f04f 0300 mov.w r3, #0
- 8004b78: 014b lsls r3, r1, #5
- 8004b7a: ea43 63d0 orr.w r3, r3, r0, lsr #27
- 8004b7e: 0142 lsls r2, r0, #5
- 8004b80: 4610 mov r0, r2
- 8004b82: 4619 mov r1, r3
- 8004b84: 1b00 subs r0, r0, r4
- 8004b86: eb61 0105 sbc.w r1, r1, r5
- 8004b8a: f04f 0200 mov.w r2, #0
- 8004b8e: f04f 0300 mov.w r3, #0
- 8004b92: 018b lsls r3, r1, #6
- 8004b94: ea43 6390 orr.w r3, r3, r0, lsr #26
- 8004b98: 0182 lsls r2, r0, #6
- 8004b9a: 1a12 subs r2, r2, r0
- 8004b9c: eb63 0301 sbc.w r3, r3, r1
- 8004ba0: f04f 0000 mov.w r0, #0
- 8004ba4: f04f 0100 mov.w r1, #0
- 8004ba8: 00d9 lsls r1, r3, #3
- 8004baa: ea41 7152 orr.w r1, r1, r2, lsr #29
- 8004bae: 00d0 lsls r0, r2, #3
- 8004bb0: 4602 mov r2, r0
- 8004bb2: 460b mov r3, r1
- 8004bb4: 1912 adds r2, r2, r4
- 8004bb6: eb45 0303 adc.w r3, r5, r3
- 8004bba: f04f 0000 mov.w r0, #0
- 8004bbe: f04f 0100 mov.w r1, #0
- 8004bc2: 0259 lsls r1, r3, #9
- 8004bc4: ea41 51d2 orr.w r1, r1, r2, lsr #23
- 8004bc8: 0250 lsls r0, r2, #9
- 8004bca: 4602 mov r2, r0
- 8004bcc: 460b mov r3, r1
- 8004bce: 4610 mov r0, r2
- 8004bd0: 4619 mov r1, r3
- 8004bd2: 687b ldr r3, [r7, #4]
- 8004bd4: 461a mov r2, r3
- 8004bd6: f04f 0300 mov.w r3, #0
- 8004bda: f7fc f87b bl 8000cd4 <__aeabi_uldivmod>
- 8004bde: 4602 mov r2, r0
- 8004be0: 460b mov r3, r1
- 8004be2: 4613 mov r3, r2
- 8004be4: 617b str r3, [r7, #20]
- 8004be6: e040 b.n 8004c6a <HAL_RCC_GetSysClockFreq+0x15e>
- }
- else
- {
- /* HSI used as PLL clock source */
- pllvco = (uint32_t)(((uint64_t)HSI_VALUE * (uint64_t)pllm) / (uint64_t)plld);
- 8004be8: 68bb ldr r3, [r7, #8]
- 8004bea: 461c mov r4, r3
- 8004bec: f04f 0500 mov.w r5, #0
- 8004bf0: 4620 mov r0, r4
- 8004bf2: 4629 mov r1, r5
- 8004bf4: f04f 0200 mov.w r2, #0
- 8004bf8: f04f 0300 mov.w r3, #0
- 8004bfc: 014b lsls r3, r1, #5
- 8004bfe: ea43 63d0 orr.w r3, r3, r0, lsr #27
- 8004c02: 0142 lsls r2, r0, #5
- 8004c04: 4610 mov r0, r2
- 8004c06: 4619 mov r1, r3
- 8004c08: 1b00 subs r0, r0, r4
- 8004c0a: eb61 0105 sbc.w r1, r1, r5
- 8004c0e: f04f 0200 mov.w r2, #0
- 8004c12: f04f 0300 mov.w r3, #0
- 8004c16: 018b lsls r3, r1, #6
- 8004c18: ea43 6390 orr.w r3, r3, r0, lsr #26
- 8004c1c: 0182 lsls r2, r0, #6
- 8004c1e: 1a12 subs r2, r2, r0
- 8004c20: eb63 0301 sbc.w r3, r3, r1
- 8004c24: f04f 0000 mov.w r0, #0
- 8004c28: f04f 0100 mov.w r1, #0
- 8004c2c: 00d9 lsls r1, r3, #3
- 8004c2e: ea41 7152 orr.w r1, r1, r2, lsr #29
- 8004c32: 00d0 lsls r0, r2, #3
- 8004c34: 4602 mov r2, r0
- 8004c36: 460b mov r3, r1
- 8004c38: 1912 adds r2, r2, r4
- 8004c3a: eb45 0303 adc.w r3, r5, r3
- 8004c3e: f04f 0000 mov.w r0, #0
- 8004c42: f04f 0100 mov.w r1, #0
- 8004c46: 0299 lsls r1, r3, #10
- 8004c48: ea41 5192 orr.w r1, r1, r2, lsr #22
- 8004c4c: 0290 lsls r0, r2, #10
- 8004c4e: 4602 mov r2, r0
- 8004c50: 460b mov r3, r1
- 8004c52: 4610 mov r0, r2
- 8004c54: 4619 mov r1, r3
- 8004c56: 687b ldr r3, [r7, #4]
- 8004c58: 461a mov r2, r3
- 8004c5a: f04f 0300 mov.w r3, #0
- 8004c5e: f7fc f839 bl 8000cd4 <__aeabi_uldivmod>
- 8004c62: 4602 mov r2, r0
- 8004c64: 460b mov r3, r1
- 8004c66: 4613 mov r3, r2
- 8004c68: 617b str r3, [r7, #20]
- }
- sysclockfreq = pllvco;
- 8004c6a: 697b ldr r3, [r7, #20]
- 8004c6c: 613b str r3, [r7, #16]
- break;
- 8004c6e: e00d b.n 8004c8c <HAL_RCC_GetSysClockFreq+0x180>
- }
- case RCC_SYSCLKSOURCE_STATUS_MSI: /* MSI used as system clock source */
- default: /* MSI used as system clock */
- {
- msiclkrange = (RCC->ICSCR & RCC_ICSCR_MSIRANGE ) >> RCC_ICSCR_MSIRANGE_Pos;
- 8004c70: 4b09 ldr r3, [pc, #36] ; (8004c98 <HAL_RCC_GetSysClockFreq+0x18c>)
- 8004c72: 685b ldr r3, [r3, #4]
- 8004c74: 0b5b lsrs r3, r3, #13
- 8004c76: f003 0307 and.w r3, r3, #7
- 8004c7a: 603b str r3, [r7, #0]
- sysclockfreq = (32768U * (1UL << (msiclkrange + 1U)));
- 8004c7c: 683b ldr r3, [r7, #0]
- 8004c7e: 3301 adds r3, #1
- 8004c80: f44f 4200 mov.w r2, #32768 ; 0x8000
- 8004c84: fa02 f303 lsl.w r3, r2, r3
- 8004c88: 613b str r3, [r7, #16]
- break;
- 8004c8a: bf00 nop
- }
- }
- return sysclockfreq;
- 8004c8c: 693b ldr r3, [r7, #16]
- }
- 8004c8e: 4618 mov r0, r3
- 8004c90: 3718 adds r7, #24
- 8004c92: 46bd mov sp, r7
- 8004c94: bdb0 pop {r4, r5, r7, pc}
- 8004c96: bf00 nop
- 8004c98: 40023800 .word 0x40023800
- 8004c9c: 00f42400 .word 0x00f42400
- 8004ca0: 007a1200 .word 0x007a1200
- 8004ca4: 08009394 .word 0x08009394
- 08004ca8 <HAL_RCC_GetHCLKFreq>:
- * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
- * and updated within this function
- * @retval HCLK frequency
- */
- uint32_t HAL_RCC_GetHCLKFreq(void)
- {
- 8004ca8: b480 push {r7}
- 8004caa: af00 add r7, sp, #0
- return SystemCoreClock;
- 8004cac: 4b02 ldr r3, [pc, #8] ; (8004cb8 <HAL_RCC_GetHCLKFreq+0x10>)
- 8004cae: 681b ldr r3, [r3, #0]
- }
- 8004cb0: 4618 mov r0, r3
- 8004cb2: 46bd mov sp, r7
- 8004cb4: bc80 pop {r7}
- 8004cb6: 4770 bx lr
- 8004cb8: 20000000 .word 0x20000000
- 08004cbc <HAL_RCC_GetPCLK1Freq>:
- * @note Each time PCLK1 changes, this function must be called to update the
- * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
- * @retval PCLK1 frequency
- */
- uint32_t HAL_RCC_GetPCLK1Freq(void)
- {
- 8004cbc: b580 push {r7, lr}
- 8004cbe: af00 add r7, sp, #0
- /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
- return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
- 8004cc0: f7ff fff2 bl 8004ca8 <HAL_RCC_GetHCLKFreq>
- 8004cc4: 4602 mov r2, r0
- 8004cc6: 4b05 ldr r3, [pc, #20] ; (8004cdc <HAL_RCC_GetPCLK1Freq+0x20>)
- 8004cc8: 689b ldr r3, [r3, #8]
- 8004cca: 0a1b lsrs r3, r3, #8
- 8004ccc: f003 0307 and.w r3, r3, #7
- 8004cd0: 4903 ldr r1, [pc, #12] ; (8004ce0 <HAL_RCC_GetPCLK1Freq+0x24>)
- 8004cd2: 5ccb ldrb r3, [r1, r3]
- 8004cd4: fa22 f303 lsr.w r3, r2, r3
- }
- 8004cd8: 4618 mov r0, r3
- 8004cda: bd80 pop {r7, pc}
- 8004cdc: 40023800 .word 0x40023800
- 8004ce0: 080093b0 .word 0x080093b0
- 08004ce4 <HAL_RCC_GetPCLK2Freq>:
- * @note Each time PCLK2 changes, this function must be called to update the
- * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
- * @retval PCLK2 frequency
- */
- uint32_t HAL_RCC_GetPCLK2Freq(void)
- {
- 8004ce4: b580 push {r7, lr}
- 8004ce6: af00 add r7, sp, #0
- /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
- return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
- 8004ce8: f7ff ffde bl 8004ca8 <HAL_RCC_GetHCLKFreq>
- 8004cec: 4602 mov r2, r0
- 8004cee: 4b05 ldr r3, [pc, #20] ; (8004d04 <HAL_RCC_GetPCLK2Freq+0x20>)
- 8004cf0: 689b ldr r3, [r3, #8]
- 8004cf2: 0adb lsrs r3, r3, #11
- 8004cf4: f003 0307 and.w r3, r3, #7
- 8004cf8: 4903 ldr r1, [pc, #12] ; (8004d08 <HAL_RCC_GetPCLK2Freq+0x24>)
- 8004cfa: 5ccb ldrb r3, [r1, r3]
- 8004cfc: fa22 f303 lsr.w r3, r2, r3
- }
- 8004d00: 4618 mov r0, r3
- 8004d02: bd80 pop {r7, pc}
- 8004d04: 40023800 .word 0x40023800
- 8004d08: 080093b0 .word 0x080093b0
- 08004d0c <RCC_SetFlashLatencyFromMSIRange>:
- voltage range
- * @param MSIrange MSI range value from RCC_MSIRANGE_0 to RCC_MSIRANGE_6
- * @retval HAL status
- */
- static HAL_StatusTypeDef RCC_SetFlashLatencyFromMSIRange(uint32_t MSIrange)
- {
- 8004d0c: b480 push {r7}
- 8004d0e: b087 sub sp, #28
- 8004d10: af00 add r7, sp, #0
- 8004d12: 6078 str r0, [r7, #4]
- uint32_t vos;
- uint32_t latency = FLASH_LATENCY_0; /* default value 0WS */
- 8004d14: 2300 movs r3, #0
- 8004d16: 613b str r3, [r7, #16]
- /* HCLK can reach 4 MHz only if AHB prescaler = 1 */
- if (READ_BIT(RCC->CFGR, RCC_CFGR_HPRE) == RCC_SYSCLK_DIV1)
- 8004d18: 4b29 ldr r3, [pc, #164] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d1a: 689b ldr r3, [r3, #8]
- 8004d1c: f003 03f0 and.w r3, r3, #240 ; 0xf0
- 8004d20: 2b00 cmp r3, #0
- 8004d22: d12c bne.n 8004d7e <RCC_SetFlashLatencyFromMSIRange+0x72>
- {
- if(__HAL_RCC_PWR_IS_CLK_ENABLED())
- 8004d24: 4b26 ldr r3, [pc, #152] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d26: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004d28: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8004d2c: 2b00 cmp r3, #0
- 8004d2e: d005 beq.n 8004d3c <RCC_SetFlashLatencyFromMSIRange+0x30>
- {
- vos = READ_BIT(PWR->CR, PWR_CR_VOS);
- 8004d30: 4b24 ldr r3, [pc, #144] ; (8004dc4 <RCC_SetFlashLatencyFromMSIRange+0xb8>)
- 8004d32: 681b ldr r3, [r3, #0]
- 8004d34: f403 53c0 and.w r3, r3, #6144 ; 0x1800
- 8004d38: 617b str r3, [r7, #20]
- 8004d3a: e016 b.n 8004d6a <RCC_SetFlashLatencyFromMSIRange+0x5e>
- }
- else
- {
- __HAL_RCC_PWR_CLK_ENABLE();
- 8004d3c: 4b20 ldr r3, [pc, #128] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d3e: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004d40: 4a1f ldr r2, [pc, #124] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d42: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 8004d46: 6253 str r3, [r2, #36] ; 0x24
- 8004d48: 4b1d ldr r3, [pc, #116] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d4a: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004d4c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8004d50: 60fb str r3, [r7, #12]
- 8004d52: 68fb ldr r3, [r7, #12]
- vos = READ_BIT(PWR->CR, PWR_CR_VOS);
- 8004d54: 4b1b ldr r3, [pc, #108] ; (8004dc4 <RCC_SetFlashLatencyFromMSIRange+0xb8>)
- 8004d56: 681b ldr r3, [r3, #0]
- 8004d58: f403 53c0 and.w r3, r3, #6144 ; 0x1800
- 8004d5c: 617b str r3, [r7, #20]
- __HAL_RCC_PWR_CLK_DISABLE();
- 8004d5e: 4b18 ldr r3, [pc, #96] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d60: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004d62: 4a17 ldr r2, [pc, #92] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
- 8004d64: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
- 8004d68: 6253 str r3, [r2, #36] ; 0x24
- }
- /* Check if need to set latency 1 only for Range 3 & HCLK = 4MHz */
- if((vos == PWR_REGULATOR_VOLTAGE_SCALE3) && (MSIrange == RCC_MSIRANGE_6))
- 8004d6a: 697b ldr r3, [r7, #20]
- 8004d6c: f5b3 5fc0 cmp.w r3, #6144 ; 0x1800
- 8004d70: d105 bne.n 8004d7e <RCC_SetFlashLatencyFromMSIRange+0x72>
- 8004d72: 687b ldr r3, [r7, #4]
- 8004d74: f5b3 4f40 cmp.w r3, #49152 ; 0xc000
- 8004d78: d101 bne.n 8004d7e <RCC_SetFlashLatencyFromMSIRange+0x72>
- {
- latency = FLASH_LATENCY_1; /* 1WS */
- 8004d7a: 2301 movs r3, #1
- 8004d7c: 613b str r3, [r7, #16]
- }
- }
- __HAL_FLASH_SET_LATENCY(latency);
- 8004d7e: 693b ldr r3, [r7, #16]
- 8004d80: 2b01 cmp r3, #1
- 8004d82: d105 bne.n 8004d90 <RCC_SetFlashLatencyFromMSIRange+0x84>
- 8004d84: 4b10 ldr r3, [pc, #64] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
- 8004d86: 681b ldr r3, [r3, #0]
- 8004d88: 4a0f ldr r2, [pc, #60] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
- 8004d8a: f043 0304 orr.w r3, r3, #4
- 8004d8e: 6013 str r3, [r2, #0]
- 8004d90: 4b0d ldr r3, [pc, #52] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
- 8004d92: 681b ldr r3, [r3, #0]
- 8004d94: f023 0201 bic.w r2, r3, #1
- 8004d98: 490b ldr r1, [pc, #44] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
- 8004d9a: 693b ldr r3, [r7, #16]
- 8004d9c: 4313 orrs r3, r2
- 8004d9e: 600b str r3, [r1, #0]
- /* Check that the new number of wait states is taken into account to access the Flash
- memory by reading the FLASH_ACR register */
- if(__HAL_FLASH_GET_LATENCY() != latency)
- 8004da0: 4b09 ldr r3, [pc, #36] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
- 8004da2: 681b ldr r3, [r3, #0]
- 8004da4: f003 0301 and.w r3, r3, #1
- 8004da8: 693a ldr r2, [r7, #16]
- 8004daa: 429a cmp r2, r3
- 8004dac: d001 beq.n 8004db2 <RCC_SetFlashLatencyFromMSIRange+0xa6>
- {
- return HAL_ERROR;
- 8004dae: 2301 movs r3, #1
- 8004db0: e000 b.n 8004db4 <RCC_SetFlashLatencyFromMSIRange+0xa8>
- }
- return HAL_OK;
- 8004db2: 2300 movs r3, #0
- }
- 8004db4: 4618 mov r0, r3
- 8004db6: 371c adds r7, #28
- 8004db8: 46bd mov sp, r7
- 8004dba: bc80 pop {r7}
- 8004dbc: 4770 bx lr
- 8004dbe: bf00 nop
- 8004dc0: 40023800 .word 0x40023800
- 8004dc4: 40007000 .word 0x40007000
- 8004dc8: 40023c00 .word 0x40023c00
- 08004dcc <HAL_TIM_Base_Init>:
- * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
- * @param htim TIM Base handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
- {
- 8004dcc: b580 push {r7, lr}
- 8004dce: b082 sub sp, #8
- 8004dd0: af00 add r7, sp, #0
- 8004dd2: 6078 str r0, [r7, #4]
- /* Check the TIM handle allocation */
- if (htim == NULL)
- 8004dd4: 687b ldr r3, [r7, #4]
- 8004dd6: 2b00 cmp r3, #0
- 8004dd8: d101 bne.n 8004dde <HAL_TIM_Base_Init+0x12>
- {
- return HAL_ERROR;
- 8004dda: 2301 movs r3, #1
- 8004ddc: e031 b.n 8004e42 <HAL_TIM_Base_Init+0x76>
- assert_param(IS_TIM_INSTANCE(htim->Instance));
- assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
- assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
- assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
- if (htim->State == HAL_TIM_STATE_RESET)
- 8004dde: 687b ldr r3, [r7, #4]
- 8004de0: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
- 8004de4: b2db uxtb r3, r3
- 8004de6: 2b00 cmp r3, #0
- 8004de8: d106 bne.n 8004df8 <HAL_TIM_Base_Init+0x2c>
- {
- /* Allocate lock resource and initialize it */
- htim->Lock = HAL_UNLOCKED;
- 8004dea: 687b ldr r3, [r7, #4]
- 8004dec: 2200 movs r2, #0
- 8004dee: f883 2038 strb.w r2, [r3, #56] ; 0x38
- }
- /* Init the low level hardware : GPIO, CLOCK, NVIC */
- htim->Base_MspInitCallback(htim);
- #else
- /* Init the low level hardware : GPIO, CLOCK, NVIC */
- HAL_TIM_Base_MspInit(htim);
- 8004df2: 6878 ldr r0, [r7, #4]
- 8004df4: f7fc ff62 bl 8001cbc <HAL_TIM_Base_MspInit>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- /* Set the TIM state */
- htim->State = HAL_TIM_STATE_BUSY;
- 8004df8: 687b ldr r3, [r7, #4]
- 8004dfa: 2202 movs r2, #2
- 8004dfc: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Set the Time Base configuration */
- TIM_Base_SetConfig(htim->Instance, &htim->Init);
- 8004e00: 687b ldr r3, [r7, #4]
- 8004e02: 681a ldr r2, [r3, #0]
- 8004e04: 687b ldr r3, [r7, #4]
- 8004e06: 3304 adds r3, #4
- 8004e08: 4619 mov r1, r3
- 8004e0a: 4610 mov r0, r2
- 8004e0c: f000 fccc bl 80057a8 <TIM_Base_SetConfig>
- /* Initialize the DMA burst operation state */
- htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
- 8004e10: 687b ldr r3, [r7, #4]
- 8004e12: 2201 movs r2, #1
- 8004e14: f883 203e strb.w r2, [r3, #62] ; 0x3e
- /* Initialize the TIM channels state */
- TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
- 8004e18: 687b ldr r3, [r7, #4]
- 8004e1a: 2201 movs r2, #1
- 8004e1c: f883 203a strb.w r2, [r3, #58] ; 0x3a
- 8004e20: 687b ldr r3, [r7, #4]
- 8004e22: 2201 movs r2, #1
- 8004e24: f883 203b strb.w r2, [r3, #59] ; 0x3b
- 8004e28: 687b ldr r3, [r7, #4]
- 8004e2a: 2201 movs r2, #1
- 8004e2c: f883 203c strb.w r2, [r3, #60] ; 0x3c
- 8004e30: 687b ldr r3, [r7, #4]
- 8004e32: 2201 movs r2, #1
- 8004e34: f883 203d strb.w r2, [r3, #61] ; 0x3d
- /* Initialize the TIM state*/
- htim->State = HAL_TIM_STATE_READY;
- 8004e38: 687b ldr r3, [r7, #4]
- 8004e3a: 2201 movs r2, #1
- 8004e3c: f883 2039 strb.w r2, [r3, #57] ; 0x39
- return HAL_OK;
- 8004e40: 2300 movs r3, #0
- }
- 8004e42: 4618 mov r0, r3
- 8004e44: 3708 adds r7, #8
- 8004e46: 46bd mov sp, r7
- 8004e48: bd80 pop {r7, pc}
- ...
- 08004e4c <HAL_TIM_Base_Start>:
- * @brief Starts the TIM Base generation.
- * @param htim TIM Base handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
- {
- 8004e4c: b480 push {r7}
- 8004e4e: b085 sub sp, #20
- 8004e50: af00 add r7, sp, #0
- 8004e52: 6078 str r0, [r7, #4]
- /* Check the parameters */
- assert_param(IS_TIM_INSTANCE(htim->Instance));
- /* Check the TIM state */
- if (htim->State != HAL_TIM_STATE_READY)
- 8004e54: 687b ldr r3, [r7, #4]
- 8004e56: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
- 8004e5a: b2db uxtb r3, r3
- 8004e5c: 2b01 cmp r3, #1
- 8004e5e: d001 beq.n 8004e64 <HAL_TIM_Base_Start+0x18>
- {
- return HAL_ERROR;
- 8004e60: 2301 movs r3, #1
- 8004e62: e032 b.n 8004eca <HAL_TIM_Base_Start+0x7e>
- }
- /* Set the TIM state */
- htim->State = HAL_TIM_STATE_BUSY;
- 8004e64: 687b ldr r3, [r7, #4]
- 8004e66: 2202 movs r2, #2
- 8004e68: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
- if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
- 8004e6c: 687b ldr r3, [r7, #4]
- 8004e6e: 681b ldr r3, [r3, #0]
- 8004e70: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8004e74: d00e beq.n 8004e94 <HAL_TIM_Base_Start+0x48>
- 8004e76: 687b ldr r3, [r7, #4]
- 8004e78: 681b ldr r3, [r3, #0]
- 8004e7a: 4a16 ldr r2, [pc, #88] ; (8004ed4 <HAL_TIM_Base_Start+0x88>)
- 8004e7c: 4293 cmp r3, r2
- 8004e7e: d009 beq.n 8004e94 <HAL_TIM_Base_Start+0x48>
- 8004e80: 687b ldr r3, [r7, #4]
- 8004e82: 681b ldr r3, [r3, #0]
- 8004e84: 4a14 ldr r2, [pc, #80] ; (8004ed8 <HAL_TIM_Base_Start+0x8c>)
- 8004e86: 4293 cmp r3, r2
- 8004e88: d004 beq.n 8004e94 <HAL_TIM_Base_Start+0x48>
- 8004e8a: 687b ldr r3, [r7, #4]
- 8004e8c: 681b ldr r3, [r3, #0]
- 8004e8e: 4a13 ldr r2, [pc, #76] ; (8004edc <HAL_TIM_Base_Start+0x90>)
- 8004e90: 4293 cmp r3, r2
- 8004e92: d111 bne.n 8004eb8 <HAL_TIM_Base_Start+0x6c>
- {
- tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
- 8004e94: 687b ldr r3, [r7, #4]
- 8004e96: 681b ldr r3, [r3, #0]
- 8004e98: 689b ldr r3, [r3, #8]
- 8004e9a: f003 0307 and.w r3, r3, #7
- 8004e9e: 60fb str r3, [r7, #12]
- if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 8004ea0: 68fb ldr r3, [r7, #12]
- 8004ea2: 2b06 cmp r3, #6
- 8004ea4: d010 beq.n 8004ec8 <HAL_TIM_Base_Start+0x7c>
- {
- __HAL_TIM_ENABLE(htim);
- 8004ea6: 687b ldr r3, [r7, #4]
- 8004ea8: 681b ldr r3, [r3, #0]
- 8004eaa: 681a ldr r2, [r3, #0]
- 8004eac: 687b ldr r3, [r7, #4]
- 8004eae: 681b ldr r3, [r3, #0]
- 8004eb0: f042 0201 orr.w r2, r2, #1
- 8004eb4: 601a str r2, [r3, #0]
- if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 8004eb6: e007 b.n 8004ec8 <HAL_TIM_Base_Start+0x7c>
- }
- }
- else
- {
- __HAL_TIM_ENABLE(htim);
- 8004eb8: 687b ldr r3, [r7, #4]
- 8004eba: 681b ldr r3, [r3, #0]
- 8004ebc: 681a ldr r2, [r3, #0]
- 8004ebe: 687b ldr r3, [r7, #4]
- 8004ec0: 681b ldr r3, [r3, #0]
- 8004ec2: f042 0201 orr.w r2, r2, #1
- 8004ec6: 601a str r2, [r3, #0]
- }
- /* Return function status */
- return HAL_OK;
- 8004ec8: 2300 movs r3, #0
- }
- 8004eca: 4618 mov r0, r3
- 8004ecc: 3714 adds r7, #20
- 8004ece: 46bd mov sp, r7
- 8004ed0: bc80 pop {r7}
- 8004ed2: 4770 bx lr
- 8004ed4: 40000400 .word 0x40000400
- 8004ed8: 40000800 .word 0x40000800
- 8004edc: 40010800 .word 0x40010800
- 08004ee0 <HAL_TIM_Base_Stop>:
- * @brief Stops the TIM Base generation.
- * @param htim TIM Base handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim)
- {
- 8004ee0: b480 push {r7}
- 8004ee2: b083 sub sp, #12
- 8004ee4: af00 add r7, sp, #0
- 8004ee6: 6078 str r0, [r7, #4]
- /* Check the parameters */
- assert_param(IS_TIM_INSTANCE(htim->Instance));
- /* Disable the Peripheral */
- __HAL_TIM_DISABLE(htim);
- 8004ee8: 687b ldr r3, [r7, #4]
- 8004eea: 681b ldr r3, [r3, #0]
- 8004eec: 6a1a ldr r2, [r3, #32]
- 8004eee: f241 1311 movw r3, #4369 ; 0x1111
- 8004ef2: 4013 ands r3, r2
- 8004ef4: 2b00 cmp r3, #0
- 8004ef6: d107 bne.n 8004f08 <HAL_TIM_Base_Stop+0x28>
- 8004ef8: 687b ldr r3, [r7, #4]
- 8004efa: 681b ldr r3, [r3, #0]
- 8004efc: 681a ldr r2, [r3, #0]
- 8004efe: 687b ldr r3, [r7, #4]
- 8004f00: 681b ldr r3, [r3, #0]
- 8004f02: f022 0201 bic.w r2, r2, #1
- 8004f06: 601a str r2, [r3, #0]
- /* Set the TIM state */
- htim->State = HAL_TIM_STATE_READY;
- 8004f08: 687b ldr r3, [r7, #4]
- 8004f0a: 2201 movs r2, #1
- 8004f0c: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Return function status */
- return HAL_OK;
- 8004f10: 2300 movs r3, #0
- }
- 8004f12: 4618 mov r0, r3
- 8004f14: 370c adds r7, #12
- 8004f16: 46bd mov sp, r7
- 8004f18: bc80 pop {r7}
- 8004f1a: 4770 bx lr
- 08004f1c <HAL_TIM_Base_Start_IT>:
- * @brief Starts the TIM Base generation in interrupt mode.
- * @param htim TIM Base handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
- {
- 8004f1c: b480 push {r7}
- 8004f1e: b085 sub sp, #20
- 8004f20: af00 add r7, sp, #0
- 8004f22: 6078 str r0, [r7, #4]
- /* Check the parameters */
- assert_param(IS_TIM_INSTANCE(htim->Instance));
- /* Check the TIM state */
- if (htim->State != HAL_TIM_STATE_READY)
- 8004f24: 687b ldr r3, [r7, #4]
- 8004f26: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
- 8004f2a: b2db uxtb r3, r3
- 8004f2c: 2b01 cmp r3, #1
- 8004f2e: d001 beq.n 8004f34 <HAL_TIM_Base_Start_IT+0x18>
- {
- return HAL_ERROR;
- 8004f30: 2301 movs r3, #1
- 8004f32: e03a b.n 8004faa <HAL_TIM_Base_Start_IT+0x8e>
- }
- /* Set the TIM state */
- htim->State = HAL_TIM_STATE_BUSY;
- 8004f34: 687b ldr r3, [r7, #4]
- 8004f36: 2202 movs r2, #2
- 8004f38: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Enable the TIM Update interrupt */
- __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
- 8004f3c: 687b ldr r3, [r7, #4]
- 8004f3e: 681b ldr r3, [r3, #0]
- 8004f40: 68da ldr r2, [r3, #12]
- 8004f42: 687b ldr r3, [r7, #4]
- 8004f44: 681b ldr r3, [r3, #0]
- 8004f46: f042 0201 orr.w r2, r2, #1
- 8004f4a: 60da str r2, [r3, #12]
- /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
- if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
- 8004f4c: 687b ldr r3, [r7, #4]
- 8004f4e: 681b ldr r3, [r3, #0]
- 8004f50: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8004f54: d00e beq.n 8004f74 <HAL_TIM_Base_Start_IT+0x58>
- 8004f56: 687b ldr r3, [r7, #4]
- 8004f58: 681b ldr r3, [r3, #0]
- 8004f5a: 4a16 ldr r2, [pc, #88] ; (8004fb4 <HAL_TIM_Base_Start_IT+0x98>)
- 8004f5c: 4293 cmp r3, r2
- 8004f5e: d009 beq.n 8004f74 <HAL_TIM_Base_Start_IT+0x58>
- 8004f60: 687b ldr r3, [r7, #4]
- 8004f62: 681b ldr r3, [r3, #0]
- 8004f64: 4a14 ldr r2, [pc, #80] ; (8004fb8 <HAL_TIM_Base_Start_IT+0x9c>)
- 8004f66: 4293 cmp r3, r2
- 8004f68: d004 beq.n 8004f74 <HAL_TIM_Base_Start_IT+0x58>
- 8004f6a: 687b ldr r3, [r7, #4]
- 8004f6c: 681b ldr r3, [r3, #0]
- 8004f6e: 4a13 ldr r2, [pc, #76] ; (8004fbc <HAL_TIM_Base_Start_IT+0xa0>)
- 8004f70: 4293 cmp r3, r2
- 8004f72: d111 bne.n 8004f98 <HAL_TIM_Base_Start_IT+0x7c>
- {
- tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
- 8004f74: 687b ldr r3, [r7, #4]
- 8004f76: 681b ldr r3, [r3, #0]
- 8004f78: 689b ldr r3, [r3, #8]
- 8004f7a: f003 0307 and.w r3, r3, #7
- 8004f7e: 60fb str r3, [r7, #12]
- if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 8004f80: 68fb ldr r3, [r7, #12]
- 8004f82: 2b06 cmp r3, #6
- 8004f84: d010 beq.n 8004fa8 <HAL_TIM_Base_Start_IT+0x8c>
- {
- __HAL_TIM_ENABLE(htim);
- 8004f86: 687b ldr r3, [r7, #4]
- 8004f88: 681b ldr r3, [r3, #0]
- 8004f8a: 681a ldr r2, [r3, #0]
- 8004f8c: 687b ldr r3, [r7, #4]
- 8004f8e: 681b ldr r3, [r3, #0]
- 8004f90: f042 0201 orr.w r2, r2, #1
- 8004f94: 601a str r2, [r3, #0]
- if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 8004f96: e007 b.n 8004fa8 <HAL_TIM_Base_Start_IT+0x8c>
- }
- }
- else
- {
- __HAL_TIM_ENABLE(htim);
- 8004f98: 687b ldr r3, [r7, #4]
- 8004f9a: 681b ldr r3, [r3, #0]
- 8004f9c: 681a ldr r2, [r3, #0]
- 8004f9e: 687b ldr r3, [r7, #4]
- 8004fa0: 681b ldr r3, [r3, #0]
- 8004fa2: f042 0201 orr.w r2, r2, #1
- 8004fa6: 601a str r2, [r3, #0]
- }
- /* Return function status */
- return HAL_OK;
- 8004fa8: 2300 movs r3, #0
- }
- 8004faa: 4618 mov r0, r3
- 8004fac: 3714 adds r7, #20
- 8004fae: 46bd mov sp, r7
- 8004fb0: bc80 pop {r7}
- 8004fb2: 4770 bx lr
- 8004fb4: 40000400 .word 0x40000400
- 8004fb8: 40000800 .word 0x40000800
- 8004fbc: 40010800 .word 0x40010800
- 08004fc0 <HAL_TIM_OC_Start>:
- * @arg TIM_CHANNEL_3: TIM Channel 3 selected
- * @arg TIM_CHANNEL_4: TIM Channel 4 selected
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
- {
- 8004fc0: b580 push {r7, lr}
- 8004fc2: b084 sub sp, #16
- 8004fc4: af00 add r7, sp, #0
- 8004fc6: 6078 str r0, [r7, #4]
- 8004fc8: 6039 str r1, [r7, #0]
- /* Check the parameters */
- assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
- /* Check the TIM channel state */
- if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
- 8004fca: 683b ldr r3, [r7, #0]
- 8004fcc: 2b00 cmp r3, #0
- 8004fce: d109 bne.n 8004fe4 <HAL_TIM_OC_Start+0x24>
- 8004fd0: 687b ldr r3, [r7, #4]
- 8004fd2: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
- 8004fd6: b2db uxtb r3, r3
- 8004fd8: 2b01 cmp r3, #1
- 8004fda: bf14 ite ne
- 8004fdc: 2301 movne r3, #1
- 8004fde: 2300 moveq r3, #0
- 8004fe0: b2db uxtb r3, r3
- 8004fe2: e022 b.n 800502a <HAL_TIM_OC_Start+0x6a>
- 8004fe4: 683b ldr r3, [r7, #0]
- 8004fe6: 2b04 cmp r3, #4
- 8004fe8: d109 bne.n 8004ffe <HAL_TIM_OC_Start+0x3e>
- 8004fea: 687b ldr r3, [r7, #4]
- 8004fec: f893 303b ldrb.w r3, [r3, #59] ; 0x3b
- 8004ff0: b2db uxtb r3, r3
- 8004ff2: 2b01 cmp r3, #1
- 8004ff4: bf14 ite ne
- 8004ff6: 2301 movne r3, #1
- 8004ff8: 2300 moveq r3, #0
- 8004ffa: b2db uxtb r3, r3
- 8004ffc: e015 b.n 800502a <HAL_TIM_OC_Start+0x6a>
- 8004ffe: 683b ldr r3, [r7, #0]
- 8005000: 2b08 cmp r3, #8
- 8005002: d109 bne.n 8005018 <HAL_TIM_OC_Start+0x58>
- 8005004: 687b ldr r3, [r7, #4]
- 8005006: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
- 800500a: b2db uxtb r3, r3
- 800500c: 2b01 cmp r3, #1
- 800500e: bf14 ite ne
- 8005010: 2301 movne r3, #1
- 8005012: 2300 moveq r3, #0
- 8005014: b2db uxtb r3, r3
- 8005016: e008 b.n 800502a <HAL_TIM_OC_Start+0x6a>
- 8005018: 687b ldr r3, [r7, #4]
- 800501a: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 800501e: b2db uxtb r3, r3
- 8005020: 2b01 cmp r3, #1
- 8005022: bf14 ite ne
- 8005024: 2301 movne r3, #1
- 8005026: 2300 moveq r3, #0
- 8005028: b2db uxtb r3, r3
- 800502a: 2b00 cmp r3, #0
- 800502c: d001 beq.n 8005032 <HAL_TIM_OC_Start+0x72>
- {
- return HAL_ERROR;
- 800502e: 2301 movs r3, #1
- 8005030: e051 b.n 80050d6 <HAL_TIM_OC_Start+0x116>
- }
- /* Set the TIM channel state */
- TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
- 8005032: 683b ldr r3, [r7, #0]
- 8005034: 2b00 cmp r3, #0
- 8005036: d104 bne.n 8005042 <HAL_TIM_OC_Start+0x82>
- 8005038: 687b ldr r3, [r7, #4]
- 800503a: 2202 movs r2, #2
- 800503c: f883 203a strb.w r2, [r3, #58] ; 0x3a
- 8005040: e013 b.n 800506a <HAL_TIM_OC_Start+0xaa>
- 8005042: 683b ldr r3, [r7, #0]
- 8005044: 2b04 cmp r3, #4
- 8005046: d104 bne.n 8005052 <HAL_TIM_OC_Start+0x92>
- 8005048: 687b ldr r3, [r7, #4]
- 800504a: 2202 movs r2, #2
- 800504c: f883 203b strb.w r2, [r3, #59] ; 0x3b
- 8005050: e00b b.n 800506a <HAL_TIM_OC_Start+0xaa>
- 8005052: 683b ldr r3, [r7, #0]
- 8005054: 2b08 cmp r3, #8
- 8005056: d104 bne.n 8005062 <HAL_TIM_OC_Start+0xa2>
- 8005058: 687b ldr r3, [r7, #4]
- 800505a: 2202 movs r2, #2
- 800505c: f883 203c strb.w r2, [r3, #60] ; 0x3c
- 8005060: e003 b.n 800506a <HAL_TIM_OC_Start+0xaa>
- 8005062: 687b ldr r3, [r7, #4]
- 8005064: 2202 movs r2, #2
- 8005066: f883 203d strb.w r2, [r3, #61] ; 0x3d
- /* Enable the Output compare channel */
- TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
- 800506a: 687b ldr r3, [r7, #4]
- 800506c: 681b ldr r3, [r3, #0]
- 800506e: 2201 movs r2, #1
- 8005070: 6839 ldr r1, [r7, #0]
- 8005072: 4618 mov r0, r3
- 8005074: f000 fe13 bl 8005c9e <TIM_CCxChannelCmd>
- /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
- if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
- 8005078: 687b ldr r3, [r7, #4]
- 800507a: 681b ldr r3, [r3, #0]
- 800507c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8005080: d00e beq.n 80050a0 <HAL_TIM_OC_Start+0xe0>
- 8005082: 687b ldr r3, [r7, #4]
- 8005084: 681b ldr r3, [r3, #0]
- 8005086: 4a16 ldr r2, [pc, #88] ; (80050e0 <HAL_TIM_OC_Start+0x120>)
- 8005088: 4293 cmp r3, r2
- 800508a: d009 beq.n 80050a0 <HAL_TIM_OC_Start+0xe0>
- 800508c: 687b ldr r3, [r7, #4]
- 800508e: 681b ldr r3, [r3, #0]
- 8005090: 4a14 ldr r2, [pc, #80] ; (80050e4 <HAL_TIM_OC_Start+0x124>)
- 8005092: 4293 cmp r3, r2
- 8005094: d004 beq.n 80050a0 <HAL_TIM_OC_Start+0xe0>
- 8005096: 687b ldr r3, [r7, #4]
- 8005098: 681b ldr r3, [r3, #0]
- 800509a: 4a13 ldr r2, [pc, #76] ; (80050e8 <HAL_TIM_OC_Start+0x128>)
- 800509c: 4293 cmp r3, r2
- 800509e: d111 bne.n 80050c4 <HAL_TIM_OC_Start+0x104>
- {
- tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
- 80050a0: 687b ldr r3, [r7, #4]
- 80050a2: 681b ldr r3, [r3, #0]
- 80050a4: 689b ldr r3, [r3, #8]
- 80050a6: f003 0307 and.w r3, r3, #7
- 80050aa: 60fb str r3, [r7, #12]
- if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 80050ac: 68fb ldr r3, [r7, #12]
- 80050ae: 2b06 cmp r3, #6
- 80050b0: d010 beq.n 80050d4 <HAL_TIM_OC_Start+0x114>
- {
- __HAL_TIM_ENABLE(htim);
- 80050b2: 687b ldr r3, [r7, #4]
- 80050b4: 681b ldr r3, [r3, #0]
- 80050b6: 681a ldr r2, [r3, #0]
- 80050b8: 687b ldr r3, [r7, #4]
- 80050ba: 681b ldr r3, [r3, #0]
- 80050bc: f042 0201 orr.w r2, r2, #1
- 80050c0: 601a str r2, [r3, #0]
- if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 80050c2: e007 b.n 80050d4 <HAL_TIM_OC_Start+0x114>
- }
- }
- else
- {
- __HAL_TIM_ENABLE(htim);
- 80050c4: 687b ldr r3, [r7, #4]
- 80050c6: 681b ldr r3, [r3, #0]
- 80050c8: 681a ldr r2, [r3, #0]
- 80050ca: 687b ldr r3, [r7, #4]
- 80050cc: 681b ldr r3, [r3, #0]
- 80050ce: f042 0201 orr.w r2, r2, #1
- 80050d2: 601a str r2, [r3, #0]
- }
- /* Return function status */
- return HAL_OK;
- 80050d4: 2300 movs r3, #0
- }
- 80050d6: 4618 mov r0, r3
- 80050d8: 3710 adds r7, #16
- 80050da: 46bd mov sp, r7
- 80050dc: bd80 pop {r7, pc}
- 80050de: bf00 nop
- 80050e0: 40000400 .word 0x40000400
- 80050e4: 40000800 .word 0x40000800
- 80050e8: 40010800 .word 0x40010800
- 080050ec <HAL_TIM_PWM_Init>:
- * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
- * @param htim TIM PWM handle
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
- {
- 80050ec: b580 push {r7, lr}
- 80050ee: b082 sub sp, #8
- 80050f0: af00 add r7, sp, #0
- 80050f2: 6078 str r0, [r7, #4]
- /* Check the TIM handle allocation */
- if (htim == NULL)
- 80050f4: 687b ldr r3, [r7, #4]
- 80050f6: 2b00 cmp r3, #0
- 80050f8: d101 bne.n 80050fe <HAL_TIM_PWM_Init+0x12>
- {
- return HAL_ERROR;
- 80050fa: 2301 movs r3, #1
- 80050fc: e031 b.n 8005162 <HAL_TIM_PWM_Init+0x76>
- assert_param(IS_TIM_INSTANCE(htim->Instance));
- assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
- assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
- assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
- if (htim->State == HAL_TIM_STATE_RESET)
- 80050fe: 687b ldr r3, [r7, #4]
- 8005100: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
- 8005104: b2db uxtb r3, r3
- 8005106: 2b00 cmp r3, #0
- 8005108: d106 bne.n 8005118 <HAL_TIM_PWM_Init+0x2c>
- {
- /* Allocate lock resource and initialize it */
- htim->Lock = HAL_UNLOCKED;
- 800510a: 687b ldr r3, [r7, #4]
- 800510c: 2200 movs r2, #0
- 800510e: f883 2038 strb.w r2, [r3, #56] ; 0x38
- }
- /* Init the low level hardware : GPIO, CLOCK, NVIC */
- htim->PWM_MspInitCallback(htim);
- #else
- /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
- HAL_TIM_PWM_MspInit(htim);
- 8005112: 6878 ldr r0, [r7, #4]
- 8005114: f000 f829 bl 800516a <HAL_TIM_PWM_MspInit>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- /* Set the TIM state */
- htim->State = HAL_TIM_STATE_BUSY;
- 8005118: 687b ldr r3, [r7, #4]
- 800511a: 2202 movs r2, #2
- 800511c: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Init the base time for the PWM */
- TIM_Base_SetConfig(htim->Instance, &htim->Init);
- 8005120: 687b ldr r3, [r7, #4]
- 8005122: 681a ldr r2, [r3, #0]
- 8005124: 687b ldr r3, [r7, #4]
- 8005126: 3304 adds r3, #4
- 8005128: 4619 mov r1, r3
- 800512a: 4610 mov r0, r2
- 800512c: f000 fb3c bl 80057a8 <TIM_Base_SetConfig>
- /* Initialize the DMA burst operation state */
- htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
- 8005130: 687b ldr r3, [r7, #4]
- 8005132: 2201 movs r2, #1
- 8005134: f883 203e strb.w r2, [r3, #62] ; 0x3e
- /* Initialize the TIM channels state */
- TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
- 8005138: 687b ldr r3, [r7, #4]
- 800513a: 2201 movs r2, #1
- 800513c: f883 203a strb.w r2, [r3, #58] ; 0x3a
- 8005140: 687b ldr r3, [r7, #4]
- 8005142: 2201 movs r2, #1
- 8005144: f883 203b strb.w r2, [r3, #59] ; 0x3b
- 8005148: 687b ldr r3, [r7, #4]
- 800514a: 2201 movs r2, #1
- 800514c: f883 203c strb.w r2, [r3, #60] ; 0x3c
- 8005150: 687b ldr r3, [r7, #4]
- 8005152: 2201 movs r2, #1
- 8005154: f883 203d strb.w r2, [r3, #61] ; 0x3d
- /* Initialize the TIM state*/
- htim->State = HAL_TIM_STATE_READY;
- 8005158: 687b ldr r3, [r7, #4]
- 800515a: 2201 movs r2, #1
- 800515c: f883 2039 strb.w r2, [r3, #57] ; 0x39
- return HAL_OK;
- 8005160: 2300 movs r3, #0
- }
- 8005162: 4618 mov r0, r3
- 8005164: 3708 adds r7, #8
- 8005166: 46bd mov sp, r7
- 8005168: bd80 pop {r7, pc}
- 0800516a <HAL_TIM_PWM_MspInit>:
- * @brief Initializes the TIM PWM MSP.
- * @param htim TIM PWM handle
- * @retval None
- */
- __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim)
- {
- 800516a: b480 push {r7}
- 800516c: b083 sub sp, #12
- 800516e: af00 add r7, sp, #0
- 8005170: 6078 str r0, [r7, #4]
- UNUSED(htim);
- /* NOTE : This function should not be modified, when the callback is needed,
- the HAL_TIM_PWM_MspInit could be implemented in the user file
- */
- }
- 8005172: bf00 nop
- 8005174: 370c adds r7, #12
- 8005176: 46bd mov sp, r7
- 8005178: bc80 pop {r7}
- 800517a: 4770 bx lr
- 0800517c <HAL_TIM_OnePulse_Init>:
- * @arg TIM_OPMODE_SINGLE: Only one pulse will be generated.
- * @arg TIM_OPMODE_REPETITIVE: Repetitive pulses will be generated.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode)
- {
- 800517c: b580 push {r7, lr}
- 800517e: b082 sub sp, #8
- 8005180: af00 add r7, sp, #0
- 8005182: 6078 str r0, [r7, #4]
- 8005184: 6039 str r1, [r7, #0]
- /* Check the TIM handle allocation */
- if (htim == NULL)
- 8005186: 687b ldr r3, [r7, #4]
- 8005188: 2b00 cmp r3, #0
- 800518a: d101 bne.n 8005190 <HAL_TIM_OnePulse_Init+0x14>
- {
- return HAL_ERROR;
- 800518c: 2301 movs r3, #1
- 800518e: e039 b.n 8005204 <HAL_TIM_OnePulse_Init+0x88>
- assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
- assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
- assert_param(IS_TIM_OPM_MODE(OnePulseMode));
- assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
- if (htim->State == HAL_TIM_STATE_RESET)
- 8005190: 687b ldr r3, [r7, #4]
- 8005192: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
- 8005196: b2db uxtb r3, r3
- 8005198: 2b00 cmp r3, #0
- 800519a: d106 bne.n 80051aa <HAL_TIM_OnePulse_Init+0x2e>
- {
- /* Allocate lock resource and initialize it */
- htim->Lock = HAL_UNLOCKED;
- 800519c: 687b ldr r3, [r7, #4]
- 800519e: 2200 movs r2, #0
- 80051a0: f883 2038 strb.w r2, [r3, #56] ; 0x38
- }
- /* Init the low level hardware : GPIO, CLOCK, NVIC */
- htim->OnePulse_MspInitCallback(htim);
- #else
- /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
- HAL_TIM_OnePulse_MspInit(htim);
- 80051a4: 6878 ldr r0, [r7, #4]
- 80051a6: f000 f831 bl 800520c <HAL_TIM_OnePulse_MspInit>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- /* Set the TIM state */
- htim->State = HAL_TIM_STATE_BUSY;
- 80051aa: 687b ldr r3, [r7, #4]
- 80051ac: 2202 movs r2, #2
- 80051ae: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Configure the Time base in the One Pulse Mode */
- TIM_Base_SetConfig(htim->Instance, &htim->Init);
- 80051b2: 687b ldr r3, [r7, #4]
- 80051b4: 681a ldr r2, [r3, #0]
- 80051b6: 687b ldr r3, [r7, #4]
- 80051b8: 3304 adds r3, #4
- 80051ba: 4619 mov r1, r3
- 80051bc: 4610 mov r0, r2
- 80051be: f000 faf3 bl 80057a8 <TIM_Base_SetConfig>
- /* Reset the OPM Bit */
- htim->Instance->CR1 &= ~TIM_CR1_OPM;
- 80051c2: 687b ldr r3, [r7, #4]
- 80051c4: 681b ldr r3, [r3, #0]
- 80051c6: 681a ldr r2, [r3, #0]
- 80051c8: 687b ldr r3, [r7, #4]
- 80051ca: 681b ldr r3, [r3, #0]
- 80051cc: f022 0208 bic.w r2, r2, #8
- 80051d0: 601a str r2, [r3, #0]
- /* Configure the OPM Mode */
- htim->Instance->CR1 |= OnePulseMode;
- 80051d2: 687b ldr r3, [r7, #4]
- 80051d4: 681b ldr r3, [r3, #0]
- 80051d6: 6819 ldr r1, [r3, #0]
- 80051d8: 687b ldr r3, [r7, #4]
- 80051da: 681b ldr r3, [r3, #0]
- 80051dc: 683a ldr r2, [r7, #0]
- 80051de: 430a orrs r2, r1
- 80051e0: 601a str r2, [r3, #0]
- /* Initialize the DMA burst operation state */
- htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
- 80051e2: 687b ldr r3, [r7, #4]
- 80051e4: 2201 movs r2, #1
- 80051e6: f883 203e strb.w r2, [r3, #62] ; 0x3e
- /* Initialize the TIM channels state */
- TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY);
- 80051ea: 687b ldr r3, [r7, #4]
- 80051ec: 2201 movs r2, #1
- 80051ee: f883 203a strb.w r2, [r3, #58] ; 0x3a
- TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY);
- 80051f2: 687b ldr r3, [r7, #4]
- 80051f4: 2201 movs r2, #1
- 80051f6: f883 203b strb.w r2, [r3, #59] ; 0x3b
- /* Initialize the TIM state*/
- htim->State = HAL_TIM_STATE_READY;
- 80051fa: 687b ldr r3, [r7, #4]
- 80051fc: 2201 movs r2, #1
- 80051fe: f883 2039 strb.w r2, [r3, #57] ; 0x39
- return HAL_OK;
- 8005202: 2300 movs r3, #0
- }
- 8005204: 4618 mov r0, r3
- 8005206: 3708 adds r7, #8
- 8005208: 46bd mov sp, r7
- 800520a: bd80 pop {r7, pc}
- 0800520c <HAL_TIM_OnePulse_MspInit>:
- * @brief Initializes the TIM One Pulse MSP.
- * @param htim TIM One Pulse handle
- * @retval None
- */
- __weak void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim)
- {
- 800520c: b480 push {r7}
- 800520e: b083 sub sp, #12
- 8005210: af00 add r7, sp, #0
- 8005212: 6078 str r0, [r7, #4]
- UNUSED(htim);
- /* NOTE : This function should not be modified, when the callback is needed,
- the HAL_TIM_OnePulse_MspInit could be implemented in the user file
- */
- }
- 8005214: bf00 nop
- 8005216: 370c adds r7, #12
- 8005218: 46bd mov sp, r7
- 800521a: bc80 pop {r7}
- 800521c: 4770 bx lr
- 0800521e <HAL_TIM_IRQHandler>:
- * @brief This function handles TIM interrupts requests.
- * @param htim TIM handle
- * @retval None
- */
- void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
- {
- 800521e: b580 push {r7, lr}
- 8005220: b082 sub sp, #8
- 8005222: af00 add r7, sp, #0
- 8005224: 6078 str r0, [r7, #4]
- /* Capture compare 1 event */
- if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
- 8005226: 687b ldr r3, [r7, #4]
- 8005228: 681b ldr r3, [r3, #0]
- 800522a: 691b ldr r3, [r3, #16]
- 800522c: f003 0302 and.w r3, r3, #2
- 8005230: 2b02 cmp r3, #2
- 8005232: d122 bne.n 800527a <HAL_TIM_IRQHandler+0x5c>
- {
- if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
- 8005234: 687b ldr r3, [r7, #4]
- 8005236: 681b ldr r3, [r3, #0]
- 8005238: 68db ldr r3, [r3, #12]
- 800523a: f003 0302 and.w r3, r3, #2
- 800523e: 2b02 cmp r3, #2
- 8005240: d11b bne.n 800527a <HAL_TIM_IRQHandler+0x5c>
- {
- {
- __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
- 8005242: 687b ldr r3, [r7, #4]
- 8005244: 681b ldr r3, [r3, #0]
- 8005246: f06f 0202 mvn.w r2, #2
- 800524a: 611a str r2, [r3, #16]
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
- 800524c: 687b ldr r3, [r7, #4]
- 800524e: 2201 movs r2, #1
- 8005250: 761a strb r2, [r3, #24]
- /* Input capture event */
- if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
- 8005252: 687b ldr r3, [r7, #4]
- 8005254: 681b ldr r3, [r3, #0]
- 8005256: 699b ldr r3, [r3, #24]
- 8005258: f003 0303 and.w r3, r3, #3
- 800525c: 2b00 cmp r3, #0
- 800525e: d003 beq.n 8005268 <HAL_TIM_IRQHandler+0x4a>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->IC_CaptureCallback(htim);
- #else
- HAL_TIM_IC_CaptureCallback(htim);
- 8005260: 6878 ldr r0, [r7, #4]
- 8005262: f000 fa86 bl 8005772 <HAL_TIM_IC_CaptureCallback>
- 8005266: e005 b.n 8005274 <HAL_TIM_IRQHandler+0x56>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->OC_DelayElapsedCallback(htim);
- htim->PWM_PulseFinishedCallback(htim);
- #else
- HAL_TIM_OC_DelayElapsedCallback(htim);
- 8005268: 6878 ldr r0, [r7, #4]
- 800526a: f000 fa79 bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
- HAL_TIM_PWM_PulseFinishedCallback(htim);
- 800526e: 6878 ldr r0, [r7, #4]
- 8005270: f000 fa88 bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 8005274: 687b ldr r3, [r7, #4]
- 8005276: 2200 movs r2, #0
- 8005278: 761a strb r2, [r3, #24]
- }
- }
- }
- /* Capture compare 2 event */
- if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
- 800527a: 687b ldr r3, [r7, #4]
- 800527c: 681b ldr r3, [r3, #0]
- 800527e: 691b ldr r3, [r3, #16]
- 8005280: f003 0304 and.w r3, r3, #4
- 8005284: 2b04 cmp r3, #4
- 8005286: d122 bne.n 80052ce <HAL_TIM_IRQHandler+0xb0>
- {
- if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
- 8005288: 687b ldr r3, [r7, #4]
- 800528a: 681b ldr r3, [r3, #0]
- 800528c: 68db ldr r3, [r3, #12]
- 800528e: f003 0304 and.w r3, r3, #4
- 8005292: 2b04 cmp r3, #4
- 8005294: d11b bne.n 80052ce <HAL_TIM_IRQHandler+0xb0>
- {
- __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
- 8005296: 687b ldr r3, [r7, #4]
- 8005298: 681b ldr r3, [r3, #0]
- 800529a: f06f 0204 mvn.w r2, #4
- 800529e: 611a str r2, [r3, #16]
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
- 80052a0: 687b ldr r3, [r7, #4]
- 80052a2: 2202 movs r2, #2
- 80052a4: 761a strb r2, [r3, #24]
- /* Input capture event */
- if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
- 80052a6: 687b ldr r3, [r7, #4]
- 80052a8: 681b ldr r3, [r3, #0]
- 80052aa: 699b ldr r3, [r3, #24]
- 80052ac: f403 7340 and.w r3, r3, #768 ; 0x300
- 80052b0: 2b00 cmp r3, #0
- 80052b2: d003 beq.n 80052bc <HAL_TIM_IRQHandler+0x9e>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->IC_CaptureCallback(htim);
- #else
- HAL_TIM_IC_CaptureCallback(htim);
- 80052b4: 6878 ldr r0, [r7, #4]
- 80052b6: f000 fa5c bl 8005772 <HAL_TIM_IC_CaptureCallback>
- 80052ba: e005 b.n 80052c8 <HAL_TIM_IRQHandler+0xaa>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->OC_DelayElapsedCallback(htim);
- htim->PWM_PulseFinishedCallback(htim);
- #else
- HAL_TIM_OC_DelayElapsedCallback(htim);
- 80052bc: 6878 ldr r0, [r7, #4]
- 80052be: f000 fa4f bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
- HAL_TIM_PWM_PulseFinishedCallback(htim);
- 80052c2: 6878 ldr r0, [r7, #4]
- 80052c4: f000 fa5e bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 80052c8: 687b ldr r3, [r7, #4]
- 80052ca: 2200 movs r2, #0
- 80052cc: 761a strb r2, [r3, #24]
- }
- }
- /* Capture compare 3 event */
- if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
- 80052ce: 687b ldr r3, [r7, #4]
- 80052d0: 681b ldr r3, [r3, #0]
- 80052d2: 691b ldr r3, [r3, #16]
- 80052d4: f003 0308 and.w r3, r3, #8
- 80052d8: 2b08 cmp r3, #8
- 80052da: d122 bne.n 8005322 <HAL_TIM_IRQHandler+0x104>
- {
- if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
- 80052dc: 687b ldr r3, [r7, #4]
- 80052de: 681b ldr r3, [r3, #0]
- 80052e0: 68db ldr r3, [r3, #12]
- 80052e2: f003 0308 and.w r3, r3, #8
- 80052e6: 2b08 cmp r3, #8
- 80052e8: d11b bne.n 8005322 <HAL_TIM_IRQHandler+0x104>
- {
- __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
- 80052ea: 687b ldr r3, [r7, #4]
- 80052ec: 681b ldr r3, [r3, #0]
- 80052ee: f06f 0208 mvn.w r2, #8
- 80052f2: 611a str r2, [r3, #16]
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
- 80052f4: 687b ldr r3, [r7, #4]
- 80052f6: 2204 movs r2, #4
- 80052f8: 761a strb r2, [r3, #24]
- /* Input capture event */
- if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
- 80052fa: 687b ldr r3, [r7, #4]
- 80052fc: 681b ldr r3, [r3, #0]
- 80052fe: 69db ldr r3, [r3, #28]
- 8005300: f003 0303 and.w r3, r3, #3
- 8005304: 2b00 cmp r3, #0
- 8005306: d003 beq.n 8005310 <HAL_TIM_IRQHandler+0xf2>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->IC_CaptureCallback(htim);
- #else
- HAL_TIM_IC_CaptureCallback(htim);
- 8005308: 6878 ldr r0, [r7, #4]
- 800530a: f000 fa32 bl 8005772 <HAL_TIM_IC_CaptureCallback>
- 800530e: e005 b.n 800531c <HAL_TIM_IRQHandler+0xfe>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->OC_DelayElapsedCallback(htim);
- htim->PWM_PulseFinishedCallback(htim);
- #else
- HAL_TIM_OC_DelayElapsedCallback(htim);
- 8005310: 6878 ldr r0, [r7, #4]
- 8005312: f000 fa25 bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
- HAL_TIM_PWM_PulseFinishedCallback(htim);
- 8005316: 6878 ldr r0, [r7, #4]
- 8005318: f000 fa34 bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 800531c: 687b ldr r3, [r7, #4]
- 800531e: 2200 movs r2, #0
- 8005320: 761a strb r2, [r3, #24]
- }
- }
- /* Capture compare 4 event */
- if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
- 8005322: 687b ldr r3, [r7, #4]
- 8005324: 681b ldr r3, [r3, #0]
- 8005326: 691b ldr r3, [r3, #16]
- 8005328: f003 0310 and.w r3, r3, #16
- 800532c: 2b10 cmp r3, #16
- 800532e: d122 bne.n 8005376 <HAL_TIM_IRQHandler+0x158>
- {
- if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
- 8005330: 687b ldr r3, [r7, #4]
- 8005332: 681b ldr r3, [r3, #0]
- 8005334: 68db ldr r3, [r3, #12]
- 8005336: f003 0310 and.w r3, r3, #16
- 800533a: 2b10 cmp r3, #16
- 800533c: d11b bne.n 8005376 <HAL_TIM_IRQHandler+0x158>
- {
- __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
- 800533e: 687b ldr r3, [r7, #4]
- 8005340: 681b ldr r3, [r3, #0]
- 8005342: f06f 0210 mvn.w r2, #16
- 8005346: 611a str r2, [r3, #16]
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
- 8005348: 687b ldr r3, [r7, #4]
- 800534a: 2208 movs r2, #8
- 800534c: 761a strb r2, [r3, #24]
- /* Input capture event */
- if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
- 800534e: 687b ldr r3, [r7, #4]
- 8005350: 681b ldr r3, [r3, #0]
- 8005352: 69db ldr r3, [r3, #28]
- 8005354: f403 7340 and.w r3, r3, #768 ; 0x300
- 8005358: 2b00 cmp r3, #0
- 800535a: d003 beq.n 8005364 <HAL_TIM_IRQHandler+0x146>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->IC_CaptureCallback(htim);
- #else
- HAL_TIM_IC_CaptureCallback(htim);
- 800535c: 6878 ldr r0, [r7, #4]
- 800535e: f000 fa08 bl 8005772 <HAL_TIM_IC_CaptureCallback>
- 8005362: e005 b.n 8005370 <HAL_TIM_IRQHandler+0x152>
- {
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->OC_DelayElapsedCallback(htim);
- htim->PWM_PulseFinishedCallback(htim);
- #else
- HAL_TIM_OC_DelayElapsedCallback(htim);
- 8005364: 6878 ldr r0, [r7, #4]
- 8005366: f000 f9fb bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
- HAL_TIM_PWM_PulseFinishedCallback(htim);
- 800536a: 6878 ldr r0, [r7, #4]
- 800536c: f000 fa0a bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 8005370: 687b ldr r3, [r7, #4]
- 8005372: 2200 movs r2, #0
- 8005374: 761a strb r2, [r3, #24]
- }
- }
- /* TIM Update event */
- if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
- 8005376: 687b ldr r3, [r7, #4]
- 8005378: 681b ldr r3, [r3, #0]
- 800537a: 691b ldr r3, [r3, #16]
- 800537c: f003 0301 and.w r3, r3, #1
- 8005380: 2b01 cmp r3, #1
- 8005382: d10e bne.n 80053a2 <HAL_TIM_IRQHandler+0x184>
- {
- if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
- 8005384: 687b ldr r3, [r7, #4]
- 8005386: 681b ldr r3, [r3, #0]
- 8005388: 68db ldr r3, [r3, #12]
- 800538a: f003 0301 and.w r3, r3, #1
- 800538e: 2b01 cmp r3, #1
- 8005390: d107 bne.n 80053a2 <HAL_TIM_IRQHandler+0x184>
- {
- __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
- 8005392: 687b ldr r3, [r7, #4]
- 8005394: 681b ldr r3, [r3, #0]
- 8005396: f06f 0201 mvn.w r2, #1
- 800539a: 611a str r2, [r3, #16]
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->PeriodElapsedCallback(htim);
- #else
- HAL_TIM_PeriodElapsedCallback(htim);
- 800539c: 6878 ldr r0, [r7, #4]
- 800539e: f7fb fe39 bl 8001014 <HAL_TIM_PeriodElapsedCallback>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- }
- /* TIM Trigger detection event */
- if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
- 80053a2: 687b ldr r3, [r7, #4]
- 80053a4: 681b ldr r3, [r3, #0]
- 80053a6: 691b ldr r3, [r3, #16]
- 80053a8: f003 0340 and.w r3, r3, #64 ; 0x40
- 80053ac: 2b40 cmp r3, #64 ; 0x40
- 80053ae: d10e bne.n 80053ce <HAL_TIM_IRQHandler+0x1b0>
- {
- if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
- 80053b0: 687b ldr r3, [r7, #4]
- 80053b2: 681b ldr r3, [r3, #0]
- 80053b4: 68db ldr r3, [r3, #12]
- 80053b6: f003 0340 and.w r3, r3, #64 ; 0x40
- 80053ba: 2b40 cmp r3, #64 ; 0x40
- 80053bc: d107 bne.n 80053ce <HAL_TIM_IRQHandler+0x1b0>
- {
- __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
- 80053be: 687b ldr r3, [r7, #4]
- 80053c0: 681b ldr r3, [r3, #0]
- 80053c2: f06f 0240 mvn.w r2, #64 ; 0x40
- 80053c6: 611a str r2, [r3, #16]
- #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
- htim->TriggerCallback(htim);
- #else
- HAL_TIM_TriggerCallback(htim);
- 80053c8: 6878 ldr r0, [r7, #4]
- 80053ca: f000 f9e4 bl 8005796 <HAL_TIM_TriggerCallback>
- #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
- }
- }
- }
- 80053ce: bf00 nop
- 80053d0: 3708 adds r7, #8
- 80053d2: 46bd mov sp, r7
- 80053d4: bd80 pop {r7, pc}
- ...
- 080053d8 <HAL_TIM_PWM_ConfigChannel>:
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
- TIM_OC_InitTypeDef *sConfig,
- uint32_t Channel)
- {
- 80053d8: b580 push {r7, lr}
- 80053da: b084 sub sp, #16
- 80053dc: af00 add r7, sp, #0
- 80053de: 60f8 str r0, [r7, #12]
- 80053e0: 60b9 str r1, [r7, #8]
- 80053e2: 607a str r2, [r7, #4]
- assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
- assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
- assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
- /* Process Locked */
- __HAL_LOCK(htim);
- 80053e4: 68fb ldr r3, [r7, #12]
- 80053e6: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
- 80053ea: 2b01 cmp r3, #1
- 80053ec: d101 bne.n 80053f2 <HAL_TIM_PWM_ConfigChannel+0x1a>
- 80053ee: 2302 movs r3, #2
- 80053f0: e0ac b.n 800554c <HAL_TIM_PWM_ConfigChannel+0x174>
- 80053f2: 68fb ldr r3, [r7, #12]
- 80053f4: 2201 movs r2, #1
- 80053f6: f883 2038 strb.w r2, [r3, #56] ; 0x38
- 80053fa: 687b ldr r3, [r7, #4]
- 80053fc: 2b0c cmp r3, #12
- 80053fe: f200 809f bhi.w 8005540 <HAL_TIM_PWM_ConfigChannel+0x168>
- 8005402: a201 add r2, pc, #4 ; (adr r2, 8005408 <HAL_TIM_PWM_ConfigChannel+0x30>)
- 8005404: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8005408: 0800543d .word 0x0800543d
- 800540c: 08005541 .word 0x08005541
- 8005410: 08005541 .word 0x08005541
- 8005414: 08005541 .word 0x08005541
- 8005418: 0800547d .word 0x0800547d
- 800541c: 08005541 .word 0x08005541
- 8005420: 08005541 .word 0x08005541
- 8005424: 08005541 .word 0x08005541
- 8005428: 080054bf .word 0x080054bf
- 800542c: 08005541 .word 0x08005541
- 8005430: 08005541 .word 0x08005541
- 8005434: 08005541 .word 0x08005541
- 8005438: 080054ff .word 0x080054ff
- {
- /* Check the parameters */
- assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
- /* Configure the Channel 1 in PWM mode */
- TIM_OC1_SetConfig(htim->Instance, sConfig);
- 800543c: 68fb ldr r3, [r7, #12]
- 800543e: 681b ldr r3, [r3, #0]
- 8005440: 68b9 ldr r1, [r7, #8]
- 8005442: 4618 mov r0, r3
- 8005444: f000 fa12 bl 800586c <TIM_OC1_SetConfig>
- /* Set the Preload enable bit for channel1 */
- htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
- 8005448: 68fb ldr r3, [r7, #12]
- 800544a: 681b ldr r3, [r3, #0]
- 800544c: 699a ldr r2, [r3, #24]
- 800544e: 68fb ldr r3, [r7, #12]
- 8005450: 681b ldr r3, [r3, #0]
- 8005452: f042 0208 orr.w r2, r2, #8
- 8005456: 619a str r2, [r3, #24]
- /* Configure the Output Fast mode */
- htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
- 8005458: 68fb ldr r3, [r7, #12]
- 800545a: 681b ldr r3, [r3, #0]
- 800545c: 699a ldr r2, [r3, #24]
- 800545e: 68fb ldr r3, [r7, #12]
- 8005460: 681b ldr r3, [r3, #0]
- 8005462: f022 0204 bic.w r2, r2, #4
- 8005466: 619a str r2, [r3, #24]
- htim->Instance->CCMR1 |= sConfig->OCFastMode;
- 8005468: 68fb ldr r3, [r7, #12]
- 800546a: 681b ldr r3, [r3, #0]
- 800546c: 6999 ldr r1, [r3, #24]
- 800546e: 68bb ldr r3, [r7, #8]
- 8005470: 68da ldr r2, [r3, #12]
- 8005472: 68fb ldr r3, [r7, #12]
- 8005474: 681b ldr r3, [r3, #0]
- 8005476: 430a orrs r2, r1
- 8005478: 619a str r2, [r3, #24]
- break;
- 800547a: e062 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
- {
- /* Check the parameters */
- assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
- /* Configure the Channel 2 in PWM mode */
- TIM_OC2_SetConfig(htim->Instance, sConfig);
- 800547c: 68fb ldr r3, [r7, #12]
- 800547e: 681b ldr r3, [r3, #0]
- 8005480: 68b9 ldr r1, [r7, #8]
- 8005482: 4618 mov r0, r3
- 8005484: f000 fa2e bl 80058e4 <TIM_OC2_SetConfig>
- /* Set the Preload enable bit for channel2 */
- htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
- 8005488: 68fb ldr r3, [r7, #12]
- 800548a: 681b ldr r3, [r3, #0]
- 800548c: 699a ldr r2, [r3, #24]
- 800548e: 68fb ldr r3, [r7, #12]
- 8005490: 681b ldr r3, [r3, #0]
- 8005492: f442 6200 orr.w r2, r2, #2048 ; 0x800
- 8005496: 619a str r2, [r3, #24]
- /* Configure the Output Fast mode */
- htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
- 8005498: 68fb ldr r3, [r7, #12]
- 800549a: 681b ldr r3, [r3, #0]
- 800549c: 699a ldr r2, [r3, #24]
- 800549e: 68fb ldr r3, [r7, #12]
- 80054a0: 681b ldr r3, [r3, #0]
- 80054a2: f422 6280 bic.w r2, r2, #1024 ; 0x400
- 80054a6: 619a str r2, [r3, #24]
- htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
- 80054a8: 68fb ldr r3, [r7, #12]
- 80054aa: 681b ldr r3, [r3, #0]
- 80054ac: 6999 ldr r1, [r3, #24]
- 80054ae: 68bb ldr r3, [r7, #8]
- 80054b0: 68db ldr r3, [r3, #12]
- 80054b2: 021a lsls r2, r3, #8
- 80054b4: 68fb ldr r3, [r7, #12]
- 80054b6: 681b ldr r3, [r3, #0]
- 80054b8: 430a orrs r2, r1
- 80054ba: 619a str r2, [r3, #24]
- break;
- 80054bc: e041 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
- {
- /* Check the parameters */
- assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
- /* Configure the Channel 3 in PWM mode */
- TIM_OC3_SetConfig(htim->Instance, sConfig);
- 80054be: 68fb ldr r3, [r7, #12]
- 80054c0: 681b ldr r3, [r3, #0]
- 80054c2: 68b9 ldr r1, [r7, #8]
- 80054c4: 4618 mov r0, r3
- 80054c6: f000 fa4b bl 8005960 <TIM_OC3_SetConfig>
- /* Set the Preload enable bit for channel3 */
- htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
- 80054ca: 68fb ldr r3, [r7, #12]
- 80054cc: 681b ldr r3, [r3, #0]
- 80054ce: 69da ldr r2, [r3, #28]
- 80054d0: 68fb ldr r3, [r7, #12]
- 80054d2: 681b ldr r3, [r3, #0]
- 80054d4: f042 0208 orr.w r2, r2, #8
- 80054d8: 61da str r2, [r3, #28]
- /* Configure the Output Fast mode */
- htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
- 80054da: 68fb ldr r3, [r7, #12]
- 80054dc: 681b ldr r3, [r3, #0]
- 80054de: 69da ldr r2, [r3, #28]
- 80054e0: 68fb ldr r3, [r7, #12]
- 80054e2: 681b ldr r3, [r3, #0]
- 80054e4: f022 0204 bic.w r2, r2, #4
- 80054e8: 61da str r2, [r3, #28]
- htim->Instance->CCMR2 |= sConfig->OCFastMode;
- 80054ea: 68fb ldr r3, [r7, #12]
- 80054ec: 681b ldr r3, [r3, #0]
- 80054ee: 69d9 ldr r1, [r3, #28]
- 80054f0: 68bb ldr r3, [r7, #8]
- 80054f2: 68da ldr r2, [r3, #12]
- 80054f4: 68fb ldr r3, [r7, #12]
- 80054f6: 681b ldr r3, [r3, #0]
- 80054f8: 430a orrs r2, r1
- 80054fa: 61da str r2, [r3, #28]
- break;
- 80054fc: e021 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
- {
- /* Check the parameters */
- assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
- /* Configure the Channel 4 in PWM mode */
- TIM_OC4_SetConfig(htim->Instance, sConfig);
- 80054fe: 68fb ldr r3, [r7, #12]
- 8005500: 681b ldr r3, [r3, #0]
- 8005502: 68b9 ldr r1, [r7, #8]
- 8005504: 4618 mov r0, r3
- 8005506: f000 fa68 bl 80059da <TIM_OC4_SetConfig>
- /* Set the Preload enable bit for channel4 */
- htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
- 800550a: 68fb ldr r3, [r7, #12]
- 800550c: 681b ldr r3, [r3, #0]
- 800550e: 69da ldr r2, [r3, #28]
- 8005510: 68fb ldr r3, [r7, #12]
- 8005512: 681b ldr r3, [r3, #0]
- 8005514: f442 6200 orr.w r2, r2, #2048 ; 0x800
- 8005518: 61da str r2, [r3, #28]
- /* Configure the Output Fast mode */
- htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
- 800551a: 68fb ldr r3, [r7, #12]
- 800551c: 681b ldr r3, [r3, #0]
- 800551e: 69da ldr r2, [r3, #28]
- 8005520: 68fb ldr r3, [r7, #12]
- 8005522: 681b ldr r3, [r3, #0]
- 8005524: f422 6280 bic.w r2, r2, #1024 ; 0x400
- 8005528: 61da str r2, [r3, #28]
- htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
- 800552a: 68fb ldr r3, [r7, #12]
- 800552c: 681b ldr r3, [r3, #0]
- 800552e: 69d9 ldr r1, [r3, #28]
- 8005530: 68bb ldr r3, [r7, #8]
- 8005532: 68db ldr r3, [r3, #12]
- 8005534: 021a lsls r2, r3, #8
- 8005536: 68fb ldr r3, [r7, #12]
- 8005538: 681b ldr r3, [r3, #0]
- 800553a: 430a orrs r2, r1
- 800553c: 61da str r2, [r3, #28]
- break;
- 800553e: e000 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
- }
- default:
- break;
- 8005540: bf00 nop
- }
- __HAL_UNLOCK(htim);
- 8005542: 68fb ldr r3, [r7, #12]
- 8005544: 2200 movs r2, #0
- 8005546: f883 2038 strb.w r2, [r3, #56] ; 0x38
- return HAL_OK;
- 800554a: 2300 movs r3, #0
- }
- 800554c: 4618 mov r0, r3
- 800554e: 3710 adds r7, #16
- 8005550: 46bd mov sp, r7
- 8005552: bd80 pop {r7, pc}
- 08005554 <HAL_TIM_ConfigClockSource>:
- * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
- * contains the clock source information for the TIM peripheral.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig)
- {
- 8005554: b580 push {r7, lr}
- 8005556: b084 sub sp, #16
- 8005558: af00 add r7, sp, #0
- 800555a: 6078 str r0, [r7, #4]
- 800555c: 6039 str r1, [r7, #0]
- uint32_t tmpsmcr;
- /* Process Locked */
- __HAL_LOCK(htim);
- 800555e: 687b ldr r3, [r7, #4]
- 8005560: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
- 8005564: 2b01 cmp r3, #1
- 8005566: d101 bne.n 800556c <HAL_TIM_ConfigClockSource+0x18>
- 8005568: 2302 movs r3, #2
- 800556a: e0b3 b.n 80056d4 <HAL_TIM_ConfigClockSource+0x180>
- 800556c: 687b ldr r3, [r7, #4]
- 800556e: 2201 movs r2, #1
- 8005570: f883 2038 strb.w r2, [r3, #56] ; 0x38
- htim->State = HAL_TIM_STATE_BUSY;
- 8005574: 687b ldr r3, [r7, #4]
- 8005576: 2202 movs r2, #2
- 8005578: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Check the parameters */
- assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
- /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
- tmpsmcr = htim->Instance->SMCR;
- 800557c: 687b ldr r3, [r7, #4]
- 800557e: 681b ldr r3, [r3, #0]
- 8005580: 689b ldr r3, [r3, #8]
- 8005582: 60fb str r3, [r7, #12]
- tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
- 8005584: 68fb ldr r3, [r7, #12]
- 8005586: f023 0377 bic.w r3, r3, #119 ; 0x77
- 800558a: 60fb str r3, [r7, #12]
- tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
- 800558c: 68fb ldr r3, [r7, #12]
- 800558e: f423 437f bic.w r3, r3, #65280 ; 0xff00
- 8005592: 60fb str r3, [r7, #12]
- htim->Instance->SMCR = tmpsmcr;
- 8005594: 687b ldr r3, [r7, #4]
- 8005596: 681b ldr r3, [r3, #0]
- 8005598: 68fa ldr r2, [r7, #12]
- 800559a: 609a str r2, [r3, #8]
- switch (sClockSourceConfig->ClockSource)
- 800559c: 683b ldr r3, [r7, #0]
- 800559e: 681b ldr r3, [r3, #0]
- 80055a0: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
- 80055a4: d03e beq.n 8005624 <HAL_TIM_ConfigClockSource+0xd0>
- 80055a6: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
- 80055aa: f200 8087 bhi.w 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055ae: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
- 80055b2: f000 8085 beq.w 80056c0 <HAL_TIM_ConfigClockSource+0x16c>
- 80055b6: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
- 80055ba: d87f bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055bc: 2b70 cmp r3, #112 ; 0x70
- 80055be: d01a beq.n 80055f6 <HAL_TIM_ConfigClockSource+0xa2>
- 80055c0: 2b70 cmp r3, #112 ; 0x70
- 80055c2: d87b bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055c4: 2b60 cmp r3, #96 ; 0x60
- 80055c6: d050 beq.n 800566a <HAL_TIM_ConfigClockSource+0x116>
- 80055c8: 2b60 cmp r3, #96 ; 0x60
- 80055ca: d877 bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055cc: 2b50 cmp r3, #80 ; 0x50
- 80055ce: d03c beq.n 800564a <HAL_TIM_ConfigClockSource+0xf6>
- 80055d0: 2b50 cmp r3, #80 ; 0x50
- 80055d2: d873 bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055d4: 2b40 cmp r3, #64 ; 0x40
- 80055d6: d058 beq.n 800568a <HAL_TIM_ConfigClockSource+0x136>
- 80055d8: 2b40 cmp r3, #64 ; 0x40
- 80055da: d86f bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055dc: 2b30 cmp r3, #48 ; 0x30
- 80055de: d064 beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
- 80055e0: 2b30 cmp r3, #48 ; 0x30
- 80055e2: d86b bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055e4: 2b20 cmp r3, #32
- 80055e6: d060 beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
- 80055e8: 2b20 cmp r3, #32
- 80055ea: d867 bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- 80055ec: 2b00 cmp r3, #0
- 80055ee: d05c beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
- 80055f0: 2b10 cmp r3, #16
- 80055f2: d05a beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
- TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
- break;
- }
- default:
- break;
- 80055f4: e062 b.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
- TIM_ETR_SetConfig(htim->Instance,
- 80055f6: 687b ldr r3, [r7, #4]
- 80055f8: 6818 ldr r0, [r3, #0]
- 80055fa: 683b ldr r3, [r7, #0]
- 80055fc: 6899 ldr r1, [r3, #8]
- 80055fe: 683b ldr r3, [r7, #0]
- 8005600: 685a ldr r2, [r3, #4]
- 8005602: 683b ldr r3, [r7, #0]
- 8005604: 68db ldr r3, [r3, #12]
- 8005606: f000 fb2b bl 8005c60 <TIM_ETR_SetConfig>
- tmpsmcr = htim->Instance->SMCR;
- 800560a: 687b ldr r3, [r7, #4]
- 800560c: 681b ldr r3, [r3, #0]
- 800560e: 689b ldr r3, [r3, #8]
- 8005610: 60fb str r3, [r7, #12]
- tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
- 8005612: 68fb ldr r3, [r7, #12]
- 8005614: f043 0377 orr.w r3, r3, #119 ; 0x77
- 8005618: 60fb str r3, [r7, #12]
- htim->Instance->SMCR = tmpsmcr;
- 800561a: 687b ldr r3, [r7, #4]
- 800561c: 681b ldr r3, [r3, #0]
- 800561e: 68fa ldr r2, [r7, #12]
- 8005620: 609a str r2, [r3, #8]
- break;
- 8005622: e04e b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- TIM_ETR_SetConfig(htim->Instance,
- 8005624: 687b ldr r3, [r7, #4]
- 8005626: 6818 ldr r0, [r3, #0]
- 8005628: 683b ldr r3, [r7, #0]
- 800562a: 6899 ldr r1, [r3, #8]
- 800562c: 683b ldr r3, [r7, #0]
- 800562e: 685a ldr r2, [r3, #4]
- 8005630: 683b ldr r3, [r7, #0]
- 8005632: 68db ldr r3, [r3, #12]
- 8005634: f000 fb14 bl 8005c60 <TIM_ETR_SetConfig>
- htim->Instance->SMCR |= TIM_SMCR_ECE;
- 8005638: 687b ldr r3, [r7, #4]
- 800563a: 681b ldr r3, [r3, #0]
- 800563c: 689a ldr r2, [r3, #8]
- 800563e: 687b ldr r3, [r7, #4]
- 8005640: 681b ldr r3, [r3, #0]
- 8005642: f442 4280 orr.w r2, r2, #16384 ; 0x4000
- 8005646: 609a str r2, [r3, #8]
- break;
- 8005648: e03b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- TIM_TI1_ConfigInputStage(htim->Instance,
- 800564a: 687b ldr r3, [r7, #4]
- 800564c: 6818 ldr r0, [r3, #0]
- 800564e: 683b ldr r3, [r7, #0]
- 8005650: 6859 ldr r1, [r3, #4]
- 8005652: 683b ldr r3, [r7, #0]
- 8005654: 68db ldr r3, [r3, #12]
- 8005656: 461a mov r2, r3
- 8005658: f000 fa8b bl 8005b72 <TIM_TI1_ConfigInputStage>
- TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
- 800565c: 687b ldr r3, [r7, #4]
- 800565e: 681b ldr r3, [r3, #0]
- 8005660: 2150 movs r1, #80 ; 0x50
- 8005662: 4618 mov r0, r3
- 8005664: f000 fae2 bl 8005c2c <TIM_ITRx_SetConfig>
- break;
- 8005668: e02b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- TIM_TI2_ConfigInputStage(htim->Instance,
- 800566a: 687b ldr r3, [r7, #4]
- 800566c: 6818 ldr r0, [r3, #0]
- 800566e: 683b ldr r3, [r7, #0]
- 8005670: 6859 ldr r1, [r3, #4]
- 8005672: 683b ldr r3, [r7, #0]
- 8005674: 68db ldr r3, [r3, #12]
- 8005676: 461a mov r2, r3
- 8005678: f000 faa9 bl 8005bce <TIM_TI2_ConfigInputStage>
- TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
- 800567c: 687b ldr r3, [r7, #4]
- 800567e: 681b ldr r3, [r3, #0]
- 8005680: 2160 movs r1, #96 ; 0x60
- 8005682: 4618 mov r0, r3
- 8005684: f000 fad2 bl 8005c2c <TIM_ITRx_SetConfig>
- break;
- 8005688: e01b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- TIM_TI1_ConfigInputStage(htim->Instance,
- 800568a: 687b ldr r3, [r7, #4]
- 800568c: 6818 ldr r0, [r3, #0]
- 800568e: 683b ldr r3, [r7, #0]
- 8005690: 6859 ldr r1, [r3, #4]
- 8005692: 683b ldr r3, [r7, #0]
- 8005694: 68db ldr r3, [r3, #12]
- 8005696: 461a mov r2, r3
- 8005698: f000 fa6b bl 8005b72 <TIM_TI1_ConfigInputStage>
- TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
- 800569c: 687b ldr r3, [r7, #4]
- 800569e: 681b ldr r3, [r3, #0]
- 80056a0: 2140 movs r1, #64 ; 0x40
- 80056a2: 4618 mov r0, r3
- 80056a4: f000 fac2 bl 8005c2c <TIM_ITRx_SetConfig>
- break;
- 80056a8: e00b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
- 80056aa: 687b ldr r3, [r7, #4]
- 80056ac: 681a ldr r2, [r3, #0]
- 80056ae: 683b ldr r3, [r7, #0]
- 80056b0: 681b ldr r3, [r3, #0]
- 80056b2: 4619 mov r1, r3
- 80056b4: 4610 mov r0, r2
- 80056b6: f000 fab9 bl 8005c2c <TIM_ITRx_SetConfig>
- break;
- 80056ba: e002 b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- break;
- 80056bc: bf00 nop
- 80056be: e000 b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
- break;
- 80056c0: bf00 nop
- }
- htim->State = HAL_TIM_STATE_READY;
- 80056c2: 687b ldr r3, [r7, #4]
- 80056c4: 2201 movs r2, #1
- 80056c6: f883 2039 strb.w r2, [r3, #57] ; 0x39
- __HAL_UNLOCK(htim);
- 80056ca: 687b ldr r3, [r7, #4]
- 80056cc: 2200 movs r2, #0
- 80056ce: f883 2038 strb.w r2, [r3, #56] ; 0x38
- return HAL_OK;
- 80056d2: 2300 movs r3, #0
- }
- 80056d4: 4618 mov r0, r3
- 80056d6: 3710 adds r7, #16
- 80056d8: 46bd mov sp, r7
- 80056da: bd80 pop {r7, pc}
- 080056dc <HAL_TIM_SlaveConfigSynchro>:
- * timer input or external trigger input) and the Slave mode
- * (Disable, Reset, Gated, Trigger, External clock mode 1).
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig)
- {
- 80056dc: b580 push {r7, lr}
- 80056de: b082 sub sp, #8
- 80056e0: af00 add r7, sp, #0
- 80056e2: 6078 str r0, [r7, #4]
- 80056e4: 6039 str r1, [r7, #0]
- /* Check the parameters */
- assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance));
- assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode));
- assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger));
- __HAL_LOCK(htim);
- 80056e6: 687b ldr r3, [r7, #4]
- 80056e8: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
- 80056ec: 2b01 cmp r3, #1
- 80056ee: d101 bne.n 80056f4 <HAL_TIM_SlaveConfigSynchro+0x18>
- 80056f0: 2302 movs r3, #2
- 80056f2: e031 b.n 8005758 <HAL_TIM_SlaveConfigSynchro+0x7c>
- 80056f4: 687b ldr r3, [r7, #4]
- 80056f6: 2201 movs r2, #1
- 80056f8: f883 2038 strb.w r2, [r3, #56] ; 0x38
- htim->State = HAL_TIM_STATE_BUSY;
- 80056fc: 687b ldr r3, [r7, #4]
- 80056fe: 2202 movs r2, #2
- 8005700: f883 2039 strb.w r2, [r3, #57] ; 0x39
- if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK)
- 8005704: 6839 ldr r1, [r7, #0]
- 8005706: 6878 ldr r0, [r7, #4]
- 8005708: f000 f9a5 bl 8005a56 <TIM_SlaveTimer_SetConfig>
- 800570c: 4603 mov r3, r0
- 800570e: 2b00 cmp r3, #0
- 8005710: d009 beq.n 8005726 <HAL_TIM_SlaveConfigSynchro+0x4a>
- {
- htim->State = HAL_TIM_STATE_READY;
- 8005712: 687b ldr r3, [r7, #4]
- 8005714: 2201 movs r2, #1
- 8005716: f883 2039 strb.w r2, [r3, #57] ; 0x39
- __HAL_UNLOCK(htim);
- 800571a: 687b ldr r3, [r7, #4]
- 800571c: 2200 movs r2, #0
- 800571e: f883 2038 strb.w r2, [r3, #56] ; 0x38
- return HAL_ERROR;
- 8005722: 2301 movs r3, #1
- 8005724: e018 b.n 8005758 <HAL_TIM_SlaveConfigSynchro+0x7c>
- }
- /* Disable Trigger Interrupt */
- __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER);
- 8005726: 687b ldr r3, [r7, #4]
- 8005728: 681b ldr r3, [r3, #0]
- 800572a: 68da ldr r2, [r3, #12]
- 800572c: 687b ldr r3, [r7, #4]
- 800572e: 681b ldr r3, [r3, #0]
- 8005730: f022 0240 bic.w r2, r2, #64 ; 0x40
- 8005734: 60da str r2, [r3, #12]
- /* Disable Trigger DMA request */
- __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER);
- 8005736: 687b ldr r3, [r7, #4]
- 8005738: 681b ldr r3, [r3, #0]
- 800573a: 68da ldr r2, [r3, #12]
- 800573c: 687b ldr r3, [r7, #4]
- 800573e: 681b ldr r3, [r3, #0]
- 8005740: f422 4280 bic.w r2, r2, #16384 ; 0x4000
- 8005744: 60da str r2, [r3, #12]
- htim->State = HAL_TIM_STATE_READY;
- 8005746: 687b ldr r3, [r7, #4]
- 8005748: 2201 movs r2, #1
- 800574a: f883 2039 strb.w r2, [r3, #57] ; 0x39
- __HAL_UNLOCK(htim);
- 800574e: 687b ldr r3, [r7, #4]
- 8005750: 2200 movs r2, #0
- 8005752: f883 2038 strb.w r2, [r3, #56] ; 0x38
- return HAL_OK;
- 8005756: 2300 movs r3, #0
- }
- 8005758: 4618 mov r0, r3
- 800575a: 3708 adds r7, #8
- 800575c: 46bd mov sp, r7
- 800575e: bd80 pop {r7, pc}
- 08005760 <HAL_TIM_OC_DelayElapsedCallback>:
- * @brief Output Compare callback in non-blocking mode
- * @param htim TIM OC handle
- * @retval None
- */
- __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
- {
- 8005760: b480 push {r7}
- 8005762: b083 sub sp, #12
- 8005764: af00 add r7, sp, #0
- 8005766: 6078 str r0, [r7, #4]
- UNUSED(htim);
- /* NOTE : This function should not be modified, when the callback is needed,
- the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
- */
- }
- 8005768: bf00 nop
- 800576a: 370c adds r7, #12
- 800576c: 46bd mov sp, r7
- 800576e: bc80 pop {r7}
- 8005770: 4770 bx lr
- 08005772 <HAL_TIM_IC_CaptureCallback>:
- * @brief Input Capture callback in non-blocking mode
- * @param htim TIM IC handle
- * @retval None
- */
- __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
- {
- 8005772: b480 push {r7}
- 8005774: b083 sub sp, #12
- 8005776: af00 add r7, sp, #0
- 8005778: 6078 str r0, [r7, #4]
- UNUSED(htim);
- /* NOTE : This function should not be modified, when the callback is needed,
- the HAL_TIM_IC_CaptureCallback could be implemented in the user file
- */
- }
- 800577a: bf00 nop
- 800577c: 370c adds r7, #12
- 800577e: 46bd mov sp, r7
- 8005780: bc80 pop {r7}
- 8005782: 4770 bx lr
- 08005784 <HAL_TIM_PWM_PulseFinishedCallback>:
- * @brief PWM Pulse finished callback in non-blocking mode
- * @param htim TIM handle
- * @retval None
- */
- __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
- {
- 8005784: b480 push {r7}
- 8005786: b083 sub sp, #12
- 8005788: af00 add r7, sp, #0
- 800578a: 6078 str r0, [r7, #4]
- UNUSED(htim);
- /* NOTE : This function should not be modified, when the callback is needed,
- the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
- */
- }
- 800578c: bf00 nop
- 800578e: 370c adds r7, #12
- 8005790: 46bd mov sp, r7
- 8005792: bc80 pop {r7}
- 8005794: 4770 bx lr
- 08005796 <HAL_TIM_TriggerCallback>:
- * @brief Hall Trigger detection callback in non-blocking mode
- * @param htim TIM handle
- * @retval None
- */
- __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
- {
- 8005796: b480 push {r7}
- 8005798: b083 sub sp, #12
- 800579a: af00 add r7, sp, #0
- 800579c: 6078 str r0, [r7, #4]
- UNUSED(htim);
- /* NOTE : This function should not be modified, when the callback is needed,
- the HAL_TIM_TriggerCallback could be implemented in the user file
- */
- }
- 800579e: bf00 nop
- 80057a0: 370c adds r7, #12
- 80057a2: 46bd mov sp, r7
- 80057a4: bc80 pop {r7}
- 80057a6: 4770 bx lr
- 080057a8 <TIM_Base_SetConfig>:
- * @param TIMx TIM peripheral
- * @param Structure TIM Base configuration structure
- * @retval None
- */
- static void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
- {
- 80057a8: b480 push {r7}
- 80057aa: b085 sub sp, #20
- 80057ac: af00 add r7, sp, #0
- 80057ae: 6078 str r0, [r7, #4]
- 80057b0: 6039 str r1, [r7, #0]
- uint32_t tmpcr1;
- tmpcr1 = TIMx->CR1;
- 80057b2: 687b ldr r3, [r7, #4]
- 80057b4: 681b ldr r3, [r3, #0]
- 80057b6: 60fb str r3, [r7, #12]
- /* Set TIM Time Base Unit parameters ---------------------------------------*/
- if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
- 80057b8: 687b ldr r3, [r7, #4]
- 80057ba: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 80057be: d007 beq.n 80057d0 <TIM_Base_SetConfig+0x28>
- 80057c0: 687b ldr r3, [r7, #4]
- 80057c2: 4a25 ldr r2, [pc, #148] ; (8005858 <TIM_Base_SetConfig+0xb0>)
- 80057c4: 4293 cmp r3, r2
- 80057c6: d003 beq.n 80057d0 <TIM_Base_SetConfig+0x28>
- 80057c8: 687b ldr r3, [r7, #4]
- 80057ca: 4a24 ldr r2, [pc, #144] ; (800585c <TIM_Base_SetConfig+0xb4>)
- 80057cc: 4293 cmp r3, r2
- 80057ce: d108 bne.n 80057e2 <TIM_Base_SetConfig+0x3a>
- {
- /* Select the Counter Mode */
- tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
- 80057d0: 68fb ldr r3, [r7, #12]
- 80057d2: f023 0370 bic.w r3, r3, #112 ; 0x70
- 80057d6: 60fb str r3, [r7, #12]
- tmpcr1 |= Structure->CounterMode;
- 80057d8: 683b ldr r3, [r7, #0]
- 80057da: 685b ldr r3, [r3, #4]
- 80057dc: 68fa ldr r2, [r7, #12]
- 80057de: 4313 orrs r3, r2
- 80057e0: 60fb str r3, [r7, #12]
- }
- if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
- 80057e2: 687b ldr r3, [r7, #4]
- 80057e4: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 80057e8: d013 beq.n 8005812 <TIM_Base_SetConfig+0x6a>
- 80057ea: 687b ldr r3, [r7, #4]
- 80057ec: 4a1a ldr r2, [pc, #104] ; (8005858 <TIM_Base_SetConfig+0xb0>)
- 80057ee: 4293 cmp r3, r2
- 80057f0: d00f beq.n 8005812 <TIM_Base_SetConfig+0x6a>
- 80057f2: 687b ldr r3, [r7, #4]
- 80057f4: 4a19 ldr r2, [pc, #100] ; (800585c <TIM_Base_SetConfig+0xb4>)
- 80057f6: 4293 cmp r3, r2
- 80057f8: d00b beq.n 8005812 <TIM_Base_SetConfig+0x6a>
- 80057fa: 687b ldr r3, [r7, #4]
- 80057fc: 4a18 ldr r2, [pc, #96] ; (8005860 <TIM_Base_SetConfig+0xb8>)
- 80057fe: 4293 cmp r3, r2
- 8005800: d007 beq.n 8005812 <TIM_Base_SetConfig+0x6a>
- 8005802: 687b ldr r3, [r7, #4]
- 8005804: 4a17 ldr r2, [pc, #92] ; (8005864 <TIM_Base_SetConfig+0xbc>)
- 8005806: 4293 cmp r3, r2
- 8005808: d003 beq.n 8005812 <TIM_Base_SetConfig+0x6a>
- 800580a: 687b ldr r3, [r7, #4]
- 800580c: 4a16 ldr r2, [pc, #88] ; (8005868 <TIM_Base_SetConfig+0xc0>)
- 800580e: 4293 cmp r3, r2
- 8005810: d108 bne.n 8005824 <TIM_Base_SetConfig+0x7c>
- {
- /* Set the clock division */
- tmpcr1 &= ~TIM_CR1_CKD;
- 8005812: 68fb ldr r3, [r7, #12]
- 8005814: f423 7340 bic.w r3, r3, #768 ; 0x300
- 8005818: 60fb str r3, [r7, #12]
- tmpcr1 |= (uint32_t)Structure->ClockDivision;
- 800581a: 683b ldr r3, [r7, #0]
- 800581c: 68db ldr r3, [r3, #12]
- 800581e: 68fa ldr r2, [r7, #12]
- 8005820: 4313 orrs r3, r2
- 8005822: 60fb str r3, [r7, #12]
- }
- /* Set the auto-reload preload */
- MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
- 8005824: 68fb ldr r3, [r7, #12]
- 8005826: f023 0280 bic.w r2, r3, #128 ; 0x80
- 800582a: 683b ldr r3, [r7, #0]
- 800582c: 691b ldr r3, [r3, #16]
- 800582e: 4313 orrs r3, r2
- 8005830: 60fb str r3, [r7, #12]
- TIMx->CR1 = tmpcr1;
- 8005832: 687b ldr r3, [r7, #4]
- 8005834: 68fa ldr r2, [r7, #12]
- 8005836: 601a str r2, [r3, #0]
- /* Set the Autoreload value */
- TIMx->ARR = (uint32_t)Structure->Period ;
- 8005838: 683b ldr r3, [r7, #0]
- 800583a: 689a ldr r2, [r3, #8]
- 800583c: 687b ldr r3, [r7, #4]
- 800583e: 62da str r2, [r3, #44] ; 0x2c
- /* Set the Prescaler value */
- TIMx->PSC = Structure->Prescaler;
- 8005840: 683b ldr r3, [r7, #0]
- 8005842: 681a ldr r2, [r3, #0]
- 8005844: 687b ldr r3, [r7, #4]
- 8005846: 629a str r2, [r3, #40] ; 0x28
- /* Generate an update event to reload the Prescaler
- and the repetition counter (only for advanced timer) value immediately */
- TIMx->EGR = TIM_EGR_UG;
- 8005848: 687b ldr r3, [r7, #4]
- 800584a: 2201 movs r2, #1
- 800584c: 615a str r2, [r3, #20]
- }
- 800584e: bf00 nop
- 8005850: 3714 adds r7, #20
- 8005852: 46bd mov sp, r7
- 8005854: bc80 pop {r7}
- 8005856: 4770 bx lr
- 8005858: 40000400 .word 0x40000400
- 800585c: 40000800 .word 0x40000800
- 8005860: 40010800 .word 0x40010800
- 8005864: 40010c00 .word 0x40010c00
- 8005868: 40011000 .word 0x40011000
- 0800586c <TIM_OC1_SetConfig>:
- * @param TIMx to select the TIM peripheral
- * @param OC_Config The output configuration structure
- * @retval None
- */
- static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
- {
- 800586c: b480 push {r7}
- 800586e: b087 sub sp, #28
- 8005870: af00 add r7, sp, #0
- 8005872: 6078 str r0, [r7, #4]
- 8005874: 6039 str r1, [r7, #0]
- uint32_t tmpccmrx;
- uint32_t tmpccer;
- uint32_t tmpcr2;
- /* Disable the Channel 1: Reset the CC1E Bit */
- TIMx->CCER &= ~TIM_CCER_CC1E;
- 8005876: 687b ldr r3, [r7, #4]
- 8005878: 6a1b ldr r3, [r3, #32]
- 800587a: f023 0201 bic.w r2, r3, #1
- 800587e: 687b ldr r3, [r7, #4]
- 8005880: 621a str r2, [r3, #32]
- /* Get the TIMx CCER register value */
- tmpccer = TIMx->CCER;
- 8005882: 687b ldr r3, [r7, #4]
- 8005884: 6a1b ldr r3, [r3, #32]
- 8005886: 617b str r3, [r7, #20]
- /* Get the TIMx CR2 register value */
- tmpcr2 = TIMx->CR2;
- 8005888: 687b ldr r3, [r7, #4]
- 800588a: 685b ldr r3, [r3, #4]
- 800588c: 613b str r3, [r7, #16]
- /* Get the TIMx CCMR1 register value */
- tmpccmrx = TIMx->CCMR1;
- 800588e: 687b ldr r3, [r7, #4]
- 8005890: 699b ldr r3, [r3, #24]
- 8005892: 60fb str r3, [r7, #12]
- /* Reset the Output Compare Mode Bits */
- tmpccmrx &= ~TIM_CCMR1_OC1M;
- 8005894: 68fb ldr r3, [r7, #12]
- 8005896: f023 0370 bic.w r3, r3, #112 ; 0x70
- 800589a: 60fb str r3, [r7, #12]
- tmpccmrx &= ~TIM_CCMR1_CC1S;
- 800589c: 68fb ldr r3, [r7, #12]
- 800589e: f023 0303 bic.w r3, r3, #3
- 80058a2: 60fb str r3, [r7, #12]
- /* Select the Output Compare Mode */
- tmpccmrx |= OC_Config->OCMode;
- 80058a4: 683b ldr r3, [r7, #0]
- 80058a6: 681b ldr r3, [r3, #0]
- 80058a8: 68fa ldr r2, [r7, #12]
- 80058aa: 4313 orrs r3, r2
- 80058ac: 60fb str r3, [r7, #12]
- /* Reset the Output Polarity level */
- tmpccer &= ~TIM_CCER_CC1P;
- 80058ae: 697b ldr r3, [r7, #20]
- 80058b0: f023 0302 bic.w r3, r3, #2
- 80058b4: 617b str r3, [r7, #20]
- /* Set the Output Compare Polarity */
- tmpccer |= OC_Config->OCPolarity;
- 80058b6: 683b ldr r3, [r7, #0]
- 80058b8: 689b ldr r3, [r3, #8]
- 80058ba: 697a ldr r2, [r7, #20]
- 80058bc: 4313 orrs r3, r2
- 80058be: 617b str r3, [r7, #20]
- /* Write to TIMx CR2 */
- TIMx->CR2 = tmpcr2;
- 80058c0: 687b ldr r3, [r7, #4]
- 80058c2: 693a ldr r2, [r7, #16]
- 80058c4: 605a str r2, [r3, #4]
- /* Write to TIMx CCMR1 */
- TIMx->CCMR1 = tmpccmrx;
- 80058c6: 687b ldr r3, [r7, #4]
- 80058c8: 68fa ldr r2, [r7, #12]
- 80058ca: 619a str r2, [r3, #24]
- /* Set the Capture Compare Register value */
- TIMx->CCR1 = OC_Config->Pulse;
- 80058cc: 683b ldr r3, [r7, #0]
- 80058ce: 685a ldr r2, [r3, #4]
- 80058d0: 687b ldr r3, [r7, #4]
- 80058d2: 635a str r2, [r3, #52] ; 0x34
- /* Write to TIMx CCER */
- TIMx->CCER = tmpccer;
- 80058d4: 687b ldr r3, [r7, #4]
- 80058d6: 697a ldr r2, [r7, #20]
- 80058d8: 621a str r2, [r3, #32]
- }
- 80058da: bf00 nop
- 80058dc: 371c adds r7, #28
- 80058de: 46bd mov sp, r7
- 80058e0: bc80 pop {r7}
- 80058e2: 4770 bx lr
- 080058e4 <TIM_OC2_SetConfig>:
- * @param TIMx to select the TIM peripheral
- * @param OC_Config The output configuration structure
- * @retval None
- */
- static void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
- {
- 80058e4: b480 push {r7}
- 80058e6: b087 sub sp, #28
- 80058e8: af00 add r7, sp, #0
- 80058ea: 6078 str r0, [r7, #4]
- 80058ec: 6039 str r1, [r7, #0]
- uint32_t tmpccmrx;
- uint32_t tmpccer;
- uint32_t tmpcr2;
- /* Disable the Channel 2: Reset the CC2E Bit */
- TIMx->CCER &= ~TIM_CCER_CC2E;
- 80058ee: 687b ldr r3, [r7, #4]
- 80058f0: 6a1b ldr r3, [r3, #32]
- 80058f2: f023 0210 bic.w r2, r3, #16
- 80058f6: 687b ldr r3, [r7, #4]
- 80058f8: 621a str r2, [r3, #32]
- /* Get the TIMx CCER register value */
- tmpccer = TIMx->CCER;
- 80058fa: 687b ldr r3, [r7, #4]
- 80058fc: 6a1b ldr r3, [r3, #32]
- 80058fe: 617b str r3, [r7, #20]
- /* Get the TIMx CR2 register value */
- tmpcr2 = TIMx->CR2;
- 8005900: 687b ldr r3, [r7, #4]
- 8005902: 685b ldr r3, [r3, #4]
- 8005904: 613b str r3, [r7, #16]
- /* Get the TIMx CCMR1 register value */
- tmpccmrx = TIMx->CCMR1;
- 8005906: 687b ldr r3, [r7, #4]
- 8005908: 699b ldr r3, [r3, #24]
- 800590a: 60fb str r3, [r7, #12]
- /* Reset the Output Compare mode and Capture/Compare selection Bits */
- tmpccmrx &= ~TIM_CCMR1_OC2M;
- 800590c: 68fb ldr r3, [r7, #12]
- 800590e: f423 43e0 bic.w r3, r3, #28672 ; 0x7000
- 8005912: 60fb str r3, [r7, #12]
- tmpccmrx &= ~TIM_CCMR1_CC2S;
- 8005914: 68fb ldr r3, [r7, #12]
- 8005916: f423 7340 bic.w r3, r3, #768 ; 0x300
- 800591a: 60fb str r3, [r7, #12]
- /* Select the Output Compare Mode */
- tmpccmrx |= (OC_Config->OCMode << 8U);
- 800591c: 683b ldr r3, [r7, #0]
- 800591e: 681b ldr r3, [r3, #0]
- 8005920: 021b lsls r3, r3, #8
- 8005922: 68fa ldr r2, [r7, #12]
- 8005924: 4313 orrs r3, r2
- 8005926: 60fb str r3, [r7, #12]
- /* Reset the Output Polarity level */
- tmpccer &= ~TIM_CCER_CC2P;
- 8005928: 697b ldr r3, [r7, #20]
- 800592a: f023 0320 bic.w r3, r3, #32
- 800592e: 617b str r3, [r7, #20]
- /* Set the Output Compare Polarity */
- tmpccer |= (OC_Config->OCPolarity << 4U);
- 8005930: 683b ldr r3, [r7, #0]
- 8005932: 689b ldr r3, [r3, #8]
- 8005934: 011b lsls r3, r3, #4
- 8005936: 697a ldr r2, [r7, #20]
- 8005938: 4313 orrs r3, r2
- 800593a: 617b str r3, [r7, #20]
- /* Write to TIMx CR2 */
- TIMx->CR2 = tmpcr2;
- 800593c: 687b ldr r3, [r7, #4]
- 800593e: 693a ldr r2, [r7, #16]
- 8005940: 605a str r2, [r3, #4]
- /* Write to TIMx CCMR1 */
- TIMx->CCMR1 = tmpccmrx;
- 8005942: 687b ldr r3, [r7, #4]
- 8005944: 68fa ldr r2, [r7, #12]
- 8005946: 619a str r2, [r3, #24]
- /* Set the Capture Compare Register value */
- TIMx->CCR2 = OC_Config->Pulse;
- 8005948: 683b ldr r3, [r7, #0]
- 800594a: 685a ldr r2, [r3, #4]
- 800594c: 687b ldr r3, [r7, #4]
- 800594e: 639a str r2, [r3, #56] ; 0x38
- /* Write to TIMx CCER */
- TIMx->CCER = tmpccer;
- 8005950: 687b ldr r3, [r7, #4]
- 8005952: 697a ldr r2, [r7, #20]
- 8005954: 621a str r2, [r3, #32]
- }
- 8005956: bf00 nop
- 8005958: 371c adds r7, #28
- 800595a: 46bd mov sp, r7
- 800595c: bc80 pop {r7}
- 800595e: 4770 bx lr
- 08005960 <TIM_OC3_SetConfig>:
- * @param TIMx to select the TIM peripheral
- * @param OC_Config The output configuration structure
- * @retval None
- */
- static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
- {
- 8005960: b480 push {r7}
- 8005962: b087 sub sp, #28
- 8005964: af00 add r7, sp, #0
- 8005966: 6078 str r0, [r7, #4]
- 8005968: 6039 str r1, [r7, #0]
- uint32_t tmpccmrx;
- uint32_t tmpccer;
- uint32_t tmpcr2;
- /* Disable the Channel 3: Reset the CC2E Bit */
- TIMx->CCER &= ~TIM_CCER_CC3E;
- 800596a: 687b ldr r3, [r7, #4]
- 800596c: 6a1b ldr r3, [r3, #32]
- 800596e: f423 7280 bic.w r2, r3, #256 ; 0x100
- 8005972: 687b ldr r3, [r7, #4]
- 8005974: 621a str r2, [r3, #32]
- /* Get the TIMx CCER register value */
- tmpccer = TIMx->CCER;
- 8005976: 687b ldr r3, [r7, #4]
- 8005978: 6a1b ldr r3, [r3, #32]
- 800597a: 617b str r3, [r7, #20]
- /* Get the TIMx CR2 register value */
- tmpcr2 = TIMx->CR2;
- 800597c: 687b ldr r3, [r7, #4]
- 800597e: 685b ldr r3, [r3, #4]
- 8005980: 613b str r3, [r7, #16]
- /* Get the TIMx CCMR2 register value */
- tmpccmrx = TIMx->CCMR2;
- 8005982: 687b ldr r3, [r7, #4]
- 8005984: 69db ldr r3, [r3, #28]
- 8005986: 60fb str r3, [r7, #12]
- /* Reset the Output Compare mode and Capture/Compare selection Bits */
- tmpccmrx &= ~TIM_CCMR2_OC3M;
- 8005988: 68fb ldr r3, [r7, #12]
- 800598a: f023 0370 bic.w r3, r3, #112 ; 0x70
- 800598e: 60fb str r3, [r7, #12]
- tmpccmrx &= ~TIM_CCMR2_CC3S;
- 8005990: 68fb ldr r3, [r7, #12]
- 8005992: f023 0303 bic.w r3, r3, #3
- 8005996: 60fb str r3, [r7, #12]
- /* Select the Output Compare Mode */
- tmpccmrx |= OC_Config->OCMode;
- 8005998: 683b ldr r3, [r7, #0]
- 800599a: 681b ldr r3, [r3, #0]
- 800599c: 68fa ldr r2, [r7, #12]
- 800599e: 4313 orrs r3, r2
- 80059a0: 60fb str r3, [r7, #12]
- /* Reset the Output Polarity level */
- tmpccer &= ~TIM_CCER_CC3P;
- 80059a2: 697b ldr r3, [r7, #20]
- 80059a4: f423 7300 bic.w r3, r3, #512 ; 0x200
- 80059a8: 617b str r3, [r7, #20]
- /* Set the Output Compare Polarity */
- tmpccer |= (OC_Config->OCPolarity << 8U);
- 80059aa: 683b ldr r3, [r7, #0]
- 80059ac: 689b ldr r3, [r3, #8]
- 80059ae: 021b lsls r3, r3, #8
- 80059b0: 697a ldr r2, [r7, #20]
- 80059b2: 4313 orrs r3, r2
- 80059b4: 617b str r3, [r7, #20]
- /* Write to TIMx CR2 */
- TIMx->CR2 = tmpcr2;
- 80059b6: 687b ldr r3, [r7, #4]
- 80059b8: 693a ldr r2, [r7, #16]
- 80059ba: 605a str r2, [r3, #4]
- /* Write to TIMx CCMR2 */
- TIMx->CCMR2 = tmpccmrx;
- 80059bc: 687b ldr r3, [r7, #4]
- 80059be: 68fa ldr r2, [r7, #12]
- 80059c0: 61da str r2, [r3, #28]
- /* Set the Capture Compare Register value */
- TIMx->CCR3 = OC_Config->Pulse;
- 80059c2: 683b ldr r3, [r7, #0]
- 80059c4: 685a ldr r2, [r3, #4]
- 80059c6: 687b ldr r3, [r7, #4]
- 80059c8: 63da str r2, [r3, #60] ; 0x3c
- /* Write to TIMx CCER */
- TIMx->CCER = tmpccer;
- 80059ca: 687b ldr r3, [r7, #4]
- 80059cc: 697a ldr r2, [r7, #20]
- 80059ce: 621a str r2, [r3, #32]
- }
- 80059d0: bf00 nop
- 80059d2: 371c adds r7, #28
- 80059d4: 46bd mov sp, r7
- 80059d6: bc80 pop {r7}
- 80059d8: 4770 bx lr
- 080059da <TIM_OC4_SetConfig>:
- * @param TIMx to select the TIM peripheral
- * @param OC_Config The output configuration structure
- * @retval None
- */
- static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
- {
- 80059da: b480 push {r7}
- 80059dc: b087 sub sp, #28
- 80059de: af00 add r7, sp, #0
- 80059e0: 6078 str r0, [r7, #4]
- 80059e2: 6039 str r1, [r7, #0]
- uint32_t tmpccmrx;
- uint32_t tmpccer;
- uint32_t tmpcr2;
- /* Disable the Channel 4: Reset the CC4E Bit */
- TIMx->CCER &= ~TIM_CCER_CC4E;
- 80059e4: 687b ldr r3, [r7, #4]
- 80059e6: 6a1b ldr r3, [r3, #32]
- 80059e8: f423 5280 bic.w r2, r3, #4096 ; 0x1000
- 80059ec: 687b ldr r3, [r7, #4]
- 80059ee: 621a str r2, [r3, #32]
- /* Get the TIMx CCER register value */
- tmpccer = TIMx->CCER;
- 80059f0: 687b ldr r3, [r7, #4]
- 80059f2: 6a1b ldr r3, [r3, #32]
- 80059f4: 617b str r3, [r7, #20]
- /* Get the TIMx CR2 register value */
- tmpcr2 = TIMx->CR2;
- 80059f6: 687b ldr r3, [r7, #4]
- 80059f8: 685b ldr r3, [r3, #4]
- 80059fa: 613b str r3, [r7, #16]
- /* Get the TIMx CCMR2 register value */
- tmpccmrx = TIMx->CCMR2;
- 80059fc: 687b ldr r3, [r7, #4]
- 80059fe: 69db ldr r3, [r3, #28]
- 8005a00: 60fb str r3, [r7, #12]
- /* Reset the Output Compare mode and Capture/Compare selection Bits */
- tmpccmrx &= ~TIM_CCMR2_OC4M;
- 8005a02: 68fb ldr r3, [r7, #12]
- 8005a04: f423 43e0 bic.w r3, r3, #28672 ; 0x7000
- 8005a08: 60fb str r3, [r7, #12]
- tmpccmrx &= ~TIM_CCMR2_CC4S;
- 8005a0a: 68fb ldr r3, [r7, #12]
- 8005a0c: f423 7340 bic.w r3, r3, #768 ; 0x300
- 8005a10: 60fb str r3, [r7, #12]
- /* Select the Output Compare Mode */
- tmpccmrx |= (OC_Config->OCMode << 8U);
- 8005a12: 683b ldr r3, [r7, #0]
- 8005a14: 681b ldr r3, [r3, #0]
- 8005a16: 021b lsls r3, r3, #8
- 8005a18: 68fa ldr r2, [r7, #12]
- 8005a1a: 4313 orrs r3, r2
- 8005a1c: 60fb str r3, [r7, #12]
- /* Reset the Output Polarity level */
- tmpccer &= ~TIM_CCER_CC4P;
- 8005a1e: 697b ldr r3, [r7, #20]
- 8005a20: f423 5300 bic.w r3, r3, #8192 ; 0x2000
- 8005a24: 617b str r3, [r7, #20]
- /* Set the Output Compare Polarity */
- tmpccer |= (OC_Config->OCPolarity << 12U);
- 8005a26: 683b ldr r3, [r7, #0]
- 8005a28: 689b ldr r3, [r3, #8]
- 8005a2a: 031b lsls r3, r3, #12
- 8005a2c: 697a ldr r2, [r7, #20]
- 8005a2e: 4313 orrs r3, r2
- 8005a30: 617b str r3, [r7, #20]
- /* Write to TIMx CR2 */
- TIMx->CR2 = tmpcr2;
- 8005a32: 687b ldr r3, [r7, #4]
- 8005a34: 693a ldr r2, [r7, #16]
- 8005a36: 605a str r2, [r3, #4]
- /* Write to TIMx CCMR2 */
- TIMx->CCMR2 = tmpccmrx;
- 8005a38: 687b ldr r3, [r7, #4]
- 8005a3a: 68fa ldr r2, [r7, #12]
- 8005a3c: 61da str r2, [r3, #28]
- /* Set the Capture Compare Register value */
- TIMx->CCR4 = OC_Config->Pulse;
- 8005a3e: 683b ldr r3, [r7, #0]
- 8005a40: 685a ldr r2, [r3, #4]
- 8005a42: 687b ldr r3, [r7, #4]
- 8005a44: 641a str r2, [r3, #64] ; 0x40
- /* Write to TIMx CCER */
- TIMx->CCER = tmpccer;
- 8005a46: 687b ldr r3, [r7, #4]
- 8005a48: 697a ldr r2, [r7, #20]
- 8005a4a: 621a str r2, [r3, #32]
- }
- 8005a4c: bf00 nop
- 8005a4e: 371c adds r7, #28
- 8005a50: 46bd mov sp, r7
- 8005a52: bc80 pop {r7}
- 8005a54: 4770 bx lr
- 08005a56 <TIM_SlaveTimer_SetConfig>:
- * @param sSlaveConfig Slave timer configuration
- * @retval None
- */
- static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim,
- TIM_SlaveConfigTypeDef *sSlaveConfig)
- {
- 8005a56: b580 push {r7, lr}
- 8005a58: b086 sub sp, #24
- 8005a5a: af00 add r7, sp, #0
- 8005a5c: 6078 str r0, [r7, #4]
- 8005a5e: 6039 str r1, [r7, #0]
- uint32_t tmpsmcr;
- uint32_t tmpccmr1;
- uint32_t tmpccer;
- /* Get the TIMx SMCR register value */
- tmpsmcr = htim->Instance->SMCR;
- 8005a60: 687b ldr r3, [r7, #4]
- 8005a62: 681b ldr r3, [r3, #0]
- 8005a64: 689b ldr r3, [r3, #8]
- 8005a66: 617b str r3, [r7, #20]
- /* Reset the Trigger Selection Bits */
- tmpsmcr &= ~TIM_SMCR_TS;
- 8005a68: 697b ldr r3, [r7, #20]
- 8005a6a: f023 0370 bic.w r3, r3, #112 ; 0x70
- 8005a6e: 617b str r3, [r7, #20]
- /* Set the Input Trigger source */
- tmpsmcr |= sSlaveConfig->InputTrigger;
- 8005a70: 683b ldr r3, [r7, #0]
- 8005a72: 685b ldr r3, [r3, #4]
- 8005a74: 697a ldr r2, [r7, #20]
- 8005a76: 4313 orrs r3, r2
- 8005a78: 617b str r3, [r7, #20]
- /* Reset the slave mode Bits */
- tmpsmcr &= ~TIM_SMCR_SMS;
- 8005a7a: 697b ldr r3, [r7, #20]
- 8005a7c: f023 0307 bic.w r3, r3, #7
- 8005a80: 617b str r3, [r7, #20]
- /* Set the slave mode */
- tmpsmcr |= sSlaveConfig->SlaveMode;
- 8005a82: 683b ldr r3, [r7, #0]
- 8005a84: 681b ldr r3, [r3, #0]
- 8005a86: 697a ldr r2, [r7, #20]
- 8005a88: 4313 orrs r3, r2
- 8005a8a: 617b str r3, [r7, #20]
- /* Write to TIMx SMCR */
- htim->Instance->SMCR = tmpsmcr;
- 8005a8c: 687b ldr r3, [r7, #4]
- 8005a8e: 681b ldr r3, [r3, #0]
- 8005a90: 697a ldr r2, [r7, #20]
- 8005a92: 609a str r2, [r3, #8]
- /* Configure the trigger prescaler, filter, and polarity */
- switch (sSlaveConfig->InputTrigger)
- 8005a94: 683b ldr r3, [r7, #0]
- 8005a96: 685b ldr r3, [r3, #4]
- 8005a98: 2b70 cmp r3, #112 ; 0x70
- 8005a9a: d01a beq.n 8005ad2 <TIM_SlaveTimer_SetConfig+0x7c>
- 8005a9c: 2b70 cmp r3, #112 ; 0x70
- 8005a9e: d860 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- 8005aa0: 2b60 cmp r3, #96 ; 0x60
- 8005aa2: d054 beq.n 8005b4e <TIM_SlaveTimer_SetConfig+0xf8>
- 8005aa4: 2b60 cmp r3, #96 ; 0x60
- 8005aa6: d85c bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- 8005aa8: 2b50 cmp r3, #80 ; 0x50
- 8005aaa: d046 beq.n 8005b3a <TIM_SlaveTimer_SetConfig+0xe4>
- 8005aac: 2b50 cmp r3, #80 ; 0x50
- 8005aae: d858 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- 8005ab0: 2b40 cmp r3, #64 ; 0x40
- 8005ab2: d019 beq.n 8005ae8 <TIM_SlaveTimer_SetConfig+0x92>
- 8005ab4: 2b40 cmp r3, #64 ; 0x40
- 8005ab6: d854 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- 8005ab8: 2b30 cmp r3, #48 ; 0x30
- 8005aba: d054 beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
- 8005abc: 2b30 cmp r3, #48 ; 0x30
- 8005abe: d850 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- 8005ac0: 2b20 cmp r3, #32
- 8005ac2: d050 beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
- 8005ac4: 2b20 cmp r3, #32
- 8005ac6: d84c bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- 8005ac8: 2b00 cmp r3, #0
- 8005aca: d04c beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
- 8005acc: 2b10 cmp r3, #16
- 8005ace: d04a beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
- assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
- break;
- }
- default:
- break;
- 8005ad0: e047 b.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
- TIM_ETR_SetConfig(htim->Instance,
- 8005ad2: 687b ldr r3, [r7, #4]
- 8005ad4: 6818 ldr r0, [r3, #0]
- 8005ad6: 683b ldr r3, [r7, #0]
- 8005ad8: 68d9 ldr r1, [r3, #12]
- 8005ada: 683b ldr r3, [r7, #0]
- 8005adc: 689a ldr r2, [r3, #8]
- 8005ade: 683b ldr r3, [r7, #0]
- 8005ae0: 691b ldr r3, [r3, #16]
- 8005ae2: f000 f8bd bl 8005c60 <TIM_ETR_SetConfig>
- break;
- 8005ae6: e03f b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
- if (sSlaveConfig->SlaveMode == TIM_SLAVEMODE_GATED)
- 8005ae8: 683b ldr r3, [r7, #0]
- 8005aea: 681b ldr r3, [r3, #0]
- 8005aec: 2b05 cmp r3, #5
- 8005aee: d101 bne.n 8005af4 <TIM_SlaveTimer_SetConfig+0x9e>
- return HAL_ERROR;
- 8005af0: 2301 movs r3, #1
- 8005af2: e03a b.n 8005b6a <TIM_SlaveTimer_SetConfig+0x114>
- tmpccer = htim->Instance->CCER;
- 8005af4: 687b ldr r3, [r7, #4]
- 8005af6: 681b ldr r3, [r3, #0]
- 8005af8: 6a1b ldr r3, [r3, #32]
- 8005afa: 613b str r3, [r7, #16]
- htim->Instance->CCER &= ~TIM_CCER_CC1E;
- 8005afc: 687b ldr r3, [r7, #4]
- 8005afe: 681b ldr r3, [r3, #0]
- 8005b00: 6a1a ldr r2, [r3, #32]
- 8005b02: 687b ldr r3, [r7, #4]
- 8005b04: 681b ldr r3, [r3, #0]
- 8005b06: f022 0201 bic.w r2, r2, #1
- 8005b0a: 621a str r2, [r3, #32]
- tmpccmr1 = htim->Instance->CCMR1;
- 8005b0c: 687b ldr r3, [r7, #4]
- 8005b0e: 681b ldr r3, [r3, #0]
- 8005b10: 699b ldr r3, [r3, #24]
- 8005b12: 60fb str r3, [r7, #12]
- tmpccmr1 &= ~TIM_CCMR1_IC1F;
- 8005b14: 68fb ldr r3, [r7, #12]
- 8005b16: f023 03f0 bic.w r3, r3, #240 ; 0xf0
- 8005b1a: 60fb str r3, [r7, #12]
- tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U);
- 8005b1c: 683b ldr r3, [r7, #0]
- 8005b1e: 691b ldr r3, [r3, #16]
- 8005b20: 011b lsls r3, r3, #4
- 8005b22: 68fa ldr r2, [r7, #12]
- 8005b24: 4313 orrs r3, r2
- 8005b26: 60fb str r3, [r7, #12]
- htim->Instance->CCMR1 = tmpccmr1;
- 8005b28: 687b ldr r3, [r7, #4]
- 8005b2a: 681b ldr r3, [r3, #0]
- 8005b2c: 68fa ldr r2, [r7, #12]
- 8005b2e: 619a str r2, [r3, #24]
- htim->Instance->CCER = tmpccer;
- 8005b30: 687b ldr r3, [r7, #4]
- 8005b32: 681b ldr r3, [r3, #0]
- 8005b34: 693a ldr r2, [r7, #16]
- 8005b36: 621a str r2, [r3, #32]
- break;
- 8005b38: e016 b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
- TIM_TI1_ConfigInputStage(htim->Instance,
- 8005b3a: 687b ldr r3, [r7, #4]
- 8005b3c: 6818 ldr r0, [r3, #0]
- 8005b3e: 683b ldr r3, [r7, #0]
- 8005b40: 6899 ldr r1, [r3, #8]
- 8005b42: 683b ldr r3, [r7, #0]
- 8005b44: 691b ldr r3, [r3, #16]
- 8005b46: 461a mov r2, r3
- 8005b48: f000 f813 bl 8005b72 <TIM_TI1_ConfigInputStage>
- break;
- 8005b4c: e00c b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
- TIM_TI2_ConfigInputStage(htim->Instance,
- 8005b4e: 687b ldr r3, [r7, #4]
- 8005b50: 6818 ldr r0, [r3, #0]
- 8005b52: 683b ldr r3, [r7, #0]
- 8005b54: 6899 ldr r1, [r3, #8]
- 8005b56: 683b ldr r3, [r7, #0]
- 8005b58: 691b ldr r3, [r3, #16]
- 8005b5a: 461a mov r2, r3
- 8005b5c: f000 f837 bl 8005bce <TIM_TI2_ConfigInputStage>
- break;
- 8005b60: e002 b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
- break;
- 8005b62: bf00 nop
- 8005b64: e000 b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
- break;
- 8005b66: bf00 nop
- }
- return HAL_OK;
- 8005b68: 2300 movs r3, #0
- }
- 8005b6a: 4618 mov r0, r3
- 8005b6c: 3718 adds r7, #24
- 8005b6e: 46bd mov sp, r7
- 8005b70: bd80 pop {r7, pc}
- 08005b72 <TIM_TI1_ConfigInputStage>:
- * @param TIM_ICFilter Specifies the Input Capture Filter.
- * This parameter must be a value between 0x00 and 0x0F.
- * @retval None
- */
- static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
- {
- 8005b72: b480 push {r7}
- 8005b74: b087 sub sp, #28
- 8005b76: af00 add r7, sp, #0
- 8005b78: 60f8 str r0, [r7, #12]
- 8005b7a: 60b9 str r1, [r7, #8]
- 8005b7c: 607a str r2, [r7, #4]
- uint32_t tmpccmr1;
- uint32_t tmpccer;
- /* Disable the Channel 1: Reset the CC1E Bit */
- tmpccer = TIMx->CCER;
- 8005b7e: 68fb ldr r3, [r7, #12]
- 8005b80: 6a1b ldr r3, [r3, #32]
- 8005b82: 617b str r3, [r7, #20]
- TIMx->CCER &= ~TIM_CCER_CC1E;
- 8005b84: 68fb ldr r3, [r7, #12]
- 8005b86: 6a1b ldr r3, [r3, #32]
- 8005b88: f023 0201 bic.w r2, r3, #1
- 8005b8c: 68fb ldr r3, [r7, #12]
- 8005b8e: 621a str r2, [r3, #32]
- tmpccmr1 = TIMx->CCMR1;
- 8005b90: 68fb ldr r3, [r7, #12]
- 8005b92: 699b ldr r3, [r3, #24]
- 8005b94: 613b str r3, [r7, #16]
- /* Set the filter */
- tmpccmr1 &= ~TIM_CCMR1_IC1F;
- 8005b96: 693b ldr r3, [r7, #16]
- 8005b98: f023 03f0 bic.w r3, r3, #240 ; 0xf0
- 8005b9c: 613b str r3, [r7, #16]
- tmpccmr1 |= (TIM_ICFilter << 4U);
- 8005b9e: 687b ldr r3, [r7, #4]
- 8005ba0: 011b lsls r3, r3, #4
- 8005ba2: 693a ldr r2, [r7, #16]
- 8005ba4: 4313 orrs r3, r2
- 8005ba6: 613b str r3, [r7, #16]
- /* Select the Polarity and set the CC1E Bit */
- tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
- 8005ba8: 697b ldr r3, [r7, #20]
- 8005baa: f023 030a bic.w r3, r3, #10
- 8005bae: 617b str r3, [r7, #20]
- tmpccer |= TIM_ICPolarity;
- 8005bb0: 697a ldr r2, [r7, #20]
- 8005bb2: 68bb ldr r3, [r7, #8]
- 8005bb4: 4313 orrs r3, r2
- 8005bb6: 617b str r3, [r7, #20]
- /* Write to TIMx CCMR1 and CCER registers */
- TIMx->CCMR1 = tmpccmr1;
- 8005bb8: 68fb ldr r3, [r7, #12]
- 8005bba: 693a ldr r2, [r7, #16]
- 8005bbc: 619a str r2, [r3, #24]
- TIMx->CCER = tmpccer;
- 8005bbe: 68fb ldr r3, [r7, #12]
- 8005bc0: 697a ldr r2, [r7, #20]
- 8005bc2: 621a str r2, [r3, #32]
- }
- 8005bc4: bf00 nop
- 8005bc6: 371c adds r7, #28
- 8005bc8: 46bd mov sp, r7
- 8005bca: bc80 pop {r7}
- 8005bcc: 4770 bx lr
- 08005bce <TIM_TI2_ConfigInputStage>:
- * @param TIM_ICFilter Specifies the Input Capture Filter.
- * This parameter must be a value between 0x00 and 0x0F.
- * @retval None
- */
- static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
- {
- 8005bce: b480 push {r7}
- 8005bd0: b087 sub sp, #28
- 8005bd2: af00 add r7, sp, #0
- 8005bd4: 60f8 str r0, [r7, #12]
- 8005bd6: 60b9 str r1, [r7, #8]
- 8005bd8: 607a str r2, [r7, #4]
- uint32_t tmpccmr1;
- uint32_t tmpccer;
- /* Disable the Channel 2: Reset the CC2E Bit */
- TIMx->CCER &= ~TIM_CCER_CC2E;
- 8005bda: 68fb ldr r3, [r7, #12]
- 8005bdc: 6a1b ldr r3, [r3, #32]
- 8005bde: f023 0210 bic.w r2, r3, #16
- 8005be2: 68fb ldr r3, [r7, #12]
- 8005be4: 621a str r2, [r3, #32]
- tmpccmr1 = TIMx->CCMR1;
- 8005be6: 68fb ldr r3, [r7, #12]
- 8005be8: 699b ldr r3, [r3, #24]
- 8005bea: 617b str r3, [r7, #20]
- tmpccer = TIMx->CCER;
- 8005bec: 68fb ldr r3, [r7, #12]
- 8005bee: 6a1b ldr r3, [r3, #32]
- 8005bf0: 613b str r3, [r7, #16]
- /* Set the filter */
- tmpccmr1 &= ~TIM_CCMR1_IC2F;
- 8005bf2: 697b ldr r3, [r7, #20]
- 8005bf4: f423 4370 bic.w r3, r3, #61440 ; 0xf000
- 8005bf8: 617b str r3, [r7, #20]
- tmpccmr1 |= (TIM_ICFilter << 12U);
- 8005bfa: 687b ldr r3, [r7, #4]
- 8005bfc: 031b lsls r3, r3, #12
- 8005bfe: 697a ldr r2, [r7, #20]
- 8005c00: 4313 orrs r3, r2
- 8005c02: 617b str r3, [r7, #20]
- /* Select the Polarity and set the CC2E Bit */
- tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
- 8005c04: 693b ldr r3, [r7, #16]
- 8005c06: f023 03a0 bic.w r3, r3, #160 ; 0xa0
- 8005c0a: 613b str r3, [r7, #16]
- tmpccer |= (TIM_ICPolarity << 4U);
- 8005c0c: 68bb ldr r3, [r7, #8]
- 8005c0e: 011b lsls r3, r3, #4
- 8005c10: 693a ldr r2, [r7, #16]
- 8005c12: 4313 orrs r3, r2
- 8005c14: 613b str r3, [r7, #16]
- /* Write to TIMx CCMR1 and CCER registers */
- TIMx->CCMR1 = tmpccmr1 ;
- 8005c16: 68fb ldr r3, [r7, #12]
- 8005c18: 697a ldr r2, [r7, #20]
- 8005c1a: 619a str r2, [r3, #24]
- TIMx->CCER = tmpccer;
- 8005c1c: 68fb ldr r3, [r7, #12]
- 8005c1e: 693a ldr r2, [r7, #16]
- 8005c20: 621a str r2, [r3, #32]
- }
- 8005c22: bf00 nop
- 8005c24: 371c adds r7, #28
- 8005c26: 46bd mov sp, r7
- 8005c28: bc80 pop {r7}
- 8005c2a: 4770 bx lr
- 08005c2c <TIM_ITRx_SetConfig>:
- * @arg TIM_TS_TI2FP2: Filtered Timer Input 2
- * @arg TIM_TS_ETRF: External Trigger input
- * @retval None
- */
- static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
- {
- 8005c2c: b480 push {r7}
- 8005c2e: b085 sub sp, #20
- 8005c30: af00 add r7, sp, #0
- 8005c32: 6078 str r0, [r7, #4]
- 8005c34: 6039 str r1, [r7, #0]
- uint32_t tmpsmcr;
- /* Get the TIMx SMCR register value */
- tmpsmcr = TIMx->SMCR;
- 8005c36: 687b ldr r3, [r7, #4]
- 8005c38: 689b ldr r3, [r3, #8]
- 8005c3a: 60fb str r3, [r7, #12]
- /* Reset the TS Bits */
- tmpsmcr &= ~TIM_SMCR_TS;
- 8005c3c: 68fb ldr r3, [r7, #12]
- 8005c3e: f023 0370 bic.w r3, r3, #112 ; 0x70
- 8005c42: 60fb str r3, [r7, #12]
- /* Set the Input Trigger source and the slave mode*/
- tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
- 8005c44: 683a ldr r2, [r7, #0]
- 8005c46: 68fb ldr r3, [r7, #12]
- 8005c48: 4313 orrs r3, r2
- 8005c4a: f043 0307 orr.w r3, r3, #7
- 8005c4e: 60fb str r3, [r7, #12]
- /* Write to TIMx SMCR */
- TIMx->SMCR = tmpsmcr;
- 8005c50: 687b ldr r3, [r7, #4]
- 8005c52: 68fa ldr r2, [r7, #12]
- 8005c54: 609a str r2, [r3, #8]
- }
- 8005c56: bf00 nop
- 8005c58: 3714 adds r7, #20
- 8005c5a: 46bd mov sp, r7
- 8005c5c: bc80 pop {r7}
- 8005c5e: 4770 bx lr
- 08005c60 <TIM_ETR_SetConfig>:
- * This parameter must be a value between 0x00 and 0x0F
- * @retval None
- */
- static void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
- uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
- {
- 8005c60: b480 push {r7}
- 8005c62: b087 sub sp, #28
- 8005c64: af00 add r7, sp, #0
- 8005c66: 60f8 str r0, [r7, #12]
- 8005c68: 60b9 str r1, [r7, #8]
- 8005c6a: 607a str r2, [r7, #4]
- 8005c6c: 603b str r3, [r7, #0]
- uint32_t tmpsmcr;
- tmpsmcr = TIMx->SMCR;
- 8005c6e: 68fb ldr r3, [r7, #12]
- 8005c70: 689b ldr r3, [r3, #8]
- 8005c72: 617b str r3, [r7, #20]
- /* Reset the ETR Bits */
- tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
- 8005c74: 697b ldr r3, [r7, #20]
- 8005c76: f423 437f bic.w r3, r3, #65280 ; 0xff00
- 8005c7a: 617b str r3, [r7, #20]
- /* Set the Prescaler, the Filter value and the Polarity */
- tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
- 8005c7c: 683b ldr r3, [r7, #0]
- 8005c7e: 021a lsls r2, r3, #8
- 8005c80: 687b ldr r3, [r7, #4]
- 8005c82: 431a orrs r2, r3
- 8005c84: 68bb ldr r3, [r7, #8]
- 8005c86: 4313 orrs r3, r2
- 8005c88: 697a ldr r2, [r7, #20]
- 8005c8a: 4313 orrs r3, r2
- 8005c8c: 617b str r3, [r7, #20]
- /* Write to TIMx SMCR */
- TIMx->SMCR = tmpsmcr;
- 8005c8e: 68fb ldr r3, [r7, #12]
- 8005c90: 697a ldr r2, [r7, #20]
- 8005c92: 609a str r2, [r3, #8]
- }
- 8005c94: bf00 nop
- 8005c96: 371c adds r7, #28
- 8005c98: 46bd mov sp, r7
- 8005c9a: bc80 pop {r7}
- 8005c9c: 4770 bx lr
- 08005c9e <TIM_CCxChannelCmd>:
- * @param ChannelState specifies the TIM Channel CCxE bit new state.
- * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
- * @retval None
- */
- static void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
- {
- 8005c9e: b480 push {r7}
- 8005ca0: b087 sub sp, #28
- 8005ca2: af00 add r7, sp, #0
- 8005ca4: 60f8 str r0, [r7, #12]
- 8005ca6: 60b9 str r1, [r7, #8]
- 8005ca8: 607a str r2, [r7, #4]
- /* Check the parameters */
- assert_param(IS_TIM_CC1_INSTANCE(TIMx));
- assert_param(IS_TIM_CHANNELS(Channel));
- tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
- 8005caa: 68bb ldr r3, [r7, #8]
- 8005cac: f003 031f and.w r3, r3, #31
- 8005cb0: 2201 movs r2, #1
- 8005cb2: fa02 f303 lsl.w r3, r2, r3
- 8005cb6: 617b str r3, [r7, #20]
- /* Reset the CCxE Bit */
- TIMx->CCER &= ~tmp;
- 8005cb8: 68fb ldr r3, [r7, #12]
- 8005cba: 6a1a ldr r2, [r3, #32]
- 8005cbc: 697b ldr r3, [r7, #20]
- 8005cbe: 43db mvns r3, r3
- 8005cc0: 401a ands r2, r3
- 8005cc2: 68fb ldr r3, [r7, #12]
- 8005cc4: 621a str r2, [r3, #32]
- /* Set or reset the CCxE Bit */
- TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
- 8005cc6: 68fb ldr r3, [r7, #12]
- 8005cc8: 6a1a ldr r2, [r3, #32]
- 8005cca: 68bb ldr r3, [r7, #8]
- 8005ccc: f003 031f and.w r3, r3, #31
- 8005cd0: 6879 ldr r1, [r7, #4]
- 8005cd2: fa01 f303 lsl.w r3, r1, r3
- 8005cd6: 431a orrs r2, r3
- 8005cd8: 68fb ldr r3, [r7, #12]
- 8005cda: 621a str r2, [r3, #32]
- }
- 8005cdc: bf00 nop
- 8005cde: 371c adds r7, #28
- 8005ce0: 46bd mov sp, r7
- 8005ce2: bc80 pop {r7}
- 8005ce4: 4770 bx lr
- ...
- 08005ce8 <HAL_TIMEx_MasterConfigSynchronization>:
- * mode.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
- TIM_MasterConfigTypeDef *sMasterConfig)
- {
- 8005ce8: b480 push {r7}
- 8005cea: b085 sub sp, #20
- 8005cec: af00 add r7, sp, #0
- 8005cee: 6078 str r0, [r7, #4]
- 8005cf0: 6039 str r1, [r7, #0]
- assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
- assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
- assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
- /* Check input state */
- __HAL_LOCK(htim);
- 8005cf2: 687b ldr r3, [r7, #4]
- 8005cf4: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
- 8005cf8: 2b01 cmp r3, #1
- 8005cfa: d101 bne.n 8005d00 <HAL_TIMEx_MasterConfigSynchronization+0x18>
- 8005cfc: 2302 movs r3, #2
- 8005cfe: e046 b.n 8005d8e <HAL_TIMEx_MasterConfigSynchronization+0xa6>
- 8005d00: 687b ldr r3, [r7, #4]
- 8005d02: 2201 movs r2, #1
- 8005d04: f883 2038 strb.w r2, [r3, #56] ; 0x38
- /* Change the handler state */
- htim->State = HAL_TIM_STATE_BUSY;
- 8005d08: 687b ldr r3, [r7, #4]
- 8005d0a: 2202 movs r2, #2
- 8005d0c: f883 2039 strb.w r2, [r3, #57] ; 0x39
- /* Get the TIMx CR2 register value */
- tmpcr2 = htim->Instance->CR2;
- 8005d10: 687b ldr r3, [r7, #4]
- 8005d12: 681b ldr r3, [r3, #0]
- 8005d14: 685b ldr r3, [r3, #4]
- 8005d16: 60fb str r3, [r7, #12]
- /* Get the TIMx SMCR register value */
- tmpsmcr = htim->Instance->SMCR;
- 8005d18: 687b ldr r3, [r7, #4]
- 8005d1a: 681b ldr r3, [r3, #0]
- 8005d1c: 689b ldr r3, [r3, #8]
- 8005d1e: 60bb str r3, [r7, #8]
- /* Reset the MMS Bits */
- tmpcr2 &= ~TIM_CR2_MMS;
- 8005d20: 68fb ldr r3, [r7, #12]
- 8005d22: f023 0370 bic.w r3, r3, #112 ; 0x70
- 8005d26: 60fb str r3, [r7, #12]
- /* Select the TRGO source */
- tmpcr2 |= sMasterConfig->MasterOutputTrigger;
- 8005d28: 683b ldr r3, [r7, #0]
- 8005d2a: 681b ldr r3, [r3, #0]
- 8005d2c: 68fa ldr r2, [r7, #12]
- 8005d2e: 4313 orrs r3, r2
- 8005d30: 60fb str r3, [r7, #12]
- /* Update TIMx CR2 */
- htim->Instance->CR2 = tmpcr2;
- 8005d32: 687b ldr r3, [r7, #4]
- 8005d34: 681b ldr r3, [r3, #0]
- 8005d36: 68fa ldr r2, [r7, #12]
- 8005d38: 605a str r2, [r3, #4]
- if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
- 8005d3a: 687b ldr r3, [r7, #4]
- 8005d3c: 681b ldr r3, [r3, #0]
- 8005d3e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8005d42: d00e beq.n 8005d62 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
- 8005d44: 687b ldr r3, [r7, #4]
- 8005d46: 681b ldr r3, [r3, #0]
- 8005d48: 4a13 ldr r2, [pc, #76] ; (8005d98 <HAL_TIMEx_MasterConfigSynchronization+0xb0>)
- 8005d4a: 4293 cmp r3, r2
- 8005d4c: d009 beq.n 8005d62 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
- 8005d4e: 687b ldr r3, [r7, #4]
- 8005d50: 681b ldr r3, [r3, #0]
- 8005d52: 4a12 ldr r2, [pc, #72] ; (8005d9c <HAL_TIMEx_MasterConfigSynchronization+0xb4>)
- 8005d54: 4293 cmp r3, r2
- 8005d56: d004 beq.n 8005d62 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
- 8005d58: 687b ldr r3, [r7, #4]
- 8005d5a: 681b ldr r3, [r3, #0]
- 8005d5c: 4a10 ldr r2, [pc, #64] ; (8005da0 <HAL_TIMEx_MasterConfigSynchronization+0xb8>)
- 8005d5e: 4293 cmp r3, r2
- 8005d60: d10c bne.n 8005d7c <HAL_TIMEx_MasterConfigSynchronization+0x94>
- {
- /* Reset the MSM Bit */
- tmpsmcr &= ~TIM_SMCR_MSM;
- 8005d62: 68bb ldr r3, [r7, #8]
- 8005d64: f023 0380 bic.w r3, r3, #128 ; 0x80
- 8005d68: 60bb str r3, [r7, #8]
- /* Set master mode */
- tmpsmcr |= sMasterConfig->MasterSlaveMode;
- 8005d6a: 683b ldr r3, [r7, #0]
- 8005d6c: 685b ldr r3, [r3, #4]
- 8005d6e: 68ba ldr r2, [r7, #8]
- 8005d70: 4313 orrs r3, r2
- 8005d72: 60bb str r3, [r7, #8]
- /* Update TIMx SMCR */
- htim->Instance->SMCR = tmpsmcr;
- 8005d74: 687b ldr r3, [r7, #4]
- 8005d76: 681b ldr r3, [r3, #0]
- 8005d78: 68ba ldr r2, [r7, #8]
- 8005d7a: 609a str r2, [r3, #8]
- }
- /* Change the htim state */
- htim->State = HAL_TIM_STATE_READY;
- 8005d7c: 687b ldr r3, [r7, #4]
- 8005d7e: 2201 movs r2, #1
- 8005d80: f883 2039 strb.w r2, [r3, #57] ; 0x39
- __HAL_UNLOCK(htim);
- 8005d84: 687b ldr r3, [r7, #4]
- 8005d86: 2200 movs r2, #0
- 8005d88: f883 2038 strb.w r2, [r3, #56] ; 0x38
- return HAL_OK;
- 8005d8c: 2300 movs r3, #0
- }
- 8005d8e: 4618 mov r0, r3
- 8005d90: 3714 adds r7, #20
- 8005d92: 46bd mov sp, r7
- 8005d94: bc80 pop {r7}
- 8005d96: 4770 bx lr
- 8005d98: 40000400 .word 0x40000400
- 8005d9c: 40000800 .word 0x40000800
- 8005da0: 40010800 .word 0x40010800
- 08005da4 <HAL_UART_Init>:
- * @param huart Pointer to a UART_HandleTypeDef structure that contains
- * the configuration information for the specified UART module.
- * @retval HAL status
- */
- HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
- {
- 8005da4: b580 push {r7, lr}
- 8005da6: b082 sub sp, #8
- 8005da8: af00 add r7, sp, #0
- 8005daa: 6078 str r0, [r7, #4]
- /* Check the UART handle allocation */
- if (huart == NULL)
- 8005dac: 687b ldr r3, [r7, #4]
- 8005dae: 2b00 cmp r3, #0
- 8005db0: d101 bne.n 8005db6 <HAL_UART_Init+0x12>
- {
- return HAL_ERROR;
- 8005db2: 2301 movs r3, #1
- 8005db4: e03f b.n 8005e36 <HAL_UART_Init+0x92>
- assert_param(IS_UART_INSTANCE(huart->Instance));
- }
- assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
- assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
- if (huart->gState == HAL_UART_STATE_RESET)
- 8005db6: 687b ldr r3, [r7, #4]
- 8005db8: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 8005dbc: b2db uxtb r3, r3
- 8005dbe: 2b00 cmp r3, #0
- 8005dc0: d106 bne.n 8005dd0 <HAL_UART_Init+0x2c>
- {
- /* Allocate lock resource and initialize it */
- huart->Lock = HAL_UNLOCKED;
- 8005dc2: 687b ldr r3, [r7, #4]
- 8005dc4: 2200 movs r2, #0
- 8005dc6: f883 203c strb.w r2, [r3, #60] ; 0x3c
- /* Init the low level hardware */
- huart->MspInitCallback(huart);
- #else
- /* Init the low level hardware : GPIO, CLOCK */
- HAL_UART_MspInit(huart);
- 8005dca: 6878 ldr r0, [r7, #4]
- 8005dcc: f7fc f816 bl 8001dfc <HAL_UART_MspInit>
- #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
- }
- huart->gState = HAL_UART_STATE_BUSY;
- 8005dd0: 687b ldr r3, [r7, #4]
- 8005dd2: 2224 movs r2, #36 ; 0x24
- 8005dd4: f883 203d strb.w r2, [r3, #61] ; 0x3d
- /* Disable the peripheral */
- __HAL_UART_DISABLE(huart);
- 8005dd8: 687b ldr r3, [r7, #4]
- 8005dda: 681b ldr r3, [r3, #0]
- 8005ddc: 68da ldr r2, [r3, #12]
- 8005dde: 687b ldr r3, [r7, #4]
- 8005de0: 681b ldr r3, [r3, #0]
- 8005de2: f422 5200 bic.w r2, r2, #8192 ; 0x2000
- 8005de6: 60da str r2, [r3, #12]
- /* Set the UART Communication parameters */
- UART_SetConfig(huart);
- 8005de8: 6878 ldr r0, [r7, #4]
- 8005dea: f000 f829 bl 8005e40 <UART_SetConfig>
- /* In asynchronous mode, the following bits must be kept cleared:
- - LINEN and CLKEN bits in the USART_CR2 register,
- - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
- CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
- 8005dee: 687b ldr r3, [r7, #4]
- 8005df0: 681b ldr r3, [r3, #0]
- 8005df2: 691a ldr r2, [r3, #16]
- 8005df4: 687b ldr r3, [r7, #4]
- 8005df6: 681b ldr r3, [r3, #0]
- 8005df8: f422 4290 bic.w r2, r2, #18432 ; 0x4800
- 8005dfc: 611a str r2, [r3, #16]
- CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
- 8005dfe: 687b ldr r3, [r7, #4]
- 8005e00: 681b ldr r3, [r3, #0]
- 8005e02: 695a ldr r2, [r3, #20]
- 8005e04: 687b ldr r3, [r7, #4]
- 8005e06: 681b ldr r3, [r3, #0]
- 8005e08: f022 022a bic.w r2, r2, #42 ; 0x2a
- 8005e0c: 615a str r2, [r3, #20]
- /* Enable the peripheral */
- __HAL_UART_ENABLE(huart);
- 8005e0e: 687b ldr r3, [r7, #4]
- 8005e10: 681b ldr r3, [r3, #0]
- 8005e12: 68da ldr r2, [r3, #12]
- 8005e14: 687b ldr r3, [r7, #4]
- 8005e16: 681b ldr r3, [r3, #0]
- 8005e18: f442 5200 orr.w r2, r2, #8192 ; 0x2000
- 8005e1c: 60da str r2, [r3, #12]
- /* Initialize the UART state */
- huart->ErrorCode = HAL_UART_ERROR_NONE;
- 8005e1e: 687b ldr r3, [r7, #4]
- 8005e20: 2200 movs r2, #0
- 8005e22: 641a str r2, [r3, #64] ; 0x40
- huart->gState = HAL_UART_STATE_READY;
- 8005e24: 687b ldr r3, [r7, #4]
- 8005e26: 2220 movs r2, #32
- 8005e28: f883 203d strb.w r2, [r3, #61] ; 0x3d
- huart->RxState = HAL_UART_STATE_READY;
- 8005e2c: 687b ldr r3, [r7, #4]
- 8005e2e: 2220 movs r2, #32
- 8005e30: f883 203e strb.w r2, [r3, #62] ; 0x3e
- return HAL_OK;
- 8005e34: 2300 movs r3, #0
- }
- 8005e36: 4618 mov r0, r3
- 8005e38: 3708 adds r7, #8
- 8005e3a: 46bd mov sp, r7
- 8005e3c: bd80 pop {r7, pc}
- ...
- 08005e40 <UART_SetConfig>:
- * @param huart Pointer to a UART_HandleTypeDef structure that contains
- * the configuration information for the specified UART module.
- * @retval None
- */
- static void UART_SetConfig(UART_HandleTypeDef *huart)
- {
- 8005e40: b580 push {r7, lr}
- 8005e42: b084 sub sp, #16
- 8005e44: af00 add r7, sp, #0
- 8005e46: 6078 str r0, [r7, #4]
- assert_param(IS_UART_MODE(huart->Init.Mode));
- /*-------------------------- USART CR2 Configuration -----------------------*/
- /* Configure the UART Stop Bits: Set STOP[13:12] bits
- according to huart->Init.StopBits value */
- MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
- 8005e48: 687b ldr r3, [r7, #4]
- 8005e4a: 681b ldr r3, [r3, #0]
- 8005e4c: 691b ldr r3, [r3, #16]
- 8005e4e: f423 5140 bic.w r1, r3, #12288 ; 0x3000
- 8005e52: 687b ldr r3, [r7, #4]
- 8005e54: 68da ldr r2, [r3, #12]
- 8005e56: 687b ldr r3, [r7, #4]
- 8005e58: 681b ldr r3, [r3, #0]
- 8005e5a: 430a orrs r2, r1
- 8005e5c: 611a str r2, [r3, #16]
- Set the M bits according to huart->Init.WordLength value
- Set PCE and PS bits according to huart->Init.Parity value
- Set TE and RE bits according to huart->Init.Mode value
- Set OVER8 bit according to huart->Init.OverSampling value */
- tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
- 8005e5e: 687b ldr r3, [r7, #4]
- 8005e60: 689a ldr r2, [r3, #8]
- 8005e62: 687b ldr r3, [r7, #4]
- 8005e64: 691b ldr r3, [r3, #16]
- 8005e66: 431a orrs r2, r3
- 8005e68: 687b ldr r3, [r7, #4]
- 8005e6a: 695b ldr r3, [r3, #20]
- 8005e6c: 431a orrs r2, r3
- 8005e6e: 687b ldr r3, [r7, #4]
- 8005e70: 69db ldr r3, [r3, #28]
- 8005e72: 4313 orrs r3, r2
- 8005e74: 60bb str r3, [r7, #8]
- MODIFY_REG(huart->Instance->CR1,
- 8005e76: 687b ldr r3, [r7, #4]
- 8005e78: 681b ldr r3, [r3, #0]
- 8005e7a: 68db ldr r3, [r3, #12]
- 8005e7c: f423 4316 bic.w r3, r3, #38400 ; 0x9600
- 8005e80: f023 030c bic.w r3, r3, #12
- 8005e84: 687a ldr r2, [r7, #4]
- 8005e86: 6812 ldr r2, [r2, #0]
- 8005e88: 68b9 ldr r1, [r7, #8]
- 8005e8a: 430b orrs r3, r1
- 8005e8c: 60d3 str r3, [r2, #12]
- (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8),
- tmpreg);
- /*-------------------------- USART CR3 Configuration -----------------------*/
- /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
- MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
- 8005e8e: 687b ldr r3, [r7, #4]
- 8005e90: 681b ldr r3, [r3, #0]
- 8005e92: 695b ldr r3, [r3, #20]
- 8005e94: f423 7140 bic.w r1, r3, #768 ; 0x300
- 8005e98: 687b ldr r3, [r7, #4]
- 8005e9a: 699a ldr r2, [r3, #24]
- 8005e9c: 687b ldr r3, [r7, #4]
- 8005e9e: 681b ldr r3, [r3, #0]
- 8005ea0: 430a orrs r2, r1
- 8005ea2: 615a str r2, [r3, #20]
- if((huart->Instance == USART1))
- 8005ea4: 687b ldr r3, [r7, #4]
- 8005ea6: 681b ldr r3, [r3, #0]
- 8005ea8: 4a55 ldr r2, [pc, #340] ; (8006000 <UART_SetConfig+0x1c0>)
- 8005eaa: 4293 cmp r3, r2
- 8005eac: d103 bne.n 8005eb6 <UART_SetConfig+0x76>
- {
- pclk = HAL_RCC_GetPCLK2Freq();
- 8005eae: f7fe ff19 bl 8004ce4 <HAL_RCC_GetPCLK2Freq>
- 8005eb2: 60f8 str r0, [r7, #12]
- 8005eb4: e002 b.n 8005ebc <UART_SetConfig+0x7c>
- }
- else
- {
- pclk = HAL_RCC_GetPCLK1Freq();
- 8005eb6: f7fe ff01 bl 8004cbc <HAL_RCC_GetPCLK1Freq>
- 8005eba: 60f8 str r0, [r7, #12]
- }
- /*-------------------------- USART BRR Configuration ---------------------*/
- if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
- 8005ebc: 687b ldr r3, [r7, #4]
- 8005ebe: 69db ldr r3, [r3, #28]
- 8005ec0: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
- 8005ec4: d14c bne.n 8005f60 <UART_SetConfig+0x120>
- {
- huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
- 8005ec6: 68fa ldr r2, [r7, #12]
- 8005ec8: 4613 mov r3, r2
- 8005eca: 009b lsls r3, r3, #2
- 8005ecc: 4413 add r3, r2
- 8005ece: 009a lsls r2, r3, #2
- 8005ed0: 441a add r2, r3
- 8005ed2: 687b ldr r3, [r7, #4]
- 8005ed4: 685b ldr r3, [r3, #4]
- 8005ed6: 005b lsls r3, r3, #1
- 8005ed8: fbb2 f3f3 udiv r3, r2, r3
- 8005edc: 4a49 ldr r2, [pc, #292] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005ede: fba2 2303 umull r2, r3, r2, r3
- 8005ee2: 095b lsrs r3, r3, #5
- 8005ee4: 0119 lsls r1, r3, #4
- 8005ee6: 68fa ldr r2, [r7, #12]
- 8005ee8: 4613 mov r3, r2
- 8005eea: 009b lsls r3, r3, #2
- 8005eec: 4413 add r3, r2
- 8005eee: 009a lsls r2, r3, #2
- 8005ef0: 441a add r2, r3
- 8005ef2: 687b ldr r3, [r7, #4]
- 8005ef4: 685b ldr r3, [r3, #4]
- 8005ef6: 005b lsls r3, r3, #1
- 8005ef8: fbb2 f2f3 udiv r2, r2, r3
- 8005efc: 4b41 ldr r3, [pc, #260] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005efe: fba3 0302 umull r0, r3, r3, r2
- 8005f02: 095b lsrs r3, r3, #5
- 8005f04: 2064 movs r0, #100 ; 0x64
- 8005f06: fb00 f303 mul.w r3, r0, r3
- 8005f0a: 1ad3 subs r3, r2, r3
- 8005f0c: 00db lsls r3, r3, #3
- 8005f0e: 3332 adds r3, #50 ; 0x32
- 8005f10: 4a3c ldr r2, [pc, #240] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005f12: fba2 2303 umull r2, r3, r2, r3
- 8005f16: 095b lsrs r3, r3, #5
- 8005f18: 005b lsls r3, r3, #1
- 8005f1a: f403 73f8 and.w r3, r3, #496 ; 0x1f0
- 8005f1e: 4419 add r1, r3
- 8005f20: 68fa ldr r2, [r7, #12]
- 8005f22: 4613 mov r3, r2
- 8005f24: 009b lsls r3, r3, #2
- 8005f26: 4413 add r3, r2
- 8005f28: 009a lsls r2, r3, #2
- 8005f2a: 441a add r2, r3
- 8005f2c: 687b ldr r3, [r7, #4]
- 8005f2e: 685b ldr r3, [r3, #4]
- 8005f30: 005b lsls r3, r3, #1
- 8005f32: fbb2 f2f3 udiv r2, r2, r3
- 8005f36: 4b33 ldr r3, [pc, #204] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005f38: fba3 0302 umull r0, r3, r3, r2
- 8005f3c: 095b lsrs r3, r3, #5
- 8005f3e: 2064 movs r0, #100 ; 0x64
- 8005f40: fb00 f303 mul.w r3, r0, r3
- 8005f44: 1ad3 subs r3, r2, r3
- 8005f46: 00db lsls r3, r3, #3
- 8005f48: 3332 adds r3, #50 ; 0x32
- 8005f4a: 4a2e ldr r2, [pc, #184] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005f4c: fba2 2303 umull r2, r3, r2, r3
- 8005f50: 095b lsrs r3, r3, #5
- 8005f52: f003 0207 and.w r2, r3, #7
- 8005f56: 687b ldr r3, [r7, #4]
- 8005f58: 681b ldr r3, [r3, #0]
- 8005f5a: 440a add r2, r1
- 8005f5c: 609a str r2, [r3, #8]
- }
- else
- {
- huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
- }
- }
- 8005f5e: e04a b.n 8005ff6 <UART_SetConfig+0x1b6>
- huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
- 8005f60: 68fa ldr r2, [r7, #12]
- 8005f62: 4613 mov r3, r2
- 8005f64: 009b lsls r3, r3, #2
- 8005f66: 4413 add r3, r2
- 8005f68: 009a lsls r2, r3, #2
- 8005f6a: 441a add r2, r3
- 8005f6c: 687b ldr r3, [r7, #4]
- 8005f6e: 685b ldr r3, [r3, #4]
- 8005f70: 009b lsls r3, r3, #2
- 8005f72: fbb2 f3f3 udiv r3, r2, r3
- 8005f76: 4a23 ldr r2, [pc, #140] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005f78: fba2 2303 umull r2, r3, r2, r3
- 8005f7c: 095b lsrs r3, r3, #5
- 8005f7e: 0119 lsls r1, r3, #4
- 8005f80: 68fa ldr r2, [r7, #12]
- 8005f82: 4613 mov r3, r2
- 8005f84: 009b lsls r3, r3, #2
- 8005f86: 4413 add r3, r2
- 8005f88: 009a lsls r2, r3, #2
- 8005f8a: 441a add r2, r3
- 8005f8c: 687b ldr r3, [r7, #4]
- 8005f8e: 685b ldr r3, [r3, #4]
- 8005f90: 009b lsls r3, r3, #2
- 8005f92: fbb2 f2f3 udiv r2, r2, r3
- 8005f96: 4b1b ldr r3, [pc, #108] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005f98: fba3 0302 umull r0, r3, r3, r2
- 8005f9c: 095b lsrs r3, r3, #5
- 8005f9e: 2064 movs r0, #100 ; 0x64
- 8005fa0: fb00 f303 mul.w r3, r0, r3
- 8005fa4: 1ad3 subs r3, r2, r3
- 8005fa6: 011b lsls r3, r3, #4
- 8005fa8: 3332 adds r3, #50 ; 0x32
- 8005faa: 4a16 ldr r2, [pc, #88] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005fac: fba2 2303 umull r2, r3, r2, r3
- 8005fb0: 095b lsrs r3, r3, #5
- 8005fb2: f003 03f0 and.w r3, r3, #240 ; 0xf0
- 8005fb6: 4419 add r1, r3
- 8005fb8: 68fa ldr r2, [r7, #12]
- 8005fba: 4613 mov r3, r2
- 8005fbc: 009b lsls r3, r3, #2
- 8005fbe: 4413 add r3, r2
- 8005fc0: 009a lsls r2, r3, #2
- 8005fc2: 441a add r2, r3
- 8005fc4: 687b ldr r3, [r7, #4]
- 8005fc6: 685b ldr r3, [r3, #4]
- 8005fc8: 009b lsls r3, r3, #2
- 8005fca: fbb2 f2f3 udiv r2, r2, r3
- 8005fce: 4b0d ldr r3, [pc, #52] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005fd0: fba3 0302 umull r0, r3, r3, r2
- 8005fd4: 095b lsrs r3, r3, #5
- 8005fd6: 2064 movs r0, #100 ; 0x64
- 8005fd8: fb00 f303 mul.w r3, r0, r3
- 8005fdc: 1ad3 subs r3, r2, r3
- 8005fde: 011b lsls r3, r3, #4
- 8005fe0: 3332 adds r3, #50 ; 0x32
- 8005fe2: 4a08 ldr r2, [pc, #32] ; (8006004 <UART_SetConfig+0x1c4>)
- 8005fe4: fba2 2303 umull r2, r3, r2, r3
- 8005fe8: 095b lsrs r3, r3, #5
- 8005fea: f003 020f and.w r2, r3, #15
- 8005fee: 687b ldr r3, [r7, #4]
- 8005ff0: 681b ldr r3, [r3, #0]
- 8005ff2: 440a add r2, r1
- 8005ff4: 609a str r2, [r3, #8]
- }
- 8005ff6: bf00 nop
- 8005ff8: 3710 adds r7, #16
- 8005ffa: 46bd mov sp, r7
- 8005ffc: bd80 pop {r7, pc}
- 8005ffe: bf00 nop
- 8006000: 40013800 .word 0x40013800
- 8006004: 51eb851f .word 0x51eb851f
- 08006008 <ssd1306_Reset>:
- #include <stdlib.h>
- #include <string.h> // For memcpy
- #if defined(SSD1306_USE_I2C)
- void ssd1306_Reset(void) {
- 8006008: b480 push {r7}
- 800600a: af00 add r7, sp, #0
- /* for I2C - do nothing */
- }
- 800600c: bf00 nop
- 800600e: 46bd mov sp, r7
- 8006010: bc80 pop {r7}
- 8006012: 4770 bx lr
- 08006014 <ssd1306_WriteCommand>:
- // Send a byte to the command register
- void ssd1306_WriteCommand(uint8_t byte) {
- 8006014: b580 push {r7, lr}
- 8006016: b086 sub sp, #24
- 8006018: af04 add r7, sp, #16
- 800601a: 4603 mov r3, r0
- 800601c: 71fb strb r3, [r7, #7]
- HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x00, 1, &byte, 1, HAL_MAX_DELAY);
- 800601e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
- 8006022: 9302 str r3, [sp, #8]
- 8006024: 2301 movs r3, #1
- 8006026: 9301 str r3, [sp, #4]
- 8006028: 1dfb adds r3, r7, #7
- 800602a: 9300 str r3, [sp, #0]
- 800602c: 2301 movs r3, #1
- 800602e: 2200 movs r2, #0
- 8006030: 2178 movs r1, #120 ; 0x78
- 8006032: 4803 ldr r0, [pc, #12] ; (8006040 <ssd1306_WriteCommand+0x2c>)
- 8006034: f7fd fdf0 bl 8003c18 <HAL_I2C_Mem_Write>
- }
- 8006038: bf00 nop
- 800603a: 3708 adds r7, #8
- 800603c: 46bd mov sp, r7
- 800603e: bd80 pop {r7, pc}
- 8006040: 20000458 .word 0x20000458
- 08006044 <ssd1306_WriteData>:
- // Send data
- void ssd1306_WriteData(uint8_t* buffer, size_t buff_size) {
- 8006044: b580 push {r7, lr}
- 8006046: b086 sub sp, #24
- 8006048: af04 add r7, sp, #16
- 800604a: 6078 str r0, [r7, #4]
- 800604c: 6039 str r1, [r7, #0]
- HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x40, 1, buffer, buff_size, HAL_MAX_DELAY);
- 800604e: 683b ldr r3, [r7, #0]
- 8006050: b29b uxth r3, r3
- 8006052: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8006056: 9202 str r2, [sp, #8]
- 8006058: 9301 str r3, [sp, #4]
- 800605a: 687b ldr r3, [r7, #4]
- 800605c: 9300 str r3, [sp, #0]
- 800605e: 2301 movs r3, #1
- 8006060: 2240 movs r2, #64 ; 0x40
- 8006062: 2178 movs r1, #120 ; 0x78
- 8006064: 4803 ldr r0, [pc, #12] ; (8006074 <ssd1306_WriteData+0x30>)
- 8006066: f7fd fdd7 bl 8003c18 <HAL_I2C_Mem_Write>
- }
- 800606a: bf00 nop
- 800606c: 3708 adds r7, #8
- 800606e: 46bd mov sp, r7
- 8006070: bd80 pop {r7, pc}
- 8006072: bf00 nop
- 8006074: 20000458 .word 0x20000458
- 08006078 <ssd1306_Init>:
- }
- return ret;
- }
- // Initialize the oled screen
- void ssd1306_Init(void) {
- 8006078: b580 push {r7, lr}
- 800607a: af00 add r7, sp, #0
- // Reset OLED
- ssd1306_Reset();
- 800607c: f7ff ffc4 bl 8006008 <ssd1306_Reset>
- // Wait for the screen to boot
- HAL_Delay(100);
- 8006080: 2064 movs r0, #100 ; 0x64
- 8006082: f7fc f8b5 bl 80021f0 <HAL_Delay>
- // Init OLED
- ssd1306_SetDisplayOn(0); //display off
- 8006086: 2000 movs r0, #0
- 8006088: f000 fa86 bl 8006598 <ssd1306_SetDisplayOn>
- ssd1306_WriteCommand(0x20); //Set Memory Addressing Mode
- 800608c: 2020 movs r0, #32
- 800608e: f7ff ffc1 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x00); // 00b,Horizontal Addressing Mode; 01b,Vertical Addressing Mode;
- 8006092: 2000 movs r0, #0
- 8006094: f7ff ffbe bl 8006014 <ssd1306_WriteCommand>
- // 10b,Page Addressing Mode (RESET); 11b,Invalid
- ssd1306_WriteCommand(0xB0); //Set Page Start Address for Page Addressing Mode,0-7
- 8006098: 20b0 movs r0, #176 ; 0xb0
- 800609a: f7ff ffbb bl 8006014 <ssd1306_WriteCommand>
- #ifdef SSD1306_MIRROR_VERT
- ssd1306_WriteCommand(0xC0); // Mirror vertically
- #else
- ssd1306_WriteCommand(0xC8); //Set COM Output Scan Direction
- 800609e: 20c8 movs r0, #200 ; 0xc8
- 80060a0: f7ff ffb8 bl 8006014 <ssd1306_WriteCommand>
- #endif
- ssd1306_WriteCommand(0x00); //---set low column address
- 80060a4: 2000 movs r0, #0
- 80060a6: f7ff ffb5 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x10); //---set high column address
- 80060aa: 2010 movs r0, #16
- 80060ac: f7ff ffb2 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x40); //--set start line address - CHECK
- 80060b0: 2040 movs r0, #64 ; 0x40
- 80060b2: f7ff ffaf bl 8006014 <ssd1306_WriteCommand>
- ssd1306_SetContrast(0xFF);
- 80060b6: 20ff movs r0, #255 ; 0xff
- 80060b8: f000 fa5b bl 8006572 <ssd1306_SetContrast>
- #ifdef SSD1306_MIRROR_HORIZ
- ssd1306_WriteCommand(0xA0); // Mirror horizontally
- #else
- ssd1306_WriteCommand(0xA1); //--set segment re-map 0 to 127 - CHECK
- 80060bc: 20a1 movs r0, #161 ; 0xa1
- 80060be: f7ff ffa9 bl 8006014 <ssd1306_WriteCommand>
- #endif
- #ifdef SSD1306_INVERSE_COLOR
- ssd1306_WriteCommand(0xA7); //--set inverse color
- #else
- ssd1306_WriteCommand(0xA6); //--set normal color
- 80060c2: 20a6 movs r0, #166 ; 0xa6
- 80060c4: f7ff ffa6 bl 8006014 <ssd1306_WriteCommand>
- // Set multiplex ratio.
- #if (SSD1306_HEIGHT == 128)
- // Found in the Luma Python lib for SH1106.
- ssd1306_WriteCommand(0xFF);
- #else
- ssd1306_WriteCommand(0xA8); //--set multiplex ratio(1 to 64) - CHECK
- 80060c8: 20a8 movs r0, #168 ; 0xa8
- 80060ca: f7ff ffa3 bl 8006014 <ssd1306_WriteCommand>
- #endif
- #if (SSD1306_HEIGHT == 32)
- ssd1306_WriteCommand(0x1F); //
- 80060ce: 201f movs r0, #31
- 80060d0: f7ff ffa0 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x3F); // Seems to work for 128px high displays too.
- #else
- #error "Only 32, 64, or 128 lines of height are supported!"
- #endif
- ssd1306_WriteCommand(0xA4); //0xa4,Output follows RAM content;0xa5,Output ignores RAM content
- 80060d4: 20a4 movs r0, #164 ; 0xa4
- 80060d6: f7ff ff9d bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0xD3); //-set display offset - CHECK
- 80060da: 20d3 movs r0, #211 ; 0xd3
- 80060dc: f7ff ff9a bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x00); //-not offset
- 80060e0: 2000 movs r0, #0
- 80060e2: f7ff ff97 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0xD5); //--set display clock divide ratio/oscillator frequency
- 80060e6: 20d5 movs r0, #213 ; 0xd5
- 80060e8: f7ff ff94 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0xF0); //--set divide ratio
- 80060ec: 20f0 movs r0, #240 ; 0xf0
- 80060ee: f7ff ff91 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0xD9); //--set pre-charge period
- 80060f2: 20d9 movs r0, #217 ; 0xd9
- 80060f4: f7ff ff8e bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x22); //
- 80060f8: 2022 movs r0, #34 ; 0x22
- 80060fa: f7ff ff8b bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0xDA); //--set com pins hardware configuration - CHECK
- 80060fe: 20da movs r0, #218 ; 0xda
- 8006100: f7ff ff88 bl 8006014 <ssd1306_WriteCommand>
- #if (SSD1306_HEIGHT == 32)
- ssd1306_WriteCommand(0x02);
- 8006104: 2002 movs r0, #2
- 8006106: f7ff ff85 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x12);
- #else
- #error "Only 32, 64, or 128 lines of height are supported!"
- #endif
- ssd1306_WriteCommand(0xDB); //--set vcomh
- 800610a: 20db movs r0, #219 ; 0xdb
- 800610c: f7ff ff82 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x20); //0x20,0.77xVcc
- 8006110: 2020 movs r0, #32
- 8006112: f7ff ff7f bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x8D); //--set DC-DC enable
- 8006116: 208d movs r0, #141 ; 0x8d
- 8006118: f7ff ff7c bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x14); //
- 800611c: 2014 movs r0, #20
- 800611e: f7ff ff79 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_SetDisplayOn(1); //--turn on SSD1306 panel
- 8006122: 2001 movs r0, #1
- 8006124: f000 fa38 bl 8006598 <ssd1306_SetDisplayOn>
- // Clear screen
- ssd1306_Fill(Black);
- 8006128: 2000 movs r0, #0
- 800612a: f000 f80f bl 800614c <ssd1306_Fill>
-
- // Flush buffer to screen
- ssd1306_UpdateScreen();
- 800612e: f000 f82f bl 8006190 <ssd1306_UpdateScreen>
-
- // Set default values for screen object
- SSD1306.CurrentX = 0;
- 8006132: 4b05 ldr r3, [pc, #20] ; (8006148 <ssd1306_Init+0xd0>)
- 8006134: 2200 movs r2, #0
- 8006136: 801a strh r2, [r3, #0]
- SSD1306.CurrentY = 0;
- 8006138: 4b03 ldr r3, [pc, #12] ; (8006148 <ssd1306_Init+0xd0>)
- 800613a: 2200 movs r2, #0
- 800613c: 805a strh r2, [r3, #2]
-
- SSD1306.Initialized = 1;
- 800613e: 4b02 ldr r3, [pc, #8] ; (8006148 <ssd1306_Init+0xd0>)
- 8006140: 2201 movs r2, #1
- 8006142: 715a strb r2, [r3, #5]
- }
- 8006144: bf00 nop
- 8006146: bd80 pop {r7, pc}
- 8006148: 20000408 .word 0x20000408
- 0800614c <ssd1306_Fill>:
- // Fill the whole screen with the given color
- void ssd1306_Fill(SSD1306_COLOR color) {
- 800614c: b480 push {r7}
- 800614e: b085 sub sp, #20
- 8006150: af00 add r7, sp, #0
- 8006152: 4603 mov r3, r0
- 8006154: 71fb strb r3, [r7, #7]
- /* Set memory */
- uint32_t i;
- for(i = 0; i < sizeof(SSD1306_Buffer); i++) {
- 8006156: 2300 movs r3, #0
- 8006158: 60fb str r3, [r7, #12]
- 800615a: e00d b.n 8006178 <ssd1306_Fill+0x2c>
- SSD1306_Buffer[i] = (color == Black) ? 0x00 : 0xFF;
- 800615c: 79fb ldrb r3, [r7, #7]
- 800615e: 2b00 cmp r3, #0
- 8006160: d101 bne.n 8006166 <ssd1306_Fill+0x1a>
- 8006162: 2100 movs r1, #0
- 8006164: e000 b.n 8006168 <ssd1306_Fill+0x1c>
- 8006166: 21ff movs r1, #255 ; 0xff
- 8006168: 4a08 ldr r2, [pc, #32] ; (800618c <ssd1306_Fill+0x40>)
- 800616a: 68fb ldr r3, [r7, #12]
- 800616c: 4413 add r3, r2
- 800616e: 460a mov r2, r1
- 8006170: 701a strb r2, [r3, #0]
- for(i = 0; i < sizeof(SSD1306_Buffer); i++) {
- 8006172: 68fb ldr r3, [r7, #12]
- 8006174: 3301 adds r3, #1
- 8006176: 60fb str r3, [r7, #12]
- 8006178: 68fb ldr r3, [r7, #12]
- 800617a: f5b3 7f00 cmp.w r3, #512 ; 0x200
- 800617e: d3ed bcc.n 800615c <ssd1306_Fill+0x10>
- }
- }
- 8006180: bf00 nop
- 8006182: bf00 nop
- 8006184: 3714 adds r7, #20
- 8006186: 46bd mov sp, r7
- 8006188: bc80 pop {r7}
- 800618a: 4770 bx lr
- 800618c: 20000208 .word 0x20000208
- 08006190 <ssd1306_UpdateScreen>:
- // Write the screenbuffer with changed to the screen
- void ssd1306_UpdateScreen(void) {
- 8006190: b580 push {r7, lr}
- 8006192: b082 sub sp, #8
- 8006194: af00 add r7, sp, #0
- // depends on the screen height:
- //
- // * 32px == 4 pages
- // * 64px == 8 pages
- // * 128px == 16 pages
- for(uint8_t i = 0; i < SSD1306_HEIGHT/8; i++) {
- 8006196: 2300 movs r3, #0
- 8006198: 71fb strb r3, [r7, #7]
- 800619a: e016 b.n 80061ca <ssd1306_UpdateScreen+0x3a>
- ssd1306_WriteCommand(0xB0 + i); // Set the current RAM page address.
- 800619c: 79fb ldrb r3, [r7, #7]
- 800619e: 3b50 subs r3, #80 ; 0x50
- 80061a0: b2db uxtb r3, r3
- 80061a2: 4618 mov r0, r3
- 80061a4: f7ff ff36 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x00);
- 80061a8: 2000 movs r0, #0
- 80061aa: f7ff ff33 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(0x10);
- 80061ae: 2010 movs r0, #16
- 80061b0: f7ff ff30 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteData(&SSD1306_Buffer[SSD1306_WIDTH*i],SSD1306_WIDTH);
- 80061b4: 79fb ldrb r3, [r7, #7]
- 80061b6: 01db lsls r3, r3, #7
- 80061b8: 4a08 ldr r2, [pc, #32] ; (80061dc <ssd1306_UpdateScreen+0x4c>)
- 80061ba: 4413 add r3, r2
- 80061bc: 2180 movs r1, #128 ; 0x80
- 80061be: 4618 mov r0, r3
- 80061c0: f7ff ff40 bl 8006044 <ssd1306_WriteData>
- for(uint8_t i = 0; i < SSD1306_HEIGHT/8; i++) {
- 80061c4: 79fb ldrb r3, [r7, #7]
- 80061c6: 3301 adds r3, #1
- 80061c8: 71fb strb r3, [r7, #7]
- 80061ca: 79fb ldrb r3, [r7, #7]
- 80061cc: 2b03 cmp r3, #3
- 80061ce: d9e5 bls.n 800619c <ssd1306_UpdateScreen+0xc>
- }
- }
- 80061d0: bf00 nop
- 80061d2: bf00 nop
- 80061d4: 3708 adds r7, #8
- 80061d6: 46bd mov sp, r7
- 80061d8: bd80 pop {r7, pc}
- 80061da: bf00 nop
- 80061dc: 20000208 .word 0x20000208
- 080061e0 <ssd1306_DrawPixel>:
- // Draw one pixel in the screenbuffer
- // X => X Coordinate
- // Y => Y Coordinate
- // color => Pixel color
- void ssd1306_DrawPixel(uint8_t x, uint8_t y, SSD1306_COLOR color) {
- 80061e0: b480 push {r7}
- 80061e2: b083 sub sp, #12
- 80061e4: af00 add r7, sp, #0
- 80061e6: 4603 mov r3, r0
- 80061e8: 71fb strb r3, [r7, #7]
- 80061ea: 460b mov r3, r1
- 80061ec: 71bb strb r3, [r7, #6]
- 80061ee: 4613 mov r3, r2
- 80061f0: 717b strb r3, [r7, #5]
- if(x >= SSD1306_WIDTH || y >= SSD1306_HEIGHT) {
- 80061f2: f997 3007 ldrsb.w r3, [r7, #7]
- 80061f6: 2b00 cmp r3, #0
- 80061f8: db48 blt.n 800628c <ssd1306_DrawPixel+0xac>
- 80061fa: 79bb ldrb r3, [r7, #6]
- 80061fc: 2b1f cmp r3, #31
- 80061fe: d845 bhi.n 800628c <ssd1306_DrawPixel+0xac>
- // Don't write outside the buffer
- return;
- }
-
- // Check if pixel should be inverted
- if(SSD1306.Inverted) {
- 8006200: 4b25 ldr r3, [pc, #148] ; (8006298 <ssd1306_DrawPixel+0xb8>)
- 8006202: 791b ldrb r3, [r3, #4]
- 8006204: 2b00 cmp r3, #0
- 8006206: d006 beq.n 8006216 <ssd1306_DrawPixel+0x36>
- color = (SSD1306_COLOR)!color;
- 8006208: 797b ldrb r3, [r7, #5]
- 800620a: 2b00 cmp r3, #0
- 800620c: bf0c ite eq
- 800620e: 2301 moveq r3, #1
- 8006210: 2300 movne r3, #0
- 8006212: b2db uxtb r3, r3
- 8006214: 717b strb r3, [r7, #5]
- }
-
- // Draw in the right color
- if(color == White) {
- 8006216: 797b ldrb r3, [r7, #5]
- 8006218: 2b01 cmp r3, #1
- 800621a: d11a bne.n 8006252 <ssd1306_DrawPixel+0x72>
- SSD1306_Buffer[x + (y / 8) * SSD1306_WIDTH] |= 1 << (y % 8);
- 800621c: 79fa ldrb r2, [r7, #7]
- 800621e: 79bb ldrb r3, [r7, #6]
- 8006220: 08db lsrs r3, r3, #3
- 8006222: b2d8 uxtb r0, r3
- 8006224: 4603 mov r3, r0
- 8006226: 01db lsls r3, r3, #7
- 8006228: 4413 add r3, r2
- 800622a: 4a1c ldr r2, [pc, #112] ; (800629c <ssd1306_DrawPixel+0xbc>)
- 800622c: 5cd3 ldrb r3, [r2, r3]
- 800622e: b25a sxtb r2, r3
- 8006230: 79bb ldrb r3, [r7, #6]
- 8006232: f003 0307 and.w r3, r3, #7
- 8006236: 2101 movs r1, #1
- 8006238: fa01 f303 lsl.w r3, r1, r3
- 800623c: b25b sxtb r3, r3
- 800623e: 4313 orrs r3, r2
- 8006240: b259 sxtb r1, r3
- 8006242: 79fa ldrb r2, [r7, #7]
- 8006244: 4603 mov r3, r0
- 8006246: 01db lsls r3, r3, #7
- 8006248: 4413 add r3, r2
- 800624a: b2c9 uxtb r1, r1
- 800624c: 4a13 ldr r2, [pc, #76] ; (800629c <ssd1306_DrawPixel+0xbc>)
- 800624e: 54d1 strb r1, [r2, r3]
- 8006250: e01d b.n 800628e <ssd1306_DrawPixel+0xae>
- } else {
- SSD1306_Buffer[x + (y / 8) * SSD1306_WIDTH] &= ~(1 << (y % 8));
- 8006252: 79fa ldrb r2, [r7, #7]
- 8006254: 79bb ldrb r3, [r7, #6]
- 8006256: 08db lsrs r3, r3, #3
- 8006258: b2d8 uxtb r0, r3
- 800625a: 4603 mov r3, r0
- 800625c: 01db lsls r3, r3, #7
- 800625e: 4413 add r3, r2
- 8006260: 4a0e ldr r2, [pc, #56] ; (800629c <ssd1306_DrawPixel+0xbc>)
- 8006262: 5cd3 ldrb r3, [r2, r3]
- 8006264: b25a sxtb r2, r3
- 8006266: 79bb ldrb r3, [r7, #6]
- 8006268: f003 0307 and.w r3, r3, #7
- 800626c: 2101 movs r1, #1
- 800626e: fa01 f303 lsl.w r3, r1, r3
- 8006272: b25b sxtb r3, r3
- 8006274: 43db mvns r3, r3
- 8006276: b25b sxtb r3, r3
- 8006278: 4013 ands r3, r2
- 800627a: b259 sxtb r1, r3
- 800627c: 79fa ldrb r2, [r7, #7]
- 800627e: 4603 mov r3, r0
- 8006280: 01db lsls r3, r3, #7
- 8006282: 4413 add r3, r2
- 8006284: b2c9 uxtb r1, r1
- 8006286: 4a05 ldr r2, [pc, #20] ; (800629c <ssd1306_DrawPixel+0xbc>)
- 8006288: 54d1 strb r1, [r2, r3]
- 800628a: e000 b.n 800628e <ssd1306_DrawPixel+0xae>
- return;
- 800628c: bf00 nop
- }
- }
- 800628e: 370c adds r7, #12
- 8006290: 46bd mov sp, r7
- 8006292: bc80 pop {r7}
- 8006294: 4770 bx lr
- 8006296: bf00 nop
- 8006298: 20000408 .word 0x20000408
- 800629c: 20000208 .word 0x20000208
- 080062a0 <ssd1306_WriteChar>:
- // Draw 1 char to the screen buffer
- // ch => char om weg te schrijven
- // Font => Font waarmee we gaan schrijven
- // color => Black or White
- char ssd1306_WriteChar(char ch, FontDef Font, SSD1306_COLOR color) {
- 80062a0: b590 push {r4, r7, lr}
- 80062a2: b089 sub sp, #36 ; 0x24
- 80062a4: af00 add r7, sp, #0
- 80062a6: 4604 mov r4, r0
- 80062a8: 1d38 adds r0, r7, #4
- 80062aa: e880 0006 stmia.w r0, {r1, r2}
- 80062ae: 461a mov r2, r3
- 80062b0: 4623 mov r3, r4
- 80062b2: 73fb strb r3, [r7, #15]
- 80062b4: 4613 mov r3, r2
- 80062b6: 73bb strb r3, [r7, #14]
- uint32_t i, b, j;
-
- // Check if character is valid
- if (ch < 32 || ch > 126)
- 80062b8: 7bfb ldrb r3, [r7, #15]
- 80062ba: 2b1f cmp r3, #31
- 80062bc: d902 bls.n 80062c4 <ssd1306_WriteChar+0x24>
- 80062be: 7bfb ldrb r3, [r7, #15]
- 80062c0: 2b7e cmp r3, #126 ; 0x7e
- 80062c2: d901 bls.n 80062c8 <ssd1306_WriteChar+0x28>
- return 0;
- 80062c4: 2300 movs r3, #0
- 80062c6: e06d b.n 80063a4 <ssd1306_WriteChar+0x104>
-
- // Check remaining space on current line
- if (SSD1306_WIDTH < (SSD1306.CurrentX + Font.FontWidth) ||
- 80062c8: 4b38 ldr r3, [pc, #224] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 80062ca: 881b ldrh r3, [r3, #0]
- 80062cc: 461a mov r2, r3
- 80062ce: 793b ldrb r3, [r7, #4]
- 80062d0: 4413 add r3, r2
- 80062d2: 2b80 cmp r3, #128 ; 0x80
- 80062d4: dc06 bgt.n 80062e4 <ssd1306_WriteChar+0x44>
- SSD1306_HEIGHT < (SSD1306.CurrentY + Font.FontHeight))
- 80062d6: 4b35 ldr r3, [pc, #212] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 80062d8: 885b ldrh r3, [r3, #2]
- 80062da: 461a mov r2, r3
- 80062dc: 797b ldrb r3, [r7, #5]
- 80062de: 4413 add r3, r2
- if (SSD1306_WIDTH < (SSD1306.CurrentX + Font.FontWidth) ||
- 80062e0: 2b20 cmp r3, #32
- 80062e2: dd01 ble.n 80062e8 <ssd1306_WriteChar+0x48>
- {
- // Not enough space on current line
- return 0;
- 80062e4: 2300 movs r3, #0
- 80062e6: e05d b.n 80063a4 <ssd1306_WriteChar+0x104>
- }
-
- // Use the font to write
- for(i = 0; i < Font.FontHeight; i++) {
- 80062e8: 2300 movs r3, #0
- 80062ea: 61fb str r3, [r7, #28]
- 80062ec: e04c b.n 8006388 <ssd1306_WriteChar+0xe8>
- b = Font.data[(ch - 32) * Font.FontHeight + i];
- 80062ee: 68ba ldr r2, [r7, #8]
- 80062f0: 7bfb ldrb r3, [r7, #15]
- 80062f2: 3b20 subs r3, #32
- 80062f4: 7979 ldrb r1, [r7, #5]
- 80062f6: fb01 f303 mul.w r3, r1, r3
- 80062fa: 4619 mov r1, r3
- 80062fc: 69fb ldr r3, [r7, #28]
- 80062fe: 440b add r3, r1
- 8006300: 005b lsls r3, r3, #1
- 8006302: 4413 add r3, r2
- 8006304: 881b ldrh r3, [r3, #0]
- 8006306: 617b str r3, [r7, #20]
- for(j = 0; j < Font.FontWidth; j++) {
- 8006308: 2300 movs r3, #0
- 800630a: 61bb str r3, [r7, #24]
- 800630c: e034 b.n 8006378 <ssd1306_WriteChar+0xd8>
- if((b << j) & 0x8000) {
- 800630e: 697a ldr r2, [r7, #20]
- 8006310: 69bb ldr r3, [r7, #24]
- 8006312: fa02 f303 lsl.w r3, r2, r3
- 8006316: f403 4300 and.w r3, r3, #32768 ; 0x8000
- 800631a: 2b00 cmp r3, #0
- 800631c: d012 beq.n 8006344 <ssd1306_WriteChar+0xa4>
- ssd1306_DrawPixel(SSD1306.CurrentX + j, (SSD1306.CurrentY + i), (SSD1306_COLOR) color);
- 800631e: 4b23 ldr r3, [pc, #140] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 8006320: 881b ldrh r3, [r3, #0]
- 8006322: b2da uxtb r2, r3
- 8006324: 69bb ldr r3, [r7, #24]
- 8006326: b2db uxtb r3, r3
- 8006328: 4413 add r3, r2
- 800632a: b2d8 uxtb r0, r3
- 800632c: 4b1f ldr r3, [pc, #124] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 800632e: 885b ldrh r3, [r3, #2]
- 8006330: b2da uxtb r2, r3
- 8006332: 69fb ldr r3, [r7, #28]
- 8006334: b2db uxtb r3, r3
- 8006336: 4413 add r3, r2
- 8006338: b2db uxtb r3, r3
- 800633a: 7bba ldrb r2, [r7, #14]
- 800633c: 4619 mov r1, r3
- 800633e: f7ff ff4f bl 80061e0 <ssd1306_DrawPixel>
- 8006342: e016 b.n 8006372 <ssd1306_WriteChar+0xd2>
- } else {
- ssd1306_DrawPixel(SSD1306.CurrentX + j, (SSD1306.CurrentY + i), (SSD1306_COLOR)!color);
- 8006344: 4b19 ldr r3, [pc, #100] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 8006346: 881b ldrh r3, [r3, #0]
- 8006348: b2da uxtb r2, r3
- 800634a: 69bb ldr r3, [r7, #24]
- 800634c: b2db uxtb r3, r3
- 800634e: 4413 add r3, r2
- 8006350: b2d8 uxtb r0, r3
- 8006352: 4b16 ldr r3, [pc, #88] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 8006354: 885b ldrh r3, [r3, #2]
- 8006356: b2da uxtb r2, r3
- 8006358: 69fb ldr r3, [r7, #28]
- 800635a: b2db uxtb r3, r3
- 800635c: 4413 add r3, r2
- 800635e: b2d9 uxtb r1, r3
- 8006360: 7bbb ldrb r3, [r7, #14]
- 8006362: 2b00 cmp r3, #0
- 8006364: bf0c ite eq
- 8006366: 2301 moveq r3, #1
- 8006368: 2300 movne r3, #0
- 800636a: b2db uxtb r3, r3
- 800636c: 461a mov r2, r3
- 800636e: f7ff ff37 bl 80061e0 <ssd1306_DrawPixel>
- for(j = 0; j < Font.FontWidth; j++) {
- 8006372: 69bb ldr r3, [r7, #24]
- 8006374: 3301 adds r3, #1
- 8006376: 61bb str r3, [r7, #24]
- 8006378: 793b ldrb r3, [r7, #4]
- 800637a: 461a mov r2, r3
- 800637c: 69bb ldr r3, [r7, #24]
- 800637e: 4293 cmp r3, r2
- 8006380: d3c5 bcc.n 800630e <ssd1306_WriteChar+0x6e>
- for(i = 0; i < Font.FontHeight; i++) {
- 8006382: 69fb ldr r3, [r7, #28]
- 8006384: 3301 adds r3, #1
- 8006386: 61fb str r3, [r7, #28]
- 8006388: 797b ldrb r3, [r7, #5]
- 800638a: 461a mov r2, r3
- 800638c: 69fb ldr r3, [r7, #28]
- 800638e: 4293 cmp r3, r2
- 8006390: d3ad bcc.n 80062ee <ssd1306_WriteChar+0x4e>
- }
- }
- }
-
- // The current space is now taken
- SSD1306.CurrentX += Font.FontWidth;
- 8006392: 4b06 ldr r3, [pc, #24] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 8006394: 881a ldrh r2, [r3, #0]
- 8006396: 793b ldrb r3, [r7, #4]
- 8006398: b29b uxth r3, r3
- 800639a: 4413 add r3, r2
- 800639c: b29a uxth r2, r3
- 800639e: 4b03 ldr r3, [pc, #12] ; (80063ac <ssd1306_WriteChar+0x10c>)
- 80063a0: 801a strh r2, [r3, #0]
-
- // Return written char for validation
- return ch;
- 80063a2: 7bfb ldrb r3, [r7, #15]
- }
- 80063a4: 4618 mov r0, r3
- 80063a6: 3724 adds r7, #36 ; 0x24
- 80063a8: 46bd mov sp, r7
- 80063aa: bd90 pop {r4, r7, pc}
- 80063ac: 20000408 .word 0x20000408
- 080063b0 <ssd1306_WriteString>:
- // Write full string to screenbuffer
- char ssd1306_WriteString(char* str, FontDef Font, SSD1306_COLOR color) {
- 80063b0: b580 push {r7, lr}
- 80063b2: b084 sub sp, #16
- 80063b4: af00 add r7, sp, #0
- 80063b6: 60f8 str r0, [r7, #12]
- 80063b8: 1d38 adds r0, r7, #4
- 80063ba: e880 0006 stmia.w r0, {r1, r2}
- 80063be: 70fb strb r3, [r7, #3]
- // Write until null-byte
- while (*str) {
- 80063c0: e012 b.n 80063e8 <ssd1306_WriteString+0x38>
- if (ssd1306_WriteChar(*str, Font, color) != *str) {
- 80063c2: 68fb ldr r3, [r7, #12]
- 80063c4: 7818 ldrb r0, [r3, #0]
- 80063c6: 78fb ldrb r3, [r7, #3]
- 80063c8: 1d3a adds r2, r7, #4
- 80063ca: ca06 ldmia r2, {r1, r2}
- 80063cc: f7ff ff68 bl 80062a0 <ssd1306_WriteChar>
- 80063d0: 4603 mov r3, r0
- 80063d2: 461a mov r2, r3
- 80063d4: 68fb ldr r3, [r7, #12]
- 80063d6: 781b ldrb r3, [r3, #0]
- 80063d8: 429a cmp r2, r3
- 80063da: d002 beq.n 80063e2 <ssd1306_WriteString+0x32>
- // Char could not be written
- return *str;
- 80063dc: 68fb ldr r3, [r7, #12]
- 80063de: 781b ldrb r3, [r3, #0]
- 80063e0: e008 b.n 80063f4 <ssd1306_WriteString+0x44>
- }
-
- // Next char
- str++;
- 80063e2: 68fb ldr r3, [r7, #12]
- 80063e4: 3301 adds r3, #1
- 80063e6: 60fb str r3, [r7, #12]
- while (*str) {
- 80063e8: 68fb ldr r3, [r7, #12]
- 80063ea: 781b ldrb r3, [r3, #0]
- 80063ec: 2b00 cmp r3, #0
- 80063ee: d1e8 bne.n 80063c2 <ssd1306_WriteString+0x12>
- }
-
- // Everything ok
- return *str;
- 80063f0: 68fb ldr r3, [r7, #12]
- 80063f2: 781b ldrb r3, [r3, #0]
- }
- 80063f4: 4618 mov r0, r3
- 80063f6: 3710 adds r7, #16
- 80063f8: 46bd mov sp, r7
- 80063fa: bd80 pop {r7, pc}
- 080063fc <ssd1306_SetCursor>:
- // Position the cursor
- void ssd1306_SetCursor(uint8_t x, uint8_t y) {
- 80063fc: b480 push {r7}
- 80063fe: b083 sub sp, #12
- 8006400: af00 add r7, sp, #0
- 8006402: 4603 mov r3, r0
- 8006404: 460a mov r2, r1
- 8006406: 71fb strb r3, [r7, #7]
- 8006408: 4613 mov r3, r2
- 800640a: 71bb strb r3, [r7, #6]
- SSD1306.CurrentX = x;
- 800640c: 79fb ldrb r3, [r7, #7]
- 800640e: b29a uxth r2, r3
- 8006410: 4b05 ldr r3, [pc, #20] ; (8006428 <ssd1306_SetCursor+0x2c>)
- 8006412: 801a strh r2, [r3, #0]
- SSD1306.CurrentY = y;
- 8006414: 79bb ldrb r3, [r7, #6]
- 8006416: b29a uxth r2, r3
- 8006418: 4b03 ldr r3, [pc, #12] ; (8006428 <ssd1306_SetCursor+0x2c>)
- 800641a: 805a strh r2, [r3, #2]
- }
- 800641c: bf00 nop
- 800641e: 370c adds r7, #12
- 8006420: 46bd mov sp, r7
- 8006422: bc80 pop {r7}
- 8006424: 4770 bx lr
- 8006426: bf00 nop
- 8006428: 20000408 .word 0x20000408
- 0800642c <ssd1306_Line>:
- // Draw line by Bresenhem's algorithm
- void ssd1306_Line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) {
- 800642c: b590 push {r4, r7, lr}
- 800642e: b089 sub sp, #36 ; 0x24
- 8006430: af00 add r7, sp, #0
- 8006432: 4604 mov r4, r0
- 8006434: 4608 mov r0, r1
- 8006436: 4611 mov r1, r2
- 8006438: 461a mov r2, r3
- 800643a: 4623 mov r3, r4
- 800643c: 71fb strb r3, [r7, #7]
- 800643e: 4603 mov r3, r0
- 8006440: 71bb strb r3, [r7, #6]
- 8006442: 460b mov r3, r1
- 8006444: 717b strb r3, [r7, #5]
- 8006446: 4613 mov r3, r2
- 8006448: 713b strb r3, [r7, #4]
- int32_t deltaX = abs(x2 - x1);
- 800644a: 797a ldrb r2, [r7, #5]
- 800644c: 79fb ldrb r3, [r7, #7]
- 800644e: 1ad3 subs r3, r2, r3
- 8006450: 2b00 cmp r3, #0
- 8006452: bfb8 it lt
- 8006454: 425b neglt r3, r3
- 8006456: 61bb str r3, [r7, #24]
- int32_t deltaY = abs(y2 - y1);
- 8006458: 793a ldrb r2, [r7, #4]
- 800645a: 79bb ldrb r3, [r7, #6]
- 800645c: 1ad3 subs r3, r2, r3
- 800645e: 2b00 cmp r3, #0
- 8006460: bfb8 it lt
- 8006462: 425b neglt r3, r3
- 8006464: 617b str r3, [r7, #20]
- int32_t signX = ((x1 < x2) ? 1 : -1);
- 8006466: 79fa ldrb r2, [r7, #7]
- 8006468: 797b ldrb r3, [r7, #5]
- 800646a: 429a cmp r2, r3
- 800646c: d201 bcs.n 8006472 <ssd1306_Line+0x46>
- 800646e: 2301 movs r3, #1
- 8006470: e001 b.n 8006476 <ssd1306_Line+0x4a>
- 8006472: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
- 8006476: 613b str r3, [r7, #16]
- int32_t signY = ((y1 < y2) ? 1 : -1);
- 8006478: 79ba ldrb r2, [r7, #6]
- 800647a: 793b ldrb r3, [r7, #4]
- 800647c: 429a cmp r2, r3
- 800647e: d201 bcs.n 8006484 <ssd1306_Line+0x58>
- 8006480: 2301 movs r3, #1
- 8006482: e001 b.n 8006488 <ssd1306_Line+0x5c>
- 8006484: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
- 8006488: 60fb str r3, [r7, #12]
- int32_t error = deltaX - deltaY;
- 800648a: 69ba ldr r2, [r7, #24]
- 800648c: 697b ldr r3, [r7, #20]
- 800648e: 1ad3 subs r3, r2, r3
- 8006490: 61fb str r3, [r7, #28]
- int32_t error2;
-
- ssd1306_DrawPixel(x2, y2, color);
- 8006492: f897 2030 ldrb.w r2, [r7, #48] ; 0x30
- 8006496: 7939 ldrb r1, [r7, #4]
- 8006498: 797b ldrb r3, [r7, #5]
- 800649a: 4618 mov r0, r3
- 800649c: f7ff fea0 bl 80061e0 <ssd1306_DrawPixel>
- while((x1 != x2) || (y1 != y2))
- 80064a0: e024 b.n 80064ec <ssd1306_Line+0xc0>
- {
- ssd1306_DrawPixel(x1, y1, color);
- 80064a2: f897 2030 ldrb.w r2, [r7, #48] ; 0x30
- 80064a6: 79b9 ldrb r1, [r7, #6]
- 80064a8: 79fb ldrb r3, [r7, #7]
- 80064aa: 4618 mov r0, r3
- 80064ac: f7ff fe98 bl 80061e0 <ssd1306_DrawPixel>
- error2 = error * 2;
- 80064b0: 69fb ldr r3, [r7, #28]
- 80064b2: 005b lsls r3, r3, #1
- 80064b4: 60bb str r3, [r7, #8]
- if(error2 > -deltaY)
- 80064b6: 697b ldr r3, [r7, #20]
- 80064b8: 425b negs r3, r3
- 80064ba: 68ba ldr r2, [r7, #8]
- 80064bc: 429a cmp r2, r3
- 80064be: dd08 ble.n 80064d2 <ssd1306_Line+0xa6>
- {
- error -= deltaY;
- 80064c0: 69fa ldr r2, [r7, #28]
- 80064c2: 697b ldr r3, [r7, #20]
- 80064c4: 1ad3 subs r3, r2, r3
- 80064c6: 61fb str r3, [r7, #28]
- x1 += signX;
- 80064c8: 693b ldr r3, [r7, #16]
- 80064ca: b2da uxtb r2, r3
- 80064cc: 79fb ldrb r3, [r7, #7]
- 80064ce: 4413 add r3, r2
- 80064d0: 71fb strb r3, [r7, #7]
- else
- {
- /*nothing to do*/
- }
-
- if(error2 < deltaX)
- 80064d2: 68ba ldr r2, [r7, #8]
- 80064d4: 69bb ldr r3, [r7, #24]
- 80064d6: 429a cmp r2, r3
- 80064d8: da08 bge.n 80064ec <ssd1306_Line+0xc0>
- {
- error += deltaX;
- 80064da: 69fa ldr r2, [r7, #28]
- 80064dc: 69bb ldr r3, [r7, #24]
- 80064de: 4413 add r3, r2
- 80064e0: 61fb str r3, [r7, #28]
- y1 += signY;
- 80064e2: 68fb ldr r3, [r7, #12]
- 80064e4: b2da uxtb r2, r3
- 80064e6: 79bb ldrb r3, [r7, #6]
- 80064e8: 4413 add r3, r2
- 80064ea: 71bb strb r3, [r7, #6]
- while((x1 != x2) || (y1 != y2))
- 80064ec: 79fa ldrb r2, [r7, #7]
- 80064ee: 797b ldrb r3, [r7, #5]
- 80064f0: 429a cmp r2, r3
- 80064f2: d1d6 bne.n 80064a2 <ssd1306_Line+0x76>
- 80064f4: 79ba ldrb r2, [r7, #6]
- 80064f6: 793b ldrb r3, [r7, #4]
- 80064f8: 429a cmp r2, r3
- 80064fa: d1d2 bne.n 80064a2 <ssd1306_Line+0x76>
- else
- {
- /*nothing to do*/
- }
- }
- return;
- 80064fc: bf00 nop
- }
- 80064fe: 3724 adds r7, #36 ; 0x24
- 8006500: 46bd mov sp, r7
- 8006502: bd90 pop {r4, r7, pc}
- 08006504 <ssd1306_DrawRectangle>:
- return;
- }
- //Draw rectangle
- void ssd1306_DrawRectangle(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) {
- 8006504: b590 push {r4, r7, lr}
- 8006506: b085 sub sp, #20
- 8006508: af02 add r7, sp, #8
- 800650a: 4604 mov r4, r0
- 800650c: 4608 mov r0, r1
- 800650e: 4611 mov r1, r2
- 8006510: 461a mov r2, r3
- 8006512: 4623 mov r3, r4
- 8006514: 71fb strb r3, [r7, #7]
- 8006516: 4603 mov r3, r0
- 8006518: 71bb strb r3, [r7, #6]
- 800651a: 460b mov r3, r1
- 800651c: 717b strb r3, [r7, #5]
- 800651e: 4613 mov r3, r2
- 8006520: 713b strb r3, [r7, #4]
- ssd1306_Line(x1,y1,x2,y1,color);
- 8006522: 79bc ldrb r4, [r7, #6]
- 8006524: 797a ldrb r2, [r7, #5]
- 8006526: 79b9 ldrb r1, [r7, #6]
- 8006528: 79f8 ldrb r0, [r7, #7]
- 800652a: 7e3b ldrb r3, [r7, #24]
- 800652c: 9300 str r3, [sp, #0]
- 800652e: 4623 mov r3, r4
- 8006530: f7ff ff7c bl 800642c <ssd1306_Line>
- ssd1306_Line(x2,y1,x2,y2,color);
- 8006534: 793c ldrb r4, [r7, #4]
- 8006536: 797a ldrb r2, [r7, #5]
- 8006538: 79b9 ldrb r1, [r7, #6]
- 800653a: 7978 ldrb r0, [r7, #5]
- 800653c: 7e3b ldrb r3, [r7, #24]
- 800653e: 9300 str r3, [sp, #0]
- 8006540: 4623 mov r3, r4
- 8006542: f7ff ff73 bl 800642c <ssd1306_Line>
- ssd1306_Line(x2,y2,x1,y2,color);
- 8006546: 793c ldrb r4, [r7, #4]
- 8006548: 79fa ldrb r2, [r7, #7]
- 800654a: 7939 ldrb r1, [r7, #4]
- 800654c: 7978 ldrb r0, [r7, #5]
- 800654e: 7e3b ldrb r3, [r7, #24]
- 8006550: 9300 str r3, [sp, #0]
- 8006552: 4623 mov r3, r4
- 8006554: f7ff ff6a bl 800642c <ssd1306_Line>
- ssd1306_Line(x1,y2,x1,y1,color);
- 8006558: 79bc ldrb r4, [r7, #6]
- 800655a: 79fa ldrb r2, [r7, #7]
- 800655c: 7939 ldrb r1, [r7, #4]
- 800655e: 79f8 ldrb r0, [r7, #7]
- 8006560: 7e3b ldrb r3, [r7, #24]
- 8006562: 9300 str r3, [sp, #0]
- 8006564: 4623 mov r3, r4
- 8006566: f7ff ff61 bl 800642c <ssd1306_Line>
- return;
- 800656a: bf00 nop
- }
- 800656c: 370c adds r7, #12
- 800656e: 46bd mov sp, r7
- 8006570: bd90 pop {r4, r7, pc}
- 08006572 <ssd1306_SetContrast>:
- void ssd1306_SetContrast(const uint8_t value) {
- 8006572: b580 push {r7, lr}
- 8006574: b084 sub sp, #16
- 8006576: af00 add r7, sp, #0
- 8006578: 4603 mov r3, r0
- 800657a: 71fb strb r3, [r7, #7]
- const uint8_t kSetContrastControlRegister = 0x81;
- 800657c: 2381 movs r3, #129 ; 0x81
- 800657e: 73fb strb r3, [r7, #15]
- ssd1306_WriteCommand(kSetContrastControlRegister);
- 8006580: 7bfb ldrb r3, [r7, #15]
- 8006582: 4618 mov r0, r3
- 8006584: f7ff fd46 bl 8006014 <ssd1306_WriteCommand>
- ssd1306_WriteCommand(value);
- 8006588: 79fb ldrb r3, [r7, #7]
- 800658a: 4618 mov r0, r3
- 800658c: f7ff fd42 bl 8006014 <ssd1306_WriteCommand>
- }
- 8006590: bf00 nop
- 8006592: 3710 adds r7, #16
- 8006594: 46bd mov sp, r7
- 8006596: bd80 pop {r7, pc}
- 08006598 <ssd1306_SetDisplayOn>:
- void ssd1306_SetDisplayOn(const uint8_t on) {
- 8006598: b580 push {r7, lr}
- 800659a: b084 sub sp, #16
- 800659c: af00 add r7, sp, #0
- 800659e: 4603 mov r3, r0
- 80065a0: 71fb strb r3, [r7, #7]
- uint8_t value;
- if (on) {
- 80065a2: 79fb ldrb r3, [r7, #7]
- 80065a4: 2b00 cmp r3, #0
- 80065a6: d005 beq.n 80065b4 <ssd1306_SetDisplayOn+0x1c>
- value = 0xAF; // Display on
- 80065a8: 23af movs r3, #175 ; 0xaf
- 80065aa: 73fb strb r3, [r7, #15]
- SSD1306.DisplayOn = 1;
- 80065ac: 4b08 ldr r3, [pc, #32] ; (80065d0 <ssd1306_SetDisplayOn+0x38>)
- 80065ae: 2201 movs r2, #1
- 80065b0: 719a strb r2, [r3, #6]
- 80065b2: e004 b.n 80065be <ssd1306_SetDisplayOn+0x26>
- } else {
- value = 0xAE; // Display off
- 80065b4: 23ae movs r3, #174 ; 0xae
- 80065b6: 73fb strb r3, [r7, #15]
- SSD1306.DisplayOn = 0;
- 80065b8: 4b05 ldr r3, [pc, #20] ; (80065d0 <ssd1306_SetDisplayOn+0x38>)
- 80065ba: 2200 movs r2, #0
- 80065bc: 719a strb r2, [r3, #6]
- }
- ssd1306_WriteCommand(value);
- 80065be: 7bfb ldrb r3, [r7, #15]
- 80065c0: 4618 mov r0, r3
- 80065c2: f7ff fd27 bl 8006014 <ssd1306_WriteCommand>
- }
- 80065c6: bf00 nop
- 80065c8: 3710 adds r7, #16
- 80065ca: 46bd mov sp, r7
- 80065cc: bd80 pop {r7, pc}
- 80065ce: bf00 nop
- 80065d0: 20000408 .word 0x20000408
- 080065d4 <__errno>:
- 80065d4: 4b01 ldr r3, [pc, #4] ; (80065dc <__errno+0x8>)
- 80065d6: 6818 ldr r0, [r3, #0]
- 80065d8: 4770 bx lr
- 80065da: bf00 nop
- 80065dc: 20000014 .word 0x20000014
- 080065e0 <__libc_init_array>:
- 80065e0: b570 push {r4, r5, r6, lr}
- 80065e2: 2600 movs r6, #0
- 80065e4: 4d0c ldr r5, [pc, #48] ; (8006618 <__libc_init_array+0x38>)
- 80065e6: 4c0d ldr r4, [pc, #52] ; (800661c <__libc_init_array+0x3c>)
- 80065e8: 1b64 subs r4, r4, r5
- 80065ea: 10a4 asrs r4, r4, #2
- 80065ec: 42a6 cmp r6, r4
- 80065ee: d109 bne.n 8006604 <__libc_init_array+0x24>
- 80065f0: f002 febc bl 800936c <_init>
- 80065f4: 2600 movs r6, #0
- 80065f6: 4d0a ldr r5, [pc, #40] ; (8006620 <__libc_init_array+0x40>)
- 80065f8: 4c0a ldr r4, [pc, #40] ; (8006624 <__libc_init_array+0x44>)
- 80065fa: 1b64 subs r4, r4, r5
- 80065fc: 10a4 asrs r4, r4, #2
- 80065fe: 42a6 cmp r6, r4
- 8006600: d105 bne.n 800660e <__libc_init_array+0x2e>
- 8006602: bd70 pop {r4, r5, r6, pc}
- 8006604: f855 3b04 ldr.w r3, [r5], #4
- 8006608: 4798 blx r3
- 800660a: 3601 adds r6, #1
- 800660c: e7ee b.n 80065ec <__libc_init_array+0xc>
- 800660e: f855 3b04 ldr.w r3, [r5], #4
- 8006612: 4798 blx r3
- 8006614: 3601 adds r6, #1
- 8006616: e7f2 b.n 80065fe <__libc_init_array+0x1e>
- 8006618: 0800a4fc .word 0x0800a4fc
- 800661c: 0800a4fc .word 0x0800a4fc
- 8006620: 0800a4fc .word 0x0800a4fc
- 8006624: 0800a500 .word 0x0800a500
- 08006628 <memcpy>:
- 8006628: 440a add r2, r1
- 800662a: 4291 cmp r1, r2
- 800662c: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff
- 8006630: d100 bne.n 8006634 <memcpy+0xc>
- 8006632: 4770 bx lr
- 8006634: b510 push {r4, lr}
- 8006636: f811 4b01 ldrb.w r4, [r1], #1
- 800663a: 4291 cmp r1, r2
- 800663c: f803 4f01 strb.w r4, [r3, #1]!
- 8006640: d1f9 bne.n 8006636 <memcpy+0xe>
- 8006642: bd10 pop {r4, pc}
- 08006644 <memmove>:
- 8006644: 4288 cmp r0, r1
- 8006646: b510 push {r4, lr}
- 8006648: eb01 0402 add.w r4, r1, r2
- 800664c: d902 bls.n 8006654 <memmove+0x10>
- 800664e: 4284 cmp r4, r0
- 8006650: 4623 mov r3, r4
- 8006652: d807 bhi.n 8006664 <memmove+0x20>
- 8006654: 1e43 subs r3, r0, #1
- 8006656: 42a1 cmp r1, r4
- 8006658: d008 beq.n 800666c <memmove+0x28>
- 800665a: f811 2b01 ldrb.w r2, [r1], #1
- 800665e: f803 2f01 strb.w r2, [r3, #1]!
- 8006662: e7f8 b.n 8006656 <memmove+0x12>
- 8006664: 4601 mov r1, r0
- 8006666: 4402 add r2, r0
- 8006668: 428a cmp r2, r1
- 800666a: d100 bne.n 800666e <memmove+0x2a>
- 800666c: bd10 pop {r4, pc}
- 800666e: f813 4d01 ldrb.w r4, [r3, #-1]!
- 8006672: f802 4d01 strb.w r4, [r2, #-1]!
- 8006676: e7f7 b.n 8006668 <memmove+0x24>
- 08006678 <memset>:
- 8006678: 4603 mov r3, r0
- 800667a: 4402 add r2, r0
- 800667c: 4293 cmp r3, r2
- 800667e: d100 bne.n 8006682 <memset+0xa>
- 8006680: 4770 bx lr
- 8006682: f803 1b01 strb.w r1, [r3], #1
- 8006686: e7f9 b.n 800667c <memset+0x4>
- 08006688 <__cvt>:
- 8006688: 2b00 cmp r3, #0
- 800668a: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
- 800668e: 461f mov r7, r3
- 8006690: bfbb ittet lt
- 8006692: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
- 8006696: 461f movlt r7, r3
- 8006698: 2300 movge r3, #0
- 800669a: 232d movlt r3, #45 ; 0x2d
- 800669c: b088 sub sp, #32
- 800669e: 4614 mov r4, r2
- 80066a0: 9a12 ldr r2, [sp, #72] ; 0x48
- 80066a2: 9d10 ldr r5, [sp, #64] ; 0x40
- 80066a4: 7013 strb r3, [r2, #0]
- 80066a6: 9b14 ldr r3, [sp, #80] ; 0x50
- 80066a8: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c
- 80066ac: f023 0820 bic.w r8, r3, #32
- 80066b0: f1b8 0f46 cmp.w r8, #70 ; 0x46
- 80066b4: d005 beq.n 80066c2 <__cvt+0x3a>
- 80066b6: f1b8 0f45 cmp.w r8, #69 ; 0x45
- 80066ba: d100 bne.n 80066be <__cvt+0x36>
- 80066bc: 3501 adds r5, #1
- 80066be: 2302 movs r3, #2
- 80066c0: e000 b.n 80066c4 <__cvt+0x3c>
- 80066c2: 2303 movs r3, #3
- 80066c4: aa07 add r2, sp, #28
- 80066c6: 9204 str r2, [sp, #16]
- 80066c8: aa06 add r2, sp, #24
- 80066ca: e9cd a202 strd sl, r2, [sp, #8]
- 80066ce: e9cd 3500 strd r3, r5, [sp]
- 80066d2: 4622 mov r2, r4
- 80066d4: 463b mov r3, r7
- 80066d6: f000 fce7 bl 80070a8 <_dtoa_r>
- 80066da: f1b8 0f47 cmp.w r8, #71 ; 0x47
- 80066de: 4606 mov r6, r0
- 80066e0: d102 bne.n 80066e8 <__cvt+0x60>
- 80066e2: 9b11 ldr r3, [sp, #68] ; 0x44
- 80066e4: 07db lsls r3, r3, #31
- 80066e6: d522 bpl.n 800672e <__cvt+0xa6>
- 80066e8: f1b8 0f46 cmp.w r8, #70 ; 0x46
- 80066ec: eb06 0905 add.w r9, r6, r5
- 80066f0: d110 bne.n 8006714 <__cvt+0x8c>
- 80066f2: 7833 ldrb r3, [r6, #0]
- 80066f4: 2b30 cmp r3, #48 ; 0x30
- 80066f6: d10a bne.n 800670e <__cvt+0x86>
- 80066f8: 2200 movs r2, #0
- 80066fa: 2300 movs r3, #0
- 80066fc: 4620 mov r0, r4
- 80066fe: 4639 mov r1, r7
- 8006700: f7fa f96a bl 80009d8 <__aeabi_dcmpeq>
- 8006704: b918 cbnz r0, 800670e <__cvt+0x86>
- 8006706: f1c5 0501 rsb r5, r5, #1
- 800670a: f8ca 5000 str.w r5, [sl]
- 800670e: f8da 3000 ldr.w r3, [sl]
- 8006712: 4499 add r9, r3
- 8006714: 2200 movs r2, #0
- 8006716: 2300 movs r3, #0
- 8006718: 4620 mov r0, r4
- 800671a: 4639 mov r1, r7
- 800671c: f7fa f95c bl 80009d8 <__aeabi_dcmpeq>
- 8006720: b108 cbz r0, 8006726 <__cvt+0x9e>
- 8006722: f8cd 901c str.w r9, [sp, #28]
- 8006726: 2230 movs r2, #48 ; 0x30
- 8006728: 9b07 ldr r3, [sp, #28]
- 800672a: 454b cmp r3, r9
- 800672c: d307 bcc.n 800673e <__cvt+0xb6>
- 800672e: 4630 mov r0, r6
- 8006730: 9b07 ldr r3, [sp, #28]
- 8006732: 9a15 ldr r2, [sp, #84] ; 0x54
- 8006734: 1b9b subs r3, r3, r6
- 8006736: 6013 str r3, [r2, #0]
- 8006738: b008 add sp, #32
- 800673a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 800673e: 1c59 adds r1, r3, #1
- 8006740: 9107 str r1, [sp, #28]
- 8006742: 701a strb r2, [r3, #0]
- 8006744: e7f0 b.n 8006728 <__cvt+0xa0>
- 08006746 <__exponent>:
- 8006746: 4603 mov r3, r0
- 8006748: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
- 800674a: 2900 cmp r1, #0
- 800674c: f803 2b02 strb.w r2, [r3], #2
- 8006750: bfb6 itet lt
- 8006752: 222d movlt r2, #45 ; 0x2d
- 8006754: 222b movge r2, #43 ; 0x2b
- 8006756: 4249 neglt r1, r1
- 8006758: 2909 cmp r1, #9
- 800675a: 7042 strb r2, [r0, #1]
- 800675c: dd2b ble.n 80067b6 <__exponent+0x70>
- 800675e: f10d 0407 add.w r4, sp, #7
- 8006762: 46a4 mov ip, r4
- 8006764: 270a movs r7, #10
- 8006766: fb91 f6f7 sdiv r6, r1, r7
- 800676a: 460a mov r2, r1
- 800676c: 46a6 mov lr, r4
- 800676e: fb07 1516 mls r5, r7, r6, r1
- 8006772: 2a63 cmp r2, #99 ; 0x63
- 8006774: f105 0530 add.w r5, r5, #48 ; 0x30
- 8006778: 4631 mov r1, r6
- 800677a: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff
- 800677e: f80e 5c01 strb.w r5, [lr, #-1]
- 8006782: dcf0 bgt.n 8006766 <__exponent+0x20>
- 8006784: 3130 adds r1, #48 ; 0x30
- 8006786: f1ae 0502 sub.w r5, lr, #2
- 800678a: f804 1c01 strb.w r1, [r4, #-1]
- 800678e: 4629 mov r1, r5
- 8006790: 1c44 adds r4, r0, #1
- 8006792: 4561 cmp r1, ip
- 8006794: d30a bcc.n 80067ac <__exponent+0x66>
- 8006796: f10d 0209 add.w r2, sp, #9
- 800679a: eba2 020e sub.w r2, r2, lr
- 800679e: 4565 cmp r5, ip
- 80067a0: bf88 it hi
- 80067a2: 2200 movhi r2, #0
- 80067a4: 4413 add r3, r2
- 80067a6: 1a18 subs r0, r3, r0
- 80067a8: b003 add sp, #12
- 80067aa: bdf0 pop {r4, r5, r6, r7, pc}
- 80067ac: f811 2b01 ldrb.w r2, [r1], #1
- 80067b0: f804 2f01 strb.w r2, [r4, #1]!
- 80067b4: e7ed b.n 8006792 <__exponent+0x4c>
- 80067b6: 2330 movs r3, #48 ; 0x30
- 80067b8: 3130 adds r1, #48 ; 0x30
- 80067ba: 7083 strb r3, [r0, #2]
- 80067bc: 70c1 strb r1, [r0, #3]
- 80067be: 1d03 adds r3, r0, #4
- 80067c0: e7f1 b.n 80067a6 <__exponent+0x60>
- ...
- 080067c4 <_printf_float>:
- 80067c4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 80067c8: b091 sub sp, #68 ; 0x44
- 80067ca: 460c mov r4, r1
- 80067cc: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68
- 80067d0: 4616 mov r6, r2
- 80067d2: 461f mov r7, r3
- 80067d4: 4605 mov r5, r0
- 80067d6: f001 fa55 bl 8007c84 <_localeconv_r>
- 80067da: 6803 ldr r3, [r0, #0]
- 80067dc: 4618 mov r0, r3
- 80067de: 9309 str r3, [sp, #36] ; 0x24
- 80067e0: f7f9 fcce bl 8000180 <strlen>
- 80067e4: 2300 movs r3, #0
- 80067e6: 930e str r3, [sp, #56] ; 0x38
- 80067e8: f8d8 3000 ldr.w r3, [r8]
- 80067ec: 900a str r0, [sp, #40] ; 0x28
- 80067ee: 3307 adds r3, #7
- 80067f0: f023 0307 bic.w r3, r3, #7
- 80067f4: f103 0208 add.w r2, r3, #8
- 80067f8: f894 9018 ldrb.w r9, [r4, #24]
- 80067fc: f8d4 b000 ldr.w fp, [r4]
- 8006800: f8c8 2000 str.w r2, [r8]
- 8006804: e9d3 2300 ldrd r2, r3, [r3]
- 8006808: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
- 800680c: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48
- 8006810: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000
- 8006814: 930b str r3, [sp, #44] ; 0x2c
- 8006816: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 800681a: 4640 mov r0, r8
- 800681c: 4b9c ldr r3, [pc, #624] ; (8006a90 <_printf_float+0x2cc>)
- 800681e: 990b ldr r1, [sp, #44] ; 0x2c
- 8006820: f7fa f90c bl 8000a3c <__aeabi_dcmpun>
- 8006824: bb70 cbnz r0, 8006884 <_printf_float+0xc0>
- 8006826: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 800682a: 4640 mov r0, r8
- 800682c: 4b98 ldr r3, [pc, #608] ; (8006a90 <_printf_float+0x2cc>)
- 800682e: 990b ldr r1, [sp, #44] ; 0x2c
- 8006830: f7fa f8e6 bl 8000a00 <__aeabi_dcmple>
- 8006834: bb30 cbnz r0, 8006884 <_printf_float+0xc0>
- 8006836: 2200 movs r2, #0
- 8006838: 2300 movs r3, #0
- 800683a: 4640 mov r0, r8
- 800683c: 4651 mov r1, sl
- 800683e: f7fa f8d5 bl 80009ec <__aeabi_dcmplt>
- 8006842: b110 cbz r0, 800684a <_printf_float+0x86>
- 8006844: 232d movs r3, #45 ; 0x2d
- 8006846: f884 3043 strb.w r3, [r4, #67] ; 0x43
- 800684a: 4b92 ldr r3, [pc, #584] ; (8006a94 <_printf_float+0x2d0>)
- 800684c: 4892 ldr r0, [pc, #584] ; (8006a98 <_printf_float+0x2d4>)
- 800684e: f1b9 0f47 cmp.w r9, #71 ; 0x47
- 8006852: bf94 ite ls
- 8006854: 4698 movls r8, r3
- 8006856: 4680 movhi r8, r0
- 8006858: 2303 movs r3, #3
- 800685a: f04f 0a00 mov.w sl, #0
- 800685e: 6123 str r3, [r4, #16]
- 8006860: f02b 0304 bic.w r3, fp, #4
- 8006864: 6023 str r3, [r4, #0]
- 8006866: 4633 mov r3, r6
- 8006868: 4621 mov r1, r4
- 800686a: 4628 mov r0, r5
- 800686c: 9700 str r7, [sp, #0]
- 800686e: aa0f add r2, sp, #60 ; 0x3c
- 8006870: f000 f9d4 bl 8006c1c <_printf_common>
- 8006874: 3001 adds r0, #1
- 8006876: f040 8090 bne.w 800699a <_printf_float+0x1d6>
- 800687a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 800687e: b011 add sp, #68 ; 0x44
- 8006880: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 8006884: 4642 mov r2, r8
- 8006886: 4653 mov r3, sl
- 8006888: 4640 mov r0, r8
- 800688a: 4651 mov r1, sl
- 800688c: f7fa f8d6 bl 8000a3c <__aeabi_dcmpun>
- 8006890: b148 cbz r0, 80068a6 <_printf_float+0xe2>
- 8006892: f1ba 0f00 cmp.w sl, #0
- 8006896: bfb8 it lt
- 8006898: 232d movlt r3, #45 ; 0x2d
- 800689a: 4880 ldr r0, [pc, #512] ; (8006a9c <_printf_float+0x2d8>)
- 800689c: bfb8 it lt
- 800689e: f884 3043 strblt.w r3, [r4, #67] ; 0x43
- 80068a2: 4b7f ldr r3, [pc, #508] ; (8006aa0 <_printf_float+0x2dc>)
- 80068a4: e7d3 b.n 800684e <_printf_float+0x8a>
- 80068a6: 6863 ldr r3, [r4, #4]
- 80068a8: f009 01df and.w r1, r9, #223 ; 0xdf
- 80068ac: 1c5a adds r2, r3, #1
- 80068ae: d142 bne.n 8006936 <_printf_float+0x172>
- 80068b0: 2306 movs r3, #6
- 80068b2: 6063 str r3, [r4, #4]
- 80068b4: 2200 movs r2, #0
- 80068b6: 9206 str r2, [sp, #24]
- 80068b8: aa0e add r2, sp, #56 ; 0x38
- 80068ba: e9cd 9204 strd r9, r2, [sp, #16]
- 80068be: aa0d add r2, sp, #52 ; 0x34
- 80068c0: f44b 6380 orr.w r3, fp, #1024 ; 0x400
- 80068c4: 9203 str r2, [sp, #12]
- 80068c6: f10d 0233 add.w r2, sp, #51 ; 0x33
- 80068ca: e9cd 3201 strd r3, r2, [sp, #4]
- 80068ce: 6023 str r3, [r4, #0]
- 80068d0: 6863 ldr r3, [r4, #4]
- 80068d2: 4642 mov r2, r8
- 80068d4: 9300 str r3, [sp, #0]
- 80068d6: 4628 mov r0, r5
- 80068d8: 4653 mov r3, sl
- 80068da: 910b str r1, [sp, #44] ; 0x2c
- 80068dc: f7ff fed4 bl 8006688 <__cvt>
- 80068e0: 990b ldr r1, [sp, #44] ; 0x2c
- 80068e2: 4680 mov r8, r0
- 80068e4: 2947 cmp r1, #71 ; 0x47
- 80068e6: 990d ldr r1, [sp, #52] ; 0x34
- 80068e8: d108 bne.n 80068fc <_printf_float+0x138>
- 80068ea: 1cc8 adds r0, r1, #3
- 80068ec: db02 blt.n 80068f4 <_printf_float+0x130>
- 80068ee: 6863 ldr r3, [r4, #4]
- 80068f0: 4299 cmp r1, r3
- 80068f2: dd40 ble.n 8006976 <_printf_float+0x1b2>
- 80068f4: f1a9 0902 sub.w r9, r9, #2
- 80068f8: fa5f f989 uxtb.w r9, r9
- 80068fc: f1b9 0f65 cmp.w r9, #101 ; 0x65
- 8006900: d81f bhi.n 8006942 <_printf_float+0x17e>
- 8006902: 464a mov r2, r9
- 8006904: 3901 subs r1, #1
- 8006906: f104 0050 add.w r0, r4, #80 ; 0x50
- 800690a: 910d str r1, [sp, #52] ; 0x34
- 800690c: f7ff ff1b bl 8006746 <__exponent>
- 8006910: 9a0e ldr r2, [sp, #56] ; 0x38
- 8006912: 4682 mov sl, r0
- 8006914: 1813 adds r3, r2, r0
- 8006916: 2a01 cmp r2, #1
- 8006918: 6123 str r3, [r4, #16]
- 800691a: dc02 bgt.n 8006922 <_printf_float+0x15e>
- 800691c: 6822 ldr r2, [r4, #0]
- 800691e: 07d2 lsls r2, r2, #31
- 8006920: d501 bpl.n 8006926 <_printf_float+0x162>
- 8006922: 3301 adds r3, #1
- 8006924: 6123 str r3, [r4, #16]
- 8006926: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
- 800692a: 2b00 cmp r3, #0
- 800692c: d09b beq.n 8006866 <_printf_float+0xa2>
- 800692e: 232d movs r3, #45 ; 0x2d
- 8006930: f884 3043 strb.w r3, [r4, #67] ; 0x43
- 8006934: e797 b.n 8006866 <_printf_float+0xa2>
- 8006936: 2947 cmp r1, #71 ; 0x47
- 8006938: d1bc bne.n 80068b4 <_printf_float+0xf0>
- 800693a: 2b00 cmp r3, #0
- 800693c: d1ba bne.n 80068b4 <_printf_float+0xf0>
- 800693e: 2301 movs r3, #1
- 8006940: e7b7 b.n 80068b2 <_printf_float+0xee>
- 8006942: f1b9 0f66 cmp.w r9, #102 ; 0x66
- 8006946: d118 bne.n 800697a <_printf_float+0x1b6>
- 8006948: 2900 cmp r1, #0
- 800694a: 6863 ldr r3, [r4, #4]
- 800694c: dd0b ble.n 8006966 <_printf_float+0x1a2>
- 800694e: 6121 str r1, [r4, #16]
- 8006950: b913 cbnz r3, 8006958 <_printf_float+0x194>
- 8006952: 6822 ldr r2, [r4, #0]
- 8006954: 07d0 lsls r0, r2, #31
- 8006956: d502 bpl.n 800695e <_printf_float+0x19a>
- 8006958: 3301 adds r3, #1
- 800695a: 440b add r3, r1
- 800695c: 6123 str r3, [r4, #16]
- 800695e: f04f 0a00 mov.w sl, #0
- 8006962: 65a1 str r1, [r4, #88] ; 0x58
- 8006964: e7df b.n 8006926 <_printf_float+0x162>
- 8006966: b913 cbnz r3, 800696e <_printf_float+0x1aa>
- 8006968: 6822 ldr r2, [r4, #0]
- 800696a: 07d2 lsls r2, r2, #31
- 800696c: d501 bpl.n 8006972 <_printf_float+0x1ae>
- 800696e: 3302 adds r3, #2
- 8006970: e7f4 b.n 800695c <_printf_float+0x198>
- 8006972: 2301 movs r3, #1
- 8006974: e7f2 b.n 800695c <_printf_float+0x198>
- 8006976: f04f 0967 mov.w r9, #103 ; 0x67
- 800697a: 9b0e ldr r3, [sp, #56] ; 0x38
- 800697c: 4299 cmp r1, r3
- 800697e: db05 blt.n 800698c <_printf_float+0x1c8>
- 8006980: 6823 ldr r3, [r4, #0]
- 8006982: 6121 str r1, [r4, #16]
- 8006984: 07d8 lsls r0, r3, #31
- 8006986: d5ea bpl.n 800695e <_printf_float+0x19a>
- 8006988: 1c4b adds r3, r1, #1
- 800698a: e7e7 b.n 800695c <_printf_float+0x198>
- 800698c: 2900 cmp r1, #0
- 800698e: bfcc ite gt
- 8006990: 2201 movgt r2, #1
- 8006992: f1c1 0202 rsble r2, r1, #2
- 8006996: 4413 add r3, r2
- 8006998: e7e0 b.n 800695c <_printf_float+0x198>
- 800699a: 6823 ldr r3, [r4, #0]
- 800699c: 055a lsls r2, r3, #21
- 800699e: d407 bmi.n 80069b0 <_printf_float+0x1ec>
- 80069a0: 6923 ldr r3, [r4, #16]
- 80069a2: 4642 mov r2, r8
- 80069a4: 4631 mov r1, r6
- 80069a6: 4628 mov r0, r5
- 80069a8: 47b8 blx r7
- 80069aa: 3001 adds r0, #1
- 80069ac: d12b bne.n 8006a06 <_printf_float+0x242>
- 80069ae: e764 b.n 800687a <_printf_float+0xb6>
- 80069b0: f1b9 0f65 cmp.w r9, #101 ; 0x65
- 80069b4: f240 80dd bls.w 8006b72 <_printf_float+0x3ae>
- 80069b8: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
- 80069bc: 2200 movs r2, #0
- 80069be: 2300 movs r3, #0
- 80069c0: f7fa f80a bl 80009d8 <__aeabi_dcmpeq>
- 80069c4: 2800 cmp r0, #0
- 80069c6: d033 beq.n 8006a30 <_printf_float+0x26c>
- 80069c8: 2301 movs r3, #1
- 80069ca: 4631 mov r1, r6
- 80069cc: 4628 mov r0, r5
- 80069ce: 4a35 ldr r2, [pc, #212] ; (8006aa4 <_printf_float+0x2e0>)
- 80069d0: 47b8 blx r7
- 80069d2: 3001 adds r0, #1
- 80069d4: f43f af51 beq.w 800687a <_printf_float+0xb6>
- 80069d8: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
- 80069dc: 429a cmp r2, r3
- 80069de: db02 blt.n 80069e6 <_printf_float+0x222>
- 80069e0: 6823 ldr r3, [r4, #0]
- 80069e2: 07d8 lsls r0, r3, #31
- 80069e4: d50f bpl.n 8006a06 <_printf_float+0x242>
- 80069e6: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
- 80069ea: 4631 mov r1, r6
- 80069ec: 4628 mov r0, r5
- 80069ee: 47b8 blx r7
- 80069f0: 3001 adds r0, #1
- 80069f2: f43f af42 beq.w 800687a <_printf_float+0xb6>
- 80069f6: f04f 0800 mov.w r8, #0
- 80069fa: f104 091a add.w r9, r4, #26
- 80069fe: 9b0e ldr r3, [sp, #56] ; 0x38
- 8006a00: 3b01 subs r3, #1
- 8006a02: 4543 cmp r3, r8
- 8006a04: dc09 bgt.n 8006a1a <_printf_float+0x256>
- 8006a06: 6823 ldr r3, [r4, #0]
- 8006a08: 079b lsls r3, r3, #30
- 8006a0a: f100 8102 bmi.w 8006c12 <_printf_float+0x44e>
- 8006a0e: 68e0 ldr r0, [r4, #12]
- 8006a10: 9b0f ldr r3, [sp, #60] ; 0x3c
- 8006a12: 4298 cmp r0, r3
- 8006a14: bfb8 it lt
- 8006a16: 4618 movlt r0, r3
- 8006a18: e731 b.n 800687e <_printf_float+0xba>
- 8006a1a: 2301 movs r3, #1
- 8006a1c: 464a mov r2, r9
- 8006a1e: 4631 mov r1, r6
- 8006a20: 4628 mov r0, r5
- 8006a22: 47b8 blx r7
- 8006a24: 3001 adds r0, #1
- 8006a26: f43f af28 beq.w 800687a <_printf_float+0xb6>
- 8006a2a: f108 0801 add.w r8, r8, #1
- 8006a2e: e7e6 b.n 80069fe <_printf_float+0x23a>
- 8006a30: 9b0d ldr r3, [sp, #52] ; 0x34
- 8006a32: 2b00 cmp r3, #0
- 8006a34: dc38 bgt.n 8006aa8 <_printf_float+0x2e4>
- 8006a36: 2301 movs r3, #1
- 8006a38: 4631 mov r1, r6
- 8006a3a: 4628 mov r0, r5
- 8006a3c: 4a19 ldr r2, [pc, #100] ; (8006aa4 <_printf_float+0x2e0>)
- 8006a3e: 47b8 blx r7
- 8006a40: 3001 adds r0, #1
- 8006a42: f43f af1a beq.w 800687a <_printf_float+0xb6>
- 8006a46: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
- 8006a4a: 4313 orrs r3, r2
- 8006a4c: d102 bne.n 8006a54 <_printf_float+0x290>
- 8006a4e: 6823 ldr r3, [r4, #0]
- 8006a50: 07d9 lsls r1, r3, #31
- 8006a52: d5d8 bpl.n 8006a06 <_printf_float+0x242>
- 8006a54: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
- 8006a58: 4631 mov r1, r6
- 8006a5a: 4628 mov r0, r5
- 8006a5c: 47b8 blx r7
- 8006a5e: 3001 adds r0, #1
- 8006a60: f43f af0b beq.w 800687a <_printf_float+0xb6>
- 8006a64: f04f 0900 mov.w r9, #0
- 8006a68: f104 0a1a add.w sl, r4, #26
- 8006a6c: 9b0d ldr r3, [sp, #52] ; 0x34
- 8006a6e: 425b negs r3, r3
- 8006a70: 454b cmp r3, r9
- 8006a72: dc01 bgt.n 8006a78 <_printf_float+0x2b4>
- 8006a74: 9b0e ldr r3, [sp, #56] ; 0x38
- 8006a76: e794 b.n 80069a2 <_printf_float+0x1de>
- 8006a78: 2301 movs r3, #1
- 8006a7a: 4652 mov r2, sl
- 8006a7c: 4631 mov r1, r6
- 8006a7e: 4628 mov r0, r5
- 8006a80: 47b8 blx r7
- 8006a82: 3001 adds r0, #1
- 8006a84: f43f aef9 beq.w 800687a <_printf_float+0xb6>
- 8006a88: f109 0901 add.w r9, r9, #1
- 8006a8c: e7ee b.n 8006a6c <_printf_float+0x2a8>
- 8006a8e: bf00 nop
- 8006a90: 7fefffff .word 0x7fefffff
- 8006a94: 0800a118 .word 0x0800a118
- 8006a98: 0800a11c .word 0x0800a11c
- 8006a9c: 0800a124 .word 0x0800a124
- 8006aa0: 0800a120 .word 0x0800a120
- 8006aa4: 0800a128 .word 0x0800a128
- 8006aa8: 9a0e ldr r2, [sp, #56] ; 0x38
- 8006aaa: 6da3 ldr r3, [r4, #88] ; 0x58
- 8006aac: 429a cmp r2, r3
- 8006aae: bfa8 it ge
- 8006ab0: 461a movge r2, r3
- 8006ab2: 2a00 cmp r2, #0
- 8006ab4: 4691 mov r9, r2
- 8006ab6: dc37 bgt.n 8006b28 <_printf_float+0x364>
- 8006ab8: f04f 0b00 mov.w fp, #0
- 8006abc: ea29 79e9 bic.w r9, r9, r9, asr #31
- 8006ac0: f104 021a add.w r2, r4, #26
- 8006ac4: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58
- 8006ac8: ebaa 0309 sub.w r3, sl, r9
- 8006acc: 455b cmp r3, fp
- 8006ace: dc33 bgt.n 8006b38 <_printf_float+0x374>
- 8006ad0: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
- 8006ad4: 429a cmp r2, r3
- 8006ad6: db3b blt.n 8006b50 <_printf_float+0x38c>
- 8006ad8: 6823 ldr r3, [r4, #0]
- 8006ada: 07da lsls r2, r3, #31
- 8006adc: d438 bmi.n 8006b50 <_printf_float+0x38c>
- 8006ade: 9a0e ldr r2, [sp, #56] ; 0x38
- 8006ae0: 990d ldr r1, [sp, #52] ; 0x34
- 8006ae2: eba2 030a sub.w r3, r2, sl
- 8006ae6: eba2 0901 sub.w r9, r2, r1
- 8006aea: 4599 cmp r9, r3
- 8006aec: bfa8 it ge
- 8006aee: 4699 movge r9, r3
- 8006af0: f1b9 0f00 cmp.w r9, #0
- 8006af4: dc34 bgt.n 8006b60 <_printf_float+0x39c>
- 8006af6: f04f 0800 mov.w r8, #0
- 8006afa: ea29 79e9 bic.w r9, r9, r9, asr #31
- 8006afe: f104 0a1a add.w sl, r4, #26
- 8006b02: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
- 8006b06: 1a9b subs r3, r3, r2
- 8006b08: eba3 0309 sub.w r3, r3, r9
- 8006b0c: 4543 cmp r3, r8
- 8006b0e: f77f af7a ble.w 8006a06 <_printf_float+0x242>
- 8006b12: 2301 movs r3, #1
- 8006b14: 4652 mov r2, sl
- 8006b16: 4631 mov r1, r6
- 8006b18: 4628 mov r0, r5
- 8006b1a: 47b8 blx r7
- 8006b1c: 3001 adds r0, #1
- 8006b1e: f43f aeac beq.w 800687a <_printf_float+0xb6>
- 8006b22: f108 0801 add.w r8, r8, #1
- 8006b26: e7ec b.n 8006b02 <_printf_float+0x33e>
- 8006b28: 4613 mov r3, r2
- 8006b2a: 4631 mov r1, r6
- 8006b2c: 4642 mov r2, r8
- 8006b2e: 4628 mov r0, r5
- 8006b30: 47b8 blx r7
- 8006b32: 3001 adds r0, #1
- 8006b34: d1c0 bne.n 8006ab8 <_printf_float+0x2f4>
- 8006b36: e6a0 b.n 800687a <_printf_float+0xb6>
- 8006b38: 2301 movs r3, #1
- 8006b3a: 4631 mov r1, r6
- 8006b3c: 4628 mov r0, r5
- 8006b3e: 920b str r2, [sp, #44] ; 0x2c
- 8006b40: 47b8 blx r7
- 8006b42: 3001 adds r0, #1
- 8006b44: f43f ae99 beq.w 800687a <_printf_float+0xb6>
- 8006b48: 9a0b ldr r2, [sp, #44] ; 0x2c
- 8006b4a: f10b 0b01 add.w fp, fp, #1
- 8006b4e: e7b9 b.n 8006ac4 <_printf_float+0x300>
- 8006b50: 4631 mov r1, r6
- 8006b52: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
- 8006b56: 4628 mov r0, r5
- 8006b58: 47b8 blx r7
- 8006b5a: 3001 adds r0, #1
- 8006b5c: d1bf bne.n 8006ade <_printf_float+0x31a>
- 8006b5e: e68c b.n 800687a <_printf_float+0xb6>
- 8006b60: 464b mov r3, r9
- 8006b62: 4631 mov r1, r6
- 8006b64: 4628 mov r0, r5
- 8006b66: eb08 020a add.w r2, r8, sl
- 8006b6a: 47b8 blx r7
- 8006b6c: 3001 adds r0, #1
- 8006b6e: d1c2 bne.n 8006af6 <_printf_float+0x332>
- 8006b70: e683 b.n 800687a <_printf_float+0xb6>
- 8006b72: 9a0e ldr r2, [sp, #56] ; 0x38
- 8006b74: 2a01 cmp r2, #1
- 8006b76: dc01 bgt.n 8006b7c <_printf_float+0x3b8>
- 8006b78: 07db lsls r3, r3, #31
- 8006b7a: d537 bpl.n 8006bec <_printf_float+0x428>
- 8006b7c: 2301 movs r3, #1
- 8006b7e: 4642 mov r2, r8
- 8006b80: 4631 mov r1, r6
- 8006b82: 4628 mov r0, r5
- 8006b84: 47b8 blx r7
- 8006b86: 3001 adds r0, #1
- 8006b88: f43f ae77 beq.w 800687a <_printf_float+0xb6>
- 8006b8c: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
- 8006b90: 4631 mov r1, r6
- 8006b92: 4628 mov r0, r5
- 8006b94: 47b8 blx r7
- 8006b96: 3001 adds r0, #1
- 8006b98: f43f ae6f beq.w 800687a <_printf_float+0xb6>
- 8006b9c: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
- 8006ba0: 2200 movs r2, #0
- 8006ba2: 2300 movs r3, #0
- 8006ba4: f7f9 ff18 bl 80009d8 <__aeabi_dcmpeq>
- 8006ba8: b9d8 cbnz r0, 8006be2 <_printf_float+0x41e>
- 8006baa: 9b0e ldr r3, [sp, #56] ; 0x38
- 8006bac: f108 0201 add.w r2, r8, #1
- 8006bb0: 3b01 subs r3, #1
- 8006bb2: 4631 mov r1, r6
- 8006bb4: 4628 mov r0, r5
- 8006bb6: 47b8 blx r7
- 8006bb8: 3001 adds r0, #1
- 8006bba: d10e bne.n 8006bda <_printf_float+0x416>
- 8006bbc: e65d b.n 800687a <_printf_float+0xb6>
- 8006bbe: 2301 movs r3, #1
- 8006bc0: 464a mov r2, r9
- 8006bc2: 4631 mov r1, r6
- 8006bc4: 4628 mov r0, r5
- 8006bc6: 47b8 blx r7
- 8006bc8: 3001 adds r0, #1
- 8006bca: f43f ae56 beq.w 800687a <_printf_float+0xb6>
- 8006bce: f108 0801 add.w r8, r8, #1
- 8006bd2: 9b0e ldr r3, [sp, #56] ; 0x38
- 8006bd4: 3b01 subs r3, #1
- 8006bd6: 4543 cmp r3, r8
- 8006bd8: dcf1 bgt.n 8006bbe <_printf_float+0x3fa>
- 8006bda: 4653 mov r3, sl
- 8006bdc: f104 0250 add.w r2, r4, #80 ; 0x50
- 8006be0: e6e0 b.n 80069a4 <_printf_float+0x1e0>
- 8006be2: f04f 0800 mov.w r8, #0
- 8006be6: f104 091a add.w r9, r4, #26
- 8006bea: e7f2 b.n 8006bd2 <_printf_float+0x40e>
- 8006bec: 2301 movs r3, #1
- 8006bee: 4642 mov r2, r8
- 8006bf0: e7df b.n 8006bb2 <_printf_float+0x3ee>
- 8006bf2: 2301 movs r3, #1
- 8006bf4: 464a mov r2, r9
- 8006bf6: 4631 mov r1, r6
- 8006bf8: 4628 mov r0, r5
- 8006bfa: 47b8 blx r7
- 8006bfc: 3001 adds r0, #1
- 8006bfe: f43f ae3c beq.w 800687a <_printf_float+0xb6>
- 8006c02: f108 0801 add.w r8, r8, #1
- 8006c06: 68e3 ldr r3, [r4, #12]
- 8006c08: 990f ldr r1, [sp, #60] ; 0x3c
- 8006c0a: 1a5b subs r3, r3, r1
- 8006c0c: 4543 cmp r3, r8
- 8006c0e: dcf0 bgt.n 8006bf2 <_printf_float+0x42e>
- 8006c10: e6fd b.n 8006a0e <_printf_float+0x24a>
- 8006c12: f04f 0800 mov.w r8, #0
- 8006c16: f104 0919 add.w r9, r4, #25
- 8006c1a: e7f4 b.n 8006c06 <_printf_float+0x442>
- 08006c1c <_printf_common>:
- 8006c1c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
- 8006c20: 4616 mov r6, r2
- 8006c22: 4699 mov r9, r3
- 8006c24: 688a ldr r2, [r1, #8]
- 8006c26: 690b ldr r3, [r1, #16]
- 8006c28: 4607 mov r7, r0
- 8006c2a: 4293 cmp r3, r2
- 8006c2c: bfb8 it lt
- 8006c2e: 4613 movlt r3, r2
- 8006c30: 6033 str r3, [r6, #0]
- 8006c32: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
- 8006c36: 460c mov r4, r1
- 8006c38: f8dd 8020 ldr.w r8, [sp, #32]
- 8006c3c: b10a cbz r2, 8006c42 <_printf_common+0x26>
- 8006c3e: 3301 adds r3, #1
- 8006c40: 6033 str r3, [r6, #0]
- 8006c42: 6823 ldr r3, [r4, #0]
- 8006c44: 0699 lsls r1, r3, #26
- 8006c46: bf42 ittt mi
- 8006c48: 6833 ldrmi r3, [r6, #0]
- 8006c4a: 3302 addmi r3, #2
- 8006c4c: 6033 strmi r3, [r6, #0]
- 8006c4e: 6825 ldr r5, [r4, #0]
- 8006c50: f015 0506 ands.w r5, r5, #6
- 8006c54: d106 bne.n 8006c64 <_printf_common+0x48>
- 8006c56: f104 0a19 add.w sl, r4, #25
- 8006c5a: 68e3 ldr r3, [r4, #12]
- 8006c5c: 6832 ldr r2, [r6, #0]
- 8006c5e: 1a9b subs r3, r3, r2
- 8006c60: 42ab cmp r3, r5
- 8006c62: dc28 bgt.n 8006cb6 <_printf_common+0x9a>
- 8006c64: f894 2043 ldrb.w r2, [r4, #67] ; 0x43
- 8006c68: 1e13 subs r3, r2, #0
- 8006c6a: 6822 ldr r2, [r4, #0]
- 8006c6c: bf18 it ne
- 8006c6e: 2301 movne r3, #1
- 8006c70: 0692 lsls r2, r2, #26
- 8006c72: d42d bmi.n 8006cd0 <_printf_common+0xb4>
- 8006c74: 4649 mov r1, r9
- 8006c76: 4638 mov r0, r7
- 8006c78: f104 0243 add.w r2, r4, #67 ; 0x43
- 8006c7c: 47c0 blx r8
- 8006c7e: 3001 adds r0, #1
- 8006c80: d020 beq.n 8006cc4 <_printf_common+0xa8>
- 8006c82: 6823 ldr r3, [r4, #0]
- 8006c84: 68e5 ldr r5, [r4, #12]
- 8006c86: f003 0306 and.w r3, r3, #6
- 8006c8a: 2b04 cmp r3, #4
- 8006c8c: bf18 it ne
- 8006c8e: 2500 movne r5, #0
- 8006c90: 6832 ldr r2, [r6, #0]
- 8006c92: f04f 0600 mov.w r6, #0
- 8006c96: 68a3 ldr r3, [r4, #8]
- 8006c98: bf08 it eq
- 8006c9a: 1aad subeq r5, r5, r2
- 8006c9c: 6922 ldr r2, [r4, #16]
- 8006c9e: bf08 it eq
- 8006ca0: ea25 75e5 biceq.w r5, r5, r5, asr #31
- 8006ca4: 4293 cmp r3, r2
- 8006ca6: bfc4 itt gt
- 8006ca8: 1a9b subgt r3, r3, r2
- 8006caa: 18ed addgt r5, r5, r3
- 8006cac: 341a adds r4, #26
- 8006cae: 42b5 cmp r5, r6
- 8006cb0: d11a bne.n 8006ce8 <_printf_common+0xcc>
- 8006cb2: 2000 movs r0, #0
- 8006cb4: e008 b.n 8006cc8 <_printf_common+0xac>
- 8006cb6: 2301 movs r3, #1
- 8006cb8: 4652 mov r2, sl
- 8006cba: 4649 mov r1, r9
- 8006cbc: 4638 mov r0, r7
- 8006cbe: 47c0 blx r8
- 8006cc0: 3001 adds r0, #1
- 8006cc2: d103 bne.n 8006ccc <_printf_common+0xb0>
- 8006cc4: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8006cc8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 8006ccc: 3501 adds r5, #1
- 8006cce: e7c4 b.n 8006c5a <_printf_common+0x3e>
- 8006cd0: 2030 movs r0, #48 ; 0x30
- 8006cd2: 18e1 adds r1, r4, r3
- 8006cd4: f881 0043 strb.w r0, [r1, #67] ; 0x43
- 8006cd8: 1c5a adds r2, r3, #1
- 8006cda: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
- 8006cde: 4422 add r2, r4
- 8006ce0: 3302 adds r3, #2
- 8006ce2: f882 1043 strb.w r1, [r2, #67] ; 0x43
- 8006ce6: e7c5 b.n 8006c74 <_printf_common+0x58>
- 8006ce8: 2301 movs r3, #1
- 8006cea: 4622 mov r2, r4
- 8006cec: 4649 mov r1, r9
- 8006cee: 4638 mov r0, r7
- 8006cf0: 47c0 blx r8
- 8006cf2: 3001 adds r0, #1
- 8006cf4: d0e6 beq.n 8006cc4 <_printf_common+0xa8>
- 8006cf6: 3601 adds r6, #1
- 8006cf8: e7d9 b.n 8006cae <_printf_common+0x92>
- ...
- 08006cfc <_printf_i>:
- 8006cfc: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
- 8006d00: 460c mov r4, r1
- 8006d02: 7e27 ldrb r7, [r4, #24]
- 8006d04: 4691 mov r9, r2
- 8006d06: 2f78 cmp r7, #120 ; 0x78
- 8006d08: 4680 mov r8, r0
- 8006d0a: 469a mov sl, r3
- 8006d0c: 990c ldr r1, [sp, #48] ; 0x30
- 8006d0e: f104 0243 add.w r2, r4, #67 ; 0x43
- 8006d12: d807 bhi.n 8006d24 <_printf_i+0x28>
- 8006d14: 2f62 cmp r7, #98 ; 0x62
- 8006d16: d80a bhi.n 8006d2e <_printf_i+0x32>
- 8006d18: 2f00 cmp r7, #0
- 8006d1a: f000 80d9 beq.w 8006ed0 <_printf_i+0x1d4>
- 8006d1e: 2f58 cmp r7, #88 ; 0x58
- 8006d20: f000 80a4 beq.w 8006e6c <_printf_i+0x170>
- 8006d24: f104 0642 add.w r6, r4, #66 ; 0x42
- 8006d28: f884 7042 strb.w r7, [r4, #66] ; 0x42
- 8006d2c: e03a b.n 8006da4 <_printf_i+0xa8>
- 8006d2e: f1a7 0363 sub.w r3, r7, #99 ; 0x63
- 8006d32: 2b15 cmp r3, #21
- 8006d34: d8f6 bhi.n 8006d24 <_printf_i+0x28>
- 8006d36: a001 add r0, pc, #4 ; (adr r0, 8006d3c <_printf_i+0x40>)
- 8006d38: f850 f023 ldr.w pc, [r0, r3, lsl #2]
- 8006d3c: 08006d95 .word 0x08006d95
- 8006d40: 08006da9 .word 0x08006da9
- 8006d44: 08006d25 .word 0x08006d25
- 8006d48: 08006d25 .word 0x08006d25
- 8006d4c: 08006d25 .word 0x08006d25
- 8006d50: 08006d25 .word 0x08006d25
- 8006d54: 08006da9 .word 0x08006da9
- 8006d58: 08006d25 .word 0x08006d25
- 8006d5c: 08006d25 .word 0x08006d25
- 8006d60: 08006d25 .word 0x08006d25
- 8006d64: 08006d25 .word 0x08006d25
- 8006d68: 08006eb7 .word 0x08006eb7
- 8006d6c: 08006dd9 .word 0x08006dd9
- 8006d70: 08006e99 .word 0x08006e99
- 8006d74: 08006d25 .word 0x08006d25
- 8006d78: 08006d25 .word 0x08006d25
- 8006d7c: 08006ed9 .word 0x08006ed9
- 8006d80: 08006d25 .word 0x08006d25
- 8006d84: 08006dd9 .word 0x08006dd9
- 8006d88: 08006d25 .word 0x08006d25
- 8006d8c: 08006d25 .word 0x08006d25
- 8006d90: 08006ea1 .word 0x08006ea1
- 8006d94: 680b ldr r3, [r1, #0]
- 8006d96: f104 0642 add.w r6, r4, #66 ; 0x42
- 8006d9a: 1d1a adds r2, r3, #4
- 8006d9c: 681b ldr r3, [r3, #0]
- 8006d9e: 600a str r2, [r1, #0]
- 8006da0: f884 3042 strb.w r3, [r4, #66] ; 0x42
- 8006da4: 2301 movs r3, #1
- 8006da6: e0a4 b.n 8006ef2 <_printf_i+0x1f6>
- 8006da8: 6825 ldr r5, [r4, #0]
- 8006daa: 6808 ldr r0, [r1, #0]
- 8006dac: 062e lsls r6, r5, #24
- 8006dae: f100 0304 add.w r3, r0, #4
- 8006db2: d50a bpl.n 8006dca <_printf_i+0xce>
- 8006db4: 6805 ldr r5, [r0, #0]
- 8006db6: 600b str r3, [r1, #0]
- 8006db8: 2d00 cmp r5, #0
- 8006dba: da03 bge.n 8006dc4 <_printf_i+0xc8>
- 8006dbc: 232d movs r3, #45 ; 0x2d
- 8006dbe: 426d negs r5, r5
- 8006dc0: f884 3043 strb.w r3, [r4, #67] ; 0x43
- 8006dc4: 230a movs r3, #10
- 8006dc6: 485e ldr r0, [pc, #376] ; (8006f40 <_printf_i+0x244>)
- 8006dc8: e019 b.n 8006dfe <_printf_i+0x102>
- 8006dca: f015 0f40 tst.w r5, #64 ; 0x40
- 8006dce: 6805 ldr r5, [r0, #0]
- 8006dd0: 600b str r3, [r1, #0]
- 8006dd2: bf18 it ne
- 8006dd4: b22d sxthne r5, r5
- 8006dd6: e7ef b.n 8006db8 <_printf_i+0xbc>
- 8006dd8: 680b ldr r3, [r1, #0]
- 8006dda: 6825 ldr r5, [r4, #0]
- 8006ddc: 1d18 adds r0, r3, #4
- 8006dde: 6008 str r0, [r1, #0]
- 8006de0: 0628 lsls r0, r5, #24
- 8006de2: d501 bpl.n 8006de8 <_printf_i+0xec>
- 8006de4: 681d ldr r5, [r3, #0]
- 8006de6: e002 b.n 8006dee <_printf_i+0xf2>
- 8006de8: 0669 lsls r1, r5, #25
- 8006dea: d5fb bpl.n 8006de4 <_printf_i+0xe8>
- 8006dec: 881d ldrh r5, [r3, #0]
- 8006dee: 2f6f cmp r7, #111 ; 0x6f
- 8006df0: bf0c ite eq
- 8006df2: 2308 moveq r3, #8
- 8006df4: 230a movne r3, #10
- 8006df6: 4852 ldr r0, [pc, #328] ; (8006f40 <_printf_i+0x244>)
- 8006df8: 2100 movs r1, #0
- 8006dfa: f884 1043 strb.w r1, [r4, #67] ; 0x43
- 8006dfe: 6866 ldr r6, [r4, #4]
- 8006e00: 2e00 cmp r6, #0
- 8006e02: bfa8 it ge
- 8006e04: 6821 ldrge r1, [r4, #0]
- 8006e06: 60a6 str r6, [r4, #8]
- 8006e08: bfa4 itt ge
- 8006e0a: f021 0104 bicge.w r1, r1, #4
- 8006e0e: 6021 strge r1, [r4, #0]
- 8006e10: b90d cbnz r5, 8006e16 <_printf_i+0x11a>
- 8006e12: 2e00 cmp r6, #0
- 8006e14: d04d beq.n 8006eb2 <_printf_i+0x1b6>
- 8006e16: 4616 mov r6, r2
- 8006e18: fbb5 f1f3 udiv r1, r5, r3
- 8006e1c: fb03 5711 mls r7, r3, r1, r5
- 8006e20: 5dc7 ldrb r7, [r0, r7]
- 8006e22: f806 7d01 strb.w r7, [r6, #-1]!
- 8006e26: 462f mov r7, r5
- 8006e28: 42bb cmp r3, r7
- 8006e2a: 460d mov r5, r1
- 8006e2c: d9f4 bls.n 8006e18 <_printf_i+0x11c>
- 8006e2e: 2b08 cmp r3, #8
- 8006e30: d10b bne.n 8006e4a <_printf_i+0x14e>
- 8006e32: 6823 ldr r3, [r4, #0]
- 8006e34: 07df lsls r7, r3, #31
- 8006e36: d508 bpl.n 8006e4a <_printf_i+0x14e>
- 8006e38: 6923 ldr r3, [r4, #16]
- 8006e3a: 6861 ldr r1, [r4, #4]
- 8006e3c: 4299 cmp r1, r3
- 8006e3e: bfde ittt le
- 8006e40: 2330 movle r3, #48 ; 0x30
- 8006e42: f806 3c01 strble.w r3, [r6, #-1]
- 8006e46: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff
- 8006e4a: 1b92 subs r2, r2, r6
- 8006e4c: 6122 str r2, [r4, #16]
- 8006e4e: 464b mov r3, r9
- 8006e50: 4621 mov r1, r4
- 8006e52: 4640 mov r0, r8
- 8006e54: f8cd a000 str.w sl, [sp]
- 8006e58: aa03 add r2, sp, #12
- 8006e5a: f7ff fedf bl 8006c1c <_printf_common>
- 8006e5e: 3001 adds r0, #1
- 8006e60: d14c bne.n 8006efc <_printf_i+0x200>
- 8006e62: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8006e66: b004 add sp, #16
- 8006e68: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 8006e6c: 4834 ldr r0, [pc, #208] ; (8006f40 <_printf_i+0x244>)
- 8006e6e: f884 7045 strb.w r7, [r4, #69] ; 0x45
- 8006e72: 680e ldr r6, [r1, #0]
- 8006e74: 6823 ldr r3, [r4, #0]
- 8006e76: f856 5b04 ldr.w r5, [r6], #4
- 8006e7a: 061f lsls r7, r3, #24
- 8006e7c: 600e str r6, [r1, #0]
- 8006e7e: d514 bpl.n 8006eaa <_printf_i+0x1ae>
- 8006e80: 07d9 lsls r1, r3, #31
- 8006e82: bf44 itt mi
- 8006e84: f043 0320 orrmi.w r3, r3, #32
- 8006e88: 6023 strmi r3, [r4, #0]
- 8006e8a: b91d cbnz r5, 8006e94 <_printf_i+0x198>
- 8006e8c: 6823 ldr r3, [r4, #0]
- 8006e8e: f023 0320 bic.w r3, r3, #32
- 8006e92: 6023 str r3, [r4, #0]
- 8006e94: 2310 movs r3, #16
- 8006e96: e7af b.n 8006df8 <_printf_i+0xfc>
- 8006e98: 6823 ldr r3, [r4, #0]
- 8006e9a: f043 0320 orr.w r3, r3, #32
- 8006e9e: 6023 str r3, [r4, #0]
- 8006ea0: 2378 movs r3, #120 ; 0x78
- 8006ea2: 4828 ldr r0, [pc, #160] ; (8006f44 <_printf_i+0x248>)
- 8006ea4: f884 3045 strb.w r3, [r4, #69] ; 0x45
- 8006ea8: e7e3 b.n 8006e72 <_printf_i+0x176>
- 8006eaa: 065e lsls r6, r3, #25
- 8006eac: bf48 it mi
- 8006eae: b2ad uxthmi r5, r5
- 8006eb0: e7e6 b.n 8006e80 <_printf_i+0x184>
- 8006eb2: 4616 mov r6, r2
- 8006eb4: e7bb b.n 8006e2e <_printf_i+0x132>
- 8006eb6: 680b ldr r3, [r1, #0]
- 8006eb8: 6826 ldr r6, [r4, #0]
- 8006eba: 1d1d adds r5, r3, #4
- 8006ebc: 6960 ldr r0, [r4, #20]
- 8006ebe: 600d str r5, [r1, #0]
- 8006ec0: 0635 lsls r5, r6, #24
- 8006ec2: 681b ldr r3, [r3, #0]
- 8006ec4: d501 bpl.n 8006eca <_printf_i+0x1ce>
- 8006ec6: 6018 str r0, [r3, #0]
- 8006ec8: e002 b.n 8006ed0 <_printf_i+0x1d4>
- 8006eca: 0671 lsls r1, r6, #25
- 8006ecc: d5fb bpl.n 8006ec6 <_printf_i+0x1ca>
- 8006ece: 8018 strh r0, [r3, #0]
- 8006ed0: 2300 movs r3, #0
- 8006ed2: 4616 mov r6, r2
- 8006ed4: 6123 str r3, [r4, #16]
- 8006ed6: e7ba b.n 8006e4e <_printf_i+0x152>
- 8006ed8: 680b ldr r3, [r1, #0]
- 8006eda: 1d1a adds r2, r3, #4
- 8006edc: 600a str r2, [r1, #0]
- 8006ede: 681e ldr r6, [r3, #0]
- 8006ee0: 2100 movs r1, #0
- 8006ee2: 4630 mov r0, r6
- 8006ee4: 6862 ldr r2, [r4, #4]
- 8006ee6: f000 fed9 bl 8007c9c <memchr>
- 8006eea: b108 cbz r0, 8006ef0 <_printf_i+0x1f4>
- 8006eec: 1b80 subs r0, r0, r6
- 8006eee: 6060 str r0, [r4, #4]
- 8006ef0: 6863 ldr r3, [r4, #4]
- 8006ef2: 6123 str r3, [r4, #16]
- 8006ef4: 2300 movs r3, #0
- 8006ef6: f884 3043 strb.w r3, [r4, #67] ; 0x43
- 8006efa: e7a8 b.n 8006e4e <_printf_i+0x152>
- 8006efc: 4632 mov r2, r6
- 8006efe: 4649 mov r1, r9
- 8006f00: 4640 mov r0, r8
- 8006f02: 6923 ldr r3, [r4, #16]
- 8006f04: 47d0 blx sl
- 8006f06: 3001 adds r0, #1
- 8006f08: d0ab beq.n 8006e62 <_printf_i+0x166>
- 8006f0a: 6823 ldr r3, [r4, #0]
- 8006f0c: 079b lsls r3, r3, #30
- 8006f0e: d413 bmi.n 8006f38 <_printf_i+0x23c>
- 8006f10: 68e0 ldr r0, [r4, #12]
- 8006f12: 9b03 ldr r3, [sp, #12]
- 8006f14: 4298 cmp r0, r3
- 8006f16: bfb8 it lt
- 8006f18: 4618 movlt r0, r3
- 8006f1a: e7a4 b.n 8006e66 <_printf_i+0x16a>
- 8006f1c: 2301 movs r3, #1
- 8006f1e: 4632 mov r2, r6
- 8006f20: 4649 mov r1, r9
- 8006f22: 4640 mov r0, r8
- 8006f24: 47d0 blx sl
- 8006f26: 3001 adds r0, #1
- 8006f28: d09b beq.n 8006e62 <_printf_i+0x166>
- 8006f2a: 3501 adds r5, #1
- 8006f2c: 68e3 ldr r3, [r4, #12]
- 8006f2e: 9903 ldr r1, [sp, #12]
- 8006f30: 1a5b subs r3, r3, r1
- 8006f32: 42ab cmp r3, r5
- 8006f34: dcf2 bgt.n 8006f1c <_printf_i+0x220>
- 8006f36: e7eb b.n 8006f10 <_printf_i+0x214>
- 8006f38: 2500 movs r5, #0
- 8006f3a: f104 0619 add.w r6, r4, #25
- 8006f3e: e7f5 b.n 8006f2c <_printf_i+0x230>
- 8006f40: 0800a12a .word 0x0800a12a
- 8006f44: 0800a13b .word 0x0800a13b
- 08006f48 <siprintf>:
- 8006f48: b40e push {r1, r2, r3}
- 8006f4a: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000
- 8006f4e: b500 push {lr}
- 8006f50: b09c sub sp, #112 ; 0x70
- 8006f52: ab1d add r3, sp, #116 ; 0x74
- 8006f54: 9002 str r0, [sp, #8]
- 8006f56: 9006 str r0, [sp, #24]
- 8006f58: 9107 str r1, [sp, #28]
- 8006f5a: 9104 str r1, [sp, #16]
- 8006f5c: 4808 ldr r0, [pc, #32] ; (8006f80 <siprintf+0x38>)
- 8006f5e: 4909 ldr r1, [pc, #36] ; (8006f84 <siprintf+0x3c>)
- 8006f60: f853 2b04 ldr.w r2, [r3], #4
- 8006f64: 9105 str r1, [sp, #20]
- 8006f66: 6800 ldr r0, [r0, #0]
- 8006f68: a902 add r1, sp, #8
- 8006f6a: 9301 str r3, [sp, #4]
- 8006f6c: f001 fb36 bl 80085dc <_svfiprintf_r>
- 8006f70: 2200 movs r2, #0
- 8006f72: 9b02 ldr r3, [sp, #8]
- 8006f74: 701a strb r2, [r3, #0]
- 8006f76: b01c add sp, #112 ; 0x70
- 8006f78: f85d eb04 ldr.w lr, [sp], #4
- 8006f7c: b003 add sp, #12
- 8006f7e: 4770 bx lr
- 8006f80: 20000014 .word 0x20000014
- 8006f84: ffff0208 .word 0xffff0208
- 08006f88 <quorem>:
- 8006f88: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 8006f8c: 6903 ldr r3, [r0, #16]
- 8006f8e: 690c ldr r4, [r1, #16]
- 8006f90: 4607 mov r7, r0
- 8006f92: 42a3 cmp r3, r4
- 8006f94: f2c0 8083 blt.w 800709e <quorem+0x116>
- 8006f98: 3c01 subs r4, #1
- 8006f9a: f100 0514 add.w r5, r0, #20
- 8006f9e: f101 0814 add.w r8, r1, #20
- 8006fa2: eb05 0384 add.w r3, r5, r4, lsl #2
- 8006fa6: 9301 str r3, [sp, #4]
- 8006fa8: f858 3024 ldr.w r3, [r8, r4, lsl #2]
- 8006fac: f855 2024 ldr.w r2, [r5, r4, lsl #2]
- 8006fb0: 3301 adds r3, #1
- 8006fb2: 429a cmp r2, r3
- 8006fb4: fbb2 f6f3 udiv r6, r2, r3
- 8006fb8: ea4f 0b84 mov.w fp, r4, lsl #2
- 8006fbc: eb08 0984 add.w r9, r8, r4, lsl #2
- 8006fc0: d332 bcc.n 8007028 <quorem+0xa0>
- 8006fc2: f04f 0e00 mov.w lr, #0
- 8006fc6: 4640 mov r0, r8
- 8006fc8: 46ac mov ip, r5
- 8006fca: 46f2 mov sl, lr
- 8006fcc: f850 2b04 ldr.w r2, [r0], #4
- 8006fd0: b293 uxth r3, r2
- 8006fd2: fb06 e303 mla r3, r6, r3, lr
- 8006fd6: 0c12 lsrs r2, r2, #16
- 8006fd8: ea4f 4e13 mov.w lr, r3, lsr #16
- 8006fdc: fb06 e202 mla r2, r6, r2, lr
- 8006fe0: b29b uxth r3, r3
- 8006fe2: ebaa 0303 sub.w r3, sl, r3
- 8006fe6: f8dc a000 ldr.w sl, [ip]
- 8006fea: ea4f 4e12 mov.w lr, r2, lsr #16
- 8006fee: fa1f fa8a uxth.w sl, sl
- 8006ff2: 4453 add r3, sl
- 8006ff4: fa1f fa82 uxth.w sl, r2
- 8006ff8: f8dc 2000 ldr.w r2, [ip]
- 8006ffc: 4581 cmp r9, r0
- 8006ffe: ebca 4212 rsb r2, sl, r2, lsr #16
- 8007002: eb02 4223 add.w r2, r2, r3, asr #16
- 8007006: b29b uxth r3, r3
- 8007008: ea43 4302 orr.w r3, r3, r2, lsl #16
- 800700c: ea4f 4a22 mov.w sl, r2, asr #16
- 8007010: f84c 3b04 str.w r3, [ip], #4
- 8007014: d2da bcs.n 8006fcc <quorem+0x44>
- 8007016: f855 300b ldr.w r3, [r5, fp]
- 800701a: b92b cbnz r3, 8007028 <quorem+0xa0>
- 800701c: 9b01 ldr r3, [sp, #4]
- 800701e: 3b04 subs r3, #4
- 8007020: 429d cmp r5, r3
- 8007022: 461a mov r2, r3
- 8007024: d32f bcc.n 8007086 <quorem+0xfe>
- 8007026: 613c str r4, [r7, #16]
- 8007028: 4638 mov r0, r7
- 800702a: f001 f8bf bl 80081ac <__mcmp>
- 800702e: 2800 cmp r0, #0
- 8007030: db25 blt.n 800707e <quorem+0xf6>
- 8007032: 4628 mov r0, r5
- 8007034: f04f 0c00 mov.w ip, #0
- 8007038: 3601 adds r6, #1
- 800703a: f858 1b04 ldr.w r1, [r8], #4
- 800703e: f8d0 e000 ldr.w lr, [r0]
- 8007042: b28b uxth r3, r1
- 8007044: ebac 0303 sub.w r3, ip, r3
- 8007048: fa1f f28e uxth.w r2, lr
- 800704c: 4413 add r3, r2
- 800704e: 0c0a lsrs r2, r1, #16
- 8007050: ebc2 421e rsb r2, r2, lr, lsr #16
- 8007054: eb02 4223 add.w r2, r2, r3, asr #16
- 8007058: b29b uxth r3, r3
- 800705a: ea43 4302 orr.w r3, r3, r2, lsl #16
- 800705e: 45c1 cmp r9, r8
- 8007060: ea4f 4c22 mov.w ip, r2, asr #16
- 8007064: f840 3b04 str.w r3, [r0], #4
- 8007068: d2e7 bcs.n 800703a <quorem+0xb2>
- 800706a: f855 2024 ldr.w r2, [r5, r4, lsl #2]
- 800706e: eb05 0384 add.w r3, r5, r4, lsl #2
- 8007072: b922 cbnz r2, 800707e <quorem+0xf6>
- 8007074: 3b04 subs r3, #4
- 8007076: 429d cmp r5, r3
- 8007078: 461a mov r2, r3
- 800707a: d30a bcc.n 8007092 <quorem+0x10a>
- 800707c: 613c str r4, [r7, #16]
- 800707e: 4630 mov r0, r6
- 8007080: b003 add sp, #12
- 8007082: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 8007086: 6812 ldr r2, [r2, #0]
- 8007088: 3b04 subs r3, #4
- 800708a: 2a00 cmp r2, #0
- 800708c: d1cb bne.n 8007026 <quorem+0x9e>
- 800708e: 3c01 subs r4, #1
- 8007090: e7c6 b.n 8007020 <quorem+0x98>
- 8007092: 6812 ldr r2, [r2, #0]
- 8007094: 3b04 subs r3, #4
- 8007096: 2a00 cmp r2, #0
- 8007098: d1f0 bne.n 800707c <quorem+0xf4>
- 800709a: 3c01 subs r4, #1
- 800709c: e7eb b.n 8007076 <quorem+0xee>
- 800709e: 2000 movs r0, #0
- 80070a0: e7ee b.n 8007080 <quorem+0xf8>
- 80070a2: 0000 movs r0, r0
- 80070a4: 0000 movs r0, r0
- ...
- 080070a8 <_dtoa_r>:
- 80070a8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 80070ac: 4616 mov r6, r2
- 80070ae: 461f mov r7, r3
- 80070b0: 6a44 ldr r4, [r0, #36] ; 0x24
- 80070b2: b099 sub sp, #100 ; 0x64
- 80070b4: 4605 mov r5, r0
- 80070b6: e9cd 6704 strd r6, r7, [sp, #16]
- 80070ba: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94
- 80070be: b974 cbnz r4, 80070de <_dtoa_r+0x36>
- 80070c0: 2010 movs r0, #16
- 80070c2: f000 fde3 bl 8007c8c <malloc>
- 80070c6: 4602 mov r2, r0
- 80070c8: 6268 str r0, [r5, #36] ; 0x24
- 80070ca: b920 cbnz r0, 80070d6 <_dtoa_r+0x2e>
- 80070cc: 21ea movs r1, #234 ; 0xea
- 80070ce: 4bae ldr r3, [pc, #696] ; (8007388 <_dtoa_r+0x2e0>)
- 80070d0: 48ae ldr r0, [pc, #696] ; (800738c <_dtoa_r+0x2e4>)
- 80070d2: f001 fb93 bl 80087fc <__assert_func>
- 80070d6: e9c0 4401 strd r4, r4, [r0, #4]
- 80070da: 6004 str r4, [r0, #0]
- 80070dc: 60c4 str r4, [r0, #12]
- 80070de: 6a6b ldr r3, [r5, #36] ; 0x24
- 80070e0: 6819 ldr r1, [r3, #0]
- 80070e2: b151 cbz r1, 80070fa <_dtoa_r+0x52>
- 80070e4: 685a ldr r2, [r3, #4]
- 80070e6: 2301 movs r3, #1
- 80070e8: 4093 lsls r3, r2
- 80070ea: 604a str r2, [r1, #4]
- 80070ec: 608b str r3, [r1, #8]
- 80070ee: 4628 mov r0, r5
- 80070f0: f000 fe22 bl 8007d38 <_Bfree>
- 80070f4: 2200 movs r2, #0
- 80070f6: 6a6b ldr r3, [r5, #36] ; 0x24
- 80070f8: 601a str r2, [r3, #0]
- 80070fa: 1e3b subs r3, r7, #0
- 80070fc: bfaf iteee ge
- 80070fe: 2300 movge r3, #0
- 8007100: 2201 movlt r2, #1
- 8007102: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
- 8007106: 9305 strlt r3, [sp, #20]
- 8007108: bfa8 it ge
- 800710a: f8c8 3000 strge.w r3, [r8]
- 800710e: f8dd 9014 ldr.w r9, [sp, #20]
- 8007112: 4b9f ldr r3, [pc, #636] ; (8007390 <_dtoa_r+0x2e8>)
- 8007114: bfb8 it lt
- 8007116: f8c8 2000 strlt.w r2, [r8]
- 800711a: ea33 0309 bics.w r3, r3, r9
- 800711e: d119 bne.n 8007154 <_dtoa_r+0xac>
- 8007120: f242 730f movw r3, #9999 ; 0x270f
- 8007124: 9a24 ldr r2, [sp, #144] ; 0x90
- 8007126: 6013 str r3, [r2, #0]
- 8007128: f3c9 0313 ubfx r3, r9, #0, #20
- 800712c: 4333 orrs r3, r6
- 800712e: f000 8580 beq.w 8007c32 <_dtoa_r+0xb8a>
- 8007132: 9b26 ldr r3, [sp, #152] ; 0x98
- 8007134: b953 cbnz r3, 800714c <_dtoa_r+0xa4>
- 8007136: 4b97 ldr r3, [pc, #604] ; (8007394 <_dtoa_r+0x2ec>)
- 8007138: e022 b.n 8007180 <_dtoa_r+0xd8>
- 800713a: 4b97 ldr r3, [pc, #604] ; (8007398 <_dtoa_r+0x2f0>)
- 800713c: 9308 str r3, [sp, #32]
- 800713e: 3308 adds r3, #8
- 8007140: 9a26 ldr r2, [sp, #152] ; 0x98
- 8007142: 6013 str r3, [r2, #0]
- 8007144: 9808 ldr r0, [sp, #32]
- 8007146: b019 add sp, #100 ; 0x64
- 8007148: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 800714c: 4b91 ldr r3, [pc, #580] ; (8007394 <_dtoa_r+0x2ec>)
- 800714e: 9308 str r3, [sp, #32]
- 8007150: 3303 adds r3, #3
- 8007152: e7f5 b.n 8007140 <_dtoa_r+0x98>
- 8007154: e9dd 3404 ldrd r3, r4, [sp, #16]
- 8007158: e9cd 340c strd r3, r4, [sp, #48] ; 0x30
- 800715c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
- 8007160: 2200 movs r2, #0
- 8007162: 2300 movs r3, #0
- 8007164: f7f9 fc38 bl 80009d8 <__aeabi_dcmpeq>
- 8007168: 4680 mov r8, r0
- 800716a: b158 cbz r0, 8007184 <_dtoa_r+0xdc>
- 800716c: 2301 movs r3, #1
- 800716e: 9a24 ldr r2, [sp, #144] ; 0x90
- 8007170: 6013 str r3, [r2, #0]
- 8007172: 9b26 ldr r3, [sp, #152] ; 0x98
- 8007174: 2b00 cmp r3, #0
- 8007176: f000 8559 beq.w 8007c2c <_dtoa_r+0xb84>
- 800717a: 4888 ldr r0, [pc, #544] ; (800739c <_dtoa_r+0x2f4>)
- 800717c: 6018 str r0, [r3, #0]
- 800717e: 1e43 subs r3, r0, #1
- 8007180: 9308 str r3, [sp, #32]
- 8007182: e7df b.n 8007144 <_dtoa_r+0x9c>
- 8007184: ab16 add r3, sp, #88 ; 0x58
- 8007186: 9301 str r3, [sp, #4]
- 8007188: ab17 add r3, sp, #92 ; 0x5c
- 800718a: 9300 str r3, [sp, #0]
- 800718c: 4628 mov r0, r5
- 800718e: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30
- 8007192: f001 f8b7 bl 8008304 <__d2b>
- 8007196: f3c9 540a ubfx r4, r9, #20, #11
- 800719a: 4682 mov sl, r0
- 800719c: 2c00 cmp r4, #0
- 800719e: d07e beq.n 800729e <_dtoa_r+0x1f6>
- 80071a0: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
- 80071a4: 9b0d ldr r3, [sp, #52] ; 0x34
- 80071a6: f2a4 34ff subw r4, r4, #1023 ; 0x3ff
- 80071aa: f3c3 0313 ubfx r3, r3, #0, #20
- 80071ae: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000
- 80071b2: f441 1140 orr.w r1, r1, #3145728 ; 0x300000
- 80071b6: f8cd 804c str.w r8, [sp, #76] ; 0x4c
- 80071ba: 2200 movs r2, #0
- 80071bc: 4b78 ldr r3, [pc, #480] ; (80073a0 <_dtoa_r+0x2f8>)
- 80071be: f7f8 ffeb bl 8000198 <__aeabi_dsub>
- 80071c2: a36b add r3, pc, #428 ; (adr r3, 8007370 <_dtoa_r+0x2c8>)
- 80071c4: e9d3 2300 ldrd r2, r3, [r3]
- 80071c8: f7f9 f99e bl 8000508 <__aeabi_dmul>
- 80071cc: a36a add r3, pc, #424 ; (adr r3, 8007378 <_dtoa_r+0x2d0>)
- 80071ce: e9d3 2300 ldrd r2, r3, [r3]
- 80071d2: f7f8 ffe3 bl 800019c <__adddf3>
- 80071d6: 4606 mov r6, r0
- 80071d8: 4620 mov r0, r4
- 80071da: 460f mov r7, r1
- 80071dc: f7f9 f92a bl 8000434 <__aeabi_i2d>
- 80071e0: a367 add r3, pc, #412 ; (adr r3, 8007380 <_dtoa_r+0x2d8>)
- 80071e2: e9d3 2300 ldrd r2, r3, [r3]
- 80071e6: f7f9 f98f bl 8000508 <__aeabi_dmul>
- 80071ea: 4602 mov r2, r0
- 80071ec: 460b mov r3, r1
- 80071ee: 4630 mov r0, r6
- 80071f0: 4639 mov r1, r7
- 80071f2: f7f8 ffd3 bl 800019c <__adddf3>
- 80071f6: 4606 mov r6, r0
- 80071f8: 460f mov r7, r1
- 80071fa: f7f9 fc35 bl 8000a68 <__aeabi_d2iz>
- 80071fe: 2200 movs r2, #0
- 8007200: 4681 mov r9, r0
- 8007202: 2300 movs r3, #0
- 8007204: 4630 mov r0, r6
- 8007206: 4639 mov r1, r7
- 8007208: f7f9 fbf0 bl 80009ec <__aeabi_dcmplt>
- 800720c: b148 cbz r0, 8007222 <_dtoa_r+0x17a>
- 800720e: 4648 mov r0, r9
- 8007210: f7f9 f910 bl 8000434 <__aeabi_i2d>
- 8007214: 4632 mov r2, r6
- 8007216: 463b mov r3, r7
- 8007218: f7f9 fbde bl 80009d8 <__aeabi_dcmpeq>
- 800721c: b908 cbnz r0, 8007222 <_dtoa_r+0x17a>
- 800721e: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
- 8007222: f1b9 0f16 cmp.w r9, #22
- 8007226: d857 bhi.n 80072d8 <_dtoa_r+0x230>
- 8007228: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
- 800722c: 4b5d ldr r3, [pc, #372] ; (80073a4 <_dtoa_r+0x2fc>)
- 800722e: eb03 03c9 add.w r3, r3, r9, lsl #3
- 8007232: e9d3 2300 ldrd r2, r3, [r3]
- 8007236: f7f9 fbd9 bl 80009ec <__aeabi_dcmplt>
- 800723a: 2800 cmp r0, #0
- 800723c: d04e beq.n 80072dc <_dtoa_r+0x234>
- 800723e: 2300 movs r3, #0
- 8007240: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
- 8007244: 930f str r3, [sp, #60] ; 0x3c
- 8007246: 9b16 ldr r3, [sp, #88] ; 0x58
- 8007248: 1b1c subs r4, r3, r4
- 800724a: 1e63 subs r3, r4, #1
- 800724c: 9309 str r3, [sp, #36] ; 0x24
- 800724e: bf49 itett mi
- 8007250: f1c4 0301 rsbmi r3, r4, #1
- 8007254: 2300 movpl r3, #0
- 8007256: 9306 strmi r3, [sp, #24]
- 8007258: 2300 movmi r3, #0
- 800725a: bf54 ite pl
- 800725c: 9306 strpl r3, [sp, #24]
- 800725e: 9309 strmi r3, [sp, #36] ; 0x24
- 8007260: f1b9 0f00 cmp.w r9, #0
- 8007264: db3c blt.n 80072e0 <_dtoa_r+0x238>
- 8007266: 9b09 ldr r3, [sp, #36] ; 0x24
- 8007268: f8cd 9038 str.w r9, [sp, #56] ; 0x38
- 800726c: 444b add r3, r9
- 800726e: 9309 str r3, [sp, #36] ; 0x24
- 8007270: 2300 movs r3, #0
- 8007272: 930a str r3, [sp, #40] ; 0x28
- 8007274: 9b22 ldr r3, [sp, #136] ; 0x88
- 8007276: 2b09 cmp r3, #9
- 8007278: d86c bhi.n 8007354 <_dtoa_r+0x2ac>
- 800727a: 2b05 cmp r3, #5
- 800727c: bfc4 itt gt
- 800727e: 3b04 subgt r3, #4
- 8007280: 9322 strgt r3, [sp, #136] ; 0x88
- 8007282: 9b22 ldr r3, [sp, #136] ; 0x88
- 8007284: bfc8 it gt
- 8007286: 2400 movgt r4, #0
- 8007288: f1a3 0302 sub.w r3, r3, #2
- 800728c: bfd8 it le
- 800728e: 2401 movle r4, #1
- 8007290: 2b03 cmp r3, #3
- 8007292: f200 808b bhi.w 80073ac <_dtoa_r+0x304>
- 8007296: e8df f003 tbb [pc, r3]
- 800729a: 4f2d .short 0x4f2d
- 800729c: 5b4d .short 0x5b4d
- 800729e: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58
- 80072a2: 441c add r4, r3
- 80072a4: f204 4332 addw r3, r4, #1074 ; 0x432
- 80072a8: 2b20 cmp r3, #32
- 80072aa: bfc3 ittte gt
- 80072ac: f1c3 0340 rsbgt r3, r3, #64 ; 0x40
- 80072b0: f204 4012 addwgt r0, r4, #1042 ; 0x412
- 80072b4: fa09 f303 lslgt.w r3, r9, r3
- 80072b8: f1c3 0320 rsble r3, r3, #32
- 80072bc: bfc6 itte gt
- 80072be: fa26 f000 lsrgt.w r0, r6, r0
- 80072c2: 4318 orrgt r0, r3
- 80072c4: fa06 f003 lslle.w r0, r6, r3
- 80072c8: f7f9 f8a4 bl 8000414 <__aeabi_ui2d>
- 80072cc: 2301 movs r3, #1
- 80072ce: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000
- 80072d2: 3c01 subs r4, #1
- 80072d4: 9313 str r3, [sp, #76] ; 0x4c
- 80072d6: e770 b.n 80071ba <_dtoa_r+0x112>
- 80072d8: 2301 movs r3, #1
- 80072da: e7b3 b.n 8007244 <_dtoa_r+0x19c>
- 80072dc: 900f str r0, [sp, #60] ; 0x3c
- 80072de: e7b2 b.n 8007246 <_dtoa_r+0x19e>
- 80072e0: 9b06 ldr r3, [sp, #24]
- 80072e2: eba3 0309 sub.w r3, r3, r9
- 80072e6: 9306 str r3, [sp, #24]
- 80072e8: f1c9 0300 rsb r3, r9, #0
- 80072ec: 930a str r3, [sp, #40] ; 0x28
- 80072ee: 2300 movs r3, #0
- 80072f0: 930e str r3, [sp, #56] ; 0x38
- 80072f2: e7bf b.n 8007274 <_dtoa_r+0x1cc>
- 80072f4: 2300 movs r3, #0
- 80072f6: 930b str r3, [sp, #44] ; 0x2c
- 80072f8: 9b23 ldr r3, [sp, #140] ; 0x8c
- 80072fa: 2b00 cmp r3, #0
- 80072fc: dc59 bgt.n 80073b2 <_dtoa_r+0x30a>
- 80072fe: f04f 0b01 mov.w fp, #1
- 8007302: 465b mov r3, fp
- 8007304: f8cd b008 str.w fp, [sp, #8]
- 8007308: f8cd b08c str.w fp, [sp, #140] ; 0x8c
- 800730c: 2200 movs r2, #0
- 800730e: 6a68 ldr r0, [r5, #36] ; 0x24
- 8007310: 6042 str r2, [r0, #4]
- 8007312: 2204 movs r2, #4
- 8007314: f102 0614 add.w r6, r2, #20
- 8007318: 429e cmp r6, r3
- 800731a: 6841 ldr r1, [r0, #4]
- 800731c: d94f bls.n 80073be <_dtoa_r+0x316>
- 800731e: 4628 mov r0, r5
- 8007320: f000 fcca bl 8007cb8 <_Balloc>
- 8007324: 9008 str r0, [sp, #32]
- 8007326: 2800 cmp r0, #0
- 8007328: d14d bne.n 80073c6 <_dtoa_r+0x31e>
- 800732a: 4602 mov r2, r0
- 800732c: f44f 71d5 mov.w r1, #426 ; 0x1aa
- 8007330: 4b1d ldr r3, [pc, #116] ; (80073a8 <_dtoa_r+0x300>)
- 8007332: e6cd b.n 80070d0 <_dtoa_r+0x28>
- 8007334: 2301 movs r3, #1
- 8007336: e7de b.n 80072f6 <_dtoa_r+0x24e>
- 8007338: 2300 movs r3, #0
- 800733a: 930b str r3, [sp, #44] ; 0x2c
- 800733c: 9b23 ldr r3, [sp, #140] ; 0x8c
- 800733e: eb09 0b03 add.w fp, r9, r3
- 8007342: f10b 0301 add.w r3, fp, #1
- 8007346: 2b01 cmp r3, #1
- 8007348: 9302 str r3, [sp, #8]
- 800734a: bfb8 it lt
- 800734c: 2301 movlt r3, #1
- 800734e: e7dd b.n 800730c <_dtoa_r+0x264>
- 8007350: 2301 movs r3, #1
- 8007352: e7f2 b.n 800733a <_dtoa_r+0x292>
- 8007354: 2401 movs r4, #1
- 8007356: 2300 movs r3, #0
- 8007358: 940b str r4, [sp, #44] ; 0x2c
- 800735a: 9322 str r3, [sp, #136] ; 0x88
- 800735c: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff
- 8007360: 2200 movs r2, #0
- 8007362: 2312 movs r3, #18
- 8007364: f8cd b008 str.w fp, [sp, #8]
- 8007368: 9223 str r2, [sp, #140] ; 0x8c
- 800736a: e7cf b.n 800730c <_dtoa_r+0x264>
- 800736c: f3af 8000 nop.w
- 8007370: 636f4361 .word 0x636f4361
- 8007374: 3fd287a7 .word 0x3fd287a7
- 8007378: 8b60c8b3 .word 0x8b60c8b3
- 800737c: 3fc68a28 .word 0x3fc68a28
- 8007380: 509f79fb .word 0x509f79fb
- 8007384: 3fd34413 .word 0x3fd34413
- 8007388: 0800a159 .word 0x0800a159
- 800738c: 0800a170 .word 0x0800a170
- 8007390: 7ff00000 .word 0x7ff00000
- 8007394: 0800a155 .word 0x0800a155
- 8007398: 0800a14c .word 0x0800a14c
- 800739c: 0800a129 .word 0x0800a129
- 80073a0: 3ff80000 .word 0x3ff80000
- 80073a4: 0800a268 .word 0x0800a268
- 80073a8: 0800a1cf .word 0x0800a1cf
- 80073ac: 2301 movs r3, #1
- 80073ae: 930b str r3, [sp, #44] ; 0x2c
- 80073b0: e7d4 b.n 800735c <_dtoa_r+0x2b4>
- 80073b2: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c
- 80073b6: 465b mov r3, fp
- 80073b8: f8cd b008 str.w fp, [sp, #8]
- 80073bc: e7a6 b.n 800730c <_dtoa_r+0x264>
- 80073be: 3101 adds r1, #1
- 80073c0: 6041 str r1, [r0, #4]
- 80073c2: 0052 lsls r2, r2, #1
- 80073c4: e7a6 b.n 8007314 <_dtoa_r+0x26c>
- 80073c6: 6a6b ldr r3, [r5, #36] ; 0x24
- 80073c8: 9a08 ldr r2, [sp, #32]
- 80073ca: 601a str r2, [r3, #0]
- 80073cc: 9b02 ldr r3, [sp, #8]
- 80073ce: 2b0e cmp r3, #14
- 80073d0: f200 80a8 bhi.w 8007524 <_dtoa_r+0x47c>
- 80073d4: 2c00 cmp r4, #0
- 80073d6: f000 80a5 beq.w 8007524 <_dtoa_r+0x47c>
- 80073da: f1b9 0f00 cmp.w r9, #0
- 80073de: dd34 ble.n 800744a <_dtoa_r+0x3a2>
- 80073e0: 4a9a ldr r2, [pc, #616] ; (800764c <_dtoa_r+0x5a4>)
- 80073e2: f009 030f and.w r3, r9, #15
- 80073e6: eb02 03c3 add.w r3, r2, r3, lsl #3
- 80073ea: f419 7f80 tst.w r9, #256 ; 0x100
- 80073ee: e9d3 3400 ldrd r3, r4, [r3]
- 80073f2: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40
- 80073f6: ea4f 1429 mov.w r4, r9, asr #4
- 80073fa: d016 beq.n 800742a <_dtoa_r+0x382>
- 80073fc: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
- 8007400: 4b93 ldr r3, [pc, #588] ; (8007650 <_dtoa_r+0x5a8>)
- 8007402: 2703 movs r7, #3
- 8007404: e9d3 2308 ldrd r2, r3, [r3, #32]
- 8007408: f7f9 f9a8 bl 800075c <__aeabi_ddiv>
- 800740c: e9cd 0104 strd r0, r1, [sp, #16]
- 8007410: f004 040f and.w r4, r4, #15
- 8007414: 4e8e ldr r6, [pc, #568] ; (8007650 <_dtoa_r+0x5a8>)
- 8007416: b954 cbnz r4, 800742e <_dtoa_r+0x386>
- 8007418: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
- 800741c: e9dd 0104 ldrd r0, r1, [sp, #16]
- 8007420: f7f9 f99c bl 800075c <__aeabi_ddiv>
- 8007424: e9cd 0104 strd r0, r1, [sp, #16]
- 8007428: e029 b.n 800747e <_dtoa_r+0x3d6>
- 800742a: 2702 movs r7, #2
- 800742c: e7f2 b.n 8007414 <_dtoa_r+0x36c>
- 800742e: 07e1 lsls r1, r4, #31
- 8007430: d508 bpl.n 8007444 <_dtoa_r+0x39c>
- 8007432: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
- 8007436: e9d6 2300 ldrd r2, r3, [r6]
- 800743a: f7f9 f865 bl 8000508 <__aeabi_dmul>
- 800743e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
- 8007442: 3701 adds r7, #1
- 8007444: 1064 asrs r4, r4, #1
- 8007446: 3608 adds r6, #8
- 8007448: e7e5 b.n 8007416 <_dtoa_r+0x36e>
- 800744a: f000 80a5 beq.w 8007598 <_dtoa_r+0x4f0>
- 800744e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
- 8007452: f1c9 0400 rsb r4, r9, #0
- 8007456: 4b7d ldr r3, [pc, #500] ; (800764c <_dtoa_r+0x5a4>)
- 8007458: f004 020f and.w r2, r4, #15
- 800745c: eb03 03c2 add.w r3, r3, r2, lsl #3
- 8007460: e9d3 2300 ldrd r2, r3, [r3]
- 8007464: f7f9 f850 bl 8000508 <__aeabi_dmul>
- 8007468: 2702 movs r7, #2
- 800746a: 2300 movs r3, #0
- 800746c: e9cd 0104 strd r0, r1, [sp, #16]
- 8007470: 4e77 ldr r6, [pc, #476] ; (8007650 <_dtoa_r+0x5a8>)
- 8007472: 1124 asrs r4, r4, #4
- 8007474: 2c00 cmp r4, #0
- 8007476: f040 8084 bne.w 8007582 <_dtoa_r+0x4da>
- 800747a: 2b00 cmp r3, #0
- 800747c: d1d2 bne.n 8007424 <_dtoa_r+0x37c>
- 800747e: 9b0f ldr r3, [sp, #60] ; 0x3c
- 8007480: 2b00 cmp r3, #0
- 8007482: f000 808b beq.w 800759c <_dtoa_r+0x4f4>
- 8007486: e9dd 3404 ldrd r3, r4, [sp, #16]
- 800748a: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40
- 800748e: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
- 8007492: 2200 movs r2, #0
- 8007494: 4b6f ldr r3, [pc, #444] ; (8007654 <_dtoa_r+0x5ac>)
- 8007496: f7f9 faa9 bl 80009ec <__aeabi_dcmplt>
- 800749a: 2800 cmp r0, #0
- 800749c: d07e beq.n 800759c <_dtoa_r+0x4f4>
- 800749e: 9b02 ldr r3, [sp, #8]
- 80074a0: 2b00 cmp r3, #0
- 80074a2: d07b beq.n 800759c <_dtoa_r+0x4f4>
- 80074a4: f1bb 0f00 cmp.w fp, #0
- 80074a8: dd38 ble.n 800751c <_dtoa_r+0x474>
- 80074aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
- 80074ae: 2200 movs r2, #0
- 80074b0: 4b69 ldr r3, [pc, #420] ; (8007658 <_dtoa_r+0x5b0>)
- 80074b2: f7f9 f829 bl 8000508 <__aeabi_dmul>
- 80074b6: 465c mov r4, fp
- 80074b8: e9cd 0104 strd r0, r1, [sp, #16]
- 80074bc: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff
- 80074c0: 3701 adds r7, #1
- 80074c2: 4638 mov r0, r7
- 80074c4: f7f8 ffb6 bl 8000434 <__aeabi_i2d>
- 80074c8: e9dd 2304 ldrd r2, r3, [sp, #16]
- 80074cc: f7f9 f81c bl 8000508 <__aeabi_dmul>
- 80074d0: 2200 movs r2, #0
- 80074d2: 4b62 ldr r3, [pc, #392] ; (800765c <_dtoa_r+0x5b4>)
- 80074d4: f7f8 fe62 bl 800019c <__adddf3>
- 80074d8: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000
- 80074dc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
- 80074e0: 9611 str r6, [sp, #68] ; 0x44
- 80074e2: 2c00 cmp r4, #0
- 80074e4: d15d bne.n 80075a2 <_dtoa_r+0x4fa>
- 80074e6: e9dd 0104 ldrd r0, r1, [sp, #16]
- 80074ea: 2200 movs r2, #0
- 80074ec: 4b5c ldr r3, [pc, #368] ; (8007660 <_dtoa_r+0x5b8>)
- 80074ee: f7f8 fe53 bl 8000198 <__aeabi_dsub>
- 80074f2: 4602 mov r2, r0
- 80074f4: 460b mov r3, r1
- 80074f6: e9cd 2304 strd r2, r3, [sp, #16]
- 80074fa: 4633 mov r3, r6
- 80074fc: 9a10 ldr r2, [sp, #64] ; 0x40
- 80074fe: f7f9 fa93 bl 8000a28 <__aeabi_dcmpgt>
- 8007502: 2800 cmp r0, #0
- 8007504: f040 829e bne.w 8007a44 <_dtoa_r+0x99c>
- 8007508: e9dd 0104 ldrd r0, r1, [sp, #16]
- 800750c: 9a10 ldr r2, [sp, #64] ; 0x40
- 800750e: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000
- 8007512: f7f9 fa6b bl 80009ec <__aeabi_dcmplt>
- 8007516: 2800 cmp r0, #0
- 8007518: f040 8292 bne.w 8007a40 <_dtoa_r+0x998>
- 800751c: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30
- 8007520: e9cd 3404 strd r3, r4, [sp, #16]
- 8007524: 9b17 ldr r3, [sp, #92] ; 0x5c
- 8007526: 2b00 cmp r3, #0
- 8007528: f2c0 8153 blt.w 80077d2 <_dtoa_r+0x72a>
- 800752c: f1b9 0f0e cmp.w r9, #14
- 8007530: f300 814f bgt.w 80077d2 <_dtoa_r+0x72a>
- 8007534: 4b45 ldr r3, [pc, #276] ; (800764c <_dtoa_r+0x5a4>)
- 8007536: eb03 03c9 add.w r3, r3, r9, lsl #3
- 800753a: e9d3 3400 ldrd r3, r4, [r3]
- 800753e: e9cd 3406 strd r3, r4, [sp, #24]
- 8007542: 9b23 ldr r3, [sp, #140] ; 0x8c
- 8007544: 2b00 cmp r3, #0
- 8007546: f280 80db bge.w 8007700 <_dtoa_r+0x658>
- 800754a: 9b02 ldr r3, [sp, #8]
- 800754c: 2b00 cmp r3, #0
- 800754e: f300 80d7 bgt.w 8007700 <_dtoa_r+0x658>
- 8007552: f040 8274 bne.w 8007a3e <_dtoa_r+0x996>
- 8007556: e9dd 0106 ldrd r0, r1, [sp, #24]
- 800755a: 2200 movs r2, #0
- 800755c: 4b40 ldr r3, [pc, #256] ; (8007660 <_dtoa_r+0x5b8>)
- 800755e: f7f8 ffd3 bl 8000508 <__aeabi_dmul>
- 8007562: e9dd 2304 ldrd r2, r3, [sp, #16]
- 8007566: f7f9 fa55 bl 8000a14 <__aeabi_dcmpge>
- 800756a: 9c02 ldr r4, [sp, #8]
- 800756c: 4626 mov r6, r4
- 800756e: 2800 cmp r0, #0
- 8007570: f040 824a bne.w 8007a08 <_dtoa_r+0x960>
- 8007574: 2331 movs r3, #49 ; 0x31
- 8007576: 9f08 ldr r7, [sp, #32]
- 8007578: f109 0901 add.w r9, r9, #1
- 800757c: f807 3b01 strb.w r3, [r7], #1
- 8007580: e246 b.n 8007a10 <_dtoa_r+0x968>
- 8007582: 07e2 lsls r2, r4, #31
- 8007584: d505 bpl.n 8007592 <_dtoa_r+0x4ea>
- 8007586: e9d6 2300 ldrd r2, r3, [r6]
- 800758a: f7f8 ffbd bl 8000508 <__aeabi_dmul>
- 800758e: 2301 movs r3, #1
- 8007590: 3701 adds r7, #1
- 8007592: 1064 asrs r4, r4, #1
- 8007594: 3608 adds r6, #8
- 8007596: e76d b.n 8007474 <_dtoa_r+0x3cc>
- 8007598: 2702 movs r7, #2
- 800759a: e770 b.n 800747e <_dtoa_r+0x3d6>
- 800759c: 46c8 mov r8, r9
- 800759e: 9c02 ldr r4, [sp, #8]
- 80075a0: e78f b.n 80074c2 <_dtoa_r+0x41a>
- 80075a2: 9908 ldr r1, [sp, #32]
- 80075a4: 4b29 ldr r3, [pc, #164] ; (800764c <_dtoa_r+0x5a4>)
- 80075a6: 4421 add r1, r4
- 80075a8: 9112 str r1, [sp, #72] ; 0x48
- 80075aa: 990b ldr r1, [sp, #44] ; 0x2c
- 80075ac: eb03 03c4 add.w r3, r3, r4, lsl #3
- 80075b0: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40
- 80075b4: e953 2302 ldrd r2, r3, [r3, #-8]
- 80075b8: 2900 cmp r1, #0
- 80075ba: d055 beq.n 8007668 <_dtoa_r+0x5c0>
- 80075bc: 2000 movs r0, #0
- 80075be: 4929 ldr r1, [pc, #164] ; (8007664 <_dtoa_r+0x5bc>)
- 80075c0: f7f9 f8cc bl 800075c <__aeabi_ddiv>
- 80075c4: 463b mov r3, r7
- 80075c6: 4632 mov r2, r6
- 80075c8: f7f8 fde6 bl 8000198 <__aeabi_dsub>
- 80075cc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
- 80075d0: 9f08 ldr r7, [sp, #32]
- 80075d2: e9dd 0104 ldrd r0, r1, [sp, #16]
- 80075d6: f7f9 fa47 bl 8000a68 <__aeabi_d2iz>
- 80075da: 4604 mov r4, r0
- 80075dc: f7f8 ff2a bl 8000434 <__aeabi_i2d>
- 80075e0: 4602 mov r2, r0
- 80075e2: 460b mov r3, r1
- 80075e4: e9dd 0104 ldrd r0, r1, [sp, #16]
- 80075e8: f7f8 fdd6 bl 8000198 <__aeabi_dsub>
- 80075ec: 4602 mov r2, r0
- 80075ee: 460b mov r3, r1
- 80075f0: 3430 adds r4, #48 ; 0x30
- 80075f2: e9cd 2304 strd r2, r3, [sp, #16]
- 80075f6: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
- 80075fa: f807 4b01 strb.w r4, [r7], #1
- 80075fe: f7f9 f9f5 bl 80009ec <__aeabi_dcmplt>
- 8007602: 2800 cmp r0, #0
- 8007604: d174 bne.n 80076f0 <_dtoa_r+0x648>
- 8007606: e9dd 2304 ldrd r2, r3, [sp, #16]
- 800760a: 2000 movs r0, #0
- 800760c: 4911 ldr r1, [pc, #68] ; (8007654 <_dtoa_r+0x5ac>)
- 800760e: f7f8 fdc3 bl 8000198 <__aeabi_dsub>
- 8007612: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
- 8007616: f7f9 f9e9 bl 80009ec <__aeabi_dcmplt>
- 800761a: 2800 cmp r0, #0
- 800761c: f040 80b6 bne.w 800778c <_dtoa_r+0x6e4>
- 8007620: 9b12 ldr r3, [sp, #72] ; 0x48
- 8007622: 429f cmp r7, r3
- 8007624: f43f af7a beq.w 800751c <_dtoa_r+0x474>
- 8007628: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
- 800762c: 2200 movs r2, #0
- 800762e: 4b0a ldr r3, [pc, #40] ; (8007658 <_dtoa_r+0x5b0>)
- 8007630: f7f8 ff6a bl 8000508 <__aeabi_dmul>
- 8007634: 2200 movs r2, #0
- 8007636: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
- 800763a: e9dd 0104 ldrd r0, r1, [sp, #16]
- 800763e: 4b06 ldr r3, [pc, #24] ; (8007658 <_dtoa_r+0x5b0>)
- 8007640: f7f8 ff62 bl 8000508 <__aeabi_dmul>
- 8007644: e9cd 0104 strd r0, r1, [sp, #16]
- 8007648: e7c3 b.n 80075d2 <_dtoa_r+0x52a>
- 800764a: bf00 nop
- 800764c: 0800a268 .word 0x0800a268
- 8007650: 0800a240 .word 0x0800a240
- 8007654: 3ff00000 .word 0x3ff00000
- 8007658: 40240000 .word 0x40240000
- 800765c: 401c0000 .word 0x401c0000
- 8007660: 40140000 .word 0x40140000
- 8007664: 3fe00000 .word 0x3fe00000
- 8007668: 4630 mov r0, r6
- 800766a: 4639 mov r1, r7
- 800766c: f7f8 ff4c bl 8000508 <__aeabi_dmul>
- 8007670: 9b12 ldr r3, [sp, #72] ; 0x48
- 8007672: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
- 8007676: 9c08 ldr r4, [sp, #32]
- 8007678: 9314 str r3, [sp, #80] ; 0x50
- 800767a: e9dd 0104 ldrd r0, r1, [sp, #16]
- 800767e: f7f9 f9f3 bl 8000a68 <__aeabi_d2iz>
- 8007682: 9015 str r0, [sp, #84] ; 0x54
- 8007684: f7f8 fed6 bl 8000434 <__aeabi_i2d>
- 8007688: 4602 mov r2, r0
- 800768a: 460b mov r3, r1
- 800768c: e9dd 0104 ldrd r0, r1, [sp, #16]
- 8007690: f7f8 fd82 bl 8000198 <__aeabi_dsub>
- 8007694: 9b15 ldr r3, [sp, #84] ; 0x54
- 8007696: 4606 mov r6, r0
- 8007698: 3330 adds r3, #48 ; 0x30
- 800769a: f804 3b01 strb.w r3, [r4], #1
- 800769e: 9b12 ldr r3, [sp, #72] ; 0x48
- 80076a0: 460f mov r7, r1
- 80076a2: 429c cmp r4, r3
- 80076a4: f04f 0200 mov.w r2, #0
- 80076a8: d124 bne.n 80076f4 <_dtoa_r+0x64c>
- 80076aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
- 80076ae: 4bb3 ldr r3, [pc, #716] ; (800797c <_dtoa_r+0x8d4>)
- 80076b0: f7f8 fd74 bl 800019c <__adddf3>
- 80076b4: 4602 mov r2, r0
- 80076b6: 460b mov r3, r1
- 80076b8: 4630 mov r0, r6
- 80076ba: 4639 mov r1, r7
- 80076bc: f7f9 f9b4 bl 8000a28 <__aeabi_dcmpgt>
- 80076c0: 2800 cmp r0, #0
- 80076c2: d162 bne.n 800778a <_dtoa_r+0x6e2>
- 80076c4: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
- 80076c8: 2000 movs r0, #0
- 80076ca: 49ac ldr r1, [pc, #688] ; (800797c <_dtoa_r+0x8d4>)
- 80076cc: f7f8 fd64 bl 8000198 <__aeabi_dsub>
- 80076d0: 4602 mov r2, r0
- 80076d2: 460b mov r3, r1
- 80076d4: 4630 mov r0, r6
- 80076d6: 4639 mov r1, r7
- 80076d8: f7f9 f988 bl 80009ec <__aeabi_dcmplt>
- 80076dc: 2800 cmp r0, #0
- 80076de: f43f af1d beq.w 800751c <_dtoa_r+0x474>
- 80076e2: 9f14 ldr r7, [sp, #80] ; 0x50
- 80076e4: 1e7b subs r3, r7, #1
- 80076e6: 9314 str r3, [sp, #80] ; 0x50
- 80076e8: f817 3c01 ldrb.w r3, [r7, #-1]
- 80076ec: 2b30 cmp r3, #48 ; 0x30
- 80076ee: d0f8 beq.n 80076e2 <_dtoa_r+0x63a>
- 80076f0: 46c1 mov r9, r8
- 80076f2: e03a b.n 800776a <_dtoa_r+0x6c2>
- 80076f4: 4ba2 ldr r3, [pc, #648] ; (8007980 <_dtoa_r+0x8d8>)
- 80076f6: f7f8 ff07 bl 8000508 <__aeabi_dmul>
- 80076fa: e9cd 0104 strd r0, r1, [sp, #16]
- 80076fe: e7bc b.n 800767a <_dtoa_r+0x5d2>
- 8007700: 9f08 ldr r7, [sp, #32]
- 8007702: e9dd 2306 ldrd r2, r3, [sp, #24]
- 8007706: e9dd 0104 ldrd r0, r1, [sp, #16]
- 800770a: f7f9 f827 bl 800075c <__aeabi_ddiv>
- 800770e: f7f9 f9ab bl 8000a68 <__aeabi_d2iz>
- 8007712: 4604 mov r4, r0
- 8007714: f7f8 fe8e bl 8000434 <__aeabi_i2d>
- 8007718: e9dd 2306 ldrd r2, r3, [sp, #24]
- 800771c: f7f8 fef4 bl 8000508 <__aeabi_dmul>
- 8007720: f104 0630 add.w r6, r4, #48 ; 0x30
- 8007724: 460b mov r3, r1
- 8007726: 4602 mov r2, r0
- 8007728: e9dd 0104 ldrd r0, r1, [sp, #16]
- 800772c: f7f8 fd34 bl 8000198 <__aeabi_dsub>
- 8007730: f807 6b01 strb.w r6, [r7], #1
- 8007734: 9e08 ldr r6, [sp, #32]
- 8007736: 9b02 ldr r3, [sp, #8]
- 8007738: 1bbe subs r6, r7, r6
- 800773a: 42b3 cmp r3, r6
- 800773c: d13a bne.n 80077b4 <_dtoa_r+0x70c>
- 800773e: 4602 mov r2, r0
- 8007740: 460b mov r3, r1
- 8007742: f7f8 fd2b bl 800019c <__adddf3>
- 8007746: 4602 mov r2, r0
- 8007748: 460b mov r3, r1
- 800774a: e9cd 2302 strd r2, r3, [sp, #8]
- 800774e: e9dd 2306 ldrd r2, r3, [sp, #24]
- 8007752: f7f9 f969 bl 8000a28 <__aeabi_dcmpgt>
- 8007756: bb58 cbnz r0, 80077b0 <_dtoa_r+0x708>
- 8007758: e9dd 2306 ldrd r2, r3, [sp, #24]
- 800775c: e9dd 0102 ldrd r0, r1, [sp, #8]
- 8007760: f7f9 f93a bl 80009d8 <__aeabi_dcmpeq>
- 8007764: b108 cbz r0, 800776a <_dtoa_r+0x6c2>
- 8007766: 07e1 lsls r1, r4, #31
- 8007768: d422 bmi.n 80077b0 <_dtoa_r+0x708>
- 800776a: 4628 mov r0, r5
- 800776c: 4651 mov r1, sl
- 800776e: f000 fae3 bl 8007d38 <_Bfree>
- 8007772: 2300 movs r3, #0
- 8007774: 703b strb r3, [r7, #0]
- 8007776: 9b24 ldr r3, [sp, #144] ; 0x90
- 8007778: f109 0001 add.w r0, r9, #1
- 800777c: 6018 str r0, [r3, #0]
- 800777e: 9b26 ldr r3, [sp, #152] ; 0x98
- 8007780: 2b00 cmp r3, #0
- 8007782: f43f acdf beq.w 8007144 <_dtoa_r+0x9c>
- 8007786: 601f str r7, [r3, #0]
- 8007788: e4dc b.n 8007144 <_dtoa_r+0x9c>
- 800778a: 4627 mov r7, r4
- 800778c: 463b mov r3, r7
- 800778e: 461f mov r7, r3
- 8007790: f813 2d01 ldrb.w r2, [r3, #-1]!
- 8007794: 2a39 cmp r2, #57 ; 0x39
- 8007796: d107 bne.n 80077a8 <_dtoa_r+0x700>
- 8007798: 9a08 ldr r2, [sp, #32]
- 800779a: 429a cmp r2, r3
- 800779c: d1f7 bne.n 800778e <_dtoa_r+0x6e6>
- 800779e: 2230 movs r2, #48 ; 0x30
- 80077a0: 9908 ldr r1, [sp, #32]
- 80077a2: f108 0801 add.w r8, r8, #1
- 80077a6: 700a strb r2, [r1, #0]
- 80077a8: 781a ldrb r2, [r3, #0]
- 80077aa: 3201 adds r2, #1
- 80077ac: 701a strb r2, [r3, #0]
- 80077ae: e79f b.n 80076f0 <_dtoa_r+0x648>
- 80077b0: 46c8 mov r8, r9
- 80077b2: e7eb b.n 800778c <_dtoa_r+0x6e4>
- 80077b4: 2200 movs r2, #0
- 80077b6: 4b72 ldr r3, [pc, #456] ; (8007980 <_dtoa_r+0x8d8>)
- 80077b8: f7f8 fea6 bl 8000508 <__aeabi_dmul>
- 80077bc: 4602 mov r2, r0
- 80077be: 460b mov r3, r1
- 80077c0: e9cd 2304 strd r2, r3, [sp, #16]
- 80077c4: 2200 movs r2, #0
- 80077c6: 2300 movs r3, #0
- 80077c8: f7f9 f906 bl 80009d8 <__aeabi_dcmpeq>
- 80077cc: 2800 cmp r0, #0
- 80077ce: d098 beq.n 8007702 <_dtoa_r+0x65a>
- 80077d0: e7cb b.n 800776a <_dtoa_r+0x6c2>
- 80077d2: 9a0b ldr r2, [sp, #44] ; 0x2c
- 80077d4: 2a00 cmp r2, #0
- 80077d6: f000 80cd beq.w 8007974 <_dtoa_r+0x8cc>
- 80077da: 9a22 ldr r2, [sp, #136] ; 0x88
- 80077dc: 2a01 cmp r2, #1
- 80077de: f300 80af bgt.w 8007940 <_dtoa_r+0x898>
- 80077e2: 9a13 ldr r2, [sp, #76] ; 0x4c
- 80077e4: 2a00 cmp r2, #0
- 80077e6: f000 80a7 beq.w 8007938 <_dtoa_r+0x890>
- 80077ea: f203 4333 addw r3, r3, #1075 ; 0x433
- 80077ee: 9c0a ldr r4, [sp, #40] ; 0x28
- 80077f0: 9f06 ldr r7, [sp, #24]
- 80077f2: 9a06 ldr r2, [sp, #24]
- 80077f4: 2101 movs r1, #1
- 80077f6: 441a add r2, r3
- 80077f8: 9206 str r2, [sp, #24]
- 80077fa: 9a09 ldr r2, [sp, #36] ; 0x24
- 80077fc: 4628 mov r0, r5
- 80077fe: 441a add r2, r3
- 8007800: 9209 str r2, [sp, #36] ; 0x24
- 8007802: f000 fb53 bl 8007eac <__i2b>
- 8007806: 4606 mov r6, r0
- 8007808: 2f00 cmp r7, #0
- 800780a: dd0c ble.n 8007826 <_dtoa_r+0x77e>
- 800780c: 9b09 ldr r3, [sp, #36] ; 0x24
- 800780e: 2b00 cmp r3, #0
- 8007810: dd09 ble.n 8007826 <_dtoa_r+0x77e>
- 8007812: 42bb cmp r3, r7
- 8007814: bfa8 it ge
- 8007816: 463b movge r3, r7
- 8007818: 9a06 ldr r2, [sp, #24]
- 800781a: 1aff subs r7, r7, r3
- 800781c: 1ad2 subs r2, r2, r3
- 800781e: 9206 str r2, [sp, #24]
- 8007820: 9a09 ldr r2, [sp, #36] ; 0x24
- 8007822: 1ad3 subs r3, r2, r3
- 8007824: 9309 str r3, [sp, #36] ; 0x24
- 8007826: 9b0a ldr r3, [sp, #40] ; 0x28
- 8007828: b1f3 cbz r3, 8007868 <_dtoa_r+0x7c0>
- 800782a: 9b0b ldr r3, [sp, #44] ; 0x2c
- 800782c: 2b00 cmp r3, #0
- 800782e: f000 80a9 beq.w 8007984 <_dtoa_r+0x8dc>
- 8007832: 2c00 cmp r4, #0
- 8007834: dd10 ble.n 8007858 <_dtoa_r+0x7b0>
- 8007836: 4631 mov r1, r6
- 8007838: 4622 mov r2, r4
- 800783a: 4628 mov r0, r5
- 800783c: f000 fbf0 bl 8008020 <__pow5mult>
- 8007840: 4652 mov r2, sl
- 8007842: 4601 mov r1, r0
- 8007844: 4606 mov r6, r0
- 8007846: 4628 mov r0, r5
- 8007848: f000 fb46 bl 8007ed8 <__multiply>
- 800784c: 4680 mov r8, r0
- 800784e: 4651 mov r1, sl
- 8007850: 4628 mov r0, r5
- 8007852: f000 fa71 bl 8007d38 <_Bfree>
- 8007856: 46c2 mov sl, r8
- 8007858: 9b0a ldr r3, [sp, #40] ; 0x28
- 800785a: 1b1a subs r2, r3, r4
- 800785c: d004 beq.n 8007868 <_dtoa_r+0x7c0>
- 800785e: 4651 mov r1, sl
- 8007860: 4628 mov r0, r5
- 8007862: f000 fbdd bl 8008020 <__pow5mult>
- 8007866: 4682 mov sl, r0
- 8007868: 2101 movs r1, #1
- 800786a: 4628 mov r0, r5
- 800786c: f000 fb1e bl 8007eac <__i2b>
- 8007870: 9b0e ldr r3, [sp, #56] ; 0x38
- 8007872: 4604 mov r4, r0
- 8007874: 2b00 cmp r3, #0
- 8007876: f340 8087 ble.w 8007988 <_dtoa_r+0x8e0>
- 800787a: 461a mov r2, r3
- 800787c: 4601 mov r1, r0
- 800787e: 4628 mov r0, r5
- 8007880: f000 fbce bl 8008020 <__pow5mult>
- 8007884: 9b22 ldr r3, [sp, #136] ; 0x88
- 8007886: 4604 mov r4, r0
- 8007888: 2b01 cmp r3, #1
- 800788a: f340 8080 ble.w 800798e <_dtoa_r+0x8e6>
- 800788e: f04f 0800 mov.w r8, #0
- 8007892: 6923 ldr r3, [r4, #16]
- 8007894: eb04 0383 add.w r3, r4, r3, lsl #2
- 8007898: 6918 ldr r0, [r3, #16]
- 800789a: f000 fab9 bl 8007e10 <__hi0bits>
- 800789e: f1c0 0020 rsb r0, r0, #32
- 80078a2: 9b09 ldr r3, [sp, #36] ; 0x24
- 80078a4: 4418 add r0, r3
- 80078a6: f010 001f ands.w r0, r0, #31
- 80078aa: f000 8092 beq.w 80079d2 <_dtoa_r+0x92a>
- 80078ae: f1c0 0320 rsb r3, r0, #32
- 80078b2: 2b04 cmp r3, #4
- 80078b4: f340 808a ble.w 80079cc <_dtoa_r+0x924>
- 80078b8: f1c0 001c rsb r0, r0, #28
- 80078bc: 9b06 ldr r3, [sp, #24]
- 80078be: 4407 add r7, r0
- 80078c0: 4403 add r3, r0
- 80078c2: 9306 str r3, [sp, #24]
- 80078c4: 9b09 ldr r3, [sp, #36] ; 0x24
- 80078c6: 4403 add r3, r0
- 80078c8: 9309 str r3, [sp, #36] ; 0x24
- 80078ca: 9b06 ldr r3, [sp, #24]
- 80078cc: 2b00 cmp r3, #0
- 80078ce: dd05 ble.n 80078dc <_dtoa_r+0x834>
- 80078d0: 4651 mov r1, sl
- 80078d2: 461a mov r2, r3
- 80078d4: 4628 mov r0, r5
- 80078d6: f000 fbfd bl 80080d4 <__lshift>
- 80078da: 4682 mov sl, r0
- 80078dc: 9b09 ldr r3, [sp, #36] ; 0x24
- 80078de: 2b00 cmp r3, #0
- 80078e0: dd05 ble.n 80078ee <_dtoa_r+0x846>
- 80078e2: 4621 mov r1, r4
- 80078e4: 461a mov r2, r3
- 80078e6: 4628 mov r0, r5
- 80078e8: f000 fbf4 bl 80080d4 <__lshift>
- 80078ec: 4604 mov r4, r0
- 80078ee: 9b0f ldr r3, [sp, #60] ; 0x3c
- 80078f0: 2b00 cmp r3, #0
- 80078f2: d070 beq.n 80079d6 <_dtoa_r+0x92e>
- 80078f4: 4621 mov r1, r4
- 80078f6: 4650 mov r0, sl
- 80078f8: f000 fc58 bl 80081ac <__mcmp>
- 80078fc: 2800 cmp r0, #0
- 80078fe: da6a bge.n 80079d6 <_dtoa_r+0x92e>
- 8007900: 2300 movs r3, #0
- 8007902: 4651 mov r1, sl
- 8007904: 220a movs r2, #10
- 8007906: 4628 mov r0, r5
- 8007908: f000 fa38 bl 8007d7c <__multadd>
- 800790c: 9b0b ldr r3, [sp, #44] ; 0x2c
- 800790e: 4682 mov sl, r0
- 8007910: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
- 8007914: 2b00 cmp r3, #0
- 8007916: f000 8193 beq.w 8007c40 <_dtoa_r+0xb98>
- 800791a: 4631 mov r1, r6
- 800791c: 2300 movs r3, #0
- 800791e: 220a movs r2, #10
- 8007920: 4628 mov r0, r5
- 8007922: f000 fa2b bl 8007d7c <__multadd>
- 8007926: f1bb 0f00 cmp.w fp, #0
- 800792a: 4606 mov r6, r0
- 800792c: f300 8093 bgt.w 8007a56 <_dtoa_r+0x9ae>
- 8007930: 9b22 ldr r3, [sp, #136] ; 0x88
- 8007932: 2b02 cmp r3, #2
- 8007934: dc57 bgt.n 80079e6 <_dtoa_r+0x93e>
- 8007936: e08e b.n 8007a56 <_dtoa_r+0x9ae>
- 8007938: 9b16 ldr r3, [sp, #88] ; 0x58
- 800793a: f1c3 0336 rsb r3, r3, #54 ; 0x36
- 800793e: e756 b.n 80077ee <_dtoa_r+0x746>
- 8007940: 9b02 ldr r3, [sp, #8]
- 8007942: 1e5c subs r4, r3, #1
- 8007944: 9b0a ldr r3, [sp, #40] ; 0x28
- 8007946: 42a3 cmp r3, r4
- 8007948: bfb7 itett lt
- 800794a: 9b0a ldrlt r3, [sp, #40] ; 0x28
- 800794c: 1b1c subge r4, r3, r4
- 800794e: 1ae2 sublt r2, r4, r3
- 8007950: 9b0e ldrlt r3, [sp, #56] ; 0x38
- 8007952: bfbe ittt lt
- 8007954: 940a strlt r4, [sp, #40] ; 0x28
- 8007956: 189b addlt r3, r3, r2
- 8007958: 930e strlt r3, [sp, #56] ; 0x38
- 800795a: 9b02 ldr r3, [sp, #8]
- 800795c: bfb8 it lt
- 800795e: 2400 movlt r4, #0
- 8007960: 2b00 cmp r3, #0
- 8007962: bfbb ittet lt
- 8007964: 9b06 ldrlt r3, [sp, #24]
- 8007966: 9a02 ldrlt r2, [sp, #8]
- 8007968: 9f06 ldrge r7, [sp, #24]
- 800796a: 1a9f sublt r7, r3, r2
- 800796c: bfac ite ge
- 800796e: 9b02 ldrge r3, [sp, #8]
- 8007970: 2300 movlt r3, #0
- 8007972: e73e b.n 80077f2 <_dtoa_r+0x74a>
- 8007974: 9c0a ldr r4, [sp, #40] ; 0x28
- 8007976: 9f06 ldr r7, [sp, #24]
- 8007978: 9e0b ldr r6, [sp, #44] ; 0x2c
- 800797a: e745 b.n 8007808 <_dtoa_r+0x760>
- 800797c: 3fe00000 .word 0x3fe00000
- 8007980: 40240000 .word 0x40240000
- 8007984: 9a0a ldr r2, [sp, #40] ; 0x28
- 8007986: e76a b.n 800785e <_dtoa_r+0x7b6>
- 8007988: 9b22 ldr r3, [sp, #136] ; 0x88
- 800798a: 2b01 cmp r3, #1
- 800798c: dc19 bgt.n 80079c2 <_dtoa_r+0x91a>
- 800798e: 9b04 ldr r3, [sp, #16]
- 8007990: b9bb cbnz r3, 80079c2 <_dtoa_r+0x91a>
- 8007992: 9b05 ldr r3, [sp, #20]
- 8007994: f3c3 0313 ubfx r3, r3, #0, #20
- 8007998: b99b cbnz r3, 80079c2 <_dtoa_r+0x91a>
- 800799a: 9b05 ldr r3, [sp, #20]
- 800799c: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
- 80079a0: 0d1b lsrs r3, r3, #20
- 80079a2: 051b lsls r3, r3, #20
- 80079a4: b183 cbz r3, 80079c8 <_dtoa_r+0x920>
- 80079a6: f04f 0801 mov.w r8, #1
- 80079aa: 9b06 ldr r3, [sp, #24]
- 80079ac: 3301 adds r3, #1
- 80079ae: 9306 str r3, [sp, #24]
- 80079b0: 9b09 ldr r3, [sp, #36] ; 0x24
- 80079b2: 3301 adds r3, #1
- 80079b4: 9309 str r3, [sp, #36] ; 0x24
- 80079b6: 9b0e ldr r3, [sp, #56] ; 0x38
- 80079b8: 2b00 cmp r3, #0
- 80079ba: f47f af6a bne.w 8007892 <_dtoa_r+0x7ea>
- 80079be: 2001 movs r0, #1
- 80079c0: e76f b.n 80078a2 <_dtoa_r+0x7fa>
- 80079c2: f04f 0800 mov.w r8, #0
- 80079c6: e7f6 b.n 80079b6 <_dtoa_r+0x90e>
- 80079c8: 4698 mov r8, r3
- 80079ca: e7f4 b.n 80079b6 <_dtoa_r+0x90e>
- 80079cc: f43f af7d beq.w 80078ca <_dtoa_r+0x822>
- 80079d0: 4618 mov r0, r3
- 80079d2: 301c adds r0, #28
- 80079d4: e772 b.n 80078bc <_dtoa_r+0x814>
- 80079d6: 9b02 ldr r3, [sp, #8]
- 80079d8: 2b00 cmp r3, #0
- 80079da: dc36 bgt.n 8007a4a <_dtoa_r+0x9a2>
- 80079dc: 9b22 ldr r3, [sp, #136] ; 0x88
- 80079de: 2b02 cmp r3, #2
- 80079e0: dd33 ble.n 8007a4a <_dtoa_r+0x9a2>
- 80079e2: f8dd b008 ldr.w fp, [sp, #8]
- 80079e6: f1bb 0f00 cmp.w fp, #0
- 80079ea: d10d bne.n 8007a08 <_dtoa_r+0x960>
- 80079ec: 4621 mov r1, r4
- 80079ee: 465b mov r3, fp
- 80079f0: 2205 movs r2, #5
- 80079f2: 4628 mov r0, r5
- 80079f4: f000 f9c2 bl 8007d7c <__multadd>
- 80079f8: 4601 mov r1, r0
- 80079fa: 4604 mov r4, r0
- 80079fc: 4650 mov r0, sl
- 80079fe: f000 fbd5 bl 80081ac <__mcmp>
- 8007a02: 2800 cmp r0, #0
- 8007a04: f73f adb6 bgt.w 8007574 <_dtoa_r+0x4cc>
- 8007a08: 9b23 ldr r3, [sp, #140] ; 0x8c
- 8007a0a: 9f08 ldr r7, [sp, #32]
- 8007a0c: ea6f 0903 mvn.w r9, r3
- 8007a10: f04f 0800 mov.w r8, #0
- 8007a14: 4621 mov r1, r4
- 8007a16: 4628 mov r0, r5
- 8007a18: f000 f98e bl 8007d38 <_Bfree>
- 8007a1c: 2e00 cmp r6, #0
- 8007a1e: f43f aea4 beq.w 800776a <_dtoa_r+0x6c2>
- 8007a22: f1b8 0f00 cmp.w r8, #0
- 8007a26: d005 beq.n 8007a34 <_dtoa_r+0x98c>
- 8007a28: 45b0 cmp r8, r6
- 8007a2a: d003 beq.n 8007a34 <_dtoa_r+0x98c>
- 8007a2c: 4641 mov r1, r8
- 8007a2e: 4628 mov r0, r5
- 8007a30: f000 f982 bl 8007d38 <_Bfree>
- 8007a34: 4631 mov r1, r6
- 8007a36: 4628 mov r0, r5
- 8007a38: f000 f97e bl 8007d38 <_Bfree>
- 8007a3c: e695 b.n 800776a <_dtoa_r+0x6c2>
- 8007a3e: 2400 movs r4, #0
- 8007a40: 4626 mov r6, r4
- 8007a42: e7e1 b.n 8007a08 <_dtoa_r+0x960>
- 8007a44: 46c1 mov r9, r8
- 8007a46: 4626 mov r6, r4
- 8007a48: e594 b.n 8007574 <_dtoa_r+0x4cc>
- 8007a4a: 9b0b ldr r3, [sp, #44] ; 0x2c
- 8007a4c: f8dd b008 ldr.w fp, [sp, #8]
- 8007a50: 2b00 cmp r3, #0
- 8007a52: f000 80fc beq.w 8007c4e <_dtoa_r+0xba6>
- 8007a56: 2f00 cmp r7, #0
- 8007a58: dd05 ble.n 8007a66 <_dtoa_r+0x9be>
- 8007a5a: 4631 mov r1, r6
- 8007a5c: 463a mov r2, r7
- 8007a5e: 4628 mov r0, r5
- 8007a60: f000 fb38 bl 80080d4 <__lshift>
- 8007a64: 4606 mov r6, r0
- 8007a66: f1b8 0f00 cmp.w r8, #0
- 8007a6a: d05c beq.n 8007b26 <_dtoa_r+0xa7e>
- 8007a6c: 4628 mov r0, r5
- 8007a6e: 6871 ldr r1, [r6, #4]
- 8007a70: f000 f922 bl 8007cb8 <_Balloc>
- 8007a74: 4607 mov r7, r0
- 8007a76: b928 cbnz r0, 8007a84 <_dtoa_r+0x9dc>
- 8007a78: 4602 mov r2, r0
- 8007a7a: f240 21ea movw r1, #746 ; 0x2ea
- 8007a7e: 4b7e ldr r3, [pc, #504] ; (8007c78 <_dtoa_r+0xbd0>)
- 8007a80: f7ff bb26 b.w 80070d0 <_dtoa_r+0x28>
- 8007a84: 6932 ldr r2, [r6, #16]
- 8007a86: f106 010c add.w r1, r6, #12
- 8007a8a: 3202 adds r2, #2
- 8007a8c: 0092 lsls r2, r2, #2
- 8007a8e: 300c adds r0, #12
- 8007a90: f7fe fdca bl 8006628 <memcpy>
- 8007a94: 2201 movs r2, #1
- 8007a96: 4639 mov r1, r7
- 8007a98: 4628 mov r0, r5
- 8007a9a: f000 fb1b bl 80080d4 <__lshift>
- 8007a9e: 46b0 mov r8, r6
- 8007aa0: 4606 mov r6, r0
- 8007aa2: 9b08 ldr r3, [sp, #32]
- 8007aa4: 3301 adds r3, #1
- 8007aa6: 9302 str r3, [sp, #8]
- 8007aa8: 9b08 ldr r3, [sp, #32]
- 8007aaa: 445b add r3, fp
- 8007aac: 930a str r3, [sp, #40] ; 0x28
- 8007aae: 9b04 ldr r3, [sp, #16]
- 8007ab0: f003 0301 and.w r3, r3, #1
- 8007ab4: 9309 str r3, [sp, #36] ; 0x24
- 8007ab6: 9b02 ldr r3, [sp, #8]
- 8007ab8: 4621 mov r1, r4
- 8007aba: 4650 mov r0, sl
- 8007abc: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff
- 8007ac0: f7ff fa62 bl 8006f88 <quorem>
- 8007ac4: 4603 mov r3, r0
- 8007ac6: 4641 mov r1, r8
- 8007ac8: 3330 adds r3, #48 ; 0x30
- 8007aca: 9004 str r0, [sp, #16]
- 8007acc: 4650 mov r0, sl
- 8007ace: 930b str r3, [sp, #44] ; 0x2c
- 8007ad0: f000 fb6c bl 80081ac <__mcmp>
- 8007ad4: 4632 mov r2, r6
- 8007ad6: 9006 str r0, [sp, #24]
- 8007ad8: 4621 mov r1, r4
- 8007ada: 4628 mov r0, r5
- 8007adc: f000 fb82 bl 80081e4 <__mdiff>
- 8007ae0: 68c2 ldr r2, [r0, #12]
- 8007ae2: 4607 mov r7, r0
- 8007ae4: 9b0b ldr r3, [sp, #44] ; 0x2c
- 8007ae6: bb02 cbnz r2, 8007b2a <_dtoa_r+0xa82>
- 8007ae8: 4601 mov r1, r0
- 8007aea: 4650 mov r0, sl
- 8007aec: f000 fb5e bl 80081ac <__mcmp>
- 8007af0: 4602 mov r2, r0
- 8007af2: 9b0b ldr r3, [sp, #44] ; 0x2c
- 8007af4: 4639 mov r1, r7
- 8007af6: 4628 mov r0, r5
- 8007af8: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c
- 8007afc: f000 f91c bl 8007d38 <_Bfree>
- 8007b00: 9b22 ldr r3, [sp, #136] ; 0x88
- 8007b02: 9a0c ldr r2, [sp, #48] ; 0x30
- 8007b04: 9f02 ldr r7, [sp, #8]
- 8007b06: ea43 0102 orr.w r1, r3, r2
- 8007b0a: 9b09 ldr r3, [sp, #36] ; 0x24
- 8007b0c: 430b orrs r3, r1
- 8007b0e: 9b0b ldr r3, [sp, #44] ; 0x2c
- 8007b10: d10d bne.n 8007b2e <_dtoa_r+0xa86>
- 8007b12: 2b39 cmp r3, #57 ; 0x39
- 8007b14: d027 beq.n 8007b66 <_dtoa_r+0xabe>
- 8007b16: 9a06 ldr r2, [sp, #24]
- 8007b18: 2a00 cmp r2, #0
- 8007b1a: dd01 ble.n 8007b20 <_dtoa_r+0xa78>
- 8007b1c: 9b04 ldr r3, [sp, #16]
- 8007b1e: 3331 adds r3, #49 ; 0x31
- 8007b20: f88b 3000 strb.w r3, [fp]
- 8007b24: e776 b.n 8007a14 <_dtoa_r+0x96c>
- 8007b26: 4630 mov r0, r6
- 8007b28: e7b9 b.n 8007a9e <_dtoa_r+0x9f6>
- 8007b2a: 2201 movs r2, #1
- 8007b2c: e7e2 b.n 8007af4 <_dtoa_r+0xa4c>
- 8007b2e: 9906 ldr r1, [sp, #24]
- 8007b30: 2900 cmp r1, #0
- 8007b32: db04 blt.n 8007b3e <_dtoa_r+0xa96>
- 8007b34: 9822 ldr r0, [sp, #136] ; 0x88
- 8007b36: 4301 orrs r1, r0
- 8007b38: 9809 ldr r0, [sp, #36] ; 0x24
- 8007b3a: 4301 orrs r1, r0
- 8007b3c: d120 bne.n 8007b80 <_dtoa_r+0xad8>
- 8007b3e: 2a00 cmp r2, #0
- 8007b40: ddee ble.n 8007b20 <_dtoa_r+0xa78>
- 8007b42: 4651 mov r1, sl
- 8007b44: 2201 movs r2, #1
- 8007b46: 4628 mov r0, r5
- 8007b48: 9302 str r3, [sp, #8]
- 8007b4a: f000 fac3 bl 80080d4 <__lshift>
- 8007b4e: 4621 mov r1, r4
- 8007b50: 4682 mov sl, r0
- 8007b52: f000 fb2b bl 80081ac <__mcmp>
- 8007b56: 2800 cmp r0, #0
- 8007b58: 9b02 ldr r3, [sp, #8]
- 8007b5a: dc02 bgt.n 8007b62 <_dtoa_r+0xaba>
- 8007b5c: d1e0 bne.n 8007b20 <_dtoa_r+0xa78>
- 8007b5e: 07da lsls r2, r3, #31
- 8007b60: d5de bpl.n 8007b20 <_dtoa_r+0xa78>
- 8007b62: 2b39 cmp r3, #57 ; 0x39
- 8007b64: d1da bne.n 8007b1c <_dtoa_r+0xa74>
- 8007b66: 2339 movs r3, #57 ; 0x39
- 8007b68: f88b 3000 strb.w r3, [fp]
- 8007b6c: 463b mov r3, r7
- 8007b6e: 461f mov r7, r3
- 8007b70: f817 2c01 ldrb.w r2, [r7, #-1]
- 8007b74: 3b01 subs r3, #1
- 8007b76: 2a39 cmp r2, #57 ; 0x39
- 8007b78: d050 beq.n 8007c1c <_dtoa_r+0xb74>
- 8007b7a: 3201 adds r2, #1
- 8007b7c: 701a strb r2, [r3, #0]
- 8007b7e: e749 b.n 8007a14 <_dtoa_r+0x96c>
- 8007b80: 2a00 cmp r2, #0
- 8007b82: dd03 ble.n 8007b8c <_dtoa_r+0xae4>
- 8007b84: 2b39 cmp r3, #57 ; 0x39
- 8007b86: d0ee beq.n 8007b66 <_dtoa_r+0xabe>
- 8007b88: 3301 adds r3, #1
- 8007b8a: e7c9 b.n 8007b20 <_dtoa_r+0xa78>
- 8007b8c: 9a02 ldr r2, [sp, #8]
- 8007b8e: 990a ldr r1, [sp, #40] ; 0x28
- 8007b90: f802 3c01 strb.w r3, [r2, #-1]
- 8007b94: 428a cmp r2, r1
- 8007b96: d02a beq.n 8007bee <_dtoa_r+0xb46>
- 8007b98: 4651 mov r1, sl
- 8007b9a: 2300 movs r3, #0
- 8007b9c: 220a movs r2, #10
- 8007b9e: 4628 mov r0, r5
- 8007ba0: f000 f8ec bl 8007d7c <__multadd>
- 8007ba4: 45b0 cmp r8, r6
- 8007ba6: 4682 mov sl, r0
- 8007ba8: f04f 0300 mov.w r3, #0
- 8007bac: f04f 020a mov.w r2, #10
- 8007bb0: 4641 mov r1, r8
- 8007bb2: 4628 mov r0, r5
- 8007bb4: d107 bne.n 8007bc6 <_dtoa_r+0xb1e>
- 8007bb6: f000 f8e1 bl 8007d7c <__multadd>
- 8007bba: 4680 mov r8, r0
- 8007bbc: 4606 mov r6, r0
- 8007bbe: 9b02 ldr r3, [sp, #8]
- 8007bc0: 3301 adds r3, #1
- 8007bc2: 9302 str r3, [sp, #8]
- 8007bc4: e777 b.n 8007ab6 <_dtoa_r+0xa0e>
- 8007bc6: f000 f8d9 bl 8007d7c <__multadd>
- 8007bca: 4631 mov r1, r6
- 8007bcc: 4680 mov r8, r0
- 8007bce: 2300 movs r3, #0
- 8007bd0: 220a movs r2, #10
- 8007bd2: 4628 mov r0, r5
- 8007bd4: f000 f8d2 bl 8007d7c <__multadd>
- 8007bd8: 4606 mov r6, r0
- 8007bda: e7f0 b.n 8007bbe <_dtoa_r+0xb16>
- 8007bdc: f1bb 0f00 cmp.w fp, #0
- 8007be0: bfcc ite gt
- 8007be2: 465f movgt r7, fp
- 8007be4: 2701 movle r7, #1
- 8007be6: f04f 0800 mov.w r8, #0
- 8007bea: 9a08 ldr r2, [sp, #32]
- 8007bec: 4417 add r7, r2
- 8007bee: 4651 mov r1, sl
- 8007bf0: 2201 movs r2, #1
- 8007bf2: 4628 mov r0, r5
- 8007bf4: 9302 str r3, [sp, #8]
- 8007bf6: f000 fa6d bl 80080d4 <__lshift>
- 8007bfa: 4621 mov r1, r4
- 8007bfc: 4682 mov sl, r0
- 8007bfe: f000 fad5 bl 80081ac <__mcmp>
- 8007c02: 2800 cmp r0, #0
- 8007c04: dcb2 bgt.n 8007b6c <_dtoa_r+0xac4>
- 8007c06: d102 bne.n 8007c0e <_dtoa_r+0xb66>
- 8007c08: 9b02 ldr r3, [sp, #8]
- 8007c0a: 07db lsls r3, r3, #31
- 8007c0c: d4ae bmi.n 8007b6c <_dtoa_r+0xac4>
- 8007c0e: 463b mov r3, r7
- 8007c10: 461f mov r7, r3
- 8007c12: f813 2d01 ldrb.w r2, [r3, #-1]!
- 8007c16: 2a30 cmp r2, #48 ; 0x30
- 8007c18: d0fa beq.n 8007c10 <_dtoa_r+0xb68>
- 8007c1a: e6fb b.n 8007a14 <_dtoa_r+0x96c>
- 8007c1c: 9a08 ldr r2, [sp, #32]
- 8007c1e: 429a cmp r2, r3
- 8007c20: d1a5 bne.n 8007b6e <_dtoa_r+0xac6>
- 8007c22: 2331 movs r3, #49 ; 0x31
- 8007c24: f109 0901 add.w r9, r9, #1
- 8007c28: 7013 strb r3, [r2, #0]
- 8007c2a: e6f3 b.n 8007a14 <_dtoa_r+0x96c>
- 8007c2c: 4b13 ldr r3, [pc, #76] ; (8007c7c <_dtoa_r+0xbd4>)
- 8007c2e: f7ff baa7 b.w 8007180 <_dtoa_r+0xd8>
- 8007c32: 9b26 ldr r3, [sp, #152] ; 0x98
- 8007c34: 2b00 cmp r3, #0
- 8007c36: f47f aa80 bne.w 800713a <_dtoa_r+0x92>
- 8007c3a: 4b11 ldr r3, [pc, #68] ; (8007c80 <_dtoa_r+0xbd8>)
- 8007c3c: f7ff baa0 b.w 8007180 <_dtoa_r+0xd8>
- 8007c40: f1bb 0f00 cmp.w fp, #0
- 8007c44: dc03 bgt.n 8007c4e <_dtoa_r+0xba6>
- 8007c46: 9b22 ldr r3, [sp, #136] ; 0x88
- 8007c48: 2b02 cmp r3, #2
- 8007c4a: f73f aecc bgt.w 80079e6 <_dtoa_r+0x93e>
- 8007c4e: 9f08 ldr r7, [sp, #32]
- 8007c50: 4621 mov r1, r4
- 8007c52: 4650 mov r0, sl
- 8007c54: f7ff f998 bl 8006f88 <quorem>
- 8007c58: 9a08 ldr r2, [sp, #32]
- 8007c5a: f100 0330 add.w r3, r0, #48 ; 0x30
- 8007c5e: f807 3b01 strb.w r3, [r7], #1
- 8007c62: 1aba subs r2, r7, r2
- 8007c64: 4593 cmp fp, r2
- 8007c66: ddb9 ble.n 8007bdc <_dtoa_r+0xb34>
- 8007c68: 4651 mov r1, sl
- 8007c6a: 2300 movs r3, #0
- 8007c6c: 220a movs r2, #10
- 8007c6e: 4628 mov r0, r5
- 8007c70: f000 f884 bl 8007d7c <__multadd>
- 8007c74: 4682 mov sl, r0
- 8007c76: e7eb b.n 8007c50 <_dtoa_r+0xba8>
- 8007c78: 0800a1cf .word 0x0800a1cf
- 8007c7c: 0800a128 .word 0x0800a128
- 8007c80: 0800a14c .word 0x0800a14c
- 08007c84 <_localeconv_r>:
- 8007c84: 4800 ldr r0, [pc, #0] ; (8007c88 <_localeconv_r+0x4>)
- 8007c86: 4770 bx lr
- 8007c88: 20000168 .word 0x20000168
- 08007c8c <malloc>:
- 8007c8c: 4b02 ldr r3, [pc, #8] ; (8007c98 <malloc+0xc>)
- 8007c8e: 4601 mov r1, r0
- 8007c90: 6818 ldr r0, [r3, #0]
- 8007c92: f000 bbed b.w 8008470 <_malloc_r>
- 8007c96: bf00 nop
- 8007c98: 20000014 .word 0x20000014
- 08007c9c <memchr>:
- 8007c9c: 4603 mov r3, r0
- 8007c9e: b510 push {r4, lr}
- 8007ca0: b2c9 uxtb r1, r1
- 8007ca2: 4402 add r2, r0
- 8007ca4: 4293 cmp r3, r2
- 8007ca6: 4618 mov r0, r3
- 8007ca8: d101 bne.n 8007cae <memchr+0x12>
- 8007caa: 2000 movs r0, #0
- 8007cac: e003 b.n 8007cb6 <memchr+0x1a>
- 8007cae: 7804 ldrb r4, [r0, #0]
- 8007cb0: 3301 adds r3, #1
- 8007cb2: 428c cmp r4, r1
- 8007cb4: d1f6 bne.n 8007ca4 <memchr+0x8>
- 8007cb6: bd10 pop {r4, pc}
- 08007cb8 <_Balloc>:
- 8007cb8: b570 push {r4, r5, r6, lr}
- 8007cba: 6a46 ldr r6, [r0, #36] ; 0x24
- 8007cbc: 4604 mov r4, r0
- 8007cbe: 460d mov r5, r1
- 8007cc0: b976 cbnz r6, 8007ce0 <_Balloc+0x28>
- 8007cc2: 2010 movs r0, #16
- 8007cc4: f7ff ffe2 bl 8007c8c <malloc>
- 8007cc8: 4602 mov r2, r0
- 8007cca: 6260 str r0, [r4, #36] ; 0x24
- 8007ccc: b920 cbnz r0, 8007cd8 <_Balloc+0x20>
- 8007cce: 2166 movs r1, #102 ; 0x66
- 8007cd0: 4b17 ldr r3, [pc, #92] ; (8007d30 <_Balloc+0x78>)
- 8007cd2: 4818 ldr r0, [pc, #96] ; (8007d34 <_Balloc+0x7c>)
- 8007cd4: f000 fd92 bl 80087fc <__assert_func>
- 8007cd8: e9c0 6601 strd r6, r6, [r0, #4]
- 8007cdc: 6006 str r6, [r0, #0]
- 8007cde: 60c6 str r6, [r0, #12]
- 8007ce0: 6a66 ldr r6, [r4, #36] ; 0x24
- 8007ce2: 68f3 ldr r3, [r6, #12]
- 8007ce4: b183 cbz r3, 8007d08 <_Balloc+0x50>
- 8007ce6: 6a63 ldr r3, [r4, #36] ; 0x24
- 8007ce8: 68db ldr r3, [r3, #12]
- 8007cea: f853 0025 ldr.w r0, [r3, r5, lsl #2]
- 8007cee: b9b8 cbnz r0, 8007d20 <_Balloc+0x68>
- 8007cf0: 2101 movs r1, #1
- 8007cf2: fa01 f605 lsl.w r6, r1, r5
- 8007cf6: 1d72 adds r2, r6, #5
- 8007cf8: 4620 mov r0, r4
- 8007cfa: 0092 lsls r2, r2, #2
- 8007cfc: f000 fb5e bl 80083bc <_calloc_r>
- 8007d00: b160 cbz r0, 8007d1c <_Balloc+0x64>
- 8007d02: e9c0 5601 strd r5, r6, [r0, #4]
- 8007d06: e00e b.n 8007d26 <_Balloc+0x6e>
- 8007d08: 2221 movs r2, #33 ; 0x21
- 8007d0a: 2104 movs r1, #4
- 8007d0c: 4620 mov r0, r4
- 8007d0e: f000 fb55 bl 80083bc <_calloc_r>
- 8007d12: 6a63 ldr r3, [r4, #36] ; 0x24
- 8007d14: 60f0 str r0, [r6, #12]
- 8007d16: 68db ldr r3, [r3, #12]
- 8007d18: 2b00 cmp r3, #0
- 8007d1a: d1e4 bne.n 8007ce6 <_Balloc+0x2e>
- 8007d1c: 2000 movs r0, #0
- 8007d1e: bd70 pop {r4, r5, r6, pc}
- 8007d20: 6802 ldr r2, [r0, #0]
- 8007d22: f843 2025 str.w r2, [r3, r5, lsl #2]
- 8007d26: 2300 movs r3, #0
- 8007d28: e9c0 3303 strd r3, r3, [r0, #12]
- 8007d2c: e7f7 b.n 8007d1e <_Balloc+0x66>
- 8007d2e: bf00 nop
- 8007d30: 0800a159 .word 0x0800a159
- 8007d34: 0800a1e0 .word 0x0800a1e0
- 08007d38 <_Bfree>:
- 8007d38: b570 push {r4, r5, r6, lr}
- 8007d3a: 6a46 ldr r6, [r0, #36] ; 0x24
- 8007d3c: 4605 mov r5, r0
- 8007d3e: 460c mov r4, r1
- 8007d40: b976 cbnz r6, 8007d60 <_Bfree+0x28>
- 8007d42: 2010 movs r0, #16
- 8007d44: f7ff ffa2 bl 8007c8c <malloc>
- 8007d48: 4602 mov r2, r0
- 8007d4a: 6268 str r0, [r5, #36] ; 0x24
- 8007d4c: b920 cbnz r0, 8007d58 <_Bfree+0x20>
- 8007d4e: 218a movs r1, #138 ; 0x8a
- 8007d50: 4b08 ldr r3, [pc, #32] ; (8007d74 <_Bfree+0x3c>)
- 8007d52: 4809 ldr r0, [pc, #36] ; (8007d78 <_Bfree+0x40>)
- 8007d54: f000 fd52 bl 80087fc <__assert_func>
- 8007d58: e9c0 6601 strd r6, r6, [r0, #4]
- 8007d5c: 6006 str r6, [r0, #0]
- 8007d5e: 60c6 str r6, [r0, #12]
- 8007d60: b13c cbz r4, 8007d72 <_Bfree+0x3a>
- 8007d62: 6a6b ldr r3, [r5, #36] ; 0x24
- 8007d64: 6862 ldr r2, [r4, #4]
- 8007d66: 68db ldr r3, [r3, #12]
- 8007d68: f853 1022 ldr.w r1, [r3, r2, lsl #2]
- 8007d6c: 6021 str r1, [r4, #0]
- 8007d6e: f843 4022 str.w r4, [r3, r2, lsl #2]
- 8007d72: bd70 pop {r4, r5, r6, pc}
- 8007d74: 0800a159 .word 0x0800a159
- 8007d78: 0800a1e0 .word 0x0800a1e0
- 08007d7c <__multadd>:
- 8007d7c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
- 8007d80: 4698 mov r8, r3
- 8007d82: 460c mov r4, r1
- 8007d84: 2300 movs r3, #0
- 8007d86: 690e ldr r6, [r1, #16]
- 8007d88: 4607 mov r7, r0
- 8007d8a: f101 0014 add.w r0, r1, #20
- 8007d8e: 6805 ldr r5, [r0, #0]
- 8007d90: 3301 adds r3, #1
- 8007d92: b2a9 uxth r1, r5
- 8007d94: fb02 8101 mla r1, r2, r1, r8
- 8007d98: 0c2d lsrs r5, r5, #16
- 8007d9a: ea4f 4c11 mov.w ip, r1, lsr #16
- 8007d9e: fb02 c505 mla r5, r2, r5, ip
- 8007da2: b289 uxth r1, r1
- 8007da4: eb01 4105 add.w r1, r1, r5, lsl #16
- 8007da8: 429e cmp r6, r3
- 8007daa: ea4f 4815 mov.w r8, r5, lsr #16
- 8007dae: f840 1b04 str.w r1, [r0], #4
- 8007db2: dcec bgt.n 8007d8e <__multadd+0x12>
- 8007db4: f1b8 0f00 cmp.w r8, #0
- 8007db8: d022 beq.n 8007e00 <__multadd+0x84>
- 8007dba: 68a3 ldr r3, [r4, #8]
- 8007dbc: 42b3 cmp r3, r6
- 8007dbe: dc19 bgt.n 8007df4 <__multadd+0x78>
- 8007dc0: 6861 ldr r1, [r4, #4]
- 8007dc2: 4638 mov r0, r7
- 8007dc4: 3101 adds r1, #1
- 8007dc6: f7ff ff77 bl 8007cb8 <_Balloc>
- 8007dca: 4605 mov r5, r0
- 8007dcc: b928 cbnz r0, 8007dda <__multadd+0x5e>
- 8007dce: 4602 mov r2, r0
- 8007dd0: 21b5 movs r1, #181 ; 0xb5
- 8007dd2: 4b0d ldr r3, [pc, #52] ; (8007e08 <__multadd+0x8c>)
- 8007dd4: 480d ldr r0, [pc, #52] ; (8007e0c <__multadd+0x90>)
- 8007dd6: f000 fd11 bl 80087fc <__assert_func>
- 8007dda: 6922 ldr r2, [r4, #16]
- 8007ddc: f104 010c add.w r1, r4, #12
- 8007de0: 3202 adds r2, #2
- 8007de2: 0092 lsls r2, r2, #2
- 8007de4: 300c adds r0, #12
- 8007de6: f7fe fc1f bl 8006628 <memcpy>
- 8007dea: 4621 mov r1, r4
- 8007dec: 4638 mov r0, r7
- 8007dee: f7ff ffa3 bl 8007d38 <_Bfree>
- 8007df2: 462c mov r4, r5
- 8007df4: eb04 0386 add.w r3, r4, r6, lsl #2
- 8007df8: 3601 adds r6, #1
- 8007dfa: f8c3 8014 str.w r8, [r3, #20]
- 8007dfe: 6126 str r6, [r4, #16]
- 8007e00: 4620 mov r0, r4
- 8007e02: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
- 8007e06: bf00 nop
- 8007e08: 0800a1cf .word 0x0800a1cf
- 8007e0c: 0800a1e0 .word 0x0800a1e0
- 08007e10 <__hi0bits>:
- 8007e10: 0c02 lsrs r2, r0, #16
- 8007e12: 0412 lsls r2, r2, #16
- 8007e14: 4603 mov r3, r0
- 8007e16: b9ca cbnz r2, 8007e4c <__hi0bits+0x3c>
- 8007e18: 0403 lsls r3, r0, #16
- 8007e1a: 2010 movs r0, #16
- 8007e1c: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
- 8007e20: bf04 itt eq
- 8007e22: 021b lsleq r3, r3, #8
- 8007e24: 3008 addeq r0, #8
- 8007e26: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
- 8007e2a: bf04 itt eq
- 8007e2c: 011b lsleq r3, r3, #4
- 8007e2e: 3004 addeq r0, #4
- 8007e30: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
- 8007e34: bf04 itt eq
- 8007e36: 009b lsleq r3, r3, #2
- 8007e38: 3002 addeq r0, #2
- 8007e3a: 2b00 cmp r3, #0
- 8007e3c: db05 blt.n 8007e4a <__hi0bits+0x3a>
- 8007e3e: f013 4f80 tst.w r3, #1073741824 ; 0x40000000
- 8007e42: f100 0001 add.w r0, r0, #1
- 8007e46: bf08 it eq
- 8007e48: 2020 moveq r0, #32
- 8007e4a: 4770 bx lr
- 8007e4c: 2000 movs r0, #0
- 8007e4e: e7e5 b.n 8007e1c <__hi0bits+0xc>
- 08007e50 <__lo0bits>:
- 8007e50: 6803 ldr r3, [r0, #0]
- 8007e52: 4602 mov r2, r0
- 8007e54: f013 0007 ands.w r0, r3, #7
- 8007e58: d00b beq.n 8007e72 <__lo0bits+0x22>
- 8007e5a: 07d9 lsls r1, r3, #31
- 8007e5c: d422 bmi.n 8007ea4 <__lo0bits+0x54>
- 8007e5e: 0798 lsls r0, r3, #30
- 8007e60: bf49 itett mi
- 8007e62: 085b lsrmi r3, r3, #1
- 8007e64: 089b lsrpl r3, r3, #2
- 8007e66: 2001 movmi r0, #1
- 8007e68: 6013 strmi r3, [r2, #0]
- 8007e6a: bf5c itt pl
- 8007e6c: 2002 movpl r0, #2
- 8007e6e: 6013 strpl r3, [r2, #0]
- 8007e70: 4770 bx lr
- 8007e72: b299 uxth r1, r3
- 8007e74: b909 cbnz r1, 8007e7a <__lo0bits+0x2a>
- 8007e76: 2010 movs r0, #16
- 8007e78: 0c1b lsrs r3, r3, #16
- 8007e7a: f013 0fff tst.w r3, #255 ; 0xff
- 8007e7e: bf04 itt eq
- 8007e80: 0a1b lsreq r3, r3, #8
- 8007e82: 3008 addeq r0, #8
- 8007e84: 0719 lsls r1, r3, #28
- 8007e86: bf04 itt eq
- 8007e88: 091b lsreq r3, r3, #4
- 8007e8a: 3004 addeq r0, #4
- 8007e8c: 0799 lsls r1, r3, #30
- 8007e8e: bf04 itt eq
- 8007e90: 089b lsreq r3, r3, #2
- 8007e92: 3002 addeq r0, #2
- 8007e94: 07d9 lsls r1, r3, #31
- 8007e96: d403 bmi.n 8007ea0 <__lo0bits+0x50>
- 8007e98: 085b lsrs r3, r3, #1
- 8007e9a: f100 0001 add.w r0, r0, #1
- 8007e9e: d003 beq.n 8007ea8 <__lo0bits+0x58>
- 8007ea0: 6013 str r3, [r2, #0]
- 8007ea2: 4770 bx lr
- 8007ea4: 2000 movs r0, #0
- 8007ea6: 4770 bx lr
- 8007ea8: 2020 movs r0, #32
- 8007eaa: 4770 bx lr
- 08007eac <__i2b>:
- 8007eac: b510 push {r4, lr}
- 8007eae: 460c mov r4, r1
- 8007eb0: 2101 movs r1, #1
- 8007eb2: f7ff ff01 bl 8007cb8 <_Balloc>
- 8007eb6: 4602 mov r2, r0
- 8007eb8: b928 cbnz r0, 8007ec6 <__i2b+0x1a>
- 8007eba: f44f 71a0 mov.w r1, #320 ; 0x140
- 8007ebe: 4b04 ldr r3, [pc, #16] ; (8007ed0 <__i2b+0x24>)
- 8007ec0: 4804 ldr r0, [pc, #16] ; (8007ed4 <__i2b+0x28>)
- 8007ec2: f000 fc9b bl 80087fc <__assert_func>
- 8007ec6: 2301 movs r3, #1
- 8007ec8: 6144 str r4, [r0, #20]
- 8007eca: 6103 str r3, [r0, #16]
- 8007ecc: bd10 pop {r4, pc}
- 8007ece: bf00 nop
- 8007ed0: 0800a1cf .word 0x0800a1cf
- 8007ed4: 0800a1e0 .word 0x0800a1e0
- 08007ed8 <__multiply>:
- 8007ed8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 8007edc: 4614 mov r4, r2
- 8007ede: 690a ldr r2, [r1, #16]
- 8007ee0: 6923 ldr r3, [r4, #16]
- 8007ee2: 460d mov r5, r1
- 8007ee4: 429a cmp r2, r3
- 8007ee6: bfbe ittt lt
- 8007ee8: 460b movlt r3, r1
- 8007eea: 4625 movlt r5, r4
- 8007eec: 461c movlt r4, r3
- 8007eee: f8d5 a010 ldr.w sl, [r5, #16]
- 8007ef2: f8d4 9010 ldr.w r9, [r4, #16]
- 8007ef6: 68ab ldr r3, [r5, #8]
- 8007ef8: 6869 ldr r1, [r5, #4]
- 8007efa: eb0a 0709 add.w r7, sl, r9
- 8007efe: 42bb cmp r3, r7
- 8007f00: b085 sub sp, #20
- 8007f02: bfb8 it lt
- 8007f04: 3101 addlt r1, #1
- 8007f06: f7ff fed7 bl 8007cb8 <_Balloc>
- 8007f0a: b930 cbnz r0, 8007f1a <__multiply+0x42>
- 8007f0c: 4602 mov r2, r0
- 8007f0e: f240 115d movw r1, #349 ; 0x15d
- 8007f12: 4b41 ldr r3, [pc, #260] ; (8008018 <__multiply+0x140>)
- 8007f14: 4841 ldr r0, [pc, #260] ; (800801c <__multiply+0x144>)
- 8007f16: f000 fc71 bl 80087fc <__assert_func>
- 8007f1a: f100 0614 add.w r6, r0, #20
- 8007f1e: 4633 mov r3, r6
- 8007f20: 2200 movs r2, #0
- 8007f22: eb06 0887 add.w r8, r6, r7, lsl #2
- 8007f26: 4543 cmp r3, r8
- 8007f28: d31e bcc.n 8007f68 <__multiply+0x90>
- 8007f2a: f105 0c14 add.w ip, r5, #20
- 8007f2e: f104 0314 add.w r3, r4, #20
- 8007f32: eb0c 0c8a add.w ip, ip, sl, lsl #2
- 8007f36: eb03 0289 add.w r2, r3, r9, lsl #2
- 8007f3a: 9202 str r2, [sp, #8]
- 8007f3c: ebac 0205 sub.w r2, ip, r5
- 8007f40: 3a15 subs r2, #21
- 8007f42: f022 0203 bic.w r2, r2, #3
- 8007f46: 3204 adds r2, #4
- 8007f48: f105 0115 add.w r1, r5, #21
- 8007f4c: 458c cmp ip, r1
- 8007f4e: bf38 it cc
- 8007f50: 2204 movcc r2, #4
- 8007f52: 9201 str r2, [sp, #4]
- 8007f54: 9a02 ldr r2, [sp, #8]
- 8007f56: 9303 str r3, [sp, #12]
- 8007f58: 429a cmp r2, r3
- 8007f5a: d808 bhi.n 8007f6e <__multiply+0x96>
- 8007f5c: 2f00 cmp r7, #0
- 8007f5e: dc55 bgt.n 800800c <__multiply+0x134>
- 8007f60: 6107 str r7, [r0, #16]
- 8007f62: b005 add sp, #20
- 8007f64: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 8007f68: f843 2b04 str.w r2, [r3], #4
- 8007f6c: e7db b.n 8007f26 <__multiply+0x4e>
- 8007f6e: f8b3 a000 ldrh.w sl, [r3]
- 8007f72: f1ba 0f00 cmp.w sl, #0
- 8007f76: d020 beq.n 8007fba <__multiply+0xe2>
- 8007f78: 46b1 mov r9, r6
- 8007f7a: 2200 movs r2, #0
- 8007f7c: f105 0e14 add.w lr, r5, #20
- 8007f80: f85e 4b04 ldr.w r4, [lr], #4
- 8007f84: f8d9 b000 ldr.w fp, [r9]
- 8007f88: b2a1 uxth r1, r4
- 8007f8a: fa1f fb8b uxth.w fp, fp
- 8007f8e: fb0a b101 mla r1, sl, r1, fp
- 8007f92: 4411 add r1, r2
- 8007f94: f8d9 2000 ldr.w r2, [r9]
- 8007f98: 0c24 lsrs r4, r4, #16
- 8007f9a: 0c12 lsrs r2, r2, #16
- 8007f9c: fb0a 2404 mla r4, sl, r4, r2
- 8007fa0: eb04 4411 add.w r4, r4, r1, lsr #16
- 8007fa4: b289 uxth r1, r1
- 8007fa6: ea41 4104 orr.w r1, r1, r4, lsl #16
- 8007faa: 45f4 cmp ip, lr
- 8007fac: ea4f 4214 mov.w r2, r4, lsr #16
- 8007fb0: f849 1b04 str.w r1, [r9], #4
- 8007fb4: d8e4 bhi.n 8007f80 <__multiply+0xa8>
- 8007fb6: 9901 ldr r1, [sp, #4]
- 8007fb8: 5072 str r2, [r6, r1]
- 8007fba: 9a03 ldr r2, [sp, #12]
- 8007fbc: 3304 adds r3, #4
- 8007fbe: f8b2 9002 ldrh.w r9, [r2, #2]
- 8007fc2: f1b9 0f00 cmp.w r9, #0
- 8007fc6: d01f beq.n 8008008 <__multiply+0x130>
- 8007fc8: 46b6 mov lr, r6
- 8007fca: f04f 0a00 mov.w sl, #0
- 8007fce: 6834 ldr r4, [r6, #0]
- 8007fd0: f105 0114 add.w r1, r5, #20
- 8007fd4: 880a ldrh r2, [r1, #0]
- 8007fd6: f8be b002 ldrh.w fp, [lr, #2]
- 8007fda: b2a4 uxth r4, r4
- 8007fdc: fb09 b202 mla r2, r9, r2, fp
- 8007fe0: 4492 add sl, r2
- 8007fe2: ea44 440a orr.w r4, r4, sl, lsl #16
- 8007fe6: f84e 4b04 str.w r4, [lr], #4
- 8007fea: f851 4b04 ldr.w r4, [r1], #4
- 8007fee: f8be 2000 ldrh.w r2, [lr]
- 8007ff2: 0c24 lsrs r4, r4, #16
- 8007ff4: fb09 2404 mla r4, r9, r4, r2
- 8007ff8: 458c cmp ip, r1
- 8007ffa: eb04 441a add.w r4, r4, sl, lsr #16
- 8007ffe: ea4f 4a14 mov.w sl, r4, lsr #16
- 8008002: d8e7 bhi.n 8007fd4 <__multiply+0xfc>
- 8008004: 9a01 ldr r2, [sp, #4]
- 8008006: 50b4 str r4, [r6, r2]
- 8008008: 3604 adds r6, #4
- 800800a: e7a3 b.n 8007f54 <__multiply+0x7c>
- 800800c: f858 3d04 ldr.w r3, [r8, #-4]!
- 8008010: 2b00 cmp r3, #0
- 8008012: d1a5 bne.n 8007f60 <__multiply+0x88>
- 8008014: 3f01 subs r7, #1
- 8008016: e7a1 b.n 8007f5c <__multiply+0x84>
- 8008018: 0800a1cf .word 0x0800a1cf
- 800801c: 0800a1e0 .word 0x0800a1e0
- 08008020 <__pow5mult>:
- 8008020: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
- 8008024: 4615 mov r5, r2
- 8008026: f012 0203 ands.w r2, r2, #3
- 800802a: 4606 mov r6, r0
- 800802c: 460f mov r7, r1
- 800802e: d007 beq.n 8008040 <__pow5mult+0x20>
- 8008030: 4c25 ldr r4, [pc, #148] ; (80080c8 <__pow5mult+0xa8>)
- 8008032: 3a01 subs r2, #1
- 8008034: 2300 movs r3, #0
- 8008036: f854 2022 ldr.w r2, [r4, r2, lsl #2]
- 800803a: f7ff fe9f bl 8007d7c <__multadd>
- 800803e: 4607 mov r7, r0
- 8008040: 10ad asrs r5, r5, #2
- 8008042: d03d beq.n 80080c0 <__pow5mult+0xa0>
- 8008044: 6a74 ldr r4, [r6, #36] ; 0x24
- 8008046: b97c cbnz r4, 8008068 <__pow5mult+0x48>
- 8008048: 2010 movs r0, #16
- 800804a: f7ff fe1f bl 8007c8c <malloc>
- 800804e: 4602 mov r2, r0
- 8008050: 6270 str r0, [r6, #36] ; 0x24
- 8008052: b928 cbnz r0, 8008060 <__pow5mult+0x40>
- 8008054: f44f 71d7 mov.w r1, #430 ; 0x1ae
- 8008058: 4b1c ldr r3, [pc, #112] ; (80080cc <__pow5mult+0xac>)
- 800805a: 481d ldr r0, [pc, #116] ; (80080d0 <__pow5mult+0xb0>)
- 800805c: f000 fbce bl 80087fc <__assert_func>
- 8008060: e9c0 4401 strd r4, r4, [r0, #4]
- 8008064: 6004 str r4, [r0, #0]
- 8008066: 60c4 str r4, [r0, #12]
- 8008068: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
- 800806c: f8d8 4008 ldr.w r4, [r8, #8]
- 8008070: b94c cbnz r4, 8008086 <__pow5mult+0x66>
- 8008072: f240 2171 movw r1, #625 ; 0x271
- 8008076: 4630 mov r0, r6
- 8008078: f7ff ff18 bl 8007eac <__i2b>
- 800807c: 2300 movs r3, #0
- 800807e: 4604 mov r4, r0
- 8008080: f8c8 0008 str.w r0, [r8, #8]
- 8008084: 6003 str r3, [r0, #0]
- 8008086: f04f 0900 mov.w r9, #0
- 800808a: 07eb lsls r3, r5, #31
- 800808c: d50a bpl.n 80080a4 <__pow5mult+0x84>
- 800808e: 4639 mov r1, r7
- 8008090: 4622 mov r2, r4
- 8008092: 4630 mov r0, r6
- 8008094: f7ff ff20 bl 8007ed8 <__multiply>
- 8008098: 4680 mov r8, r0
- 800809a: 4639 mov r1, r7
- 800809c: 4630 mov r0, r6
- 800809e: f7ff fe4b bl 8007d38 <_Bfree>
- 80080a2: 4647 mov r7, r8
- 80080a4: 106d asrs r5, r5, #1
- 80080a6: d00b beq.n 80080c0 <__pow5mult+0xa0>
- 80080a8: 6820 ldr r0, [r4, #0]
- 80080aa: b938 cbnz r0, 80080bc <__pow5mult+0x9c>
- 80080ac: 4622 mov r2, r4
- 80080ae: 4621 mov r1, r4
- 80080b0: 4630 mov r0, r6
- 80080b2: f7ff ff11 bl 8007ed8 <__multiply>
- 80080b6: 6020 str r0, [r4, #0]
- 80080b8: f8c0 9000 str.w r9, [r0]
- 80080bc: 4604 mov r4, r0
- 80080be: e7e4 b.n 800808a <__pow5mult+0x6a>
- 80080c0: 4638 mov r0, r7
- 80080c2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
- 80080c6: bf00 nop
- 80080c8: 0800a330 .word 0x0800a330
- 80080cc: 0800a159 .word 0x0800a159
- 80080d0: 0800a1e0 .word 0x0800a1e0
- 080080d4 <__lshift>:
- 80080d4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
- 80080d8: 460c mov r4, r1
- 80080da: 4607 mov r7, r0
- 80080dc: 4691 mov r9, r2
- 80080de: 6923 ldr r3, [r4, #16]
- 80080e0: 6849 ldr r1, [r1, #4]
- 80080e2: eb03 1862 add.w r8, r3, r2, asr #5
- 80080e6: 68a3 ldr r3, [r4, #8]
- 80080e8: ea4f 1a62 mov.w sl, r2, asr #5
- 80080ec: f108 0601 add.w r6, r8, #1
- 80080f0: 42b3 cmp r3, r6
- 80080f2: db0b blt.n 800810c <__lshift+0x38>
- 80080f4: 4638 mov r0, r7
- 80080f6: f7ff fddf bl 8007cb8 <_Balloc>
- 80080fa: 4605 mov r5, r0
- 80080fc: b948 cbnz r0, 8008112 <__lshift+0x3e>
- 80080fe: 4602 mov r2, r0
- 8008100: f240 11d9 movw r1, #473 ; 0x1d9
- 8008104: 4b27 ldr r3, [pc, #156] ; (80081a4 <__lshift+0xd0>)
- 8008106: 4828 ldr r0, [pc, #160] ; (80081a8 <__lshift+0xd4>)
- 8008108: f000 fb78 bl 80087fc <__assert_func>
- 800810c: 3101 adds r1, #1
- 800810e: 005b lsls r3, r3, #1
- 8008110: e7ee b.n 80080f0 <__lshift+0x1c>
- 8008112: 2300 movs r3, #0
- 8008114: f100 0114 add.w r1, r0, #20
- 8008118: f100 0210 add.w r2, r0, #16
- 800811c: 4618 mov r0, r3
- 800811e: 4553 cmp r3, sl
- 8008120: db33 blt.n 800818a <__lshift+0xb6>
- 8008122: 6920 ldr r0, [r4, #16]
- 8008124: ea2a 7aea bic.w sl, sl, sl, asr #31
- 8008128: f104 0314 add.w r3, r4, #20
- 800812c: f019 091f ands.w r9, r9, #31
- 8008130: eb01 018a add.w r1, r1, sl, lsl #2
- 8008134: eb03 0c80 add.w ip, r3, r0, lsl #2
- 8008138: d02b beq.n 8008192 <__lshift+0xbe>
- 800813a: 468a mov sl, r1
- 800813c: 2200 movs r2, #0
- 800813e: f1c9 0e20 rsb lr, r9, #32
- 8008142: 6818 ldr r0, [r3, #0]
- 8008144: fa00 f009 lsl.w r0, r0, r9
- 8008148: 4302 orrs r2, r0
- 800814a: f84a 2b04 str.w r2, [sl], #4
- 800814e: f853 2b04 ldr.w r2, [r3], #4
- 8008152: 459c cmp ip, r3
- 8008154: fa22 f20e lsr.w r2, r2, lr
- 8008158: d8f3 bhi.n 8008142 <__lshift+0x6e>
- 800815a: ebac 0304 sub.w r3, ip, r4
- 800815e: 3b15 subs r3, #21
- 8008160: f023 0303 bic.w r3, r3, #3
- 8008164: 3304 adds r3, #4
- 8008166: f104 0015 add.w r0, r4, #21
- 800816a: 4584 cmp ip, r0
- 800816c: bf38 it cc
- 800816e: 2304 movcc r3, #4
- 8008170: 50ca str r2, [r1, r3]
- 8008172: b10a cbz r2, 8008178 <__lshift+0xa4>
- 8008174: f108 0602 add.w r6, r8, #2
- 8008178: 3e01 subs r6, #1
- 800817a: 4638 mov r0, r7
- 800817c: 4621 mov r1, r4
- 800817e: 612e str r6, [r5, #16]
- 8008180: f7ff fdda bl 8007d38 <_Bfree>
- 8008184: 4628 mov r0, r5
- 8008186: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 800818a: f842 0f04 str.w r0, [r2, #4]!
- 800818e: 3301 adds r3, #1
- 8008190: e7c5 b.n 800811e <__lshift+0x4a>
- 8008192: 3904 subs r1, #4
- 8008194: f853 2b04 ldr.w r2, [r3], #4
- 8008198: 459c cmp ip, r3
- 800819a: f841 2f04 str.w r2, [r1, #4]!
- 800819e: d8f9 bhi.n 8008194 <__lshift+0xc0>
- 80081a0: e7ea b.n 8008178 <__lshift+0xa4>
- 80081a2: bf00 nop
- 80081a4: 0800a1cf .word 0x0800a1cf
- 80081a8: 0800a1e0 .word 0x0800a1e0
- 080081ac <__mcmp>:
- 80081ac: 4603 mov r3, r0
- 80081ae: 690a ldr r2, [r1, #16]
- 80081b0: 6900 ldr r0, [r0, #16]
- 80081b2: b530 push {r4, r5, lr}
- 80081b4: 1a80 subs r0, r0, r2
- 80081b6: d10d bne.n 80081d4 <__mcmp+0x28>
- 80081b8: 3314 adds r3, #20
- 80081ba: 3114 adds r1, #20
- 80081bc: eb03 0482 add.w r4, r3, r2, lsl #2
- 80081c0: eb01 0182 add.w r1, r1, r2, lsl #2
- 80081c4: f854 5d04 ldr.w r5, [r4, #-4]!
- 80081c8: f851 2d04 ldr.w r2, [r1, #-4]!
- 80081cc: 4295 cmp r5, r2
- 80081ce: d002 beq.n 80081d6 <__mcmp+0x2a>
- 80081d0: d304 bcc.n 80081dc <__mcmp+0x30>
- 80081d2: 2001 movs r0, #1
- 80081d4: bd30 pop {r4, r5, pc}
- 80081d6: 42a3 cmp r3, r4
- 80081d8: d3f4 bcc.n 80081c4 <__mcmp+0x18>
- 80081da: e7fb b.n 80081d4 <__mcmp+0x28>
- 80081dc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 80081e0: e7f8 b.n 80081d4 <__mcmp+0x28>
- ...
- 080081e4 <__mdiff>:
- 80081e4: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 80081e8: 460c mov r4, r1
- 80081ea: 4606 mov r6, r0
- 80081ec: 4611 mov r1, r2
- 80081ee: 4620 mov r0, r4
- 80081f0: 4692 mov sl, r2
- 80081f2: f7ff ffdb bl 80081ac <__mcmp>
- 80081f6: 1e05 subs r5, r0, #0
- 80081f8: d111 bne.n 800821e <__mdiff+0x3a>
- 80081fa: 4629 mov r1, r5
- 80081fc: 4630 mov r0, r6
- 80081fe: f7ff fd5b bl 8007cb8 <_Balloc>
- 8008202: 4602 mov r2, r0
- 8008204: b928 cbnz r0, 8008212 <__mdiff+0x2e>
- 8008206: f240 2132 movw r1, #562 ; 0x232
- 800820a: 4b3c ldr r3, [pc, #240] ; (80082fc <__mdiff+0x118>)
- 800820c: 483c ldr r0, [pc, #240] ; (8008300 <__mdiff+0x11c>)
- 800820e: f000 faf5 bl 80087fc <__assert_func>
- 8008212: 2301 movs r3, #1
- 8008214: e9c0 3504 strd r3, r5, [r0, #16]
- 8008218: 4610 mov r0, r2
- 800821a: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 800821e: bfa4 itt ge
- 8008220: 4653 movge r3, sl
- 8008222: 46a2 movge sl, r4
- 8008224: 4630 mov r0, r6
- 8008226: f8da 1004 ldr.w r1, [sl, #4]
- 800822a: bfa6 itte ge
- 800822c: 461c movge r4, r3
- 800822e: 2500 movge r5, #0
- 8008230: 2501 movlt r5, #1
- 8008232: f7ff fd41 bl 8007cb8 <_Balloc>
- 8008236: 4602 mov r2, r0
- 8008238: b918 cbnz r0, 8008242 <__mdiff+0x5e>
- 800823a: f44f 7110 mov.w r1, #576 ; 0x240
- 800823e: 4b2f ldr r3, [pc, #188] ; (80082fc <__mdiff+0x118>)
- 8008240: e7e4 b.n 800820c <__mdiff+0x28>
- 8008242: f100 0814 add.w r8, r0, #20
- 8008246: f8da 7010 ldr.w r7, [sl, #16]
- 800824a: 60c5 str r5, [r0, #12]
- 800824c: f04f 0c00 mov.w ip, #0
- 8008250: f10a 0514 add.w r5, sl, #20
- 8008254: f10a 0010 add.w r0, sl, #16
- 8008258: 46c2 mov sl, r8
- 800825a: 6926 ldr r6, [r4, #16]
- 800825c: f104 0914 add.w r9, r4, #20
- 8008260: eb05 0e87 add.w lr, r5, r7, lsl #2
- 8008264: eb09 0686 add.w r6, r9, r6, lsl #2
- 8008268: f850 bf04 ldr.w fp, [r0, #4]!
- 800826c: f859 3b04 ldr.w r3, [r9], #4
- 8008270: fa1f f18b uxth.w r1, fp
- 8008274: 4461 add r1, ip
- 8008276: fa1f fc83 uxth.w ip, r3
- 800827a: 0c1b lsrs r3, r3, #16
- 800827c: eba1 010c sub.w r1, r1, ip
- 8008280: ebc3 431b rsb r3, r3, fp, lsr #16
- 8008284: eb03 4321 add.w r3, r3, r1, asr #16
- 8008288: b289 uxth r1, r1
- 800828a: ea4f 4c23 mov.w ip, r3, asr #16
- 800828e: 454e cmp r6, r9
- 8008290: ea41 4303 orr.w r3, r1, r3, lsl #16
- 8008294: f84a 3b04 str.w r3, [sl], #4
- 8008298: d8e6 bhi.n 8008268 <__mdiff+0x84>
- 800829a: 1b33 subs r3, r6, r4
- 800829c: 3b15 subs r3, #21
- 800829e: f023 0303 bic.w r3, r3, #3
- 80082a2: 3415 adds r4, #21
- 80082a4: 3304 adds r3, #4
- 80082a6: 42a6 cmp r6, r4
- 80082a8: bf38 it cc
- 80082aa: 2304 movcc r3, #4
- 80082ac: 441d add r5, r3
- 80082ae: 4443 add r3, r8
- 80082b0: 461e mov r6, r3
- 80082b2: 462c mov r4, r5
- 80082b4: 4574 cmp r4, lr
- 80082b6: d30e bcc.n 80082d6 <__mdiff+0xf2>
- 80082b8: f10e 0103 add.w r1, lr, #3
- 80082bc: 1b49 subs r1, r1, r5
- 80082be: f021 0103 bic.w r1, r1, #3
- 80082c2: 3d03 subs r5, #3
- 80082c4: 45ae cmp lr, r5
- 80082c6: bf38 it cc
- 80082c8: 2100 movcc r1, #0
- 80082ca: 4419 add r1, r3
- 80082cc: f851 3d04 ldr.w r3, [r1, #-4]!
- 80082d0: b18b cbz r3, 80082f6 <__mdiff+0x112>
- 80082d2: 6117 str r7, [r2, #16]
- 80082d4: e7a0 b.n 8008218 <__mdiff+0x34>
- 80082d6: f854 8b04 ldr.w r8, [r4], #4
- 80082da: fa1f f188 uxth.w r1, r8
- 80082de: 4461 add r1, ip
- 80082e0: 1408 asrs r0, r1, #16
- 80082e2: eb00 4018 add.w r0, r0, r8, lsr #16
- 80082e6: b289 uxth r1, r1
- 80082e8: ea41 4100 orr.w r1, r1, r0, lsl #16
- 80082ec: ea4f 4c20 mov.w ip, r0, asr #16
- 80082f0: f846 1b04 str.w r1, [r6], #4
- 80082f4: e7de b.n 80082b4 <__mdiff+0xd0>
- 80082f6: 3f01 subs r7, #1
- 80082f8: e7e8 b.n 80082cc <__mdiff+0xe8>
- 80082fa: bf00 nop
- 80082fc: 0800a1cf .word 0x0800a1cf
- 8008300: 0800a1e0 .word 0x0800a1e0
- 08008304 <__d2b>:
- 8008304: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
- 8008308: 2101 movs r1, #1
- 800830a: e9dd 7608 ldrd r7, r6, [sp, #32]
- 800830e: 4690 mov r8, r2
- 8008310: 461d mov r5, r3
- 8008312: f7ff fcd1 bl 8007cb8 <_Balloc>
- 8008316: 4604 mov r4, r0
- 8008318: b930 cbnz r0, 8008328 <__d2b+0x24>
- 800831a: 4602 mov r2, r0
- 800831c: f240 310a movw r1, #778 ; 0x30a
- 8008320: 4b24 ldr r3, [pc, #144] ; (80083b4 <__d2b+0xb0>)
- 8008322: 4825 ldr r0, [pc, #148] ; (80083b8 <__d2b+0xb4>)
- 8008324: f000 fa6a bl 80087fc <__assert_func>
- 8008328: f3c5 0313 ubfx r3, r5, #0, #20
- 800832c: f3c5 550a ubfx r5, r5, #20, #11
- 8008330: bb2d cbnz r5, 800837e <__d2b+0x7a>
- 8008332: 9301 str r3, [sp, #4]
- 8008334: f1b8 0300 subs.w r3, r8, #0
- 8008338: d026 beq.n 8008388 <__d2b+0x84>
- 800833a: 4668 mov r0, sp
- 800833c: 9300 str r3, [sp, #0]
- 800833e: f7ff fd87 bl 8007e50 <__lo0bits>
- 8008342: 9900 ldr r1, [sp, #0]
- 8008344: b1f0 cbz r0, 8008384 <__d2b+0x80>
- 8008346: 9a01 ldr r2, [sp, #4]
- 8008348: f1c0 0320 rsb r3, r0, #32
- 800834c: fa02 f303 lsl.w r3, r2, r3
- 8008350: 430b orrs r3, r1
- 8008352: 40c2 lsrs r2, r0
- 8008354: 6163 str r3, [r4, #20]
- 8008356: 9201 str r2, [sp, #4]
- 8008358: 9b01 ldr r3, [sp, #4]
- 800835a: 2b00 cmp r3, #0
- 800835c: bf14 ite ne
- 800835e: 2102 movne r1, #2
- 8008360: 2101 moveq r1, #1
- 8008362: 61a3 str r3, [r4, #24]
- 8008364: 6121 str r1, [r4, #16]
- 8008366: b1c5 cbz r5, 800839a <__d2b+0x96>
- 8008368: f2a5 4533 subw r5, r5, #1075 ; 0x433
- 800836c: 4405 add r5, r0
- 800836e: f1c0 0035 rsb r0, r0, #53 ; 0x35
- 8008372: 603d str r5, [r7, #0]
- 8008374: 6030 str r0, [r6, #0]
- 8008376: 4620 mov r0, r4
- 8008378: b002 add sp, #8
- 800837a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
- 800837e: f443 1380 orr.w r3, r3, #1048576 ; 0x100000
- 8008382: e7d6 b.n 8008332 <__d2b+0x2e>
- 8008384: 6161 str r1, [r4, #20]
- 8008386: e7e7 b.n 8008358 <__d2b+0x54>
- 8008388: a801 add r0, sp, #4
- 800838a: f7ff fd61 bl 8007e50 <__lo0bits>
- 800838e: 2101 movs r1, #1
- 8008390: 9b01 ldr r3, [sp, #4]
- 8008392: 6121 str r1, [r4, #16]
- 8008394: 6163 str r3, [r4, #20]
- 8008396: 3020 adds r0, #32
- 8008398: e7e5 b.n 8008366 <__d2b+0x62>
- 800839a: eb04 0381 add.w r3, r4, r1, lsl #2
- 800839e: f2a0 4032 subw r0, r0, #1074 ; 0x432
- 80083a2: 6038 str r0, [r7, #0]
- 80083a4: 6918 ldr r0, [r3, #16]
- 80083a6: f7ff fd33 bl 8007e10 <__hi0bits>
- 80083aa: ebc0 1141 rsb r1, r0, r1, lsl #5
- 80083ae: 6031 str r1, [r6, #0]
- 80083b0: e7e1 b.n 8008376 <__d2b+0x72>
- 80083b2: bf00 nop
- 80083b4: 0800a1cf .word 0x0800a1cf
- 80083b8: 0800a1e0 .word 0x0800a1e0
- 080083bc <_calloc_r>:
- 80083bc: b538 push {r3, r4, r5, lr}
- 80083be: fb02 f501 mul.w r5, r2, r1
- 80083c2: 4629 mov r1, r5
- 80083c4: f000 f854 bl 8008470 <_malloc_r>
- 80083c8: 4604 mov r4, r0
- 80083ca: b118 cbz r0, 80083d4 <_calloc_r+0x18>
- 80083cc: 462a mov r2, r5
- 80083ce: 2100 movs r1, #0
- 80083d0: f7fe f952 bl 8006678 <memset>
- 80083d4: 4620 mov r0, r4
- 80083d6: bd38 pop {r3, r4, r5, pc}
- 080083d8 <_free_r>:
- 80083d8: b538 push {r3, r4, r5, lr}
- 80083da: 4605 mov r5, r0
- 80083dc: 2900 cmp r1, #0
- 80083de: d043 beq.n 8008468 <_free_r+0x90>
- 80083e0: f851 3c04 ldr.w r3, [r1, #-4]
- 80083e4: 1f0c subs r4, r1, #4
- 80083e6: 2b00 cmp r3, #0
- 80083e8: bfb8 it lt
- 80083ea: 18e4 addlt r4, r4, r3
- 80083ec: f000 fa48 bl 8008880 <__malloc_lock>
- 80083f0: 4a1e ldr r2, [pc, #120] ; (800846c <_free_r+0x94>)
- 80083f2: 6813 ldr r3, [r2, #0]
- 80083f4: 4610 mov r0, r2
- 80083f6: b933 cbnz r3, 8008406 <_free_r+0x2e>
- 80083f8: 6063 str r3, [r4, #4]
- 80083fa: 6014 str r4, [r2, #0]
- 80083fc: 4628 mov r0, r5
- 80083fe: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
- 8008402: f000 ba43 b.w 800888c <__malloc_unlock>
- 8008406: 42a3 cmp r3, r4
- 8008408: d90a bls.n 8008420 <_free_r+0x48>
- 800840a: 6821 ldr r1, [r4, #0]
- 800840c: 1862 adds r2, r4, r1
- 800840e: 4293 cmp r3, r2
- 8008410: bf01 itttt eq
- 8008412: 681a ldreq r2, [r3, #0]
- 8008414: 685b ldreq r3, [r3, #4]
- 8008416: 1852 addeq r2, r2, r1
- 8008418: 6022 streq r2, [r4, #0]
- 800841a: 6063 str r3, [r4, #4]
- 800841c: 6004 str r4, [r0, #0]
- 800841e: e7ed b.n 80083fc <_free_r+0x24>
- 8008420: 461a mov r2, r3
- 8008422: 685b ldr r3, [r3, #4]
- 8008424: b10b cbz r3, 800842a <_free_r+0x52>
- 8008426: 42a3 cmp r3, r4
- 8008428: d9fa bls.n 8008420 <_free_r+0x48>
- 800842a: 6811 ldr r1, [r2, #0]
- 800842c: 1850 adds r0, r2, r1
- 800842e: 42a0 cmp r0, r4
- 8008430: d10b bne.n 800844a <_free_r+0x72>
- 8008432: 6820 ldr r0, [r4, #0]
- 8008434: 4401 add r1, r0
- 8008436: 1850 adds r0, r2, r1
- 8008438: 4283 cmp r3, r0
- 800843a: 6011 str r1, [r2, #0]
- 800843c: d1de bne.n 80083fc <_free_r+0x24>
- 800843e: 6818 ldr r0, [r3, #0]
- 8008440: 685b ldr r3, [r3, #4]
- 8008442: 4401 add r1, r0
- 8008444: 6011 str r1, [r2, #0]
- 8008446: 6053 str r3, [r2, #4]
- 8008448: e7d8 b.n 80083fc <_free_r+0x24>
- 800844a: d902 bls.n 8008452 <_free_r+0x7a>
- 800844c: 230c movs r3, #12
- 800844e: 602b str r3, [r5, #0]
- 8008450: e7d4 b.n 80083fc <_free_r+0x24>
- 8008452: 6820 ldr r0, [r4, #0]
- 8008454: 1821 adds r1, r4, r0
- 8008456: 428b cmp r3, r1
- 8008458: bf01 itttt eq
- 800845a: 6819 ldreq r1, [r3, #0]
- 800845c: 685b ldreq r3, [r3, #4]
- 800845e: 1809 addeq r1, r1, r0
- 8008460: 6021 streq r1, [r4, #0]
- 8008462: 6063 str r3, [r4, #4]
- 8008464: 6054 str r4, [r2, #4]
- 8008466: e7c9 b.n 80083fc <_free_r+0x24>
- 8008468: bd38 pop {r3, r4, r5, pc}
- 800846a: bf00 nop
- 800846c: 20000410 .word 0x20000410
- 08008470 <_malloc_r>:
- 8008470: b5f8 push {r3, r4, r5, r6, r7, lr}
- 8008472: 1ccd adds r5, r1, #3
- 8008474: f025 0503 bic.w r5, r5, #3
- 8008478: 3508 adds r5, #8
- 800847a: 2d0c cmp r5, #12
- 800847c: bf38 it cc
- 800847e: 250c movcc r5, #12
- 8008480: 2d00 cmp r5, #0
- 8008482: 4606 mov r6, r0
- 8008484: db01 blt.n 800848a <_malloc_r+0x1a>
- 8008486: 42a9 cmp r1, r5
- 8008488: d903 bls.n 8008492 <_malloc_r+0x22>
- 800848a: 230c movs r3, #12
- 800848c: 6033 str r3, [r6, #0]
- 800848e: 2000 movs r0, #0
- 8008490: bdf8 pop {r3, r4, r5, r6, r7, pc}
- 8008492: f000 f9f5 bl 8008880 <__malloc_lock>
- 8008496: 4921 ldr r1, [pc, #132] ; (800851c <_malloc_r+0xac>)
- 8008498: 680a ldr r2, [r1, #0]
- 800849a: 4614 mov r4, r2
- 800849c: b99c cbnz r4, 80084c6 <_malloc_r+0x56>
- 800849e: 4f20 ldr r7, [pc, #128] ; (8008520 <_malloc_r+0xb0>)
- 80084a0: 683b ldr r3, [r7, #0]
- 80084a2: b923 cbnz r3, 80084ae <_malloc_r+0x3e>
- 80084a4: 4621 mov r1, r4
- 80084a6: 4630 mov r0, r6
- 80084a8: f000 f998 bl 80087dc <_sbrk_r>
- 80084ac: 6038 str r0, [r7, #0]
- 80084ae: 4629 mov r1, r5
- 80084b0: 4630 mov r0, r6
- 80084b2: f000 f993 bl 80087dc <_sbrk_r>
- 80084b6: 1c43 adds r3, r0, #1
- 80084b8: d123 bne.n 8008502 <_malloc_r+0x92>
- 80084ba: 230c movs r3, #12
- 80084bc: 4630 mov r0, r6
- 80084be: 6033 str r3, [r6, #0]
- 80084c0: f000 f9e4 bl 800888c <__malloc_unlock>
- 80084c4: e7e3 b.n 800848e <_malloc_r+0x1e>
- 80084c6: 6823 ldr r3, [r4, #0]
- 80084c8: 1b5b subs r3, r3, r5
- 80084ca: d417 bmi.n 80084fc <_malloc_r+0x8c>
- 80084cc: 2b0b cmp r3, #11
- 80084ce: d903 bls.n 80084d8 <_malloc_r+0x68>
- 80084d0: 6023 str r3, [r4, #0]
- 80084d2: 441c add r4, r3
- 80084d4: 6025 str r5, [r4, #0]
- 80084d6: e004 b.n 80084e2 <_malloc_r+0x72>
- 80084d8: 6863 ldr r3, [r4, #4]
- 80084da: 42a2 cmp r2, r4
- 80084dc: bf0c ite eq
- 80084de: 600b streq r3, [r1, #0]
- 80084e0: 6053 strne r3, [r2, #4]
- 80084e2: 4630 mov r0, r6
- 80084e4: f000 f9d2 bl 800888c <__malloc_unlock>
- 80084e8: f104 000b add.w r0, r4, #11
- 80084ec: 1d23 adds r3, r4, #4
- 80084ee: f020 0007 bic.w r0, r0, #7
- 80084f2: 1ac2 subs r2, r0, r3
- 80084f4: d0cc beq.n 8008490 <_malloc_r+0x20>
- 80084f6: 1a1b subs r3, r3, r0
- 80084f8: 50a3 str r3, [r4, r2]
- 80084fa: e7c9 b.n 8008490 <_malloc_r+0x20>
- 80084fc: 4622 mov r2, r4
- 80084fe: 6864 ldr r4, [r4, #4]
- 8008500: e7cc b.n 800849c <_malloc_r+0x2c>
- 8008502: 1cc4 adds r4, r0, #3
- 8008504: f024 0403 bic.w r4, r4, #3
- 8008508: 42a0 cmp r0, r4
- 800850a: d0e3 beq.n 80084d4 <_malloc_r+0x64>
- 800850c: 1a21 subs r1, r4, r0
- 800850e: 4630 mov r0, r6
- 8008510: f000 f964 bl 80087dc <_sbrk_r>
- 8008514: 3001 adds r0, #1
- 8008516: d1dd bne.n 80084d4 <_malloc_r+0x64>
- 8008518: e7cf b.n 80084ba <_malloc_r+0x4a>
- 800851a: bf00 nop
- 800851c: 20000410 .word 0x20000410
- 8008520: 20000414 .word 0x20000414
- 08008524 <__ssputs_r>:
- 8008524: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
- 8008528: 688e ldr r6, [r1, #8]
- 800852a: 4682 mov sl, r0
- 800852c: 429e cmp r6, r3
- 800852e: 460c mov r4, r1
- 8008530: 4690 mov r8, r2
- 8008532: 461f mov r7, r3
- 8008534: d838 bhi.n 80085a8 <__ssputs_r+0x84>
- 8008536: 898a ldrh r2, [r1, #12]
- 8008538: f412 6f90 tst.w r2, #1152 ; 0x480
- 800853c: d032 beq.n 80085a4 <__ssputs_r+0x80>
- 800853e: 6825 ldr r5, [r4, #0]
- 8008540: 6909 ldr r1, [r1, #16]
- 8008542: 3301 adds r3, #1
- 8008544: eba5 0901 sub.w r9, r5, r1
- 8008548: 6965 ldr r5, [r4, #20]
- 800854a: 444b add r3, r9
- 800854c: eb05 0545 add.w r5, r5, r5, lsl #1
- 8008550: eb05 75d5 add.w r5, r5, r5, lsr #31
- 8008554: 106d asrs r5, r5, #1
- 8008556: 429d cmp r5, r3
- 8008558: bf38 it cc
- 800855a: 461d movcc r5, r3
- 800855c: 0553 lsls r3, r2, #21
- 800855e: d531 bpl.n 80085c4 <__ssputs_r+0xa0>
- 8008560: 4629 mov r1, r5
- 8008562: f7ff ff85 bl 8008470 <_malloc_r>
- 8008566: 4606 mov r6, r0
- 8008568: b950 cbnz r0, 8008580 <__ssputs_r+0x5c>
- 800856a: 230c movs r3, #12
- 800856c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8008570: f8ca 3000 str.w r3, [sl]
- 8008574: 89a3 ldrh r3, [r4, #12]
- 8008576: f043 0340 orr.w r3, r3, #64 ; 0x40
- 800857a: 81a3 strh r3, [r4, #12]
- 800857c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
- 8008580: 464a mov r2, r9
- 8008582: 6921 ldr r1, [r4, #16]
- 8008584: f7fe f850 bl 8006628 <memcpy>
- 8008588: 89a3 ldrh r3, [r4, #12]
- 800858a: f423 6390 bic.w r3, r3, #1152 ; 0x480
- 800858e: f043 0380 orr.w r3, r3, #128 ; 0x80
- 8008592: 81a3 strh r3, [r4, #12]
- 8008594: 6126 str r6, [r4, #16]
- 8008596: 444e add r6, r9
- 8008598: 6026 str r6, [r4, #0]
- 800859a: 463e mov r6, r7
- 800859c: 6165 str r5, [r4, #20]
- 800859e: eba5 0509 sub.w r5, r5, r9
- 80085a2: 60a5 str r5, [r4, #8]
- 80085a4: 42be cmp r6, r7
- 80085a6: d900 bls.n 80085aa <__ssputs_r+0x86>
- 80085a8: 463e mov r6, r7
- 80085aa: 4632 mov r2, r6
- 80085ac: 4641 mov r1, r8
- 80085ae: 6820 ldr r0, [r4, #0]
- 80085b0: f7fe f848 bl 8006644 <memmove>
- 80085b4: 68a3 ldr r3, [r4, #8]
- 80085b6: 6822 ldr r2, [r4, #0]
- 80085b8: 1b9b subs r3, r3, r6
- 80085ba: 4432 add r2, r6
- 80085bc: 2000 movs r0, #0
- 80085be: 60a3 str r3, [r4, #8]
- 80085c0: 6022 str r2, [r4, #0]
- 80085c2: e7db b.n 800857c <__ssputs_r+0x58>
- 80085c4: 462a mov r2, r5
- 80085c6: f000 f967 bl 8008898 <_realloc_r>
- 80085ca: 4606 mov r6, r0
- 80085cc: 2800 cmp r0, #0
- 80085ce: d1e1 bne.n 8008594 <__ssputs_r+0x70>
- 80085d0: 4650 mov r0, sl
- 80085d2: 6921 ldr r1, [r4, #16]
- 80085d4: f7ff ff00 bl 80083d8 <_free_r>
- 80085d8: e7c7 b.n 800856a <__ssputs_r+0x46>
- ...
- 080085dc <_svfiprintf_r>:
- 80085dc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 80085e0: 4698 mov r8, r3
- 80085e2: 898b ldrh r3, [r1, #12]
- 80085e4: 4607 mov r7, r0
- 80085e6: 061b lsls r3, r3, #24
- 80085e8: 460d mov r5, r1
- 80085ea: 4614 mov r4, r2
- 80085ec: b09d sub sp, #116 ; 0x74
- 80085ee: d50e bpl.n 800860e <_svfiprintf_r+0x32>
- 80085f0: 690b ldr r3, [r1, #16]
- 80085f2: b963 cbnz r3, 800860e <_svfiprintf_r+0x32>
- 80085f4: 2140 movs r1, #64 ; 0x40
- 80085f6: f7ff ff3b bl 8008470 <_malloc_r>
- 80085fa: 6028 str r0, [r5, #0]
- 80085fc: 6128 str r0, [r5, #16]
- 80085fe: b920 cbnz r0, 800860a <_svfiprintf_r+0x2e>
- 8008600: 230c movs r3, #12
- 8008602: 603b str r3, [r7, #0]
- 8008604: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8008608: e0d1 b.n 80087ae <_svfiprintf_r+0x1d2>
- 800860a: 2340 movs r3, #64 ; 0x40
- 800860c: 616b str r3, [r5, #20]
- 800860e: 2300 movs r3, #0
- 8008610: 9309 str r3, [sp, #36] ; 0x24
- 8008612: 2320 movs r3, #32
- 8008614: f88d 3029 strb.w r3, [sp, #41] ; 0x29
- 8008618: 2330 movs r3, #48 ; 0x30
- 800861a: f04f 0901 mov.w r9, #1
- 800861e: f8cd 800c str.w r8, [sp, #12]
- 8008622: f8df 81a4 ldr.w r8, [pc, #420] ; 80087c8 <_svfiprintf_r+0x1ec>
- 8008626: f88d 302a strb.w r3, [sp, #42] ; 0x2a
- 800862a: 4623 mov r3, r4
- 800862c: 469a mov sl, r3
- 800862e: f813 2b01 ldrb.w r2, [r3], #1
- 8008632: b10a cbz r2, 8008638 <_svfiprintf_r+0x5c>
- 8008634: 2a25 cmp r2, #37 ; 0x25
- 8008636: d1f9 bne.n 800862c <_svfiprintf_r+0x50>
- 8008638: ebba 0b04 subs.w fp, sl, r4
- 800863c: d00b beq.n 8008656 <_svfiprintf_r+0x7a>
- 800863e: 465b mov r3, fp
- 8008640: 4622 mov r2, r4
- 8008642: 4629 mov r1, r5
- 8008644: 4638 mov r0, r7
- 8008646: f7ff ff6d bl 8008524 <__ssputs_r>
- 800864a: 3001 adds r0, #1
- 800864c: f000 80aa beq.w 80087a4 <_svfiprintf_r+0x1c8>
- 8008650: 9a09 ldr r2, [sp, #36] ; 0x24
- 8008652: 445a add r2, fp
- 8008654: 9209 str r2, [sp, #36] ; 0x24
- 8008656: f89a 3000 ldrb.w r3, [sl]
- 800865a: 2b00 cmp r3, #0
- 800865c: f000 80a2 beq.w 80087a4 <_svfiprintf_r+0x1c8>
- 8008660: 2300 movs r3, #0
- 8008662: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8008666: e9cd 2305 strd r2, r3, [sp, #20]
- 800866a: f10a 0a01 add.w sl, sl, #1
- 800866e: 9304 str r3, [sp, #16]
- 8008670: 9307 str r3, [sp, #28]
- 8008672: f88d 3053 strb.w r3, [sp, #83] ; 0x53
- 8008676: 931a str r3, [sp, #104] ; 0x68
- 8008678: 4654 mov r4, sl
- 800867a: 2205 movs r2, #5
- 800867c: f814 1b01 ldrb.w r1, [r4], #1
- 8008680: 4851 ldr r0, [pc, #324] ; (80087c8 <_svfiprintf_r+0x1ec>)
- 8008682: f7ff fb0b bl 8007c9c <memchr>
- 8008686: 9a04 ldr r2, [sp, #16]
- 8008688: b9d8 cbnz r0, 80086c2 <_svfiprintf_r+0xe6>
- 800868a: 06d0 lsls r0, r2, #27
- 800868c: bf44 itt mi
- 800868e: 2320 movmi r3, #32
- 8008690: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
- 8008694: 0711 lsls r1, r2, #28
- 8008696: bf44 itt mi
- 8008698: 232b movmi r3, #43 ; 0x2b
- 800869a: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
- 800869e: f89a 3000 ldrb.w r3, [sl]
- 80086a2: 2b2a cmp r3, #42 ; 0x2a
- 80086a4: d015 beq.n 80086d2 <_svfiprintf_r+0xf6>
- 80086a6: 4654 mov r4, sl
- 80086a8: 2000 movs r0, #0
- 80086aa: f04f 0c0a mov.w ip, #10
- 80086ae: 9a07 ldr r2, [sp, #28]
- 80086b0: 4621 mov r1, r4
- 80086b2: f811 3b01 ldrb.w r3, [r1], #1
- 80086b6: 3b30 subs r3, #48 ; 0x30
- 80086b8: 2b09 cmp r3, #9
- 80086ba: d94e bls.n 800875a <_svfiprintf_r+0x17e>
- 80086bc: b1b0 cbz r0, 80086ec <_svfiprintf_r+0x110>
- 80086be: 9207 str r2, [sp, #28]
- 80086c0: e014 b.n 80086ec <_svfiprintf_r+0x110>
- 80086c2: eba0 0308 sub.w r3, r0, r8
- 80086c6: fa09 f303 lsl.w r3, r9, r3
- 80086ca: 4313 orrs r3, r2
- 80086cc: 46a2 mov sl, r4
- 80086ce: 9304 str r3, [sp, #16]
- 80086d0: e7d2 b.n 8008678 <_svfiprintf_r+0x9c>
- 80086d2: 9b03 ldr r3, [sp, #12]
- 80086d4: 1d19 adds r1, r3, #4
- 80086d6: 681b ldr r3, [r3, #0]
- 80086d8: 9103 str r1, [sp, #12]
- 80086da: 2b00 cmp r3, #0
- 80086dc: bfbb ittet lt
- 80086de: 425b neglt r3, r3
- 80086e0: f042 0202 orrlt.w r2, r2, #2
- 80086e4: 9307 strge r3, [sp, #28]
- 80086e6: 9307 strlt r3, [sp, #28]
- 80086e8: bfb8 it lt
- 80086ea: 9204 strlt r2, [sp, #16]
- 80086ec: 7823 ldrb r3, [r4, #0]
- 80086ee: 2b2e cmp r3, #46 ; 0x2e
- 80086f0: d10c bne.n 800870c <_svfiprintf_r+0x130>
- 80086f2: 7863 ldrb r3, [r4, #1]
- 80086f4: 2b2a cmp r3, #42 ; 0x2a
- 80086f6: d135 bne.n 8008764 <_svfiprintf_r+0x188>
- 80086f8: 9b03 ldr r3, [sp, #12]
- 80086fa: 3402 adds r4, #2
- 80086fc: 1d1a adds r2, r3, #4
- 80086fe: 681b ldr r3, [r3, #0]
- 8008700: 9203 str r2, [sp, #12]
- 8008702: 2b00 cmp r3, #0
- 8008704: bfb8 it lt
- 8008706: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff
- 800870a: 9305 str r3, [sp, #20]
- 800870c: f8df a0c8 ldr.w sl, [pc, #200] ; 80087d8 <_svfiprintf_r+0x1fc>
- 8008710: 2203 movs r2, #3
- 8008712: 4650 mov r0, sl
- 8008714: 7821 ldrb r1, [r4, #0]
- 8008716: f7ff fac1 bl 8007c9c <memchr>
- 800871a: b140 cbz r0, 800872e <_svfiprintf_r+0x152>
- 800871c: 2340 movs r3, #64 ; 0x40
- 800871e: eba0 000a sub.w r0, r0, sl
- 8008722: fa03 f000 lsl.w r0, r3, r0
- 8008726: 9b04 ldr r3, [sp, #16]
- 8008728: 3401 adds r4, #1
- 800872a: 4303 orrs r3, r0
- 800872c: 9304 str r3, [sp, #16]
- 800872e: f814 1b01 ldrb.w r1, [r4], #1
- 8008732: 2206 movs r2, #6
- 8008734: 4825 ldr r0, [pc, #148] ; (80087cc <_svfiprintf_r+0x1f0>)
- 8008736: f88d 1028 strb.w r1, [sp, #40] ; 0x28
- 800873a: f7ff faaf bl 8007c9c <memchr>
- 800873e: 2800 cmp r0, #0
- 8008740: d038 beq.n 80087b4 <_svfiprintf_r+0x1d8>
- 8008742: 4b23 ldr r3, [pc, #140] ; (80087d0 <_svfiprintf_r+0x1f4>)
- 8008744: bb1b cbnz r3, 800878e <_svfiprintf_r+0x1b2>
- 8008746: 9b03 ldr r3, [sp, #12]
- 8008748: 3307 adds r3, #7
- 800874a: f023 0307 bic.w r3, r3, #7
- 800874e: 3308 adds r3, #8
- 8008750: 9303 str r3, [sp, #12]
- 8008752: 9b09 ldr r3, [sp, #36] ; 0x24
- 8008754: 4433 add r3, r6
- 8008756: 9309 str r3, [sp, #36] ; 0x24
- 8008758: e767 b.n 800862a <_svfiprintf_r+0x4e>
- 800875a: 460c mov r4, r1
- 800875c: 2001 movs r0, #1
- 800875e: fb0c 3202 mla r2, ip, r2, r3
- 8008762: e7a5 b.n 80086b0 <_svfiprintf_r+0xd4>
- 8008764: 2300 movs r3, #0
- 8008766: f04f 0c0a mov.w ip, #10
- 800876a: 4619 mov r1, r3
- 800876c: 3401 adds r4, #1
- 800876e: 9305 str r3, [sp, #20]
- 8008770: 4620 mov r0, r4
- 8008772: f810 2b01 ldrb.w r2, [r0], #1
- 8008776: 3a30 subs r2, #48 ; 0x30
- 8008778: 2a09 cmp r2, #9
- 800877a: d903 bls.n 8008784 <_svfiprintf_r+0x1a8>
- 800877c: 2b00 cmp r3, #0
- 800877e: d0c5 beq.n 800870c <_svfiprintf_r+0x130>
- 8008780: 9105 str r1, [sp, #20]
- 8008782: e7c3 b.n 800870c <_svfiprintf_r+0x130>
- 8008784: 4604 mov r4, r0
- 8008786: 2301 movs r3, #1
- 8008788: fb0c 2101 mla r1, ip, r1, r2
- 800878c: e7f0 b.n 8008770 <_svfiprintf_r+0x194>
- 800878e: ab03 add r3, sp, #12
- 8008790: 9300 str r3, [sp, #0]
- 8008792: 462a mov r2, r5
- 8008794: 4638 mov r0, r7
- 8008796: 4b0f ldr r3, [pc, #60] ; (80087d4 <_svfiprintf_r+0x1f8>)
- 8008798: a904 add r1, sp, #16
- 800879a: f7fe f813 bl 80067c4 <_printf_float>
- 800879e: 1c42 adds r2, r0, #1
- 80087a0: 4606 mov r6, r0
- 80087a2: d1d6 bne.n 8008752 <_svfiprintf_r+0x176>
- 80087a4: 89ab ldrh r3, [r5, #12]
- 80087a6: 065b lsls r3, r3, #25
- 80087a8: f53f af2c bmi.w 8008604 <_svfiprintf_r+0x28>
- 80087ac: 9809 ldr r0, [sp, #36] ; 0x24
- 80087ae: b01d add sp, #116 ; 0x74
- 80087b0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 80087b4: ab03 add r3, sp, #12
- 80087b6: 9300 str r3, [sp, #0]
- 80087b8: 462a mov r2, r5
- 80087ba: 4638 mov r0, r7
- 80087bc: 4b05 ldr r3, [pc, #20] ; (80087d4 <_svfiprintf_r+0x1f8>)
- 80087be: a904 add r1, sp, #16
- 80087c0: f7fe fa9c bl 8006cfc <_printf_i>
- 80087c4: e7eb b.n 800879e <_svfiprintf_r+0x1c2>
- 80087c6: bf00 nop
- 80087c8: 0800a33c .word 0x0800a33c
- 80087cc: 0800a346 .word 0x0800a346
- 80087d0: 080067c5 .word 0x080067c5
- 80087d4: 08008525 .word 0x08008525
- 80087d8: 0800a342 .word 0x0800a342
- 080087dc <_sbrk_r>:
- 80087dc: b538 push {r3, r4, r5, lr}
- 80087de: 2300 movs r3, #0
- 80087e0: 4d05 ldr r5, [pc, #20] ; (80087f8 <_sbrk_r+0x1c>)
- 80087e2: 4604 mov r4, r0
- 80087e4: 4608 mov r0, r1
- 80087e6: 602b str r3, [r5, #0]
- 80087e8: f7f9 fc32 bl 8002050 <_sbrk>
- 80087ec: 1c43 adds r3, r0, #1
- 80087ee: d102 bne.n 80087f6 <_sbrk_r+0x1a>
- 80087f0: 682b ldr r3, [r5, #0]
- 80087f2: b103 cbz r3, 80087f6 <_sbrk_r+0x1a>
- 80087f4: 6023 str r3, [r4, #0]
- 80087f6: bd38 pop {r3, r4, r5, pc}
- 80087f8: 200006a0 .word 0x200006a0
- 080087fc <__assert_func>:
- 80087fc: b51f push {r0, r1, r2, r3, r4, lr}
- 80087fe: 4614 mov r4, r2
- 8008800: 461a mov r2, r3
- 8008802: 4b09 ldr r3, [pc, #36] ; (8008828 <__assert_func+0x2c>)
- 8008804: 4605 mov r5, r0
- 8008806: 681b ldr r3, [r3, #0]
- 8008808: 68d8 ldr r0, [r3, #12]
- 800880a: b14c cbz r4, 8008820 <__assert_func+0x24>
- 800880c: 4b07 ldr r3, [pc, #28] ; (800882c <__assert_func+0x30>)
- 800880e: e9cd 3401 strd r3, r4, [sp, #4]
- 8008812: 9100 str r1, [sp, #0]
- 8008814: 462b mov r3, r5
- 8008816: 4906 ldr r1, [pc, #24] ; (8008830 <__assert_func+0x34>)
- 8008818: f000 f80e bl 8008838 <fiprintf>
- 800881c: f000 fa88 bl 8008d30 <abort>
- 8008820: 4b04 ldr r3, [pc, #16] ; (8008834 <__assert_func+0x38>)
- 8008822: 461c mov r4, r3
- 8008824: e7f3 b.n 800880e <__assert_func+0x12>
- 8008826: bf00 nop
- 8008828: 20000014 .word 0x20000014
- 800882c: 0800a34d .word 0x0800a34d
- 8008830: 0800a35a .word 0x0800a35a
- 8008834: 0800a388 .word 0x0800a388
- 08008838 <fiprintf>:
- 8008838: b40e push {r1, r2, r3}
- 800883a: b503 push {r0, r1, lr}
- 800883c: 4601 mov r1, r0
- 800883e: ab03 add r3, sp, #12
- 8008840: 4805 ldr r0, [pc, #20] ; (8008858 <fiprintf+0x20>)
- 8008842: f853 2b04 ldr.w r2, [r3], #4
- 8008846: 6800 ldr r0, [r0, #0]
- 8008848: 9301 str r3, [sp, #4]
- 800884a: f000 f873 bl 8008934 <_vfiprintf_r>
- 800884e: b002 add sp, #8
- 8008850: f85d eb04 ldr.w lr, [sp], #4
- 8008854: b003 add sp, #12
- 8008856: 4770 bx lr
- 8008858: 20000014 .word 0x20000014
- 0800885c <__ascii_mbtowc>:
- 800885c: b082 sub sp, #8
- 800885e: b901 cbnz r1, 8008862 <__ascii_mbtowc+0x6>
- 8008860: a901 add r1, sp, #4
- 8008862: b142 cbz r2, 8008876 <__ascii_mbtowc+0x1a>
- 8008864: b14b cbz r3, 800887a <__ascii_mbtowc+0x1e>
- 8008866: 7813 ldrb r3, [r2, #0]
- 8008868: 600b str r3, [r1, #0]
- 800886a: 7812 ldrb r2, [r2, #0]
- 800886c: 1e10 subs r0, r2, #0
- 800886e: bf18 it ne
- 8008870: 2001 movne r0, #1
- 8008872: b002 add sp, #8
- 8008874: 4770 bx lr
- 8008876: 4610 mov r0, r2
- 8008878: e7fb b.n 8008872 <__ascii_mbtowc+0x16>
- 800887a: f06f 0001 mvn.w r0, #1
- 800887e: e7f8 b.n 8008872 <__ascii_mbtowc+0x16>
- 08008880 <__malloc_lock>:
- 8008880: 4801 ldr r0, [pc, #4] ; (8008888 <__malloc_lock+0x8>)
- 8008882: f000 bc15 b.w 80090b0 <__retarget_lock_acquire_recursive>
- 8008886: bf00 nop
- 8008888: 200006a8 .word 0x200006a8
- 0800888c <__malloc_unlock>:
- 800888c: 4801 ldr r0, [pc, #4] ; (8008894 <__malloc_unlock+0x8>)
- 800888e: f000 bc10 b.w 80090b2 <__retarget_lock_release_recursive>
- 8008892: bf00 nop
- 8008894: 200006a8 .word 0x200006a8
- 08008898 <_realloc_r>:
- 8008898: b5f8 push {r3, r4, r5, r6, r7, lr}
- 800889a: 4607 mov r7, r0
- 800889c: 4614 mov r4, r2
- 800889e: 460e mov r6, r1
- 80088a0: b921 cbnz r1, 80088ac <_realloc_r+0x14>
- 80088a2: 4611 mov r1, r2
- 80088a4: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr}
- 80088a8: f7ff bde2 b.w 8008470 <_malloc_r>
- 80088ac: b922 cbnz r2, 80088b8 <_realloc_r+0x20>
- 80088ae: f7ff fd93 bl 80083d8 <_free_r>
- 80088b2: 4625 mov r5, r4
- 80088b4: 4628 mov r0, r5
- 80088b6: bdf8 pop {r3, r4, r5, r6, r7, pc}
- 80088b8: f000 fc60 bl 800917c <_malloc_usable_size_r>
- 80088bc: 42a0 cmp r0, r4
- 80088be: d20f bcs.n 80088e0 <_realloc_r+0x48>
- 80088c0: 4621 mov r1, r4
- 80088c2: 4638 mov r0, r7
- 80088c4: f7ff fdd4 bl 8008470 <_malloc_r>
- 80088c8: 4605 mov r5, r0
- 80088ca: 2800 cmp r0, #0
- 80088cc: d0f2 beq.n 80088b4 <_realloc_r+0x1c>
- 80088ce: 4631 mov r1, r6
- 80088d0: 4622 mov r2, r4
- 80088d2: f7fd fea9 bl 8006628 <memcpy>
- 80088d6: 4631 mov r1, r6
- 80088d8: 4638 mov r0, r7
- 80088da: f7ff fd7d bl 80083d8 <_free_r>
- 80088de: e7e9 b.n 80088b4 <_realloc_r+0x1c>
- 80088e0: 4635 mov r5, r6
- 80088e2: e7e7 b.n 80088b4 <_realloc_r+0x1c>
- 080088e4 <__sfputc_r>:
- 80088e4: 6893 ldr r3, [r2, #8]
- 80088e6: b410 push {r4}
- 80088e8: 3b01 subs r3, #1
- 80088ea: 2b00 cmp r3, #0
- 80088ec: 6093 str r3, [r2, #8]
- 80088ee: da07 bge.n 8008900 <__sfputc_r+0x1c>
- 80088f0: 6994 ldr r4, [r2, #24]
- 80088f2: 42a3 cmp r3, r4
- 80088f4: db01 blt.n 80088fa <__sfputc_r+0x16>
- 80088f6: 290a cmp r1, #10
- 80088f8: d102 bne.n 8008900 <__sfputc_r+0x1c>
- 80088fa: bc10 pop {r4}
- 80088fc: f000 b94a b.w 8008b94 <__swbuf_r>
- 8008900: 6813 ldr r3, [r2, #0]
- 8008902: 1c58 adds r0, r3, #1
- 8008904: 6010 str r0, [r2, #0]
- 8008906: 7019 strb r1, [r3, #0]
- 8008908: 4608 mov r0, r1
- 800890a: bc10 pop {r4}
- 800890c: 4770 bx lr
- 0800890e <__sfputs_r>:
- 800890e: b5f8 push {r3, r4, r5, r6, r7, lr}
- 8008910: 4606 mov r6, r0
- 8008912: 460f mov r7, r1
- 8008914: 4614 mov r4, r2
- 8008916: 18d5 adds r5, r2, r3
- 8008918: 42ac cmp r4, r5
- 800891a: d101 bne.n 8008920 <__sfputs_r+0x12>
- 800891c: 2000 movs r0, #0
- 800891e: e007 b.n 8008930 <__sfputs_r+0x22>
- 8008920: 463a mov r2, r7
- 8008922: 4630 mov r0, r6
- 8008924: f814 1b01 ldrb.w r1, [r4], #1
- 8008928: f7ff ffdc bl 80088e4 <__sfputc_r>
- 800892c: 1c43 adds r3, r0, #1
- 800892e: d1f3 bne.n 8008918 <__sfputs_r+0xa>
- 8008930: bdf8 pop {r3, r4, r5, r6, r7, pc}
- ...
- 08008934 <_vfiprintf_r>:
- 8008934: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 8008938: 460d mov r5, r1
- 800893a: 4614 mov r4, r2
- 800893c: 4698 mov r8, r3
- 800893e: 4606 mov r6, r0
- 8008940: b09d sub sp, #116 ; 0x74
- 8008942: b118 cbz r0, 800894c <_vfiprintf_r+0x18>
- 8008944: 6983 ldr r3, [r0, #24]
- 8008946: b90b cbnz r3, 800894c <_vfiprintf_r+0x18>
- 8008948: f000 fb14 bl 8008f74 <__sinit>
- 800894c: 4b89 ldr r3, [pc, #548] ; (8008b74 <_vfiprintf_r+0x240>)
- 800894e: 429d cmp r5, r3
- 8008950: d11b bne.n 800898a <_vfiprintf_r+0x56>
- 8008952: 6875 ldr r5, [r6, #4]
- 8008954: 6e6b ldr r3, [r5, #100] ; 0x64
- 8008956: 07d9 lsls r1, r3, #31
- 8008958: d405 bmi.n 8008966 <_vfiprintf_r+0x32>
- 800895a: 89ab ldrh r3, [r5, #12]
- 800895c: 059a lsls r2, r3, #22
- 800895e: d402 bmi.n 8008966 <_vfiprintf_r+0x32>
- 8008960: 6da8 ldr r0, [r5, #88] ; 0x58
- 8008962: f000 fba5 bl 80090b0 <__retarget_lock_acquire_recursive>
- 8008966: 89ab ldrh r3, [r5, #12]
- 8008968: 071b lsls r3, r3, #28
- 800896a: d501 bpl.n 8008970 <_vfiprintf_r+0x3c>
- 800896c: 692b ldr r3, [r5, #16]
- 800896e: b9eb cbnz r3, 80089ac <_vfiprintf_r+0x78>
- 8008970: 4629 mov r1, r5
- 8008972: 4630 mov r0, r6
- 8008974: f000 f96e bl 8008c54 <__swsetup_r>
- 8008978: b1c0 cbz r0, 80089ac <_vfiprintf_r+0x78>
- 800897a: 6e6b ldr r3, [r5, #100] ; 0x64
- 800897c: 07dc lsls r4, r3, #31
- 800897e: d50e bpl.n 800899e <_vfiprintf_r+0x6a>
- 8008980: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8008984: b01d add sp, #116 ; 0x74
- 8008986: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
- 800898a: 4b7b ldr r3, [pc, #492] ; (8008b78 <_vfiprintf_r+0x244>)
- 800898c: 429d cmp r5, r3
- 800898e: d101 bne.n 8008994 <_vfiprintf_r+0x60>
- 8008990: 68b5 ldr r5, [r6, #8]
- 8008992: e7df b.n 8008954 <_vfiprintf_r+0x20>
- 8008994: 4b79 ldr r3, [pc, #484] ; (8008b7c <_vfiprintf_r+0x248>)
- 8008996: 429d cmp r5, r3
- 8008998: bf08 it eq
- 800899a: 68f5 ldreq r5, [r6, #12]
- 800899c: e7da b.n 8008954 <_vfiprintf_r+0x20>
- 800899e: 89ab ldrh r3, [r5, #12]
- 80089a0: 0598 lsls r0, r3, #22
- 80089a2: d4ed bmi.n 8008980 <_vfiprintf_r+0x4c>
- 80089a4: 6da8 ldr r0, [r5, #88] ; 0x58
- 80089a6: f000 fb84 bl 80090b2 <__retarget_lock_release_recursive>
- 80089aa: e7e9 b.n 8008980 <_vfiprintf_r+0x4c>
- 80089ac: 2300 movs r3, #0
- 80089ae: 9309 str r3, [sp, #36] ; 0x24
- 80089b0: 2320 movs r3, #32
- 80089b2: f88d 3029 strb.w r3, [sp, #41] ; 0x29
- 80089b6: 2330 movs r3, #48 ; 0x30
- 80089b8: f04f 0901 mov.w r9, #1
- 80089bc: f8cd 800c str.w r8, [sp, #12]
- 80089c0: f8df 81bc ldr.w r8, [pc, #444] ; 8008b80 <_vfiprintf_r+0x24c>
- 80089c4: f88d 302a strb.w r3, [sp, #42] ; 0x2a
- 80089c8: 4623 mov r3, r4
- 80089ca: 469a mov sl, r3
- 80089cc: f813 2b01 ldrb.w r2, [r3], #1
- 80089d0: b10a cbz r2, 80089d6 <_vfiprintf_r+0xa2>
- 80089d2: 2a25 cmp r2, #37 ; 0x25
- 80089d4: d1f9 bne.n 80089ca <_vfiprintf_r+0x96>
- 80089d6: ebba 0b04 subs.w fp, sl, r4
- 80089da: d00b beq.n 80089f4 <_vfiprintf_r+0xc0>
- 80089dc: 465b mov r3, fp
- 80089de: 4622 mov r2, r4
- 80089e0: 4629 mov r1, r5
- 80089e2: 4630 mov r0, r6
- 80089e4: f7ff ff93 bl 800890e <__sfputs_r>
- 80089e8: 3001 adds r0, #1
- 80089ea: f000 80aa beq.w 8008b42 <_vfiprintf_r+0x20e>
- 80089ee: 9a09 ldr r2, [sp, #36] ; 0x24
- 80089f0: 445a add r2, fp
- 80089f2: 9209 str r2, [sp, #36] ; 0x24
- 80089f4: f89a 3000 ldrb.w r3, [sl]
- 80089f8: 2b00 cmp r3, #0
- 80089fa: f000 80a2 beq.w 8008b42 <_vfiprintf_r+0x20e>
- 80089fe: 2300 movs r3, #0
- 8008a00: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8008a04: e9cd 2305 strd r2, r3, [sp, #20]
- 8008a08: f10a 0a01 add.w sl, sl, #1
- 8008a0c: 9304 str r3, [sp, #16]
- 8008a0e: 9307 str r3, [sp, #28]
- 8008a10: f88d 3053 strb.w r3, [sp, #83] ; 0x53
- 8008a14: 931a str r3, [sp, #104] ; 0x68
- 8008a16: 4654 mov r4, sl
- 8008a18: 2205 movs r2, #5
- 8008a1a: f814 1b01 ldrb.w r1, [r4], #1
- 8008a1e: 4858 ldr r0, [pc, #352] ; (8008b80 <_vfiprintf_r+0x24c>)
- 8008a20: f7ff f93c bl 8007c9c <memchr>
- 8008a24: 9a04 ldr r2, [sp, #16]
- 8008a26: b9d8 cbnz r0, 8008a60 <_vfiprintf_r+0x12c>
- 8008a28: 06d1 lsls r1, r2, #27
- 8008a2a: bf44 itt mi
- 8008a2c: 2320 movmi r3, #32
- 8008a2e: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
- 8008a32: 0713 lsls r3, r2, #28
- 8008a34: bf44 itt mi
- 8008a36: 232b movmi r3, #43 ; 0x2b
- 8008a38: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
- 8008a3c: f89a 3000 ldrb.w r3, [sl]
- 8008a40: 2b2a cmp r3, #42 ; 0x2a
- 8008a42: d015 beq.n 8008a70 <_vfiprintf_r+0x13c>
- 8008a44: 4654 mov r4, sl
- 8008a46: 2000 movs r0, #0
- 8008a48: f04f 0c0a mov.w ip, #10
- 8008a4c: 9a07 ldr r2, [sp, #28]
- 8008a4e: 4621 mov r1, r4
- 8008a50: f811 3b01 ldrb.w r3, [r1], #1
- 8008a54: 3b30 subs r3, #48 ; 0x30
- 8008a56: 2b09 cmp r3, #9
- 8008a58: d94e bls.n 8008af8 <_vfiprintf_r+0x1c4>
- 8008a5a: b1b0 cbz r0, 8008a8a <_vfiprintf_r+0x156>
- 8008a5c: 9207 str r2, [sp, #28]
- 8008a5e: e014 b.n 8008a8a <_vfiprintf_r+0x156>
- 8008a60: eba0 0308 sub.w r3, r0, r8
- 8008a64: fa09 f303 lsl.w r3, r9, r3
- 8008a68: 4313 orrs r3, r2
- 8008a6a: 46a2 mov sl, r4
- 8008a6c: 9304 str r3, [sp, #16]
- 8008a6e: e7d2 b.n 8008a16 <_vfiprintf_r+0xe2>
- 8008a70: 9b03 ldr r3, [sp, #12]
- 8008a72: 1d19 adds r1, r3, #4
- 8008a74: 681b ldr r3, [r3, #0]
- 8008a76: 9103 str r1, [sp, #12]
- 8008a78: 2b00 cmp r3, #0
- 8008a7a: bfbb ittet lt
- 8008a7c: 425b neglt r3, r3
- 8008a7e: f042 0202 orrlt.w r2, r2, #2
- 8008a82: 9307 strge r3, [sp, #28]
- 8008a84: 9307 strlt r3, [sp, #28]
- 8008a86: bfb8 it lt
- 8008a88: 9204 strlt r2, [sp, #16]
- 8008a8a: 7823 ldrb r3, [r4, #0]
- 8008a8c: 2b2e cmp r3, #46 ; 0x2e
- 8008a8e: d10c bne.n 8008aaa <_vfiprintf_r+0x176>
- 8008a90: 7863 ldrb r3, [r4, #1]
- 8008a92: 2b2a cmp r3, #42 ; 0x2a
- 8008a94: d135 bne.n 8008b02 <_vfiprintf_r+0x1ce>
- 8008a96: 9b03 ldr r3, [sp, #12]
- 8008a98: 3402 adds r4, #2
- 8008a9a: 1d1a adds r2, r3, #4
- 8008a9c: 681b ldr r3, [r3, #0]
- 8008a9e: 9203 str r2, [sp, #12]
- 8008aa0: 2b00 cmp r3, #0
- 8008aa2: bfb8 it lt
- 8008aa4: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff
- 8008aa8: 9305 str r3, [sp, #20]
- 8008aaa: f8df a0e4 ldr.w sl, [pc, #228] ; 8008b90 <_vfiprintf_r+0x25c>
- 8008aae: 2203 movs r2, #3
- 8008ab0: 4650 mov r0, sl
- 8008ab2: 7821 ldrb r1, [r4, #0]
- 8008ab4: f7ff f8f2 bl 8007c9c <memchr>
- 8008ab8: b140 cbz r0, 8008acc <_vfiprintf_r+0x198>
- 8008aba: 2340 movs r3, #64 ; 0x40
- 8008abc: eba0 000a sub.w r0, r0, sl
- 8008ac0: fa03 f000 lsl.w r0, r3, r0
- 8008ac4: 9b04 ldr r3, [sp, #16]
- 8008ac6: 3401 adds r4, #1
- 8008ac8: 4303 orrs r3, r0
- 8008aca: 9304 str r3, [sp, #16]
- 8008acc: f814 1b01 ldrb.w r1, [r4], #1
- 8008ad0: 2206 movs r2, #6
- 8008ad2: 482c ldr r0, [pc, #176] ; (8008b84 <_vfiprintf_r+0x250>)
- 8008ad4: f88d 1028 strb.w r1, [sp, #40] ; 0x28
- 8008ad8: f7ff f8e0 bl 8007c9c <memchr>
- 8008adc: 2800 cmp r0, #0
- 8008ade: d03f beq.n 8008b60 <_vfiprintf_r+0x22c>
- 8008ae0: 4b29 ldr r3, [pc, #164] ; (8008b88 <_vfiprintf_r+0x254>)
- 8008ae2: bb1b cbnz r3, 8008b2c <_vfiprintf_r+0x1f8>
- 8008ae4: 9b03 ldr r3, [sp, #12]
- 8008ae6: 3307 adds r3, #7
- 8008ae8: f023 0307 bic.w r3, r3, #7
- 8008aec: 3308 adds r3, #8
- 8008aee: 9303 str r3, [sp, #12]
- 8008af0: 9b09 ldr r3, [sp, #36] ; 0x24
- 8008af2: 443b add r3, r7
- 8008af4: 9309 str r3, [sp, #36] ; 0x24
- 8008af6: e767 b.n 80089c8 <_vfiprintf_r+0x94>
- 8008af8: 460c mov r4, r1
- 8008afa: 2001 movs r0, #1
- 8008afc: fb0c 3202 mla r2, ip, r2, r3
- 8008b00: e7a5 b.n 8008a4e <_vfiprintf_r+0x11a>
- 8008b02: 2300 movs r3, #0
- 8008b04: f04f 0c0a mov.w ip, #10
- 8008b08: 4619 mov r1, r3
- 8008b0a: 3401 adds r4, #1
- 8008b0c: 9305 str r3, [sp, #20]
- 8008b0e: 4620 mov r0, r4
- 8008b10: f810 2b01 ldrb.w r2, [r0], #1
- 8008b14: 3a30 subs r2, #48 ; 0x30
- 8008b16: 2a09 cmp r2, #9
- 8008b18: d903 bls.n 8008b22 <_vfiprintf_r+0x1ee>
- 8008b1a: 2b00 cmp r3, #0
- 8008b1c: d0c5 beq.n 8008aaa <_vfiprintf_r+0x176>
- 8008b1e: 9105 str r1, [sp, #20]
- 8008b20: e7c3 b.n 8008aaa <_vfiprintf_r+0x176>
- 8008b22: 4604 mov r4, r0
- 8008b24: 2301 movs r3, #1
- 8008b26: fb0c 2101 mla r1, ip, r1, r2
- 8008b2a: e7f0 b.n 8008b0e <_vfiprintf_r+0x1da>
- 8008b2c: ab03 add r3, sp, #12
- 8008b2e: 9300 str r3, [sp, #0]
- 8008b30: 462a mov r2, r5
- 8008b32: 4630 mov r0, r6
- 8008b34: 4b15 ldr r3, [pc, #84] ; (8008b8c <_vfiprintf_r+0x258>)
- 8008b36: a904 add r1, sp, #16
- 8008b38: f7fd fe44 bl 80067c4 <_printf_float>
- 8008b3c: 4607 mov r7, r0
- 8008b3e: 1c78 adds r0, r7, #1
- 8008b40: d1d6 bne.n 8008af0 <_vfiprintf_r+0x1bc>
- 8008b42: 6e6b ldr r3, [r5, #100] ; 0x64
- 8008b44: 07d9 lsls r1, r3, #31
- 8008b46: d405 bmi.n 8008b54 <_vfiprintf_r+0x220>
- 8008b48: 89ab ldrh r3, [r5, #12]
- 8008b4a: 059a lsls r2, r3, #22
- 8008b4c: d402 bmi.n 8008b54 <_vfiprintf_r+0x220>
- 8008b4e: 6da8 ldr r0, [r5, #88] ; 0x58
- 8008b50: f000 faaf bl 80090b2 <__retarget_lock_release_recursive>
- 8008b54: 89ab ldrh r3, [r5, #12]
- 8008b56: 065b lsls r3, r3, #25
- 8008b58: f53f af12 bmi.w 8008980 <_vfiprintf_r+0x4c>
- 8008b5c: 9809 ldr r0, [sp, #36] ; 0x24
- 8008b5e: e711 b.n 8008984 <_vfiprintf_r+0x50>
- 8008b60: ab03 add r3, sp, #12
- 8008b62: 9300 str r3, [sp, #0]
- 8008b64: 462a mov r2, r5
- 8008b66: 4630 mov r0, r6
- 8008b68: 4b08 ldr r3, [pc, #32] ; (8008b8c <_vfiprintf_r+0x258>)
- 8008b6a: a904 add r1, sp, #16
- 8008b6c: f7fe f8c6 bl 8006cfc <_printf_i>
- 8008b70: e7e4 b.n 8008b3c <_vfiprintf_r+0x208>
- 8008b72: bf00 nop
- 8008b74: 0800a4b4 .word 0x0800a4b4
- 8008b78: 0800a4d4 .word 0x0800a4d4
- 8008b7c: 0800a494 .word 0x0800a494
- 8008b80: 0800a33c .word 0x0800a33c
- 8008b84: 0800a346 .word 0x0800a346
- 8008b88: 080067c5 .word 0x080067c5
- 8008b8c: 0800890f .word 0x0800890f
- 8008b90: 0800a342 .word 0x0800a342
- 08008b94 <__swbuf_r>:
- 8008b94: b5f8 push {r3, r4, r5, r6, r7, lr}
- 8008b96: 460e mov r6, r1
- 8008b98: 4614 mov r4, r2
- 8008b9a: 4605 mov r5, r0
- 8008b9c: b118 cbz r0, 8008ba6 <__swbuf_r+0x12>
- 8008b9e: 6983 ldr r3, [r0, #24]
- 8008ba0: b90b cbnz r3, 8008ba6 <__swbuf_r+0x12>
- 8008ba2: f000 f9e7 bl 8008f74 <__sinit>
- 8008ba6: 4b21 ldr r3, [pc, #132] ; (8008c2c <__swbuf_r+0x98>)
- 8008ba8: 429c cmp r4, r3
- 8008baa: d12b bne.n 8008c04 <__swbuf_r+0x70>
- 8008bac: 686c ldr r4, [r5, #4]
- 8008bae: 69a3 ldr r3, [r4, #24]
- 8008bb0: 60a3 str r3, [r4, #8]
- 8008bb2: 89a3 ldrh r3, [r4, #12]
- 8008bb4: 071a lsls r2, r3, #28
- 8008bb6: d52f bpl.n 8008c18 <__swbuf_r+0x84>
- 8008bb8: 6923 ldr r3, [r4, #16]
- 8008bba: b36b cbz r3, 8008c18 <__swbuf_r+0x84>
- 8008bbc: 6923 ldr r3, [r4, #16]
- 8008bbe: 6820 ldr r0, [r4, #0]
- 8008bc0: b2f6 uxtb r6, r6
- 8008bc2: 1ac0 subs r0, r0, r3
- 8008bc4: 6963 ldr r3, [r4, #20]
- 8008bc6: 4637 mov r7, r6
- 8008bc8: 4283 cmp r3, r0
- 8008bca: dc04 bgt.n 8008bd6 <__swbuf_r+0x42>
- 8008bcc: 4621 mov r1, r4
- 8008bce: 4628 mov r0, r5
- 8008bd0: f000 f93c bl 8008e4c <_fflush_r>
- 8008bd4: bb30 cbnz r0, 8008c24 <__swbuf_r+0x90>
- 8008bd6: 68a3 ldr r3, [r4, #8]
- 8008bd8: 3001 adds r0, #1
- 8008bda: 3b01 subs r3, #1
- 8008bdc: 60a3 str r3, [r4, #8]
- 8008bde: 6823 ldr r3, [r4, #0]
- 8008be0: 1c5a adds r2, r3, #1
- 8008be2: 6022 str r2, [r4, #0]
- 8008be4: 701e strb r6, [r3, #0]
- 8008be6: 6963 ldr r3, [r4, #20]
- 8008be8: 4283 cmp r3, r0
- 8008bea: d004 beq.n 8008bf6 <__swbuf_r+0x62>
- 8008bec: 89a3 ldrh r3, [r4, #12]
- 8008bee: 07db lsls r3, r3, #31
- 8008bf0: d506 bpl.n 8008c00 <__swbuf_r+0x6c>
- 8008bf2: 2e0a cmp r6, #10
- 8008bf4: d104 bne.n 8008c00 <__swbuf_r+0x6c>
- 8008bf6: 4621 mov r1, r4
- 8008bf8: 4628 mov r0, r5
- 8008bfa: f000 f927 bl 8008e4c <_fflush_r>
- 8008bfe: b988 cbnz r0, 8008c24 <__swbuf_r+0x90>
- 8008c00: 4638 mov r0, r7
- 8008c02: bdf8 pop {r3, r4, r5, r6, r7, pc}
- 8008c04: 4b0a ldr r3, [pc, #40] ; (8008c30 <__swbuf_r+0x9c>)
- 8008c06: 429c cmp r4, r3
- 8008c08: d101 bne.n 8008c0e <__swbuf_r+0x7a>
- 8008c0a: 68ac ldr r4, [r5, #8]
- 8008c0c: e7cf b.n 8008bae <__swbuf_r+0x1a>
- 8008c0e: 4b09 ldr r3, [pc, #36] ; (8008c34 <__swbuf_r+0xa0>)
- 8008c10: 429c cmp r4, r3
- 8008c12: bf08 it eq
- 8008c14: 68ec ldreq r4, [r5, #12]
- 8008c16: e7ca b.n 8008bae <__swbuf_r+0x1a>
- 8008c18: 4621 mov r1, r4
- 8008c1a: 4628 mov r0, r5
- 8008c1c: f000 f81a bl 8008c54 <__swsetup_r>
- 8008c20: 2800 cmp r0, #0
- 8008c22: d0cb beq.n 8008bbc <__swbuf_r+0x28>
- 8008c24: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff
- 8008c28: e7ea b.n 8008c00 <__swbuf_r+0x6c>
- 8008c2a: bf00 nop
- 8008c2c: 0800a4b4 .word 0x0800a4b4
- 8008c30: 0800a4d4 .word 0x0800a4d4
- 8008c34: 0800a494 .word 0x0800a494
- 08008c38 <__ascii_wctomb>:
- 8008c38: 4603 mov r3, r0
- 8008c3a: 4608 mov r0, r1
- 8008c3c: b141 cbz r1, 8008c50 <__ascii_wctomb+0x18>
- 8008c3e: 2aff cmp r2, #255 ; 0xff
- 8008c40: d904 bls.n 8008c4c <__ascii_wctomb+0x14>
- 8008c42: 228a movs r2, #138 ; 0x8a
- 8008c44: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8008c48: 601a str r2, [r3, #0]
- 8008c4a: 4770 bx lr
- 8008c4c: 2001 movs r0, #1
- 8008c4e: 700a strb r2, [r1, #0]
- 8008c50: 4770 bx lr
- ...
- 08008c54 <__swsetup_r>:
- 8008c54: 4b32 ldr r3, [pc, #200] ; (8008d20 <__swsetup_r+0xcc>)
- 8008c56: b570 push {r4, r5, r6, lr}
- 8008c58: 681d ldr r5, [r3, #0]
- 8008c5a: 4606 mov r6, r0
- 8008c5c: 460c mov r4, r1
- 8008c5e: b125 cbz r5, 8008c6a <__swsetup_r+0x16>
- 8008c60: 69ab ldr r3, [r5, #24]
- 8008c62: b913 cbnz r3, 8008c6a <__swsetup_r+0x16>
- 8008c64: 4628 mov r0, r5
- 8008c66: f000 f985 bl 8008f74 <__sinit>
- 8008c6a: 4b2e ldr r3, [pc, #184] ; (8008d24 <__swsetup_r+0xd0>)
- 8008c6c: 429c cmp r4, r3
- 8008c6e: d10f bne.n 8008c90 <__swsetup_r+0x3c>
- 8008c70: 686c ldr r4, [r5, #4]
- 8008c72: 89a3 ldrh r3, [r4, #12]
- 8008c74: f9b4 200c ldrsh.w r2, [r4, #12]
- 8008c78: 0719 lsls r1, r3, #28
- 8008c7a: d42c bmi.n 8008cd6 <__swsetup_r+0x82>
- 8008c7c: 06dd lsls r5, r3, #27
- 8008c7e: d411 bmi.n 8008ca4 <__swsetup_r+0x50>
- 8008c80: 2309 movs r3, #9
- 8008c82: 6033 str r3, [r6, #0]
- 8008c84: f042 0340 orr.w r3, r2, #64 ; 0x40
- 8008c88: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8008c8c: 81a3 strh r3, [r4, #12]
- 8008c8e: e03e b.n 8008d0e <__swsetup_r+0xba>
- 8008c90: 4b25 ldr r3, [pc, #148] ; (8008d28 <__swsetup_r+0xd4>)
- 8008c92: 429c cmp r4, r3
- 8008c94: d101 bne.n 8008c9a <__swsetup_r+0x46>
- 8008c96: 68ac ldr r4, [r5, #8]
- 8008c98: e7eb b.n 8008c72 <__swsetup_r+0x1e>
- 8008c9a: 4b24 ldr r3, [pc, #144] ; (8008d2c <__swsetup_r+0xd8>)
- 8008c9c: 429c cmp r4, r3
- 8008c9e: bf08 it eq
- 8008ca0: 68ec ldreq r4, [r5, #12]
- 8008ca2: e7e6 b.n 8008c72 <__swsetup_r+0x1e>
- 8008ca4: 0758 lsls r0, r3, #29
- 8008ca6: d512 bpl.n 8008cce <__swsetup_r+0x7a>
- 8008ca8: 6b61 ldr r1, [r4, #52] ; 0x34
- 8008caa: b141 cbz r1, 8008cbe <__swsetup_r+0x6a>
- 8008cac: f104 0344 add.w r3, r4, #68 ; 0x44
- 8008cb0: 4299 cmp r1, r3
- 8008cb2: d002 beq.n 8008cba <__swsetup_r+0x66>
- 8008cb4: 4630 mov r0, r6
- 8008cb6: f7ff fb8f bl 80083d8 <_free_r>
- 8008cba: 2300 movs r3, #0
- 8008cbc: 6363 str r3, [r4, #52] ; 0x34
- 8008cbe: 89a3 ldrh r3, [r4, #12]
- 8008cc0: f023 0324 bic.w r3, r3, #36 ; 0x24
- 8008cc4: 81a3 strh r3, [r4, #12]
- 8008cc6: 2300 movs r3, #0
- 8008cc8: 6063 str r3, [r4, #4]
- 8008cca: 6923 ldr r3, [r4, #16]
- 8008ccc: 6023 str r3, [r4, #0]
- 8008cce: 89a3 ldrh r3, [r4, #12]
- 8008cd0: f043 0308 orr.w r3, r3, #8
- 8008cd4: 81a3 strh r3, [r4, #12]
- 8008cd6: 6923 ldr r3, [r4, #16]
- 8008cd8: b94b cbnz r3, 8008cee <__swsetup_r+0x9a>
- 8008cda: 89a3 ldrh r3, [r4, #12]
- 8008cdc: f403 7320 and.w r3, r3, #640 ; 0x280
- 8008ce0: f5b3 7f00 cmp.w r3, #512 ; 0x200
- 8008ce4: d003 beq.n 8008cee <__swsetup_r+0x9a>
- 8008ce6: 4621 mov r1, r4
- 8008ce8: 4630 mov r0, r6
- 8008cea: f000 fa07 bl 80090fc <__smakebuf_r>
- 8008cee: 89a0 ldrh r0, [r4, #12]
- 8008cf0: f9b4 200c ldrsh.w r2, [r4, #12]
- 8008cf4: f010 0301 ands.w r3, r0, #1
- 8008cf8: d00a beq.n 8008d10 <__swsetup_r+0xbc>
- 8008cfa: 2300 movs r3, #0
- 8008cfc: 60a3 str r3, [r4, #8]
- 8008cfe: 6963 ldr r3, [r4, #20]
- 8008d00: 425b negs r3, r3
- 8008d02: 61a3 str r3, [r4, #24]
- 8008d04: 6923 ldr r3, [r4, #16]
- 8008d06: b943 cbnz r3, 8008d1a <__swsetup_r+0xc6>
- 8008d08: f010 0080 ands.w r0, r0, #128 ; 0x80
- 8008d0c: d1ba bne.n 8008c84 <__swsetup_r+0x30>
- 8008d0e: bd70 pop {r4, r5, r6, pc}
- 8008d10: 0781 lsls r1, r0, #30
- 8008d12: bf58 it pl
- 8008d14: 6963 ldrpl r3, [r4, #20]
- 8008d16: 60a3 str r3, [r4, #8]
- 8008d18: e7f4 b.n 8008d04 <__swsetup_r+0xb0>
- 8008d1a: 2000 movs r0, #0
- 8008d1c: e7f7 b.n 8008d0e <__swsetup_r+0xba>
- 8008d1e: bf00 nop
- 8008d20: 20000014 .word 0x20000014
- 8008d24: 0800a4b4 .word 0x0800a4b4
- 8008d28: 0800a4d4 .word 0x0800a4d4
- 8008d2c: 0800a494 .word 0x0800a494
- 08008d30 <abort>:
- 8008d30: 2006 movs r0, #6
- 8008d32: b508 push {r3, lr}
- 8008d34: f000 fa52 bl 80091dc <raise>
- 8008d38: 2001 movs r0, #1
- 8008d3a: f7f9 f916 bl 8001f6a <_exit>
- ...
- 08008d40 <__sflush_r>:
- 8008d40: 898a ldrh r2, [r1, #12]
- 8008d42: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
- 8008d46: 4605 mov r5, r0
- 8008d48: 0710 lsls r0, r2, #28
- 8008d4a: 460c mov r4, r1
- 8008d4c: d458 bmi.n 8008e00 <__sflush_r+0xc0>
- 8008d4e: 684b ldr r3, [r1, #4]
- 8008d50: 2b00 cmp r3, #0
- 8008d52: dc05 bgt.n 8008d60 <__sflush_r+0x20>
- 8008d54: 6c0b ldr r3, [r1, #64] ; 0x40
- 8008d56: 2b00 cmp r3, #0
- 8008d58: dc02 bgt.n 8008d60 <__sflush_r+0x20>
- 8008d5a: 2000 movs r0, #0
- 8008d5c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
- 8008d60: 6ae6 ldr r6, [r4, #44] ; 0x2c
- 8008d62: 2e00 cmp r6, #0
- 8008d64: d0f9 beq.n 8008d5a <__sflush_r+0x1a>
- 8008d66: 2300 movs r3, #0
- 8008d68: f412 5280 ands.w r2, r2, #4096 ; 0x1000
- 8008d6c: 682f ldr r7, [r5, #0]
- 8008d6e: 602b str r3, [r5, #0]
- 8008d70: d032 beq.n 8008dd8 <__sflush_r+0x98>
- 8008d72: 6d60 ldr r0, [r4, #84] ; 0x54
- 8008d74: 89a3 ldrh r3, [r4, #12]
- 8008d76: 075a lsls r2, r3, #29
- 8008d78: d505 bpl.n 8008d86 <__sflush_r+0x46>
- 8008d7a: 6863 ldr r3, [r4, #4]
- 8008d7c: 1ac0 subs r0, r0, r3
- 8008d7e: 6b63 ldr r3, [r4, #52] ; 0x34
- 8008d80: b10b cbz r3, 8008d86 <__sflush_r+0x46>
- 8008d82: 6c23 ldr r3, [r4, #64] ; 0x40
- 8008d84: 1ac0 subs r0, r0, r3
- 8008d86: 2300 movs r3, #0
- 8008d88: 4602 mov r2, r0
- 8008d8a: 6ae6 ldr r6, [r4, #44] ; 0x2c
- 8008d8c: 4628 mov r0, r5
- 8008d8e: 6a21 ldr r1, [r4, #32]
- 8008d90: 47b0 blx r6
- 8008d92: 1c43 adds r3, r0, #1
- 8008d94: 89a3 ldrh r3, [r4, #12]
- 8008d96: d106 bne.n 8008da6 <__sflush_r+0x66>
- 8008d98: 6829 ldr r1, [r5, #0]
- 8008d9a: 291d cmp r1, #29
- 8008d9c: d82c bhi.n 8008df8 <__sflush_r+0xb8>
- 8008d9e: 4a2a ldr r2, [pc, #168] ; (8008e48 <__sflush_r+0x108>)
- 8008da0: 40ca lsrs r2, r1
- 8008da2: 07d6 lsls r6, r2, #31
- 8008da4: d528 bpl.n 8008df8 <__sflush_r+0xb8>
- 8008da6: 2200 movs r2, #0
- 8008da8: 6062 str r2, [r4, #4]
- 8008daa: 6922 ldr r2, [r4, #16]
- 8008dac: 04d9 lsls r1, r3, #19
- 8008dae: 6022 str r2, [r4, #0]
- 8008db0: d504 bpl.n 8008dbc <__sflush_r+0x7c>
- 8008db2: 1c42 adds r2, r0, #1
- 8008db4: d101 bne.n 8008dba <__sflush_r+0x7a>
- 8008db6: 682b ldr r3, [r5, #0]
- 8008db8: b903 cbnz r3, 8008dbc <__sflush_r+0x7c>
- 8008dba: 6560 str r0, [r4, #84] ; 0x54
- 8008dbc: 6b61 ldr r1, [r4, #52] ; 0x34
- 8008dbe: 602f str r7, [r5, #0]
- 8008dc0: 2900 cmp r1, #0
- 8008dc2: d0ca beq.n 8008d5a <__sflush_r+0x1a>
- 8008dc4: f104 0344 add.w r3, r4, #68 ; 0x44
- 8008dc8: 4299 cmp r1, r3
- 8008dca: d002 beq.n 8008dd2 <__sflush_r+0x92>
- 8008dcc: 4628 mov r0, r5
- 8008dce: f7ff fb03 bl 80083d8 <_free_r>
- 8008dd2: 2000 movs r0, #0
- 8008dd4: 6360 str r0, [r4, #52] ; 0x34
- 8008dd6: e7c1 b.n 8008d5c <__sflush_r+0x1c>
- 8008dd8: 6a21 ldr r1, [r4, #32]
- 8008dda: 2301 movs r3, #1
- 8008ddc: 4628 mov r0, r5
- 8008dde: 47b0 blx r6
- 8008de0: 1c41 adds r1, r0, #1
- 8008de2: d1c7 bne.n 8008d74 <__sflush_r+0x34>
- 8008de4: 682b ldr r3, [r5, #0]
- 8008de6: 2b00 cmp r3, #0
- 8008de8: d0c4 beq.n 8008d74 <__sflush_r+0x34>
- 8008dea: 2b1d cmp r3, #29
- 8008dec: d001 beq.n 8008df2 <__sflush_r+0xb2>
- 8008dee: 2b16 cmp r3, #22
- 8008df0: d101 bne.n 8008df6 <__sflush_r+0xb6>
- 8008df2: 602f str r7, [r5, #0]
- 8008df4: e7b1 b.n 8008d5a <__sflush_r+0x1a>
- 8008df6: 89a3 ldrh r3, [r4, #12]
- 8008df8: f043 0340 orr.w r3, r3, #64 ; 0x40
- 8008dfc: 81a3 strh r3, [r4, #12]
- 8008dfe: e7ad b.n 8008d5c <__sflush_r+0x1c>
- 8008e00: 690f ldr r7, [r1, #16]
- 8008e02: 2f00 cmp r7, #0
- 8008e04: d0a9 beq.n 8008d5a <__sflush_r+0x1a>
- 8008e06: 0793 lsls r3, r2, #30
- 8008e08: bf18 it ne
- 8008e0a: 2300 movne r3, #0
- 8008e0c: 680e ldr r6, [r1, #0]
- 8008e0e: bf08 it eq
- 8008e10: 694b ldreq r3, [r1, #20]
- 8008e12: eba6 0807 sub.w r8, r6, r7
- 8008e16: 600f str r7, [r1, #0]
- 8008e18: 608b str r3, [r1, #8]
- 8008e1a: f1b8 0f00 cmp.w r8, #0
- 8008e1e: dd9c ble.n 8008d5a <__sflush_r+0x1a>
- 8008e20: 4643 mov r3, r8
- 8008e22: 463a mov r2, r7
- 8008e24: 4628 mov r0, r5
- 8008e26: 6a21 ldr r1, [r4, #32]
- 8008e28: 6aa6 ldr r6, [r4, #40] ; 0x28
- 8008e2a: 47b0 blx r6
- 8008e2c: 2800 cmp r0, #0
- 8008e2e: dc06 bgt.n 8008e3e <__sflush_r+0xfe>
- 8008e30: 89a3 ldrh r3, [r4, #12]
- 8008e32: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8008e36: f043 0340 orr.w r3, r3, #64 ; 0x40
- 8008e3a: 81a3 strh r3, [r4, #12]
- 8008e3c: e78e b.n 8008d5c <__sflush_r+0x1c>
- 8008e3e: 4407 add r7, r0
- 8008e40: eba8 0800 sub.w r8, r8, r0
- 8008e44: e7e9 b.n 8008e1a <__sflush_r+0xda>
- 8008e46: bf00 nop
- 8008e48: 20400001 .word 0x20400001
- 08008e4c <_fflush_r>:
- 8008e4c: b538 push {r3, r4, r5, lr}
- 8008e4e: 690b ldr r3, [r1, #16]
- 8008e50: 4605 mov r5, r0
- 8008e52: 460c mov r4, r1
- 8008e54: b913 cbnz r3, 8008e5c <_fflush_r+0x10>
- 8008e56: 2500 movs r5, #0
- 8008e58: 4628 mov r0, r5
- 8008e5a: bd38 pop {r3, r4, r5, pc}
- 8008e5c: b118 cbz r0, 8008e66 <_fflush_r+0x1a>
- 8008e5e: 6983 ldr r3, [r0, #24]
- 8008e60: b90b cbnz r3, 8008e66 <_fflush_r+0x1a>
- 8008e62: f000 f887 bl 8008f74 <__sinit>
- 8008e66: 4b14 ldr r3, [pc, #80] ; (8008eb8 <_fflush_r+0x6c>)
- 8008e68: 429c cmp r4, r3
- 8008e6a: d11b bne.n 8008ea4 <_fflush_r+0x58>
- 8008e6c: 686c ldr r4, [r5, #4]
- 8008e6e: f9b4 300c ldrsh.w r3, [r4, #12]
- 8008e72: 2b00 cmp r3, #0
- 8008e74: d0ef beq.n 8008e56 <_fflush_r+0xa>
- 8008e76: 6e62 ldr r2, [r4, #100] ; 0x64
- 8008e78: 07d0 lsls r0, r2, #31
- 8008e7a: d404 bmi.n 8008e86 <_fflush_r+0x3a>
- 8008e7c: 0599 lsls r1, r3, #22
- 8008e7e: d402 bmi.n 8008e86 <_fflush_r+0x3a>
- 8008e80: 6da0 ldr r0, [r4, #88] ; 0x58
- 8008e82: f000 f915 bl 80090b0 <__retarget_lock_acquire_recursive>
- 8008e86: 4628 mov r0, r5
- 8008e88: 4621 mov r1, r4
- 8008e8a: f7ff ff59 bl 8008d40 <__sflush_r>
- 8008e8e: 6e63 ldr r3, [r4, #100] ; 0x64
- 8008e90: 4605 mov r5, r0
- 8008e92: 07da lsls r2, r3, #31
- 8008e94: d4e0 bmi.n 8008e58 <_fflush_r+0xc>
- 8008e96: 89a3 ldrh r3, [r4, #12]
- 8008e98: 059b lsls r3, r3, #22
- 8008e9a: d4dd bmi.n 8008e58 <_fflush_r+0xc>
- 8008e9c: 6da0 ldr r0, [r4, #88] ; 0x58
- 8008e9e: f000 f908 bl 80090b2 <__retarget_lock_release_recursive>
- 8008ea2: e7d9 b.n 8008e58 <_fflush_r+0xc>
- 8008ea4: 4b05 ldr r3, [pc, #20] ; (8008ebc <_fflush_r+0x70>)
- 8008ea6: 429c cmp r4, r3
- 8008ea8: d101 bne.n 8008eae <_fflush_r+0x62>
- 8008eaa: 68ac ldr r4, [r5, #8]
- 8008eac: e7df b.n 8008e6e <_fflush_r+0x22>
- 8008eae: 4b04 ldr r3, [pc, #16] ; (8008ec0 <_fflush_r+0x74>)
- 8008eb0: 429c cmp r4, r3
- 8008eb2: bf08 it eq
- 8008eb4: 68ec ldreq r4, [r5, #12]
- 8008eb6: e7da b.n 8008e6e <_fflush_r+0x22>
- 8008eb8: 0800a4b4 .word 0x0800a4b4
- 8008ebc: 0800a4d4 .word 0x0800a4d4
- 8008ec0: 0800a494 .word 0x0800a494
- 08008ec4 <std>:
- 8008ec4: 2300 movs r3, #0
- 8008ec6: b510 push {r4, lr}
- 8008ec8: 4604 mov r4, r0
- 8008eca: e9c0 3300 strd r3, r3, [r0]
- 8008ece: e9c0 3304 strd r3, r3, [r0, #16]
- 8008ed2: 6083 str r3, [r0, #8]
- 8008ed4: 8181 strh r1, [r0, #12]
- 8008ed6: 6643 str r3, [r0, #100] ; 0x64
- 8008ed8: 81c2 strh r2, [r0, #14]
- 8008eda: 6183 str r3, [r0, #24]
- 8008edc: 4619 mov r1, r3
- 8008ede: 2208 movs r2, #8
- 8008ee0: 305c adds r0, #92 ; 0x5c
- 8008ee2: f7fd fbc9 bl 8006678 <memset>
- 8008ee6: 4b05 ldr r3, [pc, #20] ; (8008efc <std+0x38>)
- 8008ee8: 6224 str r4, [r4, #32]
- 8008eea: 6263 str r3, [r4, #36] ; 0x24
- 8008eec: 4b04 ldr r3, [pc, #16] ; (8008f00 <std+0x3c>)
- 8008eee: 62a3 str r3, [r4, #40] ; 0x28
- 8008ef0: 4b04 ldr r3, [pc, #16] ; (8008f04 <std+0x40>)
- 8008ef2: 62e3 str r3, [r4, #44] ; 0x2c
- 8008ef4: 4b04 ldr r3, [pc, #16] ; (8008f08 <std+0x44>)
- 8008ef6: 6323 str r3, [r4, #48] ; 0x30
- 8008ef8: bd10 pop {r4, pc}
- 8008efa: bf00 nop
- 8008efc: 08009215 .word 0x08009215
- 8008f00: 08009237 .word 0x08009237
- 8008f04: 0800926f .word 0x0800926f
- 8008f08: 08009293 .word 0x08009293
- 08008f0c <_cleanup_r>:
- 8008f0c: 4901 ldr r1, [pc, #4] ; (8008f14 <_cleanup_r+0x8>)
- 8008f0e: f000 b8af b.w 8009070 <_fwalk_reent>
- 8008f12: bf00 nop
- 8008f14: 08008e4d .word 0x08008e4d
- 08008f18 <__sfmoreglue>:
- 8008f18: b570 push {r4, r5, r6, lr}
- 8008f1a: 2568 movs r5, #104 ; 0x68
- 8008f1c: 1e4a subs r2, r1, #1
- 8008f1e: 4355 muls r5, r2
- 8008f20: 460e mov r6, r1
- 8008f22: f105 0174 add.w r1, r5, #116 ; 0x74
- 8008f26: f7ff faa3 bl 8008470 <_malloc_r>
- 8008f2a: 4604 mov r4, r0
- 8008f2c: b140 cbz r0, 8008f40 <__sfmoreglue+0x28>
- 8008f2e: 2100 movs r1, #0
- 8008f30: e9c0 1600 strd r1, r6, [r0]
- 8008f34: 300c adds r0, #12
- 8008f36: 60a0 str r0, [r4, #8]
- 8008f38: f105 0268 add.w r2, r5, #104 ; 0x68
- 8008f3c: f7fd fb9c bl 8006678 <memset>
- 8008f40: 4620 mov r0, r4
- 8008f42: bd70 pop {r4, r5, r6, pc}
- 08008f44 <__sfp_lock_acquire>:
- 8008f44: 4801 ldr r0, [pc, #4] ; (8008f4c <__sfp_lock_acquire+0x8>)
- 8008f46: f000 b8b3 b.w 80090b0 <__retarget_lock_acquire_recursive>
- 8008f4a: bf00 nop
- 8008f4c: 200006ac .word 0x200006ac
- 08008f50 <__sfp_lock_release>:
- 8008f50: 4801 ldr r0, [pc, #4] ; (8008f58 <__sfp_lock_release+0x8>)
- 8008f52: f000 b8ae b.w 80090b2 <__retarget_lock_release_recursive>
- 8008f56: bf00 nop
- 8008f58: 200006ac .word 0x200006ac
- 08008f5c <__sinit_lock_acquire>:
- 8008f5c: 4801 ldr r0, [pc, #4] ; (8008f64 <__sinit_lock_acquire+0x8>)
- 8008f5e: f000 b8a7 b.w 80090b0 <__retarget_lock_acquire_recursive>
- 8008f62: bf00 nop
- 8008f64: 200006a7 .word 0x200006a7
- 08008f68 <__sinit_lock_release>:
- 8008f68: 4801 ldr r0, [pc, #4] ; (8008f70 <__sinit_lock_release+0x8>)
- 8008f6a: f000 b8a2 b.w 80090b2 <__retarget_lock_release_recursive>
- 8008f6e: bf00 nop
- 8008f70: 200006a7 .word 0x200006a7
- 08008f74 <__sinit>:
- 8008f74: b510 push {r4, lr}
- 8008f76: 4604 mov r4, r0
- 8008f78: f7ff fff0 bl 8008f5c <__sinit_lock_acquire>
- 8008f7c: 69a3 ldr r3, [r4, #24]
- 8008f7e: b11b cbz r3, 8008f88 <__sinit+0x14>
- 8008f80: e8bd 4010 ldmia.w sp!, {r4, lr}
- 8008f84: f7ff bff0 b.w 8008f68 <__sinit_lock_release>
- 8008f88: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48
- 8008f8c: 6523 str r3, [r4, #80] ; 0x50
- 8008f8e: 4b13 ldr r3, [pc, #76] ; (8008fdc <__sinit+0x68>)
- 8008f90: 4a13 ldr r2, [pc, #76] ; (8008fe0 <__sinit+0x6c>)
- 8008f92: 681b ldr r3, [r3, #0]
- 8008f94: 62a2 str r2, [r4, #40] ; 0x28
- 8008f96: 42a3 cmp r3, r4
- 8008f98: bf08 it eq
- 8008f9a: 2301 moveq r3, #1
- 8008f9c: 4620 mov r0, r4
- 8008f9e: bf08 it eq
- 8008fa0: 61a3 streq r3, [r4, #24]
- 8008fa2: f000 f81f bl 8008fe4 <__sfp>
- 8008fa6: 6060 str r0, [r4, #4]
- 8008fa8: 4620 mov r0, r4
- 8008faa: f000 f81b bl 8008fe4 <__sfp>
- 8008fae: 60a0 str r0, [r4, #8]
- 8008fb0: 4620 mov r0, r4
- 8008fb2: f000 f817 bl 8008fe4 <__sfp>
- 8008fb6: 2200 movs r2, #0
- 8008fb8: 2104 movs r1, #4
- 8008fba: 60e0 str r0, [r4, #12]
- 8008fbc: 6860 ldr r0, [r4, #4]
- 8008fbe: f7ff ff81 bl 8008ec4 <std>
- 8008fc2: 2201 movs r2, #1
- 8008fc4: 2109 movs r1, #9
- 8008fc6: 68a0 ldr r0, [r4, #8]
- 8008fc8: f7ff ff7c bl 8008ec4 <std>
- 8008fcc: 2202 movs r2, #2
- 8008fce: 2112 movs r1, #18
- 8008fd0: 68e0 ldr r0, [r4, #12]
- 8008fd2: f7ff ff77 bl 8008ec4 <std>
- 8008fd6: 2301 movs r3, #1
- 8008fd8: 61a3 str r3, [r4, #24]
- 8008fda: e7d1 b.n 8008f80 <__sinit+0xc>
- 8008fdc: 0800a114 .word 0x0800a114
- 8008fe0: 08008f0d .word 0x08008f0d
- 08008fe4 <__sfp>:
- 8008fe4: b5f8 push {r3, r4, r5, r6, r7, lr}
- 8008fe6: 4607 mov r7, r0
- 8008fe8: f7ff ffac bl 8008f44 <__sfp_lock_acquire>
- 8008fec: 4b1e ldr r3, [pc, #120] ; (8009068 <__sfp+0x84>)
- 8008fee: 681e ldr r6, [r3, #0]
- 8008ff0: 69b3 ldr r3, [r6, #24]
- 8008ff2: b913 cbnz r3, 8008ffa <__sfp+0x16>
- 8008ff4: 4630 mov r0, r6
- 8008ff6: f7ff ffbd bl 8008f74 <__sinit>
- 8008ffa: 3648 adds r6, #72 ; 0x48
- 8008ffc: e9d6 3401 ldrd r3, r4, [r6, #4]
- 8009000: 3b01 subs r3, #1
- 8009002: d503 bpl.n 800900c <__sfp+0x28>
- 8009004: 6833 ldr r3, [r6, #0]
- 8009006: b30b cbz r3, 800904c <__sfp+0x68>
- 8009008: 6836 ldr r6, [r6, #0]
- 800900a: e7f7 b.n 8008ffc <__sfp+0x18>
- 800900c: f9b4 500c ldrsh.w r5, [r4, #12]
- 8009010: b9d5 cbnz r5, 8009048 <__sfp+0x64>
- 8009012: 4b16 ldr r3, [pc, #88] ; (800906c <__sfp+0x88>)
- 8009014: f104 0058 add.w r0, r4, #88 ; 0x58
- 8009018: 60e3 str r3, [r4, #12]
- 800901a: 6665 str r5, [r4, #100] ; 0x64
- 800901c: f000 f847 bl 80090ae <__retarget_lock_init_recursive>
- 8009020: f7ff ff96 bl 8008f50 <__sfp_lock_release>
- 8009024: 2208 movs r2, #8
- 8009026: 4629 mov r1, r5
- 8009028: e9c4 5501 strd r5, r5, [r4, #4]
- 800902c: e9c4 5504 strd r5, r5, [r4, #16]
- 8009030: 6025 str r5, [r4, #0]
- 8009032: 61a5 str r5, [r4, #24]
- 8009034: f104 005c add.w r0, r4, #92 ; 0x5c
- 8009038: f7fd fb1e bl 8006678 <memset>
- 800903c: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
- 8009040: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
- 8009044: 4620 mov r0, r4
- 8009046: bdf8 pop {r3, r4, r5, r6, r7, pc}
- 8009048: 3468 adds r4, #104 ; 0x68
- 800904a: e7d9 b.n 8009000 <__sfp+0x1c>
- 800904c: 2104 movs r1, #4
- 800904e: 4638 mov r0, r7
- 8009050: f7ff ff62 bl 8008f18 <__sfmoreglue>
- 8009054: 4604 mov r4, r0
- 8009056: 6030 str r0, [r6, #0]
- 8009058: 2800 cmp r0, #0
- 800905a: d1d5 bne.n 8009008 <__sfp+0x24>
- 800905c: f7ff ff78 bl 8008f50 <__sfp_lock_release>
- 8009060: 230c movs r3, #12
- 8009062: 603b str r3, [r7, #0]
- 8009064: e7ee b.n 8009044 <__sfp+0x60>
- 8009066: bf00 nop
- 8009068: 0800a114 .word 0x0800a114
- 800906c: ffff0001 .word 0xffff0001
- 08009070 <_fwalk_reent>:
- 8009070: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
- 8009074: 4606 mov r6, r0
- 8009076: 4688 mov r8, r1
- 8009078: 2700 movs r7, #0
- 800907a: f100 0448 add.w r4, r0, #72 ; 0x48
- 800907e: e9d4 9501 ldrd r9, r5, [r4, #4]
- 8009082: f1b9 0901 subs.w r9, r9, #1
- 8009086: d505 bpl.n 8009094 <_fwalk_reent+0x24>
- 8009088: 6824 ldr r4, [r4, #0]
- 800908a: 2c00 cmp r4, #0
- 800908c: d1f7 bne.n 800907e <_fwalk_reent+0xe>
- 800908e: 4638 mov r0, r7
- 8009090: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
- 8009094: 89ab ldrh r3, [r5, #12]
- 8009096: 2b01 cmp r3, #1
- 8009098: d907 bls.n 80090aa <_fwalk_reent+0x3a>
- 800909a: f9b5 300e ldrsh.w r3, [r5, #14]
- 800909e: 3301 adds r3, #1
- 80090a0: d003 beq.n 80090aa <_fwalk_reent+0x3a>
- 80090a2: 4629 mov r1, r5
- 80090a4: 4630 mov r0, r6
- 80090a6: 47c0 blx r8
- 80090a8: 4307 orrs r7, r0
- 80090aa: 3568 adds r5, #104 ; 0x68
- 80090ac: e7e9 b.n 8009082 <_fwalk_reent+0x12>
- 080090ae <__retarget_lock_init_recursive>:
- 80090ae: 4770 bx lr
- 080090b0 <__retarget_lock_acquire_recursive>:
- 80090b0: 4770 bx lr
- 080090b2 <__retarget_lock_release_recursive>:
- 80090b2: 4770 bx lr
- 080090b4 <__swhatbuf_r>:
- 80090b4: b570 push {r4, r5, r6, lr}
- 80090b6: 460e mov r6, r1
- 80090b8: f9b1 100e ldrsh.w r1, [r1, #14]
- 80090bc: 4614 mov r4, r2
- 80090be: 2900 cmp r1, #0
- 80090c0: 461d mov r5, r3
- 80090c2: b096 sub sp, #88 ; 0x58
- 80090c4: da07 bge.n 80090d6 <__swhatbuf_r+0x22>
- 80090c6: 2300 movs r3, #0
- 80090c8: 602b str r3, [r5, #0]
- 80090ca: 89b3 ldrh r3, [r6, #12]
- 80090cc: 061a lsls r2, r3, #24
- 80090ce: d410 bmi.n 80090f2 <__swhatbuf_r+0x3e>
- 80090d0: f44f 6380 mov.w r3, #1024 ; 0x400
- 80090d4: e00e b.n 80090f4 <__swhatbuf_r+0x40>
- 80090d6: 466a mov r2, sp
- 80090d8: f000 f902 bl 80092e0 <_fstat_r>
- 80090dc: 2800 cmp r0, #0
- 80090de: dbf2 blt.n 80090c6 <__swhatbuf_r+0x12>
- 80090e0: 9a01 ldr r2, [sp, #4]
- 80090e2: f402 4270 and.w r2, r2, #61440 ; 0xf000
- 80090e6: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
- 80090ea: 425a negs r2, r3
- 80090ec: 415a adcs r2, r3
- 80090ee: 602a str r2, [r5, #0]
- 80090f0: e7ee b.n 80090d0 <__swhatbuf_r+0x1c>
- 80090f2: 2340 movs r3, #64 ; 0x40
- 80090f4: 2000 movs r0, #0
- 80090f6: 6023 str r3, [r4, #0]
- 80090f8: b016 add sp, #88 ; 0x58
- 80090fa: bd70 pop {r4, r5, r6, pc}
- 080090fc <__smakebuf_r>:
- 80090fc: 898b ldrh r3, [r1, #12]
- 80090fe: b573 push {r0, r1, r4, r5, r6, lr}
- 8009100: 079d lsls r5, r3, #30
- 8009102: 4606 mov r6, r0
- 8009104: 460c mov r4, r1
- 8009106: d507 bpl.n 8009118 <__smakebuf_r+0x1c>
- 8009108: f104 0347 add.w r3, r4, #71 ; 0x47
- 800910c: 6023 str r3, [r4, #0]
- 800910e: 6123 str r3, [r4, #16]
- 8009110: 2301 movs r3, #1
- 8009112: 6163 str r3, [r4, #20]
- 8009114: b002 add sp, #8
- 8009116: bd70 pop {r4, r5, r6, pc}
- 8009118: 466a mov r2, sp
- 800911a: ab01 add r3, sp, #4
- 800911c: f7ff ffca bl 80090b4 <__swhatbuf_r>
- 8009120: 9900 ldr r1, [sp, #0]
- 8009122: 4605 mov r5, r0
- 8009124: 4630 mov r0, r6
- 8009126: f7ff f9a3 bl 8008470 <_malloc_r>
- 800912a: b948 cbnz r0, 8009140 <__smakebuf_r+0x44>
- 800912c: f9b4 300c ldrsh.w r3, [r4, #12]
- 8009130: 059a lsls r2, r3, #22
- 8009132: d4ef bmi.n 8009114 <__smakebuf_r+0x18>
- 8009134: f023 0303 bic.w r3, r3, #3
- 8009138: f043 0302 orr.w r3, r3, #2
- 800913c: 81a3 strh r3, [r4, #12]
- 800913e: e7e3 b.n 8009108 <__smakebuf_r+0xc>
- 8009140: 4b0d ldr r3, [pc, #52] ; (8009178 <__smakebuf_r+0x7c>)
- 8009142: 62b3 str r3, [r6, #40] ; 0x28
- 8009144: 89a3 ldrh r3, [r4, #12]
- 8009146: 6020 str r0, [r4, #0]
- 8009148: f043 0380 orr.w r3, r3, #128 ; 0x80
- 800914c: 81a3 strh r3, [r4, #12]
- 800914e: 9b00 ldr r3, [sp, #0]
- 8009150: 6120 str r0, [r4, #16]
- 8009152: 6163 str r3, [r4, #20]
- 8009154: 9b01 ldr r3, [sp, #4]
- 8009156: b15b cbz r3, 8009170 <__smakebuf_r+0x74>
- 8009158: 4630 mov r0, r6
- 800915a: f9b4 100e ldrsh.w r1, [r4, #14]
- 800915e: f000 f8d1 bl 8009304 <_isatty_r>
- 8009162: b128 cbz r0, 8009170 <__smakebuf_r+0x74>
- 8009164: 89a3 ldrh r3, [r4, #12]
- 8009166: f023 0303 bic.w r3, r3, #3
- 800916a: f043 0301 orr.w r3, r3, #1
- 800916e: 81a3 strh r3, [r4, #12]
- 8009170: 89a0 ldrh r0, [r4, #12]
- 8009172: 4305 orrs r5, r0
- 8009174: 81a5 strh r5, [r4, #12]
- 8009176: e7cd b.n 8009114 <__smakebuf_r+0x18>
- 8009178: 08008f0d .word 0x08008f0d
- 0800917c <_malloc_usable_size_r>:
- 800917c: f851 3c04 ldr.w r3, [r1, #-4]
- 8009180: 1f18 subs r0, r3, #4
- 8009182: 2b00 cmp r3, #0
- 8009184: bfbc itt lt
- 8009186: 580b ldrlt r3, [r1, r0]
- 8009188: 18c0 addlt r0, r0, r3
- 800918a: 4770 bx lr
- 0800918c <_raise_r>:
- 800918c: 291f cmp r1, #31
- 800918e: b538 push {r3, r4, r5, lr}
- 8009190: 4604 mov r4, r0
- 8009192: 460d mov r5, r1
- 8009194: d904 bls.n 80091a0 <_raise_r+0x14>
- 8009196: 2316 movs r3, #22
- 8009198: 6003 str r3, [r0, #0]
- 800919a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 800919e: bd38 pop {r3, r4, r5, pc}
- 80091a0: 6c42 ldr r2, [r0, #68] ; 0x44
- 80091a2: b112 cbz r2, 80091aa <_raise_r+0x1e>
- 80091a4: f852 3021 ldr.w r3, [r2, r1, lsl #2]
- 80091a8: b94b cbnz r3, 80091be <_raise_r+0x32>
- 80091aa: 4620 mov r0, r4
- 80091ac: f000 f830 bl 8009210 <_getpid_r>
- 80091b0: 462a mov r2, r5
- 80091b2: 4601 mov r1, r0
- 80091b4: 4620 mov r0, r4
- 80091b6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
- 80091ba: f000 b817 b.w 80091ec <_kill_r>
- 80091be: 2b01 cmp r3, #1
- 80091c0: d00a beq.n 80091d8 <_raise_r+0x4c>
- 80091c2: 1c59 adds r1, r3, #1
- 80091c4: d103 bne.n 80091ce <_raise_r+0x42>
- 80091c6: 2316 movs r3, #22
- 80091c8: 6003 str r3, [r0, #0]
- 80091ca: 2001 movs r0, #1
- 80091cc: e7e7 b.n 800919e <_raise_r+0x12>
- 80091ce: 2400 movs r4, #0
- 80091d0: 4628 mov r0, r5
- 80091d2: f842 4025 str.w r4, [r2, r5, lsl #2]
- 80091d6: 4798 blx r3
- 80091d8: 2000 movs r0, #0
- 80091da: e7e0 b.n 800919e <_raise_r+0x12>
- 080091dc <raise>:
- 80091dc: 4b02 ldr r3, [pc, #8] ; (80091e8 <raise+0xc>)
- 80091de: 4601 mov r1, r0
- 80091e0: 6818 ldr r0, [r3, #0]
- 80091e2: f7ff bfd3 b.w 800918c <_raise_r>
- 80091e6: bf00 nop
- 80091e8: 20000014 .word 0x20000014
- 080091ec <_kill_r>:
- 80091ec: b538 push {r3, r4, r5, lr}
- 80091ee: 2300 movs r3, #0
- 80091f0: 4d06 ldr r5, [pc, #24] ; (800920c <_kill_r+0x20>)
- 80091f2: 4604 mov r4, r0
- 80091f4: 4608 mov r0, r1
- 80091f6: 4611 mov r1, r2
- 80091f8: 602b str r3, [r5, #0]
- 80091fa: f7f8 fea6 bl 8001f4a <_kill>
- 80091fe: 1c43 adds r3, r0, #1
- 8009200: d102 bne.n 8009208 <_kill_r+0x1c>
- 8009202: 682b ldr r3, [r5, #0]
- 8009204: b103 cbz r3, 8009208 <_kill_r+0x1c>
- 8009206: 6023 str r3, [r4, #0]
- 8009208: bd38 pop {r3, r4, r5, pc}
- 800920a: bf00 nop
- 800920c: 200006a0 .word 0x200006a0
- 08009210 <_getpid_r>:
- 8009210: f7f8 be94 b.w 8001f3c <_getpid>
- 08009214 <__sread>:
- 8009214: b510 push {r4, lr}
- 8009216: 460c mov r4, r1
- 8009218: f9b1 100e ldrsh.w r1, [r1, #14]
- 800921c: f000 f894 bl 8009348 <_read_r>
- 8009220: 2800 cmp r0, #0
- 8009222: bfab itete ge
- 8009224: 6d63 ldrge r3, [r4, #84] ; 0x54
- 8009226: 89a3 ldrhlt r3, [r4, #12]
- 8009228: 181b addge r3, r3, r0
- 800922a: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
- 800922e: bfac ite ge
- 8009230: 6563 strge r3, [r4, #84] ; 0x54
- 8009232: 81a3 strhlt r3, [r4, #12]
- 8009234: bd10 pop {r4, pc}
- 08009236 <__swrite>:
- 8009236: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
- 800923a: 461f mov r7, r3
- 800923c: 898b ldrh r3, [r1, #12]
- 800923e: 4605 mov r5, r0
- 8009240: 05db lsls r3, r3, #23
- 8009242: 460c mov r4, r1
- 8009244: 4616 mov r6, r2
- 8009246: d505 bpl.n 8009254 <__swrite+0x1e>
- 8009248: 2302 movs r3, #2
- 800924a: 2200 movs r2, #0
- 800924c: f9b1 100e ldrsh.w r1, [r1, #14]
- 8009250: f000 f868 bl 8009324 <_lseek_r>
- 8009254: 89a3 ldrh r3, [r4, #12]
- 8009256: 4632 mov r2, r6
- 8009258: f423 5380 bic.w r3, r3, #4096 ; 0x1000
- 800925c: 81a3 strh r3, [r4, #12]
- 800925e: 4628 mov r0, r5
- 8009260: 463b mov r3, r7
- 8009262: f9b4 100e ldrsh.w r1, [r4, #14]
- 8009266: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
- 800926a: f000 b817 b.w 800929c <_write_r>
- 0800926e <__sseek>:
- 800926e: b510 push {r4, lr}
- 8009270: 460c mov r4, r1
- 8009272: f9b1 100e ldrsh.w r1, [r1, #14]
- 8009276: f000 f855 bl 8009324 <_lseek_r>
- 800927a: 1c43 adds r3, r0, #1
- 800927c: 89a3 ldrh r3, [r4, #12]
- 800927e: bf15 itete ne
- 8009280: 6560 strne r0, [r4, #84] ; 0x54
- 8009282: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
- 8009286: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
- 800928a: 81a3 strheq r3, [r4, #12]
- 800928c: bf18 it ne
- 800928e: 81a3 strhne r3, [r4, #12]
- 8009290: bd10 pop {r4, pc}
- 08009292 <__sclose>:
- 8009292: f9b1 100e ldrsh.w r1, [r1, #14]
- 8009296: f000 b813 b.w 80092c0 <_close_r>
- ...
- 0800929c <_write_r>:
- 800929c: b538 push {r3, r4, r5, lr}
- 800929e: 4604 mov r4, r0
- 80092a0: 4608 mov r0, r1
- 80092a2: 4611 mov r1, r2
- 80092a4: 2200 movs r2, #0
- 80092a6: 4d05 ldr r5, [pc, #20] ; (80092bc <_write_r+0x20>)
- 80092a8: 602a str r2, [r5, #0]
- 80092aa: 461a mov r2, r3
- 80092ac: f7f8 fe84 bl 8001fb8 <_write>
- 80092b0: 1c43 adds r3, r0, #1
- 80092b2: d102 bne.n 80092ba <_write_r+0x1e>
- 80092b4: 682b ldr r3, [r5, #0]
- 80092b6: b103 cbz r3, 80092ba <_write_r+0x1e>
- 80092b8: 6023 str r3, [r4, #0]
- 80092ba: bd38 pop {r3, r4, r5, pc}
- 80092bc: 200006a0 .word 0x200006a0
- 080092c0 <_close_r>:
- 80092c0: b538 push {r3, r4, r5, lr}
- 80092c2: 2300 movs r3, #0
- 80092c4: 4d05 ldr r5, [pc, #20] ; (80092dc <_close_r+0x1c>)
- 80092c6: 4604 mov r4, r0
- 80092c8: 4608 mov r0, r1
- 80092ca: 602b str r3, [r5, #0]
- 80092cc: f7f8 fe90 bl 8001ff0 <_close>
- 80092d0: 1c43 adds r3, r0, #1
- 80092d2: d102 bne.n 80092da <_close_r+0x1a>
- 80092d4: 682b ldr r3, [r5, #0]
- 80092d6: b103 cbz r3, 80092da <_close_r+0x1a>
- 80092d8: 6023 str r3, [r4, #0]
- 80092da: bd38 pop {r3, r4, r5, pc}
- 80092dc: 200006a0 .word 0x200006a0
- 080092e0 <_fstat_r>:
- 80092e0: b538 push {r3, r4, r5, lr}
- 80092e2: 2300 movs r3, #0
- 80092e4: 4d06 ldr r5, [pc, #24] ; (8009300 <_fstat_r+0x20>)
- 80092e6: 4604 mov r4, r0
- 80092e8: 4608 mov r0, r1
- 80092ea: 4611 mov r1, r2
- 80092ec: 602b str r3, [r5, #0]
- 80092ee: f7f8 fe8a bl 8002006 <_fstat>
- 80092f2: 1c43 adds r3, r0, #1
- 80092f4: d102 bne.n 80092fc <_fstat_r+0x1c>
- 80092f6: 682b ldr r3, [r5, #0]
- 80092f8: b103 cbz r3, 80092fc <_fstat_r+0x1c>
- 80092fa: 6023 str r3, [r4, #0]
- 80092fc: bd38 pop {r3, r4, r5, pc}
- 80092fe: bf00 nop
- 8009300: 200006a0 .word 0x200006a0
- 08009304 <_isatty_r>:
- 8009304: b538 push {r3, r4, r5, lr}
- 8009306: 2300 movs r3, #0
- 8009308: 4d05 ldr r5, [pc, #20] ; (8009320 <_isatty_r+0x1c>)
- 800930a: 4604 mov r4, r0
- 800930c: 4608 mov r0, r1
- 800930e: 602b str r3, [r5, #0]
- 8009310: f7f8 fe88 bl 8002024 <_isatty>
- 8009314: 1c43 adds r3, r0, #1
- 8009316: d102 bne.n 800931e <_isatty_r+0x1a>
- 8009318: 682b ldr r3, [r5, #0]
- 800931a: b103 cbz r3, 800931e <_isatty_r+0x1a>
- 800931c: 6023 str r3, [r4, #0]
- 800931e: bd38 pop {r3, r4, r5, pc}
- 8009320: 200006a0 .word 0x200006a0
- 08009324 <_lseek_r>:
- 8009324: b538 push {r3, r4, r5, lr}
- 8009326: 4604 mov r4, r0
- 8009328: 4608 mov r0, r1
- 800932a: 4611 mov r1, r2
- 800932c: 2200 movs r2, #0
- 800932e: 4d05 ldr r5, [pc, #20] ; (8009344 <_lseek_r+0x20>)
- 8009330: 602a str r2, [r5, #0]
- 8009332: 461a mov r2, r3
- 8009334: f7f8 fe80 bl 8002038 <_lseek>
- 8009338: 1c43 adds r3, r0, #1
- 800933a: d102 bne.n 8009342 <_lseek_r+0x1e>
- 800933c: 682b ldr r3, [r5, #0]
- 800933e: b103 cbz r3, 8009342 <_lseek_r+0x1e>
- 8009340: 6023 str r3, [r4, #0]
- 8009342: bd38 pop {r3, r4, r5, pc}
- 8009344: 200006a0 .word 0x200006a0
- 08009348 <_read_r>:
- 8009348: b538 push {r3, r4, r5, lr}
- 800934a: 4604 mov r4, r0
- 800934c: 4608 mov r0, r1
- 800934e: 4611 mov r1, r2
- 8009350: 2200 movs r2, #0
- 8009352: 4d05 ldr r5, [pc, #20] ; (8009368 <_read_r+0x20>)
- 8009354: 602a str r2, [r5, #0]
- 8009356: 461a mov r2, r3
- 8009358: f7f8 fe11 bl 8001f7e <_read>
- 800935c: 1c43 adds r3, r0, #1
- 800935e: d102 bne.n 8009366 <_read_r+0x1e>
- 8009360: 682b ldr r3, [r5, #0]
- 8009362: b103 cbz r3, 8009366 <_read_r+0x1e>
- 8009364: 6023 str r3, [r4, #0]
- 8009366: bd38 pop {r3, r4, r5, pc}
- 8009368: 200006a0 .word 0x200006a0
- 0800936c <_init>:
- 800936c: b5f8 push {r3, r4, r5, r6, r7, lr}
- 800936e: bf00 nop
- 8009370: bcf8 pop {r3, r4, r5, r6, r7}
- 8009372: bc08 pop {r3}
- 8009374: 469e mov lr, r3
- 8009376: 4770 bx lr
- 08009378 <_fini>:
- 8009378: b5f8 push {r3, r4, r5, r6, r7, lr}
- 800937a: bf00 nop
- 800937c: bcf8 pop {r3, r4, r5, r6, r7}
- 800937e: bc08 pop {r3}
- 8009380: 469e mov lr, r3
- 8009382: 4770 bx lr
|