STM32F103_RGB_Controller.list 323 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049
  1. STM32F103_RGB_Controller.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 000001e4 08004000 08004000 00004000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 000034b8 080041e4 080041e4 000041e4 2**2
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 000001a4 0800769c 0800769c 0000769c 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .init_array 00000004 08007840 08007840 00007840 2**2
  11. CONTENTS, ALLOC, LOAD, DATA
  12. 4 .fini_array 00000004 08007844 08007844 00007844 2**2
  13. CONTENTS, ALLOC, LOAD, DATA
  14. 5 .data 00000070 20000000 08007848 00010000 2**2
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .bss 000003e4 20000070 080078b8 00010070 2**3
  17. ALLOC
  18. 7 ._user_heap_stack 00000600 20000454 080078b8 00010454 2**0
  19. ALLOC
  20. 8 .ARM.attributes 00000029 00000000 00000000 00010070 2**0
  21. CONTENTS, READONLY
  22. 9 .debug_info 0001bc8c 00000000 00000000 00010099 2**0
  23. CONTENTS, READONLY, DEBUGGING
  24. 10 .debug_abbrev 0000358f 00000000 00000000 0002bd25 2**0
  25. CONTENTS, READONLY, DEBUGGING
  26. 11 .debug_loc 00009a54 00000000 00000000 0002f2b4 2**0
  27. CONTENTS, READONLY, DEBUGGING
  28. 12 .debug_aranges 00000bc8 00000000 00000000 00038d08 2**3
  29. CONTENTS, READONLY, DEBUGGING
  30. 13 .debug_ranges 00001298 00000000 00000000 000398d0 2**3
  31. CONTENTS, READONLY, DEBUGGING
  32. 14 .debug_line 00007fc1 00000000 00000000 0003ab68 2**0
  33. CONTENTS, READONLY, DEBUGGING
  34. 15 .debug_str 00004944 00000000 00000000 00042b29 2**0
  35. CONTENTS, READONLY, DEBUGGING
  36. 16 .comment 0000007c 00000000 00000000 0004746d 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_frame 00002c3c 00000000 00000000 000474ec 2**2
  39. CONTENTS, READONLY, DEBUGGING
  40. 18 .stab 00000084 00000000 00000000 0004a128 2**2
  41. CONTENTS, READONLY, DEBUGGING
  42. 19 .stabstr 00000117 00000000 00000000 0004a1ac 2**0
  43. CONTENTS, READONLY, DEBUGGING
  44. Disassembly of section .text:
  45. 080041e4 <__do_global_dtors_aux>:
  46. 80041e4: b510 push {r4, lr}
  47. 80041e6: 4c05 ldr r4, [pc, #20] ; (80041fc <__do_global_dtors_aux+0x18>)
  48. 80041e8: 7823 ldrb r3, [r4, #0]
  49. 80041ea: b933 cbnz r3, 80041fa <__do_global_dtors_aux+0x16>
  50. 80041ec: 4b04 ldr r3, [pc, #16] ; (8004200 <__do_global_dtors_aux+0x1c>)
  51. 80041ee: b113 cbz r3, 80041f6 <__do_global_dtors_aux+0x12>
  52. 80041f0: 4804 ldr r0, [pc, #16] ; (8004204 <__do_global_dtors_aux+0x20>)
  53. 80041f2: f3af 8000 nop.w
  54. 80041f6: 2301 movs r3, #1
  55. 80041f8: 7023 strb r3, [r4, #0]
  56. 80041fa: bd10 pop {r4, pc}
  57. 80041fc: 20000070 .word 0x20000070
  58. 8004200: 00000000 .word 0x00000000
  59. 8004204: 08007684 .word 0x08007684
  60. 08004208 <frame_dummy>:
  61. 8004208: b508 push {r3, lr}
  62. 800420a: 4b03 ldr r3, [pc, #12] ; (8004218 <frame_dummy+0x10>)
  63. 800420c: b11b cbz r3, 8004216 <frame_dummy+0xe>
  64. 800420e: 4903 ldr r1, [pc, #12] ; (800421c <frame_dummy+0x14>)
  65. 8004210: 4803 ldr r0, [pc, #12] ; (8004220 <frame_dummy+0x18>)
  66. 8004212: f3af 8000 nop.w
  67. 8004216: bd08 pop {r3, pc}
  68. 8004218: 00000000 .word 0x00000000
  69. 800421c: 20000074 .word 0x20000074
  70. 8004220: 08007684 .word 0x08007684
  71. 08004224 <__aeabi_llsr>:
  72. 8004224: 40d0 lsrs r0, r2
  73. 8004226: 1c0b adds r3, r1, #0
  74. 8004228: 40d1 lsrs r1, r2
  75. 800422a: 469c mov ip, r3
  76. 800422c: 3a20 subs r2, #32
  77. 800422e: 40d3 lsrs r3, r2
  78. 8004230: 4318 orrs r0, r3
  79. 8004232: 4252 negs r2, r2
  80. 8004234: 4663 mov r3, ip
  81. 8004236: 4093 lsls r3, r2
  82. 8004238: 4318 orrs r0, r3
  83. 800423a: 4770 bx lr
  84. 0800423c <HAL_InitTick>:
  85. * implementation in user file.
  86. * @param TickPriority Tick interrupt priority.
  87. * @retval HAL status
  88. */
  89. __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  90. {
  91. 800423c: b538 push {r3, r4, r5, lr}
  92. /* Configure the SysTick to have interrupt in 1ms time basis*/
  93. if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U)
  94. 800423e: 4b0e ldr r3, [pc, #56] ; (8004278 <HAL_InitTick+0x3c>)
  95. {
  96. 8004240: 4605 mov r5, r0
  97. if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U)
  98. 8004242: 7818 ldrb r0, [r3, #0]
  99. 8004244: f44f 737a mov.w r3, #1000 ; 0x3e8
  100. 8004248: fbb3 f3f0 udiv r3, r3, r0
  101. 800424c: 4a0b ldr r2, [pc, #44] ; (800427c <HAL_InitTick+0x40>)
  102. 800424e: 6810 ldr r0, [r2, #0]
  103. 8004250: fbb0 f0f3 udiv r0, r0, r3
  104. 8004254: f000 f89e bl 8004394 <HAL_SYSTICK_Config>
  105. 8004258: 4604 mov r4, r0
  106. 800425a: b958 cbnz r0, 8004274 <HAL_InitTick+0x38>
  107. {
  108. return HAL_ERROR;
  109. }
  110. /* Configure the SysTick IRQ priority */
  111. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  112. 800425c: 2d0f cmp r5, #15
  113. 800425e: d809 bhi.n 8004274 <HAL_InitTick+0x38>
  114. {
  115. HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
  116. 8004260: 4602 mov r2, r0
  117. 8004262: 4629 mov r1, r5
  118. 8004264: f04f 30ff mov.w r0, #4294967295
  119. 8004268: f000 f854 bl 8004314 <HAL_NVIC_SetPriority>
  120. uwTickPrio = TickPriority;
  121. 800426c: 4b04 ldr r3, [pc, #16] ; (8004280 <HAL_InitTick+0x44>)
  122. 800426e: 4620 mov r0, r4
  123. 8004270: 601d str r5, [r3, #0]
  124. 8004272: bd38 pop {r3, r4, r5, pc}
  125. return HAL_ERROR;
  126. 8004274: 2001 movs r0, #1
  127. return HAL_ERROR;
  128. }
  129. /* Return function status */
  130. return HAL_OK;
  131. }
  132. 8004276: bd38 pop {r3, r4, r5, pc}
  133. 8004278: 20000000 .word 0x20000000
  134. 800427c: 20000008 .word 0x20000008
  135. 8004280: 20000004 .word 0x20000004
  136. 08004284 <HAL_Init>:
  137. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  138. 8004284: 4a07 ldr r2, [pc, #28] ; (80042a4 <HAL_Init+0x20>)
  139. {
  140. 8004286: b508 push {r3, lr}
  141. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  142. 8004288: 6813 ldr r3, [r2, #0]
  143. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  144. 800428a: 2003 movs r0, #3
  145. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  146. 800428c: f043 0310 orr.w r3, r3, #16
  147. 8004290: 6013 str r3, [r2, #0]
  148. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  149. 8004292: f000 f82d bl 80042f0 <HAL_NVIC_SetPriorityGrouping>
  150. HAL_InitTick(TICK_INT_PRIORITY);
  151. 8004296: 2000 movs r0, #0
  152. 8004298: f7ff ffd0 bl 800423c <HAL_InitTick>
  153. HAL_MspInit();
  154. 800429c: f001 ffd2 bl 8006244 <HAL_MspInit>
  155. }
  156. 80042a0: 2000 movs r0, #0
  157. 80042a2: bd08 pop {r3, pc}
  158. 80042a4: 40022000 .word 0x40022000
  159. 080042a8 <HAL_IncTick>:
  160. * implementations in user file.
  161. * @retval None
  162. */
  163. __weak void HAL_IncTick(void)
  164. {
  165. uwTick += uwTickFreq;
  166. 80042a8: 4a03 ldr r2, [pc, #12] ; (80042b8 <HAL_IncTick+0x10>)
  167. 80042aa: 4b04 ldr r3, [pc, #16] ; (80042bc <HAL_IncTick+0x14>)
  168. 80042ac: 6811 ldr r1, [r2, #0]
  169. 80042ae: 781b ldrb r3, [r3, #0]
  170. 80042b0: 440b add r3, r1
  171. 80042b2: 6013 str r3, [r2, #0]
  172. 80042b4: 4770 bx lr
  173. 80042b6: bf00 nop
  174. 80042b8: 200002b8 .word 0x200002b8
  175. 80042bc: 20000000 .word 0x20000000
  176. 080042c0 <HAL_GetTick>:
  177. * implementations in user file.
  178. * @retval tick value
  179. */
  180. __weak uint32_t HAL_GetTick(void)
  181. {
  182. return uwTick;
  183. 80042c0: 4b01 ldr r3, [pc, #4] ; (80042c8 <HAL_GetTick+0x8>)
  184. 80042c2: 6818 ldr r0, [r3, #0]
  185. }
  186. 80042c4: 4770 bx lr
  187. 80042c6: bf00 nop
  188. 80042c8: 200002b8 .word 0x200002b8
  189. 080042cc <HAL_Delay>:
  190. * implementations in user file.
  191. * @param Delay specifies the delay time length, in milliseconds.
  192. * @retval None
  193. */
  194. __weak void HAL_Delay(uint32_t Delay)
  195. {
  196. 80042cc: b538 push {r3, r4, r5, lr}
  197. 80042ce: 4604 mov r4, r0
  198. uint32_t tickstart = HAL_GetTick();
  199. 80042d0: f7ff fff6 bl 80042c0 <HAL_GetTick>
  200. 80042d4: 4605 mov r5, r0
  201. uint32_t wait = Delay;
  202. /* Add a freq to guarantee minimum wait */
  203. if (wait < HAL_MAX_DELAY)
  204. 80042d6: 1c63 adds r3, r4, #1
  205. {
  206. wait += (uint32_t)(uwTickFreq);
  207. 80042d8: bf1e ittt ne
  208. 80042da: 4b04 ldrne r3, [pc, #16] ; (80042ec <HAL_Delay+0x20>)
  209. 80042dc: 781b ldrbne r3, [r3, #0]
  210. 80042de: 18e4 addne r4, r4, r3
  211. }
  212. while ((HAL_GetTick() - tickstart) < wait)
  213. 80042e0: f7ff ffee bl 80042c0 <HAL_GetTick>
  214. 80042e4: 1b40 subs r0, r0, r5
  215. 80042e6: 4284 cmp r4, r0
  216. 80042e8: d8fa bhi.n 80042e0 <HAL_Delay+0x14>
  217. {
  218. }
  219. }
  220. 80042ea: bd38 pop {r3, r4, r5, pc}
  221. 80042ec: 20000000 .word 0x20000000
  222. 080042f0 <HAL_NVIC_SetPriorityGrouping>:
  223. __STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  224. {
  225. uint32_t reg_value;
  226. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  227. reg_value = SCB->AIRCR; /* read old register configuration */
  228. 80042f0: 4a07 ldr r2, [pc, #28] ; (8004310 <HAL_NVIC_SetPriorityGrouping+0x20>)
  229. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  230. reg_value = (reg_value |
  231. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  232. (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */
  233. 80042f2: 0200 lsls r0, r0, #8
  234. reg_value = SCB->AIRCR; /* read old register configuration */
  235. 80042f4: 68d3 ldr r3, [r2, #12]
  236. (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */
  237. 80042f6: f400 60e0 and.w r0, r0, #1792 ; 0x700
  238. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  239. 80042fa: f423 63e0 bic.w r3, r3, #1792 ; 0x700
  240. 80042fe: 041b lsls r3, r3, #16
  241. 8004300: 0c1b lsrs r3, r3, #16
  242. 8004302: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  243. 8004306: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  244. reg_value = (reg_value |
  245. 800430a: 4303 orrs r3, r0
  246. SCB->AIRCR = reg_value;
  247. 800430c: 60d3 str r3, [r2, #12]
  248. 800430e: 4770 bx lr
  249. 8004310: e000ed00 .word 0xe000ed00
  250. 08004314 <HAL_NVIC_SetPriority>:
  251. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  252. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  253. */
  254. __STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
  255. {
  256. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  257. 8004314: 4b17 ldr r3, [pc, #92] ; (8004374 <HAL_NVIC_SetPriority+0x60>)
  258. * This parameter can be a value between 0 and 15
  259. * A lower priority value indicates a higher priority.
  260. * @retval None
  261. */
  262. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  263. {
  264. 8004316: b530 push {r4, r5, lr}
  265. 8004318: 68dc ldr r4, [r3, #12]
  266. 800431a: f3c4 2402 ubfx r4, r4, #8, #3
  267. {
  268. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  269. uint32_t PreemptPriorityBits;
  270. uint32_t SubPriorityBits;
  271. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  272. 800431e: f1c4 0307 rsb r3, r4, #7
  273. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  274. 8004322: 1d25 adds r5, r4, #4
  275. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  276. 8004324: 2b04 cmp r3, #4
  277. 8004326: bf28 it cs
  278. 8004328: 2304 movcs r3, #4
  279. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  280. 800432a: 2d06 cmp r5, #6
  281. return (
  282. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  283. 800432c: f04f 0501 mov.w r5, #1
  284. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  285. 8004330: bf98 it ls
  286. 8004332: 2400 movls r4, #0
  287. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  288. 8004334: fa05 f303 lsl.w r3, r5, r3
  289. 8004338: f103 33ff add.w r3, r3, #4294967295
  290. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  291. 800433c: bf88 it hi
  292. 800433e: 3c03 subhi r4, #3
  293. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  294. 8004340: 4019 ands r1, r3
  295. 8004342: 40a1 lsls r1, r4
  296. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  297. 8004344: fa05 f404 lsl.w r4, r5, r4
  298. 8004348: 3c01 subs r4, #1
  299. 800434a: 4022 ands r2, r4
  300. if ((int32_t)(IRQn) < 0)
  301. 800434c: 2800 cmp r0, #0
  302. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  303. 800434e: ea42 0201 orr.w r2, r2, r1
  304. 8004352: ea4f 1202 mov.w r2, r2, lsl #4
  305. NVIC->IP[((uint32_t)(int32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  306. 8004356: bfaf iteee ge
  307. 8004358: f100 4060 addge.w r0, r0, #3758096384 ; 0xe0000000
  308. SCB->SHP[(((uint32_t)(int32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  309. 800435c: 4b06 ldrlt r3, [pc, #24] ; (8004378 <HAL_NVIC_SetPriority+0x64>)
  310. 800435e: f000 000f andlt.w r0, r0, #15
  311. 8004362: b2d2 uxtblt r2, r2
  312. NVIC->IP[((uint32_t)(int32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  313. 8004364: bfa5 ittet ge
  314. 8004366: b2d2 uxtbge r2, r2
  315. 8004368: f500 4061 addge.w r0, r0, #57600 ; 0xe100
  316. SCB->SHP[(((uint32_t)(int32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  317. 800436c: 541a strblt r2, [r3, r0]
  318. NVIC->IP[((uint32_t)(int32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  319. 800436e: f880 2300 strbge.w r2, [r0, #768] ; 0x300
  320. 8004372: bd30 pop {r4, r5, pc}
  321. 8004374: e000ed00 .word 0xe000ed00
  322. 8004378: e000ed14 .word 0xe000ed14
  323. 0800437c <HAL_NVIC_EnableIRQ>:
  324. NVIC->ISER[(((uint32_t)(int32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL));
  325. 800437c: 2301 movs r3, #1
  326. 800437e: 0942 lsrs r2, r0, #5
  327. 8004380: f000 001f and.w r0, r0, #31
  328. 8004384: fa03 f000 lsl.w r0, r3, r0
  329. 8004388: 4b01 ldr r3, [pc, #4] ; (8004390 <HAL_NVIC_EnableIRQ+0x14>)
  330. 800438a: f843 0022 str.w r0, [r3, r2, lsl #2]
  331. 800438e: 4770 bx lr
  332. 8004390: e000e100 .word 0xe000e100
  333. 08004394 <HAL_SYSTICK_Config>:
  334. function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
  335. must contain a vendor-specific implementation of this function.
  336. */
  337. __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
  338. {
  339. if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
  340. 8004394: 3801 subs r0, #1
  341. 8004396: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000
  342. 800439a: d20a bcs.n 80043b2 <HAL_SYSTICK_Config+0x1e>
  343. SCB->SHP[(((uint32_t)(int32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  344. 800439c: 21f0 movs r1, #240 ; 0xf0
  345. {
  346. return (1UL); /* Reload value impossible */
  347. }
  348. SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
  349. 800439e: 4b06 ldr r3, [pc, #24] ; (80043b8 <HAL_SYSTICK_Config+0x24>)
  350. SCB->SHP[(((uint32_t)(int32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  351. 80043a0: 4a06 ldr r2, [pc, #24] ; (80043bc <HAL_SYSTICK_Config+0x28>)
  352. SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
  353. 80043a2: 6058 str r0, [r3, #4]
  354. SCB->SHP[(((uint32_t)(int32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  355. 80043a4: f882 1023 strb.w r1, [r2, #35] ; 0x23
  356. NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
  357. SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
  358. 80043a8: 2000 movs r0, #0
  359. SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
  360. 80043aa: 2207 movs r2, #7
  361. SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
  362. 80043ac: 6098 str r0, [r3, #8]
  363. SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
  364. 80043ae: 601a str r2, [r3, #0]
  365. 80043b0: 4770 bx lr
  366. return (1UL); /* Reload value impossible */
  367. 80043b2: 2001 movs r0, #1
  368. * - 1 Function failed.
  369. */
  370. uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
  371. {
  372. return SysTick_Config(TicksNumb);
  373. }
  374. 80043b4: 4770 bx lr
  375. 80043b6: bf00 nop
  376. 80043b8: e000e010 .word 0xe000e010
  377. 80043bc: e000ed00 .word 0xe000ed00
  378. 080043c0 <HAL_DMA_Abort_IT>:
  379. */
  380. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  381. {
  382. HAL_StatusTypeDef status = HAL_OK;
  383. if(HAL_DMA_STATE_BUSY != hdma->State)
  384. 80043c0: f890 3021 ldrb.w r3, [r0, #33] ; 0x21
  385. {
  386. 80043c4: b510 push {r4, lr}
  387. if(HAL_DMA_STATE_BUSY != hdma->State)
  388. 80043c6: 2b02 cmp r3, #2
  389. 80043c8: d003 beq.n 80043d2 <HAL_DMA_Abort_IT+0x12>
  390. {
  391. /* no transfer ongoing */
  392. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  393. 80043ca: 2304 movs r3, #4
  394. 80043cc: 6383 str r3, [r0, #56] ; 0x38
  395. status = HAL_ERROR;
  396. 80043ce: 2001 movs r0, #1
  397. 80043d0: bd10 pop {r4, pc}
  398. }
  399. else
  400. {
  401. /* Disable DMA IT */
  402. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  403. 80043d2: 6803 ldr r3, [r0, #0]
  404. 80043d4: 681a ldr r2, [r3, #0]
  405. 80043d6: f022 020e bic.w r2, r2, #14
  406. 80043da: 601a str r2, [r3, #0]
  407. /* Disable the channel */
  408. __HAL_DMA_DISABLE(hdma);
  409. 80043dc: 681a ldr r2, [r3, #0]
  410. 80043de: f022 0201 bic.w r2, r2, #1
  411. 80043e2: 601a str r2, [r3, #0]
  412. /* Clear all flags */
  413. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma));
  414. 80043e4: 4a29 ldr r2, [pc, #164] ; (800448c <HAL_DMA_Abort_IT+0xcc>)
  415. 80043e6: 4293 cmp r3, r2
  416. 80043e8: d924 bls.n 8004434 <HAL_DMA_Abort_IT+0x74>
  417. 80043ea: f502 7262 add.w r2, r2, #904 ; 0x388
  418. 80043ee: 4293 cmp r3, r2
  419. 80043f0: d019 beq.n 8004426 <HAL_DMA_Abort_IT+0x66>
  420. 80043f2: 3214 adds r2, #20
  421. 80043f4: 4293 cmp r3, r2
  422. 80043f6: d018 beq.n 800442a <HAL_DMA_Abort_IT+0x6a>
  423. 80043f8: 3214 adds r2, #20
  424. 80043fa: 4293 cmp r3, r2
  425. 80043fc: d017 beq.n 800442e <HAL_DMA_Abort_IT+0x6e>
  426. 80043fe: 3214 adds r2, #20
  427. 8004400: 4293 cmp r3, r2
  428. 8004402: bf0c ite eq
  429. 8004404: f44f 5380 moveq.w r3, #4096 ; 0x1000
  430. 8004408: f44f 3380 movne.w r3, #65536 ; 0x10000
  431. 800440c: 4a20 ldr r2, [pc, #128] ; (8004490 <HAL_DMA_Abort_IT+0xd0>)
  432. 800440e: 6053 str r3, [r2, #4]
  433. /* Change the DMA state */
  434. hdma->State = HAL_DMA_STATE_READY;
  435. 8004410: 2301 movs r3, #1
  436. /* Process Unlocked */
  437. __HAL_UNLOCK(hdma);
  438. 8004412: 2400 movs r4, #0
  439. hdma->State = HAL_DMA_STATE_READY;
  440. 8004414: f880 3021 strb.w r3, [r0, #33] ; 0x21
  441. /* Call User Abort callback */
  442. if(hdma->XferAbortCallback != NULL)
  443. 8004418: 6b43 ldr r3, [r0, #52] ; 0x34
  444. __HAL_UNLOCK(hdma);
  445. 800441a: f880 4020 strb.w r4, [r0, #32]
  446. if(hdma->XferAbortCallback != NULL)
  447. 800441e: b39b cbz r3, 8004488 <HAL_DMA_Abort_IT+0xc8>
  448. {
  449. hdma->XferAbortCallback(hdma);
  450. 8004420: 4798 blx r3
  451. HAL_StatusTypeDef status = HAL_OK;
  452. 8004422: 4620 mov r0, r4
  453. 8004424: bd10 pop {r4, pc}
  454. __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma));
  455. 8004426: 2301 movs r3, #1
  456. 8004428: e7f0 b.n 800440c <HAL_DMA_Abort_IT+0x4c>
  457. 800442a: 2310 movs r3, #16
  458. 800442c: e7ee b.n 800440c <HAL_DMA_Abort_IT+0x4c>
  459. 800442e: f44f 7380 mov.w r3, #256 ; 0x100
  460. 8004432: e7eb b.n 800440c <HAL_DMA_Abort_IT+0x4c>
  461. 8004434: 4917 ldr r1, [pc, #92] ; (8004494 <HAL_DMA_Abort_IT+0xd4>)
  462. 8004436: 428b cmp r3, r1
  463. 8004438: d016 beq.n 8004468 <HAL_DMA_Abort_IT+0xa8>
  464. 800443a: 3114 adds r1, #20
  465. 800443c: 428b cmp r3, r1
  466. 800443e: d015 beq.n 800446c <HAL_DMA_Abort_IT+0xac>
  467. 8004440: 3114 adds r1, #20
  468. 8004442: 428b cmp r3, r1
  469. 8004444: d014 beq.n 8004470 <HAL_DMA_Abort_IT+0xb0>
  470. 8004446: 3114 adds r1, #20
  471. 8004448: 428b cmp r3, r1
  472. 800444a: d014 beq.n 8004476 <HAL_DMA_Abort_IT+0xb6>
  473. 800444c: 3114 adds r1, #20
  474. 800444e: 428b cmp r3, r1
  475. 8004450: d014 beq.n 800447c <HAL_DMA_Abort_IT+0xbc>
  476. 8004452: 3114 adds r1, #20
  477. 8004454: 428b cmp r3, r1
  478. 8004456: d014 beq.n 8004482 <HAL_DMA_Abort_IT+0xc2>
  479. 8004458: 4293 cmp r3, r2
  480. 800445a: bf14 ite ne
  481. 800445c: f44f 3380 movne.w r3, #65536 ; 0x10000
  482. 8004460: f04f 7380 moveq.w r3, #16777216 ; 0x1000000
  483. 8004464: 4a0c ldr r2, [pc, #48] ; (8004498 <HAL_DMA_Abort_IT+0xd8>)
  484. 8004466: e7d2 b.n 800440e <HAL_DMA_Abort_IT+0x4e>
  485. 8004468: 2301 movs r3, #1
  486. 800446a: e7fb b.n 8004464 <HAL_DMA_Abort_IT+0xa4>
  487. 800446c: 2310 movs r3, #16
  488. 800446e: e7f9 b.n 8004464 <HAL_DMA_Abort_IT+0xa4>
  489. 8004470: f44f 7380 mov.w r3, #256 ; 0x100
  490. 8004474: e7f6 b.n 8004464 <HAL_DMA_Abort_IT+0xa4>
  491. 8004476: f44f 5380 mov.w r3, #4096 ; 0x1000
  492. 800447a: e7f3 b.n 8004464 <HAL_DMA_Abort_IT+0xa4>
  493. 800447c: f44f 3380 mov.w r3, #65536 ; 0x10000
  494. 8004480: e7f0 b.n 8004464 <HAL_DMA_Abort_IT+0xa4>
  495. 8004482: f44f 1380 mov.w r3, #1048576 ; 0x100000
  496. 8004486: e7ed b.n 8004464 <HAL_DMA_Abort_IT+0xa4>
  497. HAL_StatusTypeDef status = HAL_OK;
  498. 8004488: 4618 mov r0, r3
  499. }
  500. }
  501. return status;
  502. }
  503. 800448a: bd10 pop {r4, pc}
  504. 800448c: 40020080 .word 0x40020080
  505. 8004490: 40020400 .word 0x40020400
  506. 8004494: 40020008 .word 0x40020008
  507. 8004498: 40020000 .word 0x40020000
  508. 0800449c <FLASH_SetErrorCode>:
  509. uint32_t flags = 0U;
  510. #if defined(FLASH_BANK2_END)
  511. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2))
  512. #else
  513. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR))
  514. 800449c: 4a11 ldr r2, [pc, #68] ; (80044e4 <FLASH_SetErrorCode+0x48>)
  515. 800449e: 68d3 ldr r3, [r2, #12]
  516. 80044a0: f013 0310 ands.w r3, r3, #16
  517. 80044a4: d005 beq.n 80044b2 <FLASH_SetErrorCode+0x16>
  518. #endif /* FLASH_BANK2_END */
  519. {
  520. pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
  521. 80044a6: 4910 ldr r1, [pc, #64] ; (80044e8 <FLASH_SetErrorCode+0x4c>)
  522. 80044a8: 69cb ldr r3, [r1, #28]
  523. 80044aa: f043 0302 orr.w r3, r3, #2
  524. 80044ae: 61cb str r3, [r1, #28]
  525. #if defined(FLASH_BANK2_END)
  526. flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2;
  527. #else
  528. flags |= FLASH_FLAG_WRPERR;
  529. 80044b0: 2310 movs r3, #16
  530. #endif /* FLASH_BANK2_END */
  531. }
  532. #if defined(FLASH_BANK2_END)
  533. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
  534. #else
  535. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  536. 80044b2: 68d2 ldr r2, [r2, #12]
  537. 80044b4: 0750 lsls r0, r2, #29
  538. 80044b6: d506 bpl.n 80044c6 <FLASH_SetErrorCode+0x2a>
  539. #endif /* FLASH_BANK2_END */
  540. {
  541. pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG;
  542. 80044b8: 490b ldr r1, [pc, #44] ; (80044e8 <FLASH_SetErrorCode+0x4c>)
  543. #if defined(FLASH_BANK2_END)
  544. flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2;
  545. #else
  546. flags |= FLASH_FLAG_PGERR;
  547. 80044ba: f043 0304 orr.w r3, r3, #4
  548. pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG;
  549. 80044be: 69ca ldr r2, [r1, #28]
  550. 80044c0: f042 0201 orr.w r2, r2, #1
  551. 80044c4: 61ca str r2, [r1, #28]
  552. #endif /* FLASH_BANK2_END */
  553. }
  554. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR))
  555. 80044c6: 4a07 ldr r2, [pc, #28] ; (80044e4 <FLASH_SetErrorCode+0x48>)
  556. 80044c8: 69d1 ldr r1, [r2, #28]
  557. 80044ca: 07c9 lsls r1, r1, #31
  558. 80044cc: d508 bpl.n 80044e0 <FLASH_SetErrorCode+0x44>
  559. {
  560. pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV;
  561. 80044ce: 4806 ldr r0, [pc, #24] ; (80044e8 <FLASH_SetErrorCode+0x4c>)
  562. 80044d0: 69c1 ldr r1, [r0, #28]
  563. 80044d2: f041 0104 orr.w r1, r1, #4
  564. 80044d6: 61c1 str r1, [r0, #28]
  565. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
  566. 80044d8: 69d1 ldr r1, [r2, #28]
  567. 80044da: f021 0101 bic.w r1, r1, #1
  568. 80044de: 61d1 str r1, [r2, #28]
  569. }
  570. /* Clear FLASH error pending bits */
  571. __HAL_FLASH_CLEAR_FLAG(flags);
  572. 80044e0: 60d3 str r3, [r2, #12]
  573. 80044e2: 4770 bx lr
  574. 80044e4: 40022000 .word 0x40022000
  575. 80044e8: 200002c0 .word 0x200002c0
  576. 080044ec <HAL_FLASH_Unlock>:
  577. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  578. 80044ec: 4b06 ldr r3, [pc, #24] ; (8004508 <HAL_FLASH_Unlock+0x1c>)
  579. 80044ee: 6918 ldr r0, [r3, #16]
  580. 80044f0: f010 0080 ands.w r0, r0, #128 ; 0x80
  581. 80044f4: d007 beq.n 8004506 <HAL_FLASH_Unlock+0x1a>
  582. WRITE_REG(FLASH->KEYR, FLASH_KEY1);
  583. 80044f6: 4a05 ldr r2, [pc, #20] ; (800450c <HAL_FLASH_Unlock+0x20>)
  584. 80044f8: 605a str r2, [r3, #4]
  585. WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  586. 80044fa: f102 3288 add.w r2, r2, #2290649224 ; 0x88888888
  587. 80044fe: 605a str r2, [r3, #4]
  588. if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  589. 8004500: 6918 ldr r0, [r3, #16]
  590. HAL_StatusTypeDef status = HAL_OK;
  591. 8004502: f3c0 10c0 ubfx r0, r0, #7, #1
  592. }
  593. 8004506: 4770 bx lr
  594. 8004508: 40022000 .word 0x40022000
  595. 800450c: 45670123 .word 0x45670123
  596. 08004510 <HAL_FLASH_Lock>:
  597. SET_BIT(FLASH->CR, FLASH_CR_LOCK);
  598. 8004510: 4a03 ldr r2, [pc, #12] ; (8004520 <HAL_FLASH_Lock+0x10>)
  599. }
  600. 8004512: 2000 movs r0, #0
  601. SET_BIT(FLASH->CR, FLASH_CR_LOCK);
  602. 8004514: 6913 ldr r3, [r2, #16]
  603. 8004516: f043 0380 orr.w r3, r3, #128 ; 0x80
  604. 800451a: 6113 str r3, [r2, #16]
  605. }
  606. 800451c: 4770 bx lr
  607. 800451e: bf00 nop
  608. 8004520: 40022000 .word 0x40022000
  609. 08004524 <FLASH_WaitForLastOperation>:
  610. {
  611. 8004524: b5f8 push {r3, r4, r5, r6, r7, lr}
  612. 8004526: 4606 mov r6, r0
  613. uint32_t tickstart = HAL_GetTick();
  614. 8004528: f7ff feca bl 80042c0 <HAL_GetTick>
  615. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  616. 800452c: 4c11 ldr r4, [pc, #68] ; (8004574 <FLASH_WaitForLastOperation+0x50>)
  617. uint32_t tickstart = HAL_GetTick();
  618. 800452e: 4607 mov r7, r0
  619. 8004530: 4625 mov r5, r4
  620. while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
  621. 8004532: 68e3 ldr r3, [r4, #12]
  622. 8004534: 07d8 lsls r0, r3, #31
  623. 8004536: d412 bmi.n 800455e <FLASH_WaitForLastOperation+0x3a>
  624. if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP))
  625. 8004538: 68e3 ldr r3, [r4, #12]
  626. 800453a: 0699 lsls r1, r3, #26
  627. __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  628. 800453c: bf44 itt mi
  629. 800453e: 2320 movmi r3, #32
  630. 8004540: 60e3 strmi r3, [r4, #12]
  631. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  632. 8004542: 68eb ldr r3, [r5, #12]
  633. 8004544: 06da lsls r2, r3, #27
  634. 8004546: d406 bmi.n 8004556 <FLASH_WaitForLastOperation+0x32>
  635. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  636. 8004548: 69eb ldr r3, [r5, #28]
  637. if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
  638. 800454a: 07db lsls r3, r3, #31
  639. 800454c: d403 bmi.n 8004556 <FLASH_WaitForLastOperation+0x32>
  640. __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
  641. 800454e: 68e8 ldr r0, [r5, #12]
  642. __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
  643. 8004550: f010 0004 ands.w r0, r0, #4
  644. 8004554: d002 beq.n 800455c <FLASH_WaitForLastOperation+0x38>
  645. FLASH_SetErrorCode();
  646. 8004556: f7ff ffa1 bl 800449c <FLASH_SetErrorCode>
  647. return HAL_ERROR;
  648. 800455a: 2001 movs r0, #1
  649. }
  650. 800455c: bdf8 pop {r3, r4, r5, r6, r7, pc}
  651. if (Timeout != HAL_MAX_DELAY)
  652. 800455e: 1c73 adds r3, r6, #1
  653. 8004560: d0e7 beq.n 8004532 <FLASH_WaitForLastOperation+0xe>
  654. if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
  655. 8004562: b90e cbnz r6, 8004568 <FLASH_WaitForLastOperation+0x44>
  656. return HAL_TIMEOUT;
  657. 8004564: 2003 movs r0, #3
  658. 8004566: bdf8 pop {r3, r4, r5, r6, r7, pc}
  659. if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
  660. 8004568: f7ff feaa bl 80042c0 <HAL_GetTick>
  661. 800456c: 1bc0 subs r0, r0, r7
  662. 800456e: 4286 cmp r6, r0
  663. 8004570: d2df bcs.n 8004532 <FLASH_WaitForLastOperation+0xe>
  664. 8004572: e7f7 b.n 8004564 <FLASH_WaitForLastOperation+0x40>
  665. 8004574: 40022000 .word 0x40022000
  666. 08004578 <HAL_FLASH_Program>:
  667. {
  668. 8004578: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  669. __HAL_LOCK(&pFlash);
  670. 800457c: 4c1f ldr r4, [pc, #124] ; (80045fc <HAL_FLASH_Program+0x84>)
  671. {
  672. 800457e: 4699 mov r9, r3
  673. __HAL_LOCK(&pFlash);
  674. 8004580: 7e23 ldrb r3, [r4, #24]
  675. {
  676. 8004582: 4605 mov r5, r0
  677. __HAL_LOCK(&pFlash);
  678. 8004584: 2b01 cmp r3, #1
  679. {
  680. 8004586: 460f mov r7, r1
  681. 8004588: 4690 mov r8, r2
  682. __HAL_LOCK(&pFlash);
  683. 800458a: d033 beq.n 80045f4 <HAL_FLASH_Program+0x7c>
  684. 800458c: 2301 movs r3, #1
  685. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  686. 800458e: f24c 3050 movw r0, #50000 ; 0xc350
  687. __HAL_LOCK(&pFlash);
  688. 8004592: 7623 strb r3, [r4, #24]
  689. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  690. 8004594: f7ff ffc6 bl 8004524 <FLASH_WaitForLastOperation>
  691. if(status == HAL_OK)
  692. 8004598: bb40 cbnz r0, 80045ec <HAL_FLASH_Program+0x74>
  693. if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  694. 800459a: 2d01 cmp r5, #1
  695. 800459c: d003 beq.n 80045a6 <HAL_FLASH_Program+0x2e>
  696. nbiterations = 4U;
  697. 800459e: 2d02 cmp r5, #2
  698. 80045a0: bf0c ite eq
  699. 80045a2: 2502 moveq r5, #2
  700. 80045a4: 2504 movne r5, #4
  701. 80045a6: 2600 movs r6, #0
  702. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  703. 80045a8: 46b2 mov sl, r6
  704. SET_BIT(FLASH->CR, FLASH_CR_PG);
  705. 80045aa: f8df b054 ldr.w fp, [pc, #84] ; 8004600 <HAL_FLASH_Program+0x88>
  706. FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index)));
  707. 80045ae: 0132 lsls r2, r6, #4
  708. 80045b0: 4640 mov r0, r8
  709. 80045b2: 4649 mov r1, r9
  710. 80045b4: f7ff fe36 bl 8004224 <__aeabi_llsr>
  711. pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  712. 80045b8: f8c4 a01c str.w sl, [r4, #28]
  713. SET_BIT(FLASH->CR, FLASH_CR_PG);
  714. 80045bc: f8db 3010 ldr.w r3, [fp, #16]
  715. FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index)));
  716. 80045c0: b280 uxth r0, r0
  717. SET_BIT(FLASH->CR, FLASH_CR_PG);
  718. 80045c2: f043 0301 orr.w r3, r3, #1
  719. 80045c6: f8cb 3010 str.w r3, [fp, #16]
  720. *(__IO uint16_t*)Address = Data;
  721. 80045ca: f827 0016 strh.w r0, [r7, r6, lsl #1]
  722. status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
  723. 80045ce: f24c 3050 movw r0, #50000 ; 0xc350
  724. 80045d2: f7ff ffa7 bl 8004524 <FLASH_WaitForLastOperation>
  725. CLEAR_BIT(FLASH->CR, FLASH_CR_PG);
  726. 80045d6: f8db 3010 ldr.w r3, [fp, #16]
  727. 80045da: f023 0301 bic.w r3, r3, #1
  728. 80045de: f8cb 3010 str.w r3, [fp, #16]
  729. if (status != HAL_OK)
  730. 80045e2: b918 cbnz r0, 80045ec <HAL_FLASH_Program+0x74>
  731. 80045e4: 3601 adds r6, #1
  732. for (index = 0U; index < nbiterations; index++)
  733. 80045e6: b2f3 uxtb r3, r6
  734. 80045e8: 429d cmp r5, r3
  735. 80045ea: d8e0 bhi.n 80045ae <HAL_FLASH_Program+0x36>
  736. __HAL_UNLOCK(&pFlash);
  737. 80045ec: 2300 movs r3, #0
  738. 80045ee: 7623 strb r3, [r4, #24]
  739. return status;
  740. 80045f0: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
  741. __HAL_LOCK(&pFlash);
  742. 80045f4: 2002 movs r0, #2
  743. }
  744. 80045f6: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
  745. 80045fa: bf00 nop
  746. 80045fc: 200002c0 .word 0x200002c0
  747. 8004600: 40022000 .word 0x40022000
  748. 08004604 <HAL_GPIO_Init>:
  749. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  750. * the configuration information for the specified GPIO peripheral.
  751. * @retval None
  752. */
  753. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  754. {
  755. 8004604: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  756. uint32_t position;
  757. uint32_t ioposition = 0x00U;
  758. uint32_t iocurrent = 0x00U;
  759. uint32_t temp = 0x00U;
  760. uint32_t config = 0x00U;
  761. 8004608: 2200 movs r2, #0
  762. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  763. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  764. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  765. /* Configure the port pins */
  766. for (position = 0U; position < GPIO_NUMBER; position++)
  767. 800460a: 4616 mov r6, r2
  768. /*--------------------- EXTI Mode Configuration ------------------------*/
  769. /* Configure the External Interrupt or event for the current IO */
  770. if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
  771. {
  772. /* Enable AFIO Clock */
  773. __HAL_RCC_AFIO_CLK_ENABLE();
  774. 800460c: 4f6c ldr r7, [pc, #432] ; (80047c0 <HAL_GPIO_Init+0x1bc>)
  775. 800460e: 4b6d ldr r3, [pc, #436] ; (80047c4 <HAL_GPIO_Init+0x1c0>)
  776. temp = AFIO->EXTICR[position >> 2U];
  777. CLEAR_BIT(temp, (0x0FU) << (4U * (position & 0x03U)));
  778. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)));
  779. 8004610: f8df e1b8 ldr.w lr, [pc, #440] ; 80047cc <HAL_GPIO_Init+0x1c8>
  780. switch (GPIO_Init->Mode)
  781. 8004614: f8df c1b8 ldr.w ip, [pc, #440] ; 80047d0 <HAL_GPIO_Init+0x1cc>
  782. ioposition = (0x01U << position);
  783. 8004618: f04f 0801 mov.w r8, #1
  784. iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
  785. 800461c: 680c ldr r4, [r1, #0]
  786. ioposition = (0x01U << position);
  787. 800461e: fa08 f806 lsl.w r8, r8, r6
  788. iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
  789. 8004622: ea08 0404 and.w r4, r8, r4
  790. if (iocurrent == ioposition)
  791. 8004626: 45a0 cmp r8, r4
  792. 8004628: f040 8085 bne.w 8004736 <HAL_GPIO_Init+0x132>
  793. switch (GPIO_Init->Mode)
  794. 800462c: 684d ldr r5, [r1, #4]
  795. 800462e: 2d12 cmp r5, #18
  796. 8004630: f000 80b7 beq.w 80047a2 <HAL_GPIO_Init+0x19e>
  797. 8004634: f200 808d bhi.w 8004752 <HAL_GPIO_Init+0x14e>
  798. 8004638: 2d02 cmp r5, #2
  799. 800463a: f000 80af beq.w 800479c <HAL_GPIO_Init+0x198>
  800. 800463e: f200 8081 bhi.w 8004744 <HAL_GPIO_Init+0x140>
  801. 8004642: 2d00 cmp r5, #0
  802. 8004644: f000 8091 beq.w 800476a <HAL_GPIO_Init+0x166>
  803. 8004648: 2d01 cmp r5, #1
  804. 800464a: f000 80a5 beq.w 8004798 <HAL_GPIO_Init+0x194>
  805. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  806. 800464e: f04f 090f mov.w r9, #15
  807. configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH;
  808. 8004652: 2cff cmp r4, #255 ; 0xff
  809. 8004654: bf93 iteet ls
  810. 8004656: 4682 movls sl, r0
  811. 8004658: f106 4580 addhi.w r5, r6, #1073741824 ; 0x40000000
  812. 800465c: 3d08 subhi r5, #8
  813. 800465e: f8d0 b000 ldrls.w fp, [r0]
  814. 8004662: bf92 itee ls
  815. 8004664: 00b5 lslls r5, r6, #2
  816. 8004666: f8d0 b004 ldrhi.w fp, [r0, #4]
  817. 800466a: 00ad lslhi r5, r5, #2
  818. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  819. 800466c: fa09 f805 lsl.w r8, r9, r5
  820. 8004670: ea2b 0808 bic.w r8, fp, r8
  821. 8004674: fa02 f505 lsl.w r5, r2, r5
  822. configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH;
  823. 8004678: bf88 it hi
  824. 800467a: f100 0a04 addhi.w sl, r0, #4
  825. MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset));
  826. 800467e: ea48 0505 orr.w r5, r8, r5
  827. 8004682: f8ca 5000 str.w r5, [sl]
  828. if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
  829. 8004686: f8d1 a004 ldr.w sl, [r1, #4]
  830. 800468a: f01a 5f80 tst.w sl, #268435456 ; 0x10000000
  831. 800468e: d052 beq.n 8004736 <HAL_GPIO_Init+0x132>
  832. __HAL_RCC_AFIO_CLK_ENABLE();
  833. 8004690: 69bd ldr r5, [r7, #24]
  834. 8004692: f026 0803 bic.w r8, r6, #3
  835. 8004696: f045 0501 orr.w r5, r5, #1
  836. 800469a: 61bd str r5, [r7, #24]
  837. 800469c: 69bd ldr r5, [r7, #24]
  838. 800469e: f108 4880 add.w r8, r8, #1073741824 ; 0x40000000
  839. 80046a2: f005 0501 and.w r5, r5, #1
  840. 80046a6: 9501 str r5, [sp, #4]
  841. 80046a8: f508 3880 add.w r8, r8, #65536 ; 0x10000
  842. CLEAR_BIT(temp, (0x0FU) << (4U * (position & 0x03U)));
  843. 80046ac: f006 0b03 and.w fp, r6, #3
  844. __HAL_RCC_AFIO_CLK_ENABLE();
  845. 80046b0: 9d01 ldr r5, [sp, #4]
  846. CLEAR_BIT(temp, (0x0FU) << (4U * (position & 0x03U)));
  847. 80046b2: ea4f 0b8b mov.w fp, fp, lsl #2
  848. temp = AFIO->EXTICR[position >> 2U];
  849. 80046b6: f8d8 5008 ldr.w r5, [r8, #8]
  850. CLEAR_BIT(temp, (0x0FU) << (4U * (position & 0x03U)));
  851. 80046ba: fa09 f90b lsl.w r9, r9, fp
  852. 80046be: ea25 0909 bic.w r9, r5, r9
  853. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)));
  854. 80046c2: 4d41 ldr r5, [pc, #260] ; (80047c8 <HAL_GPIO_Init+0x1c4>)
  855. 80046c4: 42a8 cmp r0, r5
  856. 80046c6: d071 beq.n 80047ac <HAL_GPIO_Init+0x1a8>
  857. 80046c8: f505 6580 add.w r5, r5, #1024 ; 0x400
  858. 80046cc: 42a8 cmp r0, r5
  859. 80046ce: d06f beq.n 80047b0 <HAL_GPIO_Init+0x1ac>
  860. 80046d0: f505 6580 add.w r5, r5, #1024 ; 0x400
  861. 80046d4: 42a8 cmp r0, r5
  862. 80046d6: d06d beq.n 80047b4 <HAL_GPIO_Init+0x1b0>
  863. 80046d8: f505 6580 add.w r5, r5, #1024 ; 0x400
  864. 80046dc: 42a8 cmp r0, r5
  865. 80046de: d06b beq.n 80047b8 <HAL_GPIO_Init+0x1b4>
  866. 80046e0: f505 6580 add.w r5, r5, #1024 ; 0x400
  867. 80046e4: 42a8 cmp r0, r5
  868. 80046e6: d069 beq.n 80047bc <HAL_GPIO_Init+0x1b8>
  869. 80046e8: 4570 cmp r0, lr
  870. 80046ea: bf0c ite eq
  871. 80046ec: 2505 moveq r5, #5
  872. 80046ee: 2506 movne r5, #6
  873. 80046f0: fa05 f50b lsl.w r5, r5, fp
  874. 80046f4: ea45 0509 orr.w r5, r5, r9
  875. AFIO->EXTICR[position >> 2U] = temp;
  876. 80046f8: f8c8 5008 str.w r5, [r8, #8]
  877. /* Configure the interrupt mask */
  878. if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
  879. {
  880. SET_BIT(EXTI->IMR, iocurrent);
  881. 80046fc: 681d ldr r5, [r3, #0]
  882. if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
  883. 80046fe: f41a 3f80 tst.w sl, #65536 ; 0x10000
  884. SET_BIT(EXTI->IMR, iocurrent);
  885. 8004702: bf14 ite ne
  886. 8004704: 4325 orrne r5, r4
  887. }
  888. else
  889. {
  890. CLEAR_BIT(EXTI->IMR, iocurrent);
  891. 8004706: 43a5 biceq r5, r4
  892. 8004708: 601d str r5, [r3, #0]
  893. }
  894. /* Configure the event mask */
  895. if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
  896. {
  897. SET_BIT(EXTI->EMR, iocurrent);
  898. 800470a: 685d ldr r5, [r3, #4]
  899. if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
  900. 800470c: f41a 3f00 tst.w sl, #131072 ; 0x20000
  901. SET_BIT(EXTI->EMR, iocurrent);
  902. 8004710: bf14 ite ne
  903. 8004712: 4325 orrne r5, r4
  904. }
  905. else
  906. {
  907. CLEAR_BIT(EXTI->EMR, iocurrent);
  908. 8004714: 43a5 biceq r5, r4
  909. 8004716: 605d str r5, [r3, #4]
  910. }
  911. /* Enable or disable the rising trigger */
  912. if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
  913. {
  914. SET_BIT(EXTI->RTSR, iocurrent);
  915. 8004718: 689d ldr r5, [r3, #8]
  916. if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
  917. 800471a: f41a 1f80 tst.w sl, #1048576 ; 0x100000
  918. SET_BIT(EXTI->RTSR, iocurrent);
  919. 800471e: bf14 ite ne
  920. 8004720: 4325 orrne r5, r4
  921. }
  922. else
  923. {
  924. CLEAR_BIT(EXTI->RTSR, iocurrent);
  925. 8004722: 43a5 biceq r5, r4
  926. 8004724: 609d str r5, [r3, #8]
  927. }
  928. /* Enable or disable the falling trigger */
  929. if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
  930. {
  931. SET_BIT(EXTI->FTSR, iocurrent);
  932. 8004726: 68dd ldr r5, [r3, #12]
  933. if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
  934. 8004728: f41a 1f00 tst.w sl, #2097152 ; 0x200000
  935. SET_BIT(EXTI->FTSR, iocurrent);
  936. 800472c: bf14 ite ne
  937. 800472e: 432c orrne r4, r5
  938. }
  939. else
  940. {
  941. CLEAR_BIT(EXTI->FTSR, iocurrent);
  942. 8004730: ea25 0404 biceq.w r4, r5, r4
  943. 8004734: 60dc str r4, [r3, #12]
  944. for (position = 0U; position < GPIO_NUMBER; position++)
  945. 8004736: 3601 adds r6, #1
  946. 8004738: 2e10 cmp r6, #16
  947. 800473a: f47f af6d bne.w 8004618 <HAL_GPIO_Init+0x14>
  948. }
  949. }
  950. }
  951. }
  952. }
  953. 800473e: b003 add sp, #12
  954. 8004740: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  955. switch (GPIO_Init->Mode)
  956. 8004744: 2d03 cmp r5, #3
  957. 8004746: d025 beq.n 8004794 <HAL_GPIO_Init+0x190>
  958. 8004748: 2d11 cmp r5, #17
  959. 800474a: d180 bne.n 800464e <HAL_GPIO_Init+0x4a>
  960. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD;
  961. 800474c: 68ca ldr r2, [r1, #12]
  962. 800474e: 3204 adds r2, #4
  963. break;
  964. 8004750: e77d b.n 800464e <HAL_GPIO_Init+0x4a>
  965. switch (GPIO_Init->Mode)
  966. 8004752: 4565 cmp r5, ip
  967. 8004754: d009 beq.n 800476a <HAL_GPIO_Init+0x166>
  968. 8004756: d812 bhi.n 800477e <HAL_GPIO_Init+0x17a>
  969. 8004758: f8df 9078 ldr.w r9, [pc, #120] ; 80047d4 <HAL_GPIO_Init+0x1d0>
  970. 800475c: 454d cmp r5, r9
  971. 800475e: d004 beq.n 800476a <HAL_GPIO_Init+0x166>
  972. 8004760: f509 3980 add.w r9, r9, #65536 ; 0x10000
  973. 8004764: 454d cmp r5, r9
  974. 8004766: f47f af72 bne.w 800464e <HAL_GPIO_Init+0x4a>
  975. if (GPIO_Init->Pull == GPIO_NOPULL)
  976. 800476a: 688a ldr r2, [r1, #8]
  977. 800476c: b1e2 cbz r2, 80047a8 <HAL_GPIO_Init+0x1a4>
  978. else if (GPIO_Init->Pull == GPIO_PULLUP)
  979. 800476e: 2a01 cmp r2, #1
  980. GPIOx->BSRR = ioposition;
  981. 8004770: bf0c ite eq
  982. 8004772: f8c0 8010 streq.w r8, [r0, #16]
  983. GPIOx->BRR = ioposition;
  984. 8004776: f8c0 8014 strne.w r8, [r0, #20]
  985. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD;
  986. 800477a: 2208 movs r2, #8
  987. 800477c: e767 b.n 800464e <HAL_GPIO_Init+0x4a>
  988. switch (GPIO_Init->Mode)
  989. 800477e: f8df 9058 ldr.w r9, [pc, #88] ; 80047d8 <HAL_GPIO_Init+0x1d4>
  990. 8004782: 454d cmp r5, r9
  991. 8004784: d0f1 beq.n 800476a <HAL_GPIO_Init+0x166>
  992. 8004786: f509 3980 add.w r9, r9, #65536 ; 0x10000
  993. 800478a: 454d cmp r5, r9
  994. 800478c: d0ed beq.n 800476a <HAL_GPIO_Init+0x166>
  995. 800478e: f5a9 1980 sub.w r9, r9, #1048576 ; 0x100000
  996. 8004792: e7e7 b.n 8004764 <HAL_GPIO_Init+0x160>
  997. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG;
  998. 8004794: 2200 movs r2, #0
  999. 8004796: e75a b.n 800464e <HAL_GPIO_Init+0x4a>
  1000. config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP;
  1001. 8004798: 68ca ldr r2, [r1, #12]
  1002. break;
  1003. 800479a: e758 b.n 800464e <HAL_GPIO_Init+0x4a>
  1004. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP;
  1005. 800479c: 68ca ldr r2, [r1, #12]
  1006. 800479e: 3208 adds r2, #8
  1007. break;
  1008. 80047a0: e755 b.n 800464e <HAL_GPIO_Init+0x4a>
  1009. config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD;
  1010. 80047a2: 68ca ldr r2, [r1, #12]
  1011. 80047a4: 320c adds r2, #12
  1012. break;
  1013. 80047a6: e752 b.n 800464e <HAL_GPIO_Init+0x4a>
  1014. config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING;
  1015. 80047a8: 2204 movs r2, #4
  1016. 80047aa: e750 b.n 800464e <HAL_GPIO_Init+0x4a>
  1017. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)));
  1018. 80047ac: 2500 movs r5, #0
  1019. 80047ae: e79f b.n 80046f0 <HAL_GPIO_Init+0xec>
  1020. 80047b0: 2501 movs r5, #1
  1021. 80047b2: e79d b.n 80046f0 <HAL_GPIO_Init+0xec>
  1022. 80047b4: 2502 movs r5, #2
  1023. 80047b6: e79b b.n 80046f0 <HAL_GPIO_Init+0xec>
  1024. 80047b8: 2503 movs r5, #3
  1025. 80047ba: e799 b.n 80046f0 <HAL_GPIO_Init+0xec>
  1026. 80047bc: 2504 movs r5, #4
  1027. 80047be: e797 b.n 80046f0 <HAL_GPIO_Init+0xec>
  1028. 80047c0: 40021000 .word 0x40021000
  1029. 80047c4: 40010400 .word 0x40010400
  1030. 80047c8: 40010800 .word 0x40010800
  1031. 80047cc: 40011c00 .word 0x40011c00
  1032. 80047d0: 10210000 .word 0x10210000
  1033. 80047d4: 10110000 .word 0x10110000
  1034. 80047d8: 10310000 .word 0x10310000
  1035. 080047dc <HAL_GPIO_WritePin>:
  1036. {
  1037. /* Check the parameters */
  1038. assert_param(IS_GPIO_PIN(GPIO_Pin));
  1039. assert_param(IS_GPIO_PIN_ACTION(PinState));
  1040. if (PinState != GPIO_PIN_RESET)
  1041. 80047dc: b10a cbz r2, 80047e2 <HAL_GPIO_WritePin+0x6>
  1042. {
  1043. GPIOx->BSRR = GPIO_Pin;
  1044. }
  1045. else
  1046. {
  1047. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U;
  1048. 80047de: 6101 str r1, [r0, #16]
  1049. 80047e0: 4770 bx lr
  1050. 80047e2: 0409 lsls r1, r1, #16
  1051. 80047e4: e7fb b.n 80047de <HAL_GPIO_WritePin+0x2>
  1052. 080047e6 <HAL_GPIO_TogglePin>:
  1053. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  1054. {
  1055. /* Check the parameters */
  1056. assert_param(IS_GPIO_PIN(GPIO_Pin));
  1057. GPIOx->ODR ^= GPIO_Pin;
  1058. 80047e6: 68c3 ldr r3, [r0, #12]
  1059. 80047e8: 4059 eors r1, r3
  1060. 80047ea: 60c1 str r1, [r0, #12]
  1061. 80047ec: 4770 bx lr
  1062. ...
  1063. 080047f0 <HAL_I2C_Init>:
  1064. * @param hi2c: pointer to a I2C_HandleTypeDef structure that contains
  1065. * the configuration information for I2C module
  1066. * @retval HAL status
  1067. */
  1068. HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
  1069. {
  1070. 80047f0: b538 push {r3, r4, r5, lr}
  1071. uint32_t freqrange = 0U;
  1072. uint32_t pclk1 = 0U;
  1073. /* Check the I2C handle allocation */
  1074. if(hi2c == NULL)
  1075. 80047f2: 4604 mov r4, r0
  1076. 80047f4: b908 cbnz r0, 80047fa <HAL_I2C_Init+0xa>
  1077. {
  1078. return HAL_ERROR;
  1079. 80047f6: 2001 movs r0, #1
  1080. 80047f8: bd38 pop {r3, r4, r5, pc}
  1081. assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode));
  1082. assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2));
  1083. assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode));
  1084. assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode));
  1085. if(hi2c->State == HAL_I2C_STATE_RESET)
  1086. 80047fa: f890 303d ldrb.w r3, [r0, #61] ; 0x3d
  1087. 80047fe: f003 02ff and.w r2, r3, #255 ; 0xff
  1088. 8004802: b91b cbnz r3, 800480c <HAL_I2C_Init+0x1c>
  1089. {
  1090. /* Allocate lock resource and initialize it */
  1091. hi2c->Lock = HAL_UNLOCKED;
  1092. 8004804: f880 203c strb.w r2, [r0, #60] ; 0x3c
  1093. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  1094. HAL_I2C_MspInit(hi2c);
  1095. 8004808: f001 fd3e bl 8006288 <HAL_I2C_MspInit>
  1096. }
  1097. hi2c->State = HAL_I2C_STATE_BUSY;
  1098. 800480c: 2324 movs r3, #36 ; 0x24
  1099. /* Disable the selected I2C peripheral */
  1100. __HAL_I2C_DISABLE(hi2c);
  1101. 800480e: 6822 ldr r2, [r4, #0]
  1102. hi2c->State = HAL_I2C_STATE_BUSY;
  1103. 8004810: f884 303d strb.w r3, [r4, #61] ; 0x3d
  1104. __HAL_I2C_DISABLE(hi2c);
  1105. 8004814: 6813 ldr r3, [r2, #0]
  1106. 8004816: f023 0301 bic.w r3, r3, #1
  1107. 800481a: 6013 str r3, [r2, #0]
  1108. /* Get PCLK1 frequency */
  1109. pclk1 = HAL_RCC_GetPCLK1Freq();
  1110. 800481c: f000 fae2 bl 8004de4 <HAL_RCC_GetPCLK1Freq>
  1111. /* Check the minimum allowed PCLK1 frequency */
  1112. if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U)
  1113. 8004820: 6863 ldr r3, [r4, #4]
  1114. 8004822: 4a2f ldr r2, [pc, #188] ; (80048e0 <HAL_I2C_Init+0xf0>)
  1115. 8004824: 4293 cmp r3, r2
  1116. 8004826: d830 bhi.n 800488a <HAL_I2C_Init+0x9a>
  1117. 8004828: 4a2e ldr r2, [pc, #184] ; (80048e4 <HAL_I2C_Init+0xf4>)
  1118. 800482a: 4290 cmp r0, r2
  1119. 800482c: d9e3 bls.n 80047f6 <HAL_I2C_Init+0x6>
  1120. {
  1121. return HAL_ERROR;
  1122. }
  1123. /* Calculate frequency range */
  1124. freqrange = I2C_FREQRANGE(pclk1);
  1125. 800482e: 4a2e ldr r2, [pc, #184] ; (80048e8 <HAL_I2C_Init+0xf8>)
  1126. /*---------------------------- I2Cx CR2 Configuration ----------------------*/
  1127. /* Configure I2Cx: Frequency range */
  1128. hi2c->Instance->CR2 = freqrange;
  1129. 8004830: 6821 ldr r1, [r4, #0]
  1130. freqrange = I2C_FREQRANGE(pclk1);
  1131. 8004832: fbb0 f2f2 udiv r2, r0, r2
  1132. hi2c->Instance->CR2 = freqrange;
  1133. 8004836: 604a str r2, [r1, #4]
  1134. /*---------------------------- I2Cx TRISE Configuration --------------------*/
  1135. /* Configure I2Cx: Rise Time */
  1136. hi2c->Instance->TRISE = I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed);
  1137. 8004838: 3201 adds r2, #1
  1138. 800483a: 620a str r2, [r1, #32]
  1139. /*---------------------------- I2Cx CCR Configuration ----------------------*/
  1140. /* Configure I2Cx: Speed */
  1141. hi2c->Instance->CCR = I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle);
  1142. 800483c: 4a28 ldr r2, [pc, #160] ; (80048e0 <HAL_I2C_Init+0xf0>)
  1143. 800483e: 3801 subs r0, #1
  1144. 8004840: 4293 cmp r3, r2
  1145. 8004842: d832 bhi.n 80048aa <HAL_I2C_Init+0xba>
  1146. 8004844: 005b lsls r3, r3, #1
  1147. 8004846: fbb0 f0f3 udiv r0, r0, r3
  1148. 800484a: 1c43 adds r3, r0, #1
  1149. 800484c: f3c3 030b ubfx r3, r3, #0, #12
  1150. 8004850: 2b04 cmp r3, #4
  1151. 8004852: bf38 it cc
  1152. 8004854: 2304 movcc r3, #4
  1153. 8004856: 61cb str r3, [r1, #28]
  1154. /*---------------------------- I2Cx CR1 Configuration ----------------------*/
  1155. /* Configure I2Cx: Generalcall and NoStretch mode */
  1156. hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode);
  1157. 8004858: 6a22 ldr r2, [r4, #32]
  1158. 800485a: 69e3 ldr r3, [r4, #28]
  1159. hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2);
  1160. /* Enable the selected I2C peripheral */
  1161. __HAL_I2C_ENABLE(hi2c);
  1162. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  1163. 800485c: 2000 movs r0, #0
  1164. hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode);
  1165. 800485e: 4313 orrs r3, r2
  1166. 8004860: 600b str r3, [r1, #0]
  1167. hi2c->Instance->OAR1 = (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1);
  1168. 8004862: 68e2 ldr r2, [r4, #12]
  1169. 8004864: 6923 ldr r3, [r4, #16]
  1170. 8004866: 4313 orrs r3, r2
  1171. 8004868: 608b str r3, [r1, #8]
  1172. hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2);
  1173. 800486a: 69a2 ldr r2, [r4, #24]
  1174. 800486c: 6963 ldr r3, [r4, #20]
  1175. 800486e: 4313 orrs r3, r2
  1176. 8004870: 60cb str r3, [r1, #12]
  1177. __HAL_I2C_ENABLE(hi2c);
  1178. 8004872: 680b ldr r3, [r1, #0]
  1179. 8004874: f043 0301 orr.w r3, r3, #1
  1180. 8004878: 600b str r3, [r1, #0]
  1181. hi2c->State = HAL_I2C_STATE_READY;
  1182. 800487a: 2320 movs r3, #32
  1183. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  1184. 800487c: 6420 str r0, [r4, #64] ; 0x40
  1185. hi2c->State = HAL_I2C_STATE_READY;
  1186. 800487e: f884 303d strb.w r3, [r4, #61] ; 0x3d
  1187. hi2c->PreviousState = I2C_STATE_NONE;
  1188. 8004882: 6320 str r0, [r4, #48] ; 0x30
  1189. hi2c->Mode = HAL_I2C_MODE_NONE;
  1190. 8004884: f884 003e strb.w r0, [r4, #62] ; 0x3e
  1191. return HAL_OK;
  1192. 8004888: bd38 pop {r3, r4, r5, pc}
  1193. if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U)
  1194. 800488a: 4a18 ldr r2, [pc, #96] ; (80048ec <HAL_I2C_Init+0xfc>)
  1195. 800488c: 4290 cmp r0, r2
  1196. 800488e: d9b2 bls.n 80047f6 <HAL_I2C_Init+0x6>
  1197. freqrange = I2C_FREQRANGE(pclk1);
  1198. 8004890: 4d15 ldr r5, [pc, #84] ; (80048e8 <HAL_I2C_Init+0xf8>)
  1199. hi2c->Instance->TRISE = I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed);
  1200. 8004892: f44f 7296 mov.w r2, #300 ; 0x12c
  1201. freqrange = I2C_FREQRANGE(pclk1);
  1202. 8004896: fbb0 f5f5 udiv r5, r0, r5
  1203. hi2c->Instance->CR2 = freqrange;
  1204. 800489a: 6821 ldr r1, [r4, #0]
  1205. hi2c->Instance->TRISE = I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed);
  1206. 800489c: 436a muls r2, r5
  1207. hi2c->Instance->CR2 = freqrange;
  1208. 800489e: 604d str r5, [r1, #4]
  1209. hi2c->Instance->TRISE = I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed);
  1210. 80048a0: f44f 757a mov.w r5, #1000 ; 0x3e8
  1211. 80048a4: fbb2 f2f5 udiv r2, r2, r5
  1212. 80048a8: e7c6 b.n 8004838 <HAL_I2C_Init+0x48>
  1213. hi2c->Instance->CCR = I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle);
  1214. 80048aa: 68a2 ldr r2, [r4, #8]
  1215. 80048ac: b952 cbnz r2, 80048c4 <HAL_I2C_Init+0xd4>
  1216. 80048ae: eb03 0343 add.w r3, r3, r3, lsl #1
  1217. 80048b2: fbb0 f0f3 udiv r0, r0, r3
  1218. 80048b6: 1c43 adds r3, r0, #1
  1219. 80048b8: f3c3 030b ubfx r3, r3, #0, #12
  1220. 80048bc: b16b cbz r3, 80048da <HAL_I2C_Init+0xea>
  1221. 80048be: f443 4300 orr.w r3, r3, #32768 ; 0x8000
  1222. 80048c2: e7c8 b.n 8004856 <HAL_I2C_Init+0x66>
  1223. 80048c4: 2219 movs r2, #25
  1224. 80048c6: 4353 muls r3, r2
  1225. 80048c8: fbb0 f0f3 udiv r0, r0, r3
  1226. 80048cc: 1c43 adds r3, r0, #1
  1227. 80048ce: f3c3 030b ubfx r3, r3, #0, #12
  1228. 80048d2: b113 cbz r3, 80048da <HAL_I2C_Init+0xea>
  1229. 80048d4: f443 4340 orr.w r3, r3, #49152 ; 0xc000
  1230. 80048d8: e7bd b.n 8004856 <HAL_I2C_Init+0x66>
  1231. 80048da: 2301 movs r3, #1
  1232. 80048dc: e7bb b.n 8004856 <HAL_I2C_Init+0x66>
  1233. 80048de: bf00 nop
  1234. 80048e0: 000186a0 .word 0x000186a0
  1235. 80048e4: 001e847f .word 0x001e847f
  1236. 80048e8: 000f4240 .word 0x000f4240
  1237. 80048ec: 003d08ff .word 0x003d08ff
  1238. 080048f0 <HAL_RCC_OscConfig>:
  1239. /* Check the parameters */
  1240. assert_param(RCC_OscInitStruct != NULL);
  1241. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  1242. /*------------------------------- HSE Configuration ------------------------*/
  1243. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  1244. 80048f0: 6803 ldr r3, [r0, #0]
  1245. {
  1246. 80048f2: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  1247. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  1248. 80048f6: 07db lsls r3, r3, #31
  1249. {
  1250. 80048f8: 4605 mov r5, r0
  1251. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  1252. 80048fa: d410 bmi.n 800491e <HAL_RCC_OscConfig+0x2e>
  1253. }
  1254. }
  1255. }
  1256. }
  1257. /*----------------------------- HSI Configuration --------------------------*/
  1258. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  1259. 80048fc: 682b ldr r3, [r5, #0]
  1260. 80048fe: 079f lsls r7, r3, #30
  1261. 8004900: d45e bmi.n 80049c0 <HAL_RCC_OscConfig+0xd0>
  1262. }
  1263. }
  1264. }
  1265. }
  1266. /*------------------------------ LSI Configuration -------------------------*/
  1267. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  1268. 8004902: 682b ldr r3, [r5, #0]
  1269. 8004904: 0719 lsls r1, r3, #28
  1270. 8004906: f100 8095 bmi.w 8004a34 <HAL_RCC_OscConfig+0x144>
  1271. }
  1272. }
  1273. }
  1274. }
  1275. /*------------------------------ LSE Configuration -------------------------*/
  1276. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  1277. 800490a: 682b ldr r3, [r5, #0]
  1278. 800490c: 075a lsls r2, r3, #29
  1279. 800490e: f100 80bf bmi.w 8004a90 <HAL_RCC_OscConfig+0x1a0>
  1280. #endif /* RCC_CR_PLL2ON */
  1281. /*-------------------------------- PLL Configuration -----------------------*/
  1282. /* Check the parameters */
  1283. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  1284. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  1285. 8004912: 69ea ldr r2, [r5, #28]
  1286. 8004914: 2a00 cmp r2, #0
  1287. 8004916: f040 812d bne.w 8004b74 <HAL_RCC_OscConfig+0x284>
  1288. {
  1289. return HAL_ERROR;
  1290. }
  1291. }
  1292. return HAL_OK;
  1293. 800491a: 2000 movs r0, #0
  1294. 800491c: e014 b.n 8004948 <HAL_RCC_OscConfig+0x58>
  1295. if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  1296. 800491e: 4c90 ldr r4, [pc, #576] ; (8004b60 <HAL_RCC_OscConfig+0x270>)
  1297. 8004920: 6863 ldr r3, [r4, #4]
  1298. 8004922: f003 030c and.w r3, r3, #12
  1299. 8004926: 2b04 cmp r3, #4
  1300. 8004928: d007 beq.n 800493a <HAL_RCC_OscConfig+0x4a>
  1301. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  1302. 800492a: 6863 ldr r3, [r4, #4]
  1303. 800492c: f003 030c and.w r3, r3, #12
  1304. 8004930: 2b08 cmp r3, #8
  1305. 8004932: d10c bne.n 800494e <HAL_RCC_OscConfig+0x5e>
  1306. 8004934: 6863 ldr r3, [r4, #4]
  1307. 8004936: 03de lsls r6, r3, #15
  1308. 8004938: d509 bpl.n 800494e <HAL_RCC_OscConfig+0x5e>
  1309. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  1310. 800493a: 6823 ldr r3, [r4, #0]
  1311. 800493c: 039c lsls r4, r3, #14
  1312. 800493e: d5dd bpl.n 80048fc <HAL_RCC_OscConfig+0xc>
  1313. 8004940: 686b ldr r3, [r5, #4]
  1314. 8004942: 2b00 cmp r3, #0
  1315. 8004944: d1da bne.n 80048fc <HAL_RCC_OscConfig+0xc>
  1316. return HAL_ERROR;
  1317. 8004946: 2001 movs r0, #1
  1318. }
  1319. 8004948: b002 add sp, #8
  1320. 800494a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  1321. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  1322. 800494e: 686b ldr r3, [r5, #4]
  1323. 8004950: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  1324. 8004954: d110 bne.n 8004978 <HAL_RCC_OscConfig+0x88>
  1325. 8004956: 6823 ldr r3, [r4, #0]
  1326. 8004958: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  1327. 800495c: 6023 str r3, [r4, #0]
  1328. tickstart = HAL_GetTick();
  1329. 800495e: f7ff fcaf bl 80042c0 <HAL_GetTick>
  1330. 8004962: 4606 mov r6, r0
  1331. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  1332. 8004964: 6823 ldr r3, [r4, #0]
  1333. 8004966: 0398 lsls r0, r3, #14
  1334. 8004968: d4c8 bmi.n 80048fc <HAL_RCC_OscConfig+0xc>
  1335. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  1336. 800496a: f7ff fca9 bl 80042c0 <HAL_GetTick>
  1337. 800496e: 1b80 subs r0, r0, r6
  1338. 8004970: 2864 cmp r0, #100 ; 0x64
  1339. 8004972: d9f7 bls.n 8004964 <HAL_RCC_OscConfig+0x74>
  1340. return HAL_TIMEOUT;
  1341. 8004974: 2003 movs r0, #3
  1342. 8004976: e7e7 b.n 8004948 <HAL_RCC_OscConfig+0x58>
  1343. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  1344. 8004978: b99b cbnz r3, 80049a2 <HAL_RCC_OscConfig+0xb2>
  1345. 800497a: 6823 ldr r3, [r4, #0]
  1346. 800497c: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  1347. 8004980: 6023 str r3, [r4, #0]
  1348. 8004982: 6823 ldr r3, [r4, #0]
  1349. 8004984: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  1350. 8004988: 6023 str r3, [r4, #0]
  1351. tickstart = HAL_GetTick();
  1352. 800498a: f7ff fc99 bl 80042c0 <HAL_GetTick>
  1353. 800498e: 4606 mov r6, r0
  1354. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  1355. 8004990: 6823 ldr r3, [r4, #0]
  1356. 8004992: 0399 lsls r1, r3, #14
  1357. 8004994: d5b2 bpl.n 80048fc <HAL_RCC_OscConfig+0xc>
  1358. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  1359. 8004996: f7ff fc93 bl 80042c0 <HAL_GetTick>
  1360. 800499a: 1b80 subs r0, r0, r6
  1361. 800499c: 2864 cmp r0, #100 ; 0x64
  1362. 800499e: d9f7 bls.n 8004990 <HAL_RCC_OscConfig+0xa0>
  1363. 80049a0: e7e8 b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1364. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  1365. 80049a2: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
  1366. 80049a6: 6823 ldr r3, [r4, #0]
  1367. 80049a8: d103 bne.n 80049b2 <HAL_RCC_OscConfig+0xc2>
  1368. 80049aa: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  1369. 80049ae: 6023 str r3, [r4, #0]
  1370. 80049b0: e7d1 b.n 8004956 <HAL_RCC_OscConfig+0x66>
  1371. 80049b2: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  1372. 80049b6: 6023 str r3, [r4, #0]
  1373. 80049b8: 6823 ldr r3, [r4, #0]
  1374. 80049ba: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  1375. 80049be: e7cd b.n 800495c <HAL_RCC_OscConfig+0x6c>
  1376. if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  1377. 80049c0: 4c67 ldr r4, [pc, #412] ; (8004b60 <HAL_RCC_OscConfig+0x270>)
  1378. 80049c2: 6863 ldr r3, [r4, #4]
  1379. 80049c4: f013 0f0c tst.w r3, #12
  1380. 80049c8: d007 beq.n 80049da <HAL_RCC_OscConfig+0xea>
  1381. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2)))
  1382. 80049ca: 6863 ldr r3, [r4, #4]
  1383. 80049cc: f003 030c and.w r3, r3, #12
  1384. 80049d0: 2b08 cmp r3, #8
  1385. 80049d2: d110 bne.n 80049f6 <HAL_RCC_OscConfig+0x106>
  1386. 80049d4: 6863 ldr r3, [r4, #4]
  1387. 80049d6: 03da lsls r2, r3, #15
  1388. 80049d8: d40d bmi.n 80049f6 <HAL_RCC_OscConfig+0x106>
  1389. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  1390. 80049da: 6823 ldr r3, [r4, #0]
  1391. 80049dc: 079b lsls r3, r3, #30
  1392. 80049de: d502 bpl.n 80049e6 <HAL_RCC_OscConfig+0xf6>
  1393. 80049e0: 692b ldr r3, [r5, #16]
  1394. 80049e2: 2b01 cmp r3, #1
  1395. 80049e4: d1af bne.n 8004946 <HAL_RCC_OscConfig+0x56>
  1396. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  1397. 80049e6: 6823 ldr r3, [r4, #0]
  1398. 80049e8: 696a ldr r2, [r5, #20]
  1399. 80049ea: f023 03f8 bic.w r3, r3, #248 ; 0xf8
  1400. 80049ee: ea43 03c2 orr.w r3, r3, r2, lsl #3
  1401. 80049f2: 6023 str r3, [r4, #0]
  1402. 80049f4: e785 b.n 8004902 <HAL_RCC_OscConfig+0x12>
  1403. if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  1404. 80049f6: 692a ldr r2, [r5, #16]
  1405. 80049f8: 4b5a ldr r3, [pc, #360] ; (8004b64 <HAL_RCC_OscConfig+0x274>)
  1406. 80049fa: b16a cbz r2, 8004a18 <HAL_RCC_OscConfig+0x128>
  1407. __HAL_RCC_HSI_ENABLE();
  1408. 80049fc: 2201 movs r2, #1
  1409. 80049fe: 601a str r2, [r3, #0]
  1410. tickstart = HAL_GetTick();
  1411. 8004a00: f7ff fc5e bl 80042c0 <HAL_GetTick>
  1412. 8004a04: 4606 mov r6, r0
  1413. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  1414. 8004a06: 6823 ldr r3, [r4, #0]
  1415. 8004a08: 079f lsls r7, r3, #30
  1416. 8004a0a: d4ec bmi.n 80049e6 <HAL_RCC_OscConfig+0xf6>
  1417. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  1418. 8004a0c: f7ff fc58 bl 80042c0 <HAL_GetTick>
  1419. 8004a10: 1b80 subs r0, r0, r6
  1420. 8004a12: 2802 cmp r0, #2
  1421. 8004a14: d9f7 bls.n 8004a06 <HAL_RCC_OscConfig+0x116>
  1422. 8004a16: e7ad b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1423. __HAL_RCC_HSI_DISABLE();
  1424. 8004a18: 601a str r2, [r3, #0]
  1425. tickstart = HAL_GetTick();
  1426. 8004a1a: f7ff fc51 bl 80042c0 <HAL_GetTick>
  1427. 8004a1e: 4606 mov r6, r0
  1428. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  1429. 8004a20: 6823 ldr r3, [r4, #0]
  1430. 8004a22: 0798 lsls r0, r3, #30
  1431. 8004a24: f57f af6d bpl.w 8004902 <HAL_RCC_OscConfig+0x12>
  1432. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  1433. 8004a28: f7ff fc4a bl 80042c0 <HAL_GetTick>
  1434. 8004a2c: 1b80 subs r0, r0, r6
  1435. 8004a2e: 2802 cmp r0, #2
  1436. 8004a30: d9f6 bls.n 8004a20 <HAL_RCC_OscConfig+0x130>
  1437. 8004a32: e79f b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1438. if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  1439. 8004a34: 69aa ldr r2, [r5, #24]
  1440. 8004a36: 4c4a ldr r4, [pc, #296] ; (8004b60 <HAL_RCC_OscConfig+0x270>)
  1441. 8004a38: 4b4b ldr r3, [pc, #300] ; (8004b68 <HAL_RCC_OscConfig+0x278>)
  1442. 8004a3a: b1da cbz r2, 8004a74 <HAL_RCC_OscConfig+0x184>
  1443. __HAL_RCC_LSI_ENABLE();
  1444. 8004a3c: 2201 movs r2, #1
  1445. 8004a3e: 601a str r2, [r3, #0]
  1446. tickstart = HAL_GetTick();
  1447. 8004a40: f7ff fc3e bl 80042c0 <HAL_GetTick>
  1448. 8004a44: 4606 mov r6, r0
  1449. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  1450. 8004a46: 6a63 ldr r3, [r4, #36] ; 0x24
  1451. 8004a48: 079b lsls r3, r3, #30
  1452. 8004a4a: d50d bpl.n 8004a68 <HAL_RCC_OscConfig+0x178>
  1453. * @param mdelay: specifies the delay time length, in milliseconds.
  1454. * @retval None
  1455. */
  1456. static void RCC_Delay(uint32_t mdelay)
  1457. {
  1458. __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U);
  1459. 8004a4c: f44f 52fa mov.w r2, #8000 ; 0x1f40
  1460. 8004a50: 4b46 ldr r3, [pc, #280] ; (8004b6c <HAL_RCC_OscConfig+0x27c>)
  1461. 8004a52: 681b ldr r3, [r3, #0]
  1462. 8004a54: fbb3 f3f2 udiv r3, r3, r2
  1463. 8004a58: 9301 str r3, [sp, #4]
  1464. \brief No Operation
  1465. \details No Operation does nothing. This instruction can be used for code alignment purposes.
  1466. */
  1467. __attribute__((always_inline)) __STATIC_INLINE void __NOP(void)
  1468. {
  1469. __ASM volatile ("nop");
  1470. 8004a5a: bf00 nop
  1471. do
  1472. {
  1473. __NOP();
  1474. }
  1475. while (Delay --);
  1476. 8004a5c: 9b01 ldr r3, [sp, #4]
  1477. 8004a5e: 1e5a subs r2, r3, #1
  1478. 8004a60: 9201 str r2, [sp, #4]
  1479. 8004a62: 2b00 cmp r3, #0
  1480. 8004a64: d1f9 bne.n 8004a5a <HAL_RCC_OscConfig+0x16a>
  1481. 8004a66: e750 b.n 800490a <HAL_RCC_OscConfig+0x1a>
  1482. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  1483. 8004a68: f7ff fc2a bl 80042c0 <HAL_GetTick>
  1484. 8004a6c: 1b80 subs r0, r0, r6
  1485. 8004a6e: 2802 cmp r0, #2
  1486. 8004a70: d9e9 bls.n 8004a46 <HAL_RCC_OscConfig+0x156>
  1487. 8004a72: e77f b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1488. __HAL_RCC_LSI_DISABLE();
  1489. 8004a74: 601a str r2, [r3, #0]
  1490. tickstart = HAL_GetTick();
  1491. 8004a76: f7ff fc23 bl 80042c0 <HAL_GetTick>
  1492. 8004a7a: 4606 mov r6, r0
  1493. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  1494. 8004a7c: 6a63 ldr r3, [r4, #36] ; 0x24
  1495. 8004a7e: 079f lsls r7, r3, #30
  1496. 8004a80: f57f af43 bpl.w 800490a <HAL_RCC_OscConfig+0x1a>
  1497. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  1498. 8004a84: f7ff fc1c bl 80042c0 <HAL_GetTick>
  1499. 8004a88: 1b80 subs r0, r0, r6
  1500. 8004a8a: 2802 cmp r0, #2
  1501. 8004a8c: d9f6 bls.n 8004a7c <HAL_RCC_OscConfig+0x18c>
  1502. 8004a8e: e771 b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1503. if(__HAL_RCC_PWR_IS_CLK_DISABLED())
  1504. 8004a90: 4c33 ldr r4, [pc, #204] ; (8004b60 <HAL_RCC_OscConfig+0x270>)
  1505. 8004a92: 69e3 ldr r3, [r4, #28]
  1506. 8004a94: 00d8 lsls r0, r3, #3
  1507. 8004a96: d424 bmi.n 8004ae2 <HAL_RCC_OscConfig+0x1f2>
  1508. pwrclkchanged = SET;
  1509. 8004a98: 2701 movs r7, #1
  1510. __HAL_RCC_PWR_CLK_ENABLE();
  1511. 8004a9a: 69e3 ldr r3, [r4, #28]
  1512. 8004a9c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  1513. 8004aa0: 61e3 str r3, [r4, #28]
  1514. 8004aa2: 69e3 ldr r3, [r4, #28]
  1515. 8004aa4: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  1516. 8004aa8: 9300 str r3, [sp, #0]
  1517. 8004aaa: 9b00 ldr r3, [sp, #0]
  1518. if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  1519. 8004aac: 4e30 ldr r6, [pc, #192] ; (8004b70 <HAL_RCC_OscConfig+0x280>)
  1520. 8004aae: 6833 ldr r3, [r6, #0]
  1521. 8004ab0: 05d9 lsls r1, r3, #23
  1522. 8004ab2: d518 bpl.n 8004ae6 <HAL_RCC_OscConfig+0x1f6>
  1523. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  1524. 8004ab4: 68eb ldr r3, [r5, #12]
  1525. 8004ab6: 2b01 cmp r3, #1
  1526. 8004ab8: d126 bne.n 8004b08 <HAL_RCC_OscConfig+0x218>
  1527. 8004aba: 6a23 ldr r3, [r4, #32]
  1528. 8004abc: f043 0301 orr.w r3, r3, #1
  1529. 8004ac0: 6223 str r3, [r4, #32]
  1530. tickstart = HAL_GetTick();
  1531. 8004ac2: f7ff fbfd bl 80042c0 <HAL_GetTick>
  1532. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  1533. 8004ac6: f241 3688 movw r6, #5000 ; 0x1388
  1534. tickstart = HAL_GetTick();
  1535. 8004aca: 4680 mov r8, r0
  1536. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  1537. 8004acc: 6a23 ldr r3, [r4, #32]
  1538. 8004ace: 079b lsls r3, r3, #30
  1539. 8004ad0: d53f bpl.n 8004b52 <HAL_RCC_OscConfig+0x262>
  1540. if(pwrclkchanged == SET)
  1541. 8004ad2: 2f00 cmp r7, #0
  1542. 8004ad4: f43f af1d beq.w 8004912 <HAL_RCC_OscConfig+0x22>
  1543. __HAL_RCC_PWR_CLK_DISABLE();
  1544. 8004ad8: 69e3 ldr r3, [r4, #28]
  1545. 8004ada: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  1546. 8004ade: 61e3 str r3, [r4, #28]
  1547. 8004ae0: e717 b.n 8004912 <HAL_RCC_OscConfig+0x22>
  1548. FlagStatus pwrclkchanged = RESET;
  1549. 8004ae2: 2700 movs r7, #0
  1550. 8004ae4: e7e2 b.n 8004aac <HAL_RCC_OscConfig+0x1bc>
  1551. SET_BIT(PWR->CR, PWR_CR_DBP);
  1552. 8004ae6: 6833 ldr r3, [r6, #0]
  1553. 8004ae8: f443 7380 orr.w r3, r3, #256 ; 0x100
  1554. 8004aec: 6033 str r3, [r6, #0]
  1555. tickstart = HAL_GetTick();
  1556. 8004aee: f7ff fbe7 bl 80042c0 <HAL_GetTick>
  1557. 8004af2: 4680 mov r8, r0
  1558. while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  1559. 8004af4: 6833 ldr r3, [r6, #0]
  1560. 8004af6: 05da lsls r2, r3, #23
  1561. 8004af8: d4dc bmi.n 8004ab4 <HAL_RCC_OscConfig+0x1c4>
  1562. if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  1563. 8004afa: f7ff fbe1 bl 80042c0 <HAL_GetTick>
  1564. 8004afe: eba0 0008 sub.w r0, r0, r8
  1565. 8004b02: 2864 cmp r0, #100 ; 0x64
  1566. 8004b04: d9f6 bls.n 8004af4 <HAL_RCC_OscConfig+0x204>
  1567. 8004b06: e735 b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1568. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  1569. 8004b08: b9ab cbnz r3, 8004b36 <HAL_RCC_OscConfig+0x246>
  1570. 8004b0a: 6a23 ldr r3, [r4, #32]
  1571. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  1572. 8004b0c: f241 3888 movw r8, #5000 ; 0x1388
  1573. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  1574. 8004b10: f023 0301 bic.w r3, r3, #1
  1575. 8004b14: 6223 str r3, [r4, #32]
  1576. 8004b16: 6a23 ldr r3, [r4, #32]
  1577. 8004b18: f023 0304 bic.w r3, r3, #4
  1578. 8004b1c: 6223 str r3, [r4, #32]
  1579. tickstart = HAL_GetTick();
  1580. 8004b1e: f7ff fbcf bl 80042c0 <HAL_GetTick>
  1581. 8004b22: 4606 mov r6, r0
  1582. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  1583. 8004b24: 6a23 ldr r3, [r4, #32]
  1584. 8004b26: 0798 lsls r0, r3, #30
  1585. 8004b28: d5d3 bpl.n 8004ad2 <HAL_RCC_OscConfig+0x1e2>
  1586. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  1587. 8004b2a: f7ff fbc9 bl 80042c0 <HAL_GetTick>
  1588. 8004b2e: 1b80 subs r0, r0, r6
  1589. 8004b30: 4540 cmp r0, r8
  1590. 8004b32: d9f7 bls.n 8004b24 <HAL_RCC_OscConfig+0x234>
  1591. 8004b34: e71e b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1592. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  1593. 8004b36: 2b05 cmp r3, #5
  1594. 8004b38: 6a23 ldr r3, [r4, #32]
  1595. 8004b3a: d103 bne.n 8004b44 <HAL_RCC_OscConfig+0x254>
  1596. 8004b3c: f043 0304 orr.w r3, r3, #4
  1597. 8004b40: 6223 str r3, [r4, #32]
  1598. 8004b42: e7ba b.n 8004aba <HAL_RCC_OscConfig+0x1ca>
  1599. 8004b44: f023 0301 bic.w r3, r3, #1
  1600. 8004b48: 6223 str r3, [r4, #32]
  1601. 8004b4a: 6a23 ldr r3, [r4, #32]
  1602. 8004b4c: f023 0304 bic.w r3, r3, #4
  1603. 8004b50: e7b6 b.n 8004ac0 <HAL_RCC_OscConfig+0x1d0>
  1604. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  1605. 8004b52: f7ff fbb5 bl 80042c0 <HAL_GetTick>
  1606. 8004b56: eba0 0008 sub.w r0, r0, r8
  1607. 8004b5a: 42b0 cmp r0, r6
  1608. 8004b5c: d9b6 bls.n 8004acc <HAL_RCC_OscConfig+0x1dc>
  1609. 8004b5e: e709 b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1610. 8004b60: 40021000 .word 0x40021000
  1611. 8004b64: 42420000 .word 0x42420000
  1612. 8004b68: 42420480 .word 0x42420480
  1613. 8004b6c: 20000008 .word 0x20000008
  1614. 8004b70: 40007000 .word 0x40007000
  1615. if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  1616. 8004b74: 4c22 ldr r4, [pc, #136] ; (8004c00 <HAL_RCC_OscConfig+0x310>)
  1617. 8004b76: 6863 ldr r3, [r4, #4]
  1618. 8004b78: f003 030c and.w r3, r3, #12
  1619. 8004b7c: 2b08 cmp r3, #8
  1620. 8004b7e: f43f aee2 beq.w 8004946 <HAL_RCC_OscConfig+0x56>
  1621. 8004b82: 2300 movs r3, #0
  1622. 8004b84: 4e1f ldr r6, [pc, #124] ; (8004c04 <HAL_RCC_OscConfig+0x314>)
  1623. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  1624. 8004b86: 2a02 cmp r2, #2
  1625. __HAL_RCC_PLL_DISABLE();
  1626. 8004b88: 6033 str r3, [r6, #0]
  1627. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  1628. 8004b8a: d12b bne.n 8004be4 <HAL_RCC_OscConfig+0x2f4>
  1629. tickstart = HAL_GetTick();
  1630. 8004b8c: f7ff fb98 bl 80042c0 <HAL_GetTick>
  1631. 8004b90: 4607 mov r7, r0
  1632. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  1633. 8004b92: 6823 ldr r3, [r4, #0]
  1634. 8004b94: 0199 lsls r1, r3, #6
  1635. 8004b96: d41f bmi.n 8004bd8 <HAL_RCC_OscConfig+0x2e8>
  1636. if(RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE)
  1637. 8004b98: 6a2b ldr r3, [r5, #32]
  1638. 8004b9a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  1639. 8004b9e: d105 bne.n 8004bac <HAL_RCC_OscConfig+0x2bc>
  1640. __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue);
  1641. 8004ba0: 6862 ldr r2, [r4, #4]
  1642. 8004ba2: 68a9 ldr r1, [r5, #8]
  1643. 8004ba4: f422 3200 bic.w r2, r2, #131072 ; 0x20000
  1644. 8004ba8: 430a orrs r2, r1
  1645. 8004baa: 6062 str r2, [r4, #4]
  1646. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  1647. 8004bac: 6a69 ldr r1, [r5, #36] ; 0x24
  1648. 8004bae: 6862 ldr r2, [r4, #4]
  1649. 8004bb0: 430b orrs r3, r1
  1650. 8004bb2: f422 1274 bic.w r2, r2, #3997696 ; 0x3d0000
  1651. 8004bb6: 4313 orrs r3, r2
  1652. 8004bb8: 6063 str r3, [r4, #4]
  1653. __HAL_RCC_PLL_ENABLE();
  1654. 8004bba: 2301 movs r3, #1
  1655. 8004bbc: 6033 str r3, [r6, #0]
  1656. tickstart = HAL_GetTick();
  1657. 8004bbe: f7ff fb7f bl 80042c0 <HAL_GetTick>
  1658. 8004bc2: 4605 mov r5, r0
  1659. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  1660. 8004bc4: 6823 ldr r3, [r4, #0]
  1661. 8004bc6: 019a lsls r2, r3, #6
  1662. 8004bc8: f53f aea7 bmi.w 800491a <HAL_RCC_OscConfig+0x2a>
  1663. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  1664. 8004bcc: f7ff fb78 bl 80042c0 <HAL_GetTick>
  1665. 8004bd0: 1b40 subs r0, r0, r5
  1666. 8004bd2: 2802 cmp r0, #2
  1667. 8004bd4: d9f6 bls.n 8004bc4 <HAL_RCC_OscConfig+0x2d4>
  1668. 8004bd6: e6cd b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1669. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  1670. 8004bd8: f7ff fb72 bl 80042c0 <HAL_GetTick>
  1671. 8004bdc: 1bc0 subs r0, r0, r7
  1672. 8004bde: 2802 cmp r0, #2
  1673. 8004be0: d9d7 bls.n 8004b92 <HAL_RCC_OscConfig+0x2a2>
  1674. 8004be2: e6c7 b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1675. tickstart = HAL_GetTick();
  1676. 8004be4: f7ff fb6c bl 80042c0 <HAL_GetTick>
  1677. 8004be8: 4605 mov r5, r0
  1678. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  1679. 8004bea: 6823 ldr r3, [r4, #0]
  1680. 8004bec: 019b lsls r3, r3, #6
  1681. 8004bee: f57f ae94 bpl.w 800491a <HAL_RCC_OscConfig+0x2a>
  1682. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  1683. 8004bf2: f7ff fb65 bl 80042c0 <HAL_GetTick>
  1684. 8004bf6: 1b40 subs r0, r0, r5
  1685. 8004bf8: 2802 cmp r0, #2
  1686. 8004bfa: d9f6 bls.n 8004bea <HAL_RCC_OscConfig+0x2fa>
  1687. 8004bfc: e6ba b.n 8004974 <HAL_RCC_OscConfig+0x84>
  1688. 8004bfe: bf00 nop
  1689. 8004c00: 40021000 .word 0x40021000
  1690. 8004c04: 42420060 .word 0x42420060
  1691. 08004c08 <HAL_RCC_GetSysClockFreq>:
  1692. {
  1693. 8004c08: b530 push {r4, r5, lr}
  1694. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  1695. 8004c0a: 4b19 ldr r3, [pc, #100] ; (8004c70 <HAL_RCC_GetSysClockFreq+0x68>)
  1696. {
  1697. 8004c0c: b087 sub sp, #28
  1698. const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16};
  1699. 8004c0e: ac02 add r4, sp, #8
  1700. 8004c10: f103 0510 add.w r5, r3, #16
  1701. 8004c14: 4622 mov r2, r4
  1702. 8004c16: 6818 ldr r0, [r3, #0]
  1703. 8004c18: 6859 ldr r1, [r3, #4]
  1704. 8004c1a: 3308 adds r3, #8
  1705. 8004c1c: c203 stmia r2!, {r0, r1}
  1706. 8004c1e: 42ab cmp r3, r5
  1707. 8004c20: 4614 mov r4, r2
  1708. 8004c22: d1f7 bne.n 8004c14 <HAL_RCC_GetSysClockFreq+0xc>
  1709. const uint8_t aPredivFactorTable[2] = {1, 2};
  1710. 8004c24: 2301 movs r3, #1
  1711. 8004c26: f88d 3004 strb.w r3, [sp, #4]
  1712. 8004c2a: 2302 movs r3, #2
  1713. tmpreg = RCC->CFGR;
  1714. 8004c2c: 4911 ldr r1, [pc, #68] ; (8004c74 <HAL_RCC_GetSysClockFreq+0x6c>)
  1715. const uint8_t aPredivFactorTable[2] = {1, 2};
  1716. 8004c2e: f88d 3005 strb.w r3, [sp, #5]
  1717. tmpreg = RCC->CFGR;
  1718. 8004c32: 684b ldr r3, [r1, #4]
  1719. switch (tmpreg & RCC_CFGR_SWS)
  1720. 8004c34: f003 020c and.w r2, r3, #12
  1721. 8004c38: 2a08 cmp r2, #8
  1722. 8004c3a: d117 bne.n 8004c6c <HAL_RCC_GetSysClockFreq+0x64>
  1723. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos];
  1724. 8004c3c: f3c3 4283 ubfx r2, r3, #18, #4
  1725. 8004c40: a806 add r0, sp, #24
  1726. 8004c42: 4402 add r2, r0
  1727. if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2)
  1728. 8004c44: 03db lsls r3, r3, #15
  1729. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos];
  1730. 8004c46: f812 2c10 ldrb.w r2, [r2, #-16]
  1731. if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2)
  1732. 8004c4a: d50c bpl.n 8004c66 <HAL_RCC_GetSysClockFreq+0x5e>
  1733. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos];
  1734. 8004c4c: 684b ldr r3, [r1, #4]
  1735. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  1736. 8004c4e: 480a ldr r0, [pc, #40] ; (8004c78 <HAL_RCC_GetSysClockFreq+0x70>)
  1737. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos];
  1738. 8004c50: f3c3 4340 ubfx r3, r3, #17, #1
  1739. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  1740. 8004c54: 4350 muls r0, r2
  1741. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos];
  1742. 8004c56: aa06 add r2, sp, #24
  1743. 8004c58: 4413 add r3, r2
  1744. 8004c5a: f813 3c14 ldrb.w r3, [r3, #-20]
  1745. pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv);
  1746. 8004c5e: fbb0 f0f3 udiv r0, r0, r3
  1747. }
  1748. 8004c62: b007 add sp, #28
  1749. 8004c64: bd30 pop {r4, r5, pc}
  1750. pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul);
  1751. 8004c66: 4805 ldr r0, [pc, #20] ; (8004c7c <HAL_RCC_GetSysClockFreq+0x74>)
  1752. 8004c68: 4350 muls r0, r2
  1753. 8004c6a: e7fa b.n 8004c62 <HAL_RCC_GetSysClockFreq+0x5a>
  1754. sysclockfreq = HSE_VALUE;
  1755. 8004c6c: 4802 ldr r0, [pc, #8] ; (8004c78 <HAL_RCC_GetSysClockFreq+0x70>)
  1756. return sysclockfreq;
  1757. 8004c6e: e7f8 b.n 8004c62 <HAL_RCC_GetSysClockFreq+0x5a>
  1758. 8004c70: 0800769c .word 0x0800769c
  1759. 8004c74: 40021000 .word 0x40021000
  1760. 8004c78: 007a1200 .word 0x007a1200
  1761. 8004c7c: 003d0900 .word 0x003d0900
  1762. 08004c80 <HAL_RCC_ClockConfig>:
  1763. if(FLatency > (FLASH->ACR & FLASH_ACR_LATENCY))
  1764. 8004c80: 4a54 ldr r2, [pc, #336] ; (8004dd4 <HAL_RCC_ClockConfig+0x154>)
  1765. {
  1766. 8004c82: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  1767. if(FLatency > (FLASH->ACR & FLASH_ACR_LATENCY))
  1768. 8004c86: 6813 ldr r3, [r2, #0]
  1769. {
  1770. 8004c88: 4605 mov r5, r0
  1771. if(FLatency > (FLASH->ACR & FLASH_ACR_LATENCY))
  1772. 8004c8a: f003 0307 and.w r3, r3, #7
  1773. 8004c8e: 428b cmp r3, r1
  1774. {
  1775. 8004c90: 460e mov r6, r1
  1776. if(FLatency > (FLASH->ACR & FLASH_ACR_LATENCY))
  1777. 8004c92: d32a bcc.n 8004cea <HAL_RCC_ClockConfig+0x6a>
  1778. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  1779. 8004c94: 6829 ldr r1, [r5, #0]
  1780. 8004c96: 078c lsls r4, r1, #30
  1781. 8004c98: d434 bmi.n 8004d04 <HAL_RCC_ClockConfig+0x84>
  1782. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  1783. 8004c9a: 07ca lsls r2, r1, #31
  1784. 8004c9c: d447 bmi.n 8004d2e <HAL_RCC_ClockConfig+0xae>
  1785. if(FLatency < (FLASH->ACR & FLASH_ACR_LATENCY))
  1786. 8004c9e: 4a4d ldr r2, [pc, #308] ; (8004dd4 <HAL_RCC_ClockConfig+0x154>)
  1787. 8004ca0: 6813 ldr r3, [r2, #0]
  1788. 8004ca2: f003 0307 and.w r3, r3, #7
  1789. 8004ca6: 429e cmp r6, r3
  1790. 8004ca8: f0c0 8082 bcc.w 8004db0 <HAL_RCC_ClockConfig+0x130>
  1791. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  1792. 8004cac: 682a ldr r2, [r5, #0]
  1793. 8004cae: 4c4a ldr r4, [pc, #296] ; (8004dd8 <HAL_RCC_ClockConfig+0x158>)
  1794. 8004cb0: f012 0f04 tst.w r2, #4
  1795. 8004cb4: f040 8087 bne.w 8004dc6 <HAL_RCC_ClockConfig+0x146>
  1796. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  1797. 8004cb8: 0713 lsls r3, r2, #28
  1798. 8004cba: d506 bpl.n 8004cca <HAL_RCC_ClockConfig+0x4a>
  1799. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
  1800. 8004cbc: 6863 ldr r3, [r4, #4]
  1801. 8004cbe: 692a ldr r2, [r5, #16]
  1802. 8004cc0: f423 5360 bic.w r3, r3, #14336 ; 0x3800
  1803. 8004cc4: ea43 03c2 orr.w r3, r3, r2, lsl #3
  1804. 8004cc8: 6063 str r3, [r4, #4]
  1805. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos];
  1806. 8004cca: f7ff ff9d bl 8004c08 <HAL_RCC_GetSysClockFreq>
  1807. 8004cce: 6863 ldr r3, [r4, #4]
  1808. 8004cd0: 4a42 ldr r2, [pc, #264] ; (8004ddc <HAL_RCC_ClockConfig+0x15c>)
  1809. 8004cd2: f3c3 1303 ubfx r3, r3, #4, #4
  1810. 8004cd6: 5cd3 ldrb r3, [r2, r3]
  1811. 8004cd8: 40d8 lsrs r0, r3
  1812. 8004cda: 4b41 ldr r3, [pc, #260] ; (8004de0 <HAL_RCC_ClockConfig+0x160>)
  1813. 8004cdc: 6018 str r0, [r3, #0]
  1814. HAL_InitTick (TICK_INT_PRIORITY);
  1815. 8004cde: 2000 movs r0, #0
  1816. 8004ce0: f7ff faac bl 800423c <HAL_InitTick>
  1817. return HAL_OK;
  1818. 8004ce4: 2000 movs r0, #0
  1819. }
  1820. 8004ce6: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  1821. __HAL_FLASH_SET_LATENCY(FLatency);
  1822. 8004cea: 6813 ldr r3, [r2, #0]
  1823. 8004cec: f023 0307 bic.w r3, r3, #7
  1824. 8004cf0: 430b orrs r3, r1
  1825. 8004cf2: 6013 str r3, [r2, #0]
  1826. if((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency)
  1827. 8004cf4: 6813 ldr r3, [r2, #0]
  1828. 8004cf6: f003 0307 and.w r3, r3, #7
  1829. 8004cfa: 4299 cmp r1, r3
  1830. 8004cfc: d0ca beq.n 8004c94 <HAL_RCC_ClockConfig+0x14>
  1831. return HAL_ERROR;
  1832. 8004cfe: 2001 movs r0, #1
  1833. 8004d00: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  1834. 8004d04: 4b34 ldr r3, [pc, #208] ; (8004dd8 <HAL_RCC_ClockConfig+0x158>)
  1835. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  1836. 8004d06: f011 0f04 tst.w r1, #4
  1837. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
  1838. 8004d0a: bf1e ittt ne
  1839. 8004d0c: 685a ldrne r2, [r3, #4]
  1840. 8004d0e: f442 62e0 orrne.w r2, r2, #1792 ; 0x700
  1841. 8004d12: 605a strne r2, [r3, #4]
  1842. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  1843. 8004d14: 0708 lsls r0, r1, #28
  1844. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
  1845. 8004d16: bf42 ittt mi
  1846. 8004d18: 685a ldrmi r2, [r3, #4]
  1847. 8004d1a: f442 5260 orrmi.w r2, r2, #14336 ; 0x3800
  1848. 8004d1e: 605a strmi r2, [r3, #4]
  1849. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  1850. 8004d20: 685a ldr r2, [r3, #4]
  1851. 8004d22: 68a8 ldr r0, [r5, #8]
  1852. 8004d24: f022 02f0 bic.w r2, r2, #240 ; 0xf0
  1853. 8004d28: 4302 orrs r2, r0
  1854. 8004d2a: 605a str r2, [r3, #4]
  1855. 8004d2c: e7b5 b.n 8004c9a <HAL_RCC_ClockConfig+0x1a>
  1856. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  1857. 8004d2e: 686a ldr r2, [r5, #4]
  1858. 8004d30: 4c29 ldr r4, [pc, #164] ; (8004dd8 <HAL_RCC_ClockConfig+0x158>)
  1859. 8004d32: 2a01 cmp r2, #1
  1860. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  1861. 8004d34: 6823 ldr r3, [r4, #0]
  1862. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  1863. 8004d36: d11c bne.n 8004d72 <HAL_RCC_ClockConfig+0xf2>
  1864. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  1865. 8004d38: f413 3f00 tst.w r3, #131072 ; 0x20000
  1866. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  1867. 8004d3c: d0df beq.n 8004cfe <HAL_RCC_ClockConfig+0x7e>
  1868. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  1869. 8004d3e: 6863 ldr r3, [r4, #4]
  1870. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  1871. 8004d40: f241 3888 movw r8, #5000 ; 0x1388
  1872. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  1873. 8004d44: f023 0303 bic.w r3, r3, #3
  1874. 8004d48: 4313 orrs r3, r2
  1875. 8004d4a: 6063 str r3, [r4, #4]
  1876. tickstart = HAL_GetTick();
  1877. 8004d4c: f7ff fab8 bl 80042c0 <HAL_GetTick>
  1878. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  1879. 8004d50: 686b ldr r3, [r5, #4]
  1880. tickstart = HAL_GetTick();
  1881. 8004d52: 4607 mov r7, r0
  1882. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  1883. 8004d54: 2b01 cmp r3, #1
  1884. 8004d56: d114 bne.n 8004d82 <HAL_RCC_ClockConfig+0x102>
  1885. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
  1886. 8004d58: 6863 ldr r3, [r4, #4]
  1887. 8004d5a: f003 030c and.w r3, r3, #12
  1888. 8004d5e: 2b04 cmp r3, #4
  1889. 8004d60: d09d beq.n 8004c9e <HAL_RCC_ClockConfig+0x1e>
  1890. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  1891. 8004d62: f7ff faad bl 80042c0 <HAL_GetTick>
  1892. 8004d66: 1bc0 subs r0, r0, r7
  1893. 8004d68: 4540 cmp r0, r8
  1894. 8004d6a: d9f5 bls.n 8004d58 <HAL_RCC_ClockConfig+0xd8>
  1895. return HAL_TIMEOUT;
  1896. 8004d6c: 2003 movs r0, #3
  1897. 8004d6e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  1898. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  1899. 8004d72: 2a02 cmp r2, #2
  1900. 8004d74: d102 bne.n 8004d7c <HAL_RCC_ClockConfig+0xfc>
  1901. if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  1902. 8004d76: f013 7f00 tst.w r3, #33554432 ; 0x2000000
  1903. 8004d7a: e7df b.n 8004d3c <HAL_RCC_ClockConfig+0xbc>
  1904. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  1905. 8004d7c: f013 0f02 tst.w r3, #2
  1906. 8004d80: e7dc b.n 8004d3c <HAL_RCC_ClockConfig+0xbc>
  1907. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  1908. 8004d82: 2b02 cmp r3, #2
  1909. 8004d84: d10f bne.n 8004da6 <HAL_RCC_ClockConfig+0x126>
  1910. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  1911. 8004d86: 6863 ldr r3, [r4, #4]
  1912. 8004d88: f003 030c and.w r3, r3, #12
  1913. 8004d8c: 2b08 cmp r3, #8
  1914. 8004d8e: d086 beq.n 8004c9e <HAL_RCC_ClockConfig+0x1e>
  1915. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  1916. 8004d90: f7ff fa96 bl 80042c0 <HAL_GetTick>
  1917. 8004d94: 1bc0 subs r0, r0, r7
  1918. 8004d96: 4540 cmp r0, r8
  1919. 8004d98: d9f5 bls.n 8004d86 <HAL_RCC_ClockConfig+0x106>
  1920. 8004d9a: e7e7 b.n 8004d6c <HAL_RCC_ClockConfig+0xec>
  1921. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  1922. 8004d9c: f7ff fa90 bl 80042c0 <HAL_GetTick>
  1923. 8004da0: 1bc0 subs r0, r0, r7
  1924. 8004da2: 4540 cmp r0, r8
  1925. 8004da4: d8e2 bhi.n 8004d6c <HAL_RCC_ClockConfig+0xec>
  1926. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
  1927. 8004da6: 6863 ldr r3, [r4, #4]
  1928. 8004da8: f013 0f0c tst.w r3, #12
  1929. 8004dac: d1f6 bne.n 8004d9c <HAL_RCC_ClockConfig+0x11c>
  1930. 8004dae: e776 b.n 8004c9e <HAL_RCC_ClockConfig+0x1e>
  1931. __HAL_FLASH_SET_LATENCY(FLatency);
  1932. 8004db0: 6813 ldr r3, [r2, #0]
  1933. 8004db2: f023 0307 bic.w r3, r3, #7
  1934. 8004db6: 4333 orrs r3, r6
  1935. 8004db8: 6013 str r3, [r2, #0]
  1936. if((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency)
  1937. 8004dba: 6813 ldr r3, [r2, #0]
  1938. 8004dbc: f003 0307 and.w r3, r3, #7
  1939. 8004dc0: 429e cmp r6, r3
  1940. 8004dc2: d19c bne.n 8004cfe <HAL_RCC_ClockConfig+0x7e>
  1941. 8004dc4: e772 b.n 8004cac <HAL_RCC_ClockConfig+0x2c>
  1942. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  1943. 8004dc6: 6863 ldr r3, [r4, #4]
  1944. 8004dc8: 68e9 ldr r1, [r5, #12]
  1945. 8004dca: f423 63e0 bic.w r3, r3, #1792 ; 0x700
  1946. 8004dce: 430b orrs r3, r1
  1947. 8004dd0: 6063 str r3, [r4, #4]
  1948. 8004dd2: e771 b.n 8004cb8 <HAL_RCC_ClockConfig+0x38>
  1949. 8004dd4: 40022000 .word 0x40022000
  1950. 8004dd8: 40021000 .word 0x40021000
  1951. 8004ddc: 0800778e .word 0x0800778e
  1952. 8004de0: 20000008 .word 0x20000008
  1953. 08004de4 <HAL_RCC_GetPCLK1Freq>:
  1954. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  1955. 8004de4: 4b04 ldr r3, [pc, #16] ; (8004df8 <HAL_RCC_GetPCLK1Freq+0x14>)
  1956. 8004de6: 4a05 ldr r2, [pc, #20] ; (8004dfc <HAL_RCC_GetPCLK1Freq+0x18>)
  1957. 8004de8: 685b ldr r3, [r3, #4]
  1958. 8004dea: f3c3 2302 ubfx r3, r3, #8, #3
  1959. 8004dee: 5cd3 ldrb r3, [r2, r3]
  1960. 8004df0: 4a03 ldr r2, [pc, #12] ; (8004e00 <HAL_RCC_GetPCLK1Freq+0x1c>)
  1961. 8004df2: 6810 ldr r0, [r2, #0]
  1962. }
  1963. 8004df4: 40d8 lsrs r0, r3
  1964. 8004df6: 4770 bx lr
  1965. 8004df8: 40021000 .word 0x40021000
  1966. 8004dfc: 0800779e .word 0x0800779e
  1967. 8004e00: 20000008 .word 0x20000008
  1968. 08004e04 <HAL_RCC_GetPCLK2Freq>:
  1969. return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  1970. 8004e04: 4b04 ldr r3, [pc, #16] ; (8004e18 <HAL_RCC_GetPCLK2Freq+0x14>)
  1971. 8004e06: 4a05 ldr r2, [pc, #20] ; (8004e1c <HAL_RCC_GetPCLK2Freq+0x18>)
  1972. 8004e08: 685b ldr r3, [r3, #4]
  1973. 8004e0a: f3c3 23c2 ubfx r3, r3, #11, #3
  1974. 8004e0e: 5cd3 ldrb r3, [r2, r3]
  1975. 8004e10: 4a03 ldr r2, [pc, #12] ; (8004e20 <HAL_RCC_GetPCLK2Freq+0x1c>)
  1976. 8004e12: 6810 ldr r0, [r2, #0]
  1977. }
  1978. 8004e14: 40d8 lsrs r0, r3
  1979. 8004e16: 4770 bx lr
  1980. 8004e18: 40021000 .word 0x40021000
  1981. 8004e1c: 0800779e .word 0x0800779e
  1982. 8004e20: 20000008 .word 0x20000008
  1983. 08004e24 <HAL_SPI_Init>:
  1984. * @param hspi: pointer to a SPI_HandleTypeDef structure that contains
  1985. * the configuration information for SPI module.
  1986. * @retval HAL status
  1987. */
  1988. HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi)
  1989. {
  1990. 8004e24: b510 push {r4, lr}
  1991. /* Check the SPI handle allocation */
  1992. if(hspi == NULL)
  1993. 8004e26: 4604 mov r4, r0
  1994. 8004e28: 2800 cmp r0, #0
  1995. 8004e2a: d034 beq.n 8004e96 <HAL_SPI_Init+0x72>
  1996. if(hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)
  1997. {
  1998. assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial));
  1999. }
  2000. #else
  2001. hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
  2002. 8004e2c: 2300 movs r3, #0
  2003. 8004e2e: 6283 str r3, [r0, #40] ; 0x28
  2004. #endif /* USE_SPI_CRC */
  2005. if(hspi->State == HAL_SPI_STATE_RESET)
  2006. 8004e30: f890 3051 ldrb.w r3, [r0, #81] ; 0x51
  2007. 8004e34: b90b cbnz r3, 8004e3a <HAL_SPI_Init+0x16>
  2008. {
  2009. /* Init the low level hardware : GPIO, CLOCK, NVIC... */
  2010. HAL_SPI_MspInit(hspi);
  2011. 8004e36: f001 fa59 bl 80062ec <HAL_SPI_MspInit>
  2012. }
  2013. hspi->State = HAL_SPI_STATE_BUSY;
  2014. 8004e3a: 2302 movs r3, #2
  2015. /* Disble the selected SPI peripheral */
  2016. __HAL_SPI_DISABLE(hspi);
  2017. 8004e3c: 6821 ldr r1, [r4, #0]
  2018. hspi->State = HAL_SPI_STATE_BUSY;
  2019. 8004e3e: f884 3051 strb.w r3, [r4, #81] ; 0x51
  2020. __HAL_SPI_DISABLE(hspi);
  2021. 8004e42: 680b ldr r3, [r1, #0]
  2022. /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/
  2023. /* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management,
  2024. Communication speed, First bit and CRC calculation state */
  2025. WRITE_REG(hspi->Instance->CR1, (hspi->Init.Mode | hspi->Init.Direction | hspi->Init.DataSize |
  2026. 8004e44: 68a0 ldr r0, [r4, #8]
  2027. __HAL_SPI_DISABLE(hspi);
  2028. 8004e46: f023 0340 bic.w r3, r3, #64 ; 0x40
  2029. 8004e4a: 600b str r3, [r1, #0]
  2030. WRITE_REG(hspi->Instance->CR1, (hspi->Init.Mode | hspi->Init.Direction | hspi->Init.DataSize |
  2031. 8004e4c: 6863 ldr r3, [r4, #4]
  2032. 8004e4e: 69a2 ldr r2, [r4, #24]
  2033. 8004e50: 4303 orrs r3, r0
  2034. 8004e52: 68e0 ldr r0, [r4, #12]
  2035. 8004e54: 4303 orrs r3, r0
  2036. 8004e56: 6920 ldr r0, [r4, #16]
  2037. 8004e58: 4303 orrs r3, r0
  2038. 8004e5a: 6960 ldr r0, [r4, #20]
  2039. 8004e5c: 4303 orrs r3, r0
  2040. 8004e5e: 69e0 ldr r0, [r4, #28]
  2041. 8004e60: 4303 orrs r3, r0
  2042. 8004e62: 6a20 ldr r0, [r4, #32]
  2043. 8004e64: 4303 orrs r3, r0
  2044. 8004e66: 6aa0 ldr r0, [r4, #40] ; 0x28
  2045. 8004e68: 4303 orrs r3, r0
  2046. 8004e6a: f402 7000 and.w r0, r2, #512 ; 0x200
  2047. 8004e6e: 4303 orrs r3, r0
  2048. 8004e70: 600b str r3, [r1, #0]
  2049. hspi->Init.CLKPolarity | hspi->Init.CLKPhase | (hspi->Init.NSS & SPI_CR1_SSM) |
  2050. hspi->Init.BaudRatePrescaler | hspi->Init.FirstBit | hspi->Init.CRCCalculation) );
  2051. /* Configure : NSS management */
  2052. WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | hspi->Init.TIMode));
  2053. 8004e72: 0c12 lsrs r2, r2, #16
  2054. 8004e74: 6a63 ldr r3, [r4, #36] ; 0x24
  2055. 8004e76: f002 0204 and.w r2, r2, #4
  2056. 8004e7a: 431a orrs r2, r3
  2057. /*---------------------------- SPIx CRCPOLY Configuration ------------------*/
  2058. /* Configure : CRC Polynomial */
  2059. WRITE_REG(hspi->Instance->CRCPR, hspi->Init.CRCPolynomial);
  2060. 8004e7c: 6ae3 ldr r3, [r4, #44] ; 0x2c
  2061. WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | hspi->Init.TIMode));
  2062. 8004e7e: 604a str r2, [r1, #4]
  2063. WRITE_REG(hspi->Instance->CRCPR, hspi->Init.CRCPolynomial);
  2064. 8004e80: 610b str r3, [r1, #16]
  2065. #if defined(SPI_I2SCFGR_I2SMOD)
  2066. /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */
  2067. CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD);
  2068. 8004e82: 69cb ldr r3, [r1, #28]
  2069. #else
  2070. uCRCErrorWorkaroundCheck = 0U;
  2071. #endif /* STM32F101xE || STM32F103xE */
  2072. #endif /* USE_SPI_CRC */
  2073. hspi->ErrorCode = HAL_SPI_ERROR_NONE;
  2074. 8004e84: 2000 movs r0, #0
  2075. CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD);
  2076. 8004e86: f423 6300 bic.w r3, r3, #2048 ; 0x800
  2077. 8004e8a: 61cb str r3, [r1, #28]
  2078. hspi->State = HAL_SPI_STATE_READY;
  2079. 8004e8c: 2301 movs r3, #1
  2080. hspi->ErrorCode = HAL_SPI_ERROR_NONE;
  2081. 8004e8e: 6560 str r0, [r4, #84] ; 0x54
  2082. hspi->State = HAL_SPI_STATE_READY;
  2083. 8004e90: f884 3051 strb.w r3, [r4, #81] ; 0x51
  2084. return HAL_OK;
  2085. 8004e94: bd10 pop {r4, pc}
  2086. return HAL_ERROR;
  2087. 8004e96: 2001 movs r0, #1
  2088. }
  2089. 8004e98: bd10 pop {r4, pc}
  2090. 08004e9a <HAL_TIM_Base_Start_IT>:
  2091. {
  2092. /* Check the parameters */
  2093. assert_param(IS_TIM_INSTANCE(htim->Instance));
  2094. /* Enable the TIM Update interrupt */
  2095. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  2096. 8004e9a: 6803 ldr r3, [r0, #0]
  2097. /* Enable the Peripheral */
  2098. __HAL_TIM_ENABLE(htim);
  2099. /* Return function status */
  2100. return HAL_OK;
  2101. }
  2102. 8004e9c: 2000 movs r0, #0
  2103. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  2104. 8004e9e: 68da ldr r2, [r3, #12]
  2105. 8004ea0: f042 0201 orr.w r2, r2, #1
  2106. 8004ea4: 60da str r2, [r3, #12]
  2107. __HAL_TIM_ENABLE(htim);
  2108. 8004ea6: 681a ldr r2, [r3, #0]
  2109. 8004ea8: f042 0201 orr.w r2, r2, #1
  2110. 8004eac: 601a str r2, [r3, #0]
  2111. }
  2112. 8004eae: 4770 bx lr
  2113. 08004eb0 <HAL_TIM_OC_DelayElapsedCallback>:
  2114. 8004eb0: 4770 bx lr
  2115. 08004eb2 <HAL_TIM_IC_CaptureCallback>:
  2116. 8004eb2: 4770 bx lr
  2117. 08004eb4 <HAL_TIM_PWM_PulseFinishedCallback>:
  2118. 8004eb4: 4770 bx lr
  2119. 08004eb6 <HAL_TIM_TriggerCallback>:
  2120. 8004eb6: 4770 bx lr
  2121. 08004eb8 <HAL_TIM_IRQHandler>:
  2122. * @retval None
  2123. */
  2124. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  2125. {
  2126. /* Capture compare 1 event */
  2127. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  2128. 8004eb8: 6803 ldr r3, [r0, #0]
  2129. {
  2130. 8004eba: b510 push {r4, lr}
  2131. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  2132. 8004ebc: 691a ldr r2, [r3, #16]
  2133. {
  2134. 8004ebe: 4604 mov r4, r0
  2135. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  2136. 8004ec0: 0791 lsls r1, r2, #30
  2137. 8004ec2: d50e bpl.n 8004ee2 <HAL_TIM_IRQHandler+0x2a>
  2138. {
  2139. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) !=RESET)
  2140. 8004ec4: 68da ldr r2, [r3, #12]
  2141. 8004ec6: 0792 lsls r2, r2, #30
  2142. 8004ec8: d50b bpl.n 8004ee2 <HAL_TIM_IRQHandler+0x2a>
  2143. {
  2144. {
  2145. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  2146. 8004eca: f06f 0202 mvn.w r2, #2
  2147. 8004ece: 611a str r2, [r3, #16]
  2148. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  2149. 8004ed0: 2201 movs r2, #1
  2150. /* Input capture event */
  2151. if((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  2152. 8004ed2: 699b ldr r3, [r3, #24]
  2153. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  2154. 8004ed4: 7702 strb r2, [r0, #28]
  2155. if((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  2156. 8004ed6: 079b lsls r3, r3, #30
  2157. 8004ed8: d077 beq.n 8004fca <HAL_TIM_IRQHandler+0x112>
  2158. {
  2159. HAL_TIM_IC_CaptureCallback(htim);
  2160. 8004eda: f7ff ffea bl 8004eb2 <HAL_TIM_IC_CaptureCallback>
  2161. else
  2162. {
  2163. HAL_TIM_OC_DelayElapsedCallback(htim);
  2164. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2165. }
  2166. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  2167. 8004ede: 2300 movs r3, #0
  2168. 8004ee0: 7723 strb r3, [r4, #28]
  2169. }
  2170. }
  2171. }
  2172. /* Capture compare 2 event */
  2173. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  2174. 8004ee2: 6823 ldr r3, [r4, #0]
  2175. 8004ee4: 691a ldr r2, [r3, #16]
  2176. 8004ee6: 0750 lsls r0, r2, #29
  2177. 8004ee8: d510 bpl.n 8004f0c <HAL_TIM_IRQHandler+0x54>
  2178. {
  2179. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) !=RESET)
  2180. 8004eea: 68da ldr r2, [r3, #12]
  2181. 8004eec: 0751 lsls r1, r2, #29
  2182. 8004eee: d50d bpl.n 8004f0c <HAL_TIM_IRQHandler+0x54>
  2183. {
  2184. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  2185. 8004ef0: f06f 0204 mvn.w r2, #4
  2186. 8004ef4: 611a str r2, [r3, #16]
  2187. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  2188. 8004ef6: 2202 movs r2, #2
  2189. /* Input capture event */
  2190. if((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  2191. 8004ef8: 699b ldr r3, [r3, #24]
  2192. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  2193. 8004efa: 7722 strb r2, [r4, #28]
  2194. if((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  2195. 8004efc: f413 7f40 tst.w r3, #768 ; 0x300
  2196. {
  2197. HAL_TIM_IC_CaptureCallback(htim);
  2198. 8004f00: 4620 mov r0, r4
  2199. if((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  2200. 8004f02: d068 beq.n 8004fd6 <HAL_TIM_IRQHandler+0x11e>
  2201. HAL_TIM_IC_CaptureCallback(htim);
  2202. 8004f04: f7ff ffd5 bl 8004eb2 <HAL_TIM_IC_CaptureCallback>
  2203. else
  2204. {
  2205. HAL_TIM_OC_DelayElapsedCallback(htim);
  2206. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2207. }
  2208. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  2209. 8004f08: 2300 movs r3, #0
  2210. 8004f0a: 7723 strb r3, [r4, #28]
  2211. }
  2212. }
  2213. /* Capture compare 3 event */
  2214. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  2215. 8004f0c: 6823 ldr r3, [r4, #0]
  2216. 8004f0e: 691a ldr r2, [r3, #16]
  2217. 8004f10: 0712 lsls r2, r2, #28
  2218. 8004f12: d50f bpl.n 8004f34 <HAL_TIM_IRQHandler+0x7c>
  2219. {
  2220. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) !=RESET)
  2221. 8004f14: 68da ldr r2, [r3, #12]
  2222. 8004f16: 0710 lsls r0, r2, #28
  2223. 8004f18: d50c bpl.n 8004f34 <HAL_TIM_IRQHandler+0x7c>
  2224. {
  2225. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  2226. 8004f1a: f06f 0208 mvn.w r2, #8
  2227. 8004f1e: 611a str r2, [r3, #16]
  2228. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  2229. 8004f20: 2204 movs r2, #4
  2230. /* Input capture event */
  2231. if((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  2232. 8004f22: 69db ldr r3, [r3, #28]
  2233. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  2234. 8004f24: 7722 strb r2, [r4, #28]
  2235. if((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  2236. 8004f26: 0799 lsls r1, r3, #30
  2237. {
  2238. HAL_TIM_IC_CaptureCallback(htim);
  2239. 8004f28: 4620 mov r0, r4
  2240. if((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  2241. 8004f2a: d05a beq.n 8004fe2 <HAL_TIM_IRQHandler+0x12a>
  2242. HAL_TIM_IC_CaptureCallback(htim);
  2243. 8004f2c: f7ff ffc1 bl 8004eb2 <HAL_TIM_IC_CaptureCallback>
  2244. else
  2245. {
  2246. HAL_TIM_OC_DelayElapsedCallback(htim);
  2247. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2248. }
  2249. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  2250. 8004f30: 2300 movs r3, #0
  2251. 8004f32: 7723 strb r3, [r4, #28]
  2252. }
  2253. }
  2254. /* Capture compare 4 event */
  2255. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  2256. 8004f34: 6823 ldr r3, [r4, #0]
  2257. 8004f36: 691a ldr r2, [r3, #16]
  2258. 8004f38: 06d2 lsls r2, r2, #27
  2259. 8004f3a: d510 bpl.n 8004f5e <HAL_TIM_IRQHandler+0xa6>
  2260. {
  2261. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) !=RESET)
  2262. 8004f3c: 68da ldr r2, [r3, #12]
  2263. 8004f3e: 06d0 lsls r0, r2, #27
  2264. 8004f40: d50d bpl.n 8004f5e <HAL_TIM_IRQHandler+0xa6>
  2265. {
  2266. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  2267. 8004f42: f06f 0210 mvn.w r2, #16
  2268. 8004f46: 611a str r2, [r3, #16]
  2269. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  2270. 8004f48: 2208 movs r2, #8
  2271. /* Input capture event */
  2272. if((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  2273. 8004f4a: 69db ldr r3, [r3, #28]
  2274. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  2275. 8004f4c: 7722 strb r2, [r4, #28]
  2276. if((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  2277. 8004f4e: f413 7f40 tst.w r3, #768 ; 0x300
  2278. {
  2279. HAL_TIM_IC_CaptureCallback(htim);
  2280. 8004f52: 4620 mov r0, r4
  2281. if((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  2282. 8004f54: d04b beq.n 8004fee <HAL_TIM_IRQHandler+0x136>
  2283. HAL_TIM_IC_CaptureCallback(htim);
  2284. 8004f56: f7ff ffac bl 8004eb2 <HAL_TIM_IC_CaptureCallback>
  2285. else
  2286. {
  2287. HAL_TIM_OC_DelayElapsedCallback(htim);
  2288. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2289. }
  2290. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  2291. 8004f5a: 2300 movs r3, #0
  2292. 8004f5c: 7723 strb r3, [r4, #28]
  2293. }
  2294. }
  2295. /* TIM Update event */
  2296. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  2297. 8004f5e: 6823 ldr r3, [r4, #0]
  2298. 8004f60: 691a ldr r2, [r3, #16]
  2299. 8004f62: 07d1 lsls r1, r2, #31
  2300. 8004f64: d508 bpl.n 8004f78 <HAL_TIM_IRQHandler+0xc0>
  2301. {
  2302. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) !=RESET)
  2303. 8004f66: 68da ldr r2, [r3, #12]
  2304. 8004f68: 07d2 lsls r2, r2, #31
  2305. 8004f6a: d505 bpl.n 8004f78 <HAL_TIM_IRQHandler+0xc0>
  2306. {
  2307. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  2308. 8004f6c: f06f 0201 mvn.w r2, #1
  2309. HAL_TIM_PeriodElapsedCallback(htim);
  2310. 8004f70: 4620 mov r0, r4
  2311. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  2312. 8004f72: 611a str r2, [r3, #16]
  2313. HAL_TIM_PeriodElapsedCallback(htim);
  2314. 8004f74: f000 fda0 bl 8005ab8 <HAL_TIM_PeriodElapsedCallback>
  2315. }
  2316. }
  2317. /* TIM Break input event */
  2318. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET)
  2319. 8004f78: 6823 ldr r3, [r4, #0]
  2320. 8004f7a: 691a ldr r2, [r3, #16]
  2321. 8004f7c: 0610 lsls r0, r2, #24
  2322. 8004f7e: d508 bpl.n 8004f92 <HAL_TIM_IRQHandler+0xda>
  2323. {
  2324. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) !=RESET)
  2325. 8004f80: 68da ldr r2, [r3, #12]
  2326. 8004f82: 0611 lsls r1, r2, #24
  2327. 8004f84: d505 bpl.n 8004f92 <HAL_TIM_IRQHandler+0xda>
  2328. {
  2329. __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
  2330. 8004f86: f06f 0280 mvn.w r2, #128 ; 0x80
  2331. HAL_TIMEx_BreakCallback(htim);
  2332. 8004f8a: 4620 mov r0, r4
  2333. __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
  2334. 8004f8c: 611a str r2, [r3, #16]
  2335. HAL_TIMEx_BreakCallback(htim);
  2336. 8004f8e: f000 f8be bl 800510e <HAL_TIMEx_BreakCallback>
  2337. }
  2338. }
  2339. /* TIM Trigger detection event */
  2340. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  2341. 8004f92: 6823 ldr r3, [r4, #0]
  2342. 8004f94: 691a ldr r2, [r3, #16]
  2343. 8004f96: 0652 lsls r2, r2, #25
  2344. 8004f98: d508 bpl.n 8004fac <HAL_TIM_IRQHandler+0xf4>
  2345. {
  2346. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) !=RESET)
  2347. 8004f9a: 68da ldr r2, [r3, #12]
  2348. 8004f9c: 0650 lsls r0, r2, #25
  2349. 8004f9e: d505 bpl.n 8004fac <HAL_TIM_IRQHandler+0xf4>
  2350. {
  2351. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  2352. 8004fa0: f06f 0240 mvn.w r2, #64 ; 0x40
  2353. HAL_TIM_TriggerCallback(htim);
  2354. 8004fa4: 4620 mov r0, r4
  2355. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  2356. 8004fa6: 611a str r2, [r3, #16]
  2357. HAL_TIM_TriggerCallback(htim);
  2358. 8004fa8: f7ff ff85 bl 8004eb6 <HAL_TIM_TriggerCallback>
  2359. }
  2360. }
  2361. /* TIM commutation event */
  2362. if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET)
  2363. 8004fac: 6823 ldr r3, [r4, #0]
  2364. 8004fae: 691a ldr r2, [r3, #16]
  2365. 8004fb0: 0691 lsls r1, r2, #26
  2366. 8004fb2: d522 bpl.n 8004ffa <HAL_TIM_IRQHandler+0x142>
  2367. {
  2368. if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) !=RESET)
  2369. 8004fb4: 68da ldr r2, [r3, #12]
  2370. 8004fb6: 0692 lsls r2, r2, #26
  2371. 8004fb8: d51f bpl.n 8004ffa <HAL_TIM_IRQHandler+0x142>
  2372. {
  2373. __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
  2374. 8004fba: f06f 0220 mvn.w r2, #32
  2375. HAL_TIMEx_CommutationCallback(htim);
  2376. 8004fbe: 4620 mov r0, r4
  2377. }
  2378. }
  2379. }
  2380. 8004fc0: e8bd 4010 ldmia.w sp!, {r4, lr}
  2381. __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
  2382. 8004fc4: 611a str r2, [r3, #16]
  2383. HAL_TIMEx_CommutationCallback(htim);
  2384. 8004fc6: f000 b8a1 b.w 800510c <HAL_TIMEx_CommutationCallback>
  2385. HAL_TIM_OC_DelayElapsedCallback(htim);
  2386. 8004fca: f7ff ff71 bl 8004eb0 <HAL_TIM_OC_DelayElapsedCallback>
  2387. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2388. 8004fce: 4620 mov r0, r4
  2389. 8004fd0: f7ff ff70 bl 8004eb4 <HAL_TIM_PWM_PulseFinishedCallback>
  2390. 8004fd4: e783 b.n 8004ede <HAL_TIM_IRQHandler+0x26>
  2391. HAL_TIM_OC_DelayElapsedCallback(htim);
  2392. 8004fd6: f7ff ff6b bl 8004eb0 <HAL_TIM_OC_DelayElapsedCallback>
  2393. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2394. 8004fda: 4620 mov r0, r4
  2395. 8004fdc: f7ff ff6a bl 8004eb4 <HAL_TIM_PWM_PulseFinishedCallback>
  2396. 8004fe0: e792 b.n 8004f08 <HAL_TIM_IRQHandler+0x50>
  2397. HAL_TIM_OC_DelayElapsedCallback(htim);
  2398. 8004fe2: f7ff ff65 bl 8004eb0 <HAL_TIM_OC_DelayElapsedCallback>
  2399. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2400. 8004fe6: 4620 mov r0, r4
  2401. 8004fe8: f7ff ff64 bl 8004eb4 <HAL_TIM_PWM_PulseFinishedCallback>
  2402. 8004fec: e7a0 b.n 8004f30 <HAL_TIM_IRQHandler+0x78>
  2403. HAL_TIM_OC_DelayElapsedCallback(htim);
  2404. 8004fee: f7ff ff5f bl 8004eb0 <HAL_TIM_OC_DelayElapsedCallback>
  2405. HAL_TIM_PWM_PulseFinishedCallback(htim);
  2406. 8004ff2: 4620 mov r0, r4
  2407. 8004ff4: f7ff ff5e bl 8004eb4 <HAL_TIM_PWM_PulseFinishedCallback>
  2408. 8004ff8: e7af b.n 8004f5a <HAL_TIM_IRQHandler+0xa2>
  2409. 8004ffa: bd10 pop {r4, pc}
  2410. 08004ffc <TIM_Base_SetConfig>:
  2411. {
  2412. uint32_t tmpcr1 = 0U;
  2413. tmpcr1 = TIMx->CR1;
  2414. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  2415. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  2416. 8004ffc: 4a24 ldr r2, [pc, #144] ; (8005090 <TIM_Base_SetConfig+0x94>)
  2417. tmpcr1 = TIMx->CR1;
  2418. 8004ffe: 6803 ldr r3, [r0, #0]
  2419. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  2420. 8005000: 4290 cmp r0, r2
  2421. 8005002: d012 beq.n 800502a <TIM_Base_SetConfig+0x2e>
  2422. 8005004: f502 6200 add.w r2, r2, #2048 ; 0x800
  2423. 8005008: 4290 cmp r0, r2
  2424. 800500a: d00e beq.n 800502a <TIM_Base_SetConfig+0x2e>
  2425. 800500c: f1b0 4f80 cmp.w r0, #1073741824 ; 0x40000000
  2426. 8005010: d00b beq.n 800502a <TIM_Base_SetConfig+0x2e>
  2427. 8005012: f5a2 3298 sub.w r2, r2, #77824 ; 0x13000
  2428. 8005016: 4290 cmp r0, r2
  2429. 8005018: d007 beq.n 800502a <TIM_Base_SetConfig+0x2e>
  2430. 800501a: f502 6280 add.w r2, r2, #1024 ; 0x400
  2431. 800501e: 4290 cmp r0, r2
  2432. 8005020: d003 beq.n 800502a <TIM_Base_SetConfig+0x2e>
  2433. 8005022: f502 6280 add.w r2, r2, #1024 ; 0x400
  2434. 8005026: 4290 cmp r0, r2
  2435. 8005028: d11d bne.n 8005066 <TIM_Base_SetConfig+0x6a>
  2436. {
  2437. /* Select the Counter Mode */
  2438. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  2439. tmpcr1 |= Structure->CounterMode;
  2440. 800502a: 684a ldr r2, [r1, #4]
  2441. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  2442. 800502c: f023 0370 bic.w r3, r3, #112 ; 0x70
  2443. tmpcr1 |= Structure->CounterMode;
  2444. 8005030: 4313 orrs r3, r2
  2445. }
  2446. if(IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  2447. 8005032: 4a17 ldr r2, [pc, #92] ; (8005090 <TIM_Base_SetConfig+0x94>)
  2448. 8005034: 4290 cmp r0, r2
  2449. 8005036: d012 beq.n 800505e <TIM_Base_SetConfig+0x62>
  2450. 8005038: f502 6200 add.w r2, r2, #2048 ; 0x800
  2451. 800503c: 4290 cmp r0, r2
  2452. 800503e: d00e beq.n 800505e <TIM_Base_SetConfig+0x62>
  2453. 8005040: f1b0 4f80 cmp.w r0, #1073741824 ; 0x40000000
  2454. 8005044: d00b beq.n 800505e <TIM_Base_SetConfig+0x62>
  2455. 8005046: f5a2 3298 sub.w r2, r2, #77824 ; 0x13000
  2456. 800504a: 4290 cmp r0, r2
  2457. 800504c: d007 beq.n 800505e <TIM_Base_SetConfig+0x62>
  2458. 800504e: f502 6280 add.w r2, r2, #1024 ; 0x400
  2459. 8005052: 4290 cmp r0, r2
  2460. 8005054: d003 beq.n 800505e <TIM_Base_SetConfig+0x62>
  2461. 8005056: f502 6280 add.w r2, r2, #1024 ; 0x400
  2462. 800505a: 4290 cmp r0, r2
  2463. 800505c: d103 bne.n 8005066 <TIM_Base_SetConfig+0x6a>
  2464. {
  2465. /* Set the clock division */
  2466. tmpcr1 &= ~TIM_CR1_CKD;
  2467. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  2468. 800505e: 68ca ldr r2, [r1, #12]
  2469. tmpcr1 &= ~TIM_CR1_CKD;
  2470. 8005060: f423 7340 bic.w r3, r3, #768 ; 0x300
  2471. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  2472. 8005064: 4313 orrs r3, r2
  2473. }
  2474. /* Set the auto-reload preload */
  2475. tmpcr1 &= ~TIM_CR1_ARPE;
  2476. tmpcr1 |= (uint32_t)Structure->AutoReloadPreload;
  2477. 8005066: 694a ldr r2, [r1, #20]
  2478. tmpcr1 &= ~TIM_CR1_ARPE;
  2479. 8005068: f023 0380 bic.w r3, r3, #128 ; 0x80
  2480. tmpcr1 |= (uint32_t)Structure->AutoReloadPreload;
  2481. 800506c: 4313 orrs r3, r2
  2482. TIMx->CR1 = tmpcr1;
  2483. 800506e: 6003 str r3, [r0, #0]
  2484. /* Set the Autoreload value */
  2485. TIMx->ARR = (uint32_t)Structure->Period ;
  2486. 8005070: 688b ldr r3, [r1, #8]
  2487. 8005072: 62c3 str r3, [r0, #44] ; 0x2c
  2488. /* Set the Prescaler value */
  2489. TIMx->PSC = (uint32_t)Structure->Prescaler;
  2490. 8005074: 680b ldr r3, [r1, #0]
  2491. 8005076: 6283 str r3, [r0, #40] ; 0x28
  2492. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  2493. 8005078: 4b05 ldr r3, [pc, #20] ; (8005090 <TIM_Base_SetConfig+0x94>)
  2494. 800507a: 4298 cmp r0, r3
  2495. 800507c: d003 beq.n 8005086 <TIM_Base_SetConfig+0x8a>
  2496. 800507e: f503 6300 add.w r3, r3, #2048 ; 0x800
  2497. 8005082: 4298 cmp r0, r3
  2498. 8005084: d101 bne.n 800508a <TIM_Base_SetConfig+0x8e>
  2499. {
  2500. /* Set the Repetition Counter value */
  2501. TIMx->RCR = Structure->RepetitionCounter;
  2502. 8005086: 690b ldr r3, [r1, #16]
  2503. 8005088: 6303 str r3, [r0, #48] ; 0x30
  2504. }
  2505. /* Generate an update event to reload the Prescaler
  2506. and the repetition counter(only for TIM1 and TIM8) value immediatly */
  2507. TIMx->EGR = TIM_EGR_UG;
  2508. 800508a: 2301 movs r3, #1
  2509. 800508c: 6143 str r3, [r0, #20]
  2510. 800508e: 4770 bx lr
  2511. 8005090: 40012c00 .word 0x40012c00
  2512. 08005094 <HAL_TIM_Base_Init>:
  2513. {
  2514. 8005094: b510 push {r4, lr}
  2515. if(htim == NULL)
  2516. 8005096: 4604 mov r4, r0
  2517. 8005098: b1a0 cbz r0, 80050c4 <HAL_TIM_Base_Init+0x30>
  2518. if(htim->State == HAL_TIM_STATE_RESET)
  2519. 800509a: f890 303d ldrb.w r3, [r0, #61] ; 0x3d
  2520. 800509e: f003 02ff and.w r2, r3, #255 ; 0xff
  2521. 80050a2: b91b cbnz r3, 80050ac <HAL_TIM_Base_Init+0x18>
  2522. htim->Lock = HAL_UNLOCKED;
  2523. 80050a4: f880 203c strb.w r2, [r0, #60] ; 0x3c
  2524. HAL_TIM_Base_MspInit(htim);
  2525. 80050a8: f001 f97a bl 80063a0 <HAL_TIM_Base_MspInit>
  2526. htim->State= HAL_TIM_STATE_BUSY;
  2527. 80050ac: 2302 movs r3, #2
  2528. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  2529. 80050ae: 6820 ldr r0, [r4, #0]
  2530. htim->State= HAL_TIM_STATE_BUSY;
  2531. 80050b0: f884 303d strb.w r3, [r4, #61] ; 0x3d
  2532. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  2533. 80050b4: 1d21 adds r1, r4, #4
  2534. 80050b6: f7ff ffa1 bl 8004ffc <TIM_Base_SetConfig>
  2535. htim->State= HAL_TIM_STATE_READY;
  2536. 80050ba: 2301 movs r3, #1
  2537. return HAL_OK;
  2538. 80050bc: 2000 movs r0, #0
  2539. htim->State= HAL_TIM_STATE_READY;
  2540. 80050be: f884 303d strb.w r3, [r4, #61] ; 0x3d
  2541. return HAL_OK;
  2542. 80050c2: bd10 pop {r4, pc}
  2543. return HAL_ERROR;
  2544. 80050c4: 2001 movs r0, #1
  2545. }
  2546. 80050c6: bd10 pop {r4, pc}
  2547. 080050c8 <HAL_TIMEx_MasterConfigSynchronization>:
  2548. /* Check the parameters */
  2549. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  2550. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  2551. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  2552. __HAL_LOCK(htim);
  2553. 80050c8: f890 303c ldrb.w r3, [r0, #60] ; 0x3c
  2554. {
  2555. 80050cc: b510 push {r4, lr}
  2556. __HAL_LOCK(htim);
  2557. 80050ce: 2b01 cmp r3, #1
  2558. 80050d0: f04f 0302 mov.w r3, #2
  2559. 80050d4: d018 beq.n 8005108 <HAL_TIMEx_MasterConfigSynchronization+0x40>
  2560. htim->State = HAL_TIM_STATE_BUSY;
  2561. 80050d6: f880 303d strb.w r3, [r0, #61] ; 0x3d
  2562. /* Reset the MMS Bits */
  2563. htim->Instance->CR2 &= ~TIM_CR2_MMS;
  2564. 80050da: 6803 ldr r3, [r0, #0]
  2565. /* Select the TRGO source */
  2566. htim->Instance->CR2 |= sMasterConfig->MasterOutputTrigger;
  2567. 80050dc: 680c ldr r4, [r1, #0]
  2568. htim->Instance->CR2 &= ~TIM_CR2_MMS;
  2569. 80050de: 685a ldr r2, [r3, #4]
  2570. /* Reset the MSM Bit */
  2571. htim->Instance->SMCR &= ~TIM_SMCR_MSM;
  2572. /* Set or Reset the MSM Bit */
  2573. htim->Instance->SMCR |= sMasterConfig->MasterSlaveMode;
  2574. 80050e0: 6849 ldr r1, [r1, #4]
  2575. htim->Instance->CR2 &= ~TIM_CR2_MMS;
  2576. 80050e2: f022 0270 bic.w r2, r2, #112 ; 0x70
  2577. 80050e6: 605a str r2, [r3, #4]
  2578. htim->Instance->CR2 |= sMasterConfig->MasterOutputTrigger;
  2579. 80050e8: 685a ldr r2, [r3, #4]
  2580. 80050ea: 4322 orrs r2, r4
  2581. 80050ec: 605a str r2, [r3, #4]
  2582. htim->Instance->SMCR &= ~TIM_SMCR_MSM;
  2583. 80050ee: 689a ldr r2, [r3, #8]
  2584. 80050f0: f022 0280 bic.w r2, r2, #128 ; 0x80
  2585. 80050f4: 609a str r2, [r3, #8]
  2586. htim->Instance->SMCR |= sMasterConfig->MasterSlaveMode;
  2587. 80050f6: 689a ldr r2, [r3, #8]
  2588. 80050f8: 430a orrs r2, r1
  2589. 80050fa: 609a str r2, [r3, #8]
  2590. htim->State = HAL_TIM_STATE_READY;
  2591. 80050fc: 2301 movs r3, #1
  2592. 80050fe: f880 303d strb.w r3, [r0, #61] ; 0x3d
  2593. __HAL_UNLOCK(htim);
  2594. 8005102: 2300 movs r3, #0
  2595. 8005104: f880 303c strb.w r3, [r0, #60] ; 0x3c
  2596. __HAL_LOCK(htim);
  2597. 8005108: 4618 mov r0, r3
  2598. return HAL_OK;
  2599. }
  2600. 800510a: bd10 pop {r4, pc}
  2601. 0800510c <HAL_TIMEx_CommutationCallback>:
  2602. 800510c: 4770 bx lr
  2603. 0800510e <HAL_TIMEx_BreakCallback>:
  2604. * @brief Hall Break detection callback in non blocking mode
  2605. * @param htim : TIM handle
  2606. * @retval None
  2607. */
  2608. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  2609. {
  2610. 800510e: 4770 bx lr
  2611. 08005110 <UART_EndRxTransfer>:
  2612. * @retval None
  2613. */
  2614. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  2615. {
  2616. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  2617. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
  2618. 8005110: 6803 ldr r3, [r0, #0]
  2619. 8005112: 68da ldr r2, [r3, #12]
  2620. 8005114: f422 7290 bic.w r2, r2, #288 ; 0x120
  2621. 8005118: 60da str r2, [r3, #12]
  2622. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  2623. 800511a: 695a ldr r2, [r3, #20]
  2624. 800511c: f022 0201 bic.w r2, r2, #1
  2625. 8005120: 615a str r2, [r3, #20]
  2626. /* At end of Rx process, restore huart->RxState to Ready */
  2627. huart->RxState = HAL_UART_STATE_READY;
  2628. 8005122: 2320 movs r3, #32
  2629. 8005124: f880 303a strb.w r3, [r0, #58] ; 0x3a
  2630. 8005128: 4770 bx lr
  2631. ...
  2632. 0800512c <UART_SetConfig>:
  2633. * @param huart: pointer to a UART_HandleTypeDef structure that contains
  2634. * the configuration information for the specified UART module.
  2635. * @retval None
  2636. */
  2637. static void UART_SetConfig(UART_HandleTypeDef *huart)
  2638. {
  2639. 800512c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  2640. assert_param(IS_UART_MODE(huart->Init.Mode));
  2641. /*------- UART-associated USART registers setting : CR2 Configuration ------*/
  2642. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  2643. * to huart->Init.StopBits value */
  2644. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  2645. 8005130: 6805 ldr r5, [r0, #0]
  2646. 8005132: 68c2 ldr r2, [r0, #12]
  2647. 8005134: 692b ldr r3, [r5, #16]
  2648. tmpreg |= (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  2649. MODIFY_REG(huart->Instance->CR1,
  2650. (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8),
  2651. tmpreg);
  2652. #else
  2653. tmpreg |= (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode;
  2654. 8005136: 6901 ldr r1, [r0, #16]
  2655. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  2656. 8005138: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  2657. 800513c: 4313 orrs r3, r2
  2658. 800513e: 612b str r3, [r5, #16]
  2659. tmpreg |= (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode;
  2660. 8005140: 6883 ldr r3, [r0, #8]
  2661. MODIFY_REG(huart->Instance->CR1,
  2662. 8005142: 68ea ldr r2, [r5, #12]
  2663. tmpreg |= (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode;
  2664. 8005144: 430b orrs r3, r1
  2665. 8005146: 6941 ldr r1, [r0, #20]
  2666. MODIFY_REG(huart->Instance->CR1,
  2667. 8005148: f422 52b0 bic.w r2, r2, #5632 ; 0x1600
  2668. 800514c: f022 020c bic.w r2, r2, #12
  2669. tmpreg |= (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode;
  2670. 8005150: 430b orrs r3, r1
  2671. MODIFY_REG(huart->Instance->CR1,
  2672. 8005152: 4313 orrs r3, r2
  2673. 8005154: 60eb str r3, [r5, #12]
  2674. tmpreg);
  2675. #endif /* USART_CR1_OVER8 */
  2676. /*------- UART-associated USART registers setting : CR3 Configuration ------*/
  2677. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  2678. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  2679. 8005156: 696b ldr r3, [r5, #20]
  2680. 8005158: 6982 ldr r2, [r0, #24]
  2681. 800515a: f423 7340 bic.w r3, r3, #768 ; 0x300
  2682. 800515e: 4313 orrs r3, r2
  2683. 8005160: 616b str r3, [r5, #20]
  2684. huart->Instance->BRR = UART_BRR_SAMPLING16(HAL_RCC_GetPCLK1Freq(), huart->Init.BaudRate);
  2685. }
  2686. }
  2687. #else
  2688. /*-------------------------- USART BRR Configuration ---------------------*/
  2689. if(huart->Instance == USART1)
  2690. 8005162: 4b40 ldr r3, [pc, #256] ; (8005264 <UART_SetConfig+0x138>)
  2691. {
  2692. 8005164: 4681 mov r9, r0
  2693. if(huart->Instance == USART1)
  2694. 8005166: 429d cmp r5, r3
  2695. 8005168: f04f 0419 mov.w r4, #25
  2696. 800516c: d146 bne.n 80051fc <UART_SetConfig+0xd0>
  2697. {
  2698. huart->Instance->BRR = UART_BRR_SAMPLING16(HAL_RCC_GetPCLK2Freq(), huart->Init.BaudRate);
  2699. 800516e: f7ff fe49 bl 8004e04 <HAL_RCC_GetPCLK2Freq>
  2700. 8005172: fb04 f300 mul.w r3, r4, r0
  2701. 8005176: f8d9 6004 ldr.w r6, [r9, #4]
  2702. 800517a: f04f 0864 mov.w r8, #100 ; 0x64
  2703. 800517e: 00b6 lsls r6, r6, #2
  2704. 8005180: fbb3 f3f6 udiv r3, r3, r6
  2705. 8005184: fbb3 f3f8 udiv r3, r3, r8
  2706. 8005188: 011e lsls r6, r3, #4
  2707. 800518a: f7ff fe3b bl 8004e04 <HAL_RCC_GetPCLK2Freq>
  2708. 800518e: 4360 muls r0, r4
  2709. 8005190: f8d9 3004 ldr.w r3, [r9, #4]
  2710. 8005194: 009b lsls r3, r3, #2
  2711. 8005196: fbb0 f7f3 udiv r7, r0, r3
  2712. 800519a: f7ff fe33 bl 8004e04 <HAL_RCC_GetPCLK2Freq>
  2713. 800519e: 4360 muls r0, r4
  2714. 80051a0: f8d9 3004 ldr.w r3, [r9, #4]
  2715. 80051a4: 009b lsls r3, r3, #2
  2716. 80051a6: fbb0 f3f3 udiv r3, r0, r3
  2717. 80051aa: fbb3 f3f8 udiv r3, r3, r8
  2718. 80051ae: fb08 7313 mls r3, r8, r3, r7
  2719. 80051b2: 011b lsls r3, r3, #4
  2720. 80051b4: 3332 adds r3, #50 ; 0x32
  2721. 80051b6: fbb3 f3f8 udiv r3, r3, r8
  2722. 80051ba: f003 07f0 and.w r7, r3, #240 ; 0xf0
  2723. 80051be: f7ff fe21 bl 8004e04 <HAL_RCC_GetPCLK2Freq>
  2724. 80051c2: 4360 muls r0, r4
  2725. 80051c4: f8d9 2004 ldr.w r2, [r9, #4]
  2726. 80051c8: 0092 lsls r2, r2, #2
  2727. 80051ca: fbb0 faf2 udiv sl, r0, r2
  2728. 80051ce: f7ff fe19 bl 8004e04 <HAL_RCC_GetPCLK2Freq>
  2729. }
  2730. else
  2731. {
  2732. huart->Instance->BRR = UART_BRR_SAMPLING16(HAL_RCC_GetPCLK1Freq(), huart->Init.BaudRate);
  2733. 80051d2: 4360 muls r0, r4
  2734. 80051d4: f8d9 3004 ldr.w r3, [r9, #4]
  2735. 80051d8: 009b lsls r3, r3, #2
  2736. 80051da: fbb0 f3f3 udiv r3, r0, r3
  2737. 80051de: fbb3 f3f8 udiv r3, r3, r8
  2738. 80051e2: fb08 a313 mls r3, r8, r3, sl
  2739. 80051e6: 011b lsls r3, r3, #4
  2740. 80051e8: 3332 adds r3, #50 ; 0x32
  2741. 80051ea: fbb3 f3f8 udiv r3, r3, r8
  2742. 80051ee: f003 030f and.w r3, r3, #15
  2743. 80051f2: 433b orrs r3, r7
  2744. 80051f4: 4433 add r3, r6
  2745. 80051f6: 60ab str r3, [r5, #8]
  2746. 80051f8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  2747. 80051fc: f7ff fdf2 bl 8004de4 <HAL_RCC_GetPCLK1Freq>
  2748. 8005200: fb04 f300 mul.w r3, r4, r0
  2749. 8005204: f8d9 6004 ldr.w r6, [r9, #4]
  2750. 8005208: f04f 0864 mov.w r8, #100 ; 0x64
  2751. 800520c: 00b6 lsls r6, r6, #2
  2752. 800520e: fbb3 f3f6 udiv r3, r3, r6
  2753. 8005212: fbb3 f3f8 udiv r3, r3, r8
  2754. 8005216: 011e lsls r6, r3, #4
  2755. 8005218: f7ff fde4 bl 8004de4 <HAL_RCC_GetPCLK1Freq>
  2756. 800521c: 4360 muls r0, r4
  2757. 800521e: f8d9 3004 ldr.w r3, [r9, #4]
  2758. 8005222: 009b lsls r3, r3, #2
  2759. 8005224: fbb0 f7f3 udiv r7, r0, r3
  2760. 8005228: f7ff fddc bl 8004de4 <HAL_RCC_GetPCLK1Freq>
  2761. 800522c: 4360 muls r0, r4
  2762. 800522e: f8d9 3004 ldr.w r3, [r9, #4]
  2763. 8005232: 009b lsls r3, r3, #2
  2764. 8005234: fbb0 f3f3 udiv r3, r0, r3
  2765. 8005238: fbb3 f3f8 udiv r3, r3, r8
  2766. 800523c: fb08 7313 mls r3, r8, r3, r7
  2767. 8005240: 011b lsls r3, r3, #4
  2768. 8005242: 3332 adds r3, #50 ; 0x32
  2769. 8005244: fbb3 f3f8 udiv r3, r3, r8
  2770. 8005248: f003 07f0 and.w r7, r3, #240 ; 0xf0
  2771. 800524c: f7ff fdca bl 8004de4 <HAL_RCC_GetPCLK1Freq>
  2772. 8005250: 4360 muls r0, r4
  2773. 8005252: f8d9 2004 ldr.w r2, [r9, #4]
  2774. 8005256: 0092 lsls r2, r2, #2
  2775. 8005258: fbb0 faf2 udiv sl, r0, r2
  2776. 800525c: f7ff fdc2 bl 8004de4 <HAL_RCC_GetPCLK1Freq>
  2777. 8005260: e7b7 b.n 80051d2 <UART_SetConfig+0xa6>
  2778. 8005262: bf00 nop
  2779. 8005264: 40013800 .word 0x40013800
  2780. 08005268 <UART_WaitOnFlagUntilTimeout.constprop.3>:
  2781. static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
  2782. 8005268: b5f8 push {r3, r4, r5, r6, r7, lr}
  2783. 800526a: 4604 mov r4, r0
  2784. 800526c: 460e mov r6, r1
  2785. 800526e: 4617 mov r7, r2
  2786. 8005270: 461d mov r5, r3
  2787. while((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  2788. 8005272: 6821 ldr r1, [r4, #0]
  2789. 8005274: 680b ldr r3, [r1, #0]
  2790. 8005276: ea36 0303 bics.w r3, r6, r3
  2791. 800527a: d101 bne.n 8005280 <UART_WaitOnFlagUntilTimeout.constprop.3+0x18>
  2792. return HAL_OK;
  2793. 800527c: 2000 movs r0, #0
  2794. }
  2795. 800527e: bdf8 pop {r3, r4, r5, r6, r7, pc}
  2796. if(Timeout != HAL_MAX_DELAY)
  2797. 8005280: 1c6b adds r3, r5, #1
  2798. 8005282: d0f7 beq.n 8005274 <UART_WaitOnFlagUntilTimeout.constprop.3+0xc>
  2799. if((Timeout == 0U)||((HAL_GetTick() - Tickstart ) > Timeout))
  2800. 8005284: b995 cbnz r5, 80052ac <UART_WaitOnFlagUntilTimeout.constprop.3+0x44>
  2801. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE));
  2802. 8005286: 6823 ldr r3, [r4, #0]
  2803. __HAL_UNLOCK(huart);
  2804. 8005288: 2003 movs r0, #3
  2805. CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE));
  2806. 800528a: 68da ldr r2, [r3, #12]
  2807. 800528c: f422 72d0 bic.w r2, r2, #416 ; 0x1a0
  2808. 8005290: 60da str r2, [r3, #12]
  2809. CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  2810. 8005292: 695a ldr r2, [r3, #20]
  2811. 8005294: f022 0201 bic.w r2, r2, #1
  2812. 8005298: 615a str r2, [r3, #20]
  2813. huart->gState = HAL_UART_STATE_READY;
  2814. 800529a: 2320 movs r3, #32
  2815. 800529c: f884 3039 strb.w r3, [r4, #57] ; 0x39
  2816. huart->RxState = HAL_UART_STATE_READY;
  2817. 80052a0: f884 303a strb.w r3, [r4, #58] ; 0x3a
  2818. __HAL_UNLOCK(huart);
  2819. 80052a4: 2300 movs r3, #0
  2820. 80052a6: f884 3038 strb.w r3, [r4, #56] ; 0x38
  2821. 80052aa: bdf8 pop {r3, r4, r5, r6, r7, pc}
  2822. if((Timeout == 0U)||((HAL_GetTick() - Tickstart ) > Timeout))
  2823. 80052ac: f7ff f808 bl 80042c0 <HAL_GetTick>
  2824. 80052b0: 1bc0 subs r0, r0, r7
  2825. 80052b2: 4285 cmp r5, r0
  2826. 80052b4: d2dd bcs.n 8005272 <UART_WaitOnFlagUntilTimeout.constprop.3+0xa>
  2827. 80052b6: e7e6 b.n 8005286 <UART_WaitOnFlagUntilTimeout.constprop.3+0x1e>
  2828. 080052b8 <HAL_UART_Init>:
  2829. {
  2830. 80052b8: b510 push {r4, lr}
  2831. if(huart == NULL)
  2832. 80052ba: 4604 mov r4, r0
  2833. 80052bc: b340 cbz r0, 8005310 <HAL_UART_Init+0x58>
  2834. if(huart->gState == HAL_UART_STATE_RESET)
  2835. 80052be: f890 3039 ldrb.w r3, [r0, #57] ; 0x39
  2836. 80052c2: f003 02ff and.w r2, r3, #255 ; 0xff
  2837. 80052c6: b91b cbnz r3, 80052d0 <HAL_UART_Init+0x18>
  2838. huart->Lock = HAL_UNLOCKED;
  2839. 80052c8: f880 2038 strb.w r2, [r0, #56] ; 0x38
  2840. HAL_UART_MspInit(huart);
  2841. 80052cc: f001 f87c bl 80063c8 <HAL_UART_MspInit>
  2842. huart->gState = HAL_UART_STATE_BUSY;
  2843. 80052d0: 2324 movs r3, #36 ; 0x24
  2844. __HAL_UART_DISABLE(huart);
  2845. 80052d2: 6822 ldr r2, [r4, #0]
  2846. huart->gState = HAL_UART_STATE_BUSY;
  2847. 80052d4: f884 3039 strb.w r3, [r4, #57] ; 0x39
  2848. __HAL_UART_DISABLE(huart);
  2849. 80052d8: 68d3 ldr r3, [r2, #12]
  2850. UART_SetConfig(huart);
  2851. 80052da: 4620 mov r0, r4
  2852. __HAL_UART_DISABLE(huart);
  2853. 80052dc: f423 5300 bic.w r3, r3, #8192 ; 0x2000
  2854. 80052e0: 60d3 str r3, [r2, #12]
  2855. UART_SetConfig(huart);
  2856. 80052e2: f7ff ff23 bl 800512c <UART_SetConfig>
  2857. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  2858. 80052e6: 6823 ldr r3, [r4, #0]
  2859. huart->ErrorCode = HAL_UART_ERROR_NONE;
  2860. 80052e8: 2000 movs r0, #0
  2861. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  2862. 80052ea: 691a ldr r2, [r3, #16]
  2863. 80052ec: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  2864. 80052f0: 611a str r2, [r3, #16]
  2865. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  2866. 80052f2: 695a ldr r2, [r3, #20]
  2867. 80052f4: f022 022a bic.w r2, r2, #42 ; 0x2a
  2868. 80052f8: 615a str r2, [r3, #20]
  2869. __HAL_UART_ENABLE(huart);
  2870. 80052fa: 68da ldr r2, [r3, #12]
  2871. 80052fc: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  2872. 8005300: 60da str r2, [r3, #12]
  2873. huart->gState= HAL_UART_STATE_READY;
  2874. 8005302: 2320 movs r3, #32
  2875. huart->ErrorCode = HAL_UART_ERROR_NONE;
  2876. 8005304: 63e0 str r0, [r4, #60] ; 0x3c
  2877. huart->gState= HAL_UART_STATE_READY;
  2878. 8005306: f884 3039 strb.w r3, [r4, #57] ; 0x39
  2879. huart->RxState= HAL_UART_STATE_READY;
  2880. 800530a: f884 303a strb.w r3, [r4, #58] ; 0x3a
  2881. return HAL_OK;
  2882. 800530e: bd10 pop {r4, pc}
  2883. return HAL_ERROR;
  2884. 8005310: 2001 movs r0, #1
  2885. }
  2886. 8005312: bd10 pop {r4, pc}
  2887. 08005314 <HAL_UART_Transmit>:
  2888. {
  2889. 8005314: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  2890. 8005318: 461f mov r7, r3
  2891. if(huart->gState == HAL_UART_STATE_READY)
  2892. 800531a: f890 3039 ldrb.w r3, [r0, #57] ; 0x39
  2893. {
  2894. 800531e: 4604 mov r4, r0
  2895. if(huart->gState == HAL_UART_STATE_READY)
  2896. 8005320: 2b20 cmp r3, #32
  2897. {
  2898. 8005322: 460d mov r5, r1
  2899. 8005324: 4690 mov r8, r2
  2900. if(huart->gState == HAL_UART_STATE_READY)
  2901. 8005326: d14e bne.n 80053c6 <HAL_UART_Transmit+0xb2>
  2902. if((pData == NULL) || (Size == 0U))
  2903. 8005328: 2900 cmp r1, #0
  2904. 800532a: d049 beq.n 80053c0 <HAL_UART_Transmit+0xac>
  2905. 800532c: 2a00 cmp r2, #0
  2906. 800532e: d047 beq.n 80053c0 <HAL_UART_Transmit+0xac>
  2907. __HAL_LOCK(huart);
  2908. 8005330: f890 3038 ldrb.w r3, [r0, #56] ; 0x38
  2909. 8005334: 2b01 cmp r3, #1
  2910. 8005336: d046 beq.n 80053c6 <HAL_UART_Transmit+0xb2>
  2911. 8005338: 2301 movs r3, #1
  2912. 800533a: f880 3038 strb.w r3, [r0, #56] ; 0x38
  2913. huart->ErrorCode = HAL_UART_ERROR_NONE;
  2914. 800533e: 2300 movs r3, #0
  2915. 8005340: 63c3 str r3, [r0, #60] ; 0x3c
  2916. huart->gState = HAL_UART_STATE_BUSY_TX;
  2917. 8005342: 2321 movs r3, #33 ; 0x21
  2918. 8005344: f880 3039 strb.w r3, [r0, #57] ; 0x39
  2919. tickstart = HAL_GetTick();
  2920. 8005348: f7fe ffba bl 80042c0 <HAL_GetTick>
  2921. 800534c: 4606 mov r6, r0
  2922. huart->TxXferSize = Size;
  2923. 800534e: f8a4 8024 strh.w r8, [r4, #36] ; 0x24
  2924. huart->TxXferCount = Size;
  2925. 8005352: f8a4 8026 strh.w r8, [r4, #38] ; 0x26
  2926. while(huart->TxXferCount > 0U)
  2927. 8005356: 8ce3 ldrh r3, [r4, #38] ; 0x26
  2928. 8005358: b29b uxth r3, r3
  2929. 800535a: b96b cbnz r3, 8005378 <HAL_UART_Transmit+0x64>
  2930. if(UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  2931. 800535c: 463b mov r3, r7
  2932. 800535e: 4632 mov r2, r6
  2933. 8005360: 2140 movs r1, #64 ; 0x40
  2934. 8005362: 4620 mov r0, r4
  2935. 8005364: f7ff ff80 bl 8005268 <UART_WaitOnFlagUntilTimeout.constprop.3>
  2936. 8005368: b9a8 cbnz r0, 8005396 <HAL_UART_Transmit+0x82>
  2937. huart->gState = HAL_UART_STATE_READY;
  2938. 800536a: 2320 movs r3, #32
  2939. __HAL_UNLOCK(huart);
  2940. 800536c: f884 0038 strb.w r0, [r4, #56] ; 0x38
  2941. huart->gState = HAL_UART_STATE_READY;
  2942. 8005370: f884 3039 strb.w r3, [r4, #57] ; 0x39
  2943. return HAL_OK;
  2944. 8005374: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  2945. huart->TxXferCount--;
  2946. 8005378: 8ce3 ldrh r3, [r4, #38] ; 0x26
  2947. if(UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  2948. 800537a: 4632 mov r2, r6
  2949. huart->TxXferCount--;
  2950. 800537c: 3b01 subs r3, #1
  2951. 800537e: b29b uxth r3, r3
  2952. 8005380: 84e3 strh r3, [r4, #38] ; 0x26
  2953. if(huart->Init.WordLength == UART_WORDLENGTH_9B)
  2954. 8005382: 68a3 ldr r3, [r4, #8]
  2955. if(UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  2956. 8005384: 2180 movs r1, #128 ; 0x80
  2957. if(huart->Init.WordLength == UART_WORDLENGTH_9B)
  2958. 8005386: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  2959. if(UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  2960. 800538a: 4620 mov r0, r4
  2961. 800538c: 463b mov r3, r7
  2962. if(huart->Init.WordLength == UART_WORDLENGTH_9B)
  2963. 800538e: d10e bne.n 80053ae <HAL_UART_Transmit+0x9a>
  2964. if(UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  2965. 8005390: f7ff ff6a bl 8005268 <UART_WaitOnFlagUntilTimeout.constprop.3>
  2966. 8005394: b110 cbz r0, 800539c <HAL_UART_Transmit+0x88>
  2967. return HAL_TIMEOUT;
  2968. 8005396: 2003 movs r0, #3
  2969. 8005398: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  2970. huart->Instance->DR = (*tmp & (uint16_t)0x01FF);
  2971. 800539c: 882b ldrh r3, [r5, #0]
  2972. 800539e: 6822 ldr r2, [r4, #0]
  2973. 80053a0: f3c3 0308 ubfx r3, r3, #0, #9
  2974. 80053a4: 6053 str r3, [r2, #4]
  2975. if(huart->Init.Parity == UART_PARITY_NONE)
  2976. 80053a6: 6923 ldr r3, [r4, #16]
  2977. 80053a8: b943 cbnz r3, 80053bc <HAL_UART_Transmit+0xa8>
  2978. pData +=2U;
  2979. 80053aa: 3502 adds r5, #2
  2980. 80053ac: e7d3 b.n 8005356 <HAL_UART_Transmit+0x42>
  2981. if(UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  2982. 80053ae: f7ff ff5b bl 8005268 <UART_WaitOnFlagUntilTimeout.constprop.3>
  2983. 80053b2: 2800 cmp r0, #0
  2984. 80053b4: d1ef bne.n 8005396 <HAL_UART_Transmit+0x82>
  2985. huart->Instance->DR = (*pData++ & (uint8_t)0xFF);
  2986. 80053b6: 6823 ldr r3, [r4, #0]
  2987. 80053b8: 782a ldrb r2, [r5, #0]
  2988. 80053ba: 605a str r2, [r3, #4]
  2989. 80053bc: 3501 adds r5, #1
  2990. 80053be: e7ca b.n 8005356 <HAL_UART_Transmit+0x42>
  2991. return HAL_ERROR;
  2992. 80053c0: 2001 movs r0, #1
  2993. 80053c2: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  2994. return HAL_BUSY;
  2995. 80053c6: 2002 movs r0, #2
  2996. }
  2997. 80053c8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  2998. 080053cc <HAL_UART_Receive_IT>:
  2999. if(huart->RxState == HAL_UART_STATE_READY)
  3000. 80053cc: f890 303a ldrb.w r3, [r0, #58] ; 0x3a
  3001. 80053d0: 2b20 cmp r3, #32
  3002. 80053d2: d120 bne.n 8005416 <HAL_UART_Receive_IT+0x4a>
  3003. if((pData == NULL) || (Size == 0U))
  3004. 80053d4: b1e9 cbz r1, 8005412 <HAL_UART_Receive_IT+0x46>
  3005. 80053d6: b1e2 cbz r2, 8005412 <HAL_UART_Receive_IT+0x46>
  3006. __HAL_LOCK(huart);
  3007. 80053d8: f890 3038 ldrb.w r3, [r0, #56] ; 0x38
  3008. 80053dc: 2b01 cmp r3, #1
  3009. 80053de: d01a beq.n 8005416 <HAL_UART_Receive_IT+0x4a>
  3010. huart->RxXferCount = Size;
  3011. 80053e0: 85c2 strh r2, [r0, #46] ; 0x2e
  3012. huart->RxXferSize = Size;
  3013. 80053e2: 8582 strh r2, [r0, #44] ; 0x2c
  3014. huart->ErrorCode = HAL_UART_ERROR_NONE;
  3015. 80053e4: 2300 movs r3, #0
  3016. huart->RxState = HAL_UART_STATE_BUSY_RX;
  3017. 80053e6: 2222 movs r2, #34 ; 0x22
  3018. huart->ErrorCode = HAL_UART_ERROR_NONE;
  3019. 80053e8: 63c3 str r3, [r0, #60] ; 0x3c
  3020. huart->RxState = HAL_UART_STATE_BUSY_RX;
  3021. 80053ea: f880 203a strb.w r2, [r0, #58] ; 0x3a
  3022. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  3023. 80053ee: 6802 ldr r2, [r0, #0]
  3024. huart->pRxBuffPtr = pData;
  3025. 80053f0: 6281 str r1, [r0, #40] ; 0x28
  3026. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  3027. 80053f2: 68d1 ldr r1, [r2, #12]
  3028. __HAL_UNLOCK(huart);
  3029. 80053f4: f880 3038 strb.w r3, [r0, #56] ; 0x38
  3030. __HAL_UART_ENABLE_IT(huart, UART_IT_PE);
  3031. 80053f8: f441 7180 orr.w r1, r1, #256 ; 0x100
  3032. 80053fc: 60d1 str r1, [r2, #12]
  3033. __HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
  3034. 80053fe: 6951 ldr r1, [r2, #20]
  3035. return HAL_OK;
  3036. 8005400: 4618 mov r0, r3
  3037. __HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
  3038. 8005402: f041 0101 orr.w r1, r1, #1
  3039. 8005406: 6151 str r1, [r2, #20]
  3040. __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE);
  3041. 8005408: 68d1 ldr r1, [r2, #12]
  3042. 800540a: f041 0120 orr.w r1, r1, #32
  3043. 800540e: 60d1 str r1, [r2, #12]
  3044. return HAL_OK;
  3045. 8005410: 4770 bx lr
  3046. return HAL_ERROR;
  3047. 8005412: 2001 movs r0, #1
  3048. 8005414: 4770 bx lr
  3049. return HAL_BUSY;
  3050. 8005416: 2002 movs r0, #2
  3051. }
  3052. 8005418: 4770 bx lr
  3053. 0800541a <HAL_UART_TxCpltCallback>:
  3054. 800541a: 4770 bx lr
  3055. 0800541c <UART_Receive_IT>:
  3056. if(huart->RxState == HAL_UART_STATE_BUSY_RX)
  3057. 800541c: f890 303a ldrb.w r3, [r0, #58] ; 0x3a
  3058. {
  3059. 8005420: b510 push {r4, lr}
  3060. if(huart->RxState == HAL_UART_STATE_BUSY_RX)
  3061. 8005422: 2b22 cmp r3, #34 ; 0x22
  3062. 8005424: d136 bne.n 8005494 <UART_Receive_IT+0x78>
  3063. if(huart->Init.WordLength == UART_WORDLENGTH_9B)
  3064. 8005426: 6883 ldr r3, [r0, #8]
  3065. 8005428: 6901 ldr r1, [r0, #16]
  3066. 800542a: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  3067. 800542e: 6802 ldr r2, [r0, #0]
  3068. 8005430: 6a83 ldr r3, [r0, #40] ; 0x28
  3069. 8005432: d123 bne.n 800547c <UART_Receive_IT+0x60>
  3070. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF);
  3071. 8005434: 6852 ldr r2, [r2, #4]
  3072. if(huart->Init.Parity == UART_PARITY_NONE)
  3073. 8005436: b9e9 cbnz r1, 8005474 <UART_Receive_IT+0x58>
  3074. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF);
  3075. 8005438: f3c2 0208 ubfx r2, r2, #0, #9
  3076. 800543c: f823 2b02 strh.w r2, [r3], #2
  3077. huart->pRxBuffPtr += 1U;
  3078. 8005440: 6283 str r3, [r0, #40] ; 0x28
  3079. if(--huart->RxXferCount == 0U)
  3080. 8005442: 8dc4 ldrh r4, [r0, #46] ; 0x2e
  3081. 8005444: 3c01 subs r4, #1
  3082. 8005446: b2a4 uxth r4, r4
  3083. 8005448: 85c4 strh r4, [r0, #46] ; 0x2e
  3084. 800544a: b98c cbnz r4, 8005470 <UART_Receive_IT+0x54>
  3085. __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE);
  3086. 800544c: 6803 ldr r3, [r0, #0]
  3087. 800544e: 68da ldr r2, [r3, #12]
  3088. 8005450: f022 0220 bic.w r2, r2, #32
  3089. 8005454: 60da str r2, [r3, #12]
  3090. __HAL_UART_DISABLE_IT(huart, UART_IT_PE);
  3091. 8005456: 68da ldr r2, [r3, #12]
  3092. 8005458: f422 7280 bic.w r2, r2, #256 ; 0x100
  3093. 800545c: 60da str r2, [r3, #12]
  3094. __HAL_UART_DISABLE_IT(huart, UART_IT_ERR);
  3095. 800545e: 695a ldr r2, [r3, #20]
  3096. 8005460: f022 0201 bic.w r2, r2, #1
  3097. 8005464: 615a str r2, [r3, #20]
  3098. huart->RxState = HAL_UART_STATE_READY;
  3099. 8005466: 2320 movs r3, #32
  3100. 8005468: f880 303a strb.w r3, [r0, #58] ; 0x3a
  3101. HAL_UART_RxCpltCallback(huart);
  3102. 800546c: f000 fa36 bl 80058dc <HAL_UART_RxCpltCallback>
  3103. if(--huart->RxXferCount == 0U)
  3104. 8005470: 2000 movs r0, #0
  3105. }
  3106. 8005472: bd10 pop {r4, pc}
  3107. *tmp = (uint16_t)(huart->Instance->DR & (uint16_t)0x00FF);
  3108. 8005474: b2d2 uxtb r2, r2
  3109. 8005476: f823 2b01 strh.w r2, [r3], #1
  3110. 800547a: e7e1 b.n 8005440 <UART_Receive_IT+0x24>
  3111. if(huart->Init.Parity == UART_PARITY_NONE)
  3112. 800547c: b921 cbnz r1, 8005488 <UART_Receive_IT+0x6c>
  3113. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF);
  3114. 800547e: 1c59 adds r1, r3, #1
  3115. 8005480: 6852 ldr r2, [r2, #4]
  3116. 8005482: 6281 str r1, [r0, #40] ; 0x28
  3117. *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F);
  3118. 8005484: 701a strb r2, [r3, #0]
  3119. 8005486: e7dc b.n 8005442 <UART_Receive_IT+0x26>
  3120. 8005488: 6852 ldr r2, [r2, #4]
  3121. 800548a: 1c59 adds r1, r3, #1
  3122. 800548c: 6281 str r1, [r0, #40] ; 0x28
  3123. 800548e: f002 027f and.w r2, r2, #127 ; 0x7f
  3124. 8005492: e7f7 b.n 8005484 <UART_Receive_IT+0x68>
  3125. return HAL_BUSY;
  3126. 8005494: 2002 movs r0, #2
  3127. 8005496: bd10 pop {r4, pc}
  3128. 08005498 <HAL_UART_ErrorCallback>:
  3129. 8005498: 4770 bx lr
  3130. ...
  3131. 0800549c <HAL_UART_IRQHandler>:
  3132. uint32_t isrflags = READ_REG(huart->Instance->SR);
  3133. 800549c: 6803 ldr r3, [r0, #0]
  3134. {
  3135. 800549e: b570 push {r4, r5, r6, lr}
  3136. uint32_t isrflags = READ_REG(huart->Instance->SR);
  3137. 80054a0: 681a ldr r2, [r3, #0]
  3138. {
  3139. 80054a2: 4604 mov r4, r0
  3140. if(errorflags == RESET)
  3141. 80054a4: 0716 lsls r6, r2, #28
  3142. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  3143. 80054a6: 68d9 ldr r1, [r3, #12]
  3144. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  3145. 80054a8: 695d ldr r5, [r3, #20]
  3146. if(errorflags == RESET)
  3147. 80054aa: d107 bne.n 80054bc <HAL_UART_IRQHandler+0x20>
  3148. if(((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  3149. 80054ac: 0696 lsls r6, r2, #26
  3150. 80054ae: d55a bpl.n 8005566 <HAL_UART_IRQHandler+0xca>
  3151. 80054b0: 068d lsls r5, r1, #26
  3152. 80054b2: d558 bpl.n 8005566 <HAL_UART_IRQHandler+0xca>
  3153. }
  3154. 80054b4: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  3155. UART_Receive_IT(huart);
  3156. 80054b8: f7ff bfb0 b.w 800541c <UART_Receive_IT>
  3157. if((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET)))
  3158. 80054bc: f015 0501 ands.w r5, r5, #1
  3159. 80054c0: d102 bne.n 80054c8 <HAL_UART_IRQHandler+0x2c>
  3160. 80054c2: f411 7f90 tst.w r1, #288 ; 0x120
  3161. 80054c6: d04e beq.n 8005566 <HAL_UART_IRQHandler+0xca>
  3162. if(((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET))
  3163. 80054c8: 07d3 lsls r3, r2, #31
  3164. 80054ca: d505 bpl.n 80054d8 <HAL_UART_IRQHandler+0x3c>
  3165. 80054cc: 05ce lsls r6, r1, #23
  3166. huart->ErrorCode |= HAL_UART_ERROR_PE;
  3167. 80054ce: bf42 ittt mi
  3168. 80054d0: 6be3 ldrmi r3, [r4, #60] ; 0x3c
  3169. 80054d2: f043 0301 orrmi.w r3, r3, #1
  3170. 80054d6: 63e3 strmi r3, [r4, #60] ; 0x3c
  3171. if(((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  3172. 80054d8: 0750 lsls r0, r2, #29
  3173. 80054da: d504 bpl.n 80054e6 <HAL_UART_IRQHandler+0x4a>
  3174. 80054dc: b11d cbz r5, 80054e6 <HAL_UART_IRQHandler+0x4a>
  3175. huart->ErrorCode |= HAL_UART_ERROR_NE;
  3176. 80054de: 6be3 ldr r3, [r4, #60] ; 0x3c
  3177. 80054e0: f043 0302 orr.w r3, r3, #2
  3178. 80054e4: 63e3 str r3, [r4, #60] ; 0x3c
  3179. if(((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  3180. 80054e6: 0793 lsls r3, r2, #30
  3181. 80054e8: d504 bpl.n 80054f4 <HAL_UART_IRQHandler+0x58>
  3182. 80054ea: b11d cbz r5, 80054f4 <HAL_UART_IRQHandler+0x58>
  3183. huart->ErrorCode |= HAL_UART_ERROR_FE;
  3184. 80054ec: 6be3 ldr r3, [r4, #60] ; 0x3c
  3185. 80054ee: f043 0304 orr.w r3, r3, #4
  3186. 80054f2: 63e3 str r3, [r4, #60] ; 0x3c
  3187. if(((isrflags & USART_SR_ORE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET))
  3188. 80054f4: 0716 lsls r6, r2, #28
  3189. 80054f6: d504 bpl.n 8005502 <HAL_UART_IRQHandler+0x66>
  3190. 80054f8: b11d cbz r5, 8005502 <HAL_UART_IRQHandler+0x66>
  3191. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  3192. 80054fa: 6be3 ldr r3, [r4, #60] ; 0x3c
  3193. 80054fc: f043 0308 orr.w r3, r3, #8
  3194. 8005500: 63e3 str r3, [r4, #60] ; 0x3c
  3195. if(huart->ErrorCode != HAL_UART_ERROR_NONE)
  3196. 8005502: 6be3 ldr r3, [r4, #60] ; 0x3c
  3197. 8005504: 2b00 cmp r3, #0
  3198. 8005506: d066 beq.n 80055d6 <HAL_UART_IRQHandler+0x13a>
  3199. if(((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET))
  3200. 8005508: 0695 lsls r5, r2, #26
  3201. 800550a: d504 bpl.n 8005516 <HAL_UART_IRQHandler+0x7a>
  3202. 800550c: 0688 lsls r0, r1, #26
  3203. 800550e: d502 bpl.n 8005516 <HAL_UART_IRQHandler+0x7a>
  3204. UART_Receive_IT(huart);
  3205. 8005510: 4620 mov r0, r4
  3206. 8005512: f7ff ff83 bl 800541c <UART_Receive_IT>
  3207. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  3208. 8005516: 6823 ldr r3, [r4, #0]
  3209. UART_EndRxTransfer(huart);
  3210. 8005518: 4620 mov r0, r4
  3211. dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR);
  3212. 800551a: 695d ldr r5, [r3, #20]
  3213. if(((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest)
  3214. 800551c: 6be2 ldr r2, [r4, #60] ; 0x3c
  3215. 800551e: 0711 lsls r1, r2, #28
  3216. 8005520: d402 bmi.n 8005528 <HAL_UART_IRQHandler+0x8c>
  3217. 8005522: f015 0540 ands.w r5, r5, #64 ; 0x40
  3218. 8005526: d01a beq.n 800555e <HAL_UART_IRQHandler+0xc2>
  3219. UART_EndRxTransfer(huart);
  3220. 8005528: f7ff fdf2 bl 8005110 <UART_EndRxTransfer>
  3221. if(HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  3222. 800552c: 6823 ldr r3, [r4, #0]
  3223. 800552e: 695a ldr r2, [r3, #20]
  3224. 8005530: 0652 lsls r2, r2, #25
  3225. 8005532: d510 bpl.n 8005556 <HAL_UART_IRQHandler+0xba>
  3226. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  3227. 8005534: 695a ldr r2, [r3, #20]
  3228. if(huart->hdmarx != NULL)
  3229. 8005536: 6b60 ldr r0, [r4, #52] ; 0x34
  3230. CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  3231. 8005538: f022 0240 bic.w r2, r2, #64 ; 0x40
  3232. 800553c: 615a str r2, [r3, #20]
  3233. if(huart->hdmarx != NULL)
  3234. 800553e: b150 cbz r0, 8005556 <HAL_UART_IRQHandler+0xba>
  3235. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  3236. 8005540: 4b25 ldr r3, [pc, #148] ; (80055d8 <HAL_UART_IRQHandler+0x13c>)
  3237. 8005542: 6343 str r3, [r0, #52] ; 0x34
  3238. if(HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  3239. 8005544: f7fe ff3c bl 80043c0 <HAL_DMA_Abort_IT>
  3240. 8005548: 2800 cmp r0, #0
  3241. 800554a: d044 beq.n 80055d6 <HAL_UART_IRQHandler+0x13a>
  3242. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  3243. 800554c: 6b60 ldr r0, [r4, #52] ; 0x34
  3244. }
  3245. 800554e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  3246. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  3247. 8005552: 6b43 ldr r3, [r0, #52] ; 0x34
  3248. 8005554: 4718 bx r3
  3249. HAL_UART_ErrorCallback(huart);
  3250. 8005556: 4620 mov r0, r4
  3251. 8005558: f7ff ff9e bl 8005498 <HAL_UART_ErrorCallback>
  3252. 800555c: bd70 pop {r4, r5, r6, pc}
  3253. HAL_UART_ErrorCallback(huart);
  3254. 800555e: f7ff ff9b bl 8005498 <HAL_UART_ErrorCallback>
  3255. huart->ErrorCode = HAL_UART_ERROR_NONE;
  3256. 8005562: 63e5 str r5, [r4, #60] ; 0x3c
  3257. 8005564: bd70 pop {r4, r5, r6, pc}
  3258. if(((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET))
  3259. 8005566: 0616 lsls r6, r2, #24
  3260. 8005568: d527 bpl.n 80055ba <HAL_UART_IRQHandler+0x11e>
  3261. 800556a: 060d lsls r5, r1, #24
  3262. 800556c: d525 bpl.n 80055ba <HAL_UART_IRQHandler+0x11e>
  3263. if(huart->gState == HAL_UART_STATE_BUSY_TX)
  3264. 800556e: f894 2039 ldrb.w r2, [r4, #57] ; 0x39
  3265. 8005572: 2a21 cmp r2, #33 ; 0x21
  3266. 8005574: d12f bne.n 80055d6 <HAL_UART_IRQHandler+0x13a>
  3267. if(huart->Init.WordLength == UART_WORDLENGTH_9B)
  3268. 8005576: 68a2 ldr r2, [r4, #8]
  3269. 8005578: f5b2 5f80 cmp.w r2, #4096 ; 0x1000
  3270. 800557c: 6a22 ldr r2, [r4, #32]
  3271. 800557e: d117 bne.n 80055b0 <HAL_UART_IRQHandler+0x114>
  3272. huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF);
  3273. 8005580: 8811 ldrh r1, [r2, #0]
  3274. 8005582: f3c1 0108 ubfx r1, r1, #0, #9
  3275. 8005586: 6059 str r1, [r3, #4]
  3276. if(huart->Init.Parity == UART_PARITY_NONE)
  3277. 8005588: 6921 ldr r1, [r4, #16]
  3278. 800558a: b979 cbnz r1, 80055ac <HAL_UART_IRQHandler+0x110>
  3279. huart->pTxBuffPtr += 2U;
  3280. 800558c: 3202 adds r2, #2
  3281. huart->pTxBuffPtr += 1U;
  3282. 800558e: 6222 str r2, [r4, #32]
  3283. if(--huart->TxXferCount == 0U)
  3284. 8005590: 8ce2 ldrh r2, [r4, #38] ; 0x26
  3285. 8005592: 3a01 subs r2, #1
  3286. 8005594: b292 uxth r2, r2
  3287. 8005596: 84e2 strh r2, [r4, #38] ; 0x26
  3288. 8005598: b9ea cbnz r2, 80055d6 <HAL_UART_IRQHandler+0x13a>
  3289. __HAL_UART_DISABLE_IT(huart, UART_IT_TXE);
  3290. 800559a: 68da ldr r2, [r3, #12]
  3291. 800559c: f022 0280 bic.w r2, r2, #128 ; 0x80
  3292. 80055a0: 60da str r2, [r3, #12]
  3293. __HAL_UART_ENABLE_IT(huart, UART_IT_TC);
  3294. 80055a2: 68da ldr r2, [r3, #12]
  3295. 80055a4: f042 0240 orr.w r2, r2, #64 ; 0x40
  3296. 80055a8: 60da str r2, [r3, #12]
  3297. 80055aa: bd70 pop {r4, r5, r6, pc}
  3298. huart->pTxBuffPtr += 1U;
  3299. 80055ac: 3201 adds r2, #1
  3300. 80055ae: e7ee b.n 800558e <HAL_UART_IRQHandler+0xf2>
  3301. huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF);
  3302. 80055b0: 1c51 adds r1, r2, #1
  3303. 80055b2: 6221 str r1, [r4, #32]
  3304. 80055b4: 7812 ldrb r2, [r2, #0]
  3305. 80055b6: 605a str r2, [r3, #4]
  3306. 80055b8: e7ea b.n 8005590 <HAL_UART_IRQHandler+0xf4>
  3307. if(((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET))
  3308. 80055ba: 0650 lsls r0, r2, #25
  3309. 80055bc: d50b bpl.n 80055d6 <HAL_UART_IRQHandler+0x13a>
  3310. 80055be: 064a lsls r2, r1, #25
  3311. 80055c0: d509 bpl.n 80055d6 <HAL_UART_IRQHandler+0x13a>
  3312. __HAL_UART_DISABLE_IT(huart, UART_IT_TC);
  3313. 80055c2: 68da ldr r2, [r3, #12]
  3314. HAL_UART_TxCpltCallback(huart);
  3315. 80055c4: 4620 mov r0, r4
  3316. __HAL_UART_DISABLE_IT(huart, UART_IT_TC);
  3317. 80055c6: f022 0240 bic.w r2, r2, #64 ; 0x40
  3318. 80055ca: 60da str r2, [r3, #12]
  3319. huart->gState = HAL_UART_STATE_READY;
  3320. 80055cc: 2320 movs r3, #32
  3321. 80055ce: f884 3039 strb.w r3, [r4, #57] ; 0x39
  3322. HAL_UART_TxCpltCallback(huart);
  3323. 80055d2: f7ff ff22 bl 800541a <HAL_UART_TxCpltCallback>
  3324. 80055d6: bd70 pop {r4, r5, r6, pc}
  3325. 80055d8: 080055dd .word 0x080055dd
  3326. 080055dc <UART_DMAAbortOnError>:
  3327. {
  3328. 80055dc: b508 push {r3, lr}
  3329. huart->RxXferCount = 0x00U;
  3330. 80055de: 2300 movs r3, #0
  3331. UART_HandleTypeDef* huart = ( UART_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  3332. 80055e0: 6a40 ldr r0, [r0, #36] ; 0x24
  3333. huart->RxXferCount = 0x00U;
  3334. 80055e2: 85c3 strh r3, [r0, #46] ; 0x2e
  3335. huart->TxXferCount = 0x00U;
  3336. 80055e4: 84c3 strh r3, [r0, #38] ; 0x26
  3337. HAL_UART_ErrorCallback(huart);
  3338. 80055e6: f7ff ff57 bl 8005498 <HAL_UART_ErrorCallback>
  3339. 80055ea: bd08 pop {r3, pc}
  3340. 080055ec <RGB_Response_Func>:
  3341. void RGB_Response_Func(uint8_t* data);
  3342. void RGB_Response_Func(uint8_t* data){
  3343. 80055ec: b510 push {r4, lr}
  3344. #if 0
  3345. for(uint8_t i = 0; i < 10; i++){
  3346. printf("%02x ",data[i]);
  3347. }
  3348. #endif
  3349. switch(type){
  3350. 80055ee: 7843 ldrb r3, [r0, #1]
  3351. void RGB_Response_Func(uint8_t* data){
  3352. 80055f0: 4604 mov r4, r0
  3353. switch(type){
  3354. 80055f2: 3b01 subs r3, #1
  3355. 80055f4: 2b08 cmp r3, #8
  3356. 80055f6: d822 bhi.n 800563e <RGB_Response_Func+0x52>
  3357. 80055f8: e8df f003 tbb [pc, r3]
  3358. 80055fc: 21170517 .word 0x21170517
  3359. 8005600: 17170d0b .word 0x17170d0b
  3360. 8005604: 1d .byte 0x1d
  3361. 8005605: 00 .byte 0x00
  3362. case RGB_Status_Data_Request:
  3363. Uart2_Data_Send(data,RGB_SensorDataRequest_Length);
  3364. break;
  3365. case RGB_ControllerID_SET:
  3366. Uart1_Data_Send(data,RGB_ControllerID_SET_Length);
  3367. 8005606: 210a movs r1, #10
  3368. break;
  3369. case RGB_SensorID_SET:
  3370. Uart2_Data_Send(data,RGB_SensorIDAutoSetRequest_Length);
  3371. break;
  3372. case RGB_Status_Data_Response:
  3373. Uart1_Data_Send(data,RGB_SensorDataResponse_Length);
  3374. 8005608: 4620 mov r0, r4
  3375. case RGB_SensorID_SET_Success:
  3376. break;
  3377. }
  3378. }
  3379. 800560a: e8bd 4010 ldmia.w sp!, {r4, lr}
  3380. Uart1_Data_Send(data,RGB_SensorDataResponse_Length);
  3381. 800560e: f000 b9f5 b.w 80059fc <Uart1_Data_Send>
  3382. 8005612: 210f movs r1, #15
  3383. 8005614: e7f8 b.n 8005608 <RGB_Response_Func+0x1c>
  3384. Uart1_Data_Send(data,data[blucell_length] + 3);
  3385. 8005616: 7881 ldrb r1, [r0, #2]
  3386. 8005618: 3103 adds r1, #3
  3387. 800561a: b2c9 uxtb r1, r1
  3388. 800561c: f000 f9ee bl 80059fc <Uart1_Data_Send>
  3389. Flash_write(&data[0]);
  3390. 8005620: 4620 mov r0, r4
  3391. }
  3392. 8005622: e8bd 4010 ldmia.w sp!, {r4, lr}
  3393. Flash_write(&data[0]);
  3394. 8005626: f000 bb85 b.w 8005d34 <Flash_write>
  3395. Uart2_Data_Send(data,RGB_SensorIDAutoSetRequest_Length);
  3396. 800562a: 2107 movs r1, #7
  3397. Uart2_Data_Send(data,data[blucell_length] + 3);
  3398. 800562c: 4620 mov r0, r4
  3399. }
  3400. 800562e: e8bd 4010 ldmia.w sp!, {r4, lr}
  3401. Uart2_Data_Send(data,data[blucell_length] + 3);
  3402. 8005632: f000 b9db b.w 80059ec <Uart2_Data_Send>
  3403. 8005636: 7881 ldrb r1, [r0, #2]
  3404. 8005638: 3103 adds r1, #3
  3405. 800563a: b2c9 uxtb r1, r1
  3406. 800563c: e7f6 b.n 800562c <RGB_Response_Func+0x40>
  3407. 800563e: bd10 pop {r4, pc}
  3408. 08005640 <RGB_Alarm_Check>:
  3409. uint16_t Sensor_red[9] = {0,};
  3410. uint16_t Sensor_green[9] = {0,};
  3411. uint16_t Sensor_blue[9] = {0,};
  3412. void RGB_Alarm_Check(uint8_t* data){
  3413. 8005640: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  3414. Sensor_red[data[blucell_srcid]] = ((data[blucell_red_H + 2] << 8)| data[blucell_red_L + 2]);
  3415. 8005644: 7981 ldrb r1, [r0, #6]
  3416. 8005646: 79c3 ldrb r3, [r0, #7]
  3417. 8005648: 78c2 ldrb r2, [r0, #3]
  3418. 800564a: 4c2d ldr r4, [pc, #180] ; (8005700 <RGB_Alarm_Check+0xc0>)
  3419. 800564c: ea43 2301 orr.w r3, r3, r1, lsl #8
  3420. 8005650: f824 3012 strh.w r3, [r4, r2, lsl #1]
  3421. Sensor_green[data[blucell_srcid]] = ((data[blucell_green_H + 2] << 8)| data[blucell_green_L + 2]);
  3422. 8005654: 7a05 ldrb r5, [r0, #8]
  3423. 8005656: 7a43 ldrb r3, [r0, #9]
  3424. 8005658: 78c2 ldrb r2, [r0, #3]
  3425. 800565a: 492a ldr r1, [pc, #168] ; (8005704 <RGB_Alarm_Check+0xc4>)
  3426. 800565c: ea43 2305 orr.w r3, r3, r5, lsl #8
  3427. 8005660: f821 3012 strh.w r3, [r1, r2, lsl #1]
  3428. Sensor_blue[data[blucell_srcid]] = ((data[blucell_blue_H + 2] << 8)| data[blucell_blue_L + 2]);
  3429. 8005664: 7a86 ldrb r6, [r0, #10]
  3430. 8005666: 7ac3 ldrb r3, [r0, #11]
  3431. 8005668: 78c5 ldrb r5, [r0, #3]
  3432. 800566a: 4a27 ldr r2, [pc, #156] ; (8005708 <RGB_Alarm_Check+0xc8>)
  3433. 800566c: ea43 2306 orr.w r3, r3, r6, lsl #8
  3434. 8005670: f822 3015 strh.w r3, [r2, r5, lsl #1]
  3435. uint8_t LED_Alarm = 0;
  3436. for(uint8_t i = 1; i <= (SensorID_Cnt); i++){
  3437. 8005674: 4b25 ldr r3, [pc, #148] ; (800570c <RGB_Alarm_Check+0xcc>)
  3438. 8005676: 4608 mov r0, r1
  3439. 8005678: f893 c000 ldrb.w ip, [r3]
  3440. 800567c: 4611 mov r1, r2
  3441. 800567e: 2301 movs r3, #1
  3442. if(RGB_SensorRedLimit_Buf[SensorID_buf[i]] >= Sensor_red[SensorID_buf[i]]
  3443. 8005680: 4d23 ldr r5, [pc, #140] ; (8005710 <RGB_Alarm_Check+0xd0>)
  3444. 8005682: 4e24 ldr r6, [pc, #144] ; (8005714 <RGB_Alarm_Check+0xd4>)
  3445. || RGB_SensorGreenLimit_Buf[SensorID_buf[i]] >= Sensor_green[SensorID_buf[i]]
  3446. 8005684: 4f24 ldr r7, [pc, #144] ; (8005718 <RGB_Alarm_Check+0xd8>)
  3447. || RGB_SensorBlueLimit_Buf[SensorID_buf[i]] >= Sensor_blue[SensorID_buf[i]]) {
  3448. 8005686: f8df e0a0 ldr.w lr, [pc, #160] ; 8005728 <RGB_Alarm_Check+0xe8>
  3449. for(uint8_t i = 1; i <= (SensorID_Cnt); i++){
  3450. 800568a: 4563 cmp r3, ip
  3451. 800568c: d90d bls.n 80056aa <RGB_Alarm_Check+0x6a>
  3452. if(LED_Alarm == 1){
  3453. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, GPIO_PIN_SET);
  3454. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_13, GPIO_PIN_RESET);
  3455. HAL_GPIO_WritePin(GPIOC, GPIO_PIN_10, GPIO_PIN_SET);
  3456. }else{
  3457. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, GPIO_PIN_RESET);
  3458. 800568e: 2200 movs r2, #0
  3459. 8005690: f44f 5180 mov.w r1, #4096 ; 0x1000
  3460. 8005694: 4821 ldr r0, [pc, #132] ; (800571c <RGB_Alarm_Check+0xdc>)
  3461. 8005696: f7ff f8a1 bl 80047dc <HAL_GPIO_WritePin>
  3462. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_13, GPIO_PIN_SET);
  3463. 800569a: 2201 movs r2, #1
  3464. 800569c: f44f 5100 mov.w r1, #8192 ; 0x2000
  3465. 80056a0: 481f ldr r0, [pc, #124] ; (8005720 <RGB_Alarm_Check+0xe0>)
  3466. 80056a2: f7ff f89b bl 80047dc <HAL_GPIO_WritePin>
  3467. HAL_GPIO_WritePin(GPIOC, GPIO_PIN_10, GPIO_PIN_RESET);
  3468. 80056a6: 2200 movs r2, #0
  3469. 80056a8: e022 b.n 80056f0 <RGB_Alarm_Check+0xb0>
  3470. if(RGB_SensorRedLimit_Buf[SensorID_buf[i]] >= Sensor_red[SensorID_buf[i]]
  3471. 80056aa: 5cea ldrb r2, [r5, r3]
  3472. 80056ac: f836 9012 ldrh.w r9, [r6, r2, lsl #1]
  3473. 80056b0: f834 8012 ldrh.w r8, [r4, r2, lsl #1]
  3474. 80056b4: 45c1 cmp r9, r8
  3475. 80056b6: d20e bcs.n 80056d6 <RGB_Alarm_Check+0x96>
  3476. || RGB_SensorGreenLimit_Buf[SensorID_buf[i]] >= Sensor_green[SensorID_buf[i]]
  3477. 80056b8: f837 9012 ldrh.w r9, [r7, r2, lsl #1]
  3478. 80056bc: f830 8012 ldrh.w r8, [r0, r2, lsl #1]
  3479. 80056c0: 45c1 cmp r9, r8
  3480. 80056c2: d208 bcs.n 80056d6 <RGB_Alarm_Check+0x96>
  3481. || RGB_SensorBlueLimit_Buf[SensorID_buf[i]] >= Sensor_blue[SensorID_buf[i]]) {
  3482. 80056c4: f83e 8012 ldrh.w r8, [lr, r2, lsl #1]
  3483. 80056c8: f831 2012 ldrh.w r2, [r1, r2, lsl #1]
  3484. 80056cc: 4590 cmp r8, r2
  3485. 80056ce: d202 bcs.n 80056d6 <RGB_Alarm_Check+0x96>
  3486. for(uint8_t i = 1; i <= (SensorID_Cnt); i++){
  3487. 80056d0: 3301 adds r3, #1
  3488. 80056d2: b2db uxtb r3, r3
  3489. 80056d4: e7d9 b.n 800568a <RGB_Alarm_Check+0x4a>
  3490. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, GPIO_PIN_SET);
  3491. 80056d6: 2201 movs r2, #1
  3492. 80056d8: f44f 5180 mov.w r1, #4096 ; 0x1000
  3493. 80056dc: 480f ldr r0, [pc, #60] ; (800571c <RGB_Alarm_Check+0xdc>)
  3494. 80056de: f7ff f87d bl 80047dc <HAL_GPIO_WritePin>
  3495. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_13, GPIO_PIN_RESET);
  3496. 80056e2: 2200 movs r2, #0
  3497. 80056e4: f44f 5100 mov.w r1, #8192 ; 0x2000
  3498. 80056e8: 480d ldr r0, [pc, #52] ; (8005720 <RGB_Alarm_Check+0xe0>)
  3499. 80056ea: f7ff f877 bl 80047dc <HAL_GPIO_WritePin>
  3500. HAL_GPIO_WritePin(GPIOC, GPIO_PIN_10, GPIO_PIN_SET);
  3501. 80056ee: 2201 movs r2, #1
  3502. }
  3503. }
  3504. 80056f0: e8bd 43f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  3505. HAL_GPIO_WritePin(GPIOC, GPIO_PIN_10, GPIO_PIN_RESET);
  3506. 80056f4: f44f 6180 mov.w r1, #1024 ; 0x400
  3507. 80056f8: 480a ldr r0, [pc, #40] ; (8005724 <RGB_Alarm_Check+0xe4>)
  3508. 80056fa: f7ff b86f b.w 80047dc <HAL_GPIO_WritePin>
  3509. 80056fe: bf00 nop
  3510. 8005700: 200000f0 .word 0x200000f0
  3511. 8005704: 200000de .word 0x200000de
  3512. 8005708: 200000cc .word 0x200000cc
  3513. 800570c: 200000c2 .word 0x200000c2
  3514. 8005710: 200000c3 .word 0x200000c3
  3515. 8005714: 200000b0 .word 0x200000b0
  3516. 8005718: 2000009e .word 0x2000009e
  3517. 800571c: 40010c00 .word 0x40010c00
  3518. 8005720: 40010800 .word 0x40010800
  3519. 8005724: 40011000 .word 0x40011000
  3520. 8005728: 2000008c .word 0x2000008c
  3521. 0800572c <RGB_DeviceStatusCheck>:
  3522. uint8_t RGB_DeviceStatusCheck(void){
  3523. 800572c: b530 push {r4, r5, lr}
  3524. uint8_t ret = 0;
  3525. for(uint8_t i = 1; i <= SensorID_Cnt; i++){
  3526. 800572e: 4b09 ldr r3, [pc, #36] ; (8005754 <RGB_DeviceStatusCheck+0x28>)
  3527. uint8_t ret = 0;
  3528. 8005730: 2000 movs r0, #0
  3529. for(uint8_t i = 1; i <= SensorID_Cnt; i++){
  3530. 8005732: 7819 ldrb r1, [r3, #0]
  3531. 8005734: 2301 movs r3, #1
  3532. if(SensorID_buf[i] > 0){
  3533. ret += 0x01 << (SensorID_buf[i] - 1);
  3534. 8005736: 461d mov r5, r3
  3535. if(SensorID_buf[i] > 0){
  3536. 8005738: 4c07 ldr r4, [pc, #28] ; (8005758 <RGB_DeviceStatusCheck+0x2c>)
  3537. for(uint8_t i = 1; i <= SensorID_Cnt; i++){
  3538. 800573a: 428b cmp r3, r1
  3539. 800573c: d900 bls.n 8005740 <RGB_DeviceStatusCheck+0x14>
  3540. }
  3541. }
  3542. return ret;
  3543. }
  3544. 800573e: bd30 pop {r4, r5, pc}
  3545. if(SensorID_buf[i] > 0){
  3546. 8005740: 5ce2 ldrb r2, [r4, r3]
  3547. 8005742: b122 cbz r2, 800574e <RGB_DeviceStatusCheck+0x22>
  3548. ret += 0x01 << (SensorID_buf[i] - 1);
  3549. 8005744: 3a01 subs r2, #1
  3550. 8005746: fa05 f202 lsl.w r2, r5, r2
  3551. 800574a: 4410 add r0, r2
  3552. 800574c: b2c0 uxtb r0, r0
  3553. for(uint8_t i = 1; i <= SensorID_Cnt; i++){
  3554. 800574e: 3301 adds r3, #1
  3555. 8005750: b2db uxtb r3, r3
  3556. 8005752: e7f2 b.n 800573a <RGB_DeviceStatusCheck+0xe>
  3557. 8005754: 200000c2 .word 0x200000c2
  3558. 8005758: 200000c3 .word 0x200000c3
  3559. 0800575c <RGB_Controller_Func>:
  3560. uint8_t datalosscnt[9] = {0,};
  3561. void RGB_Controller_Func(uint8_t* data){
  3562. 800575c: b530 push {r4, r5, lr}
  3563. RGB_CMD_T type = data[blucell_type];
  3564. 800575e: 7845 ldrb r5, [r0, #1]
  3565. void RGB_Controller_Func(uint8_t* data){
  3566. 8005760: b09b sub sp, #108 ; 0x6c
  3567. 8005762: 4604 mov r4, r0
  3568. // static uint8_t temp_sensorid;
  3569. uint8_t Result_buf[100] = {0,};
  3570. 8005764: 2264 movs r2, #100 ; 0x64
  3571. 8005766: 2100 movs r1, #0
  3572. 8005768: a801 add r0, sp, #4
  3573. 800576a: f000 ff26 bl 80065ba <memset>
  3574. switch(type){
  3575. 800576e: 1e6b subs r3, r5, #1
  3576. 8005770: 2b09 cmp r3, #9
  3577. 8005772: d824 bhi.n 80057be <RGB_Controller_Func+0x62>
  3578. 8005774: e8df f003 tbb [pc, r3]
  3579. 8005778: 46342805 .word 0x46342805
  3580. 800577c: 23236b4f .word 0x23236b4f
  3581. 8005780: 9223 .short 0x9223
  3582. case RGB_Status_Data_Request:
  3583. datalosscnt[data[blucell_srcid + 1]]++;
  3584. 8005782: 4b4d ldr r3, [pc, #308] ; (80058b8 <RGB_Controller_Func+0x15c>)
  3585. 8005784: 7921 ldrb r1, [r4, #4]
  3586. 8005786: 5c5a ldrb r2, [r3, r1]
  3587. 8005788: 3201 adds r2, #1
  3588. 800578a: 545a strb r2, [r3, r1]
  3589. if(datalosscnt[data[blucell_srcid + 1]] > 3 && data[blucell_srcid + 1] != 0){
  3590. 800578c: 7922 ldrb r2, [r4, #4]
  3591. 800578e: 5c9b ldrb r3, [r3, r2]
  3592. 8005790: 2b03 cmp r3, #3
  3593. 8005792: d907 bls.n 80057a4 <RGB_Controller_Func+0x48>
  3594. 8005794: b132 cbz r2, 80057a4 <RGB_Controller_Func+0x48>
  3595. RGB_SensorIDAutoSet(1);
  3596. 8005796: 2001 movs r0, #1
  3597. 8005798: f000 f9a2 bl 8005ae0 <RGB_SensorIDAutoSet>
  3598. memset(&SensorID_buf[0],0x00,8);
  3599. 800579c: 2200 movs r2, #0
  3600. 800579e: 4b47 ldr r3, [pc, #284] ; (80058bc <RGB_Controller_Func+0x160>)
  3601. 80057a0: 601a str r2, [r3, #0]
  3602. 80057a2: 605a str r2, [r3, #4]
  3603. }
  3604. data[5] = STH30_CreateCrc(&data[blucell_type],data[blucell_length]);
  3605. 80057a4: 78a1 ldrb r1, [r4, #2]
  3606. 80057a6: 1c60 adds r0, r4, #1
  3607. 80057a8: f000 fd14 bl 80061d4 <STH30_CreateCrc>
  3608. 80057ac: 7160 strb r0, [r4, #5]
  3609. memcpy(&Result_buf[blucell_stx],&data[blucell_stx],RGB_SensorDataRequest_Length);
  3610. 80057ae: 88a2 ldrh r2, [r4, #4]
  3611. 80057b0: 6820 ldr r0, [r4, #0]
  3612. 80057b2: 79a3 ldrb r3, [r4, #6]
  3613. 80057b4: 9001 str r0, [sp, #4]
  3614. 80057b6: f8ad 2008 strh.w r2, [sp, #8]
  3615. 80057ba: f88d 300a strb.w r3, [sp, #10]
  3616. break;
  3617. default:
  3618. break;
  3619. }
  3620. RGB_Response_Func(&Result_buf[blucell_stx]);
  3621. 80057be: a801 add r0, sp, #4
  3622. 80057c0: f7ff ff14 bl 80055ec <RGB_Response_Func>
  3623. return;
  3624. }
  3625. 80057c4: b01b add sp, #108 ; 0x6c
  3626. 80057c6: bd30 pop {r4, r5, pc}
  3627. memcpy(&Result_buf[blucell_stx],&data[blucell_stx],data[blucell_length] + 3);
  3628. 80057c8: 78a2 ldrb r2, [r4, #2]
  3629. 80057ca: 4621 mov r1, r4
  3630. 80057cc: 3203 adds r2, #3
  3631. 80057ce: a801 add r0, sp, #4
  3632. 80057d0: f000 fee8 bl 80065a4 <memcpy>
  3633. MyControllerID = Result_buf[7] = data[7];//�긽��諛⑹쓽 DST ID �뒗 �굹�쓽 ID �씠�떎.
  3634. 80057d4: 79e3 ldrb r3, [r4, #7]
  3635. 80057d6: 4a3a ldr r2, [pc, #232] ; (80058c0 <RGB_Controller_Func+0x164>)
  3636. 80057d8: f88d 300b strb.w r3, [sp, #11]
  3637. 80057dc: 7013 strb r3, [r2, #0]
  3638. break;
  3639. 80057de: e7ee b.n 80057be <RGB_Controller_Func+0x62>
  3640. RGB_SensorIDAutoSet(1);
  3641. 80057e0: 2001 movs r0, #1
  3642. 80057e2: f000 f97d bl 8005ae0 <RGB_SensorIDAutoSet>
  3643. memcpy(&Result_buf[blucell_stx],&data[blucell_stx],data[blucell_length] + 3);
  3644. 80057e6: 78a2 ldrb r2, [r4, #2]
  3645. 80057e8: 4621 mov r1, r4
  3646. 80057ea: 3203 adds r2, #3
  3647. 80057ec: a801 add r0, sp, #4
  3648. 80057ee: f000 fed9 bl 80065a4 <memcpy>
  3649. Result_buf[5] = STH30_CreateCrc(&Result_buf[blucell_type],Result_buf[blucell_length]);
  3650. 80057f2: f89d 1006 ldrb.w r1, [sp, #6]
  3651. 80057f6: f10d 0005 add.w r0, sp, #5
  3652. 80057fa: f000 fceb bl 80061d4 <STH30_CreateCrc>
  3653. 80057fe: f88d 0009 strb.w r0, [sp, #9]
  3654. break;
  3655. 8005802: e7dc b.n 80057be <RGB_Controller_Func+0x62>
  3656. SensorID_Cnt++;
  3657. 8005804: 4a2f ldr r2, [pc, #188] ; (80058c4 <RGB_Controller_Func+0x168>)
  3658. SensorID_buf[SensorID_Cnt] = data[blucell_length + 1];
  3659. 8005806: 78e1 ldrb r1, [r4, #3]
  3660. SensorID_Cnt++;
  3661. 8005808: 7813 ldrb r3, [r2, #0]
  3662. 800580a: 3301 adds r3, #1
  3663. 800580c: b2db uxtb r3, r3
  3664. 800580e: 7013 strb r3, [r2, #0]
  3665. SensorID_buf[SensorID_Cnt] = data[blucell_length + 1];
  3666. 8005810: 4a2a ldr r2, [pc, #168] ; (80058bc <RGB_Controller_Func+0x160>)
  3667. 8005812: 54d1 strb r1, [r2, r3]
  3668. break;
  3669. 8005814: e7d3 b.n 80057be <RGB_Controller_Func+0x62>
  3670. datalosscnt[data[blucell_srcid]] = 0;
  3671. 8005816: 2100 movs r1, #0
  3672. 8005818: 78e3 ldrb r3, [r4, #3]
  3673. 800581a: 4a27 ldr r2, [pc, #156] ; (80058b8 <RGB_Controller_Func+0x15c>)
  3674. 800581c: 54d1 strb r1, [r2, r3]
  3675. data[blucell_length] += 1;// Device On OFF status Send byte
  3676. 800581e: 78a5 ldrb r5, [r4, #2]
  3677. 8005820: 3501 adds r5, #1
  3678. 8005822: b2ed uxtb r5, r5
  3679. 8005824: 70a5 strb r5, [r4, #2]
  3680. data[blucell_srcid + 9] = RGB_DeviceStatusCheck();// Device On OFF status Send byte
  3681. 8005826: f7ff ff81 bl 800572c <RGB_DeviceStatusCheck>
  3682. memcpy(&Result_buf[blucell_stx],&data[blucell_stx],data[blucell_length] + 3);
  3683. 800582a: 1cea adds r2, r5, #3
  3684. data[blucell_srcid + 9] = RGB_DeviceStatusCheck();// Device On OFF status Send byte
  3685. 800582c: 7320 strb r0, [r4, #12]
  3686. memcpy(&Result_buf[blucell_stx],&data[blucell_stx],data[blucell_length] + 3);
  3687. 800582e: 4621 mov r1, r4
  3688. 8005830: a801 add r0, sp, #4
  3689. 8005832: f000 feb7 bl 80065a4 <memcpy>
  3690. Result_buf[5] = STH30_CreateCrc(&Result_buf[blucell_type],Result_buf[blucell_length]);
  3691. 8005836: f89d 1006 ldrb.w r1, [sp, #6]
  3692. 800583a: f10d 0005 add.w r0, sp, #5
  3693. 800583e: f000 fcc9 bl 80061d4 <STH30_CreateCrc>
  3694. 8005842: f88d 0009 strb.w r0, [sp, #9]
  3695. RGB_Alarm_Check(&data[blucell_stx]);
  3696. 8005846: 4620 mov r0, r4
  3697. 8005848: f7ff fefa bl 8005640 <RGB_Alarm_Check>
  3698. break;
  3699. 800584c: e7b7 b.n 80057be <RGB_Controller_Func+0x62>
  3700. memcpy(&Result_buf[blucell_stx],&data[blucell_stx],data[blucell_length] + 3);
  3701. 800584e: 78a2 ldrb r2, [r4, #2]
  3702. 8005850: 4621 mov r1, r4
  3703. 8005852: 3203 adds r2, #3
  3704. 8005854: a801 add r0, sp, #4
  3705. 8005856: f000 fea5 bl 80065a4 <memcpy>
  3706. RGB_SensorRedLimit_Buf[data[blucell_dstid]] = ((data[blucell_red_H] << 8) |data[blucell_red_L]);
  3707. 800585a: 7922 ldrb r2, [r4, #4]
  3708. 800585c: 7963 ldrb r3, [r4, #5]
  3709. 800585e: 7aa1 ldrb r1, [r4, #10]
  3710. 8005860: ea43 2302 orr.w r3, r3, r2, lsl #8
  3711. 8005864: 4a18 ldr r2, [pc, #96] ; (80058c8 <RGB_Controller_Func+0x16c>)
  3712. Result_buf[blucell_crc] = STH30_CreateCrc(&Result_buf[blucell_type],Result_buf[blucell_length]);
  3713. 8005866: f10d 0005 add.w r0, sp, #5
  3714. RGB_SensorRedLimit_Buf[data[blucell_dstid]] = ((data[blucell_red_H] << 8) |data[blucell_red_L]);
  3715. 800586a: f822 3011 strh.w r3, [r2, r1, lsl #1]
  3716. RGB_SensorGreenLimit_Buf[data[blucell_dstid]] = ((data[blucell_green_H] << 8) |data[blucell_green_L]);
  3717. 800586e: 79a2 ldrb r2, [r4, #6]
  3718. 8005870: 79e3 ldrb r3, [r4, #7]
  3719. 8005872: 7aa1 ldrb r1, [r4, #10]
  3720. 8005874: ea43 2302 orr.w r3, r3, r2, lsl #8
  3721. 8005878: 4a14 ldr r2, [pc, #80] ; (80058cc <RGB_Controller_Func+0x170>)
  3722. 800587a: f822 3011 strh.w r3, [r2, r1, lsl #1]
  3723. RGB_SensorBlueLimit_Buf[data[blucell_dstid]] = ((data[blucell_blue_H] << 8) |data[blucell_blue_L]);
  3724. 800587e: 7a22 ldrb r2, [r4, #8]
  3725. 8005880: 7a63 ldrb r3, [r4, #9]
  3726. 8005882: 7aa1 ldrb r1, [r4, #10]
  3727. 8005884: ea43 2302 orr.w r3, r3, r2, lsl #8
  3728. 8005888: 4a11 ldr r2, [pc, #68] ; (80058d0 <RGB_Controller_Func+0x174>)
  3729. 800588a: f822 3011 strh.w r3, [r2, r1, lsl #1]
  3730. Result_buf[blucell_crc] = STH30_CreateCrc(&Result_buf[blucell_type],Result_buf[blucell_length]);
  3731. 800588e: f89d 1006 ldrb.w r1, [sp, #6]
  3732. 8005892: f000 fc9f bl 80061d4 <STH30_CreateCrc>
  3733. 8005896: f88d 000f strb.w r0, [sp, #15]
  3734. break;
  3735. 800589a: e790 b.n 80057be <RGB_Controller_Func+0x62>
  3736. \details Acts as a special kind of Data Memory Barrier.
  3737. It completes when all explicit memory accesses before this instruction complete.
  3738. */
  3739. __attribute__((always_inline)) __STATIC_INLINE void __DSB(void)
  3740. {
  3741. __ASM volatile ("dsb 0xF":::"memory");
  3742. 800589c: f3bf 8f4f dsb sy
  3743. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  3744. 80058a0: 490c ldr r1, [pc, #48] ; (80058d4 <RGB_Controller_Func+0x178>)
  3745. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  3746. 80058a2: 4b0d ldr r3, [pc, #52] ; (80058d8 <RGB_Controller_Func+0x17c>)
  3747. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  3748. 80058a4: 68ca ldr r2, [r1, #12]
  3749. 80058a6: f402 62e0 and.w r2, r2, #1792 ; 0x700
  3750. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  3751. 80058aa: 4313 orrs r3, r2
  3752. 80058ac: 60cb str r3, [r1, #12]
  3753. 80058ae: f3bf 8f4f dsb sy
  3754. __ASM volatile ("nop");
  3755. 80058b2: bf00 nop
  3756. 80058b4: e7fd b.n 80058b2 <RGB_Controller_Func+0x156>
  3757. 80058b6: bf00 nop
  3758. 80058b8: 20000102 .word 0x20000102
  3759. 80058bc: 200000c3 .word 0x200000c3
  3760. 80058c0: 200002a4 .word 0x200002a4
  3761. 80058c4: 200000c2 .word 0x200000c2
  3762. 80058c8: 200000b0 .word 0x200000b0
  3763. 80058cc: 2000009e .word 0x2000009e
  3764. 80058d0: 2000008c .word 0x2000008c
  3765. 80058d4: e000ed00 .word 0xe000ed00
  3766. 80058d8: 05fa0004 .word 0x05fa0004
  3767. 080058dc <HAL_UART_RxCpltCallback>:
  3768. uint8_t buf[USART_CNT][buf_size];
  3769. }BlueUsart_t;
  3770. void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
  3771. {
  3772. if(huart->Instance == USART1)//RGB Comunication
  3773. 80058dc: 6802 ldr r2, [r0, #0]
  3774. 80058de: 4b18 ldr r3, [pc, #96] ; (8005940 <HAL_UART_RxCpltCallback+0x64>)
  3775. {
  3776. 80058e0: b510 push {r4, lr}
  3777. if(huart->Instance == USART1)//RGB Comunication
  3778. 80058e2: 429a cmp r2, r3
  3779. {
  3780. 80058e4: 4604 mov r4, r0
  3781. if(huart->Instance == USART1)//RGB Comunication
  3782. 80058e6: d110 bne.n 800590a <HAL_UART_RxCpltCallback+0x2e>
  3783. {
  3784. buf[USART1_CNT][count_in1] = rx1_data[0];
  3785. 80058e8: 4a16 ldr r2, [pc, #88] ; (8005944 <HAL_UART_RxCpltCallback+0x68>)
  3786. 80058ea: 4917 ldr r1, [pc, #92] ; (8005948 <HAL_UART_RxCpltCallback+0x6c>)
  3787. 80058ec: 7813 ldrb r3, [r2, #0]
  3788. 80058ee: 7808 ldrb r0, [r1, #0]
  3789. 80058f0: 4916 ldr r1, [pc, #88] ; (800594c <HAL_UART_RxCpltCallback+0x70>)
  3790. 80058f2: 54c8 strb r0, [r1, r3]
  3791. if(++count_in1>=100){ count_in1 = 0; }
  3792. 80058f4: 3301 adds r3, #1
  3793. 80058f6: b2db uxtb r3, r3
  3794. 80058f8: 2b63 cmp r3, #99 ; 0x63
  3795. 80058fa: bf88 it hi
  3796. 80058fc: 2300 movhi r3, #0
  3797. HAL_UART_Receive_IT(&huart1,&rx1_data[0],1);
  3798. 80058fe: 4912 ldr r1, [pc, #72] ; (8005948 <HAL_UART_RxCpltCallback+0x6c>)
  3799. if(++count_in1>=100){ count_in1 = 0; }
  3800. 8005900: 7013 strb r3, [r2, #0]
  3801. HAL_UART_Receive_IT(&huart1,&rx1_data[0],1);
  3802. 8005902: 4813 ldr r0, [pc, #76] ; (8005950 <HAL_UART_RxCpltCallback+0x74>)
  3803. 8005904: 2201 movs r2, #1
  3804. 8005906: f7ff fd61 bl 80053cc <HAL_UART_Receive_IT>
  3805. }
  3806. if(huart->Instance == USART2)
  3807. 800590a: 6822 ldr r2, [r4, #0]
  3808. 800590c: 4b11 ldr r3, [pc, #68] ; (8005954 <HAL_UART_RxCpltCallback+0x78>)
  3809. 800590e: 429a cmp r2, r3
  3810. 8005910: d114 bne.n 800593c <HAL_UART_RxCpltCallback+0x60>
  3811. {
  3812. buf[USART2_CNT][count_in2] = rx2_data[0];
  3813. 8005912: 4a11 ldr r2, [pc, #68] ; (8005958 <HAL_UART_RxCpltCallback+0x7c>)
  3814. 8005914: 490d ldr r1, [pc, #52] ; (800594c <HAL_UART_RxCpltCallback+0x70>)
  3815. 8005916: 7813 ldrb r3, [r2, #0]
  3816. 8005918: 4810 ldr r0, [pc, #64] ; (800595c <HAL_UART_RxCpltCallback+0x80>)
  3817. 800591a: 4419 add r1, r3
  3818. if(++count_in2>=100){ count_in2 = 0; }
  3819. 800591c: 3301 adds r3, #1
  3820. 800591e: b2db uxtb r3, r3
  3821. 8005920: 2b63 cmp r3, #99 ; 0x63
  3822. 8005922: bf88 it hi
  3823. 8005924: 2300 movhi r3, #0
  3824. buf[USART2_CNT][count_in2] = rx2_data[0];
  3825. 8005926: 7800 ldrb r0, [r0, #0]
  3826. if(++count_in2>=100){ count_in2 = 0; }
  3827. 8005928: 7013 strb r3, [r2, #0]
  3828. buf[USART2_CNT][count_in2] = rx2_data[0];
  3829. 800592a: f881 0064 strb.w r0, [r1, #100] ; 0x64
  3830. HAL_UART_Receive_IT(&huart2,&rx2_data[0],1);
  3831. 800592e: 2201 movs r2, #1
  3832. }
  3833. }
  3834. 8005930: e8bd 4010 ldmia.w sp!, {r4, lr}
  3835. HAL_UART_Receive_IT(&huart2,&rx2_data[0],1);
  3836. 8005934: 4909 ldr r1, [pc, #36] ; (800595c <HAL_UART_RxCpltCallback+0x80>)
  3837. 8005936: 480a ldr r0, [pc, #40] ; (8005960 <HAL_UART_RxCpltCallback+0x84>)
  3838. 8005938: f7ff bd48 b.w 80053cc <HAL_UART_Receive_IT>
  3839. 800593c: bd10 pop {r4, pc}
  3840. 800593e: bf00 nop
  3841. 8005940: 40013800 .word 0x40013800
  3842. 8005944: 2000029c .word 0x2000029c
  3843. 8005948: 200002e2 .word 0x200002e2
  3844. 800594c: 200001d4 .word 0x200001d4
  3845. 8005950: 20000338 .word 0x20000338
  3846. 8005954: 40004400 .word 0x40004400
  3847. 8005958: 2000029d .word 0x2000029d
  3848. 800595c: 200002e1 .word 0x200002e1
  3849. 8005960: 20000410 .word 0x20000410
  3850. 08005964 <QueueCheck>:
  3851. void QueueCheck(uint8_t Usart_Num,uint8_t* header,uint8_t* tail){
  3852. 8005964: b570 push {r4, r5, r6, lr}
  3853. if(*tail != *header){
  3854. 8005966: 7814 ldrb r4, [r2, #0]
  3855. 8005968: 780b ldrb r3, [r1, #0]
  3856. 800596a: 429c cmp r4, r3
  3857. 800596c: d017 beq.n 800599e <QueueCheck+0x3a>
  3858. Uart_RxData[Usart_Num][Uart_Rxcnt++] = buf[Usart_Num][*tail++];
  3859. 800596e: 4b0c ldr r3, [pc, #48] ; (80059a0 <QueueCheck+0x3c>)
  3860. 8005970: 4c0c ldr r4, [pc, #48] ; (80059a4 <QueueCheck+0x40>)
  3861. 8005972: 781d ldrb r5, [r3, #0]
  3862. 8005974: 1c69 adds r1, r5, #1
  3863. 8005976: 7019 strb r1, [r3, #0]
  3864. 8005978: 2364 movs r3, #100 ; 0x64
  3865. 800597a: 4343 muls r3, r0
  3866. 800597c: 490a ldr r1, [pc, #40] ; (80059a8 <QueueCheck+0x44>)
  3867. 800597e: 7816 ldrb r6, [r2, #0]
  3868. 8005980: 4419 add r1, r3
  3869. 8005982: 4423 add r3, r4
  3870. 8005984: 5d9b ldrb r3, [r3, r6]
  3871. if(*tail>= 100){ *tail = 0; }
  3872. UartTimerCnt = 0;
  3873. UartDataRecvSet(Usart_Num + 1);
  3874. 8005986: 3001 adds r0, #1
  3875. Uart_RxData[Usart_Num][Uart_Rxcnt++] = buf[Usart_Num][*tail++];
  3876. 8005988: 554b strb r3, [r1, r5]
  3877. if(*tail>= 100){ *tail = 0; }
  3878. 800598a: 7853 ldrb r3, [r2, #1]
  3879. 800598c: 2b63 cmp r3, #99 ; 0x63
  3880. 800598e: f04f 0300 mov.w r3, #0
  3881. 8005992: bf88 it hi
  3882. 8005994: 7053 strbhi r3, [r2, #1]
  3883. UartTimerCnt = 0;
  3884. 8005996: 4a05 ldr r2, [pc, #20] ; (80059ac <QueueCheck+0x48>)
  3885. 8005998: 6013 str r3, [r2, #0]
  3886. void UartDataBufferCheck(void){
  3887. QueueCheck(USART1_CNT,&count_in1,&count_out1);
  3888. QueueCheck(USART2_CNT,&count_in2,&count_out2);
  3889. }
  3890. void UartDataRecvSet(uint8_t val){
  3891. UartDataisReved = val;
  3892. 800599a: 4b05 ldr r3, [pc, #20] ; (80059b0 <QueueCheck+0x4c>)
  3893. 800599c: 7018 strb r0, [r3, #0]
  3894. 800599e: bd70 pop {r4, r5, r6, pc}
  3895. 80059a0: 200001d3 .word 0x200001d3
  3896. 80059a4: 200001d4 .word 0x200001d4
  3897. 80059a8: 2000010b .word 0x2000010b
  3898. 80059ac: 200002a8 .word 0x200002a8
  3899. 80059b0: 200002e0 .word 0x200002e0
  3900. 080059b4 <UartDataBufferCheck>:
  3901. void UartDataBufferCheck(void){
  3902. 80059b4: b508 push {r3, lr}
  3903. QueueCheck(USART1_CNT,&count_in1,&count_out1);
  3904. 80059b6: 4a06 ldr r2, [pc, #24] ; (80059d0 <UartDataBufferCheck+0x1c>)
  3905. 80059b8: 4906 ldr r1, [pc, #24] ; (80059d4 <UartDataBufferCheck+0x20>)
  3906. 80059ba: 2000 movs r0, #0
  3907. 80059bc: f7ff ffd2 bl 8005964 <QueueCheck>
  3908. }
  3909. 80059c0: e8bd 4008 ldmia.w sp!, {r3, lr}
  3910. QueueCheck(USART2_CNT,&count_in2,&count_out2);
  3911. 80059c4: 4a04 ldr r2, [pc, #16] ; (80059d8 <UartDataBufferCheck+0x24>)
  3912. 80059c6: 4905 ldr r1, [pc, #20] ; (80059dc <UartDataBufferCheck+0x28>)
  3913. 80059c8: 2001 movs r0, #1
  3914. 80059ca: f7ff bfcb b.w 8005964 <QueueCheck>
  3915. 80059ce: bf00 nop
  3916. 80059d0: 2000029e .word 0x2000029e
  3917. 80059d4: 2000029c .word 0x2000029c
  3918. 80059d8: 2000029f .word 0x2000029f
  3919. 80059dc: 2000029d .word 0x2000029d
  3920. 080059e0 <UartDataRecvGet>:
  3921. }
  3922. uint8_t UartDataRecvGet(void){
  3923. return UartDataisReved;
  3924. }
  3925. 80059e0: 4b01 ldr r3, [pc, #4] ; (80059e8 <UartDataRecvGet+0x8>)
  3926. 80059e2: 7818 ldrb r0, [r3, #0]
  3927. 80059e4: 4770 bx lr
  3928. 80059e6: bf00 nop
  3929. 80059e8: 200002e0 .word 0x200002e0
  3930. 080059ec <Uart2_Data_Send>:
  3931. void Uart2_Data_Send(uint8_t* data,uint8_t size){
  3932. HAL_UART_Transmit(&huart2, data,size, 10);
  3933. 80059ec: 460a mov r2, r1
  3934. 80059ee: 230a movs r3, #10
  3935. 80059f0: 4601 mov r1, r0
  3936. 80059f2: 4801 ldr r0, [pc, #4] ; (80059f8 <Uart2_Data_Send+0xc>)
  3937. 80059f4: f7ff bc8e b.w 8005314 <HAL_UART_Transmit>
  3938. 80059f8: 20000410 .word 0x20000410
  3939. 080059fc <Uart1_Data_Send>:
  3940. }
  3941. void Uart1_Data_Send(uint8_t* data,uint8_t size){
  3942. HAL_UART_Transmit(&huart1, data,size, 10);
  3943. 80059fc: 460a mov r2, r1
  3944. 80059fe: 230a movs r3, #10
  3945. 8005a00: 4601 mov r1, r0
  3946. 8005a02: 4801 ldr r0, [pc, #4] ; (8005a08 <Uart1_Data_Send+0xc>)
  3947. 8005a04: f7ff bc86 b.w 8005314 <HAL_UART_Transmit>
  3948. 8005a08: 20000338 .word 0x20000338
  3949. 08005a0c <_write>:
  3950. }
  3951. int _write (int file, uint8_t *ptr, uint16_t len)
  3952. {
  3953. 8005a0c: b510 push {r4, lr}
  3954. 8005a0e: 4614 mov r4, r2
  3955. HAL_UART_Transmit (&huart1, ptr, len, 10);
  3956. 8005a10: 230a movs r3, #10
  3957. 8005a12: 4802 ldr r0, [pc, #8] ; (8005a1c <_write+0x10>)
  3958. 8005a14: f7ff fc7e bl 8005314 <HAL_UART_Transmit>
  3959. return len;
  3960. }
  3961. 8005a18: 4620 mov r0, r4
  3962. 8005a1a: bd10 pop {r4, pc}
  3963. 8005a1c: 20000338 .word 0x20000338
  3964. 08005a20 <Uart_dataCheck>:
  3965. void Uart_dataCheck(uint8_t Usart_Num ,uint8_t* cnt){
  3966. 8005a20: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  3967. 8005a24: f04f 0964 mov.w r9, #100 ; 0x64
  3968. 8005a28: fb09 f600 mul.w r6, r9, r0
  3969. printf("%02x ",buf[i]);
  3970. }
  3971. printf("\r\n");
  3972. #endif
  3973. crccheck = STH30_CheckCrc(&Uart_RxData[Usart_Num][blucell_type],Uart_RxData[Usart_Num][blucell_length],Uart_RxData[Usart_Num][Uart_RxData[Usart_Num][blucell_length] + 1]);
  3974. 8005a2c: 4d1d ldr r5, [pc, #116] ; (8005aa4 <Uart_dataCheck+0x84>)
  3975. void Uart_dataCheck(uint8_t Usart_Num ,uint8_t* cnt){
  3976. 8005a2e: 460f mov r7, r1
  3977. crccheck = STH30_CheckCrc(&Uart_RxData[Usart_Num][blucell_type],Uart_RxData[Usart_Num][blucell_length],Uart_RxData[Usart_Num][Uart_RxData[Usart_Num][blucell_length] + 1]);
  3978. 8005a30: eb05 0806 add.w r8, r5, r6
  3979. 8005a34: f898 1002 ldrb.w r1, [r8, #2]
  3980. void Uart_dataCheck(uint8_t Usart_Num ,uint8_t* cnt){
  3981. 8005a38: 4604 mov r4, r0
  3982. crccheck = STH30_CheckCrc(&Uart_RxData[Usart_Num][blucell_type],Uart_RxData[Usart_Num][blucell_length],Uart_RxData[Usart_Num][Uart_RxData[Usart_Num][blucell_length] + 1]);
  3983. 8005a3a: eb08 0301 add.w r3, r8, r1
  3984. 8005a3e: 1c70 adds r0, r6, #1
  3985. 8005a40: 785a ldrb r2, [r3, #1]
  3986. 8005a42: 4428 add r0, r5
  3987. 8005a44: f000 fbe1 bl 800620a <STH30_CheckCrc>
  3988. if(crccheck == CHECKSUM_ERROR){
  3989. 8005a48: b9f8 cbnz r0, 8005a8a <Uart_dataCheck+0x6a>
  3990. for(uint8_t i = 0; i < (*cnt); i++){
  3991. printf("%02x ",Uart_RxData[Usart_Num][i]);
  3992. 8005a4a: f8df b068 ldr.w fp, [pc, #104] ; 8005ab4 <Uart_dataCheck+0x94>
  3993. for(uint8_t i = 0; i < (*cnt); i++){
  3994. 8005a4e: 783b ldrb r3, [r7, #0]
  3995. 8005a50: f100 0a01 add.w sl, r0, #1
  3996. 8005a54: b2c0 uxtb r0, r0
  3997. 8005a56: 4283 cmp r3, r0
  3998. 8005a58: d810 bhi.n 8005a7c <Uart_dataCheck+0x5c>
  3999. }
  4000. printf("Original CRC : %02x RecvCRC : %02x \r\n",crccheck,Uart_RxData[Usart_Num][Uart_RxData[Usart_Num][blucell_length] + 1]);
  4001. 8005a5a: fb09 5404 mla r4, r9, r4, r5
  4002. 8005a5e: 78a3 ldrb r3, [r4, #2]
  4003. 8005a60: 2100 movs r1, #0
  4004. 8005a62: 441c add r4, r3
  4005. 8005a64: 7862 ldrb r2, [r4, #1]
  4006. 8005a66: 4810 ldr r0, [pc, #64] ; (8005aa8 <Uart_dataCheck+0x88>)
  4007. 8005a68: f000 fdb0 bl 80065cc <iprintf>
  4008. else{
  4009. printf("What Happen?\r\n");
  4010. /*NOP*/
  4011. }
  4012. *cnt = 0;
  4013. 8005a6c: 2100 movs r1, #0
  4014. 8005a6e: 7039 strb r1, [r7, #0]
  4015. memset(Uart_RxData[Usart_Num],0x00,buf_size);
  4016. 8005a70: 19a8 adds r0, r5, r6
  4017. 8005a72: 2264 movs r2, #100 ; 0x64
  4018. }
  4019. 8005a74: e8bd 4ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  4020. memset(Uart_RxData[Usart_Num],0x00,buf_size);
  4021. 8005a78: f000 bd9f b.w 80065ba <memset>
  4022. printf("%02x ",Uart_RxData[Usart_Num][i]);
  4023. 8005a7c: f818 1000 ldrb.w r1, [r8, r0]
  4024. 8005a80: 4658 mov r0, fp
  4025. 8005a82: f000 fda3 bl 80065cc <iprintf>
  4026. 8005a86: 4650 mov r0, sl
  4027. 8005a88: e7e1 b.n 8005a4e <Uart_dataCheck+0x2e>
  4028. else if(crccheck == NO_ERROR){
  4029. 8005a8a: 2801 cmp r0, #1
  4030. 8005a8c: d106 bne.n 8005a9c <Uart_dataCheck+0x7c>
  4031. RGB_Controller_Func(&Uart_RxData[Usart_Num][blucell_stx]);\
  4032. 8005a8e: 4640 mov r0, r8
  4033. 8005a90: f7ff fe64 bl 800575c <RGB_Controller_Func>
  4034. UartDataisReved = val;
  4035. 8005a94: 2200 movs r2, #0
  4036. 8005a96: 4b05 ldr r3, [pc, #20] ; (8005aac <Uart_dataCheck+0x8c>)
  4037. 8005a98: 701a strb r2, [r3, #0]
  4038. 8005a9a: e7e7 b.n 8005a6c <Uart_dataCheck+0x4c>
  4039. printf("What Happen?\r\n");
  4040. 8005a9c: 4804 ldr r0, [pc, #16] ; (8005ab0 <Uart_dataCheck+0x90>)
  4041. 8005a9e: f000 fe09 bl 80066b4 <puts>
  4042. 8005aa2: e7e3 b.n 8005a6c <Uart_dataCheck+0x4c>
  4043. 8005aa4: 2000010b .word 0x2000010b
  4044. 8005aa8: 080076b2 .word 0x080076b2
  4045. 8005aac: 200002e0 .word 0x200002e0
  4046. 8005ab0: 080076d8 .word 0x080076d8
  4047. 8005ab4: 080076ac .word 0x080076ac
  4048. 08005ab8 <HAL_TIM_PeriodElapsedCallback>:
  4049. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4050. {
  4051. if(htim->Instance == TIM6){
  4052. 8005ab8: 6802 ldr r2, [r0, #0]
  4053. 8005aba: 4b06 ldr r3, [pc, #24] ; (8005ad4 <HAL_TIM_PeriodElapsedCallback+0x1c>)
  4054. 8005abc: 429a cmp r2, r3
  4055. 8005abe: d107 bne.n 8005ad0 <HAL_TIM_PeriodElapsedCallback+0x18>
  4056. UartTimerCnt++;
  4057. 8005ac0: 4a05 ldr r2, [pc, #20] ; (8005ad8 <HAL_TIM_PeriodElapsedCallback+0x20>)
  4058. 8005ac2: 6813 ldr r3, [r2, #0]
  4059. 8005ac4: 3301 adds r3, #1
  4060. 8005ac6: 6013 str r3, [r2, #0]
  4061. LedTimerCnt++;
  4062. 8005ac8: 4a04 ldr r2, [pc, #16] ; (8005adc <HAL_TIM_PeriodElapsedCallback+0x24>)
  4063. 8005aca: 6813 ldr r3, [r2, #0]
  4064. 8005acc: 3301 adds r3, #1
  4065. 8005ace: 6013 str r3, [r2, #0]
  4066. 8005ad0: 4770 bx lr
  4067. 8005ad2: bf00 nop
  4068. 8005ad4: 40001000 .word 0x40001000
  4069. 8005ad8: 200002a8 .word 0x200002a8
  4070. 8005adc: 200002a0 .word 0x200002a0
  4071. 08005ae0 <RGB_SensorIDAutoSet>:
  4072. }
  4073. }
  4074. void RGB_SensorIDAutoSet(uint8_t set){
  4075. RGB_SensorIDAutoset = set;
  4076. 8005ae0: 4b01 ldr r3, [pc, #4] ; (8005ae8 <RGB_SensorIDAutoSet+0x8>)
  4077. 8005ae2: 7018 strb r0, [r3, #0]
  4078. 8005ae4: 4770 bx lr
  4079. 8005ae6: bf00 nop
  4080. 8005ae8: 200002a5 .word 0x200002a5
  4081. 08005aec <RGB_Sensor_PowerOnOff>:
  4082. uint8_t RGB_SensorIDAutoGet(void){
  4083. return RGB_SensorIDAutoset;
  4084. }
  4085. void RGB_Sensor_PowerOnOff(uint8_t id){
  4086. 8005aec: b510 push {r4, lr}
  4087. 8005aee: 4604 mov r4, r0
  4088. printf("%d Power ON \r\n",id);
  4089. 8005af0: 4601 mov r1, r0
  4090. 8005af2: 487b ldr r0, [pc, #492] ; (8005ce0 <RGB_Sensor_PowerOnOff+0x1f4>)
  4091. 8005af4: f000 fd6a bl 80065cc <iprintf>
  4092. switch(id){
  4093. 8005af8: 2c08 cmp r4, #8
  4094. 8005afa: f200 80ef bhi.w 8005cdc <RGB_Sensor_PowerOnOff+0x1f0>
  4095. 8005afe: e8df f004 tbb [pc, r4]
  4096. 8005b02: 05c3 .short 0x05c3
  4097. 8005b04: 6854463e .word 0x6854463e
  4098. 8005b08: 9f81 .short 0x9f81
  4099. 8005b0a: c3 .byte 0xc3
  4100. 8005b0b: 00 .byte 0x00
  4101. HAL_GPIO_WritePin(SENSOR_EN6_GPIO_Port,SENSOR_EN6_Pin,GPIO_PIN_SET);
  4102. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_SET);
  4103. HAL_GPIO_WritePin(SENSOR_EN8_GPIO_Port,SENSOR_EN8_Pin,GPIO_PIN_SET);
  4104. break;
  4105. case 1:
  4106. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_RESET);
  4107. 8005b0c: 2200 movs r2, #0
  4108. 8005b0e: f44f 5100 mov.w r1, #8192 ; 0x2000
  4109. 8005b12: 4874 ldr r0, [pc, #464] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4110. 8005b14: f7fe fe62 bl 80047dc <HAL_GPIO_WritePin>
  4111. HAL_Delay(50);
  4112. 8005b18: 2032 movs r0, #50 ; 0x32
  4113. 8005b1a: f7fe fbd7 bl 80042cc <HAL_Delay>
  4114. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4115. 8005b1e: 2201 movs r2, #1
  4116. 8005b20: f44f 5100 mov.w r1, #8192 ; 0x2000
  4117. 8005b24: 486f ldr r0, [pc, #444] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4118. 8005b26: f7fe fe59 bl 80047dc <HAL_GPIO_WritePin>
  4119. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_RESET);
  4120. 8005b2a: 2200 movs r2, #0
  4121. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_RESET);
  4122. HAL_GPIO_WritePin(SENSOR_EN8_GPIO_Port,SENSOR_EN8_Pin,GPIO_PIN_RESET);
  4123. break;
  4124. case 2:
  4125. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4126. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4127. 8005b2c: f44f 4180 mov.w r1, #16384 ; 0x4000
  4128. 8005b30: 486c ldr r0, [pc, #432] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4129. 8005b32: f7fe fe53 bl 80047dc <HAL_GPIO_WritePin>
  4130. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_RESET);
  4131. 8005b36: 2200 movs r2, #0
  4132. 8005b38: f44f 4100 mov.w r1, #32768 ; 0x8000
  4133. 8005b3c: 4869 ldr r0, [pc, #420] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4134. 8005b3e: f7fe fe4d bl 80047dc <HAL_GPIO_WritePin>
  4135. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_RESET);
  4136. 8005b42: 2200 movs r2, #0
  4137. 8005b44: 2140 movs r1, #64 ; 0x40
  4138. 8005b46: 4868 ldr r0, [pc, #416] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4139. 8005b48: f7fe fe48 bl 80047dc <HAL_GPIO_WritePin>
  4140. HAL_GPIO_WritePin(SENSOR_EN5_GPIO_Port,SENSOR_EN5_Pin,GPIO_PIN_RESET);
  4141. 8005b4c: 2200 movs r2, #0
  4142. 8005b4e: 2180 movs r1, #128 ; 0x80
  4143. 8005b50: 4865 ldr r0, [pc, #404] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4144. 8005b52: f7fe fe43 bl 80047dc <HAL_GPIO_WritePin>
  4145. HAL_GPIO_WritePin(SENSOR_EN6_GPIO_Port,SENSOR_EN6_Pin,GPIO_PIN_RESET);
  4146. 8005b56: 2200 movs r2, #0
  4147. 8005b58: f44f 7180 mov.w r1, #256 ; 0x100
  4148. 8005b5c: 4862 ldr r0, [pc, #392] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4149. 8005b5e: f7fe fe3d bl 80047dc <HAL_GPIO_WritePin>
  4150. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_RESET);
  4151. 8005b62: 2200 movs r2, #0
  4152. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4153. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4154. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_SET);
  4155. HAL_GPIO_WritePin(SENSOR_EN5_GPIO_Port,SENSOR_EN5_Pin,GPIO_PIN_SET);
  4156. HAL_GPIO_WritePin(SENSOR_EN6_GPIO_Port,SENSOR_EN6_Pin,GPIO_PIN_SET);
  4157. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_SET);
  4158. 8005b64: f44f 7100 mov.w r1, #512 ; 0x200
  4159. 8005b68: 485f ldr r0, [pc, #380] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4160. 8005b6a: f7fe fe37 bl 80047dc <HAL_GPIO_WritePin>
  4161. HAL_GPIO_WritePin(SENSOR_EN8_GPIO_Port,SENSOR_EN8_Pin,GPIO_PIN_RESET);
  4162. 8005b6e: 2200 movs r2, #0
  4163. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_SET);
  4164. HAL_GPIO_WritePin(SENSOR_EN8_GPIO_Port,SENSOR_EN8_Pin,GPIO_PIN_SET);
  4165. break;
  4166. }
  4167. }
  4168. 8005b70: e8bd 4010 ldmia.w sp!, {r4, lr}
  4169. HAL_GPIO_WritePin(SENSOR_EN8_GPIO_Port,SENSOR_EN8_Pin,GPIO_PIN_SET);
  4170. 8005b74: f44f 7180 mov.w r1, #256 ; 0x100
  4171. 8005b78: 485c ldr r0, [pc, #368] ; (8005cec <RGB_Sensor_PowerOnOff+0x200>)
  4172. 8005b7a: f7fe be2f b.w 80047dc <HAL_GPIO_WritePin>
  4173. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4174. 8005b7e: 2201 movs r2, #1
  4175. 8005b80: f44f 5100 mov.w r1, #8192 ; 0x2000
  4176. 8005b84: 4857 ldr r0, [pc, #348] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4177. 8005b86: f7fe fe29 bl 80047dc <HAL_GPIO_WritePin>
  4178. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4179. 8005b8a: 2201 movs r2, #1
  4180. 8005b8c: e7ce b.n 8005b2c <RGB_Sensor_PowerOnOff+0x40>
  4181. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4182. 8005b8e: 2201 movs r2, #1
  4183. 8005b90: f44f 5100 mov.w r1, #8192 ; 0x2000
  4184. 8005b94: 4853 ldr r0, [pc, #332] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4185. 8005b96: f7fe fe21 bl 80047dc <HAL_GPIO_WritePin>
  4186. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4187. 8005b9a: 2201 movs r2, #1
  4188. 8005b9c: f44f 4180 mov.w r1, #16384 ; 0x4000
  4189. 8005ba0: 4850 ldr r0, [pc, #320] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4190. 8005ba2: f7fe fe1b bl 80047dc <HAL_GPIO_WritePin>
  4191. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4192. 8005ba6: 2201 movs r2, #1
  4193. 8005ba8: e7c6 b.n 8005b38 <RGB_Sensor_PowerOnOff+0x4c>
  4194. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4195. 8005baa: 2201 movs r2, #1
  4196. 8005bac: f44f 5100 mov.w r1, #8192 ; 0x2000
  4197. 8005bb0: 484c ldr r0, [pc, #304] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4198. 8005bb2: f7fe fe13 bl 80047dc <HAL_GPIO_WritePin>
  4199. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4200. 8005bb6: 2201 movs r2, #1
  4201. 8005bb8: f44f 4180 mov.w r1, #16384 ; 0x4000
  4202. 8005bbc: 4849 ldr r0, [pc, #292] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4203. 8005bbe: f7fe fe0d bl 80047dc <HAL_GPIO_WritePin>
  4204. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4205. 8005bc2: 2201 movs r2, #1
  4206. 8005bc4: f44f 4100 mov.w r1, #32768 ; 0x8000
  4207. 8005bc8: 4846 ldr r0, [pc, #280] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4208. 8005bca: f7fe fe07 bl 80047dc <HAL_GPIO_WritePin>
  4209. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_SET);
  4210. 8005bce: 2201 movs r2, #1
  4211. 8005bd0: e7b8 b.n 8005b44 <RGB_Sensor_PowerOnOff+0x58>
  4212. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4213. 8005bd2: 2201 movs r2, #1
  4214. 8005bd4: f44f 5100 mov.w r1, #8192 ; 0x2000
  4215. 8005bd8: 4842 ldr r0, [pc, #264] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4216. 8005bda: f7fe fdff bl 80047dc <HAL_GPIO_WritePin>
  4217. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4218. 8005bde: 2201 movs r2, #1
  4219. 8005be0: f44f 4180 mov.w r1, #16384 ; 0x4000
  4220. 8005be4: 483f ldr r0, [pc, #252] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4221. 8005be6: f7fe fdf9 bl 80047dc <HAL_GPIO_WritePin>
  4222. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4223. 8005bea: 2201 movs r2, #1
  4224. 8005bec: f44f 4100 mov.w r1, #32768 ; 0x8000
  4225. 8005bf0: 483c ldr r0, [pc, #240] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4226. 8005bf2: f7fe fdf3 bl 80047dc <HAL_GPIO_WritePin>
  4227. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_SET);
  4228. 8005bf6: 2201 movs r2, #1
  4229. 8005bf8: 2140 movs r1, #64 ; 0x40
  4230. 8005bfa: 483b ldr r0, [pc, #236] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4231. 8005bfc: f7fe fdee bl 80047dc <HAL_GPIO_WritePin>
  4232. HAL_GPIO_WritePin(SENSOR_EN5_GPIO_Port,SENSOR_EN5_Pin,GPIO_PIN_SET);
  4233. 8005c00: 2201 movs r2, #1
  4234. 8005c02: e7a4 b.n 8005b4e <RGB_Sensor_PowerOnOff+0x62>
  4235. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4236. 8005c04: 2201 movs r2, #1
  4237. 8005c06: f44f 5100 mov.w r1, #8192 ; 0x2000
  4238. 8005c0a: 4836 ldr r0, [pc, #216] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4239. 8005c0c: f7fe fde6 bl 80047dc <HAL_GPIO_WritePin>
  4240. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4241. 8005c10: 2201 movs r2, #1
  4242. 8005c12: f44f 4180 mov.w r1, #16384 ; 0x4000
  4243. 8005c16: 4833 ldr r0, [pc, #204] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4244. 8005c18: f7fe fde0 bl 80047dc <HAL_GPIO_WritePin>
  4245. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4246. 8005c1c: 2201 movs r2, #1
  4247. 8005c1e: f44f 4100 mov.w r1, #32768 ; 0x8000
  4248. 8005c22: 4830 ldr r0, [pc, #192] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4249. 8005c24: f7fe fdda bl 80047dc <HAL_GPIO_WritePin>
  4250. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_SET);
  4251. 8005c28: 2201 movs r2, #1
  4252. 8005c2a: 2140 movs r1, #64 ; 0x40
  4253. 8005c2c: 482e ldr r0, [pc, #184] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4254. 8005c2e: f7fe fdd5 bl 80047dc <HAL_GPIO_WritePin>
  4255. HAL_GPIO_WritePin(SENSOR_EN5_GPIO_Port,SENSOR_EN5_Pin,GPIO_PIN_SET);
  4256. 8005c32: 2201 movs r2, #1
  4257. 8005c34: 2180 movs r1, #128 ; 0x80
  4258. 8005c36: 482c ldr r0, [pc, #176] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4259. 8005c38: f7fe fdd0 bl 80047dc <HAL_GPIO_WritePin>
  4260. HAL_GPIO_WritePin(SENSOR_EN6_GPIO_Port,SENSOR_EN6_Pin,GPIO_PIN_SET);
  4261. 8005c3c: 2201 movs r2, #1
  4262. 8005c3e: e78b b.n 8005b58 <RGB_Sensor_PowerOnOff+0x6c>
  4263. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4264. 8005c40: 2201 movs r2, #1
  4265. 8005c42: f44f 5100 mov.w r1, #8192 ; 0x2000
  4266. 8005c46: 4827 ldr r0, [pc, #156] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4267. 8005c48: f7fe fdc8 bl 80047dc <HAL_GPIO_WritePin>
  4268. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4269. 8005c4c: 2201 movs r2, #1
  4270. 8005c4e: f44f 4180 mov.w r1, #16384 ; 0x4000
  4271. 8005c52: 4824 ldr r0, [pc, #144] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4272. 8005c54: f7fe fdc2 bl 80047dc <HAL_GPIO_WritePin>
  4273. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4274. 8005c58: 2201 movs r2, #1
  4275. 8005c5a: f44f 4100 mov.w r1, #32768 ; 0x8000
  4276. 8005c5e: 4821 ldr r0, [pc, #132] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4277. 8005c60: f7fe fdbc bl 80047dc <HAL_GPIO_WritePin>
  4278. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_SET);
  4279. 8005c64: 2201 movs r2, #1
  4280. 8005c66: 2140 movs r1, #64 ; 0x40
  4281. 8005c68: 481f ldr r0, [pc, #124] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4282. 8005c6a: f7fe fdb7 bl 80047dc <HAL_GPIO_WritePin>
  4283. HAL_GPIO_WritePin(SENSOR_EN5_GPIO_Port,SENSOR_EN5_Pin,GPIO_PIN_SET);
  4284. 8005c6e: 2201 movs r2, #1
  4285. 8005c70: 2180 movs r1, #128 ; 0x80
  4286. 8005c72: 481d ldr r0, [pc, #116] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4287. 8005c74: f7fe fdb2 bl 80047dc <HAL_GPIO_WritePin>
  4288. HAL_GPIO_WritePin(SENSOR_EN6_GPIO_Port,SENSOR_EN6_Pin,GPIO_PIN_SET);
  4289. 8005c78: 2201 movs r2, #1
  4290. 8005c7a: f44f 7180 mov.w r1, #256 ; 0x100
  4291. 8005c7e: 481a ldr r0, [pc, #104] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4292. 8005c80: f7fe fdac bl 80047dc <HAL_GPIO_WritePin>
  4293. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_SET);
  4294. 8005c84: 2201 movs r2, #1
  4295. 8005c86: e76d b.n 8005b64 <RGB_Sensor_PowerOnOff+0x78>
  4296. HAL_GPIO_WritePin(SENSOR_EN1_GPIO_Port,SENSOR_EN1_Pin,GPIO_PIN_SET);
  4297. 8005c88: 2201 movs r2, #1
  4298. 8005c8a: f44f 5100 mov.w r1, #8192 ; 0x2000
  4299. 8005c8e: 4815 ldr r0, [pc, #84] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4300. 8005c90: f7fe fda4 bl 80047dc <HAL_GPIO_WritePin>
  4301. HAL_GPIO_WritePin(SENSOR_EN2_GPIO_Port,SENSOR_EN2_Pin,GPIO_PIN_SET);
  4302. 8005c94: 2201 movs r2, #1
  4303. 8005c96: f44f 4180 mov.w r1, #16384 ; 0x4000
  4304. 8005c9a: 4812 ldr r0, [pc, #72] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4305. 8005c9c: f7fe fd9e bl 80047dc <HAL_GPIO_WritePin>
  4306. HAL_GPIO_WritePin(SENSOR_EN3_GPIO_Port,SENSOR_EN3_Pin,GPIO_PIN_SET);
  4307. 8005ca0: 2201 movs r2, #1
  4308. 8005ca2: f44f 4100 mov.w r1, #32768 ; 0x8000
  4309. 8005ca6: 480f ldr r0, [pc, #60] ; (8005ce4 <RGB_Sensor_PowerOnOff+0x1f8>)
  4310. 8005ca8: f7fe fd98 bl 80047dc <HAL_GPIO_WritePin>
  4311. HAL_GPIO_WritePin(SENSOR_EN4_GPIO_Port,SENSOR_EN4_Pin,GPIO_PIN_SET);
  4312. 8005cac: 2201 movs r2, #1
  4313. 8005cae: 2140 movs r1, #64 ; 0x40
  4314. 8005cb0: 480d ldr r0, [pc, #52] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4315. 8005cb2: f7fe fd93 bl 80047dc <HAL_GPIO_WritePin>
  4316. HAL_GPIO_WritePin(SENSOR_EN5_GPIO_Port,SENSOR_EN5_Pin,GPIO_PIN_SET);
  4317. 8005cb6: 2201 movs r2, #1
  4318. 8005cb8: 2180 movs r1, #128 ; 0x80
  4319. 8005cba: 480b ldr r0, [pc, #44] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4320. 8005cbc: f7fe fd8e bl 80047dc <HAL_GPIO_WritePin>
  4321. HAL_GPIO_WritePin(SENSOR_EN6_GPIO_Port,SENSOR_EN6_Pin,GPIO_PIN_SET);
  4322. 8005cc0: 2201 movs r2, #1
  4323. 8005cc2: f44f 7180 mov.w r1, #256 ; 0x100
  4324. 8005cc6: 4808 ldr r0, [pc, #32] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4325. 8005cc8: f7fe fd88 bl 80047dc <HAL_GPIO_WritePin>
  4326. HAL_GPIO_WritePin(SENSOR_EN7_GPIO_Port,SENSOR_EN7_Pin,GPIO_PIN_SET);
  4327. 8005ccc: 2201 movs r2, #1
  4328. 8005cce: f44f 7100 mov.w r1, #512 ; 0x200
  4329. 8005cd2: 4805 ldr r0, [pc, #20] ; (8005ce8 <RGB_Sensor_PowerOnOff+0x1fc>)
  4330. 8005cd4: f7fe fd82 bl 80047dc <HAL_GPIO_WritePin>
  4331. HAL_GPIO_WritePin(SENSOR_EN8_GPIO_Port,SENSOR_EN8_Pin,GPIO_PIN_SET);
  4332. 8005cd8: 2201 movs r2, #1
  4333. 8005cda: e749 b.n 8005b70 <RGB_Sensor_PowerOnOff+0x84>
  4334. 8005cdc: bd10 pop {r4, pc}
  4335. 8005cde: bf00 nop
  4336. 8005ce0: 08007704 .word 0x08007704
  4337. 8005ce4: 40010c00 .word 0x40010c00
  4338. 8005ce8: 40011000 .word 0x40011000
  4339. 8005cec: 40010800 .word 0x40010800
  4340. 08005cf0 <Flash_RGB_Data_Write>:
  4341. #endif // PYJ.2019.03.20_END --
  4342. #define ADDR_FLASH_PAGE_TEST ((uint32_t)0x08030000) /* Base @ of Page 127, 1 Kbytes */
  4343. #define FLASH_USER_START_ADDR ADDR_FLASH_PAGE_TEST /* Start @ of user Flash area */
  4344. #define FLASH_USER_END_ADDR ADDR_FLASH_PAGE_TEST + ((uint32_t)0x0000FFFF) /* End @ of user Flash area */
  4345. void Flash_RGB_Data_Write(uint32_t Addr,uint8_t* data){
  4346. 8005cf0: b570 push {r4, r5, r6, lr}
  4347. 8005cf2: 4604 mov r4, r0
  4348. uint16_t temp_Red = 0,temp_Green = 0,temp_Blue = 0;
  4349. temp_Red = ((data[blucell_red_H] << 8) |data[blucell_red_L]); //R
  4350. temp_Green= ((data[blucell_green_H] << 8) |data[blucell_green_L]); //G
  4351. 8005cf4: 798b ldrb r3, [r1, #6]
  4352. 8005cf6: 79ce ldrb r6, [r1, #7]
  4353. temp_Blue = ((data[blucell_blue_H] << 8) |data[blucell_blue_L]); //B
  4354. 8005cf8: 7a4d ldrb r5, [r1, #9]
  4355. temp_Green= ((data[blucell_green_H] << 8) |data[blucell_green_L]); //G
  4356. 8005cfa: ea46 2603 orr.w r6, r6, r3, lsl #8
  4357. temp_Blue = ((data[blucell_blue_H] << 8) |data[blucell_blue_L]); //B
  4358. 8005cfe: 7a0b ldrb r3, [r1, #8]
  4359. temp_Red = ((data[blucell_red_H] << 8) |data[blucell_red_L]); //R
  4360. 8005d00: 794a ldrb r2, [r1, #5]
  4361. temp_Blue = ((data[blucell_blue_H] << 8) |data[blucell_blue_L]); //B
  4362. 8005d02: ea45 2503 orr.w r5, r5, r3, lsl #8
  4363. temp_Red = ((data[blucell_red_H] << 8) |data[blucell_red_L]); //R
  4364. 8005d06: 790b ldrb r3, [r1, #4]
  4365. HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Addr + 0 , (uint16_t)temp_Red);
  4366. 8005d08: 4601 mov r1, r0
  4367. temp_Red = ((data[blucell_red_H] << 8) |data[blucell_red_L]); //R
  4368. 8005d0a: ea42 2203 orr.w r2, r2, r3, lsl #8
  4369. HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Addr + 0 , (uint16_t)temp_Red);
  4370. 8005d0e: 2001 movs r0, #1
  4371. 8005d10: 2300 movs r3, #0
  4372. 8005d12: f7fe fc31 bl 8004578 <HAL_FLASH_Program>
  4373. HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Addr + 2 , (uint16_t)temp_Green);
  4374. 8005d16: 4632 mov r2, r6
  4375. 8005d18: 1ca1 adds r1, r4, #2
  4376. 8005d1a: 2300 movs r3, #0
  4377. 8005d1c: 2001 movs r0, #1
  4378. 8005d1e: f7fe fc2b bl 8004578 <HAL_FLASH_Program>
  4379. HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Addr + 4 , (uint16_t)temp_Blue);
  4380. 8005d22: 462a mov r2, r5
  4381. 8005d24: 1d21 adds r1, r4, #4
  4382. 8005d26: 2300 movs r3, #0
  4383. }
  4384. 8005d28: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  4385. HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Addr + 4 , (uint16_t)temp_Blue);
  4386. 8005d2c: 2001 movs r0, #1
  4387. 8005d2e: f7fe bc23 b.w 8004578 <HAL_FLASH_Program>
  4388. ...
  4389. 08005d34 <Flash_write>:
  4390. void Flash_write(uint8_t* data) // 쓰기함수
  4391. {
  4392. 8005d34: b537 push {r0, r1, r2, r4, r5, lr}
  4393. 8005d36: 4605 mov r5, r0
  4394. // EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
  4395. // EraseInitStruct.PageAddress = FLASH_USER_START_ADDR;
  4396. // EraseInitStruct.NbPages = (FLASH_USER_END_ADDR - FLASH_USER_START_ADDR) / FLASH_PAGE_SIZE;
  4397. Address = START_ADDR;
  4398. __HAL_RCC_TIM7_CLK_DISABLE(); // 매인타이머를 정지합니다
  4399. 8005d38: 4c0f ldr r4, [pc, #60] ; (8005d78 <Flash_write+0x44>)
  4400. 8005d3a: 69e3 ldr r3, [r4, #28]
  4401. 8005d3c: f023 0320 bic.w r3, r3, #32
  4402. 8005d40: 61e3 str r3, [r4, #28]
  4403. HAL_FLASH_Unlock(); // lock 풀기
  4404. 8005d42: f7fe fbd3 bl 80044ec <HAL_FLASH_Unlock>
  4405. 8005d46: 7aab ldrb r3, [r5, #10]
  4406. case 8:
  4407. Address += 42;
  4408. break;
  4409. }
  4410. Flash_RGB_Data_Write(Address,&data[blucell_stx]);
  4411. 8005d48: 4629 mov r1, r5
  4412. 8005d4a: 3b02 subs r3, #2
  4413. 8005d4c: b2db uxtb r3, r3
  4414. 8005d4e: 2b06 cmp r3, #6
  4415. 8005d50: bf96 itet ls
  4416. 8005d52: 4a0a ldrls r2, [pc, #40] ; (8005d7c <Flash_write+0x48>)
  4417. switch(data[blucell_dstid]){
  4418. 8005d54: 480a ldrhi r0, [pc, #40] ; (8005d80 <Flash_write+0x4c>)
  4419. 8005d56: f852 0023 ldrls.w r0, [r2, r3, lsl #2]
  4420. Flash_RGB_Data_Write(Address,&data[blucell_stx]);
  4421. 8005d5a: f7ff ffc9 bl 8005cf0 <Flash_RGB_Data_Write>
  4422. HAL_FLASH_Lock(); // lock 잠그기
  4423. 8005d5e: f7fe fbd7 bl 8004510 <HAL_FLASH_Lock>
  4424. __HAL_RCC_TIM7_CLK_ENABLE(); // 매인타이머를 재시작합니다
  4425. 8005d62: 69e3 ldr r3, [r4, #28]
  4426. 8005d64: f043 0320 orr.w r3, r3, #32
  4427. 8005d68: 61e3 str r3, [r4, #28]
  4428. 8005d6a: 69e3 ldr r3, [r4, #28]
  4429. 8005d6c: f003 0320 and.w r3, r3, #32
  4430. 8005d70: 9301 str r3, [sp, #4]
  4431. 8005d72: 9b01 ldr r3, [sp, #4]
  4432. }
  4433. 8005d74: b003 add sp, #12
  4434. 8005d76: bd30 pop {r4, r5, pc}
  4435. 8005d78: 40021000 .word 0x40021000
  4436. 8005d7c: 080076e8 .word 0x080076e8
  4437. 8005d80: 08030000 .word 0x08030000
  4438. 08005d84 <Flash_InitRead>:
  4439. void Flash_InitRead(void) // 쓰기함수
  4440. {
  4441. 8005d84: b530 push {r4, r5, lr}
  4442. 8005d86: 480a ldr r0, [pc, #40] ; (8005db0 <Flash_InitRead+0x2c>)
  4443. 8005d88: 490a ldr r1, [pc, #40] ; (8005db4 <Flash_InitRead+0x30>)
  4444. 8005d8a: 4a0b ldr r2, [pc, #44] ; (8005db8 <Flash_InitRead+0x34>)
  4445. 8005d8c: 4b0b ldr r3, [pc, #44] ; (8005dbc <Flash_InitRead+0x38>)
  4446. uint32_t Address = 0;
  4447. Address = StartAddr;
  4448. for(uint8_t i = 1; i <= 8; i++ ){
  4449. 8005d8e: 4c0c ldr r4, [pc, #48] ; (8005dc0 <Flash_InitRead+0x3c>)
  4450. RGB_SensorRedLimit_Buf[i] = (*(uint16_t*)Address);
  4451. 8005d90: f833 5c06 ldrh.w r5, [r3, #-6]
  4452. 8005d94: 3306 adds r3, #6
  4453. 8005d96: f820 5f02 strh.w r5, [r0, #2]!
  4454. // printf("%08x : %04X \n",Address ,*(uint16_t*)Address);
  4455. Address += 2;
  4456. RGB_SensorGreenLimit_Buf[i] = (*(uint16_t*)Address);
  4457. 8005d9a: f833 5c0a ldrh.w r5, [r3, #-10]
  4458. 8005d9e: f821 5f02 strh.w r5, [r1, #2]!
  4459. // printf("%08x : %04X \n",Address ,*(uint16_t*)Address);
  4460. Address += 2;
  4461. RGB_SensorBlueLimit_Buf[i] = (*(uint16_t*)Address);
  4462. 8005da2: f833 5c08 ldrh.w r5, [r3, #-8]
  4463. for(uint8_t i = 1; i <= 8; i++ ){
  4464. 8005da6: 42a3 cmp r3, r4
  4465. RGB_SensorBlueLimit_Buf[i] = (*(uint16_t*)Address);
  4466. 8005da8: f822 5f02 strh.w r5, [r2, #2]!
  4467. for(uint8_t i = 1; i <= 8; i++ ){
  4468. 8005dac: d1f0 bne.n 8005d90 <Flash_InitRead+0xc>
  4469. // printf("%08x : %04X \n",Address ,*(uint16_t*)Address);
  4470. Address += 2;
  4471. }
  4472. }
  4473. 8005dae: bd30 pop {r4, r5, pc}
  4474. 8005db0: 200000b0 .word 0x200000b0
  4475. 8005db4: 2000009e .word 0x2000009e
  4476. 8005db8: 2000008c .word 0x2000008c
  4477. 8005dbc: 08030006 .word 0x08030006
  4478. 8005dc0: 08030036 .word 0x08030036
  4479. 08005dc4 <SystemClock_Config>:
  4480. /**
  4481. * @brief System Clock Configuration
  4482. * @retval None
  4483. */
  4484. void SystemClock_Config(void)
  4485. {
  4486. 8005dc4: b510 push {r4, lr}
  4487. 8005dc6: b090 sub sp, #64 ; 0x40
  4488. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  4489. 8005dc8: 2228 movs r2, #40 ; 0x28
  4490. 8005dca: 2100 movs r1, #0
  4491. 8005dcc: a806 add r0, sp, #24
  4492. 8005dce: f000 fbf4 bl 80065ba <memset>
  4493. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  4494. 8005dd2: 2100 movs r1, #0
  4495. 8005dd4: 2214 movs r2, #20
  4496. 8005dd6: a801 add r0, sp, #4
  4497. 8005dd8: f000 fbef bl 80065ba <memset>
  4498. */
  4499. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
  4500. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4501. RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV1;
  4502. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  4503. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  4504. 8005ddc: 2402 movs r4, #2
  4505. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
  4506. 8005dde: 2201 movs r2, #1
  4507. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4508. 8005de0: f44f 3380 mov.w r3, #65536 ; 0x10000
  4509. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  4510. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL2;
  4511. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  4512. 8005de4: a806 add r0, sp, #24
  4513. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
  4514. 8005de6: 9206 str r2, [sp, #24]
  4515. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4516. 8005de8: 9307 str r3, [sp, #28]
  4517. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  4518. 8005dea: 920a str r2, [sp, #40] ; 0x28
  4519. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  4520. 8005dec: 930e str r3, [sp, #56] ; 0x38
  4521. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  4522. 8005dee: 940d str r4, [sp, #52] ; 0x34
  4523. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  4524. 8005df0: f7fe fd7e bl 80048f0 <HAL_RCC_OscConfig>
  4525. {
  4526. Error_Handler();
  4527. }
  4528. /**Initializes the CPU, AHB and APB busses clocks
  4529. */
  4530. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  4531. 8005df4: 230f movs r3, #15
  4532. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  4533. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  4534. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  4535. 8005df6: 2100 movs r1, #0
  4536. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  4537. 8005df8: 9301 str r3, [sp, #4]
  4538. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
  4539. 8005dfa: f44f 6380 mov.w r3, #1024 ; 0x400
  4540. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  4541. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
  4542. 8005dfe: a801 add r0, sp, #4
  4543. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  4544. 8005e00: 9402 str r4, [sp, #8]
  4545. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  4546. 8005e02: 9103 str r1, [sp, #12]
  4547. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
  4548. 8005e04: 9304 str r3, [sp, #16]
  4549. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  4550. 8005e06: 9105 str r1, [sp, #20]
  4551. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
  4552. 8005e08: f7fe ff3a bl 8004c80 <HAL_RCC_ClockConfig>
  4553. {
  4554. Error_Handler();
  4555. }
  4556. }
  4557. 8005e0c: b010 add sp, #64 ; 0x40
  4558. 8005e0e: bd10 pop {r4, pc}
  4559. 08005e10 <main>:
  4560. {
  4561. 8005e10: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  4562. uint8_t StatusRequest_data[RGB_SensorDataRequest_Length] = {0xbe,RGB_Status_Data_Request,RGB_SensorDataRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&StatusRequest_data[blucell_type],StatusRequest_data[blucell_length]),0xeb};
  4563. 8005e14: 2504 movs r5, #4
  4564. 8005e16: 2701 movs r7, #1
  4565. 8005e18: f04f 09be mov.w r9, #190 ; 0xbe
  4566. 8005e1c: 4eb9 ldr r6, [pc, #740] ; (8006104 <main+0x2f4>)
  4567. 8005e1e: f8df 835c ldr.w r8, [pc, #860] ; 800617c <main+0x36c>
  4568. 8005e22: 7833 ldrb r3, [r6, #0]
  4569. {
  4570. 8005e24: b08d sub sp, #52 ; 0x34
  4571. uint8_t StatusRequest_data[RGB_SensorDataRequest_Length] = {0xbe,RGB_Status_Data_Request,RGB_SensorDataRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&StatusRequest_data[blucell_type],StatusRequest_data[blucell_length]),0xeb};
  4572. 8005e26: f88d 3013 strb.w r3, [sp, #19]
  4573. 8005e2a: f898 3000 ldrb.w r3, [r8]
  4574. 8005e2e: 4629 mov r1, r5
  4575. 8005e30: f10d 0011 add.w r0, sp, #17
  4576. 8005e34: f88d 9010 strb.w r9, [sp, #16]
  4577. 8005e38: f88d 7011 strb.w r7, [sp, #17]
  4578. 8005e3c: f88d 5012 strb.w r5, [sp, #18]
  4579. 8005e40: f88d 3014 strb.w r3, [sp, #20]
  4580. 8005e44: f000 f9c6 bl 80061d4 <STH30_CreateCrc>
  4581. uint8_t IDAutoSetRequest_data[RGB_SensorIDAutoSetRequest_Length] = {0xbe,RGB_SensorID_SET,RGB_SensorIDAutoSetRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&IDAutoSetRequest_data[blucell_type],IDAutoSetRequest_data[blucell_length]),0xeb};
  4582. 8005e48: 2303 movs r3, #3
  4583. uint8_t StatusRequest_data[RGB_SensorDataRequest_Length] = {0xbe,RGB_Status_Data_Request,RGB_SensorDataRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&StatusRequest_data[blucell_type],StatusRequest_data[blucell_length]),0xeb};
  4584. 8005e4a: 24eb movs r4, #235 ; 0xeb
  4585. uint8_t IDAutoSetRequest_data[RGB_SensorIDAutoSetRequest_Length] = {0xbe,RGB_SensorID_SET,RGB_SensorIDAutoSetRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&IDAutoSetRequest_data[blucell_type],IDAutoSetRequest_data[blucell_length]),0xeb};
  4586. 8005e4c: f88d 3019 strb.w r3, [sp, #25]
  4587. 8005e50: 7833 ldrb r3, [r6, #0]
  4588. 8005e52: 4629 mov r1, r5
  4589. 8005e54: f88d 301b strb.w r3, [sp, #27]
  4590. 8005e58: f898 3000 ldrb.w r3, [r8]
  4591. uint8_t StatusRequest_data[RGB_SensorDataRequest_Length] = {0xbe,RGB_Status_Data_Request,RGB_SensorDataRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&StatusRequest_data[blucell_type],StatusRequest_data[blucell_length]),0xeb};
  4592. 8005e5c: f88d 0015 strb.w r0, [sp, #21]
  4593. uint8_t IDAutoSetRequest_data[RGB_SensorIDAutoSetRequest_Length] = {0xbe,RGB_SensorID_SET,RGB_SensorIDAutoSetRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&IDAutoSetRequest_data[blucell_type],IDAutoSetRequest_data[blucell_length]),0xeb};
  4594. 8005e60: f10d 0019 add.w r0, sp, #25
  4595. 8005e64: f88d 301c strb.w r3, [sp, #28]
  4596. uint8_t StatusRequest_data[RGB_SensorDataRequest_Length] = {0xbe,RGB_Status_Data_Request,RGB_SensorDataRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&StatusRequest_data[blucell_type],StatusRequest_data[blucell_length]),0xeb};
  4597. 8005e68: f88d 4016 strb.w r4, [sp, #22]
  4598. uint8_t IDAutoSetRequest_data[RGB_SensorIDAutoSetRequest_Length] = {0xbe,RGB_SensorID_SET,RGB_SensorIDAutoSetRequest_Length - 3,MyControllerID,SensorID,STH30_CreateCrc(&IDAutoSetRequest_data[blucell_type],IDAutoSetRequest_data[blucell_length]),0xeb};
  4599. 8005e6c: f88d 9018 strb.w r9, [sp, #24]
  4600. 8005e70: f88d 501a strb.w r5, [sp, #26]
  4601. 8005e74: f000 f9ae bl 80061d4 <STH30_CreateCrc>
  4602. 8005e78: f88d 401e strb.w r4, [sp, #30]
  4603. 8005e7c: f88d 001d strb.w r0, [sp, #29]
  4604. HAL_Init();
  4605. 8005e80: f7fe fa00 bl 8004284 <HAL_Init>
  4606. SystemClock_Config();
  4607. 8005e84: f7ff ff9e bl 8005dc4 <SystemClock_Config>
  4608. * @param None
  4609. * @retval None
  4610. */
  4611. static void MX_GPIO_Init(void)
  4612. {
  4613. GPIO_InitTypeDef GPIO_InitStruct = {0};
  4614. 8005e88: 2210 movs r2, #16
  4615. 8005e8a: 2100 movs r1, #0
  4616. 8005e8c: a808 add r0, sp, #32
  4617. 8005e8e: f000 fb94 bl 80065ba <memset>
  4618. /* GPIO Ports Clock Enable */
  4619. __HAL_RCC_GPIOC_CLK_ENABLE();
  4620. 8005e92: 4b9d ldr r3, [pc, #628] ; (8006108 <main+0x2f8>)
  4621. __HAL_RCC_GPIOD_CLK_ENABLE();
  4622. __HAL_RCC_GPIOA_CLK_ENABLE();
  4623. __HAL_RCC_GPIOB_CLK_ENABLE();
  4624. /*Configure GPIO pin Output Level */
  4625. HAL_GPIO_WritePin(GPIOC, BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4626. 8005e94: f649 71f0 movw r1, #40944 ; 0x9ff0
  4627. __HAL_RCC_GPIOC_CLK_ENABLE();
  4628. 8005e98: 699a ldr r2, [r3, #24]
  4629. HAL_GPIO_WritePin(GPIOC, BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4630. 8005e9a: 489c ldr r0, [pc, #624] ; (800610c <main+0x2fc>)
  4631. __HAL_RCC_GPIOC_CLK_ENABLE();
  4632. 8005e9c: f042 0210 orr.w r2, r2, #16
  4633. 8005ea0: 619a str r2, [r3, #24]
  4634. 8005ea2: 699a ldr r2, [r3, #24]
  4635. LED_CH2_Pin LED_CH3_Pin */
  4636. GPIO_InitStruct.Pin = BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4637. |SENSOR_EN5_Pin|SENSOR_EN6_Pin|SENSOR_EN7_Pin|LED_CH1_Pin
  4638. |LED_CH2_Pin|LED_CH3_Pin;
  4639. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4640. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4641. 8005ea4: 2400 movs r4, #0
  4642. __HAL_RCC_GPIOC_CLK_ENABLE();
  4643. 8005ea6: f002 0210 and.w r2, r2, #16
  4644. 8005eaa: 9200 str r2, [sp, #0]
  4645. 8005eac: 9a00 ldr r2, [sp, #0]
  4646. __HAL_RCC_GPIOD_CLK_ENABLE();
  4647. 8005eae: 699a ldr r2, [r3, #24]
  4648. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4649. 8005eb0: 2602 movs r6, #2
  4650. __HAL_RCC_GPIOD_CLK_ENABLE();
  4651. 8005eb2: f042 0220 orr.w r2, r2, #32
  4652. 8005eb6: 619a str r2, [r3, #24]
  4653. 8005eb8: 699a ldr r2, [r3, #24]
  4654. htim6.Instance = TIM6;
  4655. 8005eba: f8df 92c4 ldr.w r9, [pc, #708] ; 8006180 <main+0x370>
  4656. __HAL_RCC_GPIOD_CLK_ENABLE();
  4657. 8005ebe: f002 0220 and.w r2, r2, #32
  4658. 8005ec2: 9201 str r2, [sp, #4]
  4659. 8005ec4: 9a01 ldr r2, [sp, #4]
  4660. __HAL_RCC_GPIOA_CLK_ENABLE();
  4661. 8005ec6: 699a ldr r2, [r3, #24]
  4662. huart1.Init.BaudRate = 115200;
  4663. 8005ec8: f44f 3be1 mov.w fp, #115200 ; 0x1c200
  4664. __HAL_RCC_GPIOA_CLK_ENABLE();
  4665. 8005ecc: 432a orrs r2, r5
  4666. 8005ece: 619a str r2, [r3, #24]
  4667. 8005ed0: 699a ldr r2, [r3, #24]
  4668. huart1.Init.Mode = UART_MODE_TX_RX;
  4669. 8005ed2: f04f 0a0c mov.w sl, #12
  4670. __HAL_RCC_GPIOA_CLK_ENABLE();
  4671. 8005ed6: 402a ands r2, r5
  4672. 8005ed8: 9202 str r2, [sp, #8]
  4673. 8005eda: 9a02 ldr r2, [sp, #8]
  4674. __HAL_RCC_GPIOB_CLK_ENABLE();
  4675. 8005edc: 699a ldr r2, [r3, #24]
  4676. 8005ede: f042 0208 orr.w r2, r2, #8
  4677. 8005ee2: 619a str r2, [r3, #24]
  4678. 8005ee4: 699b ldr r3, [r3, #24]
  4679. HAL_GPIO_WritePin(GPIOC, BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4680. 8005ee6: 2200 movs r2, #0
  4681. __HAL_RCC_GPIOB_CLK_ENABLE();
  4682. 8005ee8: f003 0308 and.w r3, r3, #8
  4683. 8005eec: 9303 str r3, [sp, #12]
  4684. 8005eee: 9b03 ldr r3, [sp, #12]
  4685. HAL_GPIO_WritePin(GPIOC, BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4686. 8005ef0: f7fe fc74 bl 80047dc <HAL_GPIO_WritePin>
  4687. HAL_GPIO_WritePin(GPIOA, SX1276_DIO0_Pin|SX1276_DIO1_Pin|SX1276_DIO2_Pin|SX1276_DIO3_Pin
  4688. 8005ef4: 2200 movs r2, #0
  4689. 8005ef6: f44f 71f8 mov.w r1, #496 ; 0x1f0
  4690. 8005efa: 4885 ldr r0, [pc, #532] ; (8006110 <main+0x300>)
  4691. 8005efc: f7fe fc6e bl 80047dc <HAL_GPIO_WritePin>
  4692. HAL_GPIO_WritePin(GPIOB, SX1276_RESET_Pin|LED_ALARM_Pin|SENSOR_EN1_Pin|SENSOR_EN2_Pin
  4693. 8005f00: 2200 movs r2, #0
  4694. 8005f02: f24f 31c1 movw r1, #62401 ; 0xf3c1
  4695. 8005f06: 4883 ldr r0, [pc, #524] ; (8006114 <main+0x304>)
  4696. 8005f08: f7fe fc68 bl 80047dc <HAL_GPIO_WritePin>
  4697. HAL_GPIO_WritePin(LED_CH4_GPIO_Port, LED_CH4_Pin, GPIO_PIN_RESET);
  4698. 8005f0c: 2200 movs r2, #0
  4699. 8005f0e: 4629 mov r1, r5
  4700. 8005f10: 4881 ldr r0, [pc, #516] ; (8006118 <main+0x308>)
  4701. 8005f12: f7fe fc63 bl 80047dc <HAL_GPIO_WritePin>
  4702. GPIO_InitStruct.Pin = BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4703. 8005f16: f649 73f0 movw r3, #40944 ; 0x9ff0
  4704. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  4705. 8005f1a: a908 add r1, sp, #32
  4706. 8005f1c: 487b ldr r0, [pc, #492] ; (800610c <main+0x2fc>)
  4707. GPIO_InitStruct.Pin = BOOT_LED_Pin|SX1276_DIO4_Pin|SX1276_DIO5_Pin|SENSOR_EN4_Pin
  4708. 8005f1e: 9308 str r3, [sp, #32]
  4709. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4710. 8005f20: 9709 str r7, [sp, #36] ; 0x24
  4711. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4712. 8005f22: 960b str r6, [sp, #44] ; 0x2c
  4713. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4714. 8005f24: 940a str r4, [sp, #40] ; 0x28
  4715. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  4716. 8005f26: f7fe fb6d bl 8004604 <HAL_GPIO_Init>
  4717. /*Configure GPIO pins : SX1276_DIO0_Pin SX1276_DIO1_Pin SX1276_DIO2_Pin SX1276_DIO3_Pin
  4718. SENSOR_EN8_Pin */
  4719. GPIO_InitStruct.Pin = SX1276_DIO0_Pin|SX1276_DIO1_Pin|SX1276_DIO2_Pin|SX1276_DIO3_Pin
  4720. 8005f2a: f44f 73f8 mov.w r3, #496 ; 0x1f0
  4721. |SENSOR_EN8_Pin;
  4722. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4723. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4724. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4725. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  4726. 8005f2e: a908 add r1, sp, #32
  4727. 8005f30: 4877 ldr r0, [pc, #476] ; (8006110 <main+0x300>)
  4728. GPIO_InitStruct.Pin = SX1276_DIO0_Pin|SX1276_DIO1_Pin|SX1276_DIO2_Pin|SX1276_DIO3_Pin
  4729. 8005f32: 9308 str r3, [sp, #32]
  4730. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4731. 8005f34: 9709 str r7, [sp, #36] ; 0x24
  4732. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4733. 8005f36: 960b str r6, [sp, #44] ; 0x2c
  4734. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4735. 8005f38: 940a str r4, [sp, #40] ; 0x28
  4736. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  4737. 8005f3a: f7fe fb63 bl 8004604 <HAL_GPIO_Init>
  4738. /*Configure GPIO pins : SX1276_RESET_Pin LED_ALARM_Pin SENSOR_EN1_Pin SENSOR_EN2_Pin
  4739. SENSOR_EN3_Pin LED_CH5_Pin LED_CH6_Pin LED_CH7_Pin
  4740. LED_CH8_Pin */
  4741. GPIO_InitStruct.Pin = SX1276_RESET_Pin|LED_ALARM_Pin|SENSOR_EN1_Pin|SENSOR_EN2_Pin
  4742. 8005f3e: f24f 33c1 movw r3, #62401 ; 0xf3c1
  4743. |SENSOR_EN3_Pin|LED_CH5_Pin|LED_CH6_Pin|LED_CH7_Pin
  4744. |LED_CH8_Pin;
  4745. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4746. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4747. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4748. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  4749. 8005f42: a908 add r1, sp, #32
  4750. 8005f44: 4873 ldr r0, [pc, #460] ; (8006114 <main+0x304>)
  4751. GPIO_InitStruct.Pin = SX1276_RESET_Pin|LED_ALARM_Pin|SENSOR_EN1_Pin|SENSOR_EN2_Pin
  4752. 8005f46: 9308 str r3, [sp, #32]
  4753. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4754. 8005f48: 9709 str r7, [sp, #36] ; 0x24
  4755. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4756. 8005f4a: 960b str r6, [sp, #44] ; 0x2c
  4757. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4758. 8005f4c: 940a str r4, [sp, #40] ; 0x28
  4759. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  4760. 8005f4e: f7fe fb59 bl 8004604 <HAL_GPIO_Init>
  4761. /*Configure GPIO pin : LED_CH4_Pin */
  4762. GPIO_InitStruct.Pin = LED_CH4_Pin;
  4763. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4764. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4765. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4766. HAL_GPIO_Init(LED_CH4_GPIO_Port, &GPIO_InitStruct);
  4767. 8005f52: a908 add r1, sp, #32
  4768. 8005f54: 4870 ldr r0, [pc, #448] ; (8006118 <main+0x308>)
  4769. GPIO_InitStruct.Pin = LED_CH4_Pin;
  4770. 8005f56: 9508 str r5, [sp, #32]
  4771. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4772. 8005f58: 9709 str r7, [sp, #36] ; 0x24
  4773. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4774. 8005f5a: 960b str r6, [sp, #44] ; 0x2c
  4775. GPIO_InitStruct.Pull = GPIO_NOPULL;
  4776. 8005f5c: 940a str r4, [sp, #40] ; 0x28
  4777. HAL_GPIO_Init(LED_CH4_GPIO_Port, &GPIO_InitStruct);
  4778. 8005f5e: f7fe fb51 bl 8004604 <HAL_GPIO_Init>
  4779. htim6.Init.Prescaler = 1600-1;
  4780. 8005f62: f240 633f movw r3, #1599 ; 0x63f
  4781. 8005f66: 4a6d ldr r2, [pc, #436] ; (800611c <main+0x30c>)
  4782. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  4783. 8005f68: 4648 mov r0, r9
  4784. htim6.Init.Prescaler = 1600-1;
  4785. 8005f6a: e889 000c stmia.w r9, {r2, r3}
  4786. htim6.Init.Period = 10-1;
  4787. 8005f6e: 2309 movs r3, #9
  4788. huart1.Instance = USART1;
  4789. 8005f70: 4e6b ldr r6, [pc, #428] ; (8006120 <main+0x310>)
  4790. htim6.Init.Period = 10-1;
  4791. 8005f72: f8c9 300c str.w r3, [r9, #12]
  4792. TIM_MasterConfigTypeDef sMasterConfig = {0};
  4793. 8005f76: 9408 str r4, [sp, #32]
  4794. 8005f78: 9409 str r4, [sp, #36] ; 0x24
  4795. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  4796. 8005f7a: f8c9 4008 str.w r4, [r9, #8]
  4797. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  4798. 8005f7e: f8c9 4018 str.w r4, [r9, #24]
  4799. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  4800. 8005f82: f7ff f887 bl 8005094 <HAL_TIM_Base_Init>
  4801. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  4802. 8005f86: a908 add r1, sp, #32
  4803. 8005f88: 4648 mov r0, r9
  4804. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  4805. 8005f8a: 9408 str r4, [sp, #32]
  4806. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  4807. 8005f8c: 9409 str r4, [sp, #36] ; 0x24
  4808. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  4809. 8005f8e: f7ff f89b bl 80050c8 <HAL_TIMEx_MasterConfigSynchronization>
  4810. huart1.Init.BaudRate = 115200;
  4811. 8005f92: 4b64 ldr r3, [pc, #400] ; (8006124 <main+0x314>)
  4812. huart2.Instance = USART2;
  4813. 8005f94: 4d64 ldr r5, [pc, #400] ; (8006128 <main+0x318>)
  4814. if (HAL_UART_Init(&huart1) != HAL_OK)
  4815. 8005f96: 4630 mov r0, r6
  4816. huart1.Init.BaudRate = 115200;
  4817. 8005f98: e886 0808 stmia.w r6, {r3, fp}
  4818. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  4819. 8005f9c: 60b4 str r4, [r6, #8]
  4820. huart1.Init.StopBits = UART_STOPBITS_1;
  4821. 8005f9e: 60f4 str r4, [r6, #12]
  4822. huart1.Init.Parity = UART_PARITY_NONE;
  4823. 8005fa0: 6134 str r4, [r6, #16]
  4824. huart1.Init.Mode = UART_MODE_TX_RX;
  4825. 8005fa2: f8c6 a014 str.w sl, [r6, #20]
  4826. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4827. 8005fa6: 61b4 str r4, [r6, #24]
  4828. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  4829. 8005fa8: 61f4 str r4, [r6, #28]
  4830. if (HAL_UART_Init(&huart1) != HAL_OK)
  4831. 8005faa: f7ff f985 bl 80052b8 <HAL_UART_Init>
  4832. huart2.Instance = USART2;
  4833. 8005fae: 4b5f ldr r3, [pc, #380] ; (800612c <main+0x31c>)
  4834. if (HAL_UART_Init(&huart2) != HAL_OK)
  4835. 8005fb0: 4628 mov r0, r5
  4836. huart2.Init.BaudRate = 115200;
  4837. 8005fb2: e885 0808 stmia.w r5, {r3, fp}
  4838. huart2.Init.WordLength = UART_WORDLENGTH_8B;
  4839. 8005fb6: 60ac str r4, [r5, #8]
  4840. huart2.Init.StopBits = UART_STOPBITS_1;
  4841. 8005fb8: 60ec str r4, [r5, #12]
  4842. huart2.Init.Parity = UART_PARITY_NONE;
  4843. 8005fba: 612c str r4, [r5, #16]
  4844. huart2.Init.Mode = UART_MODE_TX_RX;
  4845. 8005fbc: f8c5 a014 str.w sl, [r5, #20]
  4846. huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4847. 8005fc0: 61ac str r4, [r5, #24]
  4848. huart2.Init.OverSampling = UART_OVERSAMPLING_16;
  4849. 8005fc2: 61ec str r4, [r5, #28]
  4850. if (HAL_UART_Init(&huart2) != HAL_OK)
  4851. 8005fc4: f7ff f978 bl 80052b8 <HAL_UART_Init>
  4852. hspi1.Init.Mode = SPI_MODE_MASTER;
  4853. 8005fc8: f44f 7382 mov.w r3, #260 ; 0x104
  4854. hspi1.Instance = SPI1;
  4855. 8005fcc: 4858 ldr r0, [pc, #352] ; (8006130 <main+0x320>)
  4856. hspi1.Init.Mode = SPI_MODE_MASTER;
  4857. 8005fce: 4959 ldr r1, [pc, #356] ; (8006134 <main+0x324>)
  4858. hspi1.Init.Direction = SPI_DIRECTION_2LINES;
  4859. 8005fd0: 6084 str r4, [r0, #8]
  4860. hspi1.Init.Mode = SPI_MODE_MASTER;
  4861. 8005fd2: e880 000a stmia.w r0, {r1, r3}
  4862. hspi1.Init.NSS = SPI_NSS_HARD_OUTPUT;
  4863. 8005fd6: f44f 2380 mov.w r3, #262144 ; 0x40000
  4864. 8005fda: 6183 str r3, [r0, #24]
  4865. hspi1.Init.CRCPolynomial = 10;
  4866. 8005fdc: 230a movs r3, #10
  4867. hspi1.Init.DataSize = SPI_DATASIZE_8BIT;
  4868. 8005fde: 60c4 str r4, [r0, #12]
  4869. hspi1.Init.CRCPolynomial = 10;
  4870. 8005fe0: 62c3 str r3, [r0, #44] ; 0x2c
  4871. hspi1.Init.CLKPolarity = SPI_POLARITY_LOW;
  4872. 8005fe2: 6104 str r4, [r0, #16]
  4873. hspi1.Init.CLKPhase = SPI_PHASE_1EDGE;
  4874. 8005fe4: 6144 str r4, [r0, #20]
  4875. hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
  4876. 8005fe6: 61c4 str r4, [r0, #28]
  4877. hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB;
  4878. 8005fe8: 6204 str r4, [r0, #32]
  4879. hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
  4880. 8005fea: 6244 str r4, [r0, #36] ; 0x24
  4881. hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
  4882. 8005fec: 6284 str r4, [r0, #40] ; 0x28
  4883. if (HAL_SPI_Init(&hspi1) != HAL_OK)
  4884. 8005fee: f7fe ff19 bl 8004e24 <HAL_SPI_Init>
  4885. hi2c2.Init.ClockSpeed = 100000;
  4886. 8005ff2: f8df e190 ldr.w lr, [pc, #400] ; 8006184 <main+0x374>
  4887. hi2c2.Instance = I2C2;
  4888. 8005ff6: 4850 ldr r0, [pc, #320] ; (8006138 <main+0x328>)
  4889. hi2c2.Init.ClockSpeed = 100000;
  4890. 8005ff8: 4b50 ldr r3, [pc, #320] ; (800613c <main+0x32c>)
  4891. hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2;
  4892. 8005ffa: 6084 str r4, [r0, #8]
  4893. hi2c2.Init.ClockSpeed = 100000;
  4894. 8005ffc: e880 4008 stmia.w r0, {r3, lr}
  4895. hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
  4896. 8006000: f44f 4380 mov.w r3, #16384 ; 0x4000
  4897. hi2c2.Init.OwnAddress1 = 0;
  4898. 8006004: 60c4 str r4, [r0, #12]
  4899. hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
  4900. 8006006: 6103 str r3, [r0, #16]
  4901. hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
  4902. 8006008: 6144 str r4, [r0, #20]
  4903. hi2c2.Init.OwnAddress2 = 0;
  4904. 800600a: 6184 str r4, [r0, #24]
  4905. hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
  4906. 800600c: 61c4 str r4, [r0, #28]
  4907. hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
  4908. 800600e: 6204 str r4, [r0, #32]
  4909. if (HAL_I2C_Init(&hi2c2) != HAL_OK)
  4910. 8006010: f7fe fbee bl 80047f0 <HAL_I2C_Init>
  4911. HAL_NVIC_SetPriority(USART2_IRQn, 0, 0);
  4912. 8006014: 4622 mov r2, r4
  4913. 8006016: 4621 mov r1, r4
  4914. 8006018: 2026 movs r0, #38 ; 0x26
  4915. 800601a: f7fe f97b bl 8004314 <HAL_NVIC_SetPriority>
  4916. HAL_NVIC_EnableIRQ(USART2_IRQn);
  4917. 800601e: 2026 movs r0, #38 ; 0x26
  4918. 8006020: f7fe f9ac bl 800437c <HAL_NVIC_EnableIRQ>
  4919. HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
  4920. 8006024: 4622 mov r2, r4
  4921. 8006026: 4621 mov r1, r4
  4922. 8006028: 2025 movs r0, #37 ; 0x25
  4923. 800602a: f7fe f973 bl 8004314 <HAL_NVIC_SetPriority>
  4924. HAL_NVIC_EnableIRQ(USART1_IRQn);
  4925. 800602e: 2025 movs r0, #37 ; 0x25
  4926. 8006030: f7fe f9a4 bl 800437c <HAL_NVIC_EnableIRQ>
  4927. HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0);
  4928. 8006034: 4622 mov r2, r4
  4929. 8006036: 4621 mov r1, r4
  4930. 8006038: 2036 movs r0, #54 ; 0x36
  4931. 800603a: f7fe f96b bl 8004314 <HAL_NVIC_SetPriority>
  4932. HAL_NVIC_EnableIRQ(TIM6_IRQn);
  4933. 800603e: 2036 movs r0, #54 ; 0x36
  4934. 8006040: f7fe f99c bl 800437c <HAL_NVIC_EnableIRQ>
  4935. HAL_TIM_Base_Start_IT(&htim6);
  4936. 8006044: 4648 mov r0, r9
  4937. 8006046: f7fe ff28 bl 8004e9a <HAL_TIM_Base_Start_IT>
  4938. HAL_UART_Receive_IT(&huart1, &rx1_data[0],1);
  4939. 800604a: 463a mov r2, r7
  4940. 800604c: 493c ldr r1, [pc, #240] ; (8006140 <main+0x330>)
  4941. 800604e: 4630 mov r0, r6
  4942. 8006050: f7ff f9bc bl 80053cc <HAL_UART_Receive_IT>
  4943. HAL_UART_Receive_IT(&huart2, &rx2_data[0],1);
  4944. 8006054: 463a mov r2, r7
  4945. 8006056: 493b ldr r1, [pc, #236] ; (8006144 <main+0x334>)
  4946. 8006058: 4628 mov r0, r5
  4947. 800605a: f7ff f9b7 bl 80053cc <HAL_UART_Receive_IT>
  4948. setbuf(stdout, NULL); // \n 을 적을 떄만
  4949. 800605e: 4b3a ldr r3, [pc, #232] ; (8006148 <main+0x338>)
  4950. 8006060: 4621 mov r1, r4
  4951. 8006062: 681b ldr r3, [r3, #0]
  4952. RGB_SensorIDAutoset = set;
  4953. 8006064: 4d39 ldr r5, [pc, #228] ; (800614c <main+0x33c>)
  4954. setbuf(stdout, NULL); // \n 을 적을 떄만
  4955. 8006066: 6898 ldr r0, [r3, #8]
  4956. 8006068: f000 fb2c bl 80066c4 <setbuf>
  4957. printf("****************************************\r\n");
  4958. 800606c: 4838 ldr r0, [pc, #224] ; (8006150 <main+0x340>)
  4959. 800606e: f000 fb21 bl 80066b4 <puts>
  4960. printf("RGB Project\r\n");
  4961. 8006072: 4838 ldr r0, [pc, #224] ; (8006154 <main+0x344>)
  4962. 8006074: f000 fb1e bl 80066b4 <puts>
  4963. printf("Build at %s %s\r\n", __DATE__, __TIME__);
  4964. 8006078: 4a37 ldr r2, [pc, #220] ; (8006158 <main+0x348>)
  4965. 800607a: 4938 ldr r1, [pc, #224] ; (800615c <main+0x34c>)
  4966. 800607c: 4838 ldr r0, [pc, #224] ; (8006160 <main+0x350>)
  4967. 800607e: f000 faa5 bl 80065cc <iprintf>
  4968. printf("Copyright (c) 2019. BLUECELL\r\n");
  4969. 8006082: 4838 ldr r0, [pc, #224] ; (8006164 <main+0x354>)
  4970. 8006084: f000 fb16 bl 80066b4 <puts>
  4971. printf("****************************************\r\n");
  4972. 8006088: 4831 ldr r0, [pc, #196] ; (8006150 <main+0x340>)
  4973. 800608a: f000 fb13 bl 80066b4 <puts>
  4974. RGB_SensorIDAutoset = set;
  4975. 800608e: 702f strb r7, [r5, #0]
  4976. Flash_InitRead();
  4977. 8006090: f7ff fe78 bl 8005d84 <Flash_InitRead>
  4978. if(LedTimerCnt > 500){
  4979. 8006094: 4e34 ldr r6, [pc, #208] ; (8006168 <main+0x358>)
  4980. HAL_GPIO_TogglePin(GPIOC,GPIO_PIN_15);
  4981. 8006096: 4f1d ldr r7, [pc, #116] ; (800610c <main+0x2fc>)
  4982. UartDataBufferCheck();
  4983. 8006098: f7ff fc8c bl 80059b4 <UartDataBufferCheck>
  4984. if(UartDataRecvGet() >= 1 && UartTimerCnt > 100){
  4985. 800609c: f7ff fca0 bl 80059e0 <UartDataRecvGet>
  4986. 80060a0: b140 cbz r0, 80060b4 <main+0x2a4>
  4987. 80060a2: 4b32 ldr r3, [pc, #200] ; (800616c <main+0x35c>)
  4988. 80060a4: 681b ldr r3, [r3, #0]
  4989. 80060a6: 2b64 cmp r3, #100 ; 0x64
  4990. 80060a8: d904 bls.n 80060b4 <main+0x2a4>
  4991. Uart_dataCheck(USART1_CNT,&count_in1);
  4992. 80060aa: 4931 ldr r1, [pc, #196] ; (8006170 <main+0x360>)
  4993. 80060ac: 2000 movs r0, #0
  4994. 80060ae: f7ff fcb7 bl 8005a20 <Uart_dataCheck>
  4995. 80060b2: e7f1 b.n 8006098 <main+0x288>
  4996. if(LedTimerCnt > 500){
  4997. 80060b4: 6833 ldr r3, [r6, #0]
  4998. 80060b6: f5b3 7ffa cmp.w r3, #500 ; 0x1f4
  4999. 80060ba: d9ed bls.n 8006098 <main+0x288>
  5000. if(RGB_SensorIDAutoGet() == 1){
  5001. 80060bc: 782b ldrb r3, [r5, #0]
  5002. 80060be: 2b01 cmp r3, #1
  5003. 80060c0: d170 bne.n 80061a4 <main+0x394>
  5004. if(SensorID == 0){memset(&SensorID_buf[0],0x00,8);SensorID_Cnt = 0;}
  5005. 80060c2: f898 0000 ldrb.w r0, [r8]
  5006. 80060c6: b920 cbnz r0, 80060d2 <main+0x2c2>
  5007. 80060c8: 4b2a ldr r3, [pc, #168] ; (8006174 <main+0x364>)
  5008. 80060ca: 6018 str r0, [r3, #0]
  5009. 80060cc: 6058 str r0, [r3, #4]
  5010. 80060ce: 4b2a ldr r3, [pc, #168] ; (8006178 <main+0x368>)
  5011. 80060d0: 7018 strb r0, [r3, #0]
  5012. IDAutoSetRequest_data[blucell_srcid + 1] = ++SensorID;//DST ID
  5013. 80060d2: 3001 adds r0, #1
  5014. 80060d4: b2c0 uxtb r0, r0
  5015. if(IDAutoSetRequest_data[blucell_srcid + 1] > 8){
  5016. 80060d6: 2808 cmp r0, #8
  5017. IDAutoSetRequest_data[blucell_srcid + 1] = ++SensorID;//DST ID
  5018. 80060d8: f888 0000 strb.w r0, [r8]
  5019. 80060dc: f88d 001c strb.w r0, [sp, #28]
  5020. if(IDAutoSetRequest_data[blucell_srcid + 1] > 8){
  5021. 80060e0: d952 bls.n 8006188 <main+0x378>
  5022. RGB_SensorIDAutoset = set;
  5023. 80060e2: f04f 0900 mov.w r9, #0
  5024. RGB_Sensor_PowerOnOff(0);
  5025. 80060e6: 4648 mov r0, r9
  5026. RGB_SensorIDAutoset = set;
  5027. 80060e8: f885 9000 strb.w r9, [r5]
  5028. RGB_Sensor_PowerOnOff(0);
  5029. 80060ec: f7ff fcfe bl 8005aec <RGB_Sensor_PowerOnOff>
  5030. SensorID = 0;
  5031. 80060f0: f888 9000 strb.w r9, [r8]
  5032. HAL_GPIO_TogglePin(GPIOC,GPIO_PIN_15);
  5033. 80060f4: f44f 4100 mov.w r1, #32768 ; 0x8000
  5034. 80060f8: 4638 mov r0, r7
  5035. 80060fa: f7fe fb74 bl 80047e6 <HAL_GPIO_TogglePin>
  5036. LedTimerCnt = 0;
  5037. 80060fe: 2300 movs r3, #0
  5038. 8006100: 6033 str r3, [r6, #0]
  5039. 8006102: e7c9 b.n 8006098 <main+0x288>
  5040. 8006104: 200002a4 .word 0x200002a4
  5041. 8006108: 40021000 .word 0x40021000
  5042. 800610c: 40011000 .word 0x40011000
  5043. 8006110: 40010800 .word 0x40010800
  5044. 8006114: 40010c00 .word 0x40010c00
  5045. 8006118: 40011400 .word 0x40011400
  5046. 800611c: 40001000 .word 0x40001000
  5047. 8006120: 20000338 .word 0x20000338
  5048. 8006124: 40013800 .word 0x40013800
  5049. 8006128: 20000410 .word 0x20000410
  5050. 800612c: 40004400 .word 0x40004400
  5051. 8006130: 200003b8 .word 0x200003b8
  5052. 8006134: 40013000 .word 0x40013000
  5053. 8006138: 200002e4 .word 0x200002e4
  5054. 800613c: 40005800 .word 0x40005800
  5055. 8006140: 200002e2 .word 0x200002e2
  5056. 8006144: 200002e1 .word 0x200002e1
  5057. 8006148: 2000000c .word 0x2000000c
  5058. 800614c: 200002a5 .word 0x200002a5
  5059. 8006150: 08007713 .word 0x08007713
  5060. 8006154: 0800773d .word 0x0800773d
  5061. 8006158: 0800774a .word 0x0800774a
  5062. 800615c: 08007753 .word 0x08007753
  5063. 8006160: 0800775f .word 0x0800775f
  5064. 8006164: 08007770 .word 0x08007770
  5065. 8006168: 200002a0 .word 0x200002a0
  5066. 800616c: 200002a8 .word 0x200002a8
  5067. 8006170: 2000029c .word 0x2000029c
  5068. 8006174: 200000c3 .word 0x200000c3
  5069. 8006178: 200000c2 .word 0x200000c2
  5070. 800617c: 200002a6 .word 0x200002a6
  5071. 8006180: 20000378 .word 0x20000378
  5072. 8006184: 000186a0 .word 0x000186a0
  5073. RGB_Sensor_PowerOnOff(IDAutoSetRequest_data[4]);
  5074. 8006188: f7ff fcb0 bl 8005aec <RGB_Sensor_PowerOnOff>
  5075. HAL_Delay(500);
  5076. 800618c: f44f 70fa mov.w r0, #500 ; 0x1f4
  5077. 8006190: f7fe f89c bl 80042cc <HAL_Delay>
  5078. RGB_Controller_Func(&IDAutoSetRequest_data[blucell_stx]);
  5079. 8006194: a806 add r0, sp, #24
  5080. 8006196: f7ff fae1 bl 800575c <RGB_Controller_Func>
  5081. HAL_Delay(500);
  5082. 800619a: f44f 70fa mov.w r0, #500 ; 0x1f4
  5083. 800619e: f7fe f895 bl 80042cc <HAL_Delay>
  5084. 80061a2: e7a7 b.n 80060f4 <main+0x2e4>
  5085. StatusRequest_data[blucell_srcid + 1] = SensorID_buf[temp_sensorid++];
  5086. 80061a4: 4b09 ldr r3, [pc, #36] ; (80061cc <main+0x3bc>)
  5087. 80061a6: f104 0901 add.w r9, r4, #1
  5088. 80061aa: 5d1b ldrb r3, [r3, r4]
  5089. 80061ac: fa5f f989 uxtb.w r9, r9
  5090. 80061b0: f88d 3014 strb.w r3, [sp, #20]
  5091. if(temp_sensorid > (SensorID_Cnt)){
  5092. 80061b4: 4b06 ldr r3, [pc, #24] ; (80061d0 <main+0x3c0>)
  5093. RGB_Controller_Func(&StatusRequest_data[blucell_stx]);
  5094. 80061b6: a804 add r0, sp, #16
  5095. if(temp_sensorid > (SensorID_Cnt)){
  5096. 80061b8: 781b ldrb r3, [r3, #0]
  5097. temp_sensorid = 0;
  5098. 80061ba: 454b cmp r3, r9
  5099. 80061bc: bf38 it cc
  5100. 80061be: f04f 0900 movcc.w r9, #0
  5101. RGB_Controller_Func(&StatusRequest_data[blucell_stx]);
  5102. 80061c2: f7ff facb bl 800575c <RGB_Controller_Func>
  5103. 80061c6: 464c mov r4, r9
  5104. 80061c8: e794 b.n 80060f4 <main+0x2e4>
  5105. 80061ca: bf00 nop
  5106. 80061cc: 200000c3 .word 0x200000c3
  5107. 80061d0: 200000c2 .word 0x200000c2
  5108. 080061d4 <STH30_CreateCrc>:
  5109. 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8,
  5110. 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0
  5111. };
  5112. uint8_t STH30_CreateCrc(uint8_t *data, uint8_t nbrOfBytes)
  5113. {
  5114. 80061d4: b510 push {r4, lr}
  5115. uint8_t bit; // bit mask
  5116. uint8_t crc = 0xFF; // calculated checksum
  5117. 80061d6: 23ff movs r3, #255 ; 0xff
  5118. uint8_t byteCtr; // byte counter
  5119. // calculates 8-Bit checksum with given polynomial
  5120. for(byteCtr = 0; byteCtr < nbrOfBytes; byteCtr++)
  5121. 80061d8: 4604 mov r4, r0
  5122. 80061da: 1a22 subs r2, r4, r0
  5123. 80061dc: b2d2 uxtb r2, r2
  5124. 80061de: 4291 cmp r1, r2
  5125. 80061e0: d801 bhi.n 80061e6 <STH30_CreateCrc+0x12>
  5126. if(crc & 0x80) crc = (crc << 1) ^ POLYNOMIAL;
  5127. else crc = (crc << 1);
  5128. }
  5129. }
  5130. return crc;
  5131. }
  5132. 80061e2: 4618 mov r0, r3
  5133. 80061e4: bd10 pop {r4, pc}
  5134. crc ^= (data[byteCtr]);
  5135. 80061e6: f814 2b01 ldrb.w r2, [r4], #1
  5136. 80061ea: 4053 eors r3, r2
  5137. 80061ec: 2208 movs r2, #8
  5138. if(crc & 0x80) crc = (crc << 1) ^ POLYNOMIAL;
  5139. 80061ee: f013 0f80 tst.w r3, #128 ; 0x80
  5140. 80061f2: f102 32ff add.w r2, r2, #4294967295
  5141. 80061f6: ea4f 0343 mov.w r3, r3, lsl #1
  5142. 80061fa: bf18 it ne
  5143. 80061fc: f083 0331 eorne.w r3, r3, #49 ; 0x31
  5144. for(bit = 8; bit > 0; --bit)
  5145. 8006200: f012 02ff ands.w r2, r2, #255 ; 0xff
  5146. else crc = (crc << 1);
  5147. 8006204: b2db uxtb r3, r3
  5148. for(bit = 8; bit > 0; --bit)
  5149. 8006206: d1f2 bne.n 80061ee <STH30_CreateCrc+0x1a>
  5150. 8006208: e7e7 b.n 80061da <STH30_CreateCrc+0x6>
  5151. 0800620a <STH30_CheckCrc>:
  5152. etError STH30_CheckCrc(uint8_t *data, uint8_t nbrOfBytes, uint8_t checksum)
  5153. {
  5154. 800620a: b530 push {r4, r5, lr}
  5155. uint8_t bit; // bit mask
  5156. uint8_t crc = 0xFF; // calculated checksum
  5157. 800620c: 23ff movs r3, #255 ; 0xff
  5158. uint8_t byteCtr; // byte counter
  5159. // calculates 8-Bit checksum with given polynomial
  5160. for(byteCtr = 0; byteCtr < nbrOfBytes; byteCtr++)
  5161. 800620e: 4605 mov r5, r0
  5162. 8006210: 1a2c subs r4, r5, r0
  5163. 8006212: b2e4 uxtb r4, r4
  5164. 8006214: 42a1 cmp r1, r4
  5165. 8006216: d803 bhi.n 8006220 <STH30_CheckCrc+0x16>
  5166. else crc = (crc << 1);
  5167. }
  5168. }
  5169. if(crc != checksum) return CHECKSUM_ERROR;
  5170. else return NO_ERROR;
  5171. }
  5172. 8006218: 1a9b subs r3, r3, r2
  5173. 800621a: 4258 negs r0, r3
  5174. 800621c: 4158 adcs r0, r3
  5175. 800621e: bd30 pop {r4, r5, pc}
  5176. crc ^= (data[byteCtr]);
  5177. 8006220: f815 4b01 ldrb.w r4, [r5], #1
  5178. 8006224: 4063 eors r3, r4
  5179. 8006226: 2408 movs r4, #8
  5180. if(crc & 0x80) crc = (crc << 1) ^ POLYNOMIAL;
  5181. 8006228: f013 0f80 tst.w r3, #128 ; 0x80
  5182. 800622c: f104 34ff add.w r4, r4, #4294967295
  5183. 8006230: ea4f 0343 mov.w r3, r3, lsl #1
  5184. 8006234: bf18 it ne
  5185. 8006236: f083 0331 eorne.w r3, r3, #49 ; 0x31
  5186. for(bit = 8; bit > 0; --bit)
  5187. 800623a: f014 04ff ands.w r4, r4, #255 ; 0xff
  5188. else crc = (crc << 1);
  5189. 800623e: b2db uxtb r3, r3
  5190. for(bit = 8; bit > 0; --bit)
  5191. 8006240: d1f2 bne.n 8006228 <STH30_CheckCrc+0x1e>
  5192. 8006242: e7e5 b.n 8006210 <STH30_CheckCrc+0x6>
  5193. 08006244 <HAL_MspInit>:
  5194. {
  5195. /* USER CODE BEGIN MspInit 0 */
  5196. /* USER CODE END MspInit 0 */
  5197. __HAL_RCC_AFIO_CLK_ENABLE();
  5198. 8006244: 4b0e ldr r3, [pc, #56] ; (8006280 <HAL_MspInit+0x3c>)
  5199. {
  5200. 8006246: b082 sub sp, #8
  5201. __HAL_RCC_AFIO_CLK_ENABLE();
  5202. 8006248: 699a ldr r2, [r3, #24]
  5203. 800624a: f042 0201 orr.w r2, r2, #1
  5204. 800624e: 619a str r2, [r3, #24]
  5205. 8006250: 699a ldr r2, [r3, #24]
  5206. 8006252: f002 0201 and.w r2, r2, #1
  5207. 8006256: 9200 str r2, [sp, #0]
  5208. 8006258: 9a00 ldr r2, [sp, #0]
  5209. __HAL_RCC_PWR_CLK_ENABLE();
  5210. 800625a: 69da ldr r2, [r3, #28]
  5211. 800625c: f042 5280 orr.w r2, r2, #268435456 ; 0x10000000
  5212. 8006260: 61da str r2, [r3, #28]
  5213. 8006262: 69db ldr r3, [r3, #28]
  5214. /* System interrupt init*/
  5215. /**DISABLE: JTAG-DP Disabled and SW-DP Disabled
  5216. */
  5217. __HAL_AFIO_REMAP_SWJ_DISABLE();
  5218. 8006264: 4a07 ldr r2, [pc, #28] ; (8006284 <HAL_MspInit+0x40>)
  5219. __HAL_RCC_PWR_CLK_ENABLE();
  5220. 8006266: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  5221. 800626a: 9301 str r3, [sp, #4]
  5222. 800626c: 9b01 ldr r3, [sp, #4]
  5223. __HAL_AFIO_REMAP_SWJ_DISABLE();
  5224. 800626e: 6853 ldr r3, [r2, #4]
  5225. 8006270: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000
  5226. 8006274: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000
  5227. 8006278: 6053 str r3, [r2, #4]
  5228. /* USER CODE BEGIN MspInit 1 */
  5229. /* USER CODE END MspInit 1 */
  5230. }
  5231. 800627a: b002 add sp, #8
  5232. 800627c: 4770 bx lr
  5233. 800627e: bf00 nop
  5234. 8006280: 40021000 .word 0x40021000
  5235. 8006284: 40010000 .word 0x40010000
  5236. 08006288 <HAL_I2C_MspInit>:
  5237. * This function configures the hardware resources used in this example
  5238. * @param hi2c: I2C handle pointer
  5239. * @retval None
  5240. */
  5241. void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
  5242. {
  5243. 8006288: b510 push {r4, lr}
  5244. 800628a: 4604 mov r4, r0
  5245. 800628c: b086 sub sp, #24
  5246. GPIO_InitTypeDef GPIO_InitStruct = {0};
  5247. 800628e: 2210 movs r2, #16
  5248. 8006290: 2100 movs r1, #0
  5249. 8006292: a802 add r0, sp, #8
  5250. 8006294: f000 f991 bl 80065ba <memset>
  5251. if(hi2c->Instance==I2C2)
  5252. 8006298: 6822 ldr r2, [r4, #0]
  5253. 800629a: 4b11 ldr r3, [pc, #68] ; (80062e0 <HAL_I2C_MspInit+0x58>)
  5254. 800629c: 429a cmp r2, r3
  5255. 800629e: d11d bne.n 80062dc <HAL_I2C_MspInit+0x54>
  5256. {
  5257. /* USER CODE BEGIN I2C2_MspInit 0 */
  5258. /* USER CODE END I2C2_MspInit 0 */
  5259. __HAL_RCC_GPIOB_CLK_ENABLE();
  5260. 80062a0: 4c10 ldr r4, [pc, #64] ; (80062e4 <HAL_I2C_MspInit+0x5c>)
  5261. PB11 ------> I2C2_SDA
  5262. */
  5263. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  5264. GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
  5265. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5266. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5267. 80062a2: a902 add r1, sp, #8
  5268. __HAL_RCC_GPIOB_CLK_ENABLE();
  5269. 80062a4: 69a3 ldr r3, [r4, #24]
  5270. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5271. 80062a6: 4810 ldr r0, [pc, #64] ; (80062e8 <HAL_I2C_MspInit+0x60>)
  5272. __HAL_RCC_GPIOB_CLK_ENABLE();
  5273. 80062a8: f043 0308 orr.w r3, r3, #8
  5274. 80062ac: 61a3 str r3, [r4, #24]
  5275. 80062ae: 69a3 ldr r3, [r4, #24]
  5276. 80062b0: f003 0308 and.w r3, r3, #8
  5277. 80062b4: 9300 str r3, [sp, #0]
  5278. 80062b6: 9b00 ldr r3, [sp, #0]
  5279. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  5280. 80062b8: f44f 6340 mov.w r3, #3072 ; 0xc00
  5281. 80062bc: 9302 str r3, [sp, #8]
  5282. GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
  5283. 80062be: 2312 movs r3, #18
  5284. 80062c0: 9303 str r3, [sp, #12]
  5285. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5286. 80062c2: 2303 movs r3, #3
  5287. 80062c4: 9305 str r3, [sp, #20]
  5288. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5289. 80062c6: f7fe f99d bl 8004604 <HAL_GPIO_Init>
  5290. /* Peripheral clock enable */
  5291. __HAL_RCC_I2C2_CLK_ENABLE();
  5292. 80062ca: 69e3 ldr r3, [r4, #28]
  5293. 80062cc: f443 0380 orr.w r3, r3, #4194304 ; 0x400000
  5294. 80062d0: 61e3 str r3, [r4, #28]
  5295. 80062d2: 69e3 ldr r3, [r4, #28]
  5296. 80062d4: f403 0380 and.w r3, r3, #4194304 ; 0x400000
  5297. 80062d8: 9301 str r3, [sp, #4]
  5298. 80062da: 9b01 ldr r3, [sp, #4]
  5299. /* USER CODE BEGIN I2C2_MspInit 1 */
  5300. /* USER CODE END I2C2_MspInit 1 */
  5301. }
  5302. }
  5303. 80062dc: b006 add sp, #24
  5304. 80062de: bd10 pop {r4, pc}
  5305. 80062e0: 40005800 .word 0x40005800
  5306. 80062e4: 40021000 .word 0x40021000
  5307. 80062e8: 40010c00 .word 0x40010c00
  5308. 080062ec <HAL_SPI_MspInit>:
  5309. * This function configures the hardware resources used in this example
  5310. * @param hspi: SPI handle pointer
  5311. * @retval None
  5312. */
  5313. void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi)
  5314. {
  5315. 80062ec: b570 push {r4, r5, r6, lr}
  5316. GPIO_InitTypeDef GPIO_InitStruct = {0};
  5317. 80062ee: 2410 movs r4, #16
  5318. {
  5319. 80062f0: 4605 mov r5, r0
  5320. 80062f2: b088 sub sp, #32
  5321. GPIO_InitTypeDef GPIO_InitStruct = {0};
  5322. 80062f4: 4622 mov r2, r4
  5323. 80062f6: 2100 movs r1, #0
  5324. 80062f8: eb0d 0004 add.w r0, sp, r4
  5325. 80062fc: f000 f95d bl 80065ba <memset>
  5326. if(hspi->Instance==SPI1)
  5327. 8006300: 682a ldr r2, [r5, #0]
  5328. 8006302: 4b23 ldr r3, [pc, #140] ; (8006390 <HAL_SPI_MspInit+0xa4>)
  5329. 8006304: 429a cmp r2, r3
  5330. 8006306: d141 bne.n 800638c <HAL_SPI_MspInit+0xa0>
  5331. {
  5332. /* USER CODE BEGIN SPI1_MspInit 0 */
  5333. /* USER CODE END SPI1_MspInit 0 */
  5334. /* Peripheral clock enable */
  5335. __HAL_RCC_SPI1_CLK_ENABLE();
  5336. 8006308: f503 4360 add.w r3, r3, #57344 ; 0xe000
  5337. 800630c: 699a ldr r2, [r3, #24]
  5338. PB3 ------> SPI1_SCK
  5339. PB4 ------> SPI1_MISO
  5340. PB5 ------> SPI1_MOSI
  5341. */
  5342. GPIO_InitStruct.Pin = GPIO_PIN_15;
  5343. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5344. 800630e: 2602 movs r6, #2
  5345. __HAL_RCC_SPI1_CLK_ENABLE();
  5346. 8006310: f442 5280 orr.w r2, r2, #4096 ; 0x1000
  5347. 8006314: 619a str r2, [r3, #24]
  5348. 8006316: 699a ldr r2, [r3, #24]
  5349. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5350. 8006318: 2503 movs r5, #3
  5351. __HAL_RCC_SPI1_CLK_ENABLE();
  5352. 800631a: f402 5280 and.w r2, r2, #4096 ; 0x1000
  5353. 800631e: 9201 str r2, [sp, #4]
  5354. 8006320: 9a01 ldr r2, [sp, #4]
  5355. __HAL_RCC_GPIOA_CLK_ENABLE();
  5356. 8006322: 699a ldr r2, [r3, #24]
  5357. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5358. 8006324: eb0d 0104 add.w r1, sp, r4
  5359. __HAL_RCC_GPIOA_CLK_ENABLE();
  5360. 8006328: f042 0204 orr.w r2, r2, #4
  5361. 800632c: 619a str r2, [r3, #24]
  5362. 800632e: 699a ldr r2, [r3, #24]
  5363. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5364. 8006330: 4818 ldr r0, [pc, #96] ; (8006394 <HAL_SPI_MspInit+0xa8>)
  5365. __HAL_RCC_GPIOA_CLK_ENABLE();
  5366. 8006332: f002 0204 and.w r2, r2, #4
  5367. 8006336: 9202 str r2, [sp, #8]
  5368. 8006338: 9a02 ldr r2, [sp, #8]
  5369. __HAL_RCC_GPIOB_CLK_ENABLE();
  5370. 800633a: 699a ldr r2, [r3, #24]
  5371. 800633c: f042 0208 orr.w r2, r2, #8
  5372. 8006340: 619a str r2, [r3, #24]
  5373. 8006342: 699b ldr r3, [r3, #24]
  5374. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5375. 8006344: 9605 str r6, [sp, #20]
  5376. __HAL_RCC_GPIOB_CLK_ENABLE();
  5377. 8006346: f003 0308 and.w r3, r3, #8
  5378. 800634a: 9303 str r3, [sp, #12]
  5379. 800634c: 9b03 ldr r3, [sp, #12]
  5380. GPIO_InitStruct.Pin = GPIO_PIN_15;
  5381. 800634e: f44f 4300 mov.w r3, #32768 ; 0x8000
  5382. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5383. 8006352: 9507 str r5, [sp, #28]
  5384. GPIO_InitStruct.Pin = GPIO_PIN_15;
  5385. 8006354: 9304 str r3, [sp, #16]
  5386. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5387. 8006356: f7fe f955 bl 8004604 <HAL_GPIO_Init>
  5388. GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_5;
  5389. 800635a: 2328 movs r3, #40 ; 0x28
  5390. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5391. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5392. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5393. 800635c: eb0d 0104 add.w r1, sp, r4
  5394. 8006360: 480d ldr r0, [pc, #52] ; (8006398 <HAL_SPI_MspInit+0xac>)
  5395. GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_5;
  5396. 8006362: 9304 str r3, [sp, #16]
  5397. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5398. 8006364: 9605 str r6, [sp, #20]
  5399. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5400. 8006366: 9507 str r5, [sp, #28]
  5401. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5402. 8006368: f7fe f94c bl 8004604 <HAL_GPIO_Init>
  5403. GPIO_InitStruct.Pin = GPIO_PIN_4;
  5404. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  5405. 800636c: 2300 movs r3, #0
  5406. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5407. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5408. 800636e: eb0d 0104 add.w r1, sp, r4
  5409. 8006372: 4809 ldr r0, [pc, #36] ; (8006398 <HAL_SPI_MspInit+0xac>)
  5410. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  5411. 8006374: 9305 str r3, [sp, #20]
  5412. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5413. 8006376: 9306 str r3, [sp, #24]
  5414. GPIO_InitStruct.Pin = GPIO_PIN_4;
  5415. 8006378: 9404 str r4, [sp, #16]
  5416. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  5417. 800637a: f7fe f943 bl 8004604 <HAL_GPIO_Init>
  5418. __HAL_AFIO_REMAP_SPI1_ENABLE();
  5419. 800637e: 4a07 ldr r2, [pc, #28] ; (800639c <HAL_SPI_MspInit+0xb0>)
  5420. 8006380: 6853 ldr r3, [r2, #4]
  5421. 8006382: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000
  5422. 8006386: f043 0301 orr.w r3, r3, #1
  5423. 800638a: 6053 str r3, [r2, #4]
  5424. /* USER CODE BEGIN SPI1_MspInit 1 */
  5425. /* USER CODE END SPI1_MspInit 1 */
  5426. }
  5427. }
  5428. 800638c: b008 add sp, #32
  5429. 800638e: bd70 pop {r4, r5, r6, pc}
  5430. 8006390: 40013000 .word 0x40013000
  5431. 8006394: 40010800 .word 0x40010800
  5432. 8006398: 40010c00 .word 0x40010c00
  5433. 800639c: 40010000 .word 0x40010000
  5434. 080063a0 <HAL_TIM_Base_MspInit>:
  5435. * @retval None
  5436. */
  5437. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  5438. {
  5439. if(htim_base->Instance==TIM6)
  5440. 80063a0: 6802 ldr r2, [r0, #0]
  5441. 80063a2: 4b08 ldr r3, [pc, #32] ; (80063c4 <HAL_TIM_Base_MspInit+0x24>)
  5442. {
  5443. 80063a4: b082 sub sp, #8
  5444. if(htim_base->Instance==TIM6)
  5445. 80063a6: 429a cmp r2, r3
  5446. 80063a8: d10a bne.n 80063c0 <HAL_TIM_Base_MspInit+0x20>
  5447. {
  5448. /* USER CODE BEGIN TIM6_MspInit 0 */
  5449. /* USER CODE END TIM6_MspInit 0 */
  5450. /* Peripheral clock enable */
  5451. __HAL_RCC_TIM6_CLK_ENABLE();
  5452. 80063aa: f503 3300 add.w r3, r3, #131072 ; 0x20000
  5453. 80063ae: 69da ldr r2, [r3, #28]
  5454. 80063b0: f042 0210 orr.w r2, r2, #16
  5455. 80063b4: 61da str r2, [r3, #28]
  5456. 80063b6: 69db ldr r3, [r3, #28]
  5457. 80063b8: f003 0310 and.w r3, r3, #16
  5458. 80063bc: 9301 str r3, [sp, #4]
  5459. 80063be: 9b01 ldr r3, [sp, #4]
  5460. /* USER CODE BEGIN TIM6_MspInit 1 */
  5461. /* USER CODE END TIM6_MspInit 1 */
  5462. }
  5463. }
  5464. 80063c0: b002 add sp, #8
  5465. 80063c2: 4770 bx lr
  5466. 80063c4: 40001000 .word 0x40001000
  5467. 080063c8 <HAL_UART_MspInit>:
  5468. * @retval None
  5469. */
  5470. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  5471. {
  5472. GPIO_InitTypeDef GPIO_InitStruct = {0};
  5473. 80063c8: 2210 movs r2, #16
  5474. {
  5475. 80063ca: b510 push {r4, lr}
  5476. 80063cc: 4604 mov r4, r0
  5477. 80063ce: b088 sub sp, #32
  5478. GPIO_InitTypeDef GPIO_InitStruct = {0};
  5479. 80063d0: eb0d 0002 add.w r0, sp, r2
  5480. 80063d4: 2100 movs r1, #0
  5481. 80063d6: f000 f8f0 bl 80065ba <memset>
  5482. if(huart->Instance==USART1)
  5483. 80063da: 6823 ldr r3, [r4, #0]
  5484. 80063dc: 4a27 ldr r2, [pc, #156] ; (800647c <HAL_UART_MspInit+0xb4>)
  5485. 80063de: 4293 cmp r3, r2
  5486. 80063e0: d129 bne.n 8006436 <HAL_UART_MspInit+0x6e>
  5487. {
  5488. /* USER CODE BEGIN USART1_MspInit 0 */
  5489. /* USER CODE END USART1_MspInit 0 */
  5490. /* Peripheral clock enable */
  5491. __HAL_RCC_USART1_CLK_ENABLE();
  5492. 80063e2: 4b27 ldr r3, [pc, #156] ; (8006480 <HAL_UART_MspInit+0xb8>)
  5493. PA10 ------> USART1_RX
  5494. */
  5495. GPIO_InitStruct.Pin = GPIO_PIN_9;
  5496. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5497. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5498. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5499. 80063e4: a904 add r1, sp, #16
  5500. __HAL_RCC_USART1_CLK_ENABLE();
  5501. 80063e6: 699a ldr r2, [r3, #24]
  5502. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5503. 80063e8: 4826 ldr r0, [pc, #152] ; (8006484 <HAL_UART_MspInit+0xbc>)
  5504. __HAL_RCC_USART1_CLK_ENABLE();
  5505. 80063ea: f442 4280 orr.w r2, r2, #16384 ; 0x4000
  5506. 80063ee: 619a str r2, [r3, #24]
  5507. 80063f0: 699a ldr r2, [r3, #24]
  5508. 80063f2: f402 4280 and.w r2, r2, #16384 ; 0x4000
  5509. 80063f6: 9200 str r2, [sp, #0]
  5510. 80063f8: 9a00 ldr r2, [sp, #0]
  5511. __HAL_RCC_GPIOA_CLK_ENABLE();
  5512. 80063fa: 699a ldr r2, [r3, #24]
  5513. 80063fc: f042 0204 orr.w r2, r2, #4
  5514. 8006400: 619a str r2, [r3, #24]
  5515. 8006402: 699b ldr r3, [r3, #24]
  5516. 8006404: f003 0304 and.w r3, r3, #4
  5517. 8006408: 9301 str r3, [sp, #4]
  5518. 800640a: 9b01 ldr r3, [sp, #4]
  5519. GPIO_InitStruct.Pin = GPIO_PIN_9;
  5520. 800640c: f44f 7300 mov.w r3, #512 ; 0x200
  5521. 8006410: 9304 str r3, [sp, #16]
  5522. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5523. 8006412: 2302 movs r3, #2
  5524. 8006414: 9305 str r3, [sp, #20]
  5525. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5526. 8006416: 2303 movs r3, #3
  5527. 8006418: 9307 str r3, [sp, #28]
  5528. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5529. 800641a: f7fe f8f3 bl 8004604 <HAL_GPIO_Init>
  5530. GPIO_InitStruct.Pin = GPIO_PIN_10;
  5531. 800641e: f44f 6380 mov.w r3, #1024 ; 0x400
  5532. GPIO_InitStruct.Pin = GPIO_PIN_2;
  5533. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5534. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5535. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5536. GPIO_InitStruct.Pin = GPIO_PIN_3;
  5537. 8006422: 9304 str r3, [sp, #16]
  5538. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  5539. 8006424: 2300 movs r3, #0
  5540. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5541. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5542. 8006426: a904 add r1, sp, #16
  5543. 8006428: 4816 ldr r0, [pc, #88] ; (8006484 <HAL_UART_MspInit+0xbc>)
  5544. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  5545. 800642a: 9305 str r3, [sp, #20]
  5546. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5547. 800642c: 9306 str r3, [sp, #24]
  5548. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5549. 800642e: f7fe f8e9 bl 8004604 <HAL_GPIO_Init>
  5550. /* USER CODE BEGIN USART2_MspInit 1 */
  5551. /* USER CODE END USART2_MspInit 1 */
  5552. }
  5553. }
  5554. 8006432: b008 add sp, #32
  5555. 8006434: bd10 pop {r4, pc}
  5556. else if(huart->Instance==USART2)
  5557. 8006436: 4a14 ldr r2, [pc, #80] ; (8006488 <HAL_UART_MspInit+0xc0>)
  5558. 8006438: 4293 cmp r3, r2
  5559. 800643a: d1fa bne.n 8006432 <HAL_UART_MspInit+0x6a>
  5560. __HAL_RCC_USART2_CLK_ENABLE();
  5561. 800643c: 4b10 ldr r3, [pc, #64] ; (8006480 <HAL_UART_MspInit+0xb8>)
  5562. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5563. 800643e: a904 add r1, sp, #16
  5564. __HAL_RCC_USART2_CLK_ENABLE();
  5565. 8006440: 69da ldr r2, [r3, #28]
  5566. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5567. 8006442: 4810 ldr r0, [pc, #64] ; (8006484 <HAL_UART_MspInit+0xbc>)
  5568. __HAL_RCC_USART2_CLK_ENABLE();
  5569. 8006444: f442 3200 orr.w r2, r2, #131072 ; 0x20000
  5570. 8006448: 61da str r2, [r3, #28]
  5571. 800644a: 69da ldr r2, [r3, #28]
  5572. 800644c: f402 3200 and.w r2, r2, #131072 ; 0x20000
  5573. 8006450: 9202 str r2, [sp, #8]
  5574. 8006452: 9a02 ldr r2, [sp, #8]
  5575. __HAL_RCC_GPIOA_CLK_ENABLE();
  5576. 8006454: 699a ldr r2, [r3, #24]
  5577. 8006456: f042 0204 orr.w r2, r2, #4
  5578. 800645a: 619a str r2, [r3, #24]
  5579. 800645c: 699b ldr r3, [r3, #24]
  5580. 800645e: f003 0304 and.w r3, r3, #4
  5581. 8006462: 9303 str r3, [sp, #12]
  5582. 8006464: 9b03 ldr r3, [sp, #12]
  5583. GPIO_InitStruct.Pin = GPIO_PIN_2;
  5584. 8006466: 2304 movs r3, #4
  5585. 8006468: 9304 str r3, [sp, #16]
  5586. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  5587. 800646a: 2302 movs r3, #2
  5588. 800646c: 9305 str r3, [sp, #20]
  5589. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  5590. 800646e: 2303 movs r3, #3
  5591. 8006470: 9307 str r3, [sp, #28]
  5592. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  5593. 8006472: f7fe f8c7 bl 8004604 <HAL_GPIO_Init>
  5594. GPIO_InitStruct.Pin = GPIO_PIN_3;
  5595. 8006476: 2308 movs r3, #8
  5596. 8006478: e7d3 b.n 8006422 <HAL_UART_MspInit+0x5a>
  5597. 800647a: bf00 nop
  5598. 800647c: 40013800 .word 0x40013800
  5599. 8006480: 40021000 .word 0x40021000
  5600. 8006484: 40010800 .word 0x40010800
  5601. 8006488: 40004400 .word 0x40004400
  5602. 0800648c <NMI_Handler>:
  5603. 800648c: 4770 bx lr
  5604. 0800648e <HardFault_Handler>:
  5605. /**
  5606. * @brief This function handles Hard fault interrupt.
  5607. */
  5608. void HardFault_Handler(void)
  5609. {
  5610. 800648e: e7fe b.n 800648e <HardFault_Handler>
  5611. 08006490 <MemManage_Handler>:
  5612. /**
  5613. * @brief This function handles Memory management fault.
  5614. */
  5615. void MemManage_Handler(void)
  5616. {
  5617. 8006490: e7fe b.n 8006490 <MemManage_Handler>
  5618. 08006492 <BusFault_Handler>:
  5619. /**
  5620. * @brief This function handles Prefetch fault, memory access fault.
  5621. */
  5622. void BusFault_Handler(void)
  5623. {
  5624. 8006492: e7fe b.n 8006492 <BusFault_Handler>
  5625. 08006494 <UsageFault_Handler>:
  5626. /**
  5627. * @brief This function handles Undefined instruction or illegal state.
  5628. */
  5629. void UsageFault_Handler(void)
  5630. {
  5631. 8006494: e7fe b.n 8006494 <UsageFault_Handler>
  5632. 08006496 <SVC_Handler>:
  5633. 8006496: 4770 bx lr
  5634. 08006498 <DebugMon_Handler>:
  5635. 8006498: 4770 bx lr
  5636. 0800649a <PendSV_Handler>:
  5637. /**
  5638. * @brief This function handles Pendable request for system service.
  5639. */
  5640. void PendSV_Handler(void)
  5641. {
  5642. 800649a: 4770 bx lr
  5643. 0800649c <SysTick_Handler>:
  5644. void SysTick_Handler(void)
  5645. {
  5646. /* USER CODE BEGIN SysTick_IRQn 0 */
  5647. /* USER CODE END SysTick_IRQn 0 */
  5648. HAL_IncTick();
  5649. 800649c: f7fd bf04 b.w 80042a8 <HAL_IncTick>
  5650. 080064a0 <USART1_IRQHandler>:
  5651. void USART1_IRQHandler(void)
  5652. {
  5653. /* USER CODE BEGIN USART1_IRQn 0 */
  5654. /* USER CODE END USART1_IRQn 0 */
  5655. HAL_UART_IRQHandler(&huart1);
  5656. 80064a0: 4801 ldr r0, [pc, #4] ; (80064a8 <USART1_IRQHandler+0x8>)
  5657. 80064a2: f7fe bffb b.w 800549c <HAL_UART_IRQHandler>
  5658. 80064a6: bf00 nop
  5659. 80064a8: 20000338 .word 0x20000338
  5660. 080064ac <USART2_IRQHandler>:
  5661. void USART2_IRQHandler(void)
  5662. {
  5663. /* USER CODE BEGIN USART2_IRQn 0 */
  5664. /* USER CODE END USART2_IRQn 0 */
  5665. HAL_UART_IRQHandler(&huart2);
  5666. 80064ac: 4801 ldr r0, [pc, #4] ; (80064b4 <USART2_IRQHandler+0x8>)
  5667. 80064ae: f7fe bff5 b.w 800549c <HAL_UART_IRQHandler>
  5668. 80064b2: bf00 nop
  5669. 80064b4: 20000410 .word 0x20000410
  5670. 080064b8 <TIM6_IRQHandler>:
  5671. void TIM6_IRQHandler(void)
  5672. {
  5673. /* USER CODE BEGIN TIM6_IRQn 0 */
  5674. /* USER CODE END TIM6_IRQn 0 */
  5675. HAL_TIM_IRQHandler(&htim6);
  5676. 80064b8: 4801 ldr r0, [pc, #4] ; (80064c0 <TIM6_IRQHandler+0x8>)
  5677. 80064ba: f7fe bcfd b.w 8004eb8 <HAL_TIM_IRQHandler>
  5678. 80064be: bf00 nop
  5679. 80064c0: 20000378 .word 0x20000378
  5680. 080064c4 <SystemInit>:
  5681. */
  5682. void SystemInit (void)
  5683. {
  5684. /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
  5685. /* Set HSION bit */
  5686. RCC->CR |= 0x00000001U;
  5687. 80064c4: 4b0e ldr r3, [pc, #56] ; (8006500 <SystemInit+0x3c>)
  5688. 80064c6: 681a ldr r2, [r3, #0]
  5689. 80064c8: f042 0201 orr.w r2, r2, #1
  5690. 80064cc: 601a str r2, [r3, #0]
  5691. /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
  5692. #if !defined(STM32F105xC) && !defined(STM32F107xC)
  5693. RCC->CFGR &= 0xF8FF0000U;
  5694. 80064ce: 6859 ldr r1, [r3, #4]
  5695. 80064d0: 4a0c ldr r2, [pc, #48] ; (8006504 <SystemInit+0x40>)
  5696. 80064d2: 400a ands r2, r1
  5697. 80064d4: 605a str r2, [r3, #4]
  5698. #else
  5699. RCC->CFGR &= 0xF0FF0000U;
  5700. #endif /* STM32F105xC */
  5701. /* Reset HSEON, CSSON and PLLON bits */
  5702. RCC->CR &= 0xFEF6FFFFU;
  5703. 80064d6: 681a ldr r2, [r3, #0]
  5704. 80064d8: f022 7284 bic.w r2, r2, #17301504 ; 0x1080000
  5705. 80064dc: f422 3280 bic.w r2, r2, #65536 ; 0x10000
  5706. 80064e0: 601a str r2, [r3, #0]
  5707. /* Reset HSEBYP bit */
  5708. RCC->CR &= 0xFFFBFFFFU;
  5709. 80064e2: 681a ldr r2, [r3, #0]
  5710. 80064e4: f422 2280 bic.w r2, r2, #262144 ; 0x40000
  5711. 80064e8: 601a str r2, [r3, #0]
  5712. /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */
  5713. RCC->CFGR &= 0xFF80FFFFU;
  5714. 80064ea: 685a ldr r2, [r3, #4]
  5715. 80064ec: f422 02fe bic.w r2, r2, #8323072 ; 0x7f0000
  5716. 80064f0: 605a str r2, [r3, #4]
  5717. /* Reset CFGR2 register */
  5718. RCC->CFGR2 = 0x00000000U;
  5719. #else
  5720. /* Disable all interrupts and clear pending bits */
  5721. RCC->CIR = 0x009F0000U;
  5722. 80064f2: f44f 021f mov.w r2, #10420224 ; 0x9f0000
  5723. 80064f6: 609a str r2, [r3, #8]
  5724. #endif
  5725. #ifdef VECT_TAB_SRAM
  5726. SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  5727. #else
  5728. SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
  5729. 80064f8: 4a03 ldr r2, [pc, #12] ; (8006508 <SystemInit+0x44>)
  5730. 80064fa: 4b04 ldr r3, [pc, #16] ; (800650c <SystemInit+0x48>)
  5731. 80064fc: 609a str r2, [r3, #8]
  5732. 80064fe: 4770 bx lr
  5733. 8006500: 40021000 .word 0x40021000
  5734. 8006504: f8ff0000 .word 0xf8ff0000
  5735. 8006508: 08004000 .word 0x08004000
  5736. 800650c: e000ed00 .word 0xe000ed00
  5737. 08006510 <Reset_Handler>:
  5738. .weak Reset_Handler
  5739. .type Reset_Handler, %function
  5740. Reset_Handler:
  5741. /* Copy the data segment initializers from flash to SRAM */
  5742. movs r1, #0
  5743. 8006510: 2100 movs r1, #0
  5744. b LoopCopyDataInit
  5745. 8006512: e003 b.n 800651c <LoopCopyDataInit>
  5746. 08006514 <CopyDataInit>:
  5747. CopyDataInit:
  5748. ldr r3, =_sidata
  5749. 8006514: 4b0b ldr r3, [pc, #44] ; (8006544 <LoopFillZerobss+0x14>)
  5750. ldr r3, [r3, r1]
  5751. 8006516: 585b ldr r3, [r3, r1]
  5752. str r3, [r0, r1]
  5753. 8006518: 5043 str r3, [r0, r1]
  5754. adds r1, r1, #4
  5755. 800651a: 3104 adds r1, #4
  5756. 0800651c <LoopCopyDataInit>:
  5757. LoopCopyDataInit:
  5758. ldr r0, =_sdata
  5759. 800651c: 480a ldr r0, [pc, #40] ; (8006548 <LoopFillZerobss+0x18>)
  5760. ldr r3, =_edata
  5761. 800651e: 4b0b ldr r3, [pc, #44] ; (800654c <LoopFillZerobss+0x1c>)
  5762. adds r2, r0, r1
  5763. 8006520: 1842 adds r2, r0, r1
  5764. cmp r2, r3
  5765. 8006522: 429a cmp r2, r3
  5766. bcc CopyDataInit
  5767. 8006524: d3f6 bcc.n 8006514 <CopyDataInit>
  5768. ldr r2, =_sbss
  5769. 8006526: 4a0a ldr r2, [pc, #40] ; (8006550 <LoopFillZerobss+0x20>)
  5770. b LoopFillZerobss
  5771. 8006528: e002 b.n 8006530 <LoopFillZerobss>
  5772. 0800652a <FillZerobss>:
  5773. /* Zero fill the bss segment. */
  5774. FillZerobss:
  5775. movs r3, #0
  5776. 800652a: 2300 movs r3, #0
  5777. str r3, [r2], #4
  5778. 800652c: f842 3b04 str.w r3, [r2], #4
  5779. 08006530 <LoopFillZerobss>:
  5780. LoopFillZerobss:
  5781. ldr r3, = _ebss
  5782. 8006530: 4b08 ldr r3, [pc, #32] ; (8006554 <LoopFillZerobss+0x24>)
  5783. cmp r2, r3
  5784. 8006532: 429a cmp r2, r3
  5785. bcc FillZerobss
  5786. 8006534: d3f9 bcc.n 800652a <FillZerobss>
  5787. /* Call the clock system intitialization function.*/
  5788. bl SystemInit
  5789. 8006536: f7ff ffc5 bl 80064c4 <SystemInit>
  5790. /* Call static constructors */
  5791. bl __libc_init_array
  5792. 800653a: f000 f80f bl 800655c <__libc_init_array>
  5793. /* Call the application's entry point.*/
  5794. bl main
  5795. 800653e: f7ff fc67 bl 8005e10 <main>
  5796. bx lr
  5797. 8006542: 4770 bx lr
  5798. ldr r3, =_sidata
  5799. 8006544: 08007848 .word 0x08007848
  5800. ldr r0, =_sdata
  5801. 8006548: 20000000 .word 0x20000000
  5802. ldr r3, =_edata
  5803. 800654c: 20000070 .word 0x20000070
  5804. ldr r2, =_sbss
  5805. 8006550: 20000070 .word 0x20000070
  5806. ldr r3, = _ebss
  5807. 8006554: 20000454 .word 0x20000454
  5808. 08006558 <ADC1_2_IRQHandler>:
  5809. * @retval : None
  5810. */
  5811. .section .text.Default_Handler,"ax",%progbits
  5812. Default_Handler:
  5813. Infinite_Loop:
  5814. b Infinite_Loop
  5815. 8006558: e7fe b.n 8006558 <ADC1_2_IRQHandler>
  5816. ...
  5817. 0800655c <__libc_init_array>:
  5818. 800655c: b570 push {r4, r5, r6, lr}
  5819. 800655e: 2500 movs r5, #0
  5820. 8006560: 4e0c ldr r6, [pc, #48] ; (8006594 <__libc_init_array+0x38>)
  5821. 8006562: 4c0d ldr r4, [pc, #52] ; (8006598 <__libc_init_array+0x3c>)
  5822. 8006564: 1ba4 subs r4, r4, r6
  5823. 8006566: 10a4 asrs r4, r4, #2
  5824. 8006568: 42a5 cmp r5, r4
  5825. 800656a: d109 bne.n 8006580 <__libc_init_array+0x24>
  5826. 800656c: f001 f88a bl 8007684 <_init>
  5827. 8006570: 2500 movs r5, #0
  5828. 8006572: 4e0a ldr r6, [pc, #40] ; (800659c <__libc_init_array+0x40>)
  5829. 8006574: 4c0a ldr r4, [pc, #40] ; (80065a0 <__libc_init_array+0x44>)
  5830. 8006576: 1ba4 subs r4, r4, r6
  5831. 8006578: 10a4 asrs r4, r4, #2
  5832. 800657a: 42a5 cmp r5, r4
  5833. 800657c: d105 bne.n 800658a <__libc_init_array+0x2e>
  5834. 800657e: bd70 pop {r4, r5, r6, pc}
  5835. 8006580: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  5836. 8006584: 4798 blx r3
  5837. 8006586: 3501 adds r5, #1
  5838. 8006588: e7ee b.n 8006568 <__libc_init_array+0xc>
  5839. 800658a: f856 3025 ldr.w r3, [r6, r5, lsl #2]
  5840. 800658e: 4798 blx r3
  5841. 8006590: 3501 adds r5, #1
  5842. 8006592: e7f2 b.n 800657a <__libc_init_array+0x1e>
  5843. 8006594: 08007840 .word 0x08007840
  5844. 8006598: 08007840 .word 0x08007840
  5845. 800659c: 08007840 .word 0x08007840
  5846. 80065a0: 08007844 .word 0x08007844
  5847. 080065a4 <memcpy>:
  5848. 80065a4: b510 push {r4, lr}
  5849. 80065a6: 1e43 subs r3, r0, #1
  5850. 80065a8: 440a add r2, r1
  5851. 80065aa: 4291 cmp r1, r2
  5852. 80065ac: d100 bne.n 80065b0 <memcpy+0xc>
  5853. 80065ae: bd10 pop {r4, pc}
  5854. 80065b0: f811 4b01 ldrb.w r4, [r1], #1
  5855. 80065b4: f803 4f01 strb.w r4, [r3, #1]!
  5856. 80065b8: e7f7 b.n 80065aa <memcpy+0x6>
  5857. 080065ba <memset>:
  5858. 80065ba: 4603 mov r3, r0
  5859. 80065bc: 4402 add r2, r0
  5860. 80065be: 4293 cmp r3, r2
  5861. 80065c0: d100 bne.n 80065c4 <memset+0xa>
  5862. 80065c2: 4770 bx lr
  5863. 80065c4: f803 1b01 strb.w r1, [r3], #1
  5864. 80065c8: e7f9 b.n 80065be <memset+0x4>
  5865. ...
  5866. 080065cc <iprintf>:
  5867. 80065cc: b40f push {r0, r1, r2, r3}
  5868. 80065ce: 4b0a ldr r3, [pc, #40] ; (80065f8 <iprintf+0x2c>)
  5869. 80065d0: b513 push {r0, r1, r4, lr}
  5870. 80065d2: 681c ldr r4, [r3, #0]
  5871. 80065d4: b124 cbz r4, 80065e0 <iprintf+0x14>
  5872. 80065d6: 69a3 ldr r3, [r4, #24]
  5873. 80065d8: b913 cbnz r3, 80065e0 <iprintf+0x14>
  5874. 80065da: 4620 mov r0, r4
  5875. 80065dc: f000 fada bl 8006b94 <__sinit>
  5876. 80065e0: ab05 add r3, sp, #20
  5877. 80065e2: 9a04 ldr r2, [sp, #16]
  5878. 80065e4: 68a1 ldr r1, [r4, #8]
  5879. 80065e6: 4620 mov r0, r4
  5880. 80065e8: 9301 str r3, [sp, #4]
  5881. 80065ea: f000 fc9b bl 8006f24 <_vfiprintf_r>
  5882. 80065ee: b002 add sp, #8
  5883. 80065f0: e8bd 4010 ldmia.w sp!, {r4, lr}
  5884. 80065f4: b004 add sp, #16
  5885. 80065f6: 4770 bx lr
  5886. 80065f8: 2000000c .word 0x2000000c
  5887. 080065fc <_puts_r>:
  5888. 80065fc: b570 push {r4, r5, r6, lr}
  5889. 80065fe: 460e mov r6, r1
  5890. 8006600: 4605 mov r5, r0
  5891. 8006602: b118 cbz r0, 800660c <_puts_r+0x10>
  5892. 8006604: 6983 ldr r3, [r0, #24]
  5893. 8006606: b90b cbnz r3, 800660c <_puts_r+0x10>
  5894. 8006608: f000 fac4 bl 8006b94 <__sinit>
  5895. 800660c: 69ab ldr r3, [r5, #24]
  5896. 800660e: 68ac ldr r4, [r5, #8]
  5897. 8006610: b913 cbnz r3, 8006618 <_puts_r+0x1c>
  5898. 8006612: 4628 mov r0, r5
  5899. 8006614: f000 fabe bl 8006b94 <__sinit>
  5900. 8006618: 4b23 ldr r3, [pc, #140] ; (80066a8 <_puts_r+0xac>)
  5901. 800661a: 429c cmp r4, r3
  5902. 800661c: d117 bne.n 800664e <_puts_r+0x52>
  5903. 800661e: 686c ldr r4, [r5, #4]
  5904. 8006620: 89a3 ldrh r3, [r4, #12]
  5905. 8006622: 071b lsls r3, r3, #28
  5906. 8006624: d51d bpl.n 8006662 <_puts_r+0x66>
  5907. 8006626: 6923 ldr r3, [r4, #16]
  5908. 8006628: b1db cbz r3, 8006662 <_puts_r+0x66>
  5909. 800662a: 3e01 subs r6, #1
  5910. 800662c: 68a3 ldr r3, [r4, #8]
  5911. 800662e: f816 1f01 ldrb.w r1, [r6, #1]!
  5912. 8006632: 3b01 subs r3, #1
  5913. 8006634: 60a3 str r3, [r4, #8]
  5914. 8006636: b9e9 cbnz r1, 8006674 <_puts_r+0x78>
  5915. 8006638: 2b00 cmp r3, #0
  5916. 800663a: da2e bge.n 800669a <_puts_r+0x9e>
  5917. 800663c: 4622 mov r2, r4
  5918. 800663e: 210a movs r1, #10
  5919. 8006640: 4628 mov r0, r5
  5920. 8006642: f000 f8f5 bl 8006830 <__swbuf_r>
  5921. 8006646: 3001 adds r0, #1
  5922. 8006648: d011 beq.n 800666e <_puts_r+0x72>
  5923. 800664a: 200a movs r0, #10
  5924. 800664c: bd70 pop {r4, r5, r6, pc}
  5925. 800664e: 4b17 ldr r3, [pc, #92] ; (80066ac <_puts_r+0xb0>)
  5926. 8006650: 429c cmp r4, r3
  5927. 8006652: d101 bne.n 8006658 <_puts_r+0x5c>
  5928. 8006654: 68ac ldr r4, [r5, #8]
  5929. 8006656: e7e3 b.n 8006620 <_puts_r+0x24>
  5930. 8006658: 4b15 ldr r3, [pc, #84] ; (80066b0 <_puts_r+0xb4>)
  5931. 800665a: 429c cmp r4, r3
  5932. 800665c: bf08 it eq
  5933. 800665e: 68ec ldreq r4, [r5, #12]
  5934. 8006660: e7de b.n 8006620 <_puts_r+0x24>
  5935. 8006662: 4621 mov r1, r4
  5936. 8006664: 4628 mov r0, r5
  5937. 8006666: f000 f935 bl 80068d4 <__swsetup_r>
  5938. 800666a: 2800 cmp r0, #0
  5939. 800666c: d0dd beq.n 800662a <_puts_r+0x2e>
  5940. 800666e: f04f 30ff mov.w r0, #4294967295
  5941. 8006672: bd70 pop {r4, r5, r6, pc}
  5942. 8006674: 2b00 cmp r3, #0
  5943. 8006676: da04 bge.n 8006682 <_puts_r+0x86>
  5944. 8006678: 69a2 ldr r2, [r4, #24]
  5945. 800667a: 4293 cmp r3, r2
  5946. 800667c: db06 blt.n 800668c <_puts_r+0x90>
  5947. 800667e: 290a cmp r1, #10
  5948. 8006680: d004 beq.n 800668c <_puts_r+0x90>
  5949. 8006682: 6823 ldr r3, [r4, #0]
  5950. 8006684: 1c5a adds r2, r3, #1
  5951. 8006686: 6022 str r2, [r4, #0]
  5952. 8006688: 7019 strb r1, [r3, #0]
  5953. 800668a: e7cf b.n 800662c <_puts_r+0x30>
  5954. 800668c: 4622 mov r2, r4
  5955. 800668e: 4628 mov r0, r5
  5956. 8006690: f000 f8ce bl 8006830 <__swbuf_r>
  5957. 8006694: 3001 adds r0, #1
  5958. 8006696: d1c9 bne.n 800662c <_puts_r+0x30>
  5959. 8006698: e7e9 b.n 800666e <_puts_r+0x72>
  5960. 800669a: 200a movs r0, #10
  5961. 800669c: 6823 ldr r3, [r4, #0]
  5962. 800669e: 1c5a adds r2, r3, #1
  5963. 80066a0: 6022 str r2, [r4, #0]
  5964. 80066a2: 7018 strb r0, [r3, #0]
  5965. 80066a4: bd70 pop {r4, r5, r6, pc}
  5966. 80066a6: bf00 nop
  5967. 80066a8: 080077cc .word 0x080077cc
  5968. 80066ac: 080077ec .word 0x080077ec
  5969. 80066b0: 080077ac .word 0x080077ac
  5970. 080066b4 <puts>:
  5971. 80066b4: 4b02 ldr r3, [pc, #8] ; (80066c0 <puts+0xc>)
  5972. 80066b6: 4601 mov r1, r0
  5973. 80066b8: 6818 ldr r0, [r3, #0]
  5974. 80066ba: f7ff bf9f b.w 80065fc <_puts_r>
  5975. 80066be: bf00 nop
  5976. 80066c0: 2000000c .word 0x2000000c
  5977. 080066c4 <setbuf>:
  5978. 80066c4: 2900 cmp r1, #0
  5979. 80066c6: f44f 6380 mov.w r3, #1024 ; 0x400
  5980. 80066ca: bf0c ite eq
  5981. 80066cc: 2202 moveq r2, #2
  5982. 80066ce: 2200 movne r2, #0
  5983. 80066d0: f000 b800 b.w 80066d4 <setvbuf>
  5984. 080066d4 <setvbuf>:
  5985. 80066d4: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  5986. 80066d8: 461d mov r5, r3
  5987. 80066da: 4b51 ldr r3, [pc, #324] ; (8006820 <setvbuf+0x14c>)
  5988. 80066dc: 4604 mov r4, r0
  5989. 80066de: 681e ldr r6, [r3, #0]
  5990. 80066e0: 460f mov r7, r1
  5991. 80066e2: 4690 mov r8, r2
  5992. 80066e4: b126 cbz r6, 80066f0 <setvbuf+0x1c>
  5993. 80066e6: 69b3 ldr r3, [r6, #24]
  5994. 80066e8: b913 cbnz r3, 80066f0 <setvbuf+0x1c>
  5995. 80066ea: 4630 mov r0, r6
  5996. 80066ec: f000 fa52 bl 8006b94 <__sinit>
  5997. 80066f0: 4b4c ldr r3, [pc, #304] ; (8006824 <setvbuf+0x150>)
  5998. 80066f2: 429c cmp r4, r3
  5999. 80066f4: d152 bne.n 800679c <setvbuf+0xc8>
  6000. 80066f6: 6874 ldr r4, [r6, #4]
  6001. 80066f8: f1b8 0f02 cmp.w r8, #2
  6002. 80066fc: d006 beq.n 800670c <setvbuf+0x38>
  6003. 80066fe: f1b8 0f01 cmp.w r8, #1
  6004. 8006702: f200 8089 bhi.w 8006818 <setvbuf+0x144>
  6005. 8006706: 2d00 cmp r5, #0
  6006. 8006708: f2c0 8086 blt.w 8006818 <setvbuf+0x144>
  6007. 800670c: 4621 mov r1, r4
  6008. 800670e: 4630 mov r0, r6
  6009. 8006710: f000 f9d6 bl 8006ac0 <_fflush_r>
  6010. 8006714: 6b61 ldr r1, [r4, #52] ; 0x34
  6011. 8006716: b141 cbz r1, 800672a <setvbuf+0x56>
  6012. 8006718: f104 0344 add.w r3, r4, #68 ; 0x44
  6013. 800671c: 4299 cmp r1, r3
  6014. 800671e: d002 beq.n 8006726 <setvbuf+0x52>
  6015. 8006720: 4630 mov r0, r6
  6016. 8006722: f000 fb2d bl 8006d80 <_free_r>
  6017. 8006726: 2300 movs r3, #0
  6018. 8006728: 6363 str r3, [r4, #52] ; 0x34
  6019. 800672a: 2300 movs r3, #0
  6020. 800672c: 61a3 str r3, [r4, #24]
  6021. 800672e: 6063 str r3, [r4, #4]
  6022. 8006730: 89a3 ldrh r3, [r4, #12]
  6023. 8006732: 061b lsls r3, r3, #24
  6024. 8006734: d503 bpl.n 800673e <setvbuf+0x6a>
  6025. 8006736: 6921 ldr r1, [r4, #16]
  6026. 8006738: 4630 mov r0, r6
  6027. 800673a: f000 fb21 bl 8006d80 <_free_r>
  6028. 800673e: 89a3 ldrh r3, [r4, #12]
  6029. 8006740: f1b8 0f02 cmp.w r8, #2
  6030. 8006744: f423 634a bic.w r3, r3, #3232 ; 0xca0
  6031. 8006748: f023 0303 bic.w r3, r3, #3
  6032. 800674c: 81a3 strh r3, [r4, #12]
  6033. 800674e: d05d beq.n 800680c <setvbuf+0x138>
  6034. 8006750: ab01 add r3, sp, #4
  6035. 8006752: 466a mov r2, sp
  6036. 8006754: 4621 mov r1, r4
  6037. 8006756: 4630 mov r0, r6
  6038. 8006758: f000 faa6 bl 8006ca8 <__swhatbuf_r>
  6039. 800675c: 89a3 ldrh r3, [r4, #12]
  6040. 800675e: 4318 orrs r0, r3
  6041. 8006760: 81a0 strh r0, [r4, #12]
  6042. 8006762: bb2d cbnz r5, 80067b0 <setvbuf+0xdc>
  6043. 8006764: 9d00 ldr r5, [sp, #0]
  6044. 8006766: 4628 mov r0, r5
  6045. 8006768: f000 fb02 bl 8006d70 <malloc>
  6046. 800676c: 4607 mov r7, r0
  6047. 800676e: 2800 cmp r0, #0
  6048. 8006770: d14e bne.n 8006810 <setvbuf+0x13c>
  6049. 8006772: f8dd 9000 ldr.w r9, [sp]
  6050. 8006776: 45a9 cmp r9, r5
  6051. 8006778: d13c bne.n 80067f4 <setvbuf+0x120>
  6052. 800677a: f04f 30ff mov.w r0, #4294967295
  6053. 800677e: 89a3 ldrh r3, [r4, #12]
  6054. 8006780: f043 0302 orr.w r3, r3, #2
  6055. 8006784: 81a3 strh r3, [r4, #12]
  6056. 8006786: 2300 movs r3, #0
  6057. 8006788: 60a3 str r3, [r4, #8]
  6058. 800678a: f104 0347 add.w r3, r4, #71 ; 0x47
  6059. 800678e: 6023 str r3, [r4, #0]
  6060. 8006790: 6123 str r3, [r4, #16]
  6061. 8006792: 2301 movs r3, #1
  6062. 8006794: 6163 str r3, [r4, #20]
  6063. 8006796: b003 add sp, #12
  6064. 8006798: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  6065. 800679c: 4b22 ldr r3, [pc, #136] ; (8006828 <setvbuf+0x154>)
  6066. 800679e: 429c cmp r4, r3
  6067. 80067a0: d101 bne.n 80067a6 <setvbuf+0xd2>
  6068. 80067a2: 68b4 ldr r4, [r6, #8]
  6069. 80067a4: e7a8 b.n 80066f8 <setvbuf+0x24>
  6070. 80067a6: 4b21 ldr r3, [pc, #132] ; (800682c <setvbuf+0x158>)
  6071. 80067a8: 429c cmp r4, r3
  6072. 80067aa: bf08 it eq
  6073. 80067ac: 68f4 ldreq r4, [r6, #12]
  6074. 80067ae: e7a3 b.n 80066f8 <setvbuf+0x24>
  6075. 80067b0: 2f00 cmp r7, #0
  6076. 80067b2: d0d8 beq.n 8006766 <setvbuf+0x92>
  6077. 80067b4: 69b3 ldr r3, [r6, #24]
  6078. 80067b6: b913 cbnz r3, 80067be <setvbuf+0xea>
  6079. 80067b8: 4630 mov r0, r6
  6080. 80067ba: f000 f9eb bl 8006b94 <__sinit>
  6081. 80067be: f1b8 0f01 cmp.w r8, #1
  6082. 80067c2: bf08 it eq
  6083. 80067c4: 89a3 ldrheq r3, [r4, #12]
  6084. 80067c6: 6027 str r7, [r4, #0]
  6085. 80067c8: bf04 itt eq
  6086. 80067ca: f043 0301 orreq.w r3, r3, #1
  6087. 80067ce: 81a3 strheq r3, [r4, #12]
  6088. 80067d0: 89a3 ldrh r3, [r4, #12]
  6089. 80067d2: 6127 str r7, [r4, #16]
  6090. 80067d4: f013 0008 ands.w r0, r3, #8
  6091. 80067d8: 6165 str r5, [r4, #20]
  6092. 80067da: d01b beq.n 8006814 <setvbuf+0x140>
  6093. 80067dc: f013 0001 ands.w r0, r3, #1
  6094. 80067e0: f04f 0300 mov.w r3, #0
  6095. 80067e4: bf1f itttt ne
  6096. 80067e6: 426d negne r5, r5
  6097. 80067e8: 60a3 strne r3, [r4, #8]
  6098. 80067ea: 61a5 strne r5, [r4, #24]
  6099. 80067ec: 4618 movne r0, r3
  6100. 80067ee: bf08 it eq
  6101. 80067f0: 60a5 streq r5, [r4, #8]
  6102. 80067f2: e7d0 b.n 8006796 <setvbuf+0xc2>
  6103. 80067f4: 4648 mov r0, r9
  6104. 80067f6: f000 fabb bl 8006d70 <malloc>
  6105. 80067fa: 4607 mov r7, r0
  6106. 80067fc: 2800 cmp r0, #0
  6107. 80067fe: d0bc beq.n 800677a <setvbuf+0xa6>
  6108. 8006800: 89a3 ldrh r3, [r4, #12]
  6109. 8006802: 464d mov r5, r9
  6110. 8006804: f043 0380 orr.w r3, r3, #128 ; 0x80
  6111. 8006808: 81a3 strh r3, [r4, #12]
  6112. 800680a: e7d3 b.n 80067b4 <setvbuf+0xe0>
  6113. 800680c: 2000 movs r0, #0
  6114. 800680e: e7b6 b.n 800677e <setvbuf+0xaa>
  6115. 8006810: 46a9 mov r9, r5
  6116. 8006812: e7f5 b.n 8006800 <setvbuf+0x12c>
  6117. 8006814: 60a0 str r0, [r4, #8]
  6118. 8006816: e7be b.n 8006796 <setvbuf+0xc2>
  6119. 8006818: f04f 30ff mov.w r0, #4294967295
  6120. 800681c: e7bb b.n 8006796 <setvbuf+0xc2>
  6121. 800681e: bf00 nop
  6122. 8006820: 2000000c .word 0x2000000c
  6123. 8006824: 080077cc .word 0x080077cc
  6124. 8006828: 080077ec .word 0x080077ec
  6125. 800682c: 080077ac .word 0x080077ac
  6126. 08006830 <__swbuf_r>:
  6127. 8006830: b5f8 push {r3, r4, r5, r6, r7, lr}
  6128. 8006832: 460e mov r6, r1
  6129. 8006834: 4614 mov r4, r2
  6130. 8006836: 4605 mov r5, r0
  6131. 8006838: b118 cbz r0, 8006842 <__swbuf_r+0x12>
  6132. 800683a: 6983 ldr r3, [r0, #24]
  6133. 800683c: b90b cbnz r3, 8006842 <__swbuf_r+0x12>
  6134. 800683e: f000 f9a9 bl 8006b94 <__sinit>
  6135. 8006842: 4b21 ldr r3, [pc, #132] ; (80068c8 <__swbuf_r+0x98>)
  6136. 8006844: 429c cmp r4, r3
  6137. 8006846: d12a bne.n 800689e <__swbuf_r+0x6e>
  6138. 8006848: 686c ldr r4, [r5, #4]
  6139. 800684a: 69a3 ldr r3, [r4, #24]
  6140. 800684c: 60a3 str r3, [r4, #8]
  6141. 800684e: 89a3 ldrh r3, [r4, #12]
  6142. 8006850: 071a lsls r2, r3, #28
  6143. 8006852: d52e bpl.n 80068b2 <__swbuf_r+0x82>
  6144. 8006854: 6923 ldr r3, [r4, #16]
  6145. 8006856: b363 cbz r3, 80068b2 <__swbuf_r+0x82>
  6146. 8006858: 6923 ldr r3, [r4, #16]
  6147. 800685a: 6820 ldr r0, [r4, #0]
  6148. 800685c: b2f6 uxtb r6, r6
  6149. 800685e: 1ac0 subs r0, r0, r3
  6150. 8006860: 6963 ldr r3, [r4, #20]
  6151. 8006862: 4637 mov r7, r6
  6152. 8006864: 4298 cmp r0, r3
  6153. 8006866: db04 blt.n 8006872 <__swbuf_r+0x42>
  6154. 8006868: 4621 mov r1, r4
  6155. 800686a: 4628 mov r0, r5
  6156. 800686c: f000 f928 bl 8006ac0 <_fflush_r>
  6157. 8006870: bb28 cbnz r0, 80068be <__swbuf_r+0x8e>
  6158. 8006872: 68a3 ldr r3, [r4, #8]
  6159. 8006874: 3001 adds r0, #1
  6160. 8006876: 3b01 subs r3, #1
  6161. 8006878: 60a3 str r3, [r4, #8]
  6162. 800687a: 6823 ldr r3, [r4, #0]
  6163. 800687c: 1c5a adds r2, r3, #1
  6164. 800687e: 6022 str r2, [r4, #0]
  6165. 8006880: 701e strb r6, [r3, #0]
  6166. 8006882: 6963 ldr r3, [r4, #20]
  6167. 8006884: 4298 cmp r0, r3
  6168. 8006886: d004 beq.n 8006892 <__swbuf_r+0x62>
  6169. 8006888: 89a3 ldrh r3, [r4, #12]
  6170. 800688a: 07db lsls r3, r3, #31
  6171. 800688c: d519 bpl.n 80068c2 <__swbuf_r+0x92>
  6172. 800688e: 2e0a cmp r6, #10
  6173. 8006890: d117 bne.n 80068c2 <__swbuf_r+0x92>
  6174. 8006892: 4621 mov r1, r4
  6175. 8006894: 4628 mov r0, r5
  6176. 8006896: f000 f913 bl 8006ac0 <_fflush_r>
  6177. 800689a: b190 cbz r0, 80068c2 <__swbuf_r+0x92>
  6178. 800689c: e00f b.n 80068be <__swbuf_r+0x8e>
  6179. 800689e: 4b0b ldr r3, [pc, #44] ; (80068cc <__swbuf_r+0x9c>)
  6180. 80068a0: 429c cmp r4, r3
  6181. 80068a2: d101 bne.n 80068a8 <__swbuf_r+0x78>
  6182. 80068a4: 68ac ldr r4, [r5, #8]
  6183. 80068a6: e7d0 b.n 800684a <__swbuf_r+0x1a>
  6184. 80068a8: 4b09 ldr r3, [pc, #36] ; (80068d0 <__swbuf_r+0xa0>)
  6185. 80068aa: 429c cmp r4, r3
  6186. 80068ac: bf08 it eq
  6187. 80068ae: 68ec ldreq r4, [r5, #12]
  6188. 80068b0: e7cb b.n 800684a <__swbuf_r+0x1a>
  6189. 80068b2: 4621 mov r1, r4
  6190. 80068b4: 4628 mov r0, r5
  6191. 80068b6: f000 f80d bl 80068d4 <__swsetup_r>
  6192. 80068ba: 2800 cmp r0, #0
  6193. 80068bc: d0cc beq.n 8006858 <__swbuf_r+0x28>
  6194. 80068be: f04f 37ff mov.w r7, #4294967295
  6195. 80068c2: 4638 mov r0, r7
  6196. 80068c4: bdf8 pop {r3, r4, r5, r6, r7, pc}
  6197. 80068c6: bf00 nop
  6198. 80068c8: 080077cc .word 0x080077cc
  6199. 80068cc: 080077ec .word 0x080077ec
  6200. 80068d0: 080077ac .word 0x080077ac
  6201. 080068d4 <__swsetup_r>:
  6202. 80068d4: 4b32 ldr r3, [pc, #200] ; (80069a0 <__swsetup_r+0xcc>)
  6203. 80068d6: b570 push {r4, r5, r6, lr}
  6204. 80068d8: 681d ldr r5, [r3, #0]
  6205. 80068da: 4606 mov r6, r0
  6206. 80068dc: 460c mov r4, r1
  6207. 80068de: b125 cbz r5, 80068ea <__swsetup_r+0x16>
  6208. 80068e0: 69ab ldr r3, [r5, #24]
  6209. 80068e2: b913 cbnz r3, 80068ea <__swsetup_r+0x16>
  6210. 80068e4: 4628 mov r0, r5
  6211. 80068e6: f000 f955 bl 8006b94 <__sinit>
  6212. 80068ea: 4b2e ldr r3, [pc, #184] ; (80069a4 <__swsetup_r+0xd0>)
  6213. 80068ec: 429c cmp r4, r3
  6214. 80068ee: d10f bne.n 8006910 <__swsetup_r+0x3c>
  6215. 80068f0: 686c ldr r4, [r5, #4]
  6216. 80068f2: f9b4 300c ldrsh.w r3, [r4, #12]
  6217. 80068f6: b29a uxth r2, r3
  6218. 80068f8: 0715 lsls r5, r2, #28
  6219. 80068fa: d42c bmi.n 8006956 <__swsetup_r+0x82>
  6220. 80068fc: 06d0 lsls r0, r2, #27
  6221. 80068fe: d411 bmi.n 8006924 <__swsetup_r+0x50>
  6222. 8006900: 2209 movs r2, #9
  6223. 8006902: 6032 str r2, [r6, #0]
  6224. 8006904: f043 0340 orr.w r3, r3, #64 ; 0x40
  6225. 8006908: 81a3 strh r3, [r4, #12]
  6226. 800690a: f04f 30ff mov.w r0, #4294967295
  6227. 800690e: bd70 pop {r4, r5, r6, pc}
  6228. 8006910: 4b25 ldr r3, [pc, #148] ; (80069a8 <__swsetup_r+0xd4>)
  6229. 8006912: 429c cmp r4, r3
  6230. 8006914: d101 bne.n 800691a <__swsetup_r+0x46>
  6231. 8006916: 68ac ldr r4, [r5, #8]
  6232. 8006918: e7eb b.n 80068f2 <__swsetup_r+0x1e>
  6233. 800691a: 4b24 ldr r3, [pc, #144] ; (80069ac <__swsetup_r+0xd8>)
  6234. 800691c: 429c cmp r4, r3
  6235. 800691e: bf08 it eq
  6236. 8006920: 68ec ldreq r4, [r5, #12]
  6237. 8006922: e7e6 b.n 80068f2 <__swsetup_r+0x1e>
  6238. 8006924: 0751 lsls r1, r2, #29
  6239. 8006926: d512 bpl.n 800694e <__swsetup_r+0x7a>
  6240. 8006928: 6b61 ldr r1, [r4, #52] ; 0x34
  6241. 800692a: b141 cbz r1, 800693e <__swsetup_r+0x6a>
  6242. 800692c: f104 0344 add.w r3, r4, #68 ; 0x44
  6243. 8006930: 4299 cmp r1, r3
  6244. 8006932: d002 beq.n 800693a <__swsetup_r+0x66>
  6245. 8006934: 4630 mov r0, r6
  6246. 8006936: f000 fa23 bl 8006d80 <_free_r>
  6247. 800693a: 2300 movs r3, #0
  6248. 800693c: 6363 str r3, [r4, #52] ; 0x34
  6249. 800693e: 89a3 ldrh r3, [r4, #12]
  6250. 8006940: f023 0324 bic.w r3, r3, #36 ; 0x24
  6251. 8006944: 81a3 strh r3, [r4, #12]
  6252. 8006946: 2300 movs r3, #0
  6253. 8006948: 6063 str r3, [r4, #4]
  6254. 800694a: 6923 ldr r3, [r4, #16]
  6255. 800694c: 6023 str r3, [r4, #0]
  6256. 800694e: 89a3 ldrh r3, [r4, #12]
  6257. 8006950: f043 0308 orr.w r3, r3, #8
  6258. 8006954: 81a3 strh r3, [r4, #12]
  6259. 8006956: 6923 ldr r3, [r4, #16]
  6260. 8006958: b94b cbnz r3, 800696e <__swsetup_r+0x9a>
  6261. 800695a: 89a3 ldrh r3, [r4, #12]
  6262. 800695c: f403 7320 and.w r3, r3, #640 ; 0x280
  6263. 8006960: f5b3 7f00 cmp.w r3, #512 ; 0x200
  6264. 8006964: d003 beq.n 800696e <__swsetup_r+0x9a>
  6265. 8006966: 4621 mov r1, r4
  6266. 8006968: 4630 mov r0, r6
  6267. 800696a: f000 f9c1 bl 8006cf0 <__smakebuf_r>
  6268. 800696e: 89a2 ldrh r2, [r4, #12]
  6269. 8006970: f012 0301 ands.w r3, r2, #1
  6270. 8006974: d00c beq.n 8006990 <__swsetup_r+0xbc>
  6271. 8006976: 2300 movs r3, #0
  6272. 8006978: 60a3 str r3, [r4, #8]
  6273. 800697a: 6963 ldr r3, [r4, #20]
  6274. 800697c: 425b negs r3, r3
  6275. 800697e: 61a3 str r3, [r4, #24]
  6276. 8006980: 6923 ldr r3, [r4, #16]
  6277. 8006982: b953 cbnz r3, 800699a <__swsetup_r+0xc6>
  6278. 8006984: f9b4 300c ldrsh.w r3, [r4, #12]
  6279. 8006988: f013 0080 ands.w r0, r3, #128 ; 0x80
  6280. 800698c: d1ba bne.n 8006904 <__swsetup_r+0x30>
  6281. 800698e: bd70 pop {r4, r5, r6, pc}
  6282. 8006990: 0792 lsls r2, r2, #30
  6283. 8006992: bf58 it pl
  6284. 8006994: 6963 ldrpl r3, [r4, #20]
  6285. 8006996: 60a3 str r3, [r4, #8]
  6286. 8006998: e7f2 b.n 8006980 <__swsetup_r+0xac>
  6287. 800699a: 2000 movs r0, #0
  6288. 800699c: e7f7 b.n 800698e <__swsetup_r+0xba>
  6289. 800699e: bf00 nop
  6290. 80069a0: 2000000c .word 0x2000000c
  6291. 80069a4: 080077cc .word 0x080077cc
  6292. 80069a8: 080077ec .word 0x080077ec
  6293. 80069ac: 080077ac .word 0x080077ac
  6294. 080069b0 <__sflush_r>:
  6295. 80069b0: 898a ldrh r2, [r1, #12]
  6296. 80069b2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  6297. 80069b6: 4605 mov r5, r0
  6298. 80069b8: 0710 lsls r0, r2, #28
  6299. 80069ba: 460c mov r4, r1
  6300. 80069bc: d45a bmi.n 8006a74 <__sflush_r+0xc4>
  6301. 80069be: 684b ldr r3, [r1, #4]
  6302. 80069c0: 2b00 cmp r3, #0
  6303. 80069c2: dc05 bgt.n 80069d0 <__sflush_r+0x20>
  6304. 80069c4: 6c0b ldr r3, [r1, #64] ; 0x40
  6305. 80069c6: 2b00 cmp r3, #0
  6306. 80069c8: dc02 bgt.n 80069d0 <__sflush_r+0x20>
  6307. 80069ca: 2000 movs r0, #0
  6308. 80069cc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  6309. 80069d0: 6ae6 ldr r6, [r4, #44] ; 0x2c
  6310. 80069d2: 2e00 cmp r6, #0
  6311. 80069d4: d0f9 beq.n 80069ca <__sflush_r+0x1a>
  6312. 80069d6: 2300 movs r3, #0
  6313. 80069d8: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  6314. 80069dc: 682f ldr r7, [r5, #0]
  6315. 80069de: 602b str r3, [r5, #0]
  6316. 80069e0: d033 beq.n 8006a4a <__sflush_r+0x9a>
  6317. 80069e2: 6d60 ldr r0, [r4, #84] ; 0x54
  6318. 80069e4: 89a3 ldrh r3, [r4, #12]
  6319. 80069e6: 075a lsls r2, r3, #29
  6320. 80069e8: d505 bpl.n 80069f6 <__sflush_r+0x46>
  6321. 80069ea: 6863 ldr r3, [r4, #4]
  6322. 80069ec: 1ac0 subs r0, r0, r3
  6323. 80069ee: 6b63 ldr r3, [r4, #52] ; 0x34
  6324. 80069f0: b10b cbz r3, 80069f6 <__sflush_r+0x46>
  6325. 80069f2: 6c23 ldr r3, [r4, #64] ; 0x40
  6326. 80069f4: 1ac0 subs r0, r0, r3
  6327. 80069f6: 2300 movs r3, #0
  6328. 80069f8: 4602 mov r2, r0
  6329. 80069fa: 6ae6 ldr r6, [r4, #44] ; 0x2c
  6330. 80069fc: 6a21 ldr r1, [r4, #32]
  6331. 80069fe: 4628 mov r0, r5
  6332. 8006a00: 47b0 blx r6
  6333. 8006a02: 1c43 adds r3, r0, #1
  6334. 8006a04: 89a3 ldrh r3, [r4, #12]
  6335. 8006a06: d106 bne.n 8006a16 <__sflush_r+0x66>
  6336. 8006a08: 6829 ldr r1, [r5, #0]
  6337. 8006a0a: 291d cmp r1, #29
  6338. 8006a0c: d84b bhi.n 8006aa6 <__sflush_r+0xf6>
  6339. 8006a0e: 4a2b ldr r2, [pc, #172] ; (8006abc <__sflush_r+0x10c>)
  6340. 8006a10: 40ca lsrs r2, r1
  6341. 8006a12: 07d6 lsls r6, r2, #31
  6342. 8006a14: d547 bpl.n 8006aa6 <__sflush_r+0xf6>
  6343. 8006a16: 2200 movs r2, #0
  6344. 8006a18: 6062 str r2, [r4, #4]
  6345. 8006a1a: 6922 ldr r2, [r4, #16]
  6346. 8006a1c: 04d9 lsls r1, r3, #19
  6347. 8006a1e: 6022 str r2, [r4, #0]
  6348. 8006a20: d504 bpl.n 8006a2c <__sflush_r+0x7c>
  6349. 8006a22: 1c42 adds r2, r0, #1
  6350. 8006a24: d101 bne.n 8006a2a <__sflush_r+0x7a>
  6351. 8006a26: 682b ldr r3, [r5, #0]
  6352. 8006a28: b903 cbnz r3, 8006a2c <__sflush_r+0x7c>
  6353. 8006a2a: 6560 str r0, [r4, #84] ; 0x54
  6354. 8006a2c: 6b61 ldr r1, [r4, #52] ; 0x34
  6355. 8006a2e: 602f str r7, [r5, #0]
  6356. 8006a30: 2900 cmp r1, #0
  6357. 8006a32: d0ca beq.n 80069ca <__sflush_r+0x1a>
  6358. 8006a34: f104 0344 add.w r3, r4, #68 ; 0x44
  6359. 8006a38: 4299 cmp r1, r3
  6360. 8006a3a: d002 beq.n 8006a42 <__sflush_r+0x92>
  6361. 8006a3c: 4628 mov r0, r5
  6362. 8006a3e: f000 f99f bl 8006d80 <_free_r>
  6363. 8006a42: 2000 movs r0, #0
  6364. 8006a44: 6360 str r0, [r4, #52] ; 0x34
  6365. 8006a46: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  6366. 8006a4a: 6a21 ldr r1, [r4, #32]
  6367. 8006a4c: 2301 movs r3, #1
  6368. 8006a4e: 4628 mov r0, r5
  6369. 8006a50: 47b0 blx r6
  6370. 8006a52: 1c41 adds r1, r0, #1
  6371. 8006a54: d1c6 bne.n 80069e4 <__sflush_r+0x34>
  6372. 8006a56: 682b ldr r3, [r5, #0]
  6373. 8006a58: 2b00 cmp r3, #0
  6374. 8006a5a: d0c3 beq.n 80069e4 <__sflush_r+0x34>
  6375. 8006a5c: 2b1d cmp r3, #29
  6376. 8006a5e: d001 beq.n 8006a64 <__sflush_r+0xb4>
  6377. 8006a60: 2b16 cmp r3, #22
  6378. 8006a62: d101 bne.n 8006a68 <__sflush_r+0xb8>
  6379. 8006a64: 602f str r7, [r5, #0]
  6380. 8006a66: e7b0 b.n 80069ca <__sflush_r+0x1a>
  6381. 8006a68: 89a3 ldrh r3, [r4, #12]
  6382. 8006a6a: f043 0340 orr.w r3, r3, #64 ; 0x40
  6383. 8006a6e: 81a3 strh r3, [r4, #12]
  6384. 8006a70: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  6385. 8006a74: 690f ldr r7, [r1, #16]
  6386. 8006a76: 2f00 cmp r7, #0
  6387. 8006a78: d0a7 beq.n 80069ca <__sflush_r+0x1a>
  6388. 8006a7a: 0793 lsls r3, r2, #30
  6389. 8006a7c: bf18 it ne
  6390. 8006a7e: 2300 movne r3, #0
  6391. 8006a80: 680e ldr r6, [r1, #0]
  6392. 8006a82: bf08 it eq
  6393. 8006a84: 694b ldreq r3, [r1, #20]
  6394. 8006a86: eba6 0807 sub.w r8, r6, r7
  6395. 8006a8a: 600f str r7, [r1, #0]
  6396. 8006a8c: 608b str r3, [r1, #8]
  6397. 8006a8e: f1b8 0f00 cmp.w r8, #0
  6398. 8006a92: dd9a ble.n 80069ca <__sflush_r+0x1a>
  6399. 8006a94: 4643 mov r3, r8
  6400. 8006a96: 463a mov r2, r7
  6401. 8006a98: 6a21 ldr r1, [r4, #32]
  6402. 8006a9a: 4628 mov r0, r5
  6403. 8006a9c: 6aa6 ldr r6, [r4, #40] ; 0x28
  6404. 8006a9e: 47b0 blx r6
  6405. 8006aa0: 2800 cmp r0, #0
  6406. 8006aa2: dc07 bgt.n 8006ab4 <__sflush_r+0x104>
  6407. 8006aa4: 89a3 ldrh r3, [r4, #12]
  6408. 8006aa6: f043 0340 orr.w r3, r3, #64 ; 0x40
  6409. 8006aaa: 81a3 strh r3, [r4, #12]
  6410. 8006aac: f04f 30ff mov.w r0, #4294967295
  6411. 8006ab0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  6412. 8006ab4: 4407 add r7, r0
  6413. 8006ab6: eba8 0800 sub.w r8, r8, r0
  6414. 8006aba: e7e8 b.n 8006a8e <__sflush_r+0xde>
  6415. 8006abc: 20400001 .word 0x20400001
  6416. 08006ac0 <_fflush_r>:
  6417. 8006ac0: b538 push {r3, r4, r5, lr}
  6418. 8006ac2: 690b ldr r3, [r1, #16]
  6419. 8006ac4: 4605 mov r5, r0
  6420. 8006ac6: 460c mov r4, r1
  6421. 8006ac8: b1db cbz r3, 8006b02 <_fflush_r+0x42>
  6422. 8006aca: b118 cbz r0, 8006ad4 <_fflush_r+0x14>
  6423. 8006acc: 6983 ldr r3, [r0, #24]
  6424. 8006ace: b90b cbnz r3, 8006ad4 <_fflush_r+0x14>
  6425. 8006ad0: f000 f860 bl 8006b94 <__sinit>
  6426. 8006ad4: 4b0c ldr r3, [pc, #48] ; (8006b08 <_fflush_r+0x48>)
  6427. 8006ad6: 429c cmp r4, r3
  6428. 8006ad8: d109 bne.n 8006aee <_fflush_r+0x2e>
  6429. 8006ada: 686c ldr r4, [r5, #4]
  6430. 8006adc: f9b4 300c ldrsh.w r3, [r4, #12]
  6431. 8006ae0: b17b cbz r3, 8006b02 <_fflush_r+0x42>
  6432. 8006ae2: 4621 mov r1, r4
  6433. 8006ae4: 4628 mov r0, r5
  6434. 8006ae6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  6435. 8006aea: f7ff bf61 b.w 80069b0 <__sflush_r>
  6436. 8006aee: 4b07 ldr r3, [pc, #28] ; (8006b0c <_fflush_r+0x4c>)
  6437. 8006af0: 429c cmp r4, r3
  6438. 8006af2: d101 bne.n 8006af8 <_fflush_r+0x38>
  6439. 8006af4: 68ac ldr r4, [r5, #8]
  6440. 8006af6: e7f1 b.n 8006adc <_fflush_r+0x1c>
  6441. 8006af8: 4b05 ldr r3, [pc, #20] ; (8006b10 <_fflush_r+0x50>)
  6442. 8006afa: 429c cmp r4, r3
  6443. 8006afc: bf08 it eq
  6444. 8006afe: 68ec ldreq r4, [r5, #12]
  6445. 8006b00: e7ec b.n 8006adc <_fflush_r+0x1c>
  6446. 8006b02: 2000 movs r0, #0
  6447. 8006b04: bd38 pop {r3, r4, r5, pc}
  6448. 8006b06: bf00 nop
  6449. 8006b08: 080077cc .word 0x080077cc
  6450. 8006b0c: 080077ec .word 0x080077ec
  6451. 8006b10: 080077ac .word 0x080077ac
  6452. 08006b14 <_cleanup_r>:
  6453. 8006b14: 4901 ldr r1, [pc, #4] ; (8006b1c <_cleanup_r+0x8>)
  6454. 8006b16: f000 b8a9 b.w 8006c6c <_fwalk_reent>
  6455. 8006b1a: bf00 nop
  6456. 8006b1c: 08006ac1 .word 0x08006ac1
  6457. 08006b20 <std.isra.0>:
  6458. 8006b20: 2300 movs r3, #0
  6459. 8006b22: b510 push {r4, lr}
  6460. 8006b24: 4604 mov r4, r0
  6461. 8006b26: 6003 str r3, [r0, #0]
  6462. 8006b28: 6043 str r3, [r0, #4]
  6463. 8006b2a: 6083 str r3, [r0, #8]
  6464. 8006b2c: 8181 strh r1, [r0, #12]
  6465. 8006b2e: 6643 str r3, [r0, #100] ; 0x64
  6466. 8006b30: 81c2 strh r2, [r0, #14]
  6467. 8006b32: 6103 str r3, [r0, #16]
  6468. 8006b34: 6143 str r3, [r0, #20]
  6469. 8006b36: 6183 str r3, [r0, #24]
  6470. 8006b38: 4619 mov r1, r3
  6471. 8006b3a: 2208 movs r2, #8
  6472. 8006b3c: 305c adds r0, #92 ; 0x5c
  6473. 8006b3e: f7ff fd3c bl 80065ba <memset>
  6474. 8006b42: 4b05 ldr r3, [pc, #20] ; (8006b58 <std.isra.0+0x38>)
  6475. 8006b44: 6224 str r4, [r4, #32]
  6476. 8006b46: 6263 str r3, [r4, #36] ; 0x24
  6477. 8006b48: 4b04 ldr r3, [pc, #16] ; (8006b5c <std.isra.0+0x3c>)
  6478. 8006b4a: 62a3 str r3, [r4, #40] ; 0x28
  6479. 8006b4c: 4b04 ldr r3, [pc, #16] ; (8006b60 <std.isra.0+0x40>)
  6480. 8006b4e: 62e3 str r3, [r4, #44] ; 0x2c
  6481. 8006b50: 4b04 ldr r3, [pc, #16] ; (8006b64 <std.isra.0+0x44>)
  6482. 8006b52: 6323 str r3, [r4, #48] ; 0x30
  6483. 8006b54: bd10 pop {r4, pc}
  6484. 8006b56: bf00 nop
  6485. 8006b58: 080074a1 .word 0x080074a1
  6486. 8006b5c: 080074c3 .word 0x080074c3
  6487. 8006b60: 080074fb .word 0x080074fb
  6488. 8006b64: 0800751f .word 0x0800751f
  6489. 08006b68 <__sfmoreglue>:
  6490. 8006b68: b570 push {r4, r5, r6, lr}
  6491. 8006b6a: 2568 movs r5, #104 ; 0x68
  6492. 8006b6c: 1e4a subs r2, r1, #1
  6493. 8006b6e: 4355 muls r5, r2
  6494. 8006b70: 460e mov r6, r1
  6495. 8006b72: f105 0174 add.w r1, r5, #116 ; 0x74
  6496. 8006b76: f000 f94f bl 8006e18 <_malloc_r>
  6497. 8006b7a: 4604 mov r4, r0
  6498. 8006b7c: b140 cbz r0, 8006b90 <__sfmoreglue+0x28>
  6499. 8006b7e: 2100 movs r1, #0
  6500. 8006b80: e880 0042 stmia.w r0, {r1, r6}
  6501. 8006b84: 300c adds r0, #12
  6502. 8006b86: 60a0 str r0, [r4, #8]
  6503. 8006b88: f105 0268 add.w r2, r5, #104 ; 0x68
  6504. 8006b8c: f7ff fd15 bl 80065ba <memset>
  6505. 8006b90: 4620 mov r0, r4
  6506. 8006b92: bd70 pop {r4, r5, r6, pc}
  6507. 08006b94 <__sinit>:
  6508. 8006b94: 6983 ldr r3, [r0, #24]
  6509. 8006b96: b510 push {r4, lr}
  6510. 8006b98: 4604 mov r4, r0
  6511. 8006b9a: bb33 cbnz r3, 8006bea <__sinit+0x56>
  6512. 8006b9c: 6483 str r3, [r0, #72] ; 0x48
  6513. 8006b9e: 64c3 str r3, [r0, #76] ; 0x4c
  6514. 8006ba0: 6503 str r3, [r0, #80] ; 0x50
  6515. 8006ba2: 4b12 ldr r3, [pc, #72] ; (8006bec <__sinit+0x58>)
  6516. 8006ba4: 4a12 ldr r2, [pc, #72] ; (8006bf0 <__sinit+0x5c>)
  6517. 8006ba6: 681b ldr r3, [r3, #0]
  6518. 8006ba8: 6282 str r2, [r0, #40] ; 0x28
  6519. 8006baa: 4298 cmp r0, r3
  6520. 8006bac: bf04 itt eq
  6521. 8006bae: 2301 moveq r3, #1
  6522. 8006bb0: 6183 streq r3, [r0, #24]
  6523. 8006bb2: f000 f81f bl 8006bf4 <__sfp>
  6524. 8006bb6: 6060 str r0, [r4, #4]
  6525. 8006bb8: 4620 mov r0, r4
  6526. 8006bba: f000 f81b bl 8006bf4 <__sfp>
  6527. 8006bbe: 60a0 str r0, [r4, #8]
  6528. 8006bc0: 4620 mov r0, r4
  6529. 8006bc2: f000 f817 bl 8006bf4 <__sfp>
  6530. 8006bc6: 2200 movs r2, #0
  6531. 8006bc8: 60e0 str r0, [r4, #12]
  6532. 8006bca: 2104 movs r1, #4
  6533. 8006bcc: 6860 ldr r0, [r4, #4]
  6534. 8006bce: f7ff ffa7 bl 8006b20 <std.isra.0>
  6535. 8006bd2: 2201 movs r2, #1
  6536. 8006bd4: 2109 movs r1, #9
  6537. 8006bd6: 68a0 ldr r0, [r4, #8]
  6538. 8006bd8: f7ff ffa2 bl 8006b20 <std.isra.0>
  6539. 8006bdc: 2202 movs r2, #2
  6540. 8006bde: 2112 movs r1, #18
  6541. 8006be0: 68e0 ldr r0, [r4, #12]
  6542. 8006be2: f7ff ff9d bl 8006b20 <std.isra.0>
  6543. 8006be6: 2301 movs r3, #1
  6544. 8006be8: 61a3 str r3, [r4, #24]
  6545. 8006bea: bd10 pop {r4, pc}
  6546. 8006bec: 080077a8 .word 0x080077a8
  6547. 8006bf0: 08006b15 .word 0x08006b15
  6548. 08006bf4 <__sfp>:
  6549. 8006bf4: b5f8 push {r3, r4, r5, r6, r7, lr}
  6550. 8006bf6: 4b1c ldr r3, [pc, #112] ; (8006c68 <__sfp+0x74>)
  6551. 8006bf8: 4607 mov r7, r0
  6552. 8006bfa: 681e ldr r6, [r3, #0]
  6553. 8006bfc: 69b3 ldr r3, [r6, #24]
  6554. 8006bfe: b913 cbnz r3, 8006c06 <__sfp+0x12>
  6555. 8006c00: 4630 mov r0, r6
  6556. 8006c02: f7ff ffc7 bl 8006b94 <__sinit>
  6557. 8006c06: 3648 adds r6, #72 ; 0x48
  6558. 8006c08: 68b4 ldr r4, [r6, #8]
  6559. 8006c0a: 6873 ldr r3, [r6, #4]
  6560. 8006c0c: 3b01 subs r3, #1
  6561. 8006c0e: d503 bpl.n 8006c18 <__sfp+0x24>
  6562. 8006c10: 6833 ldr r3, [r6, #0]
  6563. 8006c12: b133 cbz r3, 8006c22 <__sfp+0x2e>
  6564. 8006c14: 6836 ldr r6, [r6, #0]
  6565. 8006c16: e7f7 b.n 8006c08 <__sfp+0x14>
  6566. 8006c18: f9b4 500c ldrsh.w r5, [r4, #12]
  6567. 8006c1c: b16d cbz r5, 8006c3a <__sfp+0x46>
  6568. 8006c1e: 3468 adds r4, #104 ; 0x68
  6569. 8006c20: e7f4 b.n 8006c0c <__sfp+0x18>
  6570. 8006c22: 2104 movs r1, #4
  6571. 8006c24: 4638 mov r0, r7
  6572. 8006c26: f7ff ff9f bl 8006b68 <__sfmoreglue>
  6573. 8006c2a: 6030 str r0, [r6, #0]
  6574. 8006c2c: 2800 cmp r0, #0
  6575. 8006c2e: d1f1 bne.n 8006c14 <__sfp+0x20>
  6576. 8006c30: 230c movs r3, #12
  6577. 8006c32: 4604 mov r4, r0
  6578. 8006c34: 603b str r3, [r7, #0]
  6579. 8006c36: 4620 mov r0, r4
  6580. 8006c38: bdf8 pop {r3, r4, r5, r6, r7, pc}
  6581. 8006c3a: f64f 73ff movw r3, #65535 ; 0xffff
  6582. 8006c3e: 81e3 strh r3, [r4, #14]
  6583. 8006c40: 2301 movs r3, #1
  6584. 8006c42: 6665 str r5, [r4, #100] ; 0x64
  6585. 8006c44: 81a3 strh r3, [r4, #12]
  6586. 8006c46: 6025 str r5, [r4, #0]
  6587. 8006c48: 60a5 str r5, [r4, #8]
  6588. 8006c4a: 6065 str r5, [r4, #4]
  6589. 8006c4c: 6125 str r5, [r4, #16]
  6590. 8006c4e: 6165 str r5, [r4, #20]
  6591. 8006c50: 61a5 str r5, [r4, #24]
  6592. 8006c52: 2208 movs r2, #8
  6593. 8006c54: 4629 mov r1, r5
  6594. 8006c56: f104 005c add.w r0, r4, #92 ; 0x5c
  6595. 8006c5a: f7ff fcae bl 80065ba <memset>
  6596. 8006c5e: 6365 str r5, [r4, #52] ; 0x34
  6597. 8006c60: 63a5 str r5, [r4, #56] ; 0x38
  6598. 8006c62: 64a5 str r5, [r4, #72] ; 0x48
  6599. 8006c64: 64e5 str r5, [r4, #76] ; 0x4c
  6600. 8006c66: e7e6 b.n 8006c36 <__sfp+0x42>
  6601. 8006c68: 080077a8 .word 0x080077a8
  6602. 08006c6c <_fwalk_reent>:
  6603. 8006c6c: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  6604. 8006c70: 4680 mov r8, r0
  6605. 8006c72: 4689 mov r9, r1
  6606. 8006c74: 2600 movs r6, #0
  6607. 8006c76: f100 0448 add.w r4, r0, #72 ; 0x48
  6608. 8006c7a: b914 cbnz r4, 8006c82 <_fwalk_reent+0x16>
  6609. 8006c7c: 4630 mov r0, r6
  6610. 8006c7e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  6611. 8006c82: 68a5 ldr r5, [r4, #8]
  6612. 8006c84: 6867 ldr r7, [r4, #4]
  6613. 8006c86: 3f01 subs r7, #1
  6614. 8006c88: d501 bpl.n 8006c8e <_fwalk_reent+0x22>
  6615. 8006c8a: 6824 ldr r4, [r4, #0]
  6616. 8006c8c: e7f5 b.n 8006c7a <_fwalk_reent+0xe>
  6617. 8006c8e: 89ab ldrh r3, [r5, #12]
  6618. 8006c90: 2b01 cmp r3, #1
  6619. 8006c92: d907 bls.n 8006ca4 <_fwalk_reent+0x38>
  6620. 8006c94: f9b5 300e ldrsh.w r3, [r5, #14]
  6621. 8006c98: 3301 adds r3, #1
  6622. 8006c9a: d003 beq.n 8006ca4 <_fwalk_reent+0x38>
  6623. 8006c9c: 4629 mov r1, r5
  6624. 8006c9e: 4640 mov r0, r8
  6625. 8006ca0: 47c8 blx r9
  6626. 8006ca2: 4306 orrs r6, r0
  6627. 8006ca4: 3568 adds r5, #104 ; 0x68
  6628. 8006ca6: e7ee b.n 8006c86 <_fwalk_reent+0x1a>
  6629. 08006ca8 <__swhatbuf_r>:
  6630. 8006ca8: b570 push {r4, r5, r6, lr}
  6631. 8006caa: 460e mov r6, r1
  6632. 8006cac: f9b1 100e ldrsh.w r1, [r1, #14]
  6633. 8006cb0: b090 sub sp, #64 ; 0x40
  6634. 8006cb2: 2900 cmp r1, #0
  6635. 8006cb4: 4614 mov r4, r2
  6636. 8006cb6: 461d mov r5, r3
  6637. 8006cb8: da07 bge.n 8006cca <__swhatbuf_r+0x22>
  6638. 8006cba: 2300 movs r3, #0
  6639. 8006cbc: 602b str r3, [r5, #0]
  6640. 8006cbe: 89b3 ldrh r3, [r6, #12]
  6641. 8006cc0: 061a lsls r2, r3, #24
  6642. 8006cc2: d410 bmi.n 8006ce6 <__swhatbuf_r+0x3e>
  6643. 8006cc4: f44f 6380 mov.w r3, #1024 ; 0x400
  6644. 8006cc8: e00e b.n 8006ce8 <__swhatbuf_r+0x40>
  6645. 8006cca: aa01 add r2, sp, #4
  6646. 8006ccc: f000 fc4e bl 800756c <_fstat_r>
  6647. 8006cd0: 2800 cmp r0, #0
  6648. 8006cd2: dbf2 blt.n 8006cba <__swhatbuf_r+0x12>
  6649. 8006cd4: 9a02 ldr r2, [sp, #8]
  6650. 8006cd6: f402 4270 and.w r2, r2, #61440 ; 0xf000
  6651. 8006cda: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  6652. 8006cde: 425a negs r2, r3
  6653. 8006ce0: 415a adcs r2, r3
  6654. 8006ce2: 602a str r2, [r5, #0]
  6655. 8006ce4: e7ee b.n 8006cc4 <__swhatbuf_r+0x1c>
  6656. 8006ce6: 2340 movs r3, #64 ; 0x40
  6657. 8006ce8: 2000 movs r0, #0
  6658. 8006cea: 6023 str r3, [r4, #0]
  6659. 8006cec: b010 add sp, #64 ; 0x40
  6660. 8006cee: bd70 pop {r4, r5, r6, pc}
  6661. 08006cf0 <__smakebuf_r>:
  6662. 8006cf0: 898b ldrh r3, [r1, #12]
  6663. 8006cf2: b573 push {r0, r1, r4, r5, r6, lr}
  6664. 8006cf4: 079d lsls r5, r3, #30
  6665. 8006cf6: 4606 mov r6, r0
  6666. 8006cf8: 460c mov r4, r1
  6667. 8006cfa: d507 bpl.n 8006d0c <__smakebuf_r+0x1c>
  6668. 8006cfc: f104 0347 add.w r3, r4, #71 ; 0x47
  6669. 8006d00: 6023 str r3, [r4, #0]
  6670. 8006d02: 6123 str r3, [r4, #16]
  6671. 8006d04: 2301 movs r3, #1
  6672. 8006d06: 6163 str r3, [r4, #20]
  6673. 8006d08: b002 add sp, #8
  6674. 8006d0a: bd70 pop {r4, r5, r6, pc}
  6675. 8006d0c: ab01 add r3, sp, #4
  6676. 8006d0e: 466a mov r2, sp
  6677. 8006d10: f7ff ffca bl 8006ca8 <__swhatbuf_r>
  6678. 8006d14: 9900 ldr r1, [sp, #0]
  6679. 8006d16: 4605 mov r5, r0
  6680. 8006d18: 4630 mov r0, r6
  6681. 8006d1a: f000 f87d bl 8006e18 <_malloc_r>
  6682. 8006d1e: b948 cbnz r0, 8006d34 <__smakebuf_r+0x44>
  6683. 8006d20: f9b4 300c ldrsh.w r3, [r4, #12]
  6684. 8006d24: 059a lsls r2, r3, #22
  6685. 8006d26: d4ef bmi.n 8006d08 <__smakebuf_r+0x18>
  6686. 8006d28: f023 0303 bic.w r3, r3, #3
  6687. 8006d2c: f043 0302 orr.w r3, r3, #2
  6688. 8006d30: 81a3 strh r3, [r4, #12]
  6689. 8006d32: e7e3 b.n 8006cfc <__smakebuf_r+0xc>
  6690. 8006d34: 4b0d ldr r3, [pc, #52] ; (8006d6c <__smakebuf_r+0x7c>)
  6691. 8006d36: 62b3 str r3, [r6, #40] ; 0x28
  6692. 8006d38: 89a3 ldrh r3, [r4, #12]
  6693. 8006d3a: 6020 str r0, [r4, #0]
  6694. 8006d3c: f043 0380 orr.w r3, r3, #128 ; 0x80
  6695. 8006d40: 81a3 strh r3, [r4, #12]
  6696. 8006d42: 9b00 ldr r3, [sp, #0]
  6697. 8006d44: 6120 str r0, [r4, #16]
  6698. 8006d46: 6163 str r3, [r4, #20]
  6699. 8006d48: 9b01 ldr r3, [sp, #4]
  6700. 8006d4a: b15b cbz r3, 8006d64 <__smakebuf_r+0x74>
  6701. 8006d4c: f9b4 100e ldrsh.w r1, [r4, #14]
  6702. 8006d50: 4630 mov r0, r6
  6703. 8006d52: f000 fc1d bl 8007590 <_isatty_r>
  6704. 8006d56: b128 cbz r0, 8006d64 <__smakebuf_r+0x74>
  6705. 8006d58: 89a3 ldrh r3, [r4, #12]
  6706. 8006d5a: f023 0303 bic.w r3, r3, #3
  6707. 8006d5e: f043 0301 orr.w r3, r3, #1
  6708. 8006d62: 81a3 strh r3, [r4, #12]
  6709. 8006d64: 89a3 ldrh r3, [r4, #12]
  6710. 8006d66: 431d orrs r5, r3
  6711. 8006d68: 81a5 strh r5, [r4, #12]
  6712. 8006d6a: e7cd b.n 8006d08 <__smakebuf_r+0x18>
  6713. 8006d6c: 08006b15 .word 0x08006b15
  6714. 08006d70 <malloc>:
  6715. 8006d70: 4b02 ldr r3, [pc, #8] ; (8006d7c <malloc+0xc>)
  6716. 8006d72: 4601 mov r1, r0
  6717. 8006d74: 6818 ldr r0, [r3, #0]
  6718. 8006d76: f000 b84f b.w 8006e18 <_malloc_r>
  6719. 8006d7a: bf00 nop
  6720. 8006d7c: 2000000c .word 0x2000000c
  6721. 08006d80 <_free_r>:
  6722. 8006d80: b538 push {r3, r4, r5, lr}
  6723. 8006d82: 4605 mov r5, r0
  6724. 8006d84: 2900 cmp r1, #0
  6725. 8006d86: d043 beq.n 8006e10 <_free_r+0x90>
  6726. 8006d88: f851 3c04 ldr.w r3, [r1, #-4]
  6727. 8006d8c: 1f0c subs r4, r1, #4
  6728. 8006d8e: 2b00 cmp r3, #0
  6729. 8006d90: bfb8 it lt
  6730. 8006d92: 18e4 addlt r4, r4, r3
  6731. 8006d94: f000 fc2c bl 80075f0 <__malloc_lock>
  6732. 8006d98: 4a1e ldr r2, [pc, #120] ; (8006e14 <_free_r+0x94>)
  6733. 8006d9a: 6813 ldr r3, [r2, #0]
  6734. 8006d9c: 4610 mov r0, r2
  6735. 8006d9e: b933 cbnz r3, 8006dae <_free_r+0x2e>
  6736. 8006da0: 6063 str r3, [r4, #4]
  6737. 8006da2: 6014 str r4, [r2, #0]
  6738. 8006da4: 4628 mov r0, r5
  6739. 8006da6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  6740. 8006daa: f000 bc22 b.w 80075f2 <__malloc_unlock>
  6741. 8006dae: 42a3 cmp r3, r4
  6742. 8006db0: d90b bls.n 8006dca <_free_r+0x4a>
  6743. 8006db2: 6821 ldr r1, [r4, #0]
  6744. 8006db4: 1862 adds r2, r4, r1
  6745. 8006db6: 4293 cmp r3, r2
  6746. 8006db8: bf01 itttt eq
  6747. 8006dba: 681a ldreq r2, [r3, #0]
  6748. 8006dbc: 685b ldreq r3, [r3, #4]
  6749. 8006dbe: 1852 addeq r2, r2, r1
  6750. 8006dc0: 6022 streq r2, [r4, #0]
  6751. 8006dc2: 6063 str r3, [r4, #4]
  6752. 8006dc4: 6004 str r4, [r0, #0]
  6753. 8006dc6: e7ed b.n 8006da4 <_free_r+0x24>
  6754. 8006dc8: 4613 mov r3, r2
  6755. 8006dca: 685a ldr r2, [r3, #4]
  6756. 8006dcc: b10a cbz r2, 8006dd2 <_free_r+0x52>
  6757. 8006dce: 42a2 cmp r2, r4
  6758. 8006dd0: d9fa bls.n 8006dc8 <_free_r+0x48>
  6759. 8006dd2: 6819 ldr r1, [r3, #0]
  6760. 8006dd4: 1858 adds r0, r3, r1
  6761. 8006dd6: 42a0 cmp r0, r4
  6762. 8006dd8: d10b bne.n 8006df2 <_free_r+0x72>
  6763. 8006dda: 6820 ldr r0, [r4, #0]
  6764. 8006ddc: 4401 add r1, r0
  6765. 8006dde: 1858 adds r0, r3, r1
  6766. 8006de0: 4282 cmp r2, r0
  6767. 8006de2: 6019 str r1, [r3, #0]
  6768. 8006de4: d1de bne.n 8006da4 <_free_r+0x24>
  6769. 8006de6: 6810 ldr r0, [r2, #0]
  6770. 8006de8: 6852 ldr r2, [r2, #4]
  6771. 8006dea: 4401 add r1, r0
  6772. 8006dec: 6019 str r1, [r3, #0]
  6773. 8006dee: 605a str r2, [r3, #4]
  6774. 8006df0: e7d8 b.n 8006da4 <_free_r+0x24>
  6775. 8006df2: d902 bls.n 8006dfa <_free_r+0x7a>
  6776. 8006df4: 230c movs r3, #12
  6777. 8006df6: 602b str r3, [r5, #0]
  6778. 8006df8: e7d4 b.n 8006da4 <_free_r+0x24>
  6779. 8006dfa: 6820 ldr r0, [r4, #0]
  6780. 8006dfc: 1821 adds r1, r4, r0
  6781. 8006dfe: 428a cmp r2, r1
  6782. 8006e00: bf01 itttt eq
  6783. 8006e02: 6811 ldreq r1, [r2, #0]
  6784. 8006e04: 6852 ldreq r2, [r2, #4]
  6785. 8006e06: 1809 addeq r1, r1, r0
  6786. 8006e08: 6021 streq r1, [r4, #0]
  6787. 8006e0a: 6062 str r2, [r4, #4]
  6788. 8006e0c: 605c str r4, [r3, #4]
  6789. 8006e0e: e7c9 b.n 8006da4 <_free_r+0x24>
  6790. 8006e10: bd38 pop {r3, r4, r5, pc}
  6791. 8006e12: bf00 nop
  6792. 8006e14: 200002ac .word 0x200002ac
  6793. 08006e18 <_malloc_r>:
  6794. 8006e18: b570 push {r4, r5, r6, lr}
  6795. 8006e1a: 1ccd adds r5, r1, #3
  6796. 8006e1c: f025 0503 bic.w r5, r5, #3
  6797. 8006e20: 3508 adds r5, #8
  6798. 8006e22: 2d0c cmp r5, #12
  6799. 8006e24: bf38 it cc
  6800. 8006e26: 250c movcc r5, #12
  6801. 8006e28: 2d00 cmp r5, #0
  6802. 8006e2a: 4606 mov r6, r0
  6803. 8006e2c: db01 blt.n 8006e32 <_malloc_r+0x1a>
  6804. 8006e2e: 42a9 cmp r1, r5
  6805. 8006e30: d903 bls.n 8006e3a <_malloc_r+0x22>
  6806. 8006e32: 230c movs r3, #12
  6807. 8006e34: 6033 str r3, [r6, #0]
  6808. 8006e36: 2000 movs r0, #0
  6809. 8006e38: bd70 pop {r4, r5, r6, pc}
  6810. 8006e3a: f000 fbd9 bl 80075f0 <__malloc_lock>
  6811. 8006e3e: 4a23 ldr r2, [pc, #140] ; (8006ecc <_malloc_r+0xb4>)
  6812. 8006e40: 6814 ldr r4, [r2, #0]
  6813. 8006e42: 4621 mov r1, r4
  6814. 8006e44: b991 cbnz r1, 8006e6c <_malloc_r+0x54>
  6815. 8006e46: 4c22 ldr r4, [pc, #136] ; (8006ed0 <_malloc_r+0xb8>)
  6816. 8006e48: 6823 ldr r3, [r4, #0]
  6817. 8006e4a: b91b cbnz r3, 8006e54 <_malloc_r+0x3c>
  6818. 8006e4c: 4630 mov r0, r6
  6819. 8006e4e: f000 fb17 bl 8007480 <_sbrk_r>
  6820. 8006e52: 6020 str r0, [r4, #0]
  6821. 8006e54: 4629 mov r1, r5
  6822. 8006e56: 4630 mov r0, r6
  6823. 8006e58: f000 fb12 bl 8007480 <_sbrk_r>
  6824. 8006e5c: 1c43 adds r3, r0, #1
  6825. 8006e5e: d126 bne.n 8006eae <_malloc_r+0x96>
  6826. 8006e60: 230c movs r3, #12
  6827. 8006e62: 4630 mov r0, r6
  6828. 8006e64: 6033 str r3, [r6, #0]
  6829. 8006e66: f000 fbc4 bl 80075f2 <__malloc_unlock>
  6830. 8006e6a: e7e4 b.n 8006e36 <_malloc_r+0x1e>
  6831. 8006e6c: 680b ldr r3, [r1, #0]
  6832. 8006e6e: 1b5b subs r3, r3, r5
  6833. 8006e70: d41a bmi.n 8006ea8 <_malloc_r+0x90>
  6834. 8006e72: 2b0b cmp r3, #11
  6835. 8006e74: d90f bls.n 8006e96 <_malloc_r+0x7e>
  6836. 8006e76: 600b str r3, [r1, #0]
  6837. 8006e78: 18cc adds r4, r1, r3
  6838. 8006e7a: 50cd str r5, [r1, r3]
  6839. 8006e7c: 4630 mov r0, r6
  6840. 8006e7e: f000 fbb8 bl 80075f2 <__malloc_unlock>
  6841. 8006e82: f104 000b add.w r0, r4, #11
  6842. 8006e86: 1d23 adds r3, r4, #4
  6843. 8006e88: f020 0007 bic.w r0, r0, #7
  6844. 8006e8c: 1ac3 subs r3, r0, r3
  6845. 8006e8e: d01b beq.n 8006ec8 <_malloc_r+0xb0>
  6846. 8006e90: 425a negs r2, r3
  6847. 8006e92: 50e2 str r2, [r4, r3]
  6848. 8006e94: bd70 pop {r4, r5, r6, pc}
  6849. 8006e96: 428c cmp r4, r1
  6850. 8006e98: bf0b itete eq
  6851. 8006e9a: 6863 ldreq r3, [r4, #4]
  6852. 8006e9c: 684b ldrne r3, [r1, #4]
  6853. 8006e9e: 6013 streq r3, [r2, #0]
  6854. 8006ea0: 6063 strne r3, [r4, #4]
  6855. 8006ea2: bf18 it ne
  6856. 8006ea4: 460c movne r4, r1
  6857. 8006ea6: e7e9 b.n 8006e7c <_malloc_r+0x64>
  6858. 8006ea8: 460c mov r4, r1
  6859. 8006eaa: 6849 ldr r1, [r1, #4]
  6860. 8006eac: e7ca b.n 8006e44 <_malloc_r+0x2c>
  6861. 8006eae: 1cc4 adds r4, r0, #3
  6862. 8006eb0: f024 0403 bic.w r4, r4, #3
  6863. 8006eb4: 42a0 cmp r0, r4
  6864. 8006eb6: d005 beq.n 8006ec4 <_malloc_r+0xac>
  6865. 8006eb8: 1a21 subs r1, r4, r0
  6866. 8006eba: 4630 mov r0, r6
  6867. 8006ebc: f000 fae0 bl 8007480 <_sbrk_r>
  6868. 8006ec0: 3001 adds r0, #1
  6869. 8006ec2: d0cd beq.n 8006e60 <_malloc_r+0x48>
  6870. 8006ec4: 6025 str r5, [r4, #0]
  6871. 8006ec6: e7d9 b.n 8006e7c <_malloc_r+0x64>
  6872. 8006ec8: bd70 pop {r4, r5, r6, pc}
  6873. 8006eca: bf00 nop
  6874. 8006ecc: 200002ac .word 0x200002ac
  6875. 8006ed0: 200002b0 .word 0x200002b0
  6876. 08006ed4 <__sfputc_r>:
  6877. 8006ed4: 6893 ldr r3, [r2, #8]
  6878. 8006ed6: b410 push {r4}
  6879. 8006ed8: 3b01 subs r3, #1
  6880. 8006eda: 2b00 cmp r3, #0
  6881. 8006edc: 6093 str r3, [r2, #8]
  6882. 8006ede: da08 bge.n 8006ef2 <__sfputc_r+0x1e>
  6883. 8006ee0: 6994 ldr r4, [r2, #24]
  6884. 8006ee2: 42a3 cmp r3, r4
  6885. 8006ee4: db02 blt.n 8006eec <__sfputc_r+0x18>
  6886. 8006ee6: b2cb uxtb r3, r1
  6887. 8006ee8: 2b0a cmp r3, #10
  6888. 8006eea: d102 bne.n 8006ef2 <__sfputc_r+0x1e>
  6889. 8006eec: bc10 pop {r4}
  6890. 8006eee: f7ff bc9f b.w 8006830 <__swbuf_r>
  6891. 8006ef2: 6813 ldr r3, [r2, #0]
  6892. 8006ef4: 1c58 adds r0, r3, #1
  6893. 8006ef6: 6010 str r0, [r2, #0]
  6894. 8006ef8: 7019 strb r1, [r3, #0]
  6895. 8006efa: b2c8 uxtb r0, r1
  6896. 8006efc: bc10 pop {r4}
  6897. 8006efe: 4770 bx lr
  6898. 08006f00 <__sfputs_r>:
  6899. 8006f00: b5f8 push {r3, r4, r5, r6, r7, lr}
  6900. 8006f02: 4606 mov r6, r0
  6901. 8006f04: 460f mov r7, r1
  6902. 8006f06: 4614 mov r4, r2
  6903. 8006f08: 18d5 adds r5, r2, r3
  6904. 8006f0a: 42ac cmp r4, r5
  6905. 8006f0c: d101 bne.n 8006f12 <__sfputs_r+0x12>
  6906. 8006f0e: 2000 movs r0, #0
  6907. 8006f10: e007 b.n 8006f22 <__sfputs_r+0x22>
  6908. 8006f12: 463a mov r2, r7
  6909. 8006f14: f814 1b01 ldrb.w r1, [r4], #1
  6910. 8006f18: 4630 mov r0, r6
  6911. 8006f1a: f7ff ffdb bl 8006ed4 <__sfputc_r>
  6912. 8006f1e: 1c43 adds r3, r0, #1
  6913. 8006f20: d1f3 bne.n 8006f0a <__sfputs_r+0xa>
  6914. 8006f22: bdf8 pop {r3, r4, r5, r6, r7, pc}
  6915. 08006f24 <_vfiprintf_r>:
  6916. 8006f24: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  6917. 8006f28: b09d sub sp, #116 ; 0x74
  6918. 8006f2a: 460c mov r4, r1
  6919. 8006f2c: 4617 mov r7, r2
  6920. 8006f2e: 9303 str r3, [sp, #12]
  6921. 8006f30: 4606 mov r6, r0
  6922. 8006f32: b118 cbz r0, 8006f3c <_vfiprintf_r+0x18>
  6923. 8006f34: 6983 ldr r3, [r0, #24]
  6924. 8006f36: b90b cbnz r3, 8006f3c <_vfiprintf_r+0x18>
  6925. 8006f38: f7ff fe2c bl 8006b94 <__sinit>
  6926. 8006f3c: 4b7c ldr r3, [pc, #496] ; (8007130 <_vfiprintf_r+0x20c>)
  6927. 8006f3e: 429c cmp r4, r3
  6928. 8006f40: d157 bne.n 8006ff2 <_vfiprintf_r+0xce>
  6929. 8006f42: 6874 ldr r4, [r6, #4]
  6930. 8006f44: 89a3 ldrh r3, [r4, #12]
  6931. 8006f46: 0718 lsls r0, r3, #28
  6932. 8006f48: d55d bpl.n 8007006 <_vfiprintf_r+0xe2>
  6933. 8006f4a: 6923 ldr r3, [r4, #16]
  6934. 8006f4c: 2b00 cmp r3, #0
  6935. 8006f4e: d05a beq.n 8007006 <_vfiprintf_r+0xe2>
  6936. 8006f50: 2300 movs r3, #0
  6937. 8006f52: 9309 str r3, [sp, #36] ; 0x24
  6938. 8006f54: 2320 movs r3, #32
  6939. 8006f56: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  6940. 8006f5a: 2330 movs r3, #48 ; 0x30
  6941. 8006f5c: f04f 0b01 mov.w fp, #1
  6942. 8006f60: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  6943. 8006f64: 46b8 mov r8, r7
  6944. 8006f66: 4645 mov r5, r8
  6945. 8006f68: f815 3b01 ldrb.w r3, [r5], #1
  6946. 8006f6c: 2b00 cmp r3, #0
  6947. 8006f6e: d155 bne.n 800701c <_vfiprintf_r+0xf8>
  6948. 8006f70: ebb8 0a07 subs.w sl, r8, r7
  6949. 8006f74: d00b beq.n 8006f8e <_vfiprintf_r+0x6a>
  6950. 8006f76: 4653 mov r3, sl
  6951. 8006f78: 463a mov r2, r7
  6952. 8006f7a: 4621 mov r1, r4
  6953. 8006f7c: 4630 mov r0, r6
  6954. 8006f7e: f7ff ffbf bl 8006f00 <__sfputs_r>
  6955. 8006f82: 3001 adds r0, #1
  6956. 8006f84: f000 80c4 beq.w 8007110 <_vfiprintf_r+0x1ec>
  6957. 8006f88: 9b09 ldr r3, [sp, #36] ; 0x24
  6958. 8006f8a: 4453 add r3, sl
  6959. 8006f8c: 9309 str r3, [sp, #36] ; 0x24
  6960. 8006f8e: f898 3000 ldrb.w r3, [r8]
  6961. 8006f92: 2b00 cmp r3, #0
  6962. 8006f94: f000 80bc beq.w 8007110 <_vfiprintf_r+0x1ec>
  6963. 8006f98: 2300 movs r3, #0
  6964. 8006f9a: f04f 32ff mov.w r2, #4294967295
  6965. 8006f9e: 9304 str r3, [sp, #16]
  6966. 8006fa0: 9307 str r3, [sp, #28]
  6967. 8006fa2: 9205 str r2, [sp, #20]
  6968. 8006fa4: 9306 str r3, [sp, #24]
  6969. 8006fa6: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  6970. 8006faa: 931a str r3, [sp, #104] ; 0x68
  6971. 8006fac: 2205 movs r2, #5
  6972. 8006fae: 7829 ldrb r1, [r5, #0]
  6973. 8006fb0: 4860 ldr r0, [pc, #384] ; (8007134 <_vfiprintf_r+0x210>)
  6974. 8006fb2: f000 fb0f bl 80075d4 <memchr>
  6975. 8006fb6: f105 0801 add.w r8, r5, #1
  6976. 8006fba: 9b04 ldr r3, [sp, #16]
  6977. 8006fbc: 2800 cmp r0, #0
  6978. 8006fbe: d131 bne.n 8007024 <_vfiprintf_r+0x100>
  6979. 8006fc0: 06d9 lsls r1, r3, #27
  6980. 8006fc2: bf44 itt mi
  6981. 8006fc4: 2220 movmi r2, #32
  6982. 8006fc6: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  6983. 8006fca: 071a lsls r2, r3, #28
  6984. 8006fcc: bf44 itt mi
  6985. 8006fce: 222b movmi r2, #43 ; 0x2b
  6986. 8006fd0: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53
  6987. 8006fd4: 782a ldrb r2, [r5, #0]
  6988. 8006fd6: 2a2a cmp r2, #42 ; 0x2a
  6989. 8006fd8: d02c beq.n 8007034 <_vfiprintf_r+0x110>
  6990. 8006fda: 2100 movs r1, #0
  6991. 8006fdc: 200a movs r0, #10
  6992. 8006fde: 9a07 ldr r2, [sp, #28]
  6993. 8006fe0: 46a8 mov r8, r5
  6994. 8006fe2: f898 3000 ldrb.w r3, [r8]
  6995. 8006fe6: 3501 adds r5, #1
  6996. 8006fe8: 3b30 subs r3, #48 ; 0x30
  6997. 8006fea: 2b09 cmp r3, #9
  6998. 8006fec: d96d bls.n 80070ca <_vfiprintf_r+0x1a6>
  6999. 8006fee: b371 cbz r1, 800704e <_vfiprintf_r+0x12a>
  7000. 8006ff0: e026 b.n 8007040 <_vfiprintf_r+0x11c>
  7001. 8006ff2: 4b51 ldr r3, [pc, #324] ; (8007138 <_vfiprintf_r+0x214>)
  7002. 8006ff4: 429c cmp r4, r3
  7003. 8006ff6: d101 bne.n 8006ffc <_vfiprintf_r+0xd8>
  7004. 8006ff8: 68b4 ldr r4, [r6, #8]
  7005. 8006ffa: e7a3 b.n 8006f44 <_vfiprintf_r+0x20>
  7006. 8006ffc: 4b4f ldr r3, [pc, #316] ; (800713c <_vfiprintf_r+0x218>)
  7007. 8006ffe: 429c cmp r4, r3
  7008. 8007000: bf08 it eq
  7009. 8007002: 68f4 ldreq r4, [r6, #12]
  7010. 8007004: e79e b.n 8006f44 <_vfiprintf_r+0x20>
  7011. 8007006: 4621 mov r1, r4
  7012. 8007008: 4630 mov r0, r6
  7013. 800700a: f7ff fc63 bl 80068d4 <__swsetup_r>
  7014. 800700e: 2800 cmp r0, #0
  7015. 8007010: d09e beq.n 8006f50 <_vfiprintf_r+0x2c>
  7016. 8007012: f04f 30ff mov.w r0, #4294967295
  7017. 8007016: b01d add sp, #116 ; 0x74
  7018. 8007018: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  7019. 800701c: 2b25 cmp r3, #37 ; 0x25
  7020. 800701e: d0a7 beq.n 8006f70 <_vfiprintf_r+0x4c>
  7021. 8007020: 46a8 mov r8, r5
  7022. 8007022: e7a0 b.n 8006f66 <_vfiprintf_r+0x42>
  7023. 8007024: 4a43 ldr r2, [pc, #268] ; (8007134 <_vfiprintf_r+0x210>)
  7024. 8007026: 4645 mov r5, r8
  7025. 8007028: 1a80 subs r0, r0, r2
  7026. 800702a: fa0b f000 lsl.w r0, fp, r0
  7027. 800702e: 4318 orrs r0, r3
  7028. 8007030: 9004 str r0, [sp, #16]
  7029. 8007032: e7bb b.n 8006fac <_vfiprintf_r+0x88>
  7030. 8007034: 9a03 ldr r2, [sp, #12]
  7031. 8007036: 1d11 adds r1, r2, #4
  7032. 8007038: 6812 ldr r2, [r2, #0]
  7033. 800703a: 9103 str r1, [sp, #12]
  7034. 800703c: 2a00 cmp r2, #0
  7035. 800703e: db01 blt.n 8007044 <_vfiprintf_r+0x120>
  7036. 8007040: 9207 str r2, [sp, #28]
  7037. 8007042: e004 b.n 800704e <_vfiprintf_r+0x12a>
  7038. 8007044: 4252 negs r2, r2
  7039. 8007046: f043 0302 orr.w r3, r3, #2
  7040. 800704a: 9207 str r2, [sp, #28]
  7041. 800704c: 9304 str r3, [sp, #16]
  7042. 800704e: f898 3000 ldrb.w r3, [r8]
  7043. 8007052: 2b2e cmp r3, #46 ; 0x2e
  7044. 8007054: d110 bne.n 8007078 <_vfiprintf_r+0x154>
  7045. 8007056: f898 3001 ldrb.w r3, [r8, #1]
  7046. 800705a: f108 0101 add.w r1, r8, #1
  7047. 800705e: 2b2a cmp r3, #42 ; 0x2a
  7048. 8007060: d137 bne.n 80070d2 <_vfiprintf_r+0x1ae>
  7049. 8007062: 9b03 ldr r3, [sp, #12]
  7050. 8007064: f108 0802 add.w r8, r8, #2
  7051. 8007068: 1d1a adds r2, r3, #4
  7052. 800706a: 681b ldr r3, [r3, #0]
  7053. 800706c: 9203 str r2, [sp, #12]
  7054. 800706e: 2b00 cmp r3, #0
  7055. 8007070: bfb8 it lt
  7056. 8007072: f04f 33ff movlt.w r3, #4294967295
  7057. 8007076: 9305 str r3, [sp, #20]
  7058. 8007078: 4d31 ldr r5, [pc, #196] ; (8007140 <_vfiprintf_r+0x21c>)
  7059. 800707a: 2203 movs r2, #3
  7060. 800707c: f898 1000 ldrb.w r1, [r8]
  7061. 8007080: 4628 mov r0, r5
  7062. 8007082: f000 faa7 bl 80075d4 <memchr>
  7063. 8007086: b140 cbz r0, 800709a <_vfiprintf_r+0x176>
  7064. 8007088: 2340 movs r3, #64 ; 0x40
  7065. 800708a: 1b40 subs r0, r0, r5
  7066. 800708c: fa03 f000 lsl.w r0, r3, r0
  7067. 8007090: 9b04 ldr r3, [sp, #16]
  7068. 8007092: f108 0801 add.w r8, r8, #1
  7069. 8007096: 4303 orrs r3, r0
  7070. 8007098: 9304 str r3, [sp, #16]
  7071. 800709a: f898 1000 ldrb.w r1, [r8]
  7072. 800709e: 2206 movs r2, #6
  7073. 80070a0: 4828 ldr r0, [pc, #160] ; (8007144 <_vfiprintf_r+0x220>)
  7074. 80070a2: f108 0701 add.w r7, r8, #1
  7075. 80070a6: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  7076. 80070aa: f000 fa93 bl 80075d4 <memchr>
  7077. 80070ae: 2800 cmp r0, #0
  7078. 80070b0: d034 beq.n 800711c <_vfiprintf_r+0x1f8>
  7079. 80070b2: 4b25 ldr r3, [pc, #148] ; (8007148 <_vfiprintf_r+0x224>)
  7080. 80070b4: bb03 cbnz r3, 80070f8 <_vfiprintf_r+0x1d4>
  7081. 80070b6: 9b03 ldr r3, [sp, #12]
  7082. 80070b8: 3307 adds r3, #7
  7083. 80070ba: f023 0307 bic.w r3, r3, #7
  7084. 80070be: 3308 adds r3, #8
  7085. 80070c0: 9303 str r3, [sp, #12]
  7086. 80070c2: 9b09 ldr r3, [sp, #36] ; 0x24
  7087. 80070c4: 444b add r3, r9
  7088. 80070c6: 9309 str r3, [sp, #36] ; 0x24
  7089. 80070c8: e74c b.n 8006f64 <_vfiprintf_r+0x40>
  7090. 80070ca: fb00 3202 mla r2, r0, r2, r3
  7091. 80070ce: 2101 movs r1, #1
  7092. 80070d0: e786 b.n 8006fe0 <_vfiprintf_r+0xbc>
  7093. 80070d2: 2300 movs r3, #0
  7094. 80070d4: 250a movs r5, #10
  7095. 80070d6: 4618 mov r0, r3
  7096. 80070d8: 9305 str r3, [sp, #20]
  7097. 80070da: 4688 mov r8, r1
  7098. 80070dc: f898 2000 ldrb.w r2, [r8]
  7099. 80070e0: 3101 adds r1, #1
  7100. 80070e2: 3a30 subs r2, #48 ; 0x30
  7101. 80070e4: 2a09 cmp r2, #9
  7102. 80070e6: d903 bls.n 80070f0 <_vfiprintf_r+0x1cc>
  7103. 80070e8: 2b00 cmp r3, #0
  7104. 80070ea: d0c5 beq.n 8007078 <_vfiprintf_r+0x154>
  7105. 80070ec: 9005 str r0, [sp, #20]
  7106. 80070ee: e7c3 b.n 8007078 <_vfiprintf_r+0x154>
  7107. 80070f0: fb05 2000 mla r0, r5, r0, r2
  7108. 80070f4: 2301 movs r3, #1
  7109. 80070f6: e7f0 b.n 80070da <_vfiprintf_r+0x1b6>
  7110. 80070f8: ab03 add r3, sp, #12
  7111. 80070fa: 9300 str r3, [sp, #0]
  7112. 80070fc: 4622 mov r2, r4
  7113. 80070fe: 4b13 ldr r3, [pc, #76] ; (800714c <_vfiprintf_r+0x228>)
  7114. 8007100: a904 add r1, sp, #16
  7115. 8007102: 4630 mov r0, r6
  7116. 8007104: f3af 8000 nop.w
  7117. 8007108: f1b0 3fff cmp.w r0, #4294967295
  7118. 800710c: 4681 mov r9, r0
  7119. 800710e: d1d8 bne.n 80070c2 <_vfiprintf_r+0x19e>
  7120. 8007110: 89a3 ldrh r3, [r4, #12]
  7121. 8007112: 065b lsls r3, r3, #25
  7122. 8007114: f53f af7d bmi.w 8007012 <_vfiprintf_r+0xee>
  7123. 8007118: 9809 ldr r0, [sp, #36] ; 0x24
  7124. 800711a: e77c b.n 8007016 <_vfiprintf_r+0xf2>
  7125. 800711c: ab03 add r3, sp, #12
  7126. 800711e: 9300 str r3, [sp, #0]
  7127. 8007120: 4622 mov r2, r4
  7128. 8007122: 4b0a ldr r3, [pc, #40] ; (800714c <_vfiprintf_r+0x228>)
  7129. 8007124: a904 add r1, sp, #16
  7130. 8007126: 4630 mov r0, r6
  7131. 8007128: f000 f88a bl 8007240 <_printf_i>
  7132. 800712c: e7ec b.n 8007108 <_vfiprintf_r+0x1e4>
  7133. 800712e: bf00 nop
  7134. 8007130: 080077cc .word 0x080077cc
  7135. 8007134: 0800780c .word 0x0800780c
  7136. 8007138: 080077ec .word 0x080077ec
  7137. 800713c: 080077ac .word 0x080077ac
  7138. 8007140: 08007812 .word 0x08007812
  7139. 8007144: 08007816 .word 0x08007816
  7140. 8007148: 00000000 .word 0x00000000
  7141. 800714c: 08006f01 .word 0x08006f01
  7142. 08007150 <_printf_common>:
  7143. 8007150: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  7144. 8007154: 4691 mov r9, r2
  7145. 8007156: 461f mov r7, r3
  7146. 8007158: 688a ldr r2, [r1, #8]
  7147. 800715a: 690b ldr r3, [r1, #16]
  7148. 800715c: 4606 mov r6, r0
  7149. 800715e: 4293 cmp r3, r2
  7150. 8007160: bfb8 it lt
  7151. 8007162: 4613 movlt r3, r2
  7152. 8007164: f8c9 3000 str.w r3, [r9]
  7153. 8007168: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  7154. 800716c: 460c mov r4, r1
  7155. 800716e: f8dd 8020 ldr.w r8, [sp, #32]
  7156. 8007172: b112 cbz r2, 800717a <_printf_common+0x2a>
  7157. 8007174: 3301 adds r3, #1
  7158. 8007176: f8c9 3000 str.w r3, [r9]
  7159. 800717a: 6823 ldr r3, [r4, #0]
  7160. 800717c: 0699 lsls r1, r3, #26
  7161. 800717e: bf42 ittt mi
  7162. 8007180: f8d9 3000 ldrmi.w r3, [r9]
  7163. 8007184: 3302 addmi r3, #2
  7164. 8007186: f8c9 3000 strmi.w r3, [r9]
  7165. 800718a: 6825 ldr r5, [r4, #0]
  7166. 800718c: f015 0506 ands.w r5, r5, #6
  7167. 8007190: d107 bne.n 80071a2 <_printf_common+0x52>
  7168. 8007192: f104 0a19 add.w sl, r4, #25
  7169. 8007196: 68e3 ldr r3, [r4, #12]
  7170. 8007198: f8d9 2000 ldr.w r2, [r9]
  7171. 800719c: 1a9b subs r3, r3, r2
  7172. 800719e: 429d cmp r5, r3
  7173. 80071a0: db2a blt.n 80071f8 <_printf_common+0xa8>
  7174. 80071a2: f894 3043 ldrb.w r3, [r4, #67] ; 0x43
  7175. 80071a6: 6822 ldr r2, [r4, #0]
  7176. 80071a8: 3300 adds r3, #0
  7177. 80071aa: bf18 it ne
  7178. 80071ac: 2301 movne r3, #1
  7179. 80071ae: 0692 lsls r2, r2, #26
  7180. 80071b0: d42f bmi.n 8007212 <_printf_common+0xc2>
  7181. 80071b2: f104 0243 add.w r2, r4, #67 ; 0x43
  7182. 80071b6: 4639 mov r1, r7
  7183. 80071b8: 4630 mov r0, r6
  7184. 80071ba: 47c0 blx r8
  7185. 80071bc: 3001 adds r0, #1
  7186. 80071be: d022 beq.n 8007206 <_printf_common+0xb6>
  7187. 80071c0: 6823 ldr r3, [r4, #0]
  7188. 80071c2: 68e5 ldr r5, [r4, #12]
  7189. 80071c4: f003 0306 and.w r3, r3, #6
  7190. 80071c8: 2b04 cmp r3, #4
  7191. 80071ca: bf18 it ne
  7192. 80071cc: 2500 movne r5, #0
  7193. 80071ce: f8d9 2000 ldr.w r2, [r9]
  7194. 80071d2: f04f 0900 mov.w r9, #0
  7195. 80071d6: bf08 it eq
  7196. 80071d8: 1aad subeq r5, r5, r2
  7197. 80071da: 68a3 ldr r3, [r4, #8]
  7198. 80071dc: 6922 ldr r2, [r4, #16]
  7199. 80071de: bf08 it eq
  7200. 80071e0: ea25 75e5 biceq.w r5, r5, r5, asr #31
  7201. 80071e4: 4293 cmp r3, r2
  7202. 80071e6: bfc4 itt gt
  7203. 80071e8: 1a9b subgt r3, r3, r2
  7204. 80071ea: 18ed addgt r5, r5, r3
  7205. 80071ec: 341a adds r4, #26
  7206. 80071ee: 454d cmp r5, r9
  7207. 80071f0: d11b bne.n 800722a <_printf_common+0xda>
  7208. 80071f2: 2000 movs r0, #0
  7209. 80071f4: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  7210. 80071f8: 2301 movs r3, #1
  7211. 80071fa: 4652 mov r2, sl
  7212. 80071fc: 4639 mov r1, r7
  7213. 80071fe: 4630 mov r0, r6
  7214. 8007200: 47c0 blx r8
  7215. 8007202: 3001 adds r0, #1
  7216. 8007204: d103 bne.n 800720e <_printf_common+0xbe>
  7217. 8007206: f04f 30ff mov.w r0, #4294967295
  7218. 800720a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  7219. 800720e: 3501 adds r5, #1
  7220. 8007210: e7c1 b.n 8007196 <_printf_common+0x46>
  7221. 8007212: 2030 movs r0, #48 ; 0x30
  7222. 8007214: 18e1 adds r1, r4, r3
  7223. 8007216: f881 0043 strb.w r0, [r1, #67] ; 0x43
  7224. 800721a: 1c5a adds r2, r3, #1
  7225. 800721c: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  7226. 8007220: 4422 add r2, r4
  7227. 8007222: 3302 adds r3, #2
  7228. 8007224: f882 1043 strb.w r1, [r2, #67] ; 0x43
  7229. 8007228: e7c3 b.n 80071b2 <_printf_common+0x62>
  7230. 800722a: 2301 movs r3, #1
  7231. 800722c: 4622 mov r2, r4
  7232. 800722e: 4639 mov r1, r7
  7233. 8007230: 4630 mov r0, r6
  7234. 8007232: 47c0 blx r8
  7235. 8007234: 3001 adds r0, #1
  7236. 8007236: d0e6 beq.n 8007206 <_printf_common+0xb6>
  7237. 8007238: f109 0901 add.w r9, r9, #1
  7238. 800723c: e7d7 b.n 80071ee <_printf_common+0x9e>
  7239. ...
  7240. 08007240 <_printf_i>:
  7241. 8007240: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  7242. 8007244: 4617 mov r7, r2
  7243. 8007246: 7e0a ldrb r2, [r1, #24]
  7244. 8007248: b085 sub sp, #20
  7245. 800724a: 2a6e cmp r2, #110 ; 0x6e
  7246. 800724c: 4698 mov r8, r3
  7247. 800724e: 4606 mov r6, r0
  7248. 8007250: 460c mov r4, r1
  7249. 8007252: 9b0c ldr r3, [sp, #48] ; 0x30
  7250. 8007254: f101 0e43 add.w lr, r1, #67 ; 0x43
  7251. 8007258: f000 80bc beq.w 80073d4 <_printf_i+0x194>
  7252. 800725c: d81a bhi.n 8007294 <_printf_i+0x54>
  7253. 800725e: 2a63 cmp r2, #99 ; 0x63
  7254. 8007260: d02e beq.n 80072c0 <_printf_i+0x80>
  7255. 8007262: d80a bhi.n 800727a <_printf_i+0x3a>
  7256. 8007264: 2a00 cmp r2, #0
  7257. 8007266: f000 80c8 beq.w 80073fa <_printf_i+0x1ba>
  7258. 800726a: 2a58 cmp r2, #88 ; 0x58
  7259. 800726c: f000 808a beq.w 8007384 <_printf_i+0x144>
  7260. 8007270: f104 0542 add.w r5, r4, #66 ; 0x42
  7261. 8007274: f884 2042 strb.w r2, [r4, #66] ; 0x42
  7262. 8007278: e02a b.n 80072d0 <_printf_i+0x90>
  7263. 800727a: 2a64 cmp r2, #100 ; 0x64
  7264. 800727c: d001 beq.n 8007282 <_printf_i+0x42>
  7265. 800727e: 2a69 cmp r2, #105 ; 0x69
  7266. 8007280: d1f6 bne.n 8007270 <_printf_i+0x30>
  7267. 8007282: 6821 ldr r1, [r4, #0]
  7268. 8007284: 681a ldr r2, [r3, #0]
  7269. 8007286: f011 0f80 tst.w r1, #128 ; 0x80
  7270. 800728a: d023 beq.n 80072d4 <_printf_i+0x94>
  7271. 800728c: 1d11 adds r1, r2, #4
  7272. 800728e: 6019 str r1, [r3, #0]
  7273. 8007290: 6813 ldr r3, [r2, #0]
  7274. 8007292: e027 b.n 80072e4 <_printf_i+0xa4>
  7275. 8007294: 2a73 cmp r2, #115 ; 0x73
  7276. 8007296: f000 80b4 beq.w 8007402 <_printf_i+0x1c2>
  7277. 800729a: d808 bhi.n 80072ae <_printf_i+0x6e>
  7278. 800729c: 2a6f cmp r2, #111 ; 0x6f
  7279. 800729e: d02a beq.n 80072f6 <_printf_i+0xb6>
  7280. 80072a0: 2a70 cmp r2, #112 ; 0x70
  7281. 80072a2: d1e5 bne.n 8007270 <_printf_i+0x30>
  7282. 80072a4: 680a ldr r2, [r1, #0]
  7283. 80072a6: f042 0220 orr.w r2, r2, #32
  7284. 80072aa: 600a str r2, [r1, #0]
  7285. 80072ac: e003 b.n 80072b6 <_printf_i+0x76>
  7286. 80072ae: 2a75 cmp r2, #117 ; 0x75
  7287. 80072b0: d021 beq.n 80072f6 <_printf_i+0xb6>
  7288. 80072b2: 2a78 cmp r2, #120 ; 0x78
  7289. 80072b4: d1dc bne.n 8007270 <_printf_i+0x30>
  7290. 80072b6: 2278 movs r2, #120 ; 0x78
  7291. 80072b8: 496f ldr r1, [pc, #444] ; (8007478 <_printf_i+0x238>)
  7292. 80072ba: f884 2045 strb.w r2, [r4, #69] ; 0x45
  7293. 80072be: e064 b.n 800738a <_printf_i+0x14a>
  7294. 80072c0: 681a ldr r2, [r3, #0]
  7295. 80072c2: f101 0542 add.w r5, r1, #66 ; 0x42
  7296. 80072c6: 1d11 adds r1, r2, #4
  7297. 80072c8: 6019 str r1, [r3, #0]
  7298. 80072ca: 6813 ldr r3, [r2, #0]
  7299. 80072cc: f884 3042 strb.w r3, [r4, #66] ; 0x42
  7300. 80072d0: 2301 movs r3, #1
  7301. 80072d2: e0a3 b.n 800741c <_printf_i+0x1dc>
  7302. 80072d4: f011 0f40 tst.w r1, #64 ; 0x40
  7303. 80072d8: f102 0104 add.w r1, r2, #4
  7304. 80072dc: 6019 str r1, [r3, #0]
  7305. 80072de: d0d7 beq.n 8007290 <_printf_i+0x50>
  7306. 80072e0: f9b2 3000 ldrsh.w r3, [r2]
  7307. 80072e4: 2b00 cmp r3, #0
  7308. 80072e6: da03 bge.n 80072f0 <_printf_i+0xb0>
  7309. 80072e8: 222d movs r2, #45 ; 0x2d
  7310. 80072ea: 425b negs r3, r3
  7311. 80072ec: f884 2043 strb.w r2, [r4, #67] ; 0x43
  7312. 80072f0: 4962 ldr r1, [pc, #392] ; (800747c <_printf_i+0x23c>)
  7313. 80072f2: 220a movs r2, #10
  7314. 80072f4: e017 b.n 8007326 <_printf_i+0xe6>
  7315. 80072f6: 6820 ldr r0, [r4, #0]
  7316. 80072f8: 6819 ldr r1, [r3, #0]
  7317. 80072fa: f010 0f80 tst.w r0, #128 ; 0x80
  7318. 80072fe: d003 beq.n 8007308 <_printf_i+0xc8>
  7319. 8007300: 1d08 adds r0, r1, #4
  7320. 8007302: 6018 str r0, [r3, #0]
  7321. 8007304: 680b ldr r3, [r1, #0]
  7322. 8007306: e006 b.n 8007316 <_printf_i+0xd6>
  7323. 8007308: f010 0f40 tst.w r0, #64 ; 0x40
  7324. 800730c: f101 0004 add.w r0, r1, #4
  7325. 8007310: 6018 str r0, [r3, #0]
  7326. 8007312: d0f7 beq.n 8007304 <_printf_i+0xc4>
  7327. 8007314: 880b ldrh r3, [r1, #0]
  7328. 8007316: 2a6f cmp r2, #111 ; 0x6f
  7329. 8007318: bf14 ite ne
  7330. 800731a: 220a movne r2, #10
  7331. 800731c: 2208 moveq r2, #8
  7332. 800731e: 4957 ldr r1, [pc, #348] ; (800747c <_printf_i+0x23c>)
  7333. 8007320: 2000 movs r0, #0
  7334. 8007322: f884 0043 strb.w r0, [r4, #67] ; 0x43
  7335. 8007326: 6865 ldr r5, [r4, #4]
  7336. 8007328: 2d00 cmp r5, #0
  7337. 800732a: 60a5 str r5, [r4, #8]
  7338. 800732c: f2c0 809c blt.w 8007468 <_printf_i+0x228>
  7339. 8007330: 6820 ldr r0, [r4, #0]
  7340. 8007332: f020 0004 bic.w r0, r0, #4
  7341. 8007336: 6020 str r0, [r4, #0]
  7342. 8007338: 2b00 cmp r3, #0
  7343. 800733a: d13f bne.n 80073bc <_printf_i+0x17c>
  7344. 800733c: 2d00 cmp r5, #0
  7345. 800733e: f040 8095 bne.w 800746c <_printf_i+0x22c>
  7346. 8007342: 4675 mov r5, lr
  7347. 8007344: 2a08 cmp r2, #8
  7348. 8007346: d10b bne.n 8007360 <_printf_i+0x120>
  7349. 8007348: 6823 ldr r3, [r4, #0]
  7350. 800734a: 07da lsls r2, r3, #31
  7351. 800734c: d508 bpl.n 8007360 <_printf_i+0x120>
  7352. 800734e: 6923 ldr r3, [r4, #16]
  7353. 8007350: 6862 ldr r2, [r4, #4]
  7354. 8007352: 429a cmp r2, r3
  7355. 8007354: bfde ittt le
  7356. 8007356: 2330 movle r3, #48 ; 0x30
  7357. 8007358: f805 3c01 strble.w r3, [r5, #-1]
  7358. 800735c: f105 35ff addle.w r5, r5, #4294967295
  7359. 8007360: ebae 0305 sub.w r3, lr, r5
  7360. 8007364: 6123 str r3, [r4, #16]
  7361. 8007366: f8cd 8000 str.w r8, [sp]
  7362. 800736a: 463b mov r3, r7
  7363. 800736c: aa03 add r2, sp, #12
  7364. 800736e: 4621 mov r1, r4
  7365. 8007370: 4630 mov r0, r6
  7366. 8007372: f7ff feed bl 8007150 <_printf_common>
  7367. 8007376: 3001 adds r0, #1
  7368. 8007378: d155 bne.n 8007426 <_printf_i+0x1e6>
  7369. 800737a: f04f 30ff mov.w r0, #4294967295
  7370. 800737e: b005 add sp, #20
  7371. 8007380: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  7372. 8007384: f881 2045 strb.w r2, [r1, #69] ; 0x45
  7373. 8007388: 493c ldr r1, [pc, #240] ; (800747c <_printf_i+0x23c>)
  7374. 800738a: 6822 ldr r2, [r4, #0]
  7375. 800738c: 6818 ldr r0, [r3, #0]
  7376. 800738e: f012 0f80 tst.w r2, #128 ; 0x80
  7377. 8007392: f100 0504 add.w r5, r0, #4
  7378. 8007396: 601d str r5, [r3, #0]
  7379. 8007398: d001 beq.n 800739e <_printf_i+0x15e>
  7380. 800739a: 6803 ldr r3, [r0, #0]
  7381. 800739c: e002 b.n 80073a4 <_printf_i+0x164>
  7382. 800739e: 0655 lsls r5, r2, #25
  7383. 80073a0: d5fb bpl.n 800739a <_printf_i+0x15a>
  7384. 80073a2: 8803 ldrh r3, [r0, #0]
  7385. 80073a4: 07d0 lsls r0, r2, #31
  7386. 80073a6: bf44 itt mi
  7387. 80073a8: f042 0220 orrmi.w r2, r2, #32
  7388. 80073ac: 6022 strmi r2, [r4, #0]
  7389. 80073ae: b91b cbnz r3, 80073b8 <_printf_i+0x178>
  7390. 80073b0: 6822 ldr r2, [r4, #0]
  7391. 80073b2: f022 0220 bic.w r2, r2, #32
  7392. 80073b6: 6022 str r2, [r4, #0]
  7393. 80073b8: 2210 movs r2, #16
  7394. 80073ba: e7b1 b.n 8007320 <_printf_i+0xe0>
  7395. 80073bc: 4675 mov r5, lr
  7396. 80073be: fbb3 f0f2 udiv r0, r3, r2
  7397. 80073c2: fb02 3310 mls r3, r2, r0, r3
  7398. 80073c6: 5ccb ldrb r3, [r1, r3]
  7399. 80073c8: f805 3d01 strb.w r3, [r5, #-1]!
  7400. 80073cc: 4603 mov r3, r0
  7401. 80073ce: 2800 cmp r0, #0
  7402. 80073d0: d1f5 bne.n 80073be <_printf_i+0x17e>
  7403. 80073d2: e7b7 b.n 8007344 <_printf_i+0x104>
  7404. 80073d4: 6808 ldr r0, [r1, #0]
  7405. 80073d6: 681a ldr r2, [r3, #0]
  7406. 80073d8: f010 0f80 tst.w r0, #128 ; 0x80
  7407. 80073dc: 6949 ldr r1, [r1, #20]
  7408. 80073de: d004 beq.n 80073ea <_printf_i+0x1aa>
  7409. 80073e0: 1d10 adds r0, r2, #4
  7410. 80073e2: 6018 str r0, [r3, #0]
  7411. 80073e4: 6813 ldr r3, [r2, #0]
  7412. 80073e6: 6019 str r1, [r3, #0]
  7413. 80073e8: e007 b.n 80073fa <_printf_i+0x1ba>
  7414. 80073ea: f010 0f40 tst.w r0, #64 ; 0x40
  7415. 80073ee: f102 0004 add.w r0, r2, #4
  7416. 80073f2: 6018 str r0, [r3, #0]
  7417. 80073f4: 6813 ldr r3, [r2, #0]
  7418. 80073f6: d0f6 beq.n 80073e6 <_printf_i+0x1a6>
  7419. 80073f8: 8019 strh r1, [r3, #0]
  7420. 80073fa: 2300 movs r3, #0
  7421. 80073fc: 4675 mov r5, lr
  7422. 80073fe: 6123 str r3, [r4, #16]
  7423. 8007400: e7b1 b.n 8007366 <_printf_i+0x126>
  7424. 8007402: 681a ldr r2, [r3, #0]
  7425. 8007404: 1d11 adds r1, r2, #4
  7426. 8007406: 6019 str r1, [r3, #0]
  7427. 8007408: 6815 ldr r5, [r2, #0]
  7428. 800740a: 2100 movs r1, #0
  7429. 800740c: 6862 ldr r2, [r4, #4]
  7430. 800740e: 4628 mov r0, r5
  7431. 8007410: f000 f8e0 bl 80075d4 <memchr>
  7432. 8007414: b108 cbz r0, 800741a <_printf_i+0x1da>
  7433. 8007416: 1b40 subs r0, r0, r5
  7434. 8007418: 6060 str r0, [r4, #4]
  7435. 800741a: 6863 ldr r3, [r4, #4]
  7436. 800741c: 6123 str r3, [r4, #16]
  7437. 800741e: 2300 movs r3, #0
  7438. 8007420: f884 3043 strb.w r3, [r4, #67] ; 0x43
  7439. 8007424: e79f b.n 8007366 <_printf_i+0x126>
  7440. 8007426: 6923 ldr r3, [r4, #16]
  7441. 8007428: 462a mov r2, r5
  7442. 800742a: 4639 mov r1, r7
  7443. 800742c: 4630 mov r0, r6
  7444. 800742e: 47c0 blx r8
  7445. 8007430: 3001 adds r0, #1
  7446. 8007432: d0a2 beq.n 800737a <_printf_i+0x13a>
  7447. 8007434: 6823 ldr r3, [r4, #0]
  7448. 8007436: 079b lsls r3, r3, #30
  7449. 8007438: d507 bpl.n 800744a <_printf_i+0x20a>
  7450. 800743a: 2500 movs r5, #0
  7451. 800743c: f104 0919 add.w r9, r4, #25
  7452. 8007440: 68e3 ldr r3, [r4, #12]
  7453. 8007442: 9a03 ldr r2, [sp, #12]
  7454. 8007444: 1a9b subs r3, r3, r2
  7455. 8007446: 429d cmp r5, r3
  7456. 8007448: db05 blt.n 8007456 <_printf_i+0x216>
  7457. 800744a: 68e0 ldr r0, [r4, #12]
  7458. 800744c: 9b03 ldr r3, [sp, #12]
  7459. 800744e: 4298 cmp r0, r3
  7460. 8007450: bfb8 it lt
  7461. 8007452: 4618 movlt r0, r3
  7462. 8007454: e793 b.n 800737e <_printf_i+0x13e>
  7463. 8007456: 2301 movs r3, #1
  7464. 8007458: 464a mov r2, r9
  7465. 800745a: 4639 mov r1, r7
  7466. 800745c: 4630 mov r0, r6
  7467. 800745e: 47c0 blx r8
  7468. 8007460: 3001 adds r0, #1
  7469. 8007462: d08a beq.n 800737a <_printf_i+0x13a>
  7470. 8007464: 3501 adds r5, #1
  7471. 8007466: e7eb b.n 8007440 <_printf_i+0x200>
  7472. 8007468: 2b00 cmp r3, #0
  7473. 800746a: d1a7 bne.n 80073bc <_printf_i+0x17c>
  7474. 800746c: 780b ldrb r3, [r1, #0]
  7475. 800746e: f104 0542 add.w r5, r4, #66 ; 0x42
  7476. 8007472: f884 3042 strb.w r3, [r4, #66] ; 0x42
  7477. 8007476: e765 b.n 8007344 <_printf_i+0x104>
  7478. 8007478: 0800782e .word 0x0800782e
  7479. 800747c: 0800781d .word 0x0800781d
  7480. 08007480 <_sbrk_r>:
  7481. 8007480: b538 push {r3, r4, r5, lr}
  7482. 8007482: 2300 movs r3, #0
  7483. 8007484: 4c05 ldr r4, [pc, #20] ; (800749c <_sbrk_r+0x1c>)
  7484. 8007486: 4605 mov r5, r0
  7485. 8007488: 4608 mov r0, r1
  7486. 800748a: 6023 str r3, [r4, #0]
  7487. 800748c: f000 f8ec bl 8007668 <_sbrk>
  7488. 8007490: 1c43 adds r3, r0, #1
  7489. 8007492: d102 bne.n 800749a <_sbrk_r+0x1a>
  7490. 8007494: 6823 ldr r3, [r4, #0]
  7491. 8007496: b103 cbz r3, 800749a <_sbrk_r+0x1a>
  7492. 8007498: 602b str r3, [r5, #0]
  7493. 800749a: bd38 pop {r3, r4, r5, pc}
  7494. 800749c: 20000450 .word 0x20000450
  7495. 080074a0 <__sread>:
  7496. 80074a0: b510 push {r4, lr}
  7497. 80074a2: 460c mov r4, r1
  7498. 80074a4: f9b1 100e ldrsh.w r1, [r1, #14]
  7499. 80074a8: f000 f8a4 bl 80075f4 <_read_r>
  7500. 80074ac: 2800 cmp r0, #0
  7501. 80074ae: bfab itete ge
  7502. 80074b0: 6d63 ldrge r3, [r4, #84] ; 0x54
  7503. 80074b2: 89a3 ldrhlt r3, [r4, #12]
  7504. 80074b4: 181b addge r3, r3, r0
  7505. 80074b6: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  7506. 80074ba: bfac ite ge
  7507. 80074bc: 6563 strge r3, [r4, #84] ; 0x54
  7508. 80074be: 81a3 strhlt r3, [r4, #12]
  7509. 80074c0: bd10 pop {r4, pc}
  7510. 080074c2 <__swrite>:
  7511. 80074c2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  7512. 80074c6: 461f mov r7, r3
  7513. 80074c8: 898b ldrh r3, [r1, #12]
  7514. 80074ca: 4605 mov r5, r0
  7515. 80074cc: 05db lsls r3, r3, #23
  7516. 80074ce: 460c mov r4, r1
  7517. 80074d0: 4616 mov r6, r2
  7518. 80074d2: d505 bpl.n 80074e0 <__swrite+0x1e>
  7519. 80074d4: 2302 movs r3, #2
  7520. 80074d6: 2200 movs r2, #0
  7521. 80074d8: f9b1 100e ldrsh.w r1, [r1, #14]
  7522. 80074dc: f000 f868 bl 80075b0 <_lseek_r>
  7523. 80074e0: 89a3 ldrh r3, [r4, #12]
  7524. 80074e2: 4632 mov r2, r6
  7525. 80074e4: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  7526. 80074e8: 81a3 strh r3, [r4, #12]
  7527. 80074ea: f9b4 100e ldrsh.w r1, [r4, #14]
  7528. 80074ee: 463b mov r3, r7
  7529. 80074f0: 4628 mov r0, r5
  7530. 80074f2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  7531. 80074f6: f000 b817 b.w 8007528 <_write_r>
  7532. 080074fa <__sseek>:
  7533. 80074fa: b510 push {r4, lr}
  7534. 80074fc: 460c mov r4, r1
  7535. 80074fe: f9b1 100e ldrsh.w r1, [r1, #14]
  7536. 8007502: f000 f855 bl 80075b0 <_lseek_r>
  7537. 8007506: 1c43 adds r3, r0, #1
  7538. 8007508: 89a3 ldrh r3, [r4, #12]
  7539. 800750a: bf15 itete ne
  7540. 800750c: 6560 strne r0, [r4, #84] ; 0x54
  7541. 800750e: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  7542. 8007512: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  7543. 8007516: 81a3 strheq r3, [r4, #12]
  7544. 8007518: bf18 it ne
  7545. 800751a: 81a3 strhne r3, [r4, #12]
  7546. 800751c: bd10 pop {r4, pc}
  7547. 0800751e <__sclose>:
  7548. 800751e: f9b1 100e ldrsh.w r1, [r1, #14]
  7549. 8007522: f000 b813 b.w 800754c <_close_r>
  7550. ...
  7551. 08007528 <_write_r>:
  7552. 8007528: b538 push {r3, r4, r5, lr}
  7553. 800752a: 4605 mov r5, r0
  7554. 800752c: 4608 mov r0, r1
  7555. 800752e: 4611 mov r1, r2
  7556. 8007530: 2200 movs r2, #0
  7557. 8007532: 4c05 ldr r4, [pc, #20] ; (8007548 <_write_r+0x20>)
  7558. 8007534: 6022 str r2, [r4, #0]
  7559. 8007536: 461a mov r2, r3
  7560. 8007538: f7fe fa68 bl 8005a0c <_write>
  7561. 800753c: 1c43 adds r3, r0, #1
  7562. 800753e: d102 bne.n 8007546 <_write_r+0x1e>
  7563. 8007540: 6823 ldr r3, [r4, #0]
  7564. 8007542: b103 cbz r3, 8007546 <_write_r+0x1e>
  7565. 8007544: 602b str r3, [r5, #0]
  7566. 8007546: bd38 pop {r3, r4, r5, pc}
  7567. 8007548: 20000450 .word 0x20000450
  7568. 0800754c <_close_r>:
  7569. 800754c: b538 push {r3, r4, r5, lr}
  7570. 800754e: 2300 movs r3, #0
  7571. 8007550: 4c05 ldr r4, [pc, #20] ; (8007568 <_close_r+0x1c>)
  7572. 8007552: 4605 mov r5, r0
  7573. 8007554: 4608 mov r0, r1
  7574. 8007556: 6023 str r3, [r4, #0]
  7575. 8007558: f000 f85e bl 8007618 <_close>
  7576. 800755c: 1c43 adds r3, r0, #1
  7577. 800755e: d102 bne.n 8007566 <_close_r+0x1a>
  7578. 8007560: 6823 ldr r3, [r4, #0]
  7579. 8007562: b103 cbz r3, 8007566 <_close_r+0x1a>
  7580. 8007564: 602b str r3, [r5, #0]
  7581. 8007566: bd38 pop {r3, r4, r5, pc}
  7582. 8007568: 20000450 .word 0x20000450
  7583. 0800756c <_fstat_r>:
  7584. 800756c: b538 push {r3, r4, r5, lr}
  7585. 800756e: 2300 movs r3, #0
  7586. 8007570: 4c06 ldr r4, [pc, #24] ; (800758c <_fstat_r+0x20>)
  7587. 8007572: 4605 mov r5, r0
  7588. 8007574: 4608 mov r0, r1
  7589. 8007576: 4611 mov r1, r2
  7590. 8007578: 6023 str r3, [r4, #0]
  7591. 800757a: f000 f855 bl 8007628 <_fstat>
  7592. 800757e: 1c43 adds r3, r0, #1
  7593. 8007580: d102 bne.n 8007588 <_fstat_r+0x1c>
  7594. 8007582: 6823 ldr r3, [r4, #0]
  7595. 8007584: b103 cbz r3, 8007588 <_fstat_r+0x1c>
  7596. 8007586: 602b str r3, [r5, #0]
  7597. 8007588: bd38 pop {r3, r4, r5, pc}
  7598. 800758a: bf00 nop
  7599. 800758c: 20000450 .word 0x20000450
  7600. 08007590 <_isatty_r>:
  7601. 8007590: b538 push {r3, r4, r5, lr}
  7602. 8007592: 2300 movs r3, #0
  7603. 8007594: 4c05 ldr r4, [pc, #20] ; (80075ac <_isatty_r+0x1c>)
  7604. 8007596: 4605 mov r5, r0
  7605. 8007598: 4608 mov r0, r1
  7606. 800759a: 6023 str r3, [r4, #0]
  7607. 800759c: f000 f84c bl 8007638 <_isatty>
  7608. 80075a0: 1c43 adds r3, r0, #1
  7609. 80075a2: d102 bne.n 80075aa <_isatty_r+0x1a>
  7610. 80075a4: 6823 ldr r3, [r4, #0]
  7611. 80075a6: b103 cbz r3, 80075aa <_isatty_r+0x1a>
  7612. 80075a8: 602b str r3, [r5, #0]
  7613. 80075aa: bd38 pop {r3, r4, r5, pc}
  7614. 80075ac: 20000450 .word 0x20000450
  7615. 080075b0 <_lseek_r>:
  7616. 80075b0: b538 push {r3, r4, r5, lr}
  7617. 80075b2: 4605 mov r5, r0
  7618. 80075b4: 4608 mov r0, r1
  7619. 80075b6: 4611 mov r1, r2
  7620. 80075b8: 2200 movs r2, #0
  7621. 80075ba: 4c05 ldr r4, [pc, #20] ; (80075d0 <_lseek_r+0x20>)
  7622. 80075bc: 6022 str r2, [r4, #0]
  7623. 80075be: 461a mov r2, r3
  7624. 80075c0: f000 f842 bl 8007648 <_lseek>
  7625. 80075c4: 1c43 adds r3, r0, #1
  7626. 80075c6: d102 bne.n 80075ce <_lseek_r+0x1e>
  7627. 80075c8: 6823 ldr r3, [r4, #0]
  7628. 80075ca: b103 cbz r3, 80075ce <_lseek_r+0x1e>
  7629. 80075cc: 602b str r3, [r5, #0]
  7630. 80075ce: bd38 pop {r3, r4, r5, pc}
  7631. 80075d0: 20000450 .word 0x20000450
  7632. 080075d4 <memchr>:
  7633. 80075d4: b510 push {r4, lr}
  7634. 80075d6: b2c9 uxtb r1, r1
  7635. 80075d8: 4402 add r2, r0
  7636. 80075da: 4290 cmp r0, r2
  7637. 80075dc: 4603 mov r3, r0
  7638. 80075de: d101 bne.n 80075e4 <memchr+0x10>
  7639. 80075e0: 2000 movs r0, #0
  7640. 80075e2: bd10 pop {r4, pc}
  7641. 80075e4: 781c ldrb r4, [r3, #0]
  7642. 80075e6: 3001 adds r0, #1
  7643. 80075e8: 428c cmp r4, r1
  7644. 80075ea: d1f6 bne.n 80075da <memchr+0x6>
  7645. 80075ec: 4618 mov r0, r3
  7646. 80075ee: bd10 pop {r4, pc}
  7647. 080075f0 <__malloc_lock>:
  7648. 80075f0: 4770 bx lr
  7649. 080075f2 <__malloc_unlock>:
  7650. 80075f2: 4770 bx lr
  7651. 080075f4 <_read_r>:
  7652. 80075f4: b538 push {r3, r4, r5, lr}
  7653. 80075f6: 4605 mov r5, r0
  7654. 80075f8: 4608 mov r0, r1
  7655. 80075fa: 4611 mov r1, r2
  7656. 80075fc: 2200 movs r2, #0
  7657. 80075fe: 4c05 ldr r4, [pc, #20] ; (8007614 <_read_r+0x20>)
  7658. 8007600: 6022 str r2, [r4, #0]
  7659. 8007602: 461a mov r2, r3
  7660. 8007604: f000 f828 bl 8007658 <_read>
  7661. 8007608: 1c43 adds r3, r0, #1
  7662. 800760a: d102 bne.n 8007612 <_read_r+0x1e>
  7663. 800760c: 6823 ldr r3, [r4, #0]
  7664. 800760e: b103 cbz r3, 8007612 <_read_r+0x1e>
  7665. 8007610: 602b str r3, [r5, #0]
  7666. 8007612: bd38 pop {r3, r4, r5, pc}
  7667. 8007614: 20000450 .word 0x20000450
  7668. 08007618 <_close>:
  7669. 8007618: 2258 movs r2, #88 ; 0x58
  7670. 800761a: 4b02 ldr r3, [pc, #8] ; (8007624 <_close+0xc>)
  7671. 800761c: f04f 30ff mov.w r0, #4294967295
  7672. 8007620: 601a str r2, [r3, #0]
  7673. 8007622: 4770 bx lr
  7674. 8007624: 20000450 .word 0x20000450
  7675. 08007628 <_fstat>:
  7676. 8007628: 2258 movs r2, #88 ; 0x58
  7677. 800762a: 4b02 ldr r3, [pc, #8] ; (8007634 <_fstat+0xc>)
  7678. 800762c: f04f 30ff mov.w r0, #4294967295
  7679. 8007630: 601a str r2, [r3, #0]
  7680. 8007632: 4770 bx lr
  7681. 8007634: 20000450 .word 0x20000450
  7682. 08007638 <_isatty>:
  7683. 8007638: 2258 movs r2, #88 ; 0x58
  7684. 800763a: 4b02 ldr r3, [pc, #8] ; (8007644 <_isatty+0xc>)
  7685. 800763c: 2000 movs r0, #0
  7686. 800763e: 601a str r2, [r3, #0]
  7687. 8007640: 4770 bx lr
  7688. 8007642: bf00 nop
  7689. 8007644: 20000450 .word 0x20000450
  7690. 08007648 <_lseek>:
  7691. 8007648: 2258 movs r2, #88 ; 0x58
  7692. 800764a: 4b02 ldr r3, [pc, #8] ; (8007654 <_lseek+0xc>)
  7693. 800764c: f04f 30ff mov.w r0, #4294967295
  7694. 8007650: 601a str r2, [r3, #0]
  7695. 8007652: 4770 bx lr
  7696. 8007654: 20000450 .word 0x20000450
  7697. 08007658 <_read>:
  7698. 8007658: 2258 movs r2, #88 ; 0x58
  7699. 800765a: 4b02 ldr r3, [pc, #8] ; (8007664 <_read+0xc>)
  7700. 800765c: f04f 30ff mov.w r0, #4294967295
  7701. 8007660: 601a str r2, [r3, #0]
  7702. 8007662: 4770 bx lr
  7703. 8007664: 20000450 .word 0x20000450
  7704. 08007668 <_sbrk>:
  7705. 8007668: 4b04 ldr r3, [pc, #16] ; (800767c <_sbrk+0x14>)
  7706. 800766a: 4602 mov r2, r0
  7707. 800766c: 6819 ldr r1, [r3, #0]
  7708. 800766e: b909 cbnz r1, 8007674 <_sbrk+0xc>
  7709. 8007670: 4903 ldr r1, [pc, #12] ; (8007680 <_sbrk+0x18>)
  7710. 8007672: 6019 str r1, [r3, #0]
  7711. 8007674: 6818 ldr r0, [r3, #0]
  7712. 8007676: 4402 add r2, r0
  7713. 8007678: 601a str r2, [r3, #0]
  7714. 800767a: 4770 bx lr
  7715. 800767c: 200002b4 .word 0x200002b4
  7716. 8007680: 20000454 .word 0x20000454
  7717. 08007684 <_init>:
  7718. 8007684: b5f8 push {r3, r4, r5, r6, r7, lr}
  7719. 8007686: bf00 nop
  7720. 8007688: bcf8 pop {r3, r4, r5, r6, r7}
  7721. 800768a: bc08 pop {r3}
  7722. 800768c: 469e mov lr, r3
  7723. 800768e: 4770 bx lr
  7724. 08007690 <_fini>:
  7725. 8007690: b5f8 push {r3, r4, r5, r6, r7, lr}
  7726. 8007692: bf00 nop
  7727. 8007694: bcf8 pop {r3, r4, r5, r6, r7}
  7728. 8007696: bc08 pop {r3}
  7729. 8007698: 469e mov lr, r3
  7730. 800769a: 4770 bx lr